json - Tumblr API - exclude results by tag -


i'm making site feed runs off of tumblr. there's 1 section general posts , section "featured" posts, specified tag (ie #featured).

i'm trying prevent same post showing in 2 different spots on same page, general feed section, there way have exclude posts #featured?

when post object processing can check

if(!in_array($tag_to_exclude, $post->tags)) {     // post not contain tag - display ... } 

i'm guessing grab $apidata->response->posts , run foreach loop? otherwise feel free ask more info


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -