WordPress.org

Ready to get started?Download WordPress

Forums

Missing some comas somewhere!? (3 posts)

  1. quebecostarica
    Member
    Posted 8 years ago #

    I just want to get a side block with one specific ategory in it. The codehere is missing something:

    <h4>My Cyber Blog:</h4>
    <div class="leftsideSection">

      <?php list_cats('2'); ?>

    </div>

    How to get cat "2" (in this example) listed and only that one??

    Thanks

    Roger Pilon,Editor
    http://www.yourcybercafe.info
    CyberCafe World Wide Resources Directory

  2. Beel
    Member
    Posted 8 years ago #

    If you only want one category to show, why bother with a template tag? Just hard code the link and get on with it. The tag is for listing all categories and you can "not list" some by excluding them.

    The instructions might help...
    http://codex.wordpress.org/Template_Tags/list_cats

  3. lynx
    Member
    Posted 8 years ago #

    Jip this sounds more effective for me too. Sometimes using template-tags is a bit overhead....

Topic Closed

This topic has been closed to new replies.

About this Topic