Questions tagged [private]

The tag has no usage guidance.

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

Frontend Login to access private content [closed]

I'm looking for WP plugin where I can restrict a cart and a few pages. I want to keep a button on the home page of my website which will redirect to the login page. On successful login, the user ...
0
votes
1answer
22 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
46 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
9 views

Members creating “small groups” --> “sport teams”

We have a sport association. To be part of the association, you need to register to our website (powered by wordpress). Every year we give a big sport event: members can partecipate in teams, playing ...
0
votes
0answers
46 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
196 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
20 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
27 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
28 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
29 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
1k 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
443 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
36 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
89 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
15 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
1k 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
485 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
52 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 ...
1
vote
1answer
2k 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
419 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
600 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
254 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
54 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
440 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
891 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
249 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
367 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 ...
8
votes
2answers
4k 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
1k 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
415 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
943 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
388 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
397 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
629 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
956 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 ...
3
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 ...
1
vote
1answer
419 views

get_terms(); show private posts when logged in

Hi have a custom post type "FAQ". I got some "FAQ's" that are private, also only visible for logged in users. I used "get_terms()" funktion for a widget that is listing links to the categories of ...
0
votes
1answer
306 views

Hide public page from logged in users?

Got a private site, with 4 public pages. The public pages include: Login, lost password, register and preview. The preview page shows content set to anyone only. I need the preview page to be hidden ...
0
votes
0answers
373 views

Automatic updates of plugins and themes outside of wordpress.org

I'm finding it surprisingly difficult to find any info on standardized ways of updating a "private" plugin that does not exist in the wordpress.org repositories. I've seen -- and bought -- plenty of ...
0
votes
1answer
1k views

Front end login and page restriction

I've read a few posts about this topic, but I haven't found any plugins that fit my need. What I want to achieve: User A and B both have a login. When user A logs in, he's redirected to www....
1
vote
0answers
98 views

How can i realize a semi-private research diary blog

We are a group of researchers who would like to each use a blog as our research diary. Regularly we would write down in a post what we have been doing, intermediate results, to do's, challenges ahead, ...
0
votes
1answer
59 views

Simplest way to create two private sections each with a common account

My client's site requires two separate, private sections. For each of them, there is one common login/password pair (or possibly one password without login) to be used. The client probably wants this ...
1
vote
0answers
164 views

Wordpress tax_query not showing private posts

When querying posts with the following: $getClientsArgs = array( 'post_type' => 'client', 'showposts' => -1 ); query_posts($getClientsArgs); Private posts are displayed if the person ...
3
votes
1answer
3k views

Using a private method as an action callback from within a class

I have created a class from within which I would like to call a private method (from within the same class) from the __construct method as an action callback. When I would like to use a public method ...
1
vote
1answer
1k views

Allowing users to view private posts (pending approval)

OK so I mostly fixed this myself I went into post.php in wp-includes. Changed the 'protected' => true, of pending to 'public' => true, but every time wordpress updates this will reset (I ...