Add new custom template
-
Hello –
I really am enjoying how lightweight your plugin is!
Here is my question:
I need to create a listing of more than one event, called by a certain location, without the featured image. Basically just the event title, the event date and the event location – everything in the content-summary-event_listing.php template, minus the image. I completely understand how to set up custom templates and have done so on many sites, and I know that my custom template attempts are working because I can call them via shortcode and see them. Here are the steps I went through:- I created a custom template in my theme/wp-event-manager folder using the name content-summary-event_listing.php. I removed the featured image and added a “Read More.” It worked perfectly, but only showed one post. I need it to call more than one post.
- I then tried to keep access to the shortcode by keeping the template name the same in the custom theme file, but added the functionality of the content-event_listing.php. I copied all of the content from the content-event_listing.php file and put it in my customized content-summary-event_listing.php. It was hideous to look at, but I think I understand how to change the template to remove all of the things I don’t want and to format using CSS, however it still just showed one event, not multiple.
- So then I tried adding the content from the events-listing-start.php at the very beginning of the template (above the content-event_listing.php code) and the code from the event-listing-end.php under the content-event_listing.php code) and it didn’t seem to have any effect. Still one post showing.
I am thinking I am missing a call somewhere to show more than one post?
The ideal would be for me to understand what to add to the content-summary-event_listing.php template to make it call more than one post because that is the simple look that I want and it’s so easy to remove the image. On the page referenced, you can see exactly what I want to show, but I want to see more than one post. I probably only need to show two posts with no pagination and then I’ll add a “See all events” and leave it at that. I am OK “hard coding” the number of posts to show in the template.
Thank you for your help on this.
The page I need help with: [log in to see the link]
The topic ‘Add new custom template’ is closed to new replies.