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.
- The topic ‘Show links from the Links page inside a post for selection’ is closed to new replies.