Widget Logic
[resolved] Logic for the first page of a category archive ONLY (4 posts)

  1. Rgsmith08
    Posted 4 years ago #

    Hello all - love the plugin, but I was wondering if there was a way of limiting a widget to appear ONLY on the first page of a category archive? I have category archives with multiple pages, but want the widget to appear only on the front page of those archives.

    Is such a thing possible?

    For example, widget should appear on http://mydomain.com/category/sports/

    but NOT on http://mydomain.com/category/sports/page/2/
    http://mydomain.com/category/sports/page/3/ etc etc

    Many thanks in advance!


  2. Michael
    Forum Moderator
    Posted 4 years ago #



  3. Rgsmith08
    Posted 4 years ago #

    Hi alchymyth - I just wanted to drop a note here to say THANK YOU very much for above code. I spent four hours last night playing with conditional tags and simply couldn't get it to work. But just now I copied and pasted your code (adding my cat number), and it worked perfectly.

    You Sir, are a genius.

  4. Rgsmith08
    Posted 4 years ago #

    Post to mark issue as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.