Skip Navigation

[Resolved] I have a editing form and i don't want that other users can see others titles

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 16 replies, has 2 voices.

Last updated by Joan 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1363391

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I got better solution now rather moving form to another page.

I've added the following code to "custom Code" section offered by Toolset:
=> hidden link


add_filter( "get_next_post_where", function($where, $in_same_term, $excluded_terms, $taxonomy, $post){
    global $post_type;
  
    
    if($post_type=='socicdp' and is_singular('socicdp')){
            $where .= " AND p.post_author='".$post->post_author."'";
    }
    
    return $where;
}, 10, 5);
 
add_filter( "get_previous_post_where", function($where, $in_same_term, $excluded_terms, $taxonomy, $post){
      global $post_type;
     if($post_type=='socicdp' and is_singular('socicdp')){
   
        $where .= " AND p.post_author='".$post->post_author."'";
               
    }
  
  return $where;
}, 10, 5);

can you confirm now you can only see the links for posts which is authored by the current user.
=> hidden link

#1363423

My issue is resolved now. Thank you!