Ok, I think I understand what you’re asking, but want to clarify : you want to display certain link categories only on certain pages?
If so, this can be done by setting up a separate template for each page, or if it’s posts, for that category of posts.
Basically, you would use wp_get_links to snag the links category that you want for the template.
I’ve tried <?php wp_get_links(category#); ?>, however it does not work in pages.
In fact I use <?php wp_get_links(2); ?> to display city-specific links in my sidebars.
I’d like to use like:
city links page <?php wp_get_links(2); ?>
se idaho links page <?php wp_get_links(3); ?>
statewide links page <?php wp_get_links(4); ?>
etc.
… later …
Hey what do you know months of late night frustrations are over, I got it to work!
I downloaded runPHP plugin before, but never did the critical step of checking the ‘runPHP code?’ in the sidebar of the page admin on that particular page!!!
So anyone else wanting to do this:
1 Install runPHP plugin
2 Create a page for each link category you wish to display on individual pages
3 Place a <?php wp_get_links(1); ?> on the page, with the number in parentheses corresponding to the ID number of the link category you with to display.
4 Check the little box next to ‘run PHP code? that appears in your sidebar underneath postslug/post author/page order
Resolved, thanks!
D’oh! I’ve done that before, hehehe 🙂
Good to hear everything’s working. 😀
hi – sorry to bring up a past thread. i’m new to wordpress.
i’d like to link specific pages to specific categories and am trying to follow your instructions, but am stuck.
my goal is to get medicalpress.chifountain.com so that the “MEDICINAL MODALITIES” page would bring up the side bar categories with the *asterisks on them and “HEALTH TOPICS” would only pull up the health topic categories.
i am running a test site for this on sfosteopath.com/test. i got as far as installing PHP and am not sure how to do steps 2-4. where, for example do i “Place a <?php wp_get_links(1); ?> on a page”? (ie. what file would i change).
thanks in advance,
miki (san francisco)