Yet Another Related Posts Plugin (YARPP) with Clipper
I have tried searching and haven't found any instructions on how to integrate YARPP with Clipper to get it to work with showing related coupons. So I made a coffee and sat here until I figured it out. I'm a novice, so this is for other novices.
As I have recently learned, YARPP is awesome for
SEO, and it's pretty customizable. When you initially install it, it will only work for showing related blog posts or pages. In order for it to incorporate the custom Coupons taxonomy, you have to make a simple edit to one of the Clipper files. I have searched high and low for a different way, but have found nothing else.
1. Open /
wp-content/themes/clipper/includes/admin/admin-post-types.php in a code editor.
2. On line 56 you see
Code:
'query_var' => true,
on that line, hit enter to move to the next line and paste this
Code:
'yarpp_support' => true,
3. Save the file and go to your
WP Admin, Settings > Related Posts (YARPP) and you will now see a "Coupons" checkbox after Media. Check the box and Save Changes
4. Now check out one of the single views of your coupon.. if you have many in your database you should see a related one appear underneath. See my example:
http://www.couponwatch.ca/coupons/smart-source/
Hope that helps anyone looking to use a related posts plugin for their coupons.