WordPress.org

Forums

Unique Headers
[resolved] Different header images for different categories? (9 posts)

  1. kitfreeman
    Member
    Posted 1 year ago #

    Hi

    I have created two virtual blogs from a single install, using two basic categories and a menu link to each category. Now I'd like to have a different header image (banner) for each virtual blog -- i.e., I'd like posts to show a different header image depending on whether they belonging to one basic category or the other. Can you tell me, please, if your plugin do this? I'm using WordPress 3.9.1 and my theme is Atahualpa.

    Best, Kit

    https://wordpress.org/plugins/unique-headers/

  2. Ryan Hellyer
    Member
    Plugin Author

    Posted 1 year ago #

    The complication with doing that, is that posts can have multiple categories. You aren't the first person to ask for this functionality though, so I wrote a separate plugin which will add support for grabbing the first category it reads in and using that. If you only set one category per post, then you won't experience any problems. But if you have two categories, then you won't have any way to choose which of those two is used for the header image.

    http://geek.ryanhellyer.net/products/unique-headers-single-posts/

    This plugin is not in the WordPress.org plugin repository, so you will need to install it the old fashioned way.

  3. kitfreeman
    Member
    Posted 1 year ago #

    Thanks for your reply. The new plugin looks great! With regard to the multiple category problem, would it be possible to allow the user to set which category the plugin should use, if there are more than one? With that addition, the plugin would do exactly what what I want!

  4. Ryan Hellyer
    Member
    Plugin Author

    Posted 1 year ago #

    That would add too much complexity for my liking. It would also require an extra database query, which I wouldn't want to add for something so simple.

  5. kitfreeman
    Member
    Posted 1 year ago #

    Ah. I see. With the current version, if a post has only parent category, and all others are children, will the plugin always select the parent? That should do what I want.

  6. Ryan Hellyer
    Member
    Plugin Author

    Posted 1 year ago #

    It will pick whatever comes up first. It is possible to add in a check for parent vs child though.

  7. kitfreeman
    Member
    Posted 1 year ago #

    Is there any chance you might add the check, please? :) I'm sure others would like to have a plugin with this function...

  8. Ryan Hellyer
    Member
    Plugin Author

    Posted 1 year ago #

    I don't have enough to make another plugin sorry.

  9. kitfreeman
    Member
    Posted 1 year ago #

    I understand. Thanks for your replies. Best wishes!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Unique Headers
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic