WordPress.org

Support

Support » Themes and Templates » Direct link to a specific category of the menu?

Direct link to a specific category of the menu?

  • How do I get the direct link to a specific category of the menu?
    Or is it possible to create a second set of menu?

Viewing 5 replies - 1 through 5 (of 5 total)
  • To find the links to the categories you can add them as a menu item (or subordinate) to the main menu for the page. Typically they just look like this.

    http://yourdomainname.com/menu_item_category/category-name/

    yourdomainname = your domain name
    menu_item_category = menu_item_category
    category-name = the name of the category you wish to work with
    If your category name has a space in it, replace it with a hyphen

    It will display the ‘dishes’ in reverse order of entry and they use the formatting associated with archived items.

    If you can’t quite figure out what the url is for the menu item, just add one to the main menu temporarily and you will see what the url is.
    Let me know if that works.
    -pm

    Sorry soepm, it didn’t work for me. It returned “404 Not Found” and I couldn’t figure out what went wrong.

    Would you mind taking a look at my website and point out what went wrong?

    The website I’m working on right now is http://saigoncity.ca/, so if I followed your instructions correctly, the link should be : http://saigoncity.ca/menu_item_category/rice/

    Hmm… Try going to the edit category page. At the top you should see ‘View Category’ which should take you to the link for that category’s page.
    Let me know if that works.

    The link I got is something like this: http://saigoncity.ca/?menu_item_category=rice. However, instead of displaying the menu items in the menu layout, It showed all the items in that category in the blog post layout. Is it possible to correct that?

    Thanks,

    Nope, I think that’s the only way you can do it. The theme seems to just be using a modded version of the post functionality to make the menus themselves.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Direct link to a specific category of the menu?’ is closed to new replies.