Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi Michael,

    If you wish to use the existing section on the profile, you can use the following code to modify the post type that is loaded on that page. You can add this code to your theme’s functions.php file.

    Modify “your_post_type_here” with the name of the post type you wish to use.

    add_filter( 'wpum_get_posts_for_profile', function( $args ) {
    	$args['post_type'] = 'your_post_type_here';
    	return $args;
    });
    Thread Starter Michael

    (@bazzarello)

    Very thanks!

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

The topic ‘Custom Post Type in Profile’ is closed to new replies.