How to add a rest field to post tags?

OK finally found the solution. After looking in wp_term_taxonomy table, I noticed that taxonomy column describes the taxonomy term for tags – which is actually post_tag, not just ‘tag’. So, this works: add_filter(‘rest_prepare_post_tag’, ‘wp_api_encode_yoast’, 10, 3); Hopefully someone will be helped by this.

Yoast primary category query modification

I’m not sure this will fix it, but maybe try using the current category slug for the $current_category variable, instead of single_cat_title(), like so: $term = get_queried_object(); $current_category = $term->slug; This might help because the category_name parameter in WP_Query, despite its name, should be the term slug. single_cat_title() returns the displayed category title, not slug.

Yoast taking over my WordPress title tag [closed]

That’s not what the SEO title does/is for. It appears that you’ve used the wp_title() function in your template by mistake. wp_title() is intended for use in the <title> tag in the <head> for setting the browser tab/document title. However, since WordPress 4.1 this has been superseded (but not officially deprecated, yet) by add_theme_support( ‘title-tag’ … Read more

Conflict calling an add_filter() twice

Filters get queued and sorted by priority, then order of occurrence. Filters’ default priority is 10, unless otherwise specified. The order of occurrence can be affected by the order plugins get fired (alphabetical, by plugin name). So, when you started poking at this, both filters had equal priority. That would mean a rather arbitrary factor … Read more

wp-admin send 404 error

…what @sally_CJ said in the comment to your question. In general, if a plugin is causing problems, then remove the plugin. If you can’t do that with admin/plugins, then use your hosting File Manager or FTP to rename that plugin’s folder, which will effectively disable it. Also, ensure that PHP is at least version 7.2, … Read more

How-to: This block can only be used once

WordPress doesn’t put restrictions on third-party blocks. The only way to ensure a block can be added only once per post (or Page, or CPT) is when registering it – meaning the restriction was added by Yoast. You could look into modifying the block yourself but there is usually a good reason when an author … Read more