Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello! I also have same problem.

    I was able to fix this for title with this code in my header.php file:

       <title><?php
            $title = wp_title('?', false);
            echo do_shortcode($title);
            ?></title>

    But it still do not work for
    <meta property=”og:title” content=”bla bla [my_shortcode] bla bla” />

    Is there any way to fix this?

    • This reply was modified 8 years, 3 months ago by dmykos.

    Maybe it will be useful for somebody.
    You can enable shortcode in SEO title like this:

    function my_wpseo_title( $title ){
            return do_shortcode($title);
        }
    add_filter( 'wpseo_title', 'my_wpseo_title' );

    Just put this code into your function.php file. It also work for ”og:title”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling shortcode in SEO title’ is closed to new replies.