WordPress: Sindikizani Zolemba Zamtsogolo Monga Zochitika Zotsatira

WordPress

Tidamanga tsamba laling'ono la WordPress la Kulemba Mabungwe a Dummies ndipo tinkafuna kukhala ndi gawo pomwe timayang'ana zochitika zomwe zikubwera kudera lakumunsi. Yankho lochitira izi ndilosavuta ndipo limapangidwa mwachindunji mu WordPress. Pakati pa mutu wanu, mutha kuwonjezera chingwe chomwe chimangokhala mafunso ndikuwonetsa zolemba zamtsogolo zamagulu ena omwe amangogwiritsidwa ntchito pa Zochitika Zamtsogolo:

<?php query_posts('order=ASC&paka = 3 & post_status = mtsogolo, lembani '); ngati (have_post ()): while (have_posts ()): the_post (); ngati (strtotime (get_the_time ("F jS Y"))> time ()): pitirizani; china: echo $ post-> id; ?>

Njira ya query_posts imayikidwa patangotsala pang'ono kutambasulira WordPress kuti muchepetse zolemba zomwe zafunsidwa ku funso logwiritsidwa ntchito. Popeza awa ndi ma blog omwe akonzedweratu mtsogolo (patsiku lochitikalo), simuyenera kuda nkhawa kuti adzawonetsedwa pabulogu yanu yoyambirira. Mungafune kubisa maguluwo m'ndandanda wamgulu lanu, ngakhale. Izi zitha kuchitika posintha mndandanda wamagulu anu mu template yanu ya WordPress pogwiritsa ntchito njirayi:


Tinaonjezeranso metadata kuti positiyi iwonetse malo amwambowu. Izi zimakwaniritsidwa pogwiritsa ntchito gawo la WordPress 'Custom Fields. Ingolembani komwe kuli dzina lamundawo ndi komwe mumapeza pamtengo wake… ndiye tengani malowa posonyeza pogwiritsa ntchito lamulo la get_post_meta pamwambapa.

Tsambali limakhala lokongola, lokhala ndi kapangidwe kapadera kwambiri kamene kali ndi zonse zofunika kutsatsira bukuli
Malangizo Amabungwe Amabungwe.png

3 Comments

  1. 1

    Tidapanganso chakudya chamawonekedwe ndi zochitika zamtsogolo zomwe zidatumizidwa ndikusintha m'badwo wa XML sitemap kuti tifalitse zolemba zamtsogolo. Ngati mukugwiritsa ntchito XML Sitemap Generator ya Arne Brachenwald, mzere 1747 wa sitemap-core.php ukhoza kusinthidwa kukhala $where.=” (post_status IN ('publish','future') AND (post_type = 'post' OR post_type = ”)) “;

  2. 2

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.