WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] removal of link description from Front page

[Resolved] removal of link description from Front page

  • I would like to stop the description of links from appearing on the front page of my site.
    This can be done when altering the links categories settings, but the effect is global.

    I want the description on the links page, but not on the front page.

    Any ideas on how this can be done would be greatly appreciated.

    Thanks in advance,
    G

    P.S. my site – http://www.while.co.uk

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    What description? What links? I looked at your site, but it’s not clear as to what, exactly, you’re wanting to do.

    Hi, sorry if I wasn’t clear enough.

    In the sidebar of my site, ‘Music’ and ‘Skating sites’ are link categories which, I believe, are called by the code ‘get_links_list()’ found in sidebar.php.

    There are currently no descriptions as I have disabled them in the ‘Link Categories’ section of the ‘Links’ tab in my WP control panel. This has disabled the descriptions on the ‘Links’ page as well, however, I would like the descriptions to appear on the ‘Links’ page.

    I am currently making a theme for my site, please excuse the difficult navigation 😉

    Cheers,
    G

    Quickly: Make extra link categories without link descriptions for your index page

    Thanks for the suggestion Evita, but is it very complicated to do with php?
    I would like to know how to do it.

    ‘Teach a man to fish..’ an’ etc etc 😉

    Maybe it can be done, but I am only a little wordpress user. Sorry, but you have to wait for an answer of the real experts .

    No problem, although, you most certainly know more than me!

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Ahh.. I see what you’re talking about.

    Well, first, I prefer to use wp_get_links() instead of get_links_list(), because wp_get_links() actually respects the “before”, “after”, and “between” parameters available with the link categories. This gives me somewhat more configurability in the long run.

    Back on topic, if you want to display links in a custom way (like on your links page), then I’d write your page to use the more direct get_links() code. It gives you more control over what’s what.

    http://codex.wordpress.org/Template_Tags/get_links

    Unfortunately, the codex seems to be down right now, however, here’s the Google cache of the page:
    http://72.14.203.104/search?q=cache:dWO5Bq_muycJ:codex.wordpress.org/Template_Tags/get_links

    Thanks for that Otto42.

    That’s got it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] removal of link description from Front page’ is closed to new replies.