Display image next to category related post title

Asked

Viewed 119 times

0

I need to display an image related to the post next to the title of post, then I installed the plugin Taxonomy Images.

I’m trying to make the display through the command used by the documentation:

print apply_filters( 'taxonomy-images-queried-term-image', '' );

But unfortunately it doesn’t work. Someone has already done something like this and can recommend me some other plugin or help me in running this?

1 answer

1

try this:

print apply_filters( 'taxonomy-images-list-the-terms', '', array(
    'before'       => '',
    'after'        => '',
    'before_image' => '',
    'after_image'  => '',
    'image_size'   => 'detail',
    'post_id'      => get_the_ID()
) );
  • It worked! Thank you! I just added a few more things that you specify to the project. Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.