• Resolved design

    (@meandesigns)


    Hi there, is there a shortcode to embed the users post list without all the other account stuff?

    • This topic was modified 5 years, 5 months ago by design.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @meandesigns,

    Do you want to show all the users’ post on a single page? Please confirm.

    regards,

    Hello @meandesigns,

    By default, it will be unavailable to provide any shortcode to show the posts section only on the account page. However, if you want to hide the other tabs of account page like dashboard, subscription, edit profile that can be done.

    For hiding subscription, edit profile, submit post etc: Please check the screenshot. You will find these fields in your WP-admin > WPUF > Settings > My account section.

    For hiding the dashboard tab of the account page: Please add the following custom code in your child theme’s functions.php file:

    add_filter('wpuf_account_sections', 'wpuf_get_account_sections_custom' );
    
    function wpuf_get_account_sections_custom($account_sections){
        foreach ($account_sections as $key=>$section) {
            if(isset($section['slug']) && $section['slug'] == 'dashboard'){
            	unset($account_sections[$key]);
            }
        }
        return $account_sections; 
    }
    

    regards,

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

The topic ‘User view post list’ is closed to new replies.