Tuhinga Tuhinga
Me pēhea taku whakatuwhera me te tuku anō i ngā hononga kaitātari WordPress i roto i tētahi matapihi hou?
Korero te hono o waho ka whakawhiti aunoa ki te waehere hono o roto
Ki te kore koe e pirangi ki etahi tangata ki te whakaki i te URL o te paetukutuku kua araia ki te hono a te kai korero, na te mea he tupono kei te aukatihia taua hononga.
Nō reira, kei te haere tonu te whakapuakitanga o tēnei tuhinga: Hononga ā-waho ki te waehere hononga ā-roto a te kaikōrero WordPress.
Hipanga 1: Huri aunoa i te hononga o waho o te tuhinga ki te waehere hono o roto
Whakaotihia te waehere i roto i tēnei akoranga, " Me pēhea te huri i ngā hononga whakamuri ki ngā hononga ā-roto i roto i te WordPress? He waehere hei huri aunoa i ngā hononga whakamuri tuhinga ki ngā hononga ā-roto, " i mua i te haere tonu me tēnei akoranga.
Hipanga 2: Tāpiri Waehere Peke Hononga Kaitohu
Tāpirihia te waehere e whai ake nei ki te kōnae function.php o to kaupapa WordPress.
2 o te 1 waehere:
- 1) [E taunakitia ana] Ka peke te hono a te kaikorero ka whakatuwhera i te waehere ki tetahi matapihi hou (whakamunatanga base64)
- 2) Ka peke te hononga kaikorero ka whakatuwhera i te waehere ki te matapihi hou (kaore he whakamunatanga)
1) [E taunakitia ana] Ka peke te hono a te kai korero ka whakatuwhera te matapihi hou i te waehere (whakamunatanga base64):
// 评论者链接跳转并新窗口打开(base64加密)
function commentauthor($comment_ID = 0) {
$url = get_comment_author_url( $comment_ID );
$author = get_comment_author( $comment_ID );
if ( empty( $url ) || 'http://' == $url )
echo $author;
else
echo "<a href='go.html?url=".base64_encode($url)."' rel='external nofollow' target='_blank' class='url'>$author</a>";
}2) Ka peke te hononga kaikorero ka whakatuwhera i te waehere ki te matapihi hou (kaore he whakamunatanga):
// 评论者链接跳转并新窗口打开(无加密)
function commentauthor($comment_ID = 0) {
$url = get_comment_author_url( $comment_ID );
$author = get_comment_author( $comment_ID );
if ( empty( $url ) || 'http://' == $url )
echo $author;
else
echo "<a href='go.html?url=$url' rel='external nofollow' target='_blank' class='url'>$author</a>";Mena kei te pirangi koe ki te hono peke a te kaiarotake ki te whakaatu i te URL, karekau koe e kowhiria he waehere whakamunatanga.
Ko te tumanako, ka whai hua ki a koe te tuhinga "Me pēhea te whakatuwhera me te tuku anō i ngā hononga kōrero a WordPress i roto i tētahi matapihi hou? He waehere mō te huri aunoa i ngā hononga kōrero o waho ki ngā hononga o roto" i tohaina ki te blog a Chen Weiliang ( https://www.chenweiliang.com/ ).
Tukuna mai te hononga o tēnei tuhinga: https://www.chenweiliang.com/cwl-631.html
