WordPress: Lolomi Faʻamatalaga i Lumanaʻi o ni Mea e Fai i Loma

WordPress

Na matou fausia le WordPress micro-site mo Lautele blogging mo Dummies ma manaʻo ia i ai se vaega lea na matou faʻaalia ai mea o le a tutupu i le itu pito i lalo. O le tali e faia ai lenei mea e matua faigofie lava ma fausia saʻo i totonu o le WordPress. I totonu o lau autu, oe mafai ona faʻaopopo se matasele e naʻo fesili ma faʻaali ai lumanaʻi pou mo se vaega faʻapitoa e naʻo faʻaaogaina mo Lumanaʻi Mea na Tutupu:

<?php query_posts('order=ASC&pusi = 3 & post_status = lumanaʻi, lolomi '); peʻa (i ai_post ()): a o le (have_posts ()): le_post (); pe a (strtotime (get_the_time ("F jS Y"))> taimi ()): faʻaauau; a leisi mea: faʻalogo le $ post-> id; ?>

O le query_posts auala e tuʻu i luma tonu o le matasele WordPress e faʻatapulaʻa ai pou lolomiina i le fesili faʻaaogaina. Talu ai o mea nei o lumanaʻi faʻatulagaina blog blog (i le aso na tupu ai), e te le tau popole e uiga ia latou o loʻo faʻaalia i luga o lau autu blog i lau faʻataʻitaʻiga. Atonu e te manaʻo e nana le vasega mai lau lisi o vaega, e ui lava. Lenei mafai ona faʻataunuʻuina e ala i le faʻasaʻoina o lau vasega lisi i lau WordPress template faʻaogaina le tuʻu ese mai filifiliga:


Na matou faʻaopopoina foʻi metadata mo le pou e faʻaali ai se nofoaga mo le mea na tupu. O lenei ua ausia faʻaaogaina le WordPress 'Custom Fields vaega. Na o le lolomi i le nofoaga mo le fanua igoa ma lou tulaga mo le taua… ona toe maua lea o le nofoaga mo faʻaaliga faʻaaogaina le get_post_meta faʻatonuga luga.

O le taunuʻuga 'upega tafaʻilagi e sili ona manaia, ma se sili ona tulaga ese mamanu ma faʻatulagaina o loʻo iai elemene uma e manaʻomia e faʻalauiloa ai le tusi:
Motugaafa Blogging Corporate.png

3 Faamatalaga

  1. 1

    Na matou fausia foʻi se meaʻai faʻapitoa ma mea na tutupu i le lumanaʻi faʻapipiʻi ma toe fesuiaʻi le XML sitemap augatupulaga e lolomiina lumanaʻi pou. Afai o loʻo e faʻaaogaina Arne Brachenwald's XML Sitemap Generator, laina 1747 o sitemap-core.php mafai ona faʻafouina i le $where.=” (post_status IN ('publish','future') AND (post_type = 'post' OR post_type = ”)) “;

  2. 2

O le'a sou manatu?

O lenei 'upega tafaʻilagi e faʻaaogaina le Akismet e faʻaitiitia le spam. Aoao pe faapefea ona faʻasoa lau faʻamatalaga faʻamatalaga.