Support » Plugin: Advanced Text Widget » 'post in category' problem (Advanced Text Widget)

  • Resolved eyale



    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:

    and here is the link to the homepage where the same image should not appear:

    BTW – the ‘Category’ rule doesn’t seem to work at all.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Max Chirkov


    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:

    Thread Starter eyale



    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.

    Plugin Author Max Chirkov


    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! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘'post in category' problem (Advanced Text Widget)’ is closed to new replies.