Ben buna benzer farklı birşey yapmıştım.Kodlarla bi incele...
<script>(function(d, e, s) {a = d.createElement(e);m = d.getElementsByTagName(e)[0];a.async = 1;a.src = s;m.parentNode.insertBefore(a, m)})(document, 'script', '//w.likebtn.com/js/w/widget.js');
if (typeof(LikeBtn) != "undefined") { LikeBtn.init(); }</script>
- Tür:$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
the_field('tur', $taxonomy . '_' . $term_id);
?>
- Yapım Yılı:$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
the_field('yapım', $taxonomy . '_' . $term_id);
?>
- Fansub:$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
the_field('fansub', $taxonomy . '_' . $term_id);
?>
- Paylaş:
Konu: Bölümler
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'showposts'=>9999, // Gösterilecek benzer yazı sayısı
'caller_get_posts'=>1
);
$my_query = new wp_query($args);
if( $my_query->have_posts() ) {
echo ' ';
while ($my_query->have_posts()) {
$my_query->the_post();
?>
-
}
echo '';
}
wp_reset_query();
}
?>