Hello! I am receiving multiple reports of this error:
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; authorRecentPosts has a deprecated constructor in /srv/htdocs/wp-content/plugins/author-recent-posts/author_recent_posts.php on line 17
This previous support request suggested the error had been resolved in v1.4 of the plugin. I am running v1.5 on WordPress 5.9.
]]>Hello, my theme has author box in single post.
I want to show co authors’ boxes too.
What should i do?
author-bio.php files code is:
<?php
/**
* The template for displaying Author bios.
*
* @package Total WordPress Theme
* @subpackage Templates
* @version 3.3.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Get global post
global $post;
// Define author bio data
$data = array(
'post_author' => $post->post_author,
'avatar_size' => apply_filters( 'wpex_author_bio_avatar_size', 74 ),
'author_name' => get_the_author(),
'posts_url' => get_author_posts_url( $post->post_author ),
'description' => get_the_author_meta( 'description' ),
);
// Get author avatar
$data['avatar'] = get_avatar( get_the_author_meta( 'user_email' ), $data['avatar_size'] );
// Apply filters so we can tweak the author bio output
$data = apply_filters( 'wpex_post_author_bio_data', $data );
// Extract
extract( $data ); ?>
<section class="author-bio clr">
<?php if ( $avatar ) : ?>
<div class="author-bio-avatar">
<a>" title="<?php esc_attr_e( 'Visit Author Page', 'total' ); ?>">
<?php
// Display author avatar
echo wpex_sanitize_data( $avatar, 'img' ); ?>
</a>
</div><!-- .author-bio-avatar -->
<?php endif; ?>
<div class="author-bio-content clr">
<h4 class="author-bio-title">
<a>" title="<?php esc_attr_e( 'Visit Author Page', 'total' ); ?>">
<?php echo strip_tags( $author_name ); ?>
</a>
</h4><!-- .author-bio-title -->
<?php
// Outputs the author description if one exists
if ( $description ) : ?>
<div class="author-bio-description clr">
<?php echo wpautop( do_shortcode( wpex_sanitize_data( $description, 'html' ) ) ); ?>
</div><!-- author-bio-description -->
<?php endif; ?>
<?php
// Display author social links if there are social links defined
if ( wpex_author_has_social() ) : ?>
<div class="author-bio-social clr">
<?php
// Display google plus url
if ( $url = get_the_author_meta( 'wpex_googleplus', $post_author ) ) : ?>
<a>" title="Biyografi" class="google-plus tooltip-up">
<span class="fa fa-user"></span>
</a>
<?php endif; ?>
<?php
// Display Linkedin url
if ( $url = get_the_author_meta( 'wpex_linkedin', $post_author ) ) : ?>
<a target="_blank" rel="noopener noreferrer">" title="LinkedIn" class="linkedin tooltip-up">
<span class="fa fa-linkedin"></span>
</a>
<?php endif; ?>
<?php
// Display twitter url
if ( $url = get_the_author_meta( 'wpex_twitter', $post_author ) ) : ?>
<a target="_blank" rel="noopener noreferrer">" title="Twitter" class="twitter tooltip-up">
<span class="fa fa-twitter"></span>
</a>
<?php endif; ?>
<?php
// Display facebook url
if ( $url = get_the_author_meta( 'wpex_facebook', $post_author ) ) : ?>
<a target="_blank" rel="noopener noreferrer">" title="Facebook" class="facebook tooltip-up">
<span class="fa fa-facebook"></span>
</a>
<?php endif; ?>
<?php
// Display pinterest plus url
if ( $url = get_the_author_meta( 'wpex_pinterest', $post_author ) ) : ?>
<a target="_blank" rel="noopener noreferrer">" title="Pinterest" class="pinterest tooltip-up">
<span class="fa fa-pinterest"></span>
</a>
<?php endif; ?>
<?php
// Display instagram plus url
if ( $url = get_the_author_meta( 'wpex_instagram', $post_author ) ) : ?>
<a target="_blank" rel="noopener noreferrer">" title="Instagram" class="instagram tooltip-up">
<span class="fa fa-instagram"></span>
</a>
<?php endif; ?>
</div><!-- .author-bio-social -->
<?php endif; ?>
</div><!-- .author-bio-content -->
</section><!-- .author-bio -->
]]>
I have a multi-author website, and many posts are co-authored by more than one person. I use co-author plus plugin to deal with this. Is there a way this plugin can be made to support multiple authors? That is, the widget should list other posts by all the authors of a post.
]]>It looked promising but it doesn’t work at all. I have a multi author site, I tried to include the widget on a post’s sidebar that should recognize its author, but not even the title of the widget is shown.
]]>Is there a way to use this widget to display specific post types? It seems to only show default WP posts, but I created a custom post type and would like to show related posts for that custom post type.
]]>Hello! Can I add a photo to the posts author? Thank you!
]]>Please have in mind:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; authorRecentPosts has a deprecated constructor in …/wp-content/plugins/author-recent-posts/author_recent_posts.php on line 13
You can see this warning when debug is on.
THANK YOU!
]]>I’ve updated to the latest version to use the thumbnails. Unfortunately, no matter what size I put in the settings boxes and save, I get the 50px thumbs.
]]>Hiii,
I want to use this plugin in my theme without use of widget.
Which function i can call for do this?
]]>Hi,
Author Recent Posts Widget Not Working On author.php
Hello this plugin is great! However is there a way to display other post types? Even if we have to pay more this is a much needed feature.
Thank you!
]]>Hi!
There seems to be missing div class & style, when alternate image is set.
]]>