WordPress.org

Ready to get started?Download WordPress

Forums

Custom Menu Items and Links on a Page (4 posts)

  1. lance_kidd
    Member
    Posted 2 years ago #

    I have a WP custom menu (several actually), and I would like to be able to show the items contained in a couple of those menus in a page. Is this possible?

    Also, I am missing it, or is it just not possible to create a page that shows your WP links also?

    Please help if possible. Thanks!

  2. spstieng
    Member
    Posted 2 years ago #

    Are you using the "menu builder" in WP?
    If yes, just use wp_nav_menu.

    Example of it's use:
    wp_nav_menu(array('menu' => 'Main menu')); ?></nav>

    To list WP links, you can use WP List Bookmarks.

  3. lance_kidd
    Member
    Posted 2 years ago #

    That was exactly what I was looking for. I installed the exec php plugin and just put this code in the page. Can you help me with one more thing:

    I use the menu to show recent news for a company, and I include the date. However, as you know, the date becomes part of the hyperlink.

    The page that you referenced said that you could add any text that you wanted before the tag with a simple code, and with that, you could use get_date() to insert the date that the entry was made into the menu.

  4. lance_kidd
    Member
    Posted 2 years ago #

    Sorry bout that. It is supposed to say, "The page that you referenced said that you could add any text that you wanted before the A tag with a simple code..."

    The tag made it look like a link. Sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic