Hiding a specific menu for a specific user group - wordpress

I have a menu "Become VIP" on my top main menubar. I created a particular user role who will get VIP access. If someone adds this user group, I want the "Become VIP" menu to be disabled from the top main menubar. Could someone help me?

You’re gonna want to add a conditional in your template. You can find the code snippet you need here: Get user role by ID WordPress

Related

Wordpress: hide an element to Guests and show a div to Logged in users

I am setting up a new custom header for my website (editing the file header.php). I need to create a dynamic one, I have 2 divs:
Sign Out
Sign In
I need to show the first div only to Logged in Users and so hide the second one. Viceversa for the second div, I need the second one to display only if the user isn't logged into wordpress and hide the first one.
How can I do this?
Thanks.
if (is_user_logged_in()){// show signed in banner}else{//show another banner}

Custom Wordpress page, user profile information in certain divs

I created a custom Wordpress page and would like user profile information to be displayed in divs on the page.
For example: A user's profile photo would automatically populate in a div called user-photo, a user biography would automatically be populated in a div called Background, etc.
So, I already have the page structure created. I just need help on how to have certain user information populate in certain divs.
I appreciate any help with this issue. Thanks.
You already have answer to this question. For example here - link. Generally, you must work with functions, that allows you to get user data, for example get_userdata() - codex

Adding profile2 profile to panel in drupal7

I am building a social networking site with drupal 7.32.I am using Profile2 module for user profiles.I have added fields to the default profile type.Now, I want to display the profile on the right side of the two column stacked layout of the panel.After creating the panel pages and on the last screen where the layout appears when I click on the gear and add content the next screen asks for node id which I am not able to fill.What should be the node id ? I am in a fix.
Any and all help would be appreciated.
Are you using the Page manager? Add the "currently logged in user" to the context and you should get the ability to add personal information to the page.
Another way to go is to create a view with a contextual filter to the currently logged in user. The view can then later be displayed on the panels page (without context).

How to display top and side menu in SonataAdminBundle?

There are no documents talk about that. Please help me. Thank you
Admin top menu is created automatically based on group item in admin service definition. All admin services can be grouped and are displayed in top menu.
Example (see group="sonata_page" where sonata_page is name of menu group):
Admin side menu can be created with configureSideMenu() method in your admin service.
Example

wordpress user management, how to assign specific page to each user?

I want to create pages in WordPress, which should show to a specific user only not for specific role.
if a page is created for a specific user like "john". it should be viewed by only john, no other users could not see that page.
My Questions are:
How to create a page for a specific user? (from admin).
Note: while creating page we should assign that page to specific user like "john".
Is there any plugins for this?
Is there any way to do this.
-Srikanth.
I know that it is a bit late but still want to answer in case you need. Try to use http://wordpress.org/extend/plugins/user-specific-content/ plugin. You can customize your pages.
Just an idea:
Why not make a page template for that page? get current user id in the template then show the details depends on the user id? You can check is_user_logged_in() and pull all contents under the if statement and under the else statement you can redirect the user to the login page or just show the message to logged in.
Let me know if everything is clear. Thanks!
This can be done with ease using nav menu plugin and roles creator plugin.you can create roles with names of your clients and show menu items of user pages to specific roles/person

Resources