JSON - featured image/thumbnail
- Started
- Last post
- 10 Responses
- dbloc
Trying to figure out how to pull in either the first image or the featured image using JSON. Anyone have any experience with this?
- dbloc0
this is the wordpress plugin by the way
- aaux0
Read the accepted answer on this question:
http://wordpress.stackexchange.c…
Goes over in detail how to create and read a custom bit of ajax/json from Wordpress.
- dbloc0
anyone else?
- dbloc0
bumpy
- uan0
I don't get what the question is, maybe read the jquery docs on getjson, they got some img examples:
- dbloc0
I'm using JSON to get the post data to another website. Just can't figure out how to get the featured image
- uan0
do you want to create the json string?
or do you want to read from an existing json string?are the 'first image' or 'featured image' on your page and you need to find them, and then encode its url into a json string to send to another server?
- dbloc0
trying to pull the featured image from a json feed. I have everything else working...just the image I can't figure out.
http://pastie.org/4475022
- ********0
This can't work , they dont serve their feed as json.
- who? wordpress?dbloc
- the link in the $.getJSON function is a xml feed not a json********