Support

Home Forums Event Espresso Premium Toolset plugin post relationship meta box not appearing on event post editor

Toolset plugin post relationship meta box not appearing on event post editor

Posted: December 15, 2020 at 9:43 am

Viewing 5 reply threads


bakerrisk

December 15, 2020 at 9:43 am

We are using the Toolset plugin to create a custom post type to organize and display experts. The Toolset plugin allows us to create post type relationships and we have connected the experts with events. This allows us to connect experts with events they are hosting and automatically display them on the event details page.

The relationship works but the post relationship meta box while editing an event post is not appearing. We contacted Toolset support and they found that the events post editor does not use the standard WordPress post editor so the post relationship meta box does not appear:

Because the post relationship meta box is not appearing on the event post editing page, we had to 1) create & publish the new event then 2) edit the expert’s post then add the relationship to the new event. Ideally we want to be able to link the expert to the event while editing the event instead of publishing the event first then editing the expert to link the new event.

Is there a way to get the EE4 event post editor to have the post relationship meta box to appear on the event post editing page?

Please note we are testing these changes on a localhost before implementing on the live website.

Thanks for any help you can provide.


Tony

  • Support Staff

December 15, 2020 at 10:00 am

Hi there,

For various reasons we aren’t going to switch to use default WordPress routes for editing our events any time soon, however, if you’d like to send me a copy of the above plugin I can install locally I’ll check if there is a way to force it to load on the EE event editor.

You can use something like WeTransfer to send the plugin .zip file to support[at]eventespresso.com


bakerrisk

December 15, 2020 at 10:31 am

Thanks for the quick reply.

We understand the system change to the default WP editor is not possible.

We sent the plugin as requested to the support email address.

It would be great if there was a way to force the meta box to appear on the EE event editor.

Thanks for your help.


Tony

  • Support Staff

December 16, 2020 at 1:14 pm

Ok, so I had a look into ToolSet and for the above to work they’ll need to add an additional hook into the plugin.

Right now the plugin explicitly checks to confirm the current screen is the default post editor, using code like this:

if ( 'post' !== $screen->base ) {
    return;
}

Thats in \types\application\controllers\page\extension\related_content\meta_box_related_content.php

It would need to be changed to something like:

if (
    'post' !== $screen->base 
    && ! apply_filters('toolset_allow_custom_route', false) 
) {
    return;
}

To allow us to hok in and fore ToolSet to load.

I’ve sent this information over to ToolSet but it’s really up to them if this is something they wish to include in the plugin so without modifying core files of their plugin I don’t think you can load the metabox on our edits as it stands.


bakerrisk

December 16, 2020 at 3:04 pm

Thanks for the update.

We’ll continue with the workaround.

Hopefully Toolset will release an update that will allow Event Espresso to hook into it.


Tony

  • Support Staff

December 17, 2020 at 6:35 am

You’re most welcome.

ToolSet created a ticket to investigate the change I suggested, that doesn’t mean they’ll include it but just noting that they are at least will to investigate further.

Viewing 5 reply threads

The support post ‘Toolset plugin post relationship meta box not appearing on event post editor’ 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