Support » Plugin: Widget Logic » is_home() but also show up at page 2

  • Resolved abeng

    (@abeng)


    I’m using wordpress 3.6.1 and widget logic 0.56

    I’m using blogroll and want to display at homepage only with : is_home()

    The blogroll is not shown up at article.

    But the blogroll also display at domain.com/page/2

    Please fix that because i need to display at homepage only. Thanks..

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • is_home() is still true at /page/2, so if you don’t want things appearing there, you need to update your widget logic. I *think* that the /page/X URLs set a global variable $paged to X – but there is some confusion in the forums and the documentation is quiet.

    either way try something like

    global $paged; return is_home() && !$paged;

    Hi dear aalanft, i was using newest widget logic version 0.56

    So, what must i do for displaying only at homepage?

    is_home() && !$paged

    or

    global $paged

    Thanks before..

    do you have a static home page, or is that the posts page?

    for the posts page, try:

    is_home() && !is_paged()

    http://codex.wordpress.org/Conditional_Tags

    thanks, yes !is_paged() is the way to go – cheers alchymyth

    It’s work.. Thanks..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘is_home() but also show up at page 2’ is closed to new replies.