Limit Jetpack's Inoenderana Zvinyorwa Kune Rimwe Zuva

muganho zuva

Nhasi, ndanga ndichiongorora kaviri chinyorwa chandakanga ndanyora uye ndikaona kuti chinyorwa chakabatana chakauya chaive chemakore mapfumbamwe apfuura pachikuva chakange chisisina. Saka, ndakafunga kunyatso tarisa iyo Jetpack zvine chekuita nezvakatumirwa positi pane yangu saiti uye ona kana ndichigona kudzikisira iwo mazuva renji.

Jetpack inoita basa rakanakisa rekusarudza akakodzera machira akafanana, asi zvinosuwisa, haina zano rekuti akawanda ezvinyorwa anogona kunge asiri echinyakare. Ini ndinowanzo bvisa zvinyorwa zvekare zvisina musoro, asi ini handina nguva yekuongorora ese zviuru zvishanu zvinyorwa zvandanyora kweanopfuura makore gumi!

Nehurombo, hapana marongero pamusoro Jetpack kuti uite izvi, unogona chete kuseta kuti unoshuvira here kuva nemusoro wenyaya, iwo musoro wenyaya, uye sarudzo dzekugadzwa, kunyangwe kuratidza zvigunwe, kunyangwe kuratidza zuva, kana kuratidza chero zvirimo.

zvine chekuita nezvinyorwa zvinyorwa plugin jetpack

Sezvo nezvose zvirimo WordPress, zvakadaro, pane yakasimba API iyo iwe yaunogona kugadzirisa yako yemwana theme (kana theme's) works.php faira uye kugadzirisa kuti inoshanda sei. Mune ino kesi, ini ndoda kudzikamisa chiyero chemhando ipi neipi inoenderana kune makore maviri… saka nayi kodhi

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' );

Izvi zvinowedzera firita kumubvunzo unoshandiswa nehukama hwezvinhu zvakabatana. Ini ndakaisa iyo yekuvandudza kune yangu saiti uye ikozvino izvo zvinoenderana zvinyorwa zvakatemerwa kune chero chinhu chakanyorwa mumakore apfuura maviri makore!

Kune dzimwe nzira dzekuwedzera dze kugadzirisa zvinyorwa zvako zvinoenderana zvakare, tarisa iyo Jetpack rutsigiro peji pane iyo musoro wenyaya.

Kuzivisa: Ndiri kushandisa yangu WordPress uye Jetpack affiliate zvinongedzo mune ino posvo.

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.