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 ...
5
votes
5answers
17k views

How do I remove unwanted pages like archive, search, etc.?

By default WordPress pushes out a whole array of pages I don’t want or need - archive, author, blog, monthly, recent posts, categories, comments, attachment, taxenomies, search, search results, and ...
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 ...
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
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
4k views

Exclude Private, Draft pages from Primary Nav when using custom menu

I'm looking for ways to prevent "private" and "draft" pages from appearing (to non-logged-in admins) in a site's Primary Navigation menu which is based on a custom menu - other than manually removing ...
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
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 ...
-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 ...
2
votes
3answers
2k views

Attach a private function at a hook?

I have a class with some private & public functions. The thing is that I don't want some of the functions to be able to be called outsite of the class, so I want to make them private. But I need ...
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
47 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
198 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 ...
11
votes
1answer
14k views

simple solution for restricting access to (some) uploads/downloads

Initial Situation For a site I'm setting up I was looking into the whole field of securing uploads/downloads and restricting access to them based on user roles/capabilities. Of course I have read ...
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 ...
5
votes
3answers
10k views

Set posts of a custom post type to be private by default?

Say I created a custom post type called 'Private Posts' ($post_type = itsme_private_posts) and want all posts under the custom post type to be set to 'Private' automatically when published i.e. by ...
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 ...
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
1answer
9k views

The best way to protect uploaded media in WordPress?

I'm new to WordPress as I normally code my stuff by hand, I've been uploading some media to display links to within protected pages, which is great, however, anyone can access the direct url of the ...
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,...
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 ...
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
445 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
1k views

List Category Posts not showing posts marked private to logged-in users

I'm using the List Category Posts plugin, and it isn't listing posts marked private, even if the appropriate user is logged in. Is there a fix for this?
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
90 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 ...
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
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 ...
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 ...
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 ...
0
votes
1answer
3k views

Private Posts/Pages & Search

I have a site up where there is one private page and one private post. When logged is as admin, i can view both of these, and they even appear in the search. However, when logged in as an editor, I ...
1
vote
3answers
6k views

How to keep track of user logins?

I have a client with a private Wordpress blog - that is to say, you need to log in to read it. We are using Counterize to keep track of visits to the site and to find the most popular pages. But now ...
1
vote
1answer
422 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 ...
2
votes
5answers
421 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
602 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() ) ...
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 ...
3
votes
6answers
18k views

How do I require authorization / login to view a specific set of posts / pages?

I am working on a wordpress site for a client who wants an internal 'intranet' for his employees. The basic needs are: Communicate things in-house House important company documents Provide quick ...
0
votes
3answers
3k views

Override private status - Enable users to read private posts

Hidden private posts for not logged in users The private posts are by default only visible when logged in. Override, show private posts for everyone Is there a clever way to override this? Make it ...
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.*$...
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 ...
1
vote
2answers
8k views

How to set privilege to wordpress subscriber for private page

I am having private page.I want to show this page only when "subscriber" logged in."Editor" should not access this page.How can i set the privilege.
1
vote
2answers
409 views

Excluding private/protected posts via IP

I essentially want password protected/private pages/posts in WP to work as they currently do, but completely disregard the functionality for certain IP addresses. I've looked into filters/actions ...
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 ...