WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
Co-authors in Montezuma Theme (3 posts)

  1. filo21
    Member
    Posted 10 months ago #

    Hi,

    I've read the guide on how to incorporate co-authors in a theme, but I'm still having some trouble figuring that out. I'm using Montezuma, and it seems I'm not able to find the template-tags.php that supposedly has to be edited in order to show multiple authors on the front-end.

    Any idea on how I should proceed?

    Thanks,

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. studentenkrant
    Member
    Posted 9 months ago #

    If you click appearance, then you'll see themes, widgets etc. The last option (I'm guessing 'editor', not sure though, since mine is in Dutch, nevertheless beneath Montezuma options) should give you a whole bunch of different php files to edit (one of which should be template-tags.php.

    Let me know how you do, because I'm also using montezuma and cannot get it to work. I activated the plugin and it seems to be working. When I go to the author page, the articles are assigned to multiple authors. However, <?php coauthors_posts_links(); ?> which I changed for <?php the_author_posts_link(); ?> in the single.php does not seem to return anything.

    Here's an example post with multiple authors (I've both included <?php coauthors_posts_links(); ?> and <?php the_author_posts_link(); ?> in single.php, but as you can see, only <?php the_author_posts_link(); ?> gives 1 return.
    http://studentenkrant.org/2012/11/feithhuis/

    Good luck!

  3. filo21
    Member
    Posted 9 months ago #

    I found the template-tags.php, but I don't really know what to do once I get there... I don't seem to find any author or byline tags. I don't really know any php, so this is quite complicated for me, sorry!

    The instruction say that the following function should be added to single.php and author.php in order for co-authors to show on the front-end (the plugin seems to work fine on the backend), but once again, I can't find any "author" line in those phps, and of course I don't know where else I should look, or what I should change.

    if ( function_exists( 'coauthors_posts_links' ) ) {
        coauthors_posts_links();
    } else {
        the_author_posts_link();
    }

    Instructions say that the function should also be adapted to each theme, but I wouldn't know how to do this, too.

Reply

You must log in to post.

About this Plugin

About this Topic