Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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

tmueller01 commented Feb 28, 2018

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