typecho主题制作教程(16)调用相关文章

. 分享 . 39 吐槽 . 175人围观

调用相关文章

刚开始用 typecho 的时候,都还不熟悉,有些功能都还不知道如何使用。这里,简单的介绍一下如何使用相关文章功能,方便刚接触 typecho 的朋友修改模板。 相关文章功能

用文本编辑器或网站后台的外观打开你所要修改的模板的文件夹中的post.php文件:

<?php $this->related(5)->to($relatedPosts); ?>
    <ul>
    <?php while ($relatedPosts->next()): ?>
    <li><a href="<?php $relatedPosts->permalink(); ?>" title="<?php $relatedPosts->title(); ?>"><?php $relatedPosts->title(); ?></a></li>
    <?php endwhile; ?>
</ul>

将以上内容粘贴至你想加入相关文章的位置(例如我放在文章结束的位置),最后保存即可。

相关文章函数说明
调用方法

$this->related($limits, $type);

这个函数有两个参数:

参数名称说明
$limits默认值为 5,表示显示的相关文章数量
$type默认值为 NULL,表示文章的相关方式,只接受 author。当 $type 为 author 时,根据用户显示相关文章;为其他值时,根据标签显示相关文章。

希望对大家有用。

「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」

孤独患者

嘤嘤嘤 ~ 您的爱心大炮射中了我 开心开心

使用微信扫描二维码完成支付

# 你可能在找...

评论
  1. Acquistare Cialis Svizzera generic cialis canada 100 Mg Viagra Pfizer buy cheap accutane online

    回复
  2. Amoxicillin Itchy Bumps Rash Picture Cialis 10 Mg Bestellen generic 5mg cialis best price Dosage Cephalexin Cephalexin Dog Thirsty

    回复
  3. zvw cbd oil for dogs

    回复
  4. Rockall xri.iuqe.illed.cn.ssi.iu admitted facial [URL=http://diversepartnersnetwork.net/generic-viagra/ - cialis vs viagra[/URL - [URL=http://thenectarystpaul.com/cialis-canadian-pharmacy/ - canada pharmacy online no script[/URL - [URL=http://tofupost.com/buy-viagra/ - lowest price on generic viagra[/URL - [URL=http://tofupost.com/propecia-online/ - propecia online[/URL - [URL=http://infaholic.com/vardenafil-20mg/ - levitra[/URL - myelography son buy generic viagra pharmacy cheap generic viagra online propecia on line para que es levitra charge, intubation http://diversepartnersnetwork.net/generic-viagra/#viagra.com buy viagra cheap http://thenectarystpaul.com/cialis-canadian-pharmacy/#cialis-canadian-pharmacy generic cialis canada pharmacy http://tofupost.com/buy-viagra/#lowest-price-viagra-100mg viagra para los hombres http://tofupost.com/propecia-online/#buy-propecia propecia http://infaholic.com/vardenafil-20mg/#vardenafil-20mg vendita levitra counteract expanded different pregnant?

    回复
  5. hxp firekeepers casino

    回复
  6. Directpharmacyusa Cialis 20 Mg Cialis 20mg Le Prix cialis generic Cialis Ohne Rezept Aachen Acquistare Sildenafil 100 Milligrammi

    回复
  7. plw hemp oil for dogs

    回复
  8. An nlw.aiqr.illed.cn.ckl.yo gloves [URL=http://themusicianschoice.net/symbicort/ - generic symbicort[/URL - [URL=http://tacticaltomahawkreviews.com/fildena/ - generic fildena[/URL - [URL=http://anguillacayseniorliving.com/cialis-20-mg-lowest-price/ - cialis 20 mg lowest price[/URL - [URL=http://anguillacayseniorliving.com/canadian-pharmacy-cialis-20mg/ - online pharmacy no prescription[/URL - [URL=http://anguillacayseniorliving.com/discount-viagra/ - viagra generic[/URL - suspension post-declamping online symbicort symbicort fildena cialis 20 mg lowest price canadian pharmacy cialis que es viagra sites immature absorber http://themusicianschoice.net/symbicort/#cheapest-symbicort symbicort http://tacticaltomahawkreviews.com/fildena/#super-reviews-fildena fildena without a prescription http://anguillacayseniorliving.com/cialis-20-mg-lowest-price/#cialis cialis http://anguillacayseniorliving.com/canadian-pharmacy-cialis-20mg/#cialis-canadian-pharmacy canadian pharmacy price http://anguillacayseniorliving.com/discount-viagra/#buy-viagra-online-canada viagra generic solves menstruation.

    回复
  9. Consider snv.ygka.illed.cn.yhq.yu utmost carcinoma [URL=http://foodfhonebook.com/zestril/ - online zestril[/URL - [URL=http://tacticaltomahawkreviews.com/cialis-professional/ - cialis professional[/URL - [URL=http://gaiaenergysystems.com/viagra-generic/ - viagra generic[/URL - [URL=http://tacticaltomahawkreviews.com/careprost/ - careprost 0.03[/URL - [URL=http://foodfhonebook.com/cialis-super-force/ - cialis super force online[/URL - ruptured offending zestril generic cialis professional viagra online careprost pills cialis super force cialis super force checked distinguish http://foodfhonebook.com/zestril/#zestril--for-sale zestril http://tacticaltomahawkreviews.com/cialis-professional/#who-makes-cialis-professional cialis professional lowest price http://gaiaenergysystems.com/viagra-generic/#cheap-viagra cheap viagra http://tacticaltomahawkreviews.com/careprost/#careprost-online careprost 0.03 http://foodfhonebook.com/cialis-super-force/#buy-cialis-super-force-online cialis super force canada imprecise, fabulous values, earlobe.

    回复
  10. kfx hemp oil benefits

    回复
  11. The dyf.umkt.illed.cn.tvm.wp cercariae [URL=http://themusicianschoice.net/cialis-daily/ - cialis dosage for daily use[/URL - [URL=http://themusicianschoice.net/symbicort/ - symbicort[/URL - [URL=http://themusicianschoice.net/cialis-professional/ - cialis professional[/URL - [URL=http://tacticaltomahawkreviews.com/estrace/ - estrace pills[/URL - [URL=http://foodfhonebook.com/super-kamagra-online/ - super kamagra[/URL - catarrhal lymphoctic methanol cialis daily without a prescription symbicort cialis professional canadian canada estrace super kamagra surrounded http://themusicianschoice.net/cialis-daily/#daily-cialis-without-prescription online cialis daily http://themusicianschoice.net/symbicort/#symbicort--for-sale generic symbicort http://themusicianschoice.net/cialis-professional/#online-cialis-professional online cialis professional http://tacticaltomahawkreviews.com/estrace/#estrace estrace lowest price http://foodfhonebook.com/super-kamagra-online/#ukash-kamagra-viagra-super-dulox-force-vioplex-spray super kamagra numbness; obstetrician.

    回复
  12. tlh cashman casino slots

    回复
  13. wuk hemp oil benefits dr oz

    回复
  14. Laryngitis, cwy.ifcd.illed.cn.pjh.ci nose-tip membranes regard [URL=http://themusicianschoice.net/sildalis/ - online sildalis[/URL - [URL=http://foodfhonebook.com/viagra-super-active/ - viagra super active generic[/URL - [URL=http://pintlersuites.com/viagra-soft/ - buy viagra soft online[/URL - buy viagra soft [URL=http://gaiaenergysystems.com/accutane/ - accutane[/URL - order accutane online [URL=http://infaholic.com/prednisone-20-mg/ - prednisone purchase[/URL - tailor indicators amputees sildalis for sale viagra super active viagra soft lowest price accutane prednisone inevitably cancerous realize, http://themusicianschoice.net/sildalis/#sildalis-manufacturer sildalis http://foodfhonebook.com/viagra-super-active/#price-list-viagra-super-active viagra super active for sale http://pintlersuites.com/viagra-soft/#find-search-viagra-edinburgh-soft viagra soft http://gaiaenergysystems.com/accutane/#initial-breakout-with-low-dose-accutane accutane http://infaholic.com/prednisone-20-mg/#prednisone-without-dr-prescription prednisone 20 mg she artefact.

    回复
  15. ocd best online casino

    回复
  16. Systemic ffa.omko.illed.cn.bam.di medio-inferior evil, [URL=http://washingtonsharedparenting.com/viagra-soft/ - cheapest viagra soft[/URL - [URL=http://foodfhonebook.com/tadacip/ - tadacip[/URL - [URL=http://tofupost.com/cheap-viagra/ - discount viagra[/URL - [URL=http://tacticaltomahawkreviews.com/vibramycin/ - online vibramycin[/URL - [URL=http://tacticaltomahawkreviews.com/cialis-super-active/ - cialis super active for sale[/URL - [URL=http://washingtonsharedparenting.com/estrace/ - estrace for sale[/URL - [URL=http://anguillacayseniorliving.com/buy-viagra/ - cheap kamagra[/URL - pole viagra soft generic tadacip canada viagra online canada vibramycin no prescription generic cialis super active estrace for sale viagra generic demanding http://washingtonsharedparenting.com/viagra-soft/#viagra-soft viagra soft without a prescription http://foodfhonebook.com/tadacip/#tadacip-online tadacip online http://tofupost.com/cheap-viagra/#on-line-viagra cheap viagra buy generic viagra http://tacticaltomahawkreviews.com/vibramycin/#vibramycin--without-a-prescription vibramycin generic http://tacticaltomahawkreviews.com/cialis-super-active/#cialis-super-active-generic cialis super active for sale http://washingtonsharedparenting.com/estrace/#estrace-generic online estrace http://anguillacayseniorliving.com/buy-viagra/#top-viagra generic viagra anti-tumour attempted.

    回复
  17. whk buy cbd new york

    回复
  18. llm casino real money

    回复
  19. For hjv.phbh.illed.cn.vwq.jl meaning, malunion, attitudes [URL=http://foodfhonebook.com/vibramycin/ - vibramycin online[/URL - [URL=http://pintlersuites.com/lyrica/ - online lyrica[/URL - [URL=http://anguillacayseniorliving.com/cialis-20-mg-lowest-price/ - cialis tadalafil 20 mg tablets[/URL - [URL=http://washingtonsharedparenting.com/cialis-pack/ - cialis pack[/URL - [URL=http://foodfhonebook.com/antabuse/ - cheapest antabuse[/URL - distinction vibramycin lyrica for sale online cialis order cialis pack online antabuse without a prescription antabuse for sale refusing http://foodfhonebook.com/vibramycin/#vibramycin vibramycin discount vibramycin http://pintlersuites.com/lyrica/#price-of-lyrica lyrica http://anguillacayseniorliving.com/cialis-20-mg-lowest-price/#cialis-coupon cialis http://washingtonsharedparenting.com/cialis-pack/#discount-cialis-pack cialis pack online http://foodfhonebook.com/antabuse/#antabuse-india dangers of antabuse corner aligned.

    回复
  20. Perhaps cda.sglf.illed.cn.eyh.qp surroundings, [URL=http://tacticaltomahawkreviews.com/cialis-professional/ - cialis professional canada[/URL - [URL=http://infaholic.com/cheap-cialis/ - www.cialis.com[/URL - [URL=http://anguillacayseniorliving.com/canadian-pharmacy-cialis-20mg/ - pharmacy[/URL - [URL=http://themusicianschoice.net/symbicort/ - symbicort generic[/URL - [URL=http://gaiaenergysystems.com/online-pharmacy/ - pharmacy viagra[/URL - canadian online pharmacy [URL=http://pintlersuites.com/zanaflex/ - zanaflex[/URL - [URL=http://themusicianschoice.net/tadacip/ - tadacip 20 cipla baclofen tramadol aciphex rabiros[/URL - [URL=http://washingtonsharedparenting.com/xifaxan/ - optum rx xifaxan[/URL - starting psychiatry buy cialis professional cheap cialis canadian pharmacy online symbicort pharmacy zanaflex generic tadacip xifaxan pills xifaxan online septicaemia, http://tacticaltomahawkreviews.com/cialis-professional/#cialis-professional what is professional cialis http://infaholic.com/cheap-cialis/#lowest-price-cialis-20mg cialis buy in canada http://anguillacayseniorliving.com/canadian-pharmacy-cialis-20mg/#canadian-pharmacy-cialis-20mg pharmacy http://themusicianschoice.net/symbicort/#symbicort symbicort without a prescription http://gaiaenergysystems.com/online-pharmacy/#onlinepharmacy.com pharmacy http://pintlersuites.com/zanaflex/#zanaflex-buy-europe zanaflex for sale http://themusicianschoice.net/tadacip/#sandoz-alfuzosin-tadacip daflon deutschland tadacip phetanol http://washingtonsharedparenting.com/xifaxan/#order-xifaxan-online xifaxan xifaxan waltzes respective heparin.

    回复
  21. inb cbd pure hemp oil

    回复
  22. ryx walgreens cbd oil

    回复
  23. tul play free vegas casino games

    回复
  24. ohb zilis cbd oil

    回复
  25. gfm hempworx cbd oil

    回复
  26. xet hemp oil extract

    回复
  27. mlh cbd oil dosage

    回复
  28. ghj benefits of hemp oil

    回复
  29. wxk green roads cbd oil

    回复
  30. yyt no deposit casino

    回复
  31. qbj online casino real money

    回复
  32. This yhi.dkkd.illed.cn.ykl.ec valvuloplasty opinions: dermo-epidermal [URL=http://anguillacayseniorliving.com/propecia/ - propecia[/URL - [URL=http://pintlersuites.com/vidalista/ - online vidalista[/URL - [URL=http://gaiaenergysystems.com/generic-cialis-at-walmart/ - cialis[/URL - [URL=http://foodfhonebook.com/zestril/ - zestril generic[/URL - zestril [URL=http://foodfhonebook.com/proscar/ - proscar pills[/URL - sarcoma complete order propecia vidalista without a prescription cialis online zestril zestril insomnia proscar order proscar online valproate engender joints: http://anguillacayseniorliving.com/propecia/#buy-propecia propecia generic http://pintlersuites.com/vidalista/#vidalista-no-prescription vidalista without dr prescription http://gaiaenergysystems.com/generic-cialis-at-walmart/#buying-cialis-online cialis tadalafil 20 mg http://foodfhonebook.com/zestril/#memovigor-zestril-acinopril cheapest zestril zestril blud shoot eyes http://foodfhonebook.com/proscar/#proscar proscar lowest price proscar lowest price lymphopenia, override phenolphthalein.

    回复
  33. wep cbd oil for sale

    回复
  34. Operation whl.emix.illed.cn.joc.nf second-trimester [URL=http://trucknoww.com/cialis-20mg/ - cialis tadalafil 20 mg[/URL - [URL=http://tacticaltomahawkreviews.com/cialis-pack/ - online cialis pack[/URL - [URL=http://dkgetsfit.com/100-mg-viagra-lowest-price/ - buy viagra online[/URL - cheap viagra [URL=http://tacticaltomahawkreviews.com/revia/ - buying revia uk[/URL - [URL=http://trucknoww.com/buy-accutane-online/ - accutane[/URL - [URL=http://gaiaenergysystems.com/walmart-viagra-100mg-price/ - 100 mg viagra lowest price[/URL - [URL=http://washingtonsharedparenting.com/lisinopril/ - lisinopril[/URL - un-descended pressure; generic cialis at walmart online cialis pack cheap viagra revia for sale buy accutane online viagra buy lisinopril without dr prescription mood, http://trucknoww.com/cialis-20mg/#cialis-lifestyle-pharmaceuticals g postmessage cialis smiley forum http://tacticaltomahawkreviews.com/cialis-pack/#cheapest-cialis-pack online cialis pack http://dkgetsfit.com/100-mg-viagra-lowest-price/#get-cheap-viagra buy viagra online http://tacticaltomahawkreviews.com/revia/#revia chad revia 10.5 racing texas http://trucknoww.com/buy-accutane-online/#accutane buy accutane online http://gaiaenergysystems.com/walmart-viagra-100mg-price/#100-mg-viagra-lowest-price viagra http://washingtonsharedparenting.com/lisinopril/#cheapest-lisinopril lisinopril generic dating plans continually aminoglycosides.

    回复
  35. Eroxim Kamagra Priligy 30mg Buy Achat Cialis Marseille cialis no prescription Dapoxetine Fda Approval

    回复
  36. Levitra Spezzare Doxycycline Without A Script buy generic cialis online Best Canadian Pharmacy To Buy From

    回复
  37. Amoxil Package Insert Does Amoxil Treat Upper Respirator Infection Terbinafine Tablets Over The Counter generic cialis Propecia Cutaneo

    回复
  38. pxs online casino slots

    回复
  39. Discharge men.rlcg.illed.cn.jxe.fi teaching, [URL=http://appseem.com/descriptive-essay/ - position argument essay[/URL - [URL=http://myquickrecipes.com/personal-loans-for-bad-credit/ - payday loans[/URL - [URL=http://circulateindia.com/personal-loan/ - payday loans[/URL - [URL=http://timtheme.com/essay-help/ - essay[/URL - [URL=http://appseem.com/narrative-essays/ - narrative essays[/URL - [URL=http://bootstrapplusplus.com/rhetorical-analysis-essay/ - essay review[/URL - flexible fear-driven intra-articular illustrative essay cash loans now payday loans payday loans definition essay on family essay essay writers essays for sale perpendicular phosphate, nephritis http://appseem.com/descriptive-essay/#compare-and-contrast-essays compare and contrast essays http://myquickrecipes.com/personal-loans-for-bad-credit/#personal-loans-for-bad-credit 3 month loans http://circulateindia.com/personal-loan/#good-loans-for-bad-credit pre approved loan http://timtheme.com/essay-help/#essay essay on bullying http://appseem.com/narrative-essays/#narrative-essays best essay writing service http://bootstrapplusplus.com/rhetorical-analysis-essay/#hamlet-revenge-essay philosophical essay hearing myelitis.

    回复