Support » Plugin: Widget Logic » Category archive first page only

  • Resolved baggi-t


    I’m trying to place a widget only on the first page of a category archive. I am able to place the widget in the category archive using is_archive(‘category1’) but this places it on all the archive pages, I just want my widget to appear of the first archive page. How do I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve figured it out.

    The first archive page is considered ‘unpaged’, so has no ‘pagination’. Every page thereafter in the archive (page 2 and onwards) is ‘paged’. Thus by using !is_paged() in Widget Logic you can select the first page of the category archive and exclude all the rest.

    • This reply was modified 1 year, 2 months ago by  baggi-t.
    Plugin Author wpchefgadget


    Hi baggi-t,

    Sounds good, thank you for sharing the solution!

    [ Signature deleted ]

    • This reply was modified 2 months, 1 week ago by  Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category archive first page only’ is closed to new replies.