Questions tagged [private]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

How to have private pages using CAS auth without requiring wordpress accounts?

I have a few sites that I am needing to find a way to make private pages where only people CAS authed can see them. I have been playing with Authorizer to handle the CAS authentication, and tying into ...
0
votes
0answers
8 views

Set a specific category to be private by default

I am trying to make a specific category private by default. I am administrating a website for a medium sized artistic community and would like my users to be able to publish private posts, through a ...
0
votes
0answers
14 views

Filtering private Posts

i got a page wich contains only private posts. Is there a possibility to use the wordpress built-in filters like archive or category?
0
votes
1answer
15 views

Check the stored / cached WP_Query with transients on post change

right now I have WP_Query stored for 24h (1day) with set_transient function. Everything works fine like it should. But if for example I change the post which is in the stored array to private or ...
0
votes
1answer
24 views

Forcing two or more custom post type to be private

I registered a new custom post type and forced it to be private, but now I need to use three custom post type. I registered the second one, but I don't know hot to set the code to force the second one....
0
votes
2answers
49 views

How to remove private posts from RSS feeds?

Private posts are visible only to administrators and editors, but I have found that they are displayed publicly in RSS feeds. How can I remove them from there? I have this code but it doesn't work: ...
0
votes
1answer
138 views

Accessing private posts through REST API, same code that works in remote doesn't in local

I am capable of fetching private posts through the wp rest api by calling mydomain/wp-json/wp/v2/posts?status=private&slug=whatever I am authenticating well and receiving a valid token, no ...
0
votes
0answers
15 views

Code correction - Hide a profile from visitors with a specific role

The following code i tried to hide the profile of subscriber's role of user not logged in but I need it to be visible to the administrator and shop_manager, how can I do it? add_action('bp_ready', '...
0
votes
0answers
23 views

Cannot see private content

I have put all my pages private check and now I cannot access the wp-admin. Does anyone know how I can fix this from the database or from the WordPress code? I'm the administrator.
0
votes
1answer
40 views

Will 'private' status prevent Woocommerce products to be indexed by search engines?

I'm currently disabling some Woocommerce product from my site and for this, I set them as private. I'd like to know if 'private' will also set the no index meta as true?
0
votes
0answers
29 views

Redirecting users to SSO for private pages without restricting standard login

I have the miniorange SSO plugin installed (https://wordpress.org/plugins/miniorange-saml-20-single-sign-on/) and I want to check users on private pages only through that SSO, logging them all in as a ...
0
votes
3answers
790 views

What differences are there between a Privately Published post and a Draft post?

WordPress has three different post statuses: Published Pending Review Draft It also has three different visibility options: Public Password protected Private When you set a post to Published and ...
0
votes
1answer
19 views

How to block access to Crawlers to any Image on a Private page

We found out that a reverse image search on google images was able to link to a set of images that are on Private Pages. Is there a plugin that can fully protect these images? if not what coding ...
0
votes
1answer
180 views

Custom post type permalink returns 404 when set to private

I have a custom post type that is configured to use a permalink structure prepended with the post type name. When using get_permalink(), the URL that is returned does not include the post type name. ...
0
votes
0answers
194 views

Subscriber (with read permissions) cannot view Private posts

QUESTION: Why can't my Subscriber role (i.e. logged out user) view Private posts with the read_private_posts (or read_private_pages) capability extended to them? I use the Capability Manager Enhanced ...
0
votes
2answers
840 views

Custom get_the_password_form

I'm interested in creating a filter for pages with password protection and that have a certain category. I've placed this code in my theme's child folder in functions.php since I didn't want to edit ...
0
votes
1answer
21 views

Assign a username and password to specific users

We need a public section to our site and a private section. For the private section we would like to assign a username and password for each user that is NOT their Wordpress username/password. Is this ...
0
votes
1answer
56 views

Administrator cannot see private content

I have a WordPress site and I want to hide most of the content for awhile. I have changed the status of almost all posts to private but there is a problem. Although I am the administrator I cannot see ...
0
votes
1answer
28 views

Is there a way to load pages/site from specific referring source only?

I am trying to create a user manual for our software which would be stored on WordPress. But I don't want it accessible to just anyone, it should be hidden, at the very least not indexed by search ...
1
vote
0answers
29 views

Show certain posts in a LIST format that members have been granted access to

I need post visibility control, but I don't want just "a class of users" to be able to see a post; I want just 2 or 3 users I specify to see a post. Then later, those same users will go on to view ...
1
vote
0answers
34 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
1
vote
3answers
2k views

How to show just private posts in loop

I have a section in my website where i want to display just the private posts for logged in users, but the loop returns all posts (private and publish), is it possible to change this? I have the next ...
0
votes
1answer
692 views

read_private_pages capability not working for new role

I have created a new user role - vendor - with the capability to read_private_pages, but when I log in as such a user, and go to a private page I cannot see it. Here is my plugin code: function ...
1
vote
1answer
39 views

How do i make my wordpress website private?

Ive seen other similar posts on here asking the same question but cannot seem to find an answer for my situation which is a bit more unique. I'm building a support website for a product we have and ...
1
vote
1answer
552 views

View Private Published Page with URL Code (no login required)

The goal is to easily allow for larger entities/clients to review content without having to have a user login/account for every project stack holder involved by providing a single URL to the final ...
1
vote
0answers
18 views

How to update the counter of private pages in the dashboard?

In my dashboard the counter of private pages shows 1, but the list of private pages is empty: Is there a way to recalculate the counters of pages and set them to the proper values?
1
vote
1answer
2k views

query private custom post type

My custom post type is registered with 'public' as false and I'm querying with a WP_Query() object. arg's 'post_type' set to private too. The url is site.com/?post_type=my_post_type I've tried to set ...
2
votes
1answer
574 views

Disable comments from showing up public for Custom Post Type

I have a CPT which supports comments. This CPT is meant for internal use only. However the comments show up in the "Recent comments" default widget. They also show up in the RSS feed. Is there a ...
1
vote
1answer
61 views

Protecting uploads not working

I am trying to build a private site. One of the most important aspects of the site consists in the uploads, and they definitely need to be private. I found a very interesting topic on that here: How ...
2
votes
1answer
3k views

Redirect to login when on private page, and when logged in to specific page

I´m using a plugin called "private content login redirect". The plugin is actually only containing this piece of code: add_action('template_redirect', 'private_content_redirect_to_login', 9); ...
2
votes
5answers
923 views

Private pages that work when you are not logged into WP admin

My understanding of private posts/pages is that they only work when you are logged into the WP admin system as an administrator or editor. I have a site where I need to occasionally share custom ...
1
vote
1answer
815 views

Change Visibility to Private

I am trying to figure out if there is a way to change the status of a post to private after a comment has been submitted. More specifically 3 comments, I do already have some code made up and would ...
1
vote
1answer
284 views

Can we have private drafts?

As per the documentation, Draft and Private are two mutually exclusive post statuses. Therefore, when you mark a draft post as Private, it is no longer a draft. We are a big team making extensive use ...
0
votes
0answers
16 views

Clean private data (passwords, ftp, database) before zipping my site and SQL and give it to other person

I want to clean all the private data related with WordPress before sending it to another person. I will zip the folders and then export the sql. Is there a tutorial with the things that I should ...
3
votes
1answer
64 views

WordPress i18n-friendly preg_replace post title

I've stripped Private: and Protected: from my custom post title that are forced to be private. I'm using CSS Tricks' snippet for doing so: function the_title_trim($title) { if( is_admin() ) ...
0
votes
1answer
620 views

Private pdf files

I would like to give access some private pdf files to only logged in users. I have this in my htaccess: RewriteCond %{REQUEST_FILENAME} ^.*(pdf)$ RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$...
0
votes
1answer
1k views

Private post hidden from Admin too

I have a strange problem. I am running a woocommerce site with several levels of privileges/roles. I wanted to reserve a group of products for specific users and was anticipating modifying the user ...
6
votes
2answers
267 views

Let private posts stay in status “private” after edit through “editors”

I'm using some private posts for intern purposes. When an editor changes something on these posts, its status turns to pending "review" and I have to publish it again as a private post. When an ...
1
vote
1answer
427 views

Setup private content for specific users with daily updates [closed]

So I have only found membership plugins which cater for private area where users can access the material after paying depending on their role. I need to make a dashboard kind of area where users can ...
11
votes
2answers
6k views

Where to securely store API keys and passwords in WordPress?

I'm looking to use a few APIs and many come with keys, secret keys and passwords required to work. Where in WordPress can you store that information? Assuming anyone can hack your DB is there anyway ...
1
vote
1answer
2k views

Post visibility based on user role

How can I make it so that new posts will be automatically private, except visible to other users which have the same user role as the post author?
-1
votes
1answer
450 views

Exceeded the virtual memory limit

I've launched website a few weeks ago using WP. I've started getting messages from my web host saying "Your website.com web hosting account exceeded one or more of its resources within the last 12 ...
1
vote
2answers
1k views

My custom page template with is_user_logged_in() does not detect that I'm logged in

I have a custom page template that looks like this: <?php if( is_user_logged_in() ): ?> <?php get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
1answer
446 views

404.php only works if I'm logged in. Everybody else redirects to wp-login.php - why?

I have this "Forum Engine" theme and want it to be private. (No it's not bbPress, that was my first question too.) So the theme (Forum Engine) has a "page" called "Threads Index" that is static on ...
0
votes
1answer
464 views

How to check if the user was redirected?

I need an advice on how to the following: I have registered course custom post type and created one for example Course1. Course1 has child posts - some are private (e.g Lectures) and some are not. ...
1
vote
1answer
2k views

Private page protected with username and password

We are building a WordPress site where one of the pages needs to be accessed via username and password. I know that I can create a "Private" page, where the user can enter a password to view. However,...
0
votes
1answer
701 views

Private Post BUT Public excerpt on Homepage

I'm building a website for a french school. My problem : part of the website content will be private. Me and some other specified users will publish private posts (posts that only the 600 already-...
0
votes
2answers
1k views

Comprehensively Restrict Post Type Taxonomy to Logged-in Users

I've registered an employers post type with several associated taxonomies and want to all associated pages (single, term archives, post type archive page) only viewable by logged-in users. I've ...
5
votes
0answers
1k views

Fetching private posts or custom post types via WP-API with basic authentication

I've installed WP-API along with Basic Auth. I'm able to fetch cpt posts using curl http://siteurl.com/posts?type={post-type} However, if I change a post to private, it is no longer returned. This ...
0
votes
1answer
30 views

limit the access to uploaded files

I have some files that I want to be accessible only to registered users. So I have uploded them to a page set as private. Is this sufficient to prevent unregistered users to download them? I have made ...