WordPress.org

Ready to get started?Download WordPress

Forums

Get current menu title and description as page title? (4 posts)

  1. jashimili
    Member
    Posted 6 months ago #

    On my theme i have one menu in header position. and menu is registered as "top_menu". I have searched over the internet but no luck, is it possible to get title and description from menu as a page title.

    For example on my menu i have links like

    Home - About - Services - Contact - Portfolio

    And each menu link have it's own description. Titles and descriptions are set in admin menu management. And i want them to represent page title and description instead of classic the_title() function.

    So if i click on

    About

    my page title would be

    About
    What we do!

    If i click on

    Portfolio

    My page title to be

    Portfolio
    Our work of magic!

    Is it possible to have something like this ?

  2. Jose Castaneda
    Member
    Posted 6 months ago #

    Actually yes.

    Create the pages with the titles: Our work of magic and when you create the menu change the label to Portfolio. As far as description goes that all depends on whether or not the theme supports it.

  3. jashimili
    Member
    Posted 6 months ago #

    I did created it like this, but this will only display Our work of magic, where i put the_title()

    i want to display it like Portfolio Our work of magic

  4. Kyprulez
    Member
    Posted 1 month ago #

    I am having the exact same issue right now. Any ideas out there?

Reply

You must log in to post.

About this Topic