Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:59:08+00:00 2026-06-05T22:59:08+00:00

I have a website based on WordPress, built with pages. I need to have:

  • 0

I have a website based on WordPress, built with pages. I need to have:

  • public content
  • pages that are only accessible to logged in users
  • pages that are only accessible to a certain subset of logged in users

I have accomplished this with Role Scoper. However, there is an important capability that this doesn’t provide. I would like to be able to publish (say via email) a link to one of the “restricted” pages, and then when someone went to it, have the login screen presented and after successful login have the appropriate page displayed. With role scoper, if you direct a user to a restricted page they just get the “page not found” error.

Anyone found a good solution for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:59:09+00:00Added an answer on June 5, 2026 at 10:59 pm

    Use could use a couple of built in wordpress functions. The ones I’d choose are:

    • <?--php is_user_logged_in() ?>
    • <?--php current_user_can(...) ?>

    is_user_logged_in() is a simple check that does exactly as it says, checks if the user is logged in. If they are, it returns true. If not, it returns false. Current_user_can() performs the same way; if you look at the capabilities on http://codex.wordpress.org/Roles_and_Capabilities you can simply use those to simulate user levels (there’s another function that does this in a more direct way but I can’t remember it off the top of my head.

    Really, what I’m trying to get at, is that you can set up specific pages that have your content and perform a role check before the header loads. If you want to have them login before hand, you could generate a login url w/ redirect using <?--php echo wp_login_url( $redirect ); ?>, which would take them to $redirect after they login.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a wordpress based website. I have a standard wordpress loop that executes
I have a text area in a django based website that displays the content
I have a Wordpress based website that I scrap using wget. I have articles
I have a subscription based website that interacts with a 3rd party system to
I have a website that is rendering a prototype based calender on 90% of
I have a website based on wordpress. I want to implement a click tracking
We have a website that is based on C# and ASP.NET, I have a
I have a php based website. As in, all of the pages html is
We have a website that we want to provide web based API access to
I have a Wordpress-based website which uses Sphinx as a search engine, with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.