• Resolved Brent Wilson

    (@bwbama)


    Hi,

    I can not get the breadcrumbs to display in a default Twenty Seventeen theme and this error keeps appearing in my error logs:

    [22-Mar-2018 20:55:08 UTC] PHP Warning: Use of undefined constant ‘bcn_display’ - assumed '‘bcn_display’' (this will throw an Error in a future version of PHP) in /home/nginx/domains/xmrstak.com/public/wp-content/themes/xmrstak/header.php on line 59

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    You probably copied the example calling code from ww.wp.xz.cn instead of from the actual readme.txt. Unfortunately, .org messes with code examples. Using something like the following for your calling code should work better:

    <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
        <?php
        if(function_exists('bcn_display'))
        {
                bcn_display();
        }?>
    </div>
    Thread Starter Brent Wilson

    (@bwbama)

    Thank you, that was the issue. I found the above and it worked great.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined Constant’ is closed to new replies.