Support

Home Forums Event Espresso Premium Duplicate Event not shown in Event Post

Duplicate Event not shown in Event Post

Posted: February 16, 2015 at 8:02 pm

Viewing 5 reply threads


Wassim Amer

February 16, 2015 at 8:02 pm

Hello Support,
I am using EE3 3.1.36.6 version of Event Espresso.I have fetched one problem here.When I duplicate events, They show in Event overview, but not in event posts.I want it to automatically added to the event post in time of duplicate event.
Is there any way to do that in Event Espresso?
Please let me know.
Thanks.


Seth Shoultes

  • Support Staff

February 16, 2015 at 8:21 pm

Hello,

We intentionally do not duplicate the event posts, because we don’t want to add duplicate content that might be picked up by search engines.

If you want to create a new post whenever an event is duplicated, you will need to add this filter to your theme’s functions.php file, and make sure it returns 0 or null as the value:
filter_hook_espresso_existing_post_id


Wassim Amer

February 17, 2015 at 4:15 am

Hello Seth,
I have added following code in function.php but nothing happen….

function override_event_post_id (){
return 0;
}
add_filter( ‘filter_hook_espresso_existing_post_id’, ‘override_event_post_id’ );

Please help me out if any others way or any other add on to do that.
Thanks.


Tony

  • Support Staff

February 19, 2015 at 2:50 am

Hi Wassim,

Just to confirm did you duplicate an event after adding that to functions.php?

That filter will only work on events duplicated after if was added.


Wassim Amer

February 19, 2015 at 9:22 pm

Hi Tony,
I have duplicate an event after adding this code into function.php but not working.
Please let me know any other solution if you have.
Thank you.


Dean

February 23, 2015 at 5:15 am

Hi,

I am terribly sorry, but that hook is not yet available. It will be part of EE 3.1.37 once it is released.

Currently there isn’t a workaround, the hook and corresponding filter would be needed to resolve the issue.

Viewing 5 reply threads

The support post ‘Duplicate Event not shown in Event 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