WordPress.org

Ready to get started?Download WordPress

Forums

php _e() for link list? (5 posts)

  1. randybrown
    Member
    Posted 10 years ago #

    I notice that <?php get_links_list(); ?> does not include a call to _e() like the other items in menu class, e.g.: <?php _e('Categories:'); ?>. Therefore, the display text can't be easily modified, and is not consistent with the other items in menu class.
    <rb>

  2. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    There is no separate header before get links list like there is for "Categories:", "Archives:", etc. As for the output of get_links_list() itself, it displays the link category names in the database. If you want different names, you have to change the names through the link manager.

  3. randybrown
    Member
    Posted 10 years ago #

    rboren: I know that there is no header for the "get links" function; that's what I was asking for.
    It's an inconsistent design decision - it seems to me - that there is not a header. All other elements that one would place within the menu region have a header - why not the "links"?
    Why should users need to tweek the .php file for this, rather than the index? Just seems like an oversight to me....
    <rb>

  4. Beel
    Member
    Posted 10 years ago #

    RB: If I follow you correctly, there is a header but it comes from the Link Categories named by the user. I have a "Links:" and "Blogs:" category. There is no need for a header in the menu, otherwise it would cause an inconsistent display:
    Links:
    Links:
    blah-blah-blah
    Blogs:
    Blah-blah-blah

  5. randybrown
    Member
    Posted 10 years ago #

    Ah.... OK, I see now. I can alter the name under "Links" in admin. Plus, I can add additional categories and organize links under those.
    Got it! Thanks.
    <rb>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.