Trying to get co-authors working with global search.
-
Im using 2 different plugins (neither of which are getting any real support) but i believe that you fine folks might be able to give me a hand.
I am using the co-authors plus plugin and the multisite global search plugin.
I cant seem to wrap my heard around trying to pull in co-authors into the global search results.
global search is pulling the author details like this:
$blogid = ''; foreach( $search as $s ) { $author = get_userdata( $s->post_author ); if( $blogid != $s->blog_id ) { $blogid = $s->blog_id; ?>
And the author information is created with this
<span class="globalsearch_author"><?php echo '<a href="https://' . $s->domain.$s->path.'author/'.$author->user_nicename . '" title="' . $author->user_nicename . '">' . $author->user_nicename . '</a>'; ?></span>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trying to get co-authors working with global search.’ is closed to new replies.