Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/cb42751d0dddfcf752bd to your computer and use it in GitHub Desktop.
Save champsupertramp/cb42751d0dddfcf752bd to your computer and use it in GitHub Desktop.
<?php
/***
*** @integrate co-author plus with Ultimate Member
***/
function um_integrate_coauthor( $args ){
global $ultimatemember;
$posts_query = $ultimatemember->query->make('post_type=post&posts_per_page=12&offset=0&author_name=' . um_user('user_login') );
return $posts_query;
}
add_filter('um_profile_query_make_posts','um_integrate_coauthor');
?>
@tmueller01
Copy link

Hi,

where must i install this script?

@tmazawi
Copy link

tmazawi commented Mar 3, 2018

First i want to thank the author, Great code worked perfectly.
@tmueller01 you just needs to add it to the index.php file (add it to the end of the script) in the root folder of ultimate member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment