I-WordPress: Shicilela Okuthunyelwe Okuzayo Njengemicimbi Ezayo

WordPress

Sakhele i-WordPress micro-site ye- Ukubhuloga Kwebhizinisi KwamaDummies futhi besifuna ukuba nesigaba lapho sikhombise khona imicimbi ezayo kubha eseceleni engezansi. Isixazululo sokwenza lokhu empeleni silula futhi sakhiwe ngqo kwi-WordPress. Ngaphakathi kwetimu yakho, ungangeza iluphu ebuza kuphela futhi ibonise okuthunyelwe okuzayo kwesigaba esithile esisetshenziselwa imicimbi yesikhathi esizayo:

<?php query_posts('order=ASC&ikati = 3 & post_status = ikusasa, shicilela '); uma (has_post ()): ngenkathi (has_posts ()): the_post (); uma (strtotime (get_the_time ("F jS Y"))> time ()): qhubeka; okunye: echo $ post-> id; ?>

Indlela ye- query_posts ibekwe ngaphambi nje kwe-WordPress loop ukukhawulela okuthunyelwe okushicilelwe kumbuzo osetshenzisiwe. Njengoba lokhu kungukuthunyelwe okuhleliwe kwebhulogi esikhathini esizayo (ngosuku lomcimbi), akudingeki ukhathazeke ngokuthi zizoboniswa kubhulogi lakho eliyinhloko kusifanekiso sakho. Ungahle ufune ukufihla izigaba ohlwini lwakho lwesigaba, noma kunjalo. Lokhu kungafezwa ngokuhlela uhlu lwakho lwesigaba kusifanekiso sakho se-WordPress usebenzisa inketho engafakwanga:


Siphinde sangeza imethadatha yokuthunyelwe ukubonisa indawo yomcimbi. Lokhu kufezwa kusetshenziswa isigaba se-WordPress 'Custom Fields. Mane uthayiphe indawo yegama lenkambu nendawo okuyo ngenani… bese uthola indawo ezokhonjiswa usebenzisa umyalo we-get_post_meta ngenhla.

Isiza esivelile sihle impela, sinomklamo oyingqayizivele nokuhleleka okunazo zonke izinto ezidingekayo ukukhuthaza le ncwadi:
Amathiphu wokubhuloga kwebhizinisi

3 Amazwana

  1. 1

    Siphinde sakha okuphakelayo ngokwezifiso ngemicimbi yesikhathi esizayo ethunyelwe futhi salungisa isizukulwane semephu yesayithi yeXML ukuze sishicilele okuthunyelwe okuzayo. Uma usebenzisa i-XML Sitemap Generator ka-Arne Brachenwald, umugqa 1747 we-sitemap-core.php ungabuyekezelwa ku- $where.=” (post_status IN ('publish','future') AND (post_type = 'post' OR post_type = ”)) “;

  2. 2

UCABANGANI?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda ukuthi idatha yakho yokuphawula isetshenziswa kanjani.