How to put homepage external links in the wordpress site

by mark07
3 replies
I have a wordpress site: vitamin-resource (dot) com where i put homepage link in the sidebar. The problem is that these links show in the homepage but also show in these below pages:

vitamin-resource (dot) com/page/2
vitamin-resource (dot) com/page/3
vitamin-resource (dot) com/page/4 ...... and more.

But i want to show these links only in the homepage not other pages.
I use widget logic plugin for this purpose.

Please suggest me how can i solve this problem.
I really appreciate for your help.

Thanks
#external #homepage #links #put #site #wordpress
  • Profile picture of the author tajimd
    Add the following code in widget logic plugin which you want only shown on Homepage:

    is_home()

    and if that does not works then use

    is_front_page()

    and it will only show up on Homepage.
    {{ DiscussionBoard.errors[7159563].message }}
    • Profile picture of the author mark07
      Originally Posted by tajimd View Post

      Add the following code in widget logic plugin which you want only shown on Homepage:

      is_home()

      and if that does not works then use

      is_front_page()

      and it will only show up on Homepage.
      Before i try is_home() and now i try with is_front_page(). But same problem. Still links show in the pages.
      Signature

      New look for future Auto paradise. | Do you want education help : please visit

      {{ DiscussionBoard.errors[7159588].message }}
  • Profile picture of the author boilingstocks
    You can also use this in the widget logic plugin

    $home = $_POST['page_id'];
    if($home==Yourpageid)
    {
    show the code
    }

    *********

    if it goes to any page other than the home page it won't show up.

    Please make sure the url format you are using should be yoursite.com/?page_id=
    for this script to work.
    {{ DiscussionBoard.errors[7159592].message }}

Trending Topics