Support » Themes and Templates » I Need To Modify This Code

  • 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>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Mr_Sykes

    (@mr_sykes)

    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

    muthukswamy

    (@muthukswamy)

    <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>
    Mr_Sykes

    (@mr_sykes)

    Thanks guys

    Mr_Sykes

    (@mr_sykes)

    wait no that’s not right

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I Need To Modify This Code’ is closed to new replies.