Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Fix for Custom Post Type Archive titles and %%vars%%

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Fix for Custom Post Type Archive titles and %%vars%%’ is closed to new replies.