Hi,
Not sure how exactly you managed to add the logout shortcode in the menu item, but it shouldn’t work. You can only display it in widgets, posts or pages in order for it to be executed by WordPress.
I’ve tested it again in a page and it displays correctly.
Can you give a link or screenshot and more details as to what you’re trying to achieve?
Thread Starter
zaaryn
(@zaaryn)
Hi adispiac, there is an option in the main wordpress menu section to add a shortcode to the menu, screenshot of that here:
http://www.zealandcoaching.com/wp-content/uploads/2015/02/Screen-Shot-2015-02-18-at-10.58.40-AM.png
This is what displays on my menu (red box added to show problem area):
http://www.zealandcoaching.com/wp-content/uploads/2015/02/Screen-Shot-2015-02-18-at-10.58.55-AM.jpg
and this is what I want it to look like (photoshopped version of text):
http://www.zealandcoaching.com/wp-content/uploads/2015/02/Screen-Shot-2015-02-18-at-10.58.55-AM_a.jpg
I’m basically trying to make it so that my menu only shows “log in” when you are not logged in, and “log out” when you are logged in. I want to make it as easy as possible for a user to log out, I would prefer to not have them have to visit a separate page, and then click log out on that page. I’m also wanting to limit the space my menu is taking up, and would prefer to not have menu items split between different lines. Thanks for your help 🙂
Hi,
The option in the main WordPress menu to add a shortcode is added by this plugin. This is not WordPress default functionality.
I’m not quite sure how the above plugin works, but your issue is probably related to how it handles our shortcode.
Unfortunately at this time, there’s no easy solution to add a menu switcher in Profile Builder because of the complexity it involves (creating new pages, redirects based on user login status, showing different menu items based on logged in status etc.).
We’re looking into coming up with a proper solution soon, because it’s something other users have requested as well. We don’t quite agree with some of the existing solutions out there, and therefor need to do a little bit of research on how to proper tackle this feature.