WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Text Widget
[resolved] 'post in category' problem (Advanced Text Widget) (4 posts)

  1. eyale
    Member
    Posted 1 year ago #

    Hi,

    First I wish to say that I'm enjoying very much using your widget. I intent to purchase the premium version when the site is a bit more developed.

    I upgraded recently to 2.0.4 and am now encountering a very strange problem - when I use the 'post in category' rule to try and show an image in the header of blog posts with a certain category name, the image also appears under the header on the homepage. This only started with the upgrade. It worked perfectly before.

    Here is a link to a post where the image appears just right: http://bit.ly/12GXlvp

    and here is the link to the homepage where the same image should not appear: http://bit.ly/VWuY6x

    BTW - the 'Category' rule doesn't seem to work at all.

    Thanks

    http://wordpress.org/extend/plugins/advanced-text-widget/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    Let me address each of your concerns:

    1. Post in Category - will display widget on the archive page of that category, on the single post pages that belong to the specified category and on an archive page where at least one post belongs to the specified category (for example it can be a blog's main page, and if even 1 post on that page belongs to the category - the widget will be displayed). You can customize or add another rule to display only on single post pages that belong to a category. Something like this should work:
    in_category($arg) && is_single()
    the above condition will make sure that the current page belongs to a specified category and the page is a single post (not archive).

    2. I tested 'Category' option on my dev server and it seem to be working correctly - the widget is being displayed only on archive page (list of posts) that belongs to a specified category. Widget will not appear on single posts pages nor it will appear on blog page with mixes categories.

    Hope makes things a bit more clearer for you. BTW, there were no changes related to conditions in the last updated - the are exactly the same as in previous version. Remember - the main beauty of this plugin is that you can add your own custom conditions and use them at your will. Here is a Codex page on WordPress conditional tags: http://codex.wordpress.org/Conditional_Tags

  3. eyale
    Member
    Posted 1 year ago #

    Hi,

    Thanks so much for your help. Your rule works perfectly.

    Please allow me to add that out of the gazillion WP plug-ins and widgets I tried and tested, your widget is the most useful I came across.

  4. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the kind words! I primarily built it for my personal needs and only later shared it publicly. Glad others find it useful as well :) Merry Christmas! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic