Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter niska

    (@niska)

    Anyone?

    Hi Niska.
    I was just reading a post about WordPress SEO plugins filters. It’s a great a post. In the comments section, one reader asked the author your question, so I’d like to give you the comment’s link:

    https://webgilde.com/en/wordpress-seo-facebook-image-open-graph/#comment-3991

    Good luck!

    Hi Niska,
    i am looking same solution, hv u found it?
    pls help if u did.

    thanks

    Thread Starter niska

    (@niska)

    I haven’t found a plugin yet.

    What’s needed is a modification of WPSEO_Taxonomy::term_seo_form() that shows the input fields for terms. There should be another one for opengraph-image. But there is no filter to add this input field…

    If there was a input field, then the following code would probably solve the problem:

    add_action( ‘wpseo_opengraph’, ‘my_archive_image’, 30 );
    $archive_og_image = ‘[opengraph-image-for-term]’;
    function my_archive_image() {
    if( is_tag() ||?is_tax() ||?is_category() ) $wpseo_og->image_output($archive_og_image);
    }

    Anyone else have a solution to this? Not sure why it isn’t possible out of the box.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set SEO Open Graph image for taxonomies (tag, category, etc)’ is closed to new replies.