Attach a filter that only outputs a different link when you’re on single.php:
function wpse25725_author_posts( $link )
{
// abort if not on single.php
if ( ! is_single() )
return;
// modify this as you like - so far exactly the same as in the original core function
// if you simply want to add something to the existing link, use ".=" instead of "=" for $link
$link = sprintf(
'<a href="https://wordpress.stackexchange.com/questions/25725/%1$s" title="%2$s" rel="author">%3$s</a>',
get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
get_the_author()
);
return $link;
}
add_filter( 'the_author_posts_link', 'wpse25725_author_posts' );
Related Posts:
- How to use Class
in Java? - Is there any way to use get_template_part() with folders?
- Use [embed] filter in template files
- How to edit contents of dynamic_sidebar()?
- Loading partial templates with AJAX/PJAX
- A special single page templates for posts under a category and all its child category
- Where to store some per-template preferences?
- add/apend templates ‘transparently’ via plugin to currently active theme or child theme?
- How do I override template-tags.php in twentyseventeen theme
- Programmatically change post templates?
- roots child theme can’t override header.php
- When calling wp_title(), do you have to create some kind of “title.php” file?
- TwentyTen: Overloading template.php files vs. get_template_part
- Post formats template
- Stream Video Player does not work with do_shortcode()?
- How does wordpress blocks?
- Which has more impact on site performance? Template overrides or hooks
- Subpage template
- Advanced Custom Fields – display when specific template used?
- Change location of header.php and footer.php
- What should I put on my index.php?
- How To Create WooCommerce Custom Template For Specific Product?
- How to Use Twig + Timber with Multiple Loops based on Meta Key Value
- Is there any way of viewing revision history on files in WordPress?
- Programatically create a page
- Missing .twig files in wordpress theme editor
- How to custom page template for the Gutenberg editor
- Use PHP templates as blocks
- Customize profile.php
- Directly using pure JWPlayer JS (but NOT WP Plugin)
- Login page theming?
- Use same page template for parent and child pages in a theme
- Template administration Error after WP 4.8 update
- Markup is visible when I view sample data from my template
- if page is parent page redirect to first child with hook / polylang
- Custom template bypassing to pager to index.php
- Page attributes missing
- How to put limit on slider
- What are the main parts of a WordPress Template?
- Return get_header and get_footer string instead of echo it
- Different templates for same content, landing page from different URLs (generic, simple)
- Use one template only for custom post type archives?
- Is there a more efficient way to loop through pages?
- Page template option missing
- Is it possible to register a new template file?
- Trying to create a template without navigation and footer
- Genesis – Adding custom hooks to display secondary navigation
- Force WordPress to NOT display the manual excerpt
- Can I assign a Folder for Post Formats, without it affecting WordPress’ fallback/hierarchical system?
- Custom Template page not loading get_header() correct?
- AMP version of front page without plugin
- Easiest way to map content (in json) to the view (template)?
- Removing calls to noindex() and wp_no_robots()
- Query the database after get_header() has been included
- Does wp_mail work in frontend tempate file?
- Dynamically generated URL and Content page
- Organize template parts and page templates in folders in regards of template hierarchy
- Which template.php for /blog
- Custom /Page/2/ Template Only
- wordpress – modifying template to show more posts
- How to get all template files used for rendering a single post/page?
- How to insert “get_template_part()” based on Category ID?
- Home page not loading after editing header.php file
- Content not showing properly with the first load of the page
- Where do I edit what the user sees on my WordPress site?
- How can I include ALL post types in the_post_navigation() links, not just current post type?
- Template includes
- Two different single.php depending on source page
- Attachment URL for an image is loading direct image file
- User role templates
- Fixing media query
- I’ve installed example data on Nominee template but the published site shows another version of the site
- Language file doesn’t work (poeedit)
- Set og:image programmatically in custom single post with external images
- Displaying all posts of a category in full view on one page using their single.php template
- why does not showing my custom post category list in any template?
- Locating the HTML piece of code in wordpress
- Custom Template doesn’t output result when set as homepage
- Theme keeps going to default files [closed]
- How can I show contents of a template part inside of another page?
- How to serve a amp template
- Single page applications with WordPress: routes and templates
- Inserting javascript file into theme template?
- Creating custom post-listing templates in twentyseventeen child theme
- Display different list of “Custom Templates” for each Custom Page Type
- Creating page-templates directory breaks everything!
- Submit form to another template (ugly url)
- Using file outside of template hierarchy for Twitter sign in authentication
- Page Templates Used in Custom Post Type
- List all pages using a specific template on a page
- Add pagination to blog
- Duplicated Template Does Not Load the Same as the Original Template File?
- Add multiple pages to theme customizer
- Blog template PHP [closed]
- load_textdomain won’t load my .mo file
- Output fields manually in Woocommerce email templates
- files disappearing from template
- why does blog page ignore template [closed]
- html blog template to wordpress template
- Dynamic header and footer template inclusion: footer script not included