Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119618

orangebackpack on "[Plugin: Events Manager] Make Some Event Details Visible Only When Logged In"

$
0
0

I have a few custom attributes that I'd like to make visible to people who are logged in (editor, contributor, admin, etc.).

I tried editing the Single Events page through the Formatting tab to include the proper PHP (below) but it wasn't working:

<p>
	<strong>Category(ies)</strong><br/>
	#_CATEGORIES
</p>
<p>
	<strong>Childcare Offered</strong><br/>
	#_ATT{Childcare}
</p>
<?php
if ( is_user_logged_in() ) {

?>
<p><strong>Setup Instructions</strong><br/>#_ATT{Setup Instructions (Chairs, tables, equipment needed)}</p>
<?

} ?>

Then I tried editing event-single.php to include the same PHP, but then the shortcodes didnt' work (no surprise there).

Any ideas? Sorry, I'm a bit of a PHP newb.

http://wordpress.org/extend/plugins/events-manager/


Viewing all articles
Browse latest Browse all 119618

Trending Articles