Sayfasını detaylıca inceledim sayfa işaretleri konusunda ama nasıl yapacağımı kafam bir türlü almadı. Bu zengin snippet olayını aranızda yapan varsa wordpress için nasıl yapacağız yardım lütfen. Görsel aşağıdadır seohocasi gibi olsun istiyorum.
Rich Snippet Sayfa işaretleri hakkında yardım |
19 Mesajlar | 3.761 Okunma |
function seobreadcrumbs() {
if ((is_page() && !is_front_page()) || is_home() || is_category() || is_single()) {
echo '';
echo 'AnaSayfa» »';
$post_ancestors = get_post_ancestors($post);
if ($post_ancestors) {
$post_ancestors = array_reverse($post_ancestors);
foreach ($post_ancestors as $crumb)
echo ''.get_the_title($crumb).'»';
}
if (is_category() || is_single()) {
$category = get_the_category();
echo ''.$category[0]->cat_name.'»';
}
if (!is_category())
echo ''.get_the_title().'';
echo '';
}
}
function seobreadcrumbs() {
if ((is_page() && !is_front_page()) || is_home() || is_category() || is_single()) {
echo '';
echo 'AnaSayfa» »';
$post_ancestors = get_post_ancestors($post);
if ($post_ancestors) {
$post_ancestors = array_reverse($post_ancestors);
foreach ($post_ancestors as $crumb)
echo ''.get_the_title($crumb).'»';
}
if (is_category() || is_single()) {
$category = get_the_category();
echo ''.$category[0]->cat_name.'»';
}
if (!is_category())
echo ''.get_the_title().'';
echo '';
}
}
function seobreadcrumbs() {
if ((is_page() && !is_front_page()) || is_home() || is_category() || is_single()) {
echo '';
echo 'AnaSayfa» »';
$post_ancestors = get_post_ancestors($post);
if ($post_ancestors) {
$post_ancestors = array_reverse($post_ancestors);
foreach ($post_ancestors as $crumb)
echo ''.get_the_title($crumb).'»';
}
if (is_category() || is_single()) {
$category = get_the_category();
echo ''.$category[0]->cat_name.'»';
}
if (!is_category())
echo ''.get_the_title().'';
echo '';
}
}
Anasayfa»»