twitter:creator tag for multiple authors

#31020
  • Resolved Arnaud Baudry
    Rank Math free

    Hello,
    On our site we use a custom taxonomy to manage authors as we sometimes publish articles written by multiple authors. The default WordPress “authors” corresponds to our editors who manage the content. Rank Math seems to be pulling the Twitter information stored in the WordPress author profile to generate the twitter:creator tag. However we need to be able to customize it as the WordPress author for us corresponds to the editor who published a piece written by a different author or group of authors.
    Is there an easy way we could customize the twitter:creator to pull information from our authors taxonomy instead of the default WordPress author attached to the article?
    Thank you,
    Arnaud

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Rank Math makes it possible to customize the OpenGraph tags with the following filter:

    /**
     * Allow developers to change the content of specific social meta tags.
     *
     * The dynamic part of the hook name. $network, is the network slug
     * and $og_property, is the property which we are outputting.
     *
     * @param string $content The content of the property.
     */
    add_filter( "rank_math/opengraph/{$network}/$og_property", function( $content ) {
    	return $content;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘twitter:creator tag for multiple authors’ is closed to new replies.