The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
2answers
86 views

One Site as a part of Multisite to be hidden (Un-published) from Public?

Lets say i have some sub-domains under one single Multi-site: http://apple.example.com http://banana.example.com <---- hide from public access (Protected) http://cherry.example.com How do i ...
1
vote
1answer
32 views

Restrict the user access in multi site for non-assigned blogs

What is the better way to restrict a user of any role being logging into a blog of wordpress multisite network if he/she is not assigned to that particular blog as a user even though he is an ...
2
votes
1answer
487 views

Restrict post edit/delete based on user ID and custom field

I've been able to prevent deletion and editing of posts based on user ID and page ID however, I need to restrict access to editing and deleting based on a custom field. Not sure how to go about doing ...
4
votes
1answer
74 views

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a ...
0
votes
1answer
25 views

setting a specific home page for logged in users

After googling, I have a piece of code to set a specific page as home page in wordpress. The code says, add_action('init', 'loginCheck'); function loginCheck() { if (is_user_logged_in()) { ...
0
votes
0answers
31 views

Restrict acces to chosen pages

So i'm restricting access to a few pages based on some conditions: example: function restrict_wp_admin() { if (is_admin() AND !current_user_can('manage_options')) { global $wp_query; ...
0
votes
0answers
45 views

Return 404 on chosen pages like /wp-admin/

let me start by saying i use the theme: x. i've jumped onboard in trying to restrict access to the wp-admin page for non-logged-in users and non admin users. first i tried with the code below: if ...
0
votes
1answer
40 views

How restrict video to be open on direct url hit

i have client website of premium E-learning videos on wordpress. i have uploaded all the videos(MP4) in wp-content/uploads directory. i have problem since it is a premium video i want it such a way ...
0
votes
1answer
41 views

Using a page-template to restrict access based on IP (Frontend)

I've found this advice for restricting the access to a whole WP site via adding a function to the init hook that holds a whitelist of IP adresses. I tried to rewrite that to the condition that only ...
0
votes
1answer
27 views

Restrict content even to specific user

I am developing a membership site that will allow members to access old issues of a magazine produced by a charity. I have it working up until a point, I can restrict access to each download to the ...
0
votes
1answer
33 views

Requiring login for specific pages

I have 2 lines of code in my header.php file that exclude the header from an array of pages. The code looks like this: <?php if ( ! is_page( array ( 3599,3653,3684,3732,3737,3758, 3769 ) ) ) { ...
0
votes
0answers
33 views

Restricting access to specific site in multi-site platform

I am working on a multi-site platform and I need to allow only certain user-role (i.e Seller) to access specific site. For example: everybody can access domain.com, but I need to set a rule so that ...
10
votes
6answers
4k views

How to restrict attachment download to a specific user?

I have a very specific use case where the site built for a lawyer and each of his clients can login to their own 'specific page/portal' (custom post type) without the ability to access wp-admin etc. ...
0
votes
0answers
16 views

Excerpt data from one page into another

I'm a comparative noob at working inside WordPress. I'm trying to do my homework before asking, but haven't been able to uncover answers to the following. I could use your expertise. I'm working ...
0
votes
1answer
22 views

Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end

Restrict backend. add_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && ! current_user_can( 'administrator' ) && !( defined( 'DOING_AJAX' ) ...
0
votes
0answers
52 views

Restrict access to custom post type and filter from every query

I created a custom post type topic which is just for internal use. I managed to assign the correct capabilities so that users of certain roles can edit/publish/delete posts. Now I want to redirect ...
0
votes
2answers
70 views

How to force acceptance of site terms on first login?

I want to force users to accept the terms and conditions of the site when they log in for the first time. I found a couple plugins that would show the terms, but they don't prevent you from ignoring ...
1
vote
1answer
83 views

How do I log out users from a restricted page if they are already logged in on another device? [closed]

Hope someone can help me. My client and I are down to the wire on this project and I can't seem to figure out a solution for this problem. I'm currently using WP Bouncer to limit the amount of ...
4
votes
1answer
128 views

Loading posts associated only to the logged in user on recent posts page

Dear Wordpress Captains, I've stumbled upon a problem and I am seeking for assistance. What I'm trying to create is a customer portal where the logged in user will only see the posts that are ...
1
vote
1answer
36 views

Are exclusive taxonomy terms possible?

I'm creating a site that requires users' content to be exclusive to the user. Ideally I would like this to extend to taxonomy terms. Example: I have a taxonomy "Clients" UserA creates the term "My ...
1
vote
4answers
535 views

WP Cron doesn't save <iframe> or <object> in post body

I am using wp_cron to auto grab posts from a remote website and save them in my wp db. NOTICE! I am executing my code from my plugin, not from my template functions.php or somewhere else. I have my ...
0
votes
0answers
134 views

How do I block access to a specific WP page to all IP addresses, excluding one?

I'm quite new to WordPress, and I've just set up a landing page for some internet kiosks I manage. I want this landing page to only be accessible from a certain IP address, and some sort of "access ...
0
votes
1answer
41 views

Member Site - Always Sends Me Back To Login

I set up a simple site about a year ago for a client that uses a modified Twenty Fourteen theme to run a members only site. You can see the site here. She wanted the site to be completely restricted ...
0
votes
1answer
22 views

How can I lock specific posts (cpt's) from editing by anyone other than ADMINS

To be 100% clear, this has nothing to do with the front end of the site. I want to keep all users other than Admins from editing a few specific posts. The posts are a CPT that the editors/admins ...
9
votes
1answer
8k 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 ...
0
votes
2answers
160 views

force login loophole

I want to restrict access to my wordpress site to allow registered users only. I have tried the following plugins: Require-login Authenticator WP-lock All of them have the same problem: After ...
-1
votes
1answer
178 views

Website visible only to Registered users (non wp-admin)

I have created a page with a custom login using wp_login_form() function but how can I redirect all visitors to that page in similar way described in that topic? My code looks like: function ...
2
votes
1answer
926 views

Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts

I want to restrict users in wordpress to view their own post and media items only. Following the steps given in the below link I have developed the plugin to restrict users to view the own posts and ...
0
votes
2answers
107 views

How can I set a maximum allowed post size and number of posts submitted?

How can limit the size of posts that authors can create on my WordPress site and the number of posts they can create?
0
votes
1answer
360 views

How can I restrict a custom WordPress role access to only a specific plugin?

I created a custom plugin . I want to add some admin side users to use that plugin. I created a specific role . But i want to restrict the those users/role access only that plugin not the entire ...
3
votes
3answers
6k views

How do I display a user specific content?

I have a site that displays the content only to registered users. Most of the content is available to all the users, but some of it is user specific (i.e. all users have that page, but each sees a ...
0
votes
1answer
134 views

Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?

I want to restrict the uploads and only be visible to logged-in users. But the PDF's or images files always are visible and also to un-logged users. You can imagine that this WP would be completely ...
0
votes
2answers
197 views

Restricting page access [closed]

I need to restrict access to a page in a wordpress site for everyone but registered users. I have looked at a couple of plugins, and although they work well, they don't quite fit my solution... The ...
0
votes
1answer
202 views

Allow users to only CREATE one single (custom) post

I created a custom post type with taxonomy and now want to allow users (of a specific user group) to post only one single post in a specific category. If the user has already posted a post, he can ...
0
votes
2answers
156 views

I restricted wordpress by logged users. It's possible exclude a page?

Here is my code for restrict my wordpress site: function restrict_access_if_logged_out(){ if (!is_user_logged_in() && !is_home()){ $redirect = home_url() . '/wp-login.php?redirect_to=' ...
0
votes
1answer
300 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 ...
0
votes
1answer
233 views

Restrict access to trash, only admin

I'm new in WordPress. I have to restrict access to the Trash for all users except the administrator. All users CAN move to the Trash, but only admin can delete permanently or restored. I do not know ...
0
votes
1answer
312 views

Wordpress Shop and restricting products and categories for some users/groups

I have this webshop that I've built in WordPress, no WooCommerce, no Wp-Commerce or anything like that, but from scratch. The users visiting the site will have to be logged in to view products and ...
0
votes
1answer
273 views

Limit file downloads to logged in users (WP + Nginx)

I am looking for a way to restrict access to mp3 files on my site to logged in users only. The approach listed here sounds pretty much like what I need: RewriteEngine On RewriteBase / RewriteCond ...
0
votes
1answer
71 views

Custom content before post content

I am using this code to insert custom content after title and before content. How can i limit it to only "post" not pages and custom post types. function theme_slug_filter_the_content( $content ) { ...
0
votes
1answer
23 views

How do we restrict a user to see a field in a post without registration,

How do we restrict a user to see a field in a post without registration, after registration the user will be able to see the link. I have a project in which I have created a post from an excelsheet ...
0
votes
1answer
271 views

Restrict access to content in conjunction with facebook connect & google login

I've got a page of content that I want to hide by default. We want the users wanting to see the content to be able to simply login using Facebook connect or Google logins. Since we will be using this ...
0
votes
0answers
27 views

Show some content if the user has done something

I am looking for an easy way to set conditions that the user has to meet before some content will be available for him. I want to make something like a tunnel of pages, for instance, where the user ...
0
votes
0answers
74 views

Assign specific editor with custom user meta “A” to all authors with custom user meta “A” and exclude all other author access

I am looking to do the following: Logic/layout/cores: All contributors select a school in a custom user profile meta field All contributors also select a club in a custom user profile meta field ...
1
vote
1answer
520 views

Removing Wordpress Plugin Menu Item for a specific user

I want to remove certain dashboard menu times for a specific user. Now this menu consist of plugin menu items as well. One particular plugin I want to hide from the user is Contact Form 7. Here is ...
0
votes
2answers
519 views

Hide page link in main menu from anonymous users

The title pretty much explains itself, I'm looking for a way/plugin to hide the menu link to a specific page from users that aren't logged in.
0
votes
1answer
137 views

How to give members access to their own protected page?

I'd like to give each member access to their own personal page that only I'll be able to edit. Each member will have their own personal page with private info. Do you have any suggestions on how to ...
-1
votes
1answer
133 views

Using Conditional Tags to restrict something to 1 user?

I am using the following widget http://wordpress.org/plugins/widget-logic/ This allows me to restrict widgets using WP Conditional tags. What I want is to restrict one widget to only 2 users. ...
2
votes
3answers
874 views

Allow access on a page to just only a specific member

I am trying to create a membership site on WP where each members will have access to only specific pages created for them. I mean just a member is allowed to view content on a page while that page is ...
0
votes
2answers
1k views

Downloadable content only for subscribers?

I'd like to use WordPress to set up a whitepapers site. Any user can check the main site with a list (blog format) of white papers available. But if a user wants to download any whitepaper, he has to ...