Single-event page template questions
-
Hi Guido,
Just a quick question regarding the single-event page template to allow customisation of the events details page.
I’m using 2 categories on a website – one for showing public events (publicly accessible) and another which is in a protected area for logged in members.
The main website uses the full width template, but everything within the members area has a sidebar – however I cannot work out the code needed to force my sidebar layout within the single-event template.
Within my single.php file (for general blog posts in the members area) I am using one of 2 things either:
if( in_category('members') )
or
if ( in_category('1') )
Of course I have edited it to be a unique category slug & ID for the events category, but neither using the slug nor the ID of the category is working within the single-events template though. I assume you are using something other than the usual wordpress post categories.
Can you help? Thanks in advance ??
- The topic ‘Single-event page template questions’ is closed to new replies.