Custom Author Byline
Custom Author URI (3 posts)

  1. dylan
    Posted 2 years ago #

    The custom author byline plugin has a filter on line 32. It says:
    add_filter( 'author_link', 'custom_author_uri' );

    but it doesn't seem to work. My theme calls for an author name to show the link, but it doesn't appear using the custom value.

    I tried changing it to match something I saw on the codex to say instead:

    ... but that didn't work either.

    I did manage to find a workaround though. By editing my theme, instead of the plugin, I can include this:
    <a href="<?php echo get_post_meta($post->ID, 'uri', true); ?>" rel="author"><?php the_author(); ?></a>

    and now I get the intended results. the author's name is shown, via the custom field, along with a link to the custom author URI.

    I thought I would share this in case anybody knows how to fix the plugin, or in case anybody wants to try my workaround.


  2. cyanophycean314
    Posted 1 year ago #

    I would like to say thank you for posting this. I ran into the same problem and this was a godsend. :)

  3. Dan Knauss
    Posted 1 year ago #

    Is the problem here that custom author links are not working at all with some themes?

    I tried this plugin with Woo Canvas, which automaticlly creates linked author names that go to an archive list of all posts by that author. When this plugin is used, the author name is overridden with the custom byline name, and the custom author link is applied as a *redirect* that happens AFTER going to the author archive for the user actually assigned as the post's author. Not ideal, but it works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Author Byline
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic