Replies: 0
Hi everyone,
I’m new with WP and I have a problem. I have created a CPT ‘project’ and i would like to use the featured image of my projects. I use the endpoint ‘http://localhost:8080/Wordpress/ytic-project/back/public/wp-json/wp/v2/project?slug=olala’ to find my data by slug. That works but i haven’t the URL of the featured image.
I look on google and i found the solution to add “embed” in my endpoint. I tried it with ‘?embed’ ‘?_embed=true’ ‘?_embed’…. ( http://localhost:8080/Wordpress/ytic-project/back/public/wp-json/wp/v2/project?slug=olala?_embed=true ) but i get an empty array…..
Someone could help me please ?
Thank’s ! 🙂