You should make a verification on the front-end to see if the user has the role ‘pro 1’, ‘pro 2’ or whatever.
Like:
$user = wp_get_current_user();
if (in_array( 'pro-1', $user->roles)):
//whats this user can see
elseif (in_array( 'pro-2', $user->roles)):
//whats this user can see
else :
endif;
If you are using a template, you can try adding this on the top of your code:
global $authordata;
global $post;
setup_postdata( $authordata );
Related Posts:
- Submit post and upload image from front-end
- How to set a custom post type to not show up on the front end
- Front end post editing using a form
- Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts
- Add custom post type items from frontend
- Front end registration/login & publish/update 1 custom post
- List custom post types in dropdown
- How I upload, save and set a featured image from my frontend?
- Trying to save custom post type from frontend partially working
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- front end radio custom taxonomy with custom post type
- Assign category to front end post
- Front end post form won’t post categories to custom post type
- Create and edit posts from front end
- Make custom post type display as a page
- Frontend Form for Custom Post Type
- Upload Image from Front End and Resize
- Frontend posting – everything saves other than checkboxes?
- I am having a problem with form updating/editing WordPress post on the frontend
- WordPress Create Post from front-end
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- How to restrict CPT post’s fronted view only for specific user roles?
- How to save custom taxonomy from front end post submission
- Insert Custom Post Type data from the front-end by a user
- Crafting WP_Query array, sort by date
- Posting to a Custom Post Type from front end – user generated content
- How to get the upcoming post ID from front end?
- How to make front end form only accept certain values
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Submitting Custom Post Types with custom fields from Front-end form
- How to properly delete custom post type posts programmatically
- Get id from metabox dropdown
- Get admin area editor in frontend
- Better approach for a WordPress Inventory
- Display custom meta on page that has been check in custom post type
- How can I lock specific posts (cpt’s) from editing by anyone other than ADMINS
- Update ACF fields on a frontend form? [closed]
- Add term for custom taxonomy from front end
- Post visibility option to theme front-end for author to select?
- display custom portfolio tags
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- How to create Custom image post?
- Front-end Image Upload to Custom Meta Box
- Show/hide posts and categories based on user meta
- Preview url not working outside wp-admin
- Change custom post taxonomy values from front-end
- Saving Child Terms on front end not setting parent
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Front End users account with lots of user Roles (not Woocommerce)
- Show “Republished” badge when Post Date is manipulated
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- Getting Custom post category from Form
- Add a meta to custom post type which corresponds to a particular taxonomy
- Add a image to a post published on a CPT from the front-end
- Extensive search filtering and results->PDF in the front-end
- Front end page submission form does not attach custom post type
- Issue with permalinks for custom post type
- Front end Submit not posting to Custom Post type
- Check in function on custom page
- create category upon saving post and save post in that category
- Front end post or photo or both
- Frontend delete CPT post with custom role user
- remove pagination from a single blog entry
- Getting WordPress Flexslider Item Number
- Designing a custom post type with a minimum number of meta fields
- Why does my taxonomy have a category style div id?
- Sorting posts by custom field value in array
- Custom post type paging 404 error
- Targeting categories in custom fields
- Display Only Certain Category In a Custom Page Template
- Saving Meta Data within Custom Post Type
- A meta box (in a custom post type) with two different type of fields
- Redirect to first child on Custom Post Type (without template)
- Assign CPT archive page attributes
- Move content between custom post types
- Custom post types problem
- How to get postname in custom page?
- Query custom post type based on post id and custom field value
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Creating Sections for Post Types
- Give each post type label a different color?
- page not found for single-type.php file
- Show list of custom posts with respective attachments?
- How to output an image or icon for selected check box in a custom post
- Check IF single OR multiple custom data has been entered
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- How To Get Custom Post Type Category Title
- populate array with posts
- Displaying tags associated with posts in Custom Post Type
- Display custom posts randomly in custom taxonomy archive
- Using custom post type as taxonomy
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- get_pagination not working on a custom post type query (using WP_Query)
- Show Posts to Author Only
- How to Make infinite loop of post
- Get custom post type categories to show up in menus
- WP_Query parameter conflict