Article Directory
be dia beWordPress pluginAfaka mahatsapa ny asan'ny fanolorana lahatsoratra mifandraika sy maminavina izay tianao.
- Ny tombony amin'ny plugins WordPress dia ny mora amboarina, saingy mety hisy fiantraikany amin'ny tranokala.
- Noho izany, maro ny olona mbola tia mampiasa kaody WordPress mba hampiharana lahatsoratra mifandraika ary maminavina ny fiasa tianao.
- Torak'izany koa anefa dia mifanipaka ihany koa ny fehezan-dalàna hampiharana lahatsoratra mifandraika sy maminavina izay tianao.

Lahatsoratra mifandraika amin'ny WordPress atolotra, hevero fa tianao ny santionan'ny kaody
Ity manaraka ity ny vinavina tianao kaody hahazoana lahatsoratra mifandraika amin'ny marika sy sokajy:
<h3>猜你喜欢</h3>
<ul class="related_posts">
<?php
$post_num = 10; //文章数量
$exclude_id = $post->ID;
$posttags = get_the_tags(); $i = 0;
if ( $posttags ) {
$tags = ''; foreach ( $posttags as $tag ) $tags .= $tag->term_id . ',';
$args = array(
'post_status' => 'publish',
'tag__in' => explode(',', $tags),
'post__not_in' => explode(',', $exclude_id),
'caller_get_posts' => 1,
'orderby' => 'comment_date',
'posts_per_page' => $post_num,
);
query_posts($args);
while( have_posts() ) { the_post(); ?>
<li><a rel="bookmark" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_title(); ?></a></li>
<?php
$exclude_id .= ',' . $post->ID; $i ++;
} wp_reset_query();
}
if ( $i < $post_num ) {
$cats = ''; foreach ( get_the_category() as $cat ) $cats .= $cat->cat_ID . ',';
$args = array(
'category__in' => explode(',', $cats),
'post__not_in' => explode(',', $exclude_id),
'caller_get_posts' => 1,
'orderby' => 'comment_date',
'posts_per_page' => $post_num - $i
);
query_posts($args);
while( have_posts() ) { the_post(); ?>
<li><a rel="bookmark" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_title(); ?></a></li>
<?php $i++;
} wp_reset_query();
}
if ( $i == 0 ) echo '<li>暂无相关推荐</li>';
?>
</ul>- anisan-dry zareo
$post_num = 10;dia ny mampiseho ny isan'ny lahatsoratra mifandraika amin'ny 10. - Raha tsy misy marika sy sokajy ao amin'ny pejy WordPress dia hiseho ny "Tsy misy soso-kevitra mifandraika".
Ahoana no fomba anaovan'ny WordPress rohy lahatsoratra mitovy?
Amin'ny alàlan'ny fametrahana ny plug-in ad-inserter, apetraho ireo tolo-kevitry ny lahatsoratra mifandraika amin'ity lahatsoratra ity mba hampidirina ao aorian'ny votoatin'ny lahatsoratra (fampidirana: Aorian'ny atiny), eritrereto fa tianao ny kaody fiasa.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) nizara ny "Kaody WordPress hanatrarana ny asa amin'ny fahazoana sy fampisehoana lahatsoratra mifandraika ary manoro hevitra fa tianao", izay manampy anao.
Tongasoa eto mizara ny rohy amin'ity lahatsoratra ity:https://www.chenweiliang.com/cwl-1987.html
Raha te hanokatra fika miafina 🔑, tongasoa eto amin'ny fantsona Telegramy!
Partageo ary j'aime raha tianao! Ny anjaranao sy ny j'aime no antony manosika anay hatrany!