Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter myvcc

    (@myvcc)

    Anyone please?

    Thread Starter myvcc

    (@myvcc)

    Yes no?

    i ran into this as well. If I remember correctly, line 212 in yoast-breadcrumbs.php, if you dont have the ‘page_on_front’ option set in your wordpress install, then get_option returns a 0 which causes get_permalink to return a link to the page the user is on. What I did was add a check to get_option(‘page_on_front’) where if it is 0 then do get_bloginfo(‘url’) otherwise go ahead and do get_permalink.

    something like:
    $homelink = '<a'.$nofollow.'href="'.(0 == $intPageOnFront = get_bloginfo('page_on_front')) ? get_bloginfo('url') : get_permalink($intPageOnFront).'">'.$opt['home'].'</a>';

    Thread Starter myvcc

    (@myvcc)

    Hi gizlow,

    Thank you very much for the pointer. Instead of editing the code, I got the idea to just change the “Front page displays” to “Your latest posts” under the Reading Settings.

    The theme that I am using is using a customized front page, so as long as I don’t set it to a static page, this should be OK I think.

    Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Yoast Breadcrumbs] Home link to the current page’ is closed to new replies.