Archived topic
Custom category page and SEO
5 replies · Started by George on June 6, 2021
I have set up some custom category pages instead of normal categories for a website using the following code.
add_filter('request', function( array $query_vars ) {
if ( is_admin() ) {
return $query_vars;
}
if ( isset( $query_vars['category_name'] ) ) {
$pagename = $query_vars['category_name'];
$query_vars = array( 'pagename' => "$pagename" );
}
return $query_vars;
} );
My client also uses Yoast SEO and has custom meta descriptions which are the same for the category description itself but also for the custom category page. When searching for the website term, the category meta descriptions appear fine on Google results but they display the advertiser disclosure content for meta categories in Bing and Yahoo. Advertiser disclosure is text that appears at the top of the categories and single posts as a popup when clicking the top button. Is there something that can be done SEO-wise to fix that issue for custom category pages? Do I need to have SEO meta descriptions only on the custom category pages themselves or only on the post categories?
Hi George,
Sorry I could be wrong but I don't believe this question related to the theme itself?
Sounds like this is something that should be answered by Yoast's support team.
Let me know if I'm missing something here.
Hey Leo.
Yeah, maybe it is, I just wanted to know how GP handles custom category pages in an SEO sense. If you have custom pages for categories, do those pages completely bypass the taxonomy functionality? Will any category-related SEO settings get completely bypassed? SEO plugins have SEO settings for categories and archives, that's why I want to know whether those things are affected.
I just wanted to know how GP handles custom category pages in an SEO sense. If you have custom pages for categories, do those pages completely bypass the taxonomy functionality?
GP wouldn't do anything special here as those things are handled by WordPress or the SEO plugin itself.
Perhaps Tom's reply here would provide a little bit of insight?
https://generatepress.com/forums/topic/why-my-posts-meta-description-changed/#post-1644479
I would say check with Yoast to see how the plugin handles custom category pages.
Ok, I will, thanks, Leo!
No problem :)
Thanks for the GP video entry clip by the way! I love it.