Co-Authors Plus
[resolved] Change "and" for "&"? (5 posts)

  1. plinth
    Posted 5 years ago #

    Great plugin, just wondering if I can change the "and" for "&" (without hacking the core) as I'm running a multi-language blog and could do with the symbol instead of the text. Thanks.


  2. snurk
    Posted 4 years ago #

    Any news on how to implement this?? :)

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 years ago #

    Yes! It's totally possible. Sorry we missed this. If you're using the most recent version of Co-Authors Plus, you can add a snippet like this in your theme's functions.php file to change the output:

    define( 'COAUTHORS_DEFAULT_BETWEEN_LAST', ' & ' );

    Hope this helps!

  4. Peter J. Herrel
    Posted 4 years ago #

    Hey Daniel, thanks for your great plugin. I added the snippet to functions.php, and it throws following debug info: "Notice: Constant COAUTHORS_DEFAULT_BETWEEN_LAST already defined in .../functions.php on line ...". Also, adding the snippet didn't change the default "and".

    Furthermore, I localized the plugin with poedit and translations work fine in admin, but don't seem to take effect on the front (i.e. it doesn't seem to translate the __( ' and ' ) ). FYI: I wrapped the coauthors_posts_links() template tag in a custom function like e.g. my_author_posts_links().

  5. snurk
    Posted 4 years ago #

    Hi there!

    Thanks for reply, I tried to add this in the themes functions.php

    define( 'COAUTHORS_DEFAULT_BETWEEN_LAST', ' & ' );

    This made no change at all.

    I also have the same problem as donutz about localization, see post here: http://wordpress.org/support/topic/plugin-co-authors-plus-co-authors-plus-languages?replies=1

    Would be very happy for any input on how to change the "and" between the authors' names..

    Best regards,

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