• Hi everyone.

    I desperatly need help with images in my posts.
    I want to assign a category images automatically to each and every post i make. I wrote this line within the exerp

    <img src=”http://url.com&lt;?php echo the_category_ID() ?>.png” alt=”Category: <?php the_category() ?>” />

    It works fine exept two thing.
    1. I use different categories and some news-items are posted in multiple at the same time. For example news (main category) & politic (sub category) or entertainment (main category) & film (sub category).

    Now when i select multiple categories the image that shows is the main category. Is it somewhere possible to show the last category checked?

    For example (* is selected)
    News *
    – Politic
    – Economic *
    Entertainment
    – Film
    – Literature
    – Music

    The economic image appears instead of the newsimage?

    I also tried the plugin category images but for some reason it doesn’t work.. (no images displayed).

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am not 100% sure, but this Top Cat plugin might help:
    http://wordpress.org/support/topic/34427

    Thread Starter ic3y

    (@ic3y)

    Thank you for your reply Moshu,

    I installed it without any problems, but the id in <img src=”http://url.com&lt;?php echo the_category_ID() ?>.png” alt=”Category: <?php the_category() ?>” /> always remain the same. No matter what radiobutton i use.

    Top Cat or something simular is what iam looking for i assume. Thanks a lot for the tip. I’ll contacted Bennett from Top Cat and if it works out i’ll post the solution to all my posts so everyone can enjoy it 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post with image’ is closed to new replies.