scribu/wp-posts-to-posts — Issue #106: Adding character between gathered posts
Author: benjaminallison
Created: 2012-01-27 13:50:05+00:00
State: open

Just wondering if this is the best method. The point is to add a character between posts, but remove the one added to the last item (in this case, it's 3 characters: space-slash-space):

```
ob_start();

p2p_list_posts( $post->connected, 'before_list=&after_list=&before_item= &after_item= / ' );

$p2pCleaned = ob_get_clean();

echo substr($p2pCleaned, 0, -3);
```