scribu
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Admin Colums Labels in 1.5.1Please share the relevant
p2p_register_connection_type()call.Forum: Plugins
In reply to: [Posts 2 Posts] Selection of connected post mandatory$_POST['p2p_connections']Forum: Plugins
In reply to: [Posts 2 Posts] Mandatory selection of connected postForum: Plugins
In reply to: [Posts 2 Posts] Selection of connected post mandatoryIt’s not currently possible, without some custom code.
Forum: Plugins
In reply to: [ImageShack Offloader] Registration Code URL is a 404You are not on the right track.
This plugin is abandoned and I’m pretty sure it doesn’t work at all anymore.
Forum: Plugins
In reply to: [Posts 2 Posts] Filtering WP_Query by specific connected itemOh, the problem is that you’re using both ‘connected_to’ and ‘connected_query’.
Replace
'connected_to'with'connected_direction' => 'to'.Also, don’t define the
'post_type'when filtering.Forum: Plugins
In reply to: [Posts 2 Posts] Filtering WP_Query by specific connected item'ID'is not a recognized WP_Query query var. Try:$args['connected_query'] = array( 'post__in' => array( $subject ) );Or, even easier:
$args['connected_items'] = $subject;Forum: Plugins
In reply to: [Posts 2 Posts] Limiting connections options based on metaYou could try setting ‘from_query_vars’ or ‘to_query_vars’ when calling
p2p_register_connection_type().Forum: Plugins
In reply to: [Posts 2 Posts] connected_to => 'any' returns duplicatesOne way to eliminate the duplicates is to re-index the posts by their ID:
$connections = new WP_Query( array( 'post_type' => 'venue', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'asc', 'update_post_term_cache' => false, 'update_post_meta_cache' => false, 'connected_type' => 'scheduleitem_to_venue', 'connected_direction' => 'from', 'connected_items' => 'any', ) ); $venues = array(); foreach ( $connections->posts as $post ) { $venues[ $post->ID ] = $post; }Now just loop through
$venuesor usep2p_list_posts( $venues );Forum: Plugins
In reply to: [Posts 2 Posts] Show only custom post type which has a connectionI assume the reason you’re not getting anything is because you’re also passing
'meta_key' => 'faculty_last'. This should work:$args = array( 'post_status' => 'publish', 'orderby' => 'meta_value', 'order' => 'asc', 'posts_per_page' => -1, 'nopaging' => true, 'suppress_filters' => false, 'connected_type' => 'directory_to_projects', 'connected_direction' => 'from', 'connected_items' => 'any', ); $dir_query = new WP_Query($args);Forum: Plugins
In reply to: [Posts 2 Posts] Got error-message after updating to 1.5Forum: Plugins
In reply to: [Posts 2 Posts] 1.5 triggering fatal errorThat’s because the ZIP you get from Github doesn’t contain all the necessary files.
Try downloading from the link I gave you again.
Forum: Plugins
In reply to: [Posts 2 Posts] 1.5 triggering fatal errorShould be fixed in the development version (1.5.1-alpha).
Forum: Plugins
In reply to: [Posts 2 Posts] Defining order of outputForum: Plugins
In reply to: [WP-PageNavi] WP_DEBUG notice core.php on line 17