Questions tagged [private]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12 votes
2 answers
11k 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 ...
jgraup's user avatar
  • 9,744
1 vote
1 answer
3k 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?
kylesureline's user avatar
-1 votes
1 answer
508 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 ...
rollwiththepunches's user avatar
2 votes
2 answers
2k 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 ...
Paul-Beyond's user avatar
0 votes
1 answer
536 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 ...
PJ Brunet's user avatar
  • 530
0 votes
1 answer
747 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. ...
scarably's user avatar
  • 123
1 vote
1 answer
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,...
shackleton's user avatar
0 votes
1 answer
917 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-...
Aubry's user avatar
  • 1
1 vote
2 answers
2k 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 ...
mrwweb's user avatar
  • 10.2k
5 votes
0 answers
2k 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 ...
rera's user avatar
  • 51
0 votes
1 answer
41 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 ...
Toc's user avatar
  • 227
4 votes
1 answer
772 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 ...
user1815920's user avatar
0 votes
1 answer
2k 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 ...
user54097's user avatar
0 votes
0 answers
473 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 ...
Malibur's user avatar
  • 579
0 votes
1 answer
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....
RP-90's user avatar
  • 38
1 vote
0 answers
133 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, ...
scattered_dandelion's user avatar
0 votes
1 answer
99 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 ...
drake035's user avatar
  • 1,157
1 vote
0 answers
262 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 ...
CharliePrynn's user avatar
4 votes
1 answer
6k 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 ...
tommyf's user avatar
  • 405
1 vote
1 answer
2k 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 ...
PirateScott's user avatar
1 vote
1 answer
1k views

Hide a template part when page is password protected?

I'd like to hide the sidebar of my page when the page is password protected and the password has not yet been entered. I've searched for a while and haven't found any condition I could use. Maybe ...
Fredy31's user avatar
  • 858
0 votes
1 answer
1k views

Have custom post type Visibility be private by default, and have radio button also set to "Private"

I have been following the advice of this answer, but ran into a glitch... The post Visibility says "Private" on my custom post, but if you click the "Edit" link to reveal the radio buttons, the "...
jen_f's user avatar
  • 3
1 vote
2 answers
687 views

Planned private posts get published immediately

Somehow, it doesn't seem to be possible to plan post for my subscibers (visibility private) as they get published private automatically as soon as I save them. Is there any way I can keep wordpress ...
nozzleman's user avatar
  • 113
7 votes
3 answers
16k 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 ...
its_me's user avatar
  • 4,511
-1 votes
1 answer
2k views

Step by Step Instructions for Making Media/Uploads Private to Only Logged-In Users

all. I found this site via a Google search that led me to this topic: How to Protect Uploads, if User is not Logged In? It looks like that solution would work for my situation (including hakre's ...
Matt Nolan's user avatar
1 vote
1 answer
4k 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 ...
RoseCoder's user avatar
  • 181
0 votes
3 answers
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 ...
Jens Törnell's user avatar
0 votes
1 answer
2k views

How can I create an RSS feed that includes "Private" posts?

I'm currently publishing articles to wordpress as "Private", as I don't want them to be viewable on the website. However I do need an RSS feed of these posts. Any suggestions on how to go about ...
Nick5a1's user avatar
  • 173
9 votes
2 answers
3k views

Are transients private or public?

Are WP transients specific to the user-session or can they be accessed from any session anywhere? Since they are written to the DB, I would imagine they are public and accessible everywhere, but is ...
Daniel Boccato's user avatar
0 votes
1 answer
47 views

Privacy in WordPress

I am looking to set up a private community using WordPress. The requirements are: User can "register" somewhere An admin will "approve" them The user gets an email "you have been approved" The user ...
William Entriken's user avatar
2 votes
3 answers
2k views

Show a special message for private page?

If I set a page to private, can I have it show a message instead of a 404 page for public users?
user1729506's user avatar
0 votes
3 answers
2k views

Prevent private post 404

I want private posts (for those not logged in) to use the single.php template just as public posts do, at the moment they get thrown over to the 404.php template. I've had a good look through the ...
Ben Everard's user avatar
  • 1,258
13 votes
1 answer
18k 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 ...
Nicolai Grossherr's user avatar
2 votes
3 answers
9k 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 ...
jeph perro's user avatar
0 votes
1 answer
197 views

Need to block user role from accessing bbPress all together

I've been looking at some options and I haven't seen a full solution to what I need. I need to block certain user_roles from accessing bbPress all together and from seeing the link to the page. Any ...
Jeremy's user avatar
  • 211
9 votes
5 answers
33k 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 ...
Eystein's user avatar
  • 235
0 votes
1 answer
100 views

What is the best way to achieve unique Member functionality?

im a developer that is somewhat new to wordpress. I have a client that is a wedding planner and wants to create a basic membership (paid) site where women can join and create checklists, budgets, ...
js111's user avatar
  • 177
4 votes
2 answers
12k views

How do I check if a post is private?

What I am looking to do is check if a page is private, give the users the option to register and see the page. Here is what I have now: <?php if (have_posts()) : /* Print the most as normal */ ...
hornj's user avatar
  • 485
-1 votes
1 answer
897 views

How can I make my blog private? [closed]

I want to create a blog to share with my family, but random Internet strangers should not be able to read the posts. How can I make posts hidden to the public, by default? I know I can manually edit ...
Torben Gundtofte-Bruun's user avatar
9 votes
6 answers
32k 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 ...
timshutes's user avatar
  • 1,010
2 votes
3 answers
1k views

Making a Custom Post type only visible to non-users via a specific link

I am working on creating a small web-app with wordpress as the framework. It allows you to input a customer and in turn sends an email to the customer with a link back to the website in order to ...
Wattsy's user avatar
  • 53
4 votes
6 answers
7k 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 ...
Jeff Cohan's user avatar
3 votes
5 answers
4k 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 ...
barakuda28's user avatar
0 votes
2 answers
306 views

AJAX requests within templates

I'm trying to come to an accurate decision here about safe ajax requests from a template. The thing about AJAX that always scares me is that the called script location is public: http://www.mydomain....
dcolumbus's user avatar
  • 637
0 votes
1 answer
1k views

How to properly print a 404 error without redirecton? (i.e. keeping the current URL)

There are some pages on my BuddyPress install that I would like to hide by printing a 404 error. With the help of the following question: Redirect Restricted Page to 404 I came up with this code: ...
Paul T.'s user avatar
  • 319
0 votes
3 answers
4k views

How to control who can view certain pages in BuddyPress? [closed]

I would like to control who can see a page in BuddyPress and restrict anyone else from accessing it. Something along the lines of the following pseudocode: <?php if ( loggedin_user_ids==1,4,5,7 ) ...
Paul T.'s user avatar
  • 319
0 votes
1 answer
80 views

Advice on setting up private site

I've developed a wordpress site which is only to be made available to around 30 people, whose email addresses I have in a spreadsheet. I want to allow these people to be able to register/login and ...
bsod99's user avatar
  • 121
1 vote
0 answers
225 views

How to show private flickr group on a Wordpress site?

I have been trying to embed a flickr group within a Wordpress site for our camera club using a plugin such as slicker flickr or awesome flickr gallery. I have no problems with showing a set of ...
Marc de Ridder's user avatar
3 votes
1 answer
711 views

Members Only site with Feed Keys

I've had good luck for several years (6 years!) running WordPress with Members Only and Feed Keys. This provided a completely members only blog (no external view at all) as well as private RSS feeds ...
artlung's user avatar
  • 3,087
1 vote
0 answers
180 views

How do I get next_posts_link to work with private posts?

next_posts_link and previous_posts_link don't show pages or posts that are private. This question has been asked many times on Wordpress forums with no solution. How do I get this navigation to show ...
3x5's user avatar
  • 133