L
liz14
Guest
liz14 Asks: Wordpress REST API - get custom taxonomy category posts
I want to use Wordpress REST API to get the posts that are inside a custom taxonomy created by the theme.
The taxonomy is called "my_portfolio_category", inside this taxonomy I have 4 categories that are called: "photo", "video", "design", "web".
I want to retrieve the posts inside the category "photos" but the only thing I managed to get is the category info.
The API I used is the one down below where 921 is the ID of the category "photo", using the slug doesn't work.
https://www.mywebsite.com/wp-json/wp/v2/my_portfolio_category/921
Is there a way to get the posts?
I want to use Wordpress REST API to get the posts that are inside a custom taxonomy created by the theme.
The taxonomy is called "my_portfolio_category", inside this taxonomy I have 4 categories that are called: "photo", "video", "design", "web".
I want to retrieve the posts inside the category "photos" but the only thing I managed to get is the category info.
The API I used is the one down below where 921 is the ID of the category "photo", using the slug doesn't work.
https://www.mywebsite.com/wp-json/wp/v2/my_portfolio_category/921
Is there a way to get the posts?
SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, solveforum.