Link category assignment in code
I have a section in my homepage that shows an “Important Links” section. Links that show up here are the ones that I add through wordpress interface (Write | Links). I am trying to do the same I did with the post section in which I just modify the category in the code
[code]<?php $recent = new WP_Query(“cat=32,33,34,35 &showposts=3”); while($recent->have_posts()) : $recent->the_post();?>
and only those assign to that category will show up. I want to do the same thing with links so only links assigned to the category I specified in the code will show up in that section, however I can not figure it out. You can check my actual php for the link section I actually have. Thks!
<?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(4) ) : else : ?>
- ‘, ‘
<?php get_links(-1, ‘
‘, ‘ – ‘); ?>
<div class=”style27″ style=”padding-top:10px; border-top:1px dotted #C0C0C0; clear:both;”></div>
<div class=”style27″ style=”float:right; margin:0px 0px 5px 0px;”>
- The topic ‘Link category assignment in code’ is closed to new replies.