WordPress.org

Ready to get started?Download WordPress

Forums

Custom Author Byline
Custom Author URI (3 posts)

  1. dylan
    Member
    Posted 10 months 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:
    the_author_link

    ... 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.

    http://wordpress.org/extend/plugins/custom-author-byline/

  2. cyanophycean314
    Member
    Posted 2 months 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
    Member
    Posted 1 month 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags