Is it possible to create dropdown of posts from categories in wordpress?

by zonkow
8 replies
On my new wordpress website, I have two categories located on the top navigation bar just below the header. I want the post is these categories to be listed as dropdown when the mouse is on one of them.
How can I do this?
Thanks
#categories #create #dropdown #posts #wordpress
  • Profile picture of the author IMDESTROYER
    Banned
    Originally Posted by zonkow View Post

    On my new wordpress website, I have two categories located on the top navigation bar just below the header. I want the post is these categories to be listed as dropdown when the mouse is on one of them.
    How can I do this?
    Thanks
    Your not able to display the posts along with it being a drop down nav. However you can (if you know PHP and JS & CSS) develop another drop down right below you nav with that categories title and then have that drop down with all of the posts. Usually any good idea like that requires development knowledge. Study up my friend, it's worth it.
    {{ DiscussionBoard.errors[7418967].message }}
  • Profile picture of the author James Harrison
    It is possible, I have done it on one of my sites but it requires coding knowledge and you have to edit the theme and whatnot. I can't really explain it though, it's a bit complicated... But it's possible! haha.

    James
    {{ DiscussionBoard.errors[7419020].message }}
    • Profile picture of the author zonkow
      Originally Posted by James Harrison View Post

      It is possible, I have done it on one of my sites but it requires coding knowledge and you have to edit the theme and whatnot. I can't really explain it though, it's a bit complicated... But it's possible! haha.

      James
      Can't you tell me the code and where you put it exactly?
      {{ DiscussionBoard.errors[7419113].message }}
  • Profile picture of the author James Harrison
    It was awhile back and I just mixed the current code around and then added a dropdown menu to the current menu via CSS. The trick is finding the code that you need to change, if you have Chrome as a browser, you can just right click the menu and click view element and go from there... Look up a basic dropdown menu code do what you can.
    {{ DiscussionBoard.errors[7419137].message }}
  • Profile picture of the author UMS
    Just create a custom WP menu with the categories as menu items as the first item as a placeholder (ie: set the URL to #).

    Then the URL for each of the categories would be like:

    http://yoursite/category/category-name1/
    http://yoursite/category/category-name2/

    etc.
    {{ DiscussionBoard.errors[7419235].message }}
  • Profile picture of the author rosetrees
    UMS beat me to it. Use a custom menu and add the categories as menu items. Then their posts will appear as a drop down list. (You can see it in action if you look in my sig - no need to sign up for anything. The drop down menus there are all categories.)
    {{ DiscussionBoard.errors[7419286].message }}
  • Profile picture of the author zonkow
    I did that but it didn't work.
    Here is what I did
    First I went to apperance/ menus
    First I created a custom menu
    Then I created a menu item by typing my category URL to the Custom Links section
    Then my category appeared on the menu. I went to my site refreshed it but didn't work
    Did I do everything right?
    {{ DiscussionBoard.errors[7419401].message }}
  • Profile picture of the author rosetrees
    You need to add the category directly to the menu - see attached.

    Choose the category or categories you want and then click on "add to menu"
    {{ DiscussionBoard.errors[7419545].message }}

Trending Topics