• hi, i badly need this.

    i am trying to echo canonical url saved by yoast seo plugin.

    i checked plugin files. i tried several solutions but nothing has worked so far. Only official information is here.

    failed attempts…

    <? echo esc_url( $canonical, null, ‘other’ ); ?>

    <? echo WPSEO_Meta(‘canonical’) ?>

    <? echo esc_url( $canonical, ‘wordpress-seo’, true ); ?>

    <? echo $meta_fields[‘canonical’]; ?>

  • The topic ‘How to get saved canonical url?’ is closed to new replies.