Co-Authors Plus
Modifying php files for co-author (1 post)

  1. gmarkham
    Posted 2 years ago #

    Co-Author looks like what I need, but I'm having trouble with the whole modify-the-PHP files thing for the theme (SimpleMag) I'm using. This seems to be the byline code in SimpleMag:

    <?php if( $ti_option['site_author_name'] == 1 ) { ?>
                    <span class="entry-author">
                        <?php _e( 'By','themetext' ); ?> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"><?php the_author_meta( 'display_name' ); ?></a>
                    <?php } ?>

    Is it as simple as using the "if" part of the co-author code and making the above the "else"? Or is it more complicated than that?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.