• greenflag

    (@greenflag)


    i am looking to remove a function from the homepage only. this is the code i use:

    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

    i want to make it so it will NOT show on homepage, but everywhere else.

    is there code to exclude it from showing on homepage? if so – what is it? ty

Viewing 2 replies - 1 through 2 (of 2 total)
  • vtxyzzy

    (@vtxyzzy)

    Give this a try:

    <?php if(function_exists('wp_pagenavi') && !is_front_page()) { wp_pagenavi(); } ?>

    Thread Starter greenflag

    (@greenflag)

    i love you! jk thanks it worked. good karma coming your way, vtxyzzy!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove function from homepage only’ is closed to new replies.