Home » Experts Only » Add YARPP to Custom Post Types: WordPress

Add YARPP to Custom Post Types: WordPress

A great little plugin for adding related posts to your blog has been around for a while: YARPP, Yet Another Related Posts Plugin. It’s fairly robust, for being free, but it does not natively support custom post types – a bummer.

A quick way around this is to add a simple piece of code in your functions.php file.

add_filter('wpcf_type', 'yarpp_support_func', 10, 2);
function yarpp_support_func($data, $post_type)
{
 if(in_array($post_type, array(
 'your-custom-post-type',
 )))
 {
 $data['yarpp_support'] = true;
 }
 return $data;
}

This is a handy little solution. Simply replace ‘your-custom-post-type’ with the slug of your CPT and you’re in business. Now related posts show up just fine and you can take advantage of all the great things YARPP has to offer! Custom programming has never been easier with WordPress.

Lawn Enforcement Agency Has A New Website

Lawn Enforcement came to us in need of some SEO advice. They were paying another company several hundred dollars per month and getting nowhere. We noted that there were many, many site structural problems with their current design and all the probably needed was a new site and

What’s New: Livewire Seminars

Want to become your own SEO specialist? Need to know how to put your site on page 1 but don’t have the capital to invest hundreds to thousands of dollars in optimization? We can help! Our Search Engine Optimization Seminars will teach you how to become your own

web design north carolina

B2B Social Marketing

Social media marketing is usually not as important for business-to-business (B2B) businesses because most of their customers find them through word-of-mouth or a lot of online searching. Many B2Bs are also in ‘dry’ or serious businesses that don’t work well with pictures. But a social media marketing plan

TNT Graphics Needed us Badly

Essy over at TNT Graphics stopped by and requested some changes to his website. He just needed an overhaul of his design and some programming changes to the way the shopping cart operated. Since we can do both web design and custom programming, he came to the right

Theo Has A New Website

Theo’s Lawn Maintenance worked out a sweet deal with Livewire and we’ve been helping them do some of the SEO and web work Their old design was working fine but needed just a little pizazz and a contact form upgrade. We gladly complied and set them up in

Preloading Images with Jquery

There are times when preloading images is an important step in keeping your site/page/program running smoothly. This is especially true in the era of mobile. Here’s a cute little snippet that does just that. function preload(yourarrayOfImages) { $(yourarrayOfImages).each(function(){ $(‘<img/>’)[0].src = this; }); } preload([ ‘img/image1.jpg’, ‘img/image2.jpg’, ‘img/image3.jpg’ ]);