[resolved] Show links from the Links page inside a post for selection (1 post)

  1. Yojance Rabelo
    Posted 4 years ago #

    Hi there,

    I'm trying to create a small list of links of Online payment providers like CCBill and others and I want to use WordPress's built in Links Manager to add a list of predetermined links assigned to a link category. Once I add those links, I would like to show them on my Custom Post Type page through a custom meta box on the side, where each link would be a checkbox.

    I have everything ready, the metabox, the CPT and all I need to do is pull the list of links which belong to "x" category.

    So far, I have done this:

    $link_category_name = get_term_field('name', 3, 'link_category');
    echo $link_category_name;

    That shows the correct Link Category name, but I don't know yet how to pull those links that belong to link_category 3.

    I'm sure is one of those taxonomy functions but I can't think of how to do it. Maybe someone can point me to the right function or an article. on pulling those links from the database. I will handle all the saving and later showing on the site's front-end.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.