How to write code in wordpress to list links of posts which is in a specific catagory

Discussion in 'Programming' started by salsan, Feb 1, 2010.

  1. #1
    How to write code in wordpress to list links of posts which is in a specific catagory ? :rolleyes:
     
    salsan, Feb 1, 2010 IP
  2. Mr.AD

    Mr.AD Member

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Hi,

    http://codex.wordpress.org/Template_Tags/wp_get_links
    Code (markup):
    Example:
    Show links for link category 1.

    <?php wp_get_links(1); ?>
    PHP:
    Do not forget search with Google before ask :D
     
    Mr.AD, Feb 2, 2010 IP
  3. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #3
    
       <?php
          $catposts = get_posts('numberposts=5&category_name="cateogry name"');
          foreach($catposts as $post) :
    
       ?>
    
    PHP:
    Q...
     
    QiSoftware, Feb 2, 2010 IP