Chinyorwa Directory
SeiWordPressWedzera chinongedzo kumavara ekutanga panoperera chinyorwa chega chega mukati?

使用WordPress webhusaitishamwari, kana uchida kuwedzera "Kana chinyorwa chepakutanga chikaitwa, ndapota ratidza chinongedzo chechinyorwa ichi:”, izvo zviri nyore chaizvo.
Heano nzira mbiri dzekuwedzera chinongedzo URL kuchinyorwa ichi pakupera kweWordPress positi.
??Chekutanga, gadzirisa chinyorwa peji template single.php
Mune WordPress theme template faira, vhura single.php uye tsvaga inotevera PHP kodhi:
<?php the_content(); ?>
Pazasi peiyi mutsara wePHP kodhi, wedzera inotevera PHP kodhi▼
<p>原创文章如转载,请注明本文链接: <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_permalink(); ?></a></p>
- Zvadaro, chengetedza update uye ndizvozvo.
??Chechipiri, wedzera iyo PHP kodhi kune function.php faira
Iyi nzira inokurudzirwa, kwete chete kuwedzera zvinongedzo kune blog log mapeji, asiwo kuisa mafeed.
Vhura iyo function.php faira mune theme forodha uye wedzera inotevera PHP kodhi kumagumo (ona iyo Chinese neChirungu nyora kana uchikopa nekuisa):
<?php function feed_copyright($content) { if(is_single() or is_feed() or is_page()) { $content.= '<div> » 本文来自:<a title="陈沩亮博客" href="https://www.chenweiliang.com/" target="_blank">陈沩亮博客</a> » <a rel="bookmark" title="'.get_the_title().'" href="'.get_permalink().'" target="_blank">《'.get_the_title().'》</a></div>'; $content.= '<div> » 本文链接地址:<a rel="bookmark" title="'.get_the_title().'" href="'.get_permalink().'" target="_blank">'.get_permalink().'</a> »英雄不问来路,转载请注明出处,谢谢。</div>'; $content.= '<div> » 有话想说:<a title="给我留言" href="'.get_permalink().'#respond" target="_blank">那就赶紧去给我留言吧.</a></div>'; $content.= '<div> » 欢迎加入陈沩亮博客的 Telegram 频道:<a rel="external nofollow" title="点此加入陈沩亮博客的 Telegram 频道" href="" target="_blank">https://www.chenweiliang.com/go/tgchannel</a></div>'; } return $content; } add_filter ('the_content', 'feed_copyright'); ?>
- Ndapota shandura iyo maererano neShokoPress blog yako.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) yakagoverwa "Ungawedzera sei URL yechinyorwa ichi pakupera kweshoko reWordPress? WP yepakutanga link PHP code", iyo inobatsira kwauri.
Welcome to share link yechinyorwa chino:https://www.chenweiliang.com/cwl-1498.html
