Breadcrumb NavXT does not use the $post->ancestors property so that is not the cause. If you look at the HTML output of the breadcrumb trail do you see closing anchor tags without corresponding opening tags?
Thread Starter
Ajime
(@ajime)
Hi Mtekk,
No, there’s no sign of any hyperlinking in the code.
<!-- Breadcrumb NavXT 3.7.0 -->
Home <span class="normal"> > </span> Portfolio <span class="normal"> > </span> Designed by us
That’s all the output.
Thanks again for your help.
How are you calling the plugin?
Also, check your settings, make sure the anchor templates are not blank.
Thread Starter
Ajime
(@ajime)
I’m using a child theme, so I’m calling the breadcrumb and placing it in the layout via the functions page.
//place breadcrumb navxt in layout
function breadifier()
{
global $post;
if ($post->post_name != 'home' && is_page())
{
echo '<div id="breadcrumbs">';
if(function_exists('bcn_display'))
{
bcn_display();
}
echo '</div>
<div id="socialbox">
<ul>
';
if(function_exists('fontResizer_place')) { fontResizer_place(); }
echo '
<li><a href="http://www.facebook.com/profile.php?id=1108874361" target="_blank" id="facebook" class="social"><span>facebook</span></a></li>
<li><a href="http://ca.linkedin.com/pub/tom-watson/13/2b1/aa1" target="_blank" id="linked" class="social"><span>linked-in</span></a></li>
</ul>
</div>';
}
#add social media and font size links
}
add_action('thematic_header','breadifier',10);
The anchor is :
As I mentioned before, this is working without any issue on a number of other servers including the server I developed it on. It doesn’t work on this server. The company just suffered a major security breech, which is why I immediately went to a server setting question. As indicated, whatever’s going on seems to have messed with the ancestor functionality. I hope I’m way off here and you’ve heard of some issue.
Thanks again
Are you sure the code your provided is the calling code you are using? The only way I know that would cause the behavior you are seeing is if you pass in parameters into bcn_display. Specifically, if the second parameter passed in is false, e.g. bcn_display(false, false); will result in the behavior you are seeing.
Thread Starter
Ajime
(@ajime)
Hi mtekk,
Yes, that is a cut/paste of the code from the functions file. I’m still suspicious that there may be some server settings messing with some wordpress fundamentals, but the logs aren’t showing any errors, so I’m at a loss.
I was having the same problem with a client of mine. I fixed it by adding the following line to the wp-config.php file.
ini_set(‘zend.ze1_compatibility_mode’, 0);
Hope that helps!