WordPress post me Related post add kaise kare ?

Hello friends, Hindihelp4u blog me aapka swagat hai, aaj ham janenge blog post me Related post add kaise karte hai. Agar aap ek blogger hai, to related post ke bare me aapko pata hi hoga, Related post kya hota hai. Agar nahi pata hai, to is post me main aapko iske baare me puri detail me bataunga.

WordPress post me Related post add kaise kare ?

wordpress-post-me-related-post-add-kaise-kare

Related Post kya hai ?

Related post – jab aapke site per koi visitors post ko read karta hai, to agar usko ush post ya article se related ( सम्बंधित ) kuch Post niche mil jata hai, jisko aapne bahut se blog , website me dekha hoga.  Jisse aapke visitors aapke blog per continue bane rahte hai. Kuch related post aapko post ke Content me bhi milta hoga,

Related post add kaise karen ?

Aap apne blog me Related post 2 tariko se add kar sakte hai, code add karke ya phir plugin install karke , main aapko dono step batane wala hu.

Related post add Without plugin-

Without plugin method se related post add karna bahut hi simple hai, aur fast loading bhi hota hai. Isme aapkp niche diya gya code aapkp apne blog me add karna hai.

Niche code copy karke single.php me add karna hai.

<?php $orig_post = $post;
global $post;
$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),
'posts_per_page'=> 2, // Number of related posts that will be shown.
'caller_get_posts'=>1
);

$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
echo '<div id="related_posts"><h3>Related Posts</h3><ul>';
while( $my_query->have_posts() ) {
$my_query->the_post();?>

<li><div class="relatedthumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div>
<div class="relatedcontent">
<h3><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_time('M j, Y') ?>
</div>
</li>
<?
}
echo '</ul></div>';
}
}
$post = $orig_post;
wp_reset_query(); ?>

Code add karne ke baad file ko save kar de.

Yadi related post me image ( themnail) show nahi karna hai, to <?php the_post_thumbnail(); ?></a></div> is code ko remove kar de.

Related post add by plugin –

Yadi aap related post code add nahi kar pa rahe hai, yaa aapke blog me error aa raha hai to, plugin install karke related post add kar sakte hai.

1-Contextual Related post plugin –

Contextual related post plugin best related post plugin hai, jisko aap Full customize kar sakte hai,

Plugin Download 

2-Yet Another related post plugin-

wordpress-post-me-related-post-add-kaise-kare

Ye another related post plugin ye ek most popular plugin hai , jiski Downloading rank sabse jada hai, ise sabse jada wordpress user use kar rahe hai, ise full customize kar sakte hai,

Download plugin

3- Inline Related post plugin-

Ye plugin use karna bahut hai, post Inline me show karna hai to iska jarur use kare. Is plugin se aap post Content me bhi also read, fir you post show kar sakte hai.

Plugin Download

हमने ये ब्लॉग हिंदी भाषा में जानकारी शेयर करने के लिए बनाए है। मेरा मकसद है लोगो की Help करना। नयी पोस्ट अपडेट पाने के लिए Email subscribe & Social Media Join करे !