https://www.wpbeginner.com/plugins/allow-multiple-authors-to-be-associated-with-a-post-in-wordpress/
]]>Fix we put in place was to change the “other’s posts” to just specifically exclude “my unpublished.” rather that search on ‘not my authorship’ because of the plugin interaction posts with a specifically selected author, were not coming up as “mine” but also were not returned with the existing query
‘author’ => -$current_user->ID,
$others_unpublished = get_posts(array(
'post_status' => $unpublished_statuses,
'exclude' => array_column($my_unpublished, 'ID'),
//'author' => -$current_user->ID,
'suppress_filters' => false,
'perm' => 'editable',
));
]]>https://www.ads-software.com/plugins/co-authors-plus/
Is there any way to tie the additional authors into notification emails?
]]>I have created a custom post type that supports author
. With Co-Authors Plus activated, I can set a guest author on a new CPT post and the author name is correctly displayed on single pages when the post is rendered.
When I browse to /author/guest-author-name, instead of showing the author’s CPT posts, I get a 404 error.
If I create a new (standard) post and assign the same guest author as above, that post is returned when I browse to /authors/guest-author-name, but the custom post type post is not.
Repro Steps:
author
in the supports
arrayExpected Behavior:
Actual Behavior:
Bonus problem:
Expected Behavior:
Actual Behavior:
I have a page using a custom template where I want to list all authors with their image and description, and also show a link to their posts page, but I can’t find a proper way to do that.
]]>author.php
$coauthor_query = array(
'post_type' => 'post',
'meta_key' => 'coauthor',
'meta_query' => array(
'key' => $author,
'compare' => '='
)
);
$data['coauthors_posts'] = Timber::get_posts($coauthor_query);
author.twig
{% for post in coauthors_posts %}
{% include 'tease-coauthor.twig' %}
{% endfor %}
so I have a query to select posts with a coauthor and have it display if it equals the author.
any help would be appreciated.
thanks.
]]>in my functions file i have the below code, it shows the author name but i would like it to show Posted By (Author Name Here)…
//
// Author.
//
$author = sprintf( ‘rrr’,
( function_exists( ‘coauthors’ ) && is_singular(‘post’) ) ? coauthors_posts_links() : get_the_author()
);
This is the code on Smart Archives that I believe pulls the author that I need to edit but nothing seems to work, any tips?
protected function substitute_author( $post ) {
return get_user_option( 'display_name', $post->post_author );
}
Thanks!
https://www.ads-software.com/plugins/co-authors-plus/
]]>This is the code:
<?php $coauthors = get_coauthors(); ?>
<?php foreach( $coauthors as $coauthor ): ?>
<?php $userdata = get_userdata( $coauthor->ID ); ?>
<div class="col mobile-12 tablet-6">
<figure class="col mobile-2 no-padding author-avatar">
<?php if ( $userdata->display_user_email ) echo $userdata->display_user_email; ?>
<?php
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</figure>
<div class="col mobile-10 author-description">
<h4 class="no-margin author-title"><?php if ( $userdata->display_name ) echo $userdata->display_name; ?></h4>
<p class="no-margin font-size-small author-description"><?php if ( $userdata->user_description ) echo $userdata->user_description; ?></p>
</div>
</div>
<?php endforeach; ?>
View image Example:
https://cl.ly/image/3a3W1K1W3d0M
https://www.ads-software.com/plugins/co-authors-plus/
]]>Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method emailcoauthor_class::options_page() should not be called statically in /var/www/html/wordpress/wp-includes/plugin.php on line 429
Notice: Use of undefined constant TEXT_DOMAIN – assumed ‘TEXT_DOMAIN’ in /var/www/html/wordpress/wp-content/plugins/emailcoauthoronpost/EmailCoAuthorOnPost.php on line 199
Email Settings
https://www.ads-software.com/plugins/emailcoauthoronpost/
]]>