Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Posts based on custom user roles

Featured Replies

I'm trying to create a section on a website using Wordpress that needs to show different posts based on the user's role (which needs to be a custom role).

 

What's the best way of doing this? I don't mind using plugins or anything like that but the simplest way would be best.

 

The site area just needs to see if the user is logged in (if not, just show the public posts), if they're staff, then show extra staff posts etc.

I'm unsure if there is a plugin for this.

 

But, you could create a custom page that checks the Database to see if the user has the privileges and authority to view said posts. From your description these posts would be secure so not able to be seen by the public so you would possibly need a way of deciding which post to show to who

  • 3 weeks later...

There are quite a few plugins that do this quite well (Members by Justin Tadlock is a good one). Otherwise you can create user roles and capabilities fairly easily. Here is one article on it http://wp.tutsplus.com/tutorials/creative-coding/wordpress-roles-and-capabilities-functions-of-note/ but there are quite a few to choose from.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.