Support

Home Forums Event Espresso Premium Edit EE Post

Edit EE Post

Posted: September 6, 2013 at 3:44 am

Viewing 4 reply threads


Klaus M

September 6, 2013 at 3:44 am

Is there a <?php edit_post_link(‘edit’, ‘<p>’, ‘</p>’); ?> kind of code to use in my single.php template (the one that is used for the post that is created from ee while submitting an event).

Thanks!


Dean

September 6, 2013 at 5:52 am

Hi,

Your theme should supply that as the posts are using the standard single.php, but otherwise, the WordPress Codex is your friend here:

http://codex.wordpress.org/Function_Reference/edit_post_link


Klaus M

September 7, 2013 at 5:00 am

Yes, but this links to the standard post that is created within the EE posts. I’d like to be linked to the domain.net/wp-admin/admin.php?page=events&action=edit&event_id=5

well, i can do this manually and put the EVENTID to the end. I just thought there is something like <?php edit_post_link(‘edit’, ‘<p>’, ‘</p>’); ?>

Thanks anyway!


Dean

September 9, 2013 at 4:45 am

OK,

Well there is this code.

<?php echo espresso_edit_this($event_id); ?>

but you will need to grab the event id from the post meta like so

<?php 
$ee_id = get_post_meta(get_the_ID(),'event_id');
echo espresso_edit_this($ee_id[0]);
?>


Klaus M

September 9, 2013 at 5:10 am

THANKS! RESOLVED!

Viewing 4 reply threads

The support post ‘Edit EE Post’ 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