Using the member only function in theme file? – UserPro Forums https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/feed/ Wed, 15 May 2024 02:05:55 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30773 <![CDATA[Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30773 Thu, 03 Apr 2014 18:23:03 +0000 byngj Hi,
I have a section I’m my theme that I would like only visible to members that have logged in. I know that I can use the private shortcode in posts but how can I use this within the theme file? I’m new at the whole php side of things so could really use some guidance.

Many thanks
James

]]>
https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30789 <![CDATA[Reply To: Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30789 Thu, 03 Apr 2014 23:20:59 +0000 byngj ok let me rephrase. I know I can use
<?php echo do_shortcode('[userpro_private]'); ?>
to initiate the private function but I cant get that to wrap around anything.
I’ve tried using
<?php echo do_shortcode('[/userpro_private]'); ?>
on the other side of it but it doesn’t seem to recognise this even though it works if I just use shortcodes in the editor.

Any ideas?

]]>
https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30818 <![CDATA[Reply To: Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-30818 Fri, 04 Apr 2014 10:27:21 +0000 admin http://userproplugin.com/userpro/forums/topic/please-read-the-support-rules-before-posting/

Please verify your purchase first. Thanks 🙂

]]>
https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31178 <![CDATA[Reply To: Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31178 Mon, 07 Apr 2014 14:21:46 +0000 remtheory https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31188 <![CDATA[Reply To: Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31188 Mon, 07 Apr 2014 15:12:57 +0000 admin The shortcode I have posted already should work. 🙂

If you have a specific issue, let me know!

]]>
https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31189 <![CDATA[Reply To: Using the member only function in theme file?]]> https://forum.userproplugin.com/forums/topic/using-the-member-only-function-in-theme-file/#post-31189 Mon, 07 Apr 2014 15:13:47 +0000 admin content should be here:

echo do_shortcode(‘[userpro_private]…[/userpro_private]’);

]]>