Title: Bug
Last modified: December 18, 2017

---

# Bug

 *  [joshuasch](https://wordpress.org/support/users/joshuasch/)
 * (@joshuasch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/)
 * I have managed to integrate the plugin and now i has noticed a bug… if i have
   received this (<? php if (function_exists (‘ coauthors_posts_links’) {)
    coauthors_posts_links();}
   else { the_author_posts_link (); }?>
 * ) and Add 2 authors to a post, there are missing the gaps between the author’s
   name and the word “and”.
 * see attachment
 * -> [https://cl.ly/oNcw](https://cl.ly/oNcw)
 * thx
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-208%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [contra8](https://wordpress.org/support/users/contra8/)
 * (@contra8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9799585)
 * Had the same problem on our side, just with the German word “und”. Added this
   small script in footer.php of the child-theme:
 *     ```
       <script type="text/javascript">
           <!-- SCRIPT FOR BUGFIX IN CO-AUTHORS PLUS: REPLACE "und" with " und " IN MULTIPLE EDITORS INFORMATION  -->
       	<!-- PROBLEM ONLY EXIST IN GERMAN -->
           jQuery('.post-time').each(function() {
       		if (jQuery('.post-time:contains("</a>und<a")')) {
       			jQuery('.post-time .author.url.fn:nth-last-child(3)').after(" ");
       			jQuery('.author.url.fn:last').before(" ");
               }
           });
       </script>
       ```
   
 * Not really elegant but it works.
 *  Thread Starter [joshuasch](https://wordpress.org/support/users/joshuasch/)
 * (@joshuasch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9802617)
 * Danke für deine Antwort!
 * Wir habne auch in Deutshc mit und das Problem.. war mir nur nicht sicher ob es
   hier verstanden wird…
 * Wir benutzen das independent-publisher theme und dort klappt es mit der footer
   php leider nicht =(
 *  [contra8](https://wordpress.org/support/users/contra8/)
 * (@contra8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9802643)
 * Gibt es denn eine Beispielseite, auf der das Problem auftritt? Dann könnte ich
   es mir anschauen und das jQuery evtl. anpassen.
 *  Thread Starter [joshuasch](https://wordpress.org/support/users/joshuasch/)
 * (@joshuasch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9802835)
 * Hey,
    danke für deine Antwort 🙂 ja gibt es und zwar hier z.B.
 * -> [https://trommel-bass.de/fetenreporterin-berlin-jule-lola-rennt/](https://trommel-bass.de/fetenreporterin-berlin-jule-lola-rennt/)
 * danke!! <3
 *  [contra8](https://wordpress.org/support/users/contra8/)
 * (@contra8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9802934)
 * So try this script:
 *     ```
       jQuery('.entry-content').each(function() {
       		if (jQuery('.entry-content:contains("</a>und<a")')) {
       			jQuery('.entry-content .author.url.fn:nth-last-child(4)').after(" ");
       			jQuery('.entry-content .author.url.fn:nth-last-child(3)').before(" ");
               }
           });
       ```
   
 * It is not beautiful but a working hack.
 *  Thread Starter [joshuasch](https://wordpress.org/support/users/joshuasch/)
 * (@joshuasch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-208/#post-9803130)
 * Ohh sweet! you are the best! it’s working! 🙂
 *  [sublines](https://wordpress.org/support/users/sublines/)
 * (@sublines)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-208/#post-9981605)
 * I know this question is old but the solution to this problem was terrible so 
   I want to offer a new one. Using jquery to manipulate the dom is a dirty fix 
   and not everyone will want to use javascript at all.
 * First of all, this wont work with posts that have more than three authors.
    Second,
   the solution posted above will ad a whitespace every single time the script finds
   the word “und” anywhere on the page.
 * A much cleaner solution would be to use css. This will work across browsers and
   in all languages.
 *     ```
       a.author.url.fn:before,
       a.author.url.fn:nth-last-child(2):after {
           content: " ";
       }
       ```
   
 * This code adds a whitespace character before every author name and a whitespace
   character before the word “and” (or whichever translation of it you use) like
   so:
    Name1,Name2andName3 -> becomes -> Name1, Name2 and Name3
 * The added whitespace character before the first name gets omitted by the browser
   automatically.
    -  This reply was modified 8 years, 5 months ago by [sublines](https://wordpress.org/support/users/sublines/).

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bug’ is closed to new replies.

 * ![](https://ps.w.org/co-authors-plus/assets/icon-256x256.png?rev=2945095)
 * [Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/co-authors-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/co-authors-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/co-authors-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/co-authors-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/co-authors-plus/reviews/)

## Tags

 * [after](https://wordpress.org/support/topic-tag/after/)
 * [before](https://wordpress.org/support/topic-tag/before/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 7 replies
 * 3 participants
 * Last reply from: [sublines](https://wordpress.org/support/users/sublines/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/bug-208/#post-9981605)
 * Status: not resolved