WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
SEO not saving in custom post types (2 posts)

  1. robico
    Member
    Posted 10 months ago #

    I have a custom post type which is created in my theme's function.php file. When I try to save the custom post, it doesn't save any of the WordPress SEO entries (e.g. SEO title, Meta Description) but the rest of the information is saved (e.g. post titles, categories, description and custom post fields).

    Has anyone else had this issue and how can I fix it? Would there be something that I have to put in the save function?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. ColinSnaps
    Member
    Posted 10 months ago #

    I had the same problem.

    For this I had to just add a line in my theme, but this is unlikely to be specific to the theme that I have used. I put the code below, it just be a track for you:

    'lib>metaboxes>portfolio-spec.php' and add this line of code:

    'priority' => 'low',

    So to look like this:

    $portfolio_mb = new WPAlchemy_MetaBox(array
    (
    'id' => '_studiofolio_portfolio_meta',
    'title' => 'Portfolio box',
    'template' => get_template_directory() . '/lib/metaboxes/portfolio-meta.php',
    'types' => array('portfolio'),
    'priority' => 'low',
    'mode' => WPALCHEMY_MODE_EXTRACT
    ));

Reply

You must log in to post.

About this Plugin

About this Topic