Skip to main content
8 events
when toggle format what by license comment
Feb 23, 2018 at 15:47 vote accept Gadget
Feb 23, 2018 at 15:47 comment added Gadget It works! WebElaine, I'am astonished. I was trying to modify the value of $i and the comparator between $i and the count. I would never imagine this solution. I was reading a lot about php to understand better how wordpress works, and I realize that it is a really powerful language. . I appreciate your help a lot. One hundred thanks !!!
Feb 23, 2018 at 15:05 comment added WebElaine Ah, my mistake, the loop goes to 1 less than the count (since arrays start at 0, not 1) so it always adds the comma. Updated above so the last one should no longer have a comma.
Feb 23, 2018 at 15:05 history edited WebElaine CC BY-SA 3.0
Change comma condition so last author won't have a comma
Feb 23, 2018 at 10:25 comment added Gadget This piece of code is really interesting. The test for is working really well to retrieve all the names and links, but something is wrong with the counter test, the last name is still having a comma.
Feb 22, 2018 at 17:15 history edited WebElaine CC BY-SA 3.0
added 4 characters in body
Feb 22, 2018 at 17:07 comment added Tom J Nowell the_title and the_permalink don't return, they echo, so this won't work
Feb 22, 2018 at 16:18 history answered WebElaine CC BY-SA 3.0