scribu
Forum Replies Created
-
I have a small hack in wp-includes/query.php, allowing me to show two types of posts in an Archive.
That’s why kittens run when you hack Core. That should be perfectly achievable with the ‘pre_get_posts’ hook.
With regards to the ‘admin_column’ query_var, could I request a future enhancement to allow me to change the title that is displayed in the list table?
Yeah, it’s on the TODO list: https://github.com/scribu/wp-posts-to-posts/issues/192
Forum: Plugins
In reply to: [W3 Total Cache] Patch for wp-cli commandFor legal reasons, I have to mention that most of the code in the patch was actually written by andreascreten, with help from johnpbloch.
Forum: Plugins
In reply to: [W3 Total Cache] Patch for wp-cli commandI had read about that, but forgot about it in the mean time. Disregard my patch then.
Looking forward to the next release.
That’s all done for you, if you use the ‘admin_column’ option:
https://github.com/scribu/wp-posts-to-posts/wiki/Admin-column-display
Forum: Plugins
In reply to: [Posts 2 Posts] Adding New Post Connection to Activity StreamFirst thing you need to understand is that there are two kinds of actions:
* registering a connection type (happens on each page load)
* creating a new connection of a certain typeFor adding connections to the activity stream, you’d need to use the ‘p2p_created_connection’ hook:
function handle_new_connection( $p2p_id ) { $connection = p2p_get_connection( $p2p_id ); if ( 'YOUR_CONNECTION_TYPE' == $connection->p2p_type ) { bp_activity_add( ... ); } } add_action( 'p2p_created_connection', 'handle_new_connection' );Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersWell, that’s a stdClass object, not a WP_User object.
Try passing
$bp->displayed_user->idto ‘connected_items’.Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersPlease post the result of the print_r() call.
Forum: Plugins
In reply to: [Posts 2 Posts] Post links 404 after upgrade to 1.4.3The screenshot helps.
Maybe you can find the call to p2p_register_connection_type() and post it here. It might be in the
functions.phpfile in your theme.Forum: Plugins
In reply to: [Posts 2 Posts] Post links 404 after upgrade to 1.4.3It should work then; weird.
I’ve uploaded the file to the back end. The error remains the same in the page creator on the WP back end
So, what did you mean by “on the contributors section for each post” earlier?
Forum: Plugins
In reply to: [Posts 2 Posts] Loop for displaying connected usersAlso, could you explain to me what kind of values the parameter “connected_items” is looking for?
post objects or WP_User objects.
BTW, Buddypress does have a
$bp->displayed_userobject which we might could user to identify which user.Then pass that, instead of $user.
Forum: Plugins
In reply to: [Posts 2 Posts] Post links 404 after upgrade to 1.4.3I’ve uploaded the file to the back end.
Where, exactly?
Forum: Plugins
In reply to: [Posts 2 Posts] Post links 404 after upgrade to 1.4.3Hello damissal,
What version of Posts 2 Posts were you using before?
In order to get help, you need to find the code that generated that warning and paste it here.
One way of doing that is adding this file in a folder called
wp-content/mu-plugins/on your site (create the folder if it doesn’t exist) and posting the more detailed error report here.Forum: Plugins
In reply to: [Posts 2 Posts] Any chance of a commercial version with UI support?All top-level args are mentioned in https://github.com/scribu/wp-posts-to-posts/blob/master/core/api.php.
For nested args, see
admin/box-factory.php,admin/column-factory.phpandadmin/dropdown-factory.php.Forum: Plugins
In reply to: [Posts 2 Posts] Search include relationshipsThat can get messy pretty fast. You’ll have to implement this functionality yourself, using the ‘posts_search’ filter.