scribu
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Search include relationshipsNot sure what you mean. A relationship is just a bunch of numeric ids and a type. What would you search on?
Forum: Plugins
In reply to: [Posts 2 Posts] Admin View Sort by Drop DownThis is now implemented in the development version (1.5-alpha). Just add the following line to your p2p_register_connection_type() args:
'admin_dropdown' => 'any'Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersI’m not very familiar with BuddyPress, so I don’t know how you could get hold of the current user in a profile page; try asking in the BuddyPress support forums (down for maintenance, ATM).
That said, I’m pretty sure you’re not supposed to put the loop code directly in
functions.php.Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersIt’s not clear from the code you posted where the
$uservariable is set. It should preferably be a WP_User instance.Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersJust replace
get_posts()withnew WP_Queryand the second loop should work.Forum: Plugins
In reply to: [Posts 2 Posts] Clever URL'sForum: Plugins
In reply to: [Posts 2 Posts] Admin View Sort by Drop DownThanks for sharing, sdls. This is something that should be included in P2P eventually: https://github.com/scribu/wp-posts-to-posts/issues/115
I’ve copied your code to a gist in case it gets moderated.
Forum: Plugins
In reply to: [WP-UserOnline] [Plugin: WP-UserOnline] Wp-user online Plugini have seen that user online statistic and my google analytic analysis is not same.
What do you mean, exactly?
The connections show up fine for me in 1.4.3. Are you able to create new connections in wp-admin?
There is no way to do that and there probably never will be, since the query is complex enough as it is.
You can just do multiple queries and then use
array_intersect( $query1->posts, $query2->posts )to find the posts that match all criteria.Forum: Plugins
In reply to: [Front-end Editor] cant install the pluginThe plugin zip is 5.2 MB. Maybe your hosting has some sort of limit in place.
Forum: Plugins
In reply to: [Posts 2 Posts] get_non_connectable() limited by pager size?Nice catch! Fixed in the development version (1.4.3-alpha):
https://github.com/scribu/wp-posts-to-posts/commit/59ebcff8fb70fa2ce4a18ce1b3cc23d50fa5cf08
Forum: Plugins
In reply to: [WP-UserOnline] Minor Feature Request ( solution)You know, that’s exactly what I was thinking a few days ago.
In the development version (2.83-alpha), when you hover over the user IP, you’ll see the user agent, instead of the hostname.
Forum: Plugins
In reply to: [Query Multiple Taxonomies] Checkbox URL IssueThat’s just how the data in HTML checkboxes gets serialized into a URL; there’s nothing wrong with it.
It’s more complex than dropdowns because with checkboxes you can choose multiple terms in the same taxonomy.
@dannyjimmy: As Jason said, empty terms are already hidden by default.
@wxyjp: That seems to work well. Commited to the latest development version (1.6.3-alpha). Thanks for sharing!