• Resolved mrcm

    (@mrcm)


    Where to add the given code?
    It is badly explained on that page, where the custom_um_profile_query_make_posts function has to be added.

    Can you please explain in which file?

    function custom_um_profile_query_make_posts( $args = array() ) {

    // Change the post type to our liking.

    $args[‘post_type’] = ‘page’;

    return $args;

    }

    add_filter( ‘um_profile_query_make_posts’, ‘custom_um_profile_query_make_posts’, 12, 1 );

    The page I need help with: [log in to see the link]

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

    (@champsupertramp)

    Hi @mrcm

    You can add the code in your theme’s function.php file.

    Please ensure that you’ve created a full backup of your site before you update the file.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mrcm

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread 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 ‘Include different post-types to Profile tap “posts”’ is closed to new replies.