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.ww.wp.xz.cn/Conditional_Tags
Thread Starter
eyale
(@eyale)
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.
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! 🙂