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

Livewire SEO

The most common question we receive following a website launch is, “How can I increase traffic to my website without spending a fortune or buying ads?” Every website we develop for a customer includes what we refer to as “Basic SEO”; this simply means that we will fill

Starter Websites are Cheap

We’re offering ‘starter’ websites for as little as $175 in the coming months. This will get you everything you need, including shopping cart, to start selling online. Our targets are small, home based businesses. We understand that they don’t have a lot of capital to invest in a

The Low Down on Net Neutrality

What they heck is it? Most people don’t know it past the slogan .. and that’s what it is, a slogan. Net neutrality does not mean ‘left alone”, there’s nothing laissez faire about it. It does mean oversight, more oversight of the Internet than currently exists. The advocating

Product Variations – WordPress Plugins

So this is a nice little plugin – an add-on to Woocommerce called Smart Variation Images. The extension allows  you to set different images to each product variation. This is handy to display different style types to the user as they browse through your product variation choices. Each time they

Woocommerce Products Per Page

Interestingly Woocommerce does not seem to have a default setting for ‘products per page’. Unsurprisingly, there’s a simple workaround. Add to your functions.php Replace “28” with whatever number you want. add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 28;’ ), 20 );

Branding & Marketing Services

Livewire is proud to announce that we are now offering professional branding and marketing services. Phil, the owner, never considered branding services because, well to be honest, he is terrible at graphic design (he’s a programmer so it’s okay). Branding services include but are not limited to : Branding