• Resolved dansart

    (@dansart)


    Hi

    First of all, great plugin! I also like the fact, that the title and description can be altered with filters. I’m using them to create dynamic title and descriptions.
    Therefore I set in the Search appearance of the Yoast settings the SEO Title to title_is_set_by_filter.
    In the filter I check then for that string and change the output.

    ?public function seo_page_title($title)
    ? ? {
    ? ? ? ? if ($title !== ‘title_is_set_by_filter’) {
    ? ? ? ? ? ? return $title;
    ? ? ? ? }
    //create custom title..

    That works perfectly for the posts and pages. But if I share a page, it looks like that:

    As you can see, the title is not filtered. Any solutions?

Viewing 1 replies (of 1 total)
  • Thread Starter dansart

    (@dansart)

    Ok, never mind. Looks like those two filters get the job done
    add_filter(‘wpseo_opengraph_title’, function(){…});
    add_filter(‘wpseo_opengraph_desc’, function(){…});

    • This reply was modified 1 year ago by dansart.
Viewing 1 replies (of 1 total)
  • The topic ‘wpseo_title and wpseo_metadesc are not working shared post’ is closed to new replies.