WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Fix for Custom Post Type Archive titles and %%vars%% (3 posts)

  1. Scott Kingsley Clark
    Member
    Posted 2 years ago #

    Tried using %%sitename%% in a Custom Post Type archive title template, but output showed my tag as it was "%%sitename%%" instead of replacing it. I looked through the code and patched it.

    Joost, please see the info below and patch in your next version - thanks!

    File: /wordpress-seo/frontend/class-frontend.php

    Line: 192

    Old:
    $title = $options['title-ptarchive-'.$post_type];

    New:
    $title = wpseo_replace_vars($options['title-ptarchive-'.$post_type], array());

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

  2. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Perfect, added to trunk, could you test if that works for you?

  3. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Just pushed this out as part of 1.1.6.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic