Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Wordpress - Need achives.php file to have jump menu
Old 11-30-2010, 03:51 AM Wordpress - Need achives.php file to have jump menu
heat33's Avatar
Skilled Talker

Posts: 82
Name: Don
Trades: 0
Hi,
I am making a wordpress website which I have made a category called "Shopping reviews", I also have child catgories to it called "Shopping Centers", "Markets" etc.

I have this code
PHP Code:
<li id="categories"><h2><?php _e('Posts by Category'); ?></h2>
    <?php wp_dropdown_categories('show_option_none=Select category'); ?>

<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>
</li>
This just shows all the categories, but I would like to show ONLY the child categories for that particular parent category.

Any Ideas?

^^Does that even make sense?
heat33 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Wordpress - Need achives.php file to have jump menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68821 seconds with 12 queries