Support

Home Forums Event Espresso Premium Duplicate Event not working with Advanced Custom Fields

Duplicate Event not working with Advanced Custom Fields

Posted: October 24, 2016 at 10:08 am

Viewing 6 reply threads


scaldwell

October 24, 2016 at 10:08 am

I’m not getting the custom fields I’ve set up when I duplicate posts. I have created a new page template that uses ACF, but when I use the duplicate posts button – none of the data stored in the ACF fields is copied over to the new page.

Help! Thank you,
Shelly


Josh

  • Support Staff

October 24, 2016 at 10:18 am

Hi Shelly,

I’m afraid the that Duplicate Event button does not copy over the event’s post meta data to the new event. That was a design decision that was made when the Duplicate Event feature was added. The reason is because copying post meta data from one post to another can be problematic.


scaldwell

October 24, 2016 at 10:22 am

Oh that’s bad news. Ok – I know I’ve asked this before, but the whole reason we need to duplicate them is because these classes repeat. Ideally we wouldn’t have to duplicate the page at all – it’s really not good SEO. We just need to dump the attendees from the class and start anew. Is this possible at all?


Josh

  • Support Staff

October 24, 2016 at 11:40 am

You have a few options there, like instead of duplicating classes, you can add new date times and new tickets to the class.

Alternatively, since you mentioned the SEO concern, you can make it so expired events are no longer indexed by adding the following code to your site:

https://gist.github.com/joshfeck/70979dc12f93ab25dd668ed4500be477

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


scaldwell

October 24, 2016 at 4:03 pm

Uggg… that’s more work than the simple duplication. We are really in a bind here. Can you think of any other solution. The page template I have built is perfect, yet relies on the ACF – and I don’t see any other way to achieve the look we want (without the need for my client to add a lot of css/html into the text block)

Sample: https://portlandfashioninstitute.com/events/fashion-illustration-intensives-5/

I’ve tried adding Duplicate Page/Post plugins but I didn’t find one that works with the Events (I guess that’s why you created the button on the event pages).

Can you think of ANY other solution? I am open to any and all solutions.

Thanks,
Shelly


Josh

  • Support Staff

October 24, 2016 at 4:25 pm

Instead of setting a custom field to switch to a page template, how about using a category or tag? Or, do all events use that page template? If that’s the case, then you can copy your custom template and name it single-espresso_events.php.


scaldwell

October 24, 2016 at 4:44 pm

OH REALLY? Yes – all events will (eventually) use that page template. I’m converting everything over to use the new template (each class requires a special image and PDF that takes time to create)… Once I’ve got all her classes switched over for this term, I will do this! Oh my goodness Josh I am so happy!!!! Thank you soooooooooo much!!!

Viewing 6 reply threads

The support post ‘Duplicate Event not working with Advanced Custom Fields’ 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