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

  1. robico
    Posted 2 years 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?


  2. ColinSnaps
    Posted 2 years 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',

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic