Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • raghav2417
    Participant

    @raghav2417

    Hi thanks for all the help
    I wrote this code to Functions.php and this did the trick

    function my_vc_shortcode( $atts ) {

    global $user_ID;
    $user_info = get_userdata($user_ID);
    $current_link = get_author_posts_url($user_id,$user_info->user_nicename);
    echo ‘<center>View All Posts</center>’;
    }
    add_shortcode( ‘my_vc_php_output’, ‘my_vc_shortcode’);

    Thanks again


    raghav2417
    Participant

    @raghav2417

    Hi this didnt work, It still shows the posts from other users,
    currently my button URL which takes me to the posts is website.com/category/categoryname If you can help me with the right URL then it might solve the problem, Something like website.com/author_posts
    such that it shows posts only by the current user.


    raghav2417
    Participant

    @raghav2417

    Hi Its a buddypress members dashboard, Where in one of the tabs I have added a page that allows members to write a post, Now these posts are saved as private and I want only the member writing that post to be able to view it, no other members of the website should be able to view it, However when we click on the view post button, It shows all the posts even though they are private but still it shows.
    I want the member clicking on view your post should see only posts written by himself/herself.
    Below is a link to the video describing the issue.
    https://drive.google.com/file/d/1BUNazNHAC7b_3yvXs79GmLHSwSG3uXJU/view?usp=sharing

    Thanks alot

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar