Forums

Drop Down Categories and Archives Question??? (3 posts)

  1. crysacraig
    Member
    Posted 4 years ago #

    I have a huge list of categories. I'm trying to make my categories take up less space by setting up drop down categories. I used this code `

    <div class="search-archives">
    <?php wp_dropdown_categories('show_option_none=-- Reviews By Member --&show_count=1&include=382,391,400,376,380,377,378,379'); ?>

    <script type="text/javascript"><!--
    var dropdown = document.getElementById("cat");
    function onCatChange() {
    if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
    location.href = "<?php echo get_option('home');
    ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
    }
    }
    dropdown.onchange = onCatChange;
    --></script>
    </div>
    `

    as you can see http://www.booksnchocolate.com in my sidebar only 'Reviews By Member' and 'Post By Month' work. Does anyone have a clue as to why the 3 center drop downs don't work????

    Thanks to anyone who answers.

  2. jonimueller
    Member
    Posted 4 years ago #

    You must have fixed it. Nice site. I'll have to check it out more thoroughly. :)

  3. roro
    Member
    Posted 4 years ago #

    Having a huge archive (6 years) makes it heavier for the server?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.