Forums

Scraping home template menu (2 posts)

  1. Delpierooo
    Member
    Posted 1 year ago #

    Hello.

    I have one question. In my home template I use wp_nav_menu(array('menu' => 'Home Template Menu')); to get the menu displayed. Now I want to read th content that is in that menu(in the "li")
    . I can do that using regular expresions. But to do that I need to know which html file to give him. Or get the menu in some php variable like: $html=".." .. So that my menu would be in a variable. Any idea how can this be done?

    Thanks for your answers.

  2. Delpierooo
    Member
    Posted 1 year ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags