WordPress.org

Forums

Canonical URL's
Latest post set as Canonical URl for frontpage (1 post)

  1. harlekinx
    Member
    Posted 4 years ago #

    Hey guys,

    i just encountered a very strange problem with the Canonical URL PLugin. On my frontpage the last post was set as canonical. I couldn't find something in the search although i think someone else mst have had this problem to.

    i fixed it by putting a is_single check into the function.

    function yoast_canonical_link() {
        global $post;
    
        if(!is_single()) return;
    
        ....

    anybody else had this behaviour? I'm using multisite und the newest canonical url plugin 2.0.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags