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

Raven Tools

Took a look at Raven SEO tools today. Really, not all that impressed. They have a good price but it mostly looks like you’re just hooking up other services to be managed in one location. That’s valuable in and of itself, but not really what we’re looking for

Budding Biologist has a new website

A cute website for a really neat childrens’ book series by budding biologist. Their new website is responsive, meaning it is mobile ready and will display correctly across all devices and all browsers. Integrated web store and using the latest in HTML 5 and CSS3 media queries. Cloud

CSS3

Lots of new fun with CSS3. CSS makes styling web pages a snap. Now CSS3, the third “version”,  allows for incredibly robust styling possible. For instance, background gradients are a breeze when before developers had to create them as images or use CSS ‘hacks’ to accomplish those goals.

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

Firefox is dead to me

That happened a long time back. Now it seems that the once beloved browser is now in the same situation with the majority of its former users. I personally feel that the browser lost its roots in version 12, but it was showing signs of becoming yesterdays news

The Best of HTML 5

Thank Goodness HTML 5 is finally here and it’s everything we expected it to be and more! Out of the many new features with the code standards comes with it many new and exiting programs to facilitate the production of HTML 5 websites. One great new tool is