By drupalninja99 on
I would like to create a PHP Block that displays the most recent "sticky" node of taxonomy term "Promo Image" which is a gallery in "Image Galleries." Basically the point of this is to show an Promotional Image in a block on the homepage.
I thought I could get this done with node_load() but I doubt I can give taxonomy conditions with node_load. I'm guessing I need my own query so I'm scared. Help me.
Jay
Comments
Hmm
Would it involve a "LEFT JOIN where tid = 1 ON nid" or something to that effect?
I don't have a quick answer
But find a php snippet (in the handbook) that shows the most recent node of a taxonomy, and add in the sticky criterion to the query. I think sticky is a node status result you can query.
I'm just saying how I would do it, and that may not be the best way.
Laura
_____ ____ ___ __ _ _
pingVision, LLC • BlogHer • rare pattern • scattered sunshine
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet