dragonet35
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Posts to Users and each_connectedI don’t see p2p_distribute_connected() discussed or explained anywhere on the P2P wiki page. Would you please point me to it?
Thanks!
All right, I’ve switched things around so that the ‘copy’ and ‘due_date’ field information are being pulled from the user connection. So now I just have two identical blocks showing for an item with two connections.
That issue is probably not plugin related, and I’ll just have to figure out if there’s a way around that or not.
In the meantime, I have also been working on trying to get each_connected working, but that needs a new post since it’s a different question.
Thanks for the suggestion! Moving
get_users()
into theforeach($posts as $post)
almost fixes the entire issue.For each post that only has one connected user, it works perfectly; however, if a post has more than one connection, it still lists each user connected to the post title, instead of just that particular connection instance, like this:
Peter Pan | Copy #1
Date Due: 6/30/2012
On Loan to: Wendy [only Wendy should show here]
On Loan to: JohnPeter Pan | Copy #2
Date Due: 8/1/2012
On Loan to: Wendy
On Loan to: John [only John should show for copy 2]Am I missing an argument in the
get_users
call?I have also been looking at each_connected(), but so far I hadn’t been able to get it to work for the dashboard, so I’ve been concentrating on the method that at least allowed me to get this far. Still learning!
Thanks for taking the time to look at my questions.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] How to add Admin Columns?Excellent! Thank you so much – it works perfectly!