any plugin to show link only on the homepage

Discussion in 'WordPress' started by falguni1, Jan 20, 2009.

  1. #1
    any plugin to show link only on the homepage.

    I want to show certain links only on the first page and not all pages of my blog.
    I am using wordpress.
     
    falguni1, Jan 20, 2009 IP
  2. checkmeeveryday

    checkmeeveryday Banned

    Messages:
    464
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    checkmeeveryday, Jan 20, 2009 IP
  3. maddest_lover

    maddest_lover Guest

    Messages:
    1,110
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    k listen what u can do is just call the links manually on the homepage. If you know the coding u understood what I am trying to say. Find a place in index.php n place your links there.
     
    maddest_lover, Jan 20, 2009 IP
  4. falguni1

    falguni1 Peon

    Messages:
    3,016
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what I want to do is show a link only on the homepage and not on the other pages.

    I want a free plugin for this.
     
    falguni1, Jan 21, 2009 IP
  5. mdamin76

    mdamin76 Well-Known Member

    Messages:
    1,752
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    153
    #5
    Haven't heard about the plugin, but there's php code that you can implement on your theme, something like "<php if>". Anybody can give the accurate code, please?
     
    mdamin76, Jan 21, 2009 IP
  6. devilkitty

    devilkitty Peon

    Messages:
    303
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #6
    <?php if ( is_home() || is_page() ) { ?>
    <a href="URL">Anchor</a>
    
    <?php } ?>
    PHP:
    The above should do exactly what your looking for :)

    Hope it helps
    Dan
     
    devilkitty, Jan 21, 2009 IP
  7. MiaK

    MiaK Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try Widget Logic (cannot post link here yet :( ) wordpress.org/extend/plugins/widget-logic/
    This plugin gives every widget an extra control field called "Widget logic" that lets you control when the widget appears, using Wordpress tags like is_home(), is_frontpage(), is_single() and so on.
     
    MiaK, Jan 21, 2009 IP
  8. falguni1

    falguni1 Peon

    Messages:
    3,016
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I used the exact code in text widget in my wordpress blog, it is working.
    but the link is seen on all pages.

    what changes to make to the code.
    I want it to be seen on homepage only.
     
    falguni1, Jan 21, 2009 IP
  9. paganheart

    paganheart Peon

    Messages:
    107
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I have found that the text widget does not always produce the result you want. You'll likely have to use that code in the theme page itself, use the back end editor and place the code in the sidebar.php of the theme. Try that.
     
    paganheart, Jan 21, 2009 IP
    devilkitty likes this.
  10. devilkitty

    devilkitty Peon

    Messages:
    303
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #10

    Try it without the Widget, add it directly into your theme files. Thats how i have mine :)

    (Just as paganheart mentioned. +rep)
     
    devilkitty, Jan 21, 2009 IP