Mitch,
I have been very impressed with YARPP and have used it religiously on my sites. I have also been watching very closely as custom taxonomies have been added and more importantly for me, approaching support for custom post types as well. In the 3.4.3 changelog, you mentioned "More custom post type support infrastructure"
In previous posts, you pointed to a trac ticket that hasn't been updated.
http://plugins.trac.wordpress.org/ticket/1142
http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-custom-post-types
I'm just curious, do you have any sort of roadmap or timeline for including custom post type support?
Thanks,
Derek
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/
hnikfazan
Member
Posted 3 months ago #
I really would like this functionality as well.
This is a great plugin that works like a charm.
onepack
Member
Posted 3 months ago #
I don't want to stop using this great plugin but I have about 8 custom post types and the reserved square for Yarpp is scary empty on all of these. ;-)
Any update?
onepack
Member
Posted 3 months ago #
My idea in single.php to show related content in custom post types because in my case the custom post types are like a sort category/ topic and are kinda related. Not as good as YARPP but it's a temporary fix for me.
<?php $myposttype = get_post_type( $post->ID );
if ($myposttype == post){
related_posts();
}else{
$the_query = new WP_Query('post_type='.$myposttype.'&post_status=published&posts_per_page=7&orderby=post_date&order=desc');
if ($the_query->have_posts()) { ?>
<ol>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink(); ?>" rel="nofollow"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ol>
<?php
}
} ?>
YARPP 3.5 introduces custom post type support. Please download YARPP 3.5b4 and check out its readme.txt for details.
http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5b4.zip
I also recently gave a talk on this. Here are the slides:
http://www.slideshare.net/mitcho/relate-all-the-things
Please do let me know if you run into any issues with CPT support. I'm hoping to release 3.5 soon.
When i try to use the yarpp_related() function, seems no articles is being shown, and no message (no related article) been echoed.
i just use the CPT function call.
<?php yarpp_related($post->ID, array(
'post_type' => array('mycustompost'),
)); ?>
okay, I think i found out the reason why its happening, the function request for $args first before the post id, i changed the sequence and its working correctly now.
Ah, thank you! This was wrong in the docs but I just updated it for version 3.5. :)
dannoll
Member
Posted 2 months ago #
If I have a custom post template, can I display related posts on it using YARPP infrastructure? (I read the readme for 3.5b4 and it suggests that I cannot, but I wanted to confirm.)