• We’re using the Co-Author Plus plugin to assign guest author names to blog posts without requiring WordPress accounts. In the Top 10 sidebar widget, we noticed that when author names are enabled to display, the name shown is the WordPress user that created the post, rather than the name of the Guest Author attached to the post. Is it possible to adjust the widget to pull the Guest Author display name instead of the WordPress user? Can we utilize some of the coauthor tags supplied by the Co-Authors Plus plugin?

    https://wordpress.org/plugins/top-10/

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    Hi,

    Currently, you will need to edit top-10.php around line 452.

    I’m not sure as to how exactly Co-author Plus gives it tags. In theory, you could add filters to top-10.php which you can then use to modify the contents.

    $author_info = apply_filters( 'crp_author_info', get_userdata( $result->post_author ), $result->ID );
    $author_name = apply_filters( 'crp_author_name', ucwords( trim( stripslashes( $author_info->display_name ) ) ), $result->ID );
    $author_link = apply_filters( 'crp_author_link', get_author_posts_url( $author_info->ID ), $result->ID );
Viewing 1 replies (of 1 total)
  • The topic ‘Show guest author names via Co-Author Plus’ is closed to new replies.