Support

Home Forums Event Espresso Premium Event post changes

Event post changes

Posted: September 17, 2012 at 2:20 pm


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:
http://eventespresso.com/wiki/put-custom-templates/

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Chris Reynolds 7 years, 11 months ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/event-post-changes/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Email</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]