Nciphisa iZithuba ezihambelana neJetpack ukuya kumhla othile

Umda obekiweyo

Namhlanje, bendijonga kabini inqaku endilibhalileyo kwaye ndiqaphele ukuba iposti enxulumene noko ivela kwiminyaka eli-9 eyadlulayo kwiqonga elingasekhoyo. Ke ndaye ndagqiba kwelokuba ndijonge nzulu kwi jetpack iinketho zezithuba ezinxulumene nendawo yam kwaye ubone ukuba andinakunciphisa uluhlu lomhla.

IJetpack yenza umsebenzi omangalisayo wokukhetha izithuba ezifanelekileyo ezifanayo, kodwa ngelishwa, ayinalo nofifi lokuba amanqaku amaninzi asenokuba aphelelwe lixesha. Ndihlala ndisusa izithuba ezindala ezingenangqondo, kodwa andinaxesha lokuphonononga onke amanqaku angama-5,000 endiwabhalileyo ngaphezulu kweshumi leminyaka!

Ngelishwa, akukho sicwangciso jetpack ukufezekisa oku, unokusetha kuphela ukuba unqwenela ukuba nesihloko, yintoni isihloko, kunye nokukhethwa kwendlela, nokuba ubonise izithonjana, nokuba ubonise umhla, nokuba ubonise nayiphi na into.

Izithuba ezinxulumene neplagi jetpack

Njengayo yonke into eku- WordPress, nangona kunjalo, kukho i-API eyomeleleyo apho unokwenza khona umxholo womntwana wakho (okanye umxholo) wefayile.php kwaye uguqule ukuba isebenza njani. Kule meko, ndifuna ukunciphisa umda wazo naziphi na izithuba ezinxulumene neminyaka emi-2… nantsi ikhowudi:

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

Oku kongeza isihluzo kumbuzo osetyenziselwa iiplagi ezinxulumene noko. Ndikhuphele uhlaziyo kwindawo yam kwaye ngoku izithuba ezinxulumene noko zikhawulelwe kuyo nantoni na ebhaliweyo kule minyaka mibini idlulileyo!

Kukho iindlela ezongezelelweyo ze ukwenza ngokwezifiso iiposti zakho ezinxulumene nazo ngokunjalo, jonga iphepha lenkxaso yeJetpack ngesihloko.

Ukubhengezwa: Ndisebenzisa eyam WordPress kwaye jetpack amakhonkco obulungu kule post.

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.