Home › Forums › Calendar Products › Events Calendar PRO › How to show full events post in search and tags
- This topic has 3 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
August 20, 2013 at 1:14 pm #61948Norine LeibelParticipant
Need a little help writing a function that would have the full info for an event show up in the search and tags, rather than just an excerpt (which turns out to be title and body descrip only.
I’m using a child theme of twenty twelve. Is there an easy-ish way to do that? Thanks.
August 20, 2013 at 1:17 pm #61956Norine LeibelParticipantAnd now that I think of it, more importantly, is there a way to have the full post show within the category listing view? That way any URL links in the body of the post would be live in the Category view.
August 28, 2013 at 3:24 pm #63498BarryMemberSo for the search results you could for instance discriminate between events and other posts by editing content.php and (in the default Twenty Twelve theme, around line 33) changing:
if ( is_search() ) :
To
if ( is_search() and ! tribe_is_event() ) :
And that would display the complete event description rather than the excerpt, but leave other non-event search results untouched. You could go further and pull in other bits of event data using functions like tribe_get_start_date(), too, but I’ll leave that to your imagination.
And now that I think of it, more importantly, is there a way to have the full post show within the category listing view?
For this one you would need to override list/single-event.php (please see our Themer’s Guide for details) and locate this line:
<?php the_excerpt() ?>
Changing it to:
<?php the_content() ?>
Hope that helps!
July 7, 2015 at 6:27 am #980469Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to show full events post in search and tags’ is closed to new replies.