WordPress: Tshaj tawm Cov Tshaj Tawm Yav Tom Ntej li Yavtom ntej Kev Lom Zem

WordPress

Peb tsim WordPress WordPress chaw tsim rau Neeg Blogging rau Dummies thiab xav kom muaj ntu ntu uas peb tau nthuav tawm cov xwm txheej yuav tshwm sim hauv kev kawm qis hauv qab. Cov kev daws teeb meem los ua qhov no yog qhov yooj yim heev thiab tsim ncaj qha rau WordPress. Nyob hauv koj cov ntsiab lus, koj tuaj yeem ntxiv lub voj uas tsuas yog nug thiab nthuav tawm cov lus tom ntej rau ib qeb tshwj xeeb uas tsuas yog siv rau Cov Txheej Xwm Yav Tom Ntej:

<?php query_posts('order=ASC&miv = 3 & post_status = yav tom ntej, tshaj tawm '); if (have_posts ()): while (have_posts ()): the_post (); yog (strtotime (get_the_time ("F jS Y"))> sij hawm ()): txuas ntxiv; lwm tus: echo $ post-> id; ?> 

Cov lus nug kev nug tau muab tso ua ntej lub voj WordPress txwv txhawm rau tshaj tawm cov ntawv luam tawm rau cov lus nug uas siv. Txij li cov no yog yav tom ntej tau teem tseg blog (nyob rau hnub tshwm sim), koj tsis tas yuav txhawj xeeb txog lawv tau raug tso tawm ntawm koj cov tub ntxhais blog hauv koj daim qauv. Tej zaum koj yuav xav tau zais cov pawg ntawm koj cov npe qeb, tab sis. Qhov no tuaj yeem ua tiav los ntawm kev hloov kho koj cov npe qeb hauv koj lub vev xaib WordPress siv qhov kev xaiv cais tawm:


Peb kuj ntxiv metadata rau tus ncej los tso saib qhov chaw rau kev tshwm sim. Qhov no yog ua tiav siv WordPress 'Cov Cai Teb Nchuav. Cias ntaus rau hauv qhov chaw rau lub npe thiab koj qhov chaw nyob rau tus nqi… tom qab ntawd khaws qhov chaw rau tso saib siv siv get_post_meta hais los saum toj no.

Qhov chaw tawm tau zoo nkauj txias, nrog tus qauv tsim tshwj xeeb thiab qauv uas muaj tag nrho cov ntsiab lus tsim nyog los txhawb phau ntawv:
Corporate Blogging Cov Lus Qhia.png

3 Comments

  1. 1

    Peb kuj tau tsim ib qho kev cai pub mis nrog cov xwm txheej yav tom ntej tshaj tawm thiab hloov XML sitemap tiam los tshaj tawm cov lus tshaj tawm yav tom ntej. Yog tias koj siv Arne Brachenwald's XML Sitemap Generator, kab 1747 ntawm sitemap-core.php tuaj yeem hloov kho tshiab rau $where.=” (post_status IN ('publish','future') AND (post_type = 'post' OR post_type = ”)) “;

  2. 2

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.