Support

Home Forums Event Espresso Premium Yoast SEO metabox not visible on event creation page

Yoast SEO metabox not visible on event creation page

Posted: September 29, 2014 at 1:09 am

Viewing 14 reply threads


Abhishek Jain

September 29, 2014 at 1:09 am

I have installed SEO plugin by Yoast, have not changed any settings on it. The metabox to enter the title and description doesn’t show up.

I even wen t to screen options and tried to enable it, but there is no option to do that either.

Please refer the screenshot

I did a fresh install of both espresso and SEO plugin on my local machine, but it still doesn’t show up.

PS: I am using the latest version of EE4 plugin.


Abhishek Jain

September 29, 2014 at 1:10 am

Screenshot Link


Dean

September 29, 2014 at 1:49 am

Hi,

Thanks for letting us know. I’ll ask a developer to look into this, but I cannot advise if/when it will be resolved.


Abhishek Jain

September 29, 2014 at 2:06 am

Yoast SEO has been listed as a recommended plugin by EE4 authors. So why not fix this up?


Dean

September 29, 2014 at 3:37 am

Hi,

It’s not that we won’t, but I just can’t guarantee anything. Most likely it will get resolved, because as you say it is a popular plugin. I have already submitted a ticket for the developers to review.


Mark Simchock

October 6, 2014 at 1:01 pm

Not to be pushy but we’re curious to know if this is a fairly top priority. Thx.


Lorenzo Orlando Caum

  • Support Staff

October 6, 2014 at 1:23 pm

Hi,

This is still in progress and we will update this support post once more information is available.


Lorenzo


Susan Perry

October 22, 2014 at 5:24 pm

What is the status of a resolution? This is extremely important for those like myself who wish to succeed SEO wise.


Josh

  • Support Staff

October 22, 2014 at 6:42 pm

Hi Susan,

The status is after doing some research we found the Yoast SEO plugin has some specific code in place that prevents its meta box code from loading onto the Event Espresso post editor.

We also found that there is a filter attached to that code. The filter allows for working around this issue. This is a function you can add to a custom snippets plugin that will force the Yoast SEO plugin to load its metabox code onto an Event Espresso event post editor.

**Edit**

Please use this updated version in place of the above:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/third-party-integration/tw_ee_load_yoast_seo_within_ee.php

  • This reply was modified 8 years, 7 months ago by Tony. Reason: Added link to updated snippet


Abhishek Jain

October 23, 2014 at 3:48 am

I tried using the above code in functions.php file, it still doesn’t work


Dean

October 23, 2014 at 5:17 am

Hi,

If you added it to the themes functions.php file, then no it will not work due to load order.

Adding it to a custom functions/snippets plugin (see here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ ) will allow it to work. Screenshot http://take.ms/D3ZVM


Josh

  • Support Staff

October 23, 2014 at 6:00 am

Yes. The Yoast plugin loads its metaboxes on the WordPress plugins_loaded hook. It’s too late to modify its filters by the time the functions.php file of your theme loads.


Abhishek Jain

October 25, 2014 at 5:12 am

Well, it still doesn’t work even after making a plugin and putting the code

<?php
/*
Plugin Name: Yoast SEO fix for EE4
Description: Yoast SEO metabox visibility fix for EE4
*/

/*
**
Yoast MetaBox fix for EE4 taken from https://eventespresso.com/topic/yoast-seo-metabox-not-visible-on-event-creation-page/#post-124267
**
*/
function yoast_fix_for_ee4(){
global $pagenow;
    if ( in_array( $pagenow, array( 'admin.php' ) ) ) {
        return true;
    }
}
add_filter( 'wpseo_always_register_metaboxes_on_admin', 'yoast_fix_for_ee4' );


Abhishek Jain

October 25, 2014 at 5:16 am

It does work!

My bad, had disabled the Yoast plugin. But this is really a pain to fix, yoast is the most used SEO plugin, the EE4 plugin should fix this by default.


Susan Perry

October 25, 2014 at 1:05 pm

Thanks for the resolution.

Viewing 14 reply threads

The support post ‘Yoast SEO metabox not visible on event creation page’ 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