• Resolved baggi-t

    (@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)
  • Thread Starter baggi-t

    (@baggi-t)

    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 7 years, 4 months ago by baggi-t.
    Plugin Author WPChef

    (@wpchefgadget)

    Hi baggi-t,

    Sounds good, thank you for sharing the solution!

    [ Signature deleted ]

    • This reply was modified 6 years, 3 months 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.