WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] removal of link description from Front page (9 posts)

  1. garret
    Member
    Posted 7 years ago #

    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

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

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

  3. garret
    Member
    Posted 7 years ago #

    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

  4. Evita
    Member
    Posted 7 years ago #

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

  5. garret
    Member
    Posted 7 years ago #

    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 ;)

  6. Evita
    Member
    Posted 7 years ago #

    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 .

  7. garret
    Member
    Posted 7 years ago #

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

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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

  9. garret
    Member
    Posted 7 years ago #

    Thanks for that Otto42.

    That's got it!

Topic Closed

This topic has been closed to new replies.

About this Topic