• Hello,

    I am trying with this code:

      <?php get_links(2, ‘

    • ‘, ‘
    • ‘, ”, TRUE, ‘url’, FALSE); ?>

    To shows links in a curtain category. But how do i select the category.

    the category i use is names “New at THLOG”
    But it think i need a category number but i can’t find this any where.

    any ideas how to just show links out of one category?

    Thanks,
    George

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    get_links is a deprecated function. Use wp_list_bookmarks() instead.

    When clicking on the category under Links > Link Categories you see something like this in your browser’s address bar: wp-admin/edit-tags.php?action=edit&taxonomy=link_category&tag_ID=2&post_type=post

    this part is the category ID : &tag_ID=2

    Thread Starter ghp123

    (@ghp123)

    @keesiemeijer

    Thanks never thought of looking in the status bar for the tag_id 🙂
    (maybe because it was off in safari)

    It works now.

    Moderator keesiemeijer

    (@keesiemeijer)

    glad you got it resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_Links and category selection’ is closed to new replies.