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.

AJAX Store Locator ★★★★★

Just finished up a project using AJAX store locator from codecanyon. The client needed a lightweight solution to locate specialty stores all across the country. With some significant upgrades, we customized this script to suit their needs exactly. Customization took around six hours but was much more efficient

Why is a short domain name better than a long one?

There are several reasons why a short domain name is generally considered better than a long one: Easier to remember: Short domain names are easier to remember than long ones, which makes it easier for people to find and return to your website. More professional: Short domain names

Page Speed Insights

The importance of page load speeds for website performance cannot be emphasized in the current digital environment. A website’s loading speed can make or break its success in today’s fast-paced world when people expect rapid access to information and flawless online experiences. The following are some major justifications

Would You Lock Out 20% Of Your Customers?

If you have a website that is not responsive, or that does not have a mobile version (at least), that’s exactly what you’re doing. Nowadays it’s not just an important add-on feature to your website, going mobile is essential to a fully adjusted online presence. Did you know

Ethics honesty and integrity words on signpost

Honesty & Integrity in Business: The Foundation of Long-Term Success

In today’s fast-paced digital world, businesses are constantly competing for attention, customers, and growth. Some companies take shortcuts, making promises they can’t keep, or worse, engaging in dishonest behavior that prioritizes profit over integrity. At Livewire, we believe that honesty, transparency, and strong core values are the key

New Web Program: Brain Development Maps

Creating braindevelopmentmaps.org was a great opportunity to work on a very interesting site; Shirley came to Livewire with very specific needs. There is nothing ‘typical’ or ‘standard’ about this website, it is in a word, unique. Braindevelopmentmaps.org allows users to view highly detailed brain mapped images online. These