• Resolved Delana Taylor

    (@delanataylor)


    Quick question

    On the member profile page, the posts tab shows a long vertical list of the posts made.

    Is there a way to make this a grid? After a lot of posts, this long list is cumbersome even with the pagination button.

    If so, how and where would I need to make the changes?

    ETA Also, the form options, are you going to change the defunct Google+ option to something else more current? lol

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @delanataylor

    You can create a custom Posts tab and then use this plugin to create a posts grid:
    https://www.ads-software.com/plugins/post-grid/

    Here’s the code snippet that you need to add to your theme/child-theme’s functions.php or use the Code Snippet plugin to run the code:

    function um_custom_posts_tab( $tabs ) {
    
    	$tabs[ 'my-posts-grid' ] = array(
    		'name'   => 'My Posts',
    		'icon'   => 'um-faicon-pencil',
    		'custom' => true
    	);
    
    	UM()->options()->options[ 'profile_tab_' . 'my-posts-grid' ] = true;
    
    	return $tabs;
    }
    add_filter( 'um_profile_tabs', 'um_custom_posts_tab', 1000 );
    
    add_action( 'um_profile_content_my-posts-grid_default', 'um_profile_content_my_posts_grid_default' );
    function um_profile_content_my_posts_grid_default(){
        echo do_shortcode('[post_grid id="62"]');
    }

    The above code will create a custom Profile tab named “My Posts”. You need to change the post grid id 62 to your own post grid created in the Post Grid plugin.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @delanataylor

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts Tab Question’ is closed to new replies.