Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Position SEO Meta box – priority above custom meta boxes

  • Resolved housebg


    I need a way to make the SEO meta box a low priority, as I’m using with custom post types that have custom meta boxes, and the SEO metabox is showing before all other content.

    I could edit the plugin in the class-metabox.php file to change the ‘high’ priority to low, but I was really hoping for a solution that didn’t have me editing the plugin files.

    Any possibility of an action or filter that would let me change this with code in my custom theme’s function’s file?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Joost de Valk


    Will add a filter in the next release (1.1.7) wpseo_metabox_prio to allow WP SEO metabox priority to be changed 🙂

    Already added it in trunk so you can test.

    Thanks Joost! I finally got to implementing this and it works perfectly 🙂

    Can you tell me how to use this filter ?

    Yeah would be grateful if someone could show the implementation of this.

    The API docs for WordPress SEO don’t show this yet…but I see it in the code of the plugin. I have the following in my functions.php, but it doesn’t seem to make any difference. Am I missing something:

    add_filter( ‘wpseo_metabox_prio’, ‘low’);

    Thx any/all…

    It should remove the edit post columns as well as some of the other stuff that the plugin puts in. Are you sure it hasn’t worked? Works for me on all my sites.

    + 1

    How exactly do you use it? I’ve tried:

    apply_filters( 'wpseo_metabox_prio', 'low' );

    in my functions.php but doesn’t work. I think its because the plugins get loaded before the theme does and its too late to use it in the functions.php file. Is there an elegant way without changing the plugin code?

    Try adding this to your functions.php:

    // Filter Yoast Meta Priority
    add_filter( ‘wpseo_metabox_prio’, function() { return ‘low’;});

    Omg, this works! Thanks, man!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Position SEO Meta box – priority above custom meta boxes’ is closed to new replies.