Title: Menu error
Last modified: August 21, 2016

---

# Menu error

 *  Resolved [jazzguy](https://wordpress.org/support/users/jazzguy/)
 * (@jazzguy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/menu-error-1/)
 * I’m getting this error message while trying to rebuild the mobile menu… and the
   menu items always link to the home page for some reason. Appreciate some help.
 * Warning: Invalid argument supplied for foreach() in /home/audiob8/public_html/
   jazzradionetwork.com/wp-content/plugins/wpsmart-mobile/wpsmart.php
 * [http://wordpress.org/plugins/wpsmart-mobile/](http://wordpress.org/plugins/wpsmart-mobile/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [jazzguy](https://wordpress.org/support/users/jazzguy/)
 * (@jazzguy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4464754)
 * Okay… I rebuilt the menu and got rid of the error message.. however, now the 
   menu doesn’t work yet. It still goes to the home page no matter which page is
   clicked.
 * [http://www.jazzradionetwork.com](http://www.jazzradionetwork.com)
 *  Plugin Author [WPSmart](https://wordpress.org/support/users/wpsmart/)
 * (@wpsmart)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4464939)
 * Hey Jazzguy,
 * After taking a look at your website it seems like you’re using a special theme/
   framework (please correct me if I’m wrong) with shortcodes that seem to be throwing
   off the theme (the plugin can’t read shortcodes from other themes/frameworks 
   currently), thus all pages are being rendered at the same time on one page. One
   solution is when creating he menu, instead of using the pages from the dropdown
   menu, create custom links for each page: for Classical Jazz for example the link
   would be [http://www.jazzradionetwork.com/channels/classical-jazz/](http://www.jazzradionetwork.com/channels/classical-jazz/),
   etc etc.
 * Give this a try and let us know if it works.
 * Thanks!
 *  Thread Starter [jazzguy](https://wordpress.org/support/users/jazzguy/)
 * (@jazzguy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4464940)
 * Excellent.
 * The menu works fine now using the “custom links”. Guess I’ll have to live with
   the shortcodes for now until there’s a solution long term.
 * I wish there was a way to create custom pages just for Mobile users, so they 
   don’t show up on traditional websites with WordPress… any suggestions? When I
   create a page just for mobile, it still shows up on the main menu on my PC, which
   is confusing and cluttered.
 * Thanks again,
    Jazzguy
 *  Plugin Author [WPSmart](https://wordpress.org/support/users/wpsmart/)
 * (@wpsmart)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4465056)
 * One way to do this would be to not have your desktop theme’s menu show all pages
   by default, instead allow you to pick which pages would show up, thus you can
   have both mobile pages and desktop pages, but the menus would only show the pages
   which you want them to show.
 * Hope this helps!
 *  [gongtones](https://wordpress.org/support/users/karambirsk/)
 * (@karambirsk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4465062)
 * If you don’t mind hacking, you can copy and paste the code from your theme that
   handles the shortcodes into the wpsmart plugin. This would likely mean one or
   more .js and .css files plus hand editing a .php file to initialize the code 
   being added. This would of course be unsupported, but does provide a workable
   solution until the plugin adds support. You would also need to make sure you 
   have a working backup prior to installing any updates which would possibly overwrite
   and updates.
 * Perhaps in the future, the plugin could check the active theme folder for supported
   shortcodes and apply them?
 * Karambir

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Menu error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsmart-mobile.svg)
 * [WP Smart Mobile Theme Plugin](https://wordpress.org/plugins/wpsmart-mobile/)
 * [Support Threads](https://wordpress.org/support/plugin/wpsmart-mobile/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsmart-mobile/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsmart-mobile/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsmart-mobile/reviews/)

## Tags

 * [menu error](https://wordpress.org/support/topic-tag/menu-error/)
 * [warning message](https://wordpress.org/support/topic-tag/warning-message/)

 * 5 replies
 * 3 participants
 * Last reply from: [gongtones](https://wordpress.org/support/users/karambirsk/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/menu-error-1/#post-4465062)
 * Status: resolved