WordPress.org

Ready to get started?Download WordPress

Forums

I Need To Modify This Code (6 posts)

  1. Mr_Sykes
    Member
    Posted 4 years ago #

    I need to know how to modify this little bit of code show it show my links in the header bar and not the categories, or if thats not possible modify it so i can chose what categories it shows...

    <div id="catcontainer">
    <div class="cat_navigation">
    <div class="wrapper">
            <ul id="catbar">
    <?php $exclude = $myOptions['cat_excl'];?>
    <?php if(!$myOptions['cat_limit']) {
    $limit = '10'; } else {
    $limit = $myOptions['cat_limit'];
    }</blockquote>
    if($myOptions['cat_limit'] == '0') {
    $limit = 0;
    }
    ?>
    	<?php wp_list_categories("exclude=$exclude&title_li=&depth=2&number=$limit"); ?>
    	</ul>
  2. MichaelH
    Member
    Posted 4 years ago #

  3. Mr_Sykes
    Member
    Posted 4 years ago #

    So I just take out wp_list_categories() and put in the code and it should work? if you can, can you just give me the code modified so I can just copy it
    - Thanks

  4. muthukswamy
    Member
    Posted 4 years ago #

    <div id="catcontainer">
    <div class="cat_navigation">
    <div class="wrapper">
            <ul id="catbar">
    <?php $exclude = $myOptions['cat_excl'];?>
    <?php if(!$myOptions['cat_limit']) {
    $limit = '10'; } else {
    $limit = $myOptions['cat_limit'];
    }</blockquote>
    if($myOptions['cat_limit'] == '0') {
    $limit = 0;
    }
    ?>
    	<?php wp_list_bookmarks("exclude=$exclude&title_li=&depth=2&number=$limit"); ?>
    	</ul>
  5. Mr_Sykes
    Member
    Posted 4 years ago #

    Thanks guys

  6. Mr_Sykes
    Member
    Posted 4 years ago #

    wait no that's not right

Topic Closed

This topic has been closed to new replies.

About this Topic