Include different post-types to Profile tap “posts”
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Include different post-types to Profile tap “posts”’ is closed to new replies.