• Resolved Jonathon Harris

    (@demo38ltd)


    Hello @etruel – curious bout WPeMatico, whether it uses rel=canonical on the imported blog posts for avoiding Google duplicate content issues? Looks perfect for an upcoming client project for referencing current topics, but want to make sure that they won’t take a hit on the SEO side.

    Thanks,
    Jonathon

Viewing 1 replies (of 1 total)
  • Plugin Author etruel

    (@etruel)

    Hi Jonathon Harris (@demo38ltd)

    Currently it’s possible by adding a wordpress filter to your code.

    For example add in your functions.php file (added without tested it, just of memory to give an idea):

    If (is_single() ) {
    	add_action( 'wp_head', 'filter_wp_head' ); 
    }
    function filter_wp_head() {
    	global $post;
    	$campaign_id = get_post_meta($post->ID, 'wpe_campaignid', true);
    	$source = get_post_meta($post->ID, 'wpe_sourcepermalink', true);
    	if(!empty($campaign_id))
    	    echo "<link rel='canonical' href='$source' />";
    }

    if you need more in deeper help, consider open a support ticket in https://etruel.com/support

    Anyway, this would be a very good addition for the next release. ??

    cheers

Viewing 1 replies (of 1 total)
  • The topic ‘rel=canonical’ is closed to new replies.