-
Hi David,
Thanks for Your replied about co author plugin. But, I cannot find this topic under WordPress then just started login page under Generate Press. I wait for my question were1. Can I not use plugin to create co author because of slow loading speed if too many plugin?
2. If no choice, what are criteria to look for plugin? Example – If Light weight plugin, where to find official specification?
Thanks
-
Hi there,
1. You would need to create a custom solution without a plugin as WP doesn’t offer a co-author feature by default. Code is code though – it doesn’t matter if it’s added using a custom solution or plugin, it’s still code.
I would guess a co-author plugin would have minimal impact on your site speed but you can always test that before and after using the plugin.
2. You can run your site through speed/performance tests before and after using the plugin.
I hope this helps.
-
Hi Leo,
Thanks for your helps.
I installed co=author plugin. How to add the 2nd author or editor there. because I have checked the shortcode but it’s not workingThanks
-
Hi there,
see there reply here:
https://generate.support/topic/use-gp-to-add-co-author-in-fe/#post-123955
It will tell GP to return the co-authors output in place of the themes author meta.
Which follows the guidelines from the co-author plugin:https://github.com/Automattic/Co-Authors-Plus/wiki/Template-tags
-
Thanks for your advise. I will try it. After installed code snippet plugin, can I remove it to reduce many plugin which will lower loading speed. When I need it, I will reinstall it. Are there any problem?
Thank
-
Alvind
Hi there,
You need to keep the Code Snippets plugin active for the snippets to take effect. Deactivating it will stop the snippets from working.
Alternatively, you can add the snippet directly to the
functions.php
file of a child theme. Using a child theme is important here, as it prevents the snippet from being overwritten when the parent theme updates.This article explains more: https://docs.generatepress.com/article/using-child-theme/
-
Hi
Thanks for your reply.I have difficult to use code, unless you give me custom code to paste simply. My image here is look like simple to change this for different name. I am not using co-author plugin for this.
Thanks
-
You can copy and paste this snippet into a code snippet:
add_filter( 'generate_post_author_output', function( $author ) { if ( function_exists( 'coauthors_posts_links' ) ) { return sprintf( ' <span class="byline">%1$s</span>', coauthors_posts_links( null, null, null, null, false ) ); } return $author; } );
-
Dear David,
I got it. Thanks a lot
Do not mind to ask again.
1. Is it possible to get separate author boxed into one as shown below?
2. Need to use code for on top of content as shown?https://i.postimg.cc/MTm3RxGH/Coauthor.png
https://i.postimg.cc/SsS7B9yQ/Screenshot-2024-10-31-094303.png
https://i.postimg.cc/qMhXH4dK/co-author.pngThank
-
You would need to check with the co-author plugin support.
But if you refer to the plugins homepage page:It seems they provide some blocks with you can use to display the co-author details.
-
Dear GP,
Thank you very much for all your reply.
Can I get this type of simple Author and editor without any plugin?
https://i.postimg.cc/7LzYPhD2/coauthor-without-plugin.png
Thank
-
Without any plugin would require custom development especially if the editor has to be user on the site and have a link to their archives..
- You must be logged in to reply to this topic.