Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save champsupertramp/cb42751d0dddfcf752bd to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Hi,

where must i install this script?

@tmazawi

tmazawi commented Mar 3, 2018

Copy link
Copy Markdown

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