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.

More Web Design Blog Content

Photography Services

At Livewire we have not had photography services in the past, leaving it up to clients to procure their own services for website pictures. Over time, this has become an inconvenience. Mainly, waiting for images holds up the design process. We are so glad we found Kimber Greenwood

5 Ways Small Businesses Can Use AI Like a Fortune 500 Company

Think AI is just for tech giants and massive corporations? Think again. The same artificial intelligence tools that power billion-dollar companies are now available—and affordable—for small businesses too. From automating customer service to generating marketing content, AI can help you work smarter, faster, and more efficiently. Here’s how

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

Facebook Ads V2

Still debating whether or not to use facebook ads? The short answer is you just have to put something out there to get the data back in order to determine if it gives you that ROI or not. Facebook’s network is extensive and the major benefit of advertising

What the Heck! The Boutique Guide?!

Yes, it’s the roll out of our newest fandangled BOUTIQUE GUIDE! This is a really, truly excellent experiment in cooperative advertising. We’ve built The Boutique Guide to get small boutiques – generally just a one or two person operation – a leg up on their (lass capitally challenged)

OpenCart CCBill Payment Module ★★★★

4 Stars for this plugin. It worked, that part is true but we had to make some modifications and there were some syntax issues with the PHP. Overall though, a solid plugin for opencart and the ONLY one we found worth a darn for CCBill. We think our