Support » Plugin: Co-Authors Plus » Need help getting Co-Authors Plus to work with the Catch Box theme

  • Hi. I have Co-Authors Plus functioning properly on my site right now (, but I can’t get the template tags to work with the new theme I’m considering switching to. Here’s the post I wrote at the theme’s support forum:

    For the last week I’ve been playing around with Catch Box on the back-end (using the Theme Test Drive plugin) because I’m strongly considering making a switch to either Catch Box or even Catch Box pro.

    I’ve been able to tweak Catch Box to meet most of my needs, except for one key issue: I can’t find where to alter the code to allow for dual bylines to appear on the home page, post pages, etc.

    Dual bylines on my site are handled through a plugin called Co-Authors Plus. As part of the plugin, they offer some simple revised template tags for you to enter into your php files so dual bylines can be displayed on whatever pages you need them. For example, in my current theme, I just have to find where the theme is looking for the_author_posts_link and replace that section of code with this:

    <?php if ( function_exists( ‘coauthors_posts_links’ ) ) { coauthors_posts_links(); } else { the_author_posts_link(); } ?>

    However, because of the way Catch Box is dynamically coded, I can’t find the appropriate locations to make these template tag changes. I have no idea where Catch Box is pulling in author template tags so that I could alter the code to include dual bylines.

    Any help in getting this to work would be much appreciated.

    Here’s what they wrote me back:

    You cannot directly print the the author functions. As we don’t use the_author_posts_link() but we use get_author_posts_url(). So, you need to ask the plugin author to send the function which just return the value but not print it.

    Then you can edit the function catchbox_posted_on() in fucntions.php. The best way to edit the theme will be to build child theme and just copy the function catchbox_posted_on() in your child theme functions.php and edit it.

    So with all of that in mind, could anyone here fill me in on what the code would be to send the function to return the value but not print it?

  • The topic ‘Need help getting Co-Authors Plus to work with the Catch Box theme’ is closed to new replies.