Support

Home Forums Event Espresso Premium Event post changes

Event post changes

Posted: September 17, 2012 at 2:20 pm

Viewing 6 reply threads


Andrew Clarke

September 17, 2012 at 2:20 pm

G’day,

When we create a event and set “Create a post for this event” to “YES”, a new post is created but there are a few issues with the details in the post created.

Firstly, the dates output into the post don’t use the Event Espresso date format setting, or even the system date format setting. We would want to use “l j F Y”, but it’s using something like “l F j, Y”.

Secondly, only the first address field is written into the post. We’d like to see the venue name, city, state and postcode also being written into the post. Maybe this could be a link to the full venue details.

Thirdly, we’re dealing mostly with country locations which don’t have a street number. Thus the “Map and Directions” link causes Google Maps to just find the road. If the venue name was also included in the parameters of the link, then Google Maps would be able to properly locate and display our full venue details. (The venues are known to Google Places.)

Fourthly, the phrase “Description:” is written into the post. It would be nice if this was optional.

Is it possible to make these changes?

Best regards, Lloyd Borrett (for Andrew Clarke)


Seth Shoultes

  • Support Staff

September 19, 2012 at 11:42 am

You can edit the “/event-espresso/templates/post.php” file to make these changes. Please be sure to move the file to the /wp-content/uploads/espresso/templates directory before making changes.


Michel Neray

September 21, 2012 at 1:21 pm

You mentioned editing post.php – there is no such file (at least in my version there isn’t, just event_post.php.

I had the same question. I am editing the event_post.php template file, and no changes are showing up on my site. I’ve tried editing the moved file (in uploads/espresso/templates) and the original template file – nothing happens.

Events really don’t display nicely as blog posts without tweaking – but I can’t tweak them! Help!


Michel Neray

September 21, 2012 at 1:48 pm

Googled this issue, and found the answer in the old EE forums. You have to delete all event posts and re-post them before any template changes will show up. So… get rid of any event posts, then make change to your template, then go back and edit each event, creating a post for each one.

Problem with this is that you can’t check your changes easily – you have to delete and re-create posts each time. Something to work on, perhaps, for the next update?


Seth Shoultes

  • Support Staff

September 21, 2012 at 1:56 pm

All of the post data is stored in the database. So yes, you will have to re-save each event. You can start with one post, then see how that affects it.

A better option would be to use the custom post type feature, then you can customize the layouts for the post type templates. Those are stored in the “post-type-samples” directory and will need to be copied to your theme. Then you will need to modify your theme theme/index.php to include the custom post types in your blog.

Hope all that makes sense.


isawilldupage

October 22, 2012 at 12:49 pm

Seth,
We are saving our events as Posts (not espresso event posts).
Is there a way to edit how those show?
Kara


Chris Reynolds

  • Support Staff

November 4, 2012 at 9:48 am

@Kara

You mean edit what information gets sent over to the post? That is handled in the event_post.php template file.

Be sure to review this doc if you are making changes to template files:
https://eventespresso.com/wiki/put-custom-templates/

Viewing 6 reply threads

The support post ‘Event post changes’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso