R
R
RushV2016-01-13 11:46:28
WordPress
RushV, 2016-01-13 11:46:28

Is it possible, if not, to bring the heading to the page?

Hello!
I decided to place breadcrumbs on the site, I found this code:
function my_breadcrumb() {
echo ' Main  » 
';
$categories = get_the_category();
if($categories[0]){
echo '
'. $categories[0]->name . ' '  ';
}
echo '
';
echo the_title();
echo '';
}
placed in Functions.
But here is such a problem, when I click on the link of the heading, it throws me to the Main page, but how can I not bind the heading to the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2016-01-13
@Punkie

Nonsense. Better put the SEO by Yoast plugin - there are the most normal breadcrumbs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question