WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Show widget on homepage, but not on page 2 (5 posts)

  1. StandardAaron
    Member
    Posted 1 year ago #

    Hi

    I'm trying to show a widget on the frontpage of my blog, and right now I'm using is_home() in WidgetLogic.
    When I do that, the widget shown on the home page of the blog, but also on page 2, 3, 4 and so on when clicking on "Older posts".

    How do I get the widget to show ONLY on the index page of the blog, and on no other pages?

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    You should be able to use the get_query_var('paged') as recently tried here

    http://wordpress.org/support/topic/plugin-widget-logic-menubar-wont-show-on-page-234-etc

  3. StandardAaron
    Member
    Posted 1 year ago #

    Unfortunately, that don't seem to work either. But thanks for the help!

    I really don't get this... :(

    The site is http://aaronaxelsson.com/ if that's any help, and it's the widget with a pic and text just under the header that I'm trying to fix.

  4. StandardAaron
    Member
    Posted 1 year ago #

    I found a solution!

    When I put the code: is_home() && !is_paged() it all worked out as I wanted it to!

  5. alanft
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.