I-WordPress: Papasha iZithuba zeXesha elizayo njengeziganeko ezizayo

WordPress

Siyakhele indawo encinci yeWordPress Ukubhengezwa kweNkampani yeDummies kwaye sifuna ukuba necandelo apho sibonisa khona iminyhadala ezayo kwibar esezantsi. Isisombululo sokwenza oku silula kwaye sakhiwe ngqo kwi-WordPress. Ngaphakathi komxholo wakho, ungongeza iluphu enemibuzo kuphela kwaye ubonise izithuba ezizayo zodidi oluthile olusetyenziselwa imicimbi yeXesha elizayo:

<?php query_posts('order=ASC&ikati = 3 & post_status = kwikamva, shicilela '); ukuba (une_post ()): ngelixa (une_post ()): i_posi (); ukuba (strtotime (fumana_ixesha ("F jS Y"))> ixesha ()): qhubeka; enye: echo $ post-> id; ?>

Indlela yokubuza_post ibekwe nje ngaphambi kokuba iluphu yeWordPress inyuse izithuba ezipapashiweyo kumbuzo osetyenzisiweyo. Kuba ezi zizithuba zebhlog ezicwangcisiweyo zexesha elizayo (ngomhla womsitho), awuzukuba naxhala lokuba ziya kuboniswa kwibhlog yakho engundoqo kwitemplate yakho. Unokufuna ukufihla iindidi kuluhlu lwakho, nangona kunjalo. Oku kunokufezekiswa ngokuhlela uluhlu lwakho lodidi kwitemplate yakho yeWordPress usebenzisa ukhetho olungafakwanga:


Songeze imethadatha yeposti ukubonisa indawo yomnyhadala. Oku kufezekisiwe kusetyenziswa icandelo leWordPress 'yeNdawo eMiselweyo. Chwetheza nje indawo yegama legama kunye nendawo okuyo yexabiso… emva koko fumana indawo yokubonisa usebenzisa get_post_meta umyalelo ongentla.

Indawo enesiphumo ipholile, inoyilo olwahluke ngokukodwa kunye nolwakhiwo olunazo zonke izinto eziyimfuneko ukukhuthaza incwadi:
Iingcebiso zeBlogging eziManyanisiweyo.png

3 Comments

  1. 1

    Siphinde sakha ukondla okwenziwe ngokwesiko kunye neziganeko ezizayo ezithunyelweyo kunye nokulungisa isizukulwana semephu yeXML ukuze sipapashe izithuba ezizayo. Ukuba usebenzisa i-Arne Brachenwald's XML Sitemap Generator, umgca 1747 we-sitemap-core.php unokuhlaziywa kwi- $where.=” (post_status IN ('publish','future') AND (post_type = 'post' OR post_type = ”)) “;

  2. 2

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.