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.
Related Posts:
- Get all tags not just first 10 with wp api 2.0
- WP API: Get posts excluding those with a tag or category name
- Outputting HTML elements through WP-API
- Problems with tags
- Hiding WordPress REST API v2 endpoints from public viewing
- Get post count in wp rest API v2 and get all categories
- Query WP REST API v2 by multiple meta keys
- Why is wp_kses not keeping style attributes as expected?
- How do I cache (core) API requests?
- WP REST API only returning partial list of users
- Order tags, but not alphabetically
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- WordPress: Can I add categories/tags to all sites in my network at once?
- How to Get Next or Previous Post in a Specific Tag?
- How do I display a tag cloud under my post that only shows tags from that post?
- Display list of most used tags in the last 30 days
- Check if current page has given tag ID
- how do I get the tag name from tag id?
- Do tags have dates?
- Are there server performance benefits to fetching only specific fields when querying the REST API?
- wp rest api v2 return json_no_route
- Stop wordpress from removing HTML attributes
- Retrieving pages with multiple tags using REST API
- What is the difference between terms and tags?
- Stop WordPress From Removing HTML Comments In Content
- WP-REST API not returning all its endpoints, 404 on documented endpoints
- How can I let my audience tag my posts?
- Display tags in list without link
- WP Rest API v2 filter and display latest post with specific tag
- how can I use WP_Query to exclude a specific tag.?
- How can you tie into the tag metabox?
- WordPress Rest API: How do we validate with our custom API key?
- How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?
- not functioning
- How to loop through JSON data in wordpress WP REST API
- How to use the Tag description as the title attribute?
- Best way to show map of tagged posts?
- How to display the_tags() as plain text
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- Query all posts with specific tag
- How to query with get_posts() for posts with any tag
- WP Rest API v2 return posts with specific tag
- How to remove Tags: text from the_tags?
- Change tooltip in tag cloud
- Getting an ordered list of tags – via wp_tag_cloud or not?
- Is it possible to filter get_adjacent_post() with tags?
- Apply class to the a tag link generated in post tag links
- What are allowedposttags and allowedtags?
- Display tags for current post in sidebar
- WP API : date_query parameter
- How to filter or search the posts using postmeta tables custom meta fields with wordpress REST API
- How to allow user to perform search by more than one tag
- Hiding API routes list
- When switching from html to visual editor the tag gets erased
- How important are WordPress tags for SEO purposes?
- get_post_ancestors returns empty
- WP REST API V2 – Modifying responses
- Combining tags from post types
- Display tags belonging to a specific post type only
- Allow visitors to search by multiple tags (specific IDs)
- List ‘n’ number of posts from a Tag, each with a different class or ID
- Get the Category Name instead of ID from WP-API
- Showing all tags in admin -> edit post
- Get more than 10 posts in a specific category with the wordpress api
- Redirect Tag to Post with the same name
- Add exception for specific tag
- WP REST API – Retrieve content from page
- Creating a Lightweight Media Tags Plugin with a Custom Taxonomy
- Link from tags to tag pages displaying all posts with that tag
- Displaying the most recently used tags
- Limit tag word count
- When are tags counted? Can it be trigered manually?
- How can I extend Quick Edit option with 2 more fields
- Can’t Get ‘tag’ Page To Display only Tagged Posts
- How to separate the tags?
- alt attributes not showing on pages
- Creating a unique, linked list of tags from a specific category?
- Massive Tags Remove Using MySQL
- Add # before each tag
- Quicktags on all textarea.. Not working on plugin?
- term/tag not being saved for custom post type
- display tag slug as class per link in tag cloud
- how to change # of tag posts on /tag page?
- require one tag for each post
- How can I remove certain HTML tags from the RSS feed?
- Stop WordPress removing tags when switching from HTML to Visual (TinyMCE)
- WP API Get post with tag names instead of tag ID’s
- wordpress custom endpoint multiple params
- How to add class on term link?
- Can we access the REST request parameters from within the permission_callback to enforce a 401 by returning false?
- Link directly to the first post in an archive
- Set homepage to only display posts from one tag
- get_terms with more than x post count
- Tags as a dropdown with set tags
- Why ‘C++’ tag is converted to ‘C# ‘?
- Change the color of post title on specific tags
- How to show tags in posts, orderby count(most used) not alphabetically?
- Individual css class for each tag in wp_tag_cloud
- Strict tag list – user should choose only existing tags for posts