neotrope on "[Plugin: Yoast SEO] How to remove make primary button?"

ساخت وبلاگ

kameonline
Member
Posted 2 months ago #

I've plugin WP category permalink and its function is duplicate with yoast seo new function. Make primary button that allow you to select category for URL.

But i don't want this and i can't uninstall my current plugin because it'll cause to all permalink i've set to past post.

Please give me any suggestion.

Best regards, Kame

https://wordpress.org/plugins/wordpress-seo/

Use this code in your functions.php:

/** * Disable the WPSEO v3.1+ Primary Category feature. */
add_filter( 'wpseo_primary_term_taxonomies', '__retu_empty_array' );

neotrope
Member
Posted 8 minutes ago #

Thanks was looking for that.

And may I say it's an example of some of the really sloppy option settings in Yoast that I can disable breadcrumbs, but then this hook attaches itself to the post category box, without providing any use for selecting a primary category... it's not added to the META when selected in any way I can see (unless I am having dumbo moment here); and so if intended for use with breadcrumbs why is it not disabled when breadcrumbs are disabled.

I shake my head .... (sigh).

THANKS for the filter hook -- was just looking for it :-)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 201 تاريخ : پنجشنبه 13 خرداد 1395 ساعت: 8:17