[resolved] Override author field on category list plugin (4 posts)

  1. websiteangels
    Posted 2 years ago #

    Not sure if you can answer this... but I'm trying to use your very helpful byline override to show the byline author on a category post list, using the WP Category Post List plugin. The code that it uses to display the author is

    /** Add author? */
    $post_output .= ((true == $op['show_author'])? ' <span class="wp-cpl-author">' . __('By ', $wp_cat_list_itg_tans) . 'post_author) . '">' . get_the_author_meta('display_name', $post->post_author) . '</span>' : '');

    I've tried a few things, using the_author and byline in various places, but I'm not very knowledgable with WP's setup. Do you know how I could do that?


  2. mattdu
    Plugin Author

    Posted 2 years ago #

    I just ran a test install with byline and the WP Category List plugin and was able to see the byline displayed instead of the "author."

    You can see it here: http://mattdulin.com/tdcx/hello-world/

    I'm not sure why it would not behave the same way on your site. What theme are you using?

  3. websiteangels
    Posted 2 years ago #

    Oh nice, I wonder what I did to mine. I'm using Reizend for the theme. I'll look into it more and see what I did. Thanks so much for your help!

  4. mattdu
    Plugin Author

    Posted 2 years ago #

    I've checked out this theme. The plugin's widget works just fine, however the theme itself does not display bylines correctly.

    You can see it here (screenshot will expire in 30 days): http://awesomescreenshot.com/0ef2jr9if5

    This is happening because the theme is using a unique section of code to display the author. To make Byline compatible, I would have to rewrite a portion of the theme's template tags. You're better off finding a free theme that is compatible.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Byline
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.