Home›Topic Tag: Controlling access to front-end content
Topic Tag: Controlling access to front-end content
Access plugin allows you to limit front-end read access to specific pages, posts or custom types and define who will be able to access that content. It also provides the functionality to set access control for specific blocks inside page content, in order to place texts that are visible to or hidden from certain user types.
When you ask for help or report issues, make sure to tell us on which content and user types you are trying to apply access control.
Viewing 15 topics - 331 through 345 (of 415 total)
Problem: Is it possible to allow Guests to create posts by submitting Forms? I have set permissions for these Forms in Access Controls, but I'm still having problems submitting the Forms.
Solution: In this case, it looks like the transcript field ( file upload field ) is required. Guests, by default, are not allowed to upload Media. In order for a Guest to be able to upload a file to the Media Library, you must use custom code to allow that permission. I added this code to your functions.php file:
add_action( 'admin_init','reset_guest_caps' ,9 );
function reset_guest_caps(){
global $current_user, $wpcf_access;
if(isset($_GET['formid']) && $_GET['formid']==126&&$current_user->ID==0)
{
$wpcf_access->settings=array();
}
}
Problem:
Create a quiz with multiple choice questions
Solution:
You should create post types to store your questions and answers where answers should be the child of questions having one custom field that denotes
Problem: I would like to show content dynamically based on the author's role and the current visitor's role. If they are in the same role, the content should be displayed.
Solution: Use Access post groups to display content conditionally based on User role.