How to show image url of taxonomy term?
Sorry to ask this basic question: but I am still really confused by what to do in order to show the image itself in e.g. the header.
I understand the previous do_action in the screencast was deprecated in 0.6, but being the PHP newbie that I am, I am having difficulty figuring out exactly how to use the apply_filters function.
For instance: in the Twenty Ten header.php section (using a child theme) I would like to use something along the lines of:
elseif (is_tax() || 'book' ==get_post_type() && $image_url= apply_filters( 'taxonomy-images-queried-term-image-url', '' )) : ?> <img src="<?php $image_url; ?>" />
I know this code doesn’t actually work at the moment, but is this the right way of using the apply_filers function?
Many thanks in advance and sorry for the newbie question!
- The topic ‘How to show image url of taxonomy term?’ is closed to new replies.