1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Drop-down categories.. possible?

Discussion in 'Programming' started by coolraghav, Jun 12, 2013.

  1. #1
    Heya,

    I have a wordpress site, im searching for dropdown menu for categories which shows latest/popular blog posts in drop-down of that category. That too automatically, no manually adding pages/posts to drop-down. I want to know if thats possible?

    you can check this site for example
    http://goo.gl/99xhs
    Code (markup):
    will wait for reply.
     
    coolraghav, Jun 12, 2013 IP
  2. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #2
    Hi coolraghav,

    WordPress function is available for implementing WordPress category drop down menu.. Please use

    <?php wp_dropdown_categories( $args ); ?> function

    example :
    <li id="categories">
    <h2><?php _e('Categories:'); ?></h2>
    <form action="<?php bloginfo('url'); ?>" method="get">
    <div>
    <?php wp_dropdown_categories('show_count=1&hierarchical=1'); ?>
    <input type="submit" name="submit" value="view" />
    </div>
    </form>
    </li>
     
    ShinoRex, Jun 12, 2013 IP
    coolraghav and wisdomtool like this.
  3. coolraghav

    coolraghav Well-Known Member

    Messages:
    326
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Hi, is there any step-by-step procedure where do I have to put this?
     
    coolraghav, Jun 12, 2013 IP
  4. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #4
    ShinoRex, Jun 12, 2013 IP
    coolraghav likes this.