Malire Otsatira a Jetpack Kufikira Tsiku Lotsimikizika

malire tsiku

Lero, ndimayang'ananso kawiri nkhani yomwe ndidalemba ndikuwona kuti nkhani yofananira yomwe idabwera idachokera zaka 9 zapitazo papulatifomu yomwe sinalinso. Chifukwa chake, ndidaganiza zopenyetsetsa Jetpack zokhudzana ndizomwe mungasankhe patsamba langa ndikuwona ngati ndingathe kuchepetsa malire.

Jetpack amachita ntchito yosangalatsa posankha zolemba zomwe zikufanana, koma mwatsoka, sizikudziwa kuti zambiri mwazolemba mwina ndizachikale. Nthawi zambiri ndimachotsa zolemba zakale zomwe sizimveka, koma ndilibe nthawi yowunikiranso zolemba zonse za 5,000 zomwe ndalemba pazaka zopitilira khumi!

Tsoka ilo, palibe makonzedwe Jetpack kuti mukwaniritse izi, mutha kungokhazikitsa ngati mukufuna kukhala ndi mutu wankhani, mutu wake ndi chiyani, ndi zosankha pamasanjidwewo, kaya ndikuwonetsa tizithunzi, kuwonetsa tsikulo, kapena kuwonetsa chilichonse.

Zolemba zokhudzana ndi plugin jetpack

Monga pafupifupi chilichonse mkati WordPress, komabe, pali API yolimba momwe mungasinthire fayilo ya mutu wa ana anu (kapena mutu wa) works.php ndikusintha momwe imagwirira ntchito. Poterepa, ndikufuna kuchepetsa kuchuluka kwa zolemba zilizonse zokhudzana ndi zaka ziwiri… ndiye nayi code:

function dk_related_posts_limit( $date_range ) {
    $date_range = array(
        'from' => strtotime( '-2 years' ),
        'to' => time(),
    );
    return $date_range;
}
add_filter( 'jetpack_relatedposts_filter_date_range', 'dk_related_posts_limit' );

Izi zimawonjezera zosefera pamafunso omwe posachedwa pulogalamu yowonjezera imagwiritsa ntchito. Ndidakweza zosintha zanga patsamba langa ndipo zolemba zomwe zikugwirizana ndizochepa pazomwe zalembedwa mzaka ziwiri zapitazi!

Pali njira zowonjezera za kusintha zolemba zanu zokhudzana nazo Komanso, onani Jetpack tsamba lothandizira pamutuwu.

Kuwulula: Ndikugwiritsa ntchito yanga WordPress ndi Jetpack Maulalo Othandizana Nawo mu positi.

Mukuganiza chiyani?

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