e-duplex
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] How To Add Info to ConnectionSorry! It was incomplete. I meant terribl….y wonderful!
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] How To Add Info to ConnectionHi scribu! Is it posible to join wp_p2pmeta in the WP_Query? Because the only way that I found to access to meta_value field is to call p2p_get_meta() in the loop. But each call of p2p_get_meta() is a new query to de DB…
It is only a little doubt, your plugin it is terrible!Forum: Alpha/Beta/RC
In reply to: Hierarchical Custom Taxonomy PermalinksHi, crazy_mtx! Perhaps this plugin will be usefull for you: Custom Post Permalinks
Sorry scribu! I do not know where I should put the ‘connected’ query var… I tried but it gave me an error message:
$query = new WP_Query( array( 'post_type' => 'post', 'nopaging' => true, 'orderby' => 'title', 'order' => 'ASC', 'connected' => 'any', 'each_connected' => array( 'post_type' => 'writter', 'nopaging' => true, 'cat' => '3', ), ) );
Hi scribu! I am using your 0.6 alpha version. It have been doing well until I tried to filter writters by category. Some writters do not appear and some do (without logic). I do not understand what happens…
$query = new WP_Query( array( 'post_type' => 'post', 'nopaging' => true, 'orderby' => 'title', 'order' => 'ASC', 'each_connected' => array( 'post_type' => 'writter', 'nopaging' => true, 'cat' => '3', ), ) );
What do think that it could be happen?
Excellent! Your plugin is fantastic and very usefull!
Sorry, my last message was an error.
Hi Scribu! I tried with
get_post()
and it works fine:// 1. WITH get_posts $posts = get_posts( array( 'post_type' => 'post', 'nopaging' => true, 'orderby' => 'ID', 'each_connected' => array( 'post_type' => 'writer', 'nopaging' => true, ), 'suppress_filters' => false ) ); echo "
"; foreach ( $posts as $post ) { echo $post->post_title . "\n"; foreach ( $post->connected as $writer ) { echo $writer->post_title . "\n"; } } echo "
";
But when I tried with WP_Query some writers didn’t appeared:
// 2. WITH WP_Query $query = new WP_Query( array( 'post_type' => 'post', 'orderby' => 'ID', 'order' => 'ASC', 'each_connected' => array( 'post_type' => 'writer', 'order' => 'asc' ), ) ); while ( $query->have_posts() ) : $query->the_post(); the_title(); foreach ( $post->connected as $p2p_id => $writer ) { echo $writer->post_title; } echo "<hr/>"; endwhile;
I don′t understand what happens in my code.
// 1. WITH get_posts
$posts = get_posts( array(
‘post_type’ => ‘post’,
‘nopaging’ => true,
‘orderby’ => ‘ID’,
‘each_connected’ => array(
‘post_type’ => ‘writer’,
‘nopaging’ => true,
),
‘suppress_filters’ => false
) );echo “
"; foreach ( $posts as $post ) { echo $post->post_title . "\n"; foreach ( $post->connected as $writer ) { echo $writer->post_title . "\n"; } } echo "
“;
It would be very usefull! Do you think you could develope it soon?