I'm creating a website which will provide services to members and I want to make it so that when a not logged in person comes to the website the menu is specifically designed for sales pages to make him register, but when a logged in person comes in he sees a different menu that is for the sole purpose of delivering the services. I want to make this because I don't want my already members always going to the website to read the sales pages. I would so appreciate your help, just can't figure this out on my own. And I think this would be pretty neat also :) hoping for an answer
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
You can do that by using 2 different menus (wp_nav_menu). use is_user_logged_in conditional tag and apply a different menu accordingly:
Edit This code goes where you'd usually put your regular menu in the theme - probably header.php Also, make sure that you add the menus to the actual theme, i.e. in function.php add the folowing lines of code:
|
|||||||||||||
|