Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28421
    Ed
    Guest

    I made a bunch of custom post types for a portfolio site and was wondering if BoldGridSEO can work with them. If so, how?

    #28426
    Jesse Owens
    Keymaster

    Hi Ed-

    At this time, BoldGrid Easy SEO doesn’t work on Custom Post Types. I agree with you that this should be possible, so I’ve gone ahead and submitted an update to the plugin to allow you to do this.

    I’ll update you here as soon as the new update has been released, but if you’d like to get a head start now, here’s how you can do it.

    Using the WordPress Plugin Editor or an editor of your choice, edit the file includes/class-boldgrid-seo-butterbean.php and modify line 35. Here’s the original line:

    if ( 'page' !== $post_type && 'post' !== $post_type )

    Replace that line with this:

    if ( array_search($post_type, $this->configs['meta-box']['post_types'] ) === false )

    Then, copy the file includes/configs/config.sample.php to includes/configs/config.local.php and paste the following contents into that file. I’ve used the custom post type recipe in this example, replace that with the slugs of your custom post types:

    <?php
    /**
     * Copy this sample file to config.local.php and update it with any variables that you would like to override
     */
    return array(
    	'meta-box' => array(
    		'post_types' => array(
    			'post',
    			'page',
    			'recipe'
    		),
    		'manager' => array(
    			'post_type' => array('post','page', 'recipe')
    		),
    	),
    );
    
    #32044
    Jesse Owens
    Keymaster

    Hi Ed-

    I wanted to let you know that BoldGrid Easy SEO version 1.6.9 was just released that will allow you to use the above config modification for you custom post types.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Does Boldgrid SEO work with custom post types?’ is closed to new replies.