Skip to content

Instantly share code, notes, and snippets.

View yaowee's full-sized avatar

yaowee

View GitHub Profile
@yaowee
yaowee / yoast_seo_prev_next_change.php
Created September 5, 2018 10:17 — forked from amboutwe/yoast_seo_prev_next_change.php
Remove or modify the Yoast SEO prev or next URLs. Only copy the section of code you need.
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Change Yoast SEO Prev/Next URL on some pages
* Credit: Yoast Team
* Last Tested: Jun 10 2017 using Yoast SEO 4.9 on WordPress 4.8
*/
add_filter( 'wpseo_next_rel_link', 'custom_change_wpseo_next' );
@yaowee
yaowee / primary_category.php
Created August 27, 2018 15:11 — forked from jawinn/primary_category.php
Display Primary Category (Yoast's WordPress SEO)
<?php
// SHOW YOAST PRIMARY CATEGORY, OR FIRST CATEGORY
$category = get_the_category();
$useCatLink = true;
// If post has a category assigned.
if ($category){
$category_display = '';
$category_link = '';
if ( class_exists('WPSEO_Primary_Term') )
@yaowee
yaowee / gist:589ce18c5417a578d867754a17cc0653
Created May 4, 2016 20:06 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: