yehiax
Forum Replies Created
-
Thank you for your help and for the greatest plugin
Thank you so much! you saved me.
Thank you so much for your help, the code reduced the author name showing from 5 times to 3, it still appear in this way:
"author":{"@id":"https:\/\/www.x.org\/author\/user x\/#author"} "author":{"@id":"https:\/\/www.x.org\/author\/user x\/#author"} "creator":{"@id":"https:\/\/www.x.org\/author\/user x\/#author"},
Also can i remove the if – is_singular to remove the author from everywhere in website?
I really appropriate your helpForum: Plugins
In reply to: [Yoast SEO] Remove user name meta from post source codeI used this code from chat gpt, it remove it once but still another meta tag
function remove_yoast_article_author_presenter($presenters) { if (isset($presenters['WPSEO_Frontend_Presenter_Author'])) { unset($presenters['WPSEO_Frontend_Presenter_Author']); } return $presenters; } add_filter('wpseo_frontend_presenters', 'remove_yoast_article_author_presenter');
If i turn off the feature Open Graph data and Twitter card data it will remove it, but i want those features just without the author meta
- This reply was modified 1 year, 6 months ago by yehiax.
Forum: Plugins
In reply to: [Yoast SEO] Remove user name meta from post source codeI did the code but it didn’t work
function remove_author( $authors ) { return array_map( function( $author ) { if ( ! $author instanceof Meta_Author_Presenter ) { return $author; } }, $authors ); } add_action( 'wpseo_frontend_presenters', 'remove_author' );
And i think the meta is shows twice because it is represent twitter and facebook meta, but when i try to filter Article_Author_Presenter with wpseo_opengraph_author_facebook i got an error to website.