Scraping home template menu
-
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Scraping home template menu’ is closed to new replies.