Get taxonomy image in a feed
-
I want to include a reference to the taxonomy image (the image associated with the sole category on the post) in my post’s Atom feed (generated by my template in a file called feed-atom.php).
I included the following at the appropriate place in the loop …
<media:thumbnail url="<?php $image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' ); echo $image_url; ?>" height="100" width="100" />
… but no URL gets generated in the appropriate spot.
Either I’m doing something stupid here, or for whatever reason this won’t work for this particular template file. Any suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get taxonomy image in a feed’ is closed to new replies.