• pixiekaos

    (@pixiekaos)


    Success in getting CoAuthorsPlus to display multiple authors on main page, via edit to loop.php, HOWEVER, cannot get the appropriate display on the single post page, tried multiple variations on single.php and every time broke the page.

    Unsure how to edit the following single.php code to PROPERLY display both authors, any help GREATLY appreciated.

    if( have_posts() ) : while( have_posts() ): the_post() ?>
    <div class="post-title">
        <h1 class="inner-page"><?php the_title() ?></h1>
        <?php if(!profound_get_option('disable_post_meta')): ?>
        <div class="post-meta">
        <?php
            printf( '<span class="meta-date-url">' . __( 'Posted on', 'profound' ) . '</span> %1$s<span class="meta-
    
    author-url">, ' . __('By', 'profound') . ' %2$s </span>',
            sprintf( '<span class="entry-date">%1$s</span>',
            get_the_date()
            ),
            sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
            get_author_posts_url( get_the_coauthor_meta( 'ID' ) ),
            esc_attr( sprintf( __( 'View all posts by %s', 'profound' ), get_the_author() ) ),
            get_the_author()
            )) ?>
        </div>
        <?php endif ?>
    </div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘CoAuthors Plus Plugin, Issues with single.php (vs loop.php) in Profound Theme’ is closed to new replies.