Home › Forums › Calendar Products › Event Aggregator › events customi
- This topic has 1 reply, 2 voices, and was last updated 10 years, 10 months ago by Jonah.
-
AuthorPosts
-
June 14, 2013 at 5:46 pm #51423pandologyParticipant
first off, well done for your plugins. have a couple of questions, which hopefully shouldn’t be a problem to resolve for you …
1. in the events list http://tal-ostja.com/events/ how can i limit the event description to a maximum number of words? at the moment i’m using the manual excerpt but i’d like to have it automatic
2. in the single events view … how can i display the full cover image of the facebook event? i.e. the 851×315 image at the top of a facebook eventJune 17, 2013 at 11:10 am #51526JonahParticipantHi pandology,
For #1, my suggestion would be to use something like http://wordpress.org/plugins/advanced-excerpt/ – in order to use that plugin in the events list you’ll need to make an override of the list template by making a copy of /wp-content/plugins/the-events-calendar/views/list.php and placing in an ‘events’ folder in your theme. Then replace the_content() on line 45 with the the_advanced_excerpt() function and the options you would like.
On #2, you should just need to change the post thumbnail size that’s being displayed. You can do this by making an override of /wp-content/plugins/the-events-calendar/views/single.php – again, make a copy and place in the same ‘events’ folder you created for #1. Then, find line 97 where the_post_thumbnail() function is called and add ‘full’ in between the parentheses like this:
the_post_thumbnail('full');
That should do it but let me know if you need any other assistance.– Jonah
-
AuthorPosts
- The topic ‘events customi’ is closed to new replies.