This plugin is easy to use with themes that use the WordPress function the_author_posts_link or get_the_author_posts_link to display the author. This is a WordPress filter that works very well. Unfortunately, every theme author has a different way of doing things and few authors use this pluggable function. If your theme does not use this functionality, you can create a child theme using a plugin like the ‘Child Theme Configurator’ (make sure that you copy all of your settings to the child theme) and replace the code used to generate the author link with one of the above functions. Read more about child themes here. If you are having difficulties, please let us know and we will be happy to help you.
You may also use our function:
gap_the_author_posts_link ( $link ) to display a list of authors using the separator of your choice.
examples using child themes:
Twenty-Seventeen generates the author link in the file inc/template-tags.php in the theme folder. and uses this code to generate the author link:
You can safely replace this code in your custom theme with the filtered WordPress function.
gap_the_author_posts_link( get_the_author() );
Generate Press:
Twenty Twenty Child Theme File
When creating a child them for the TwentyTwenty theme, the twentytwenty_get_post_meta function, as is sometimes the case, is not pluggable. You can copy the entire template inc/template-tags.php file to your child theme. WordPress will load the template-tags.php in the child theme instead. Change the code that outputs the author from
Here is what it looks like with a semicolon as a separator:
Must Use Function (Varia child theme)
Varia child themes – since you already have a child theme, you should create a php file in your wp-content/mu-plugins folder containing the following code to override the parent theme function: