Sinthani WordPress Jetpack Kukula kwa Shortcode

jetpack ya mawu

Pamene WordPress idatulutsa fayilo ya Jetpack pulogalamu yowonjezera, adatsegula kukhazikitsa kwa WordPress pazinthu zina zabwino zomwe amaphatikizira pamayankho awo. Mukangowonjezera pulogalamu yowonjezera, mumatha kuphatikiza zinthu zingapo, kuphatikiza shortcodes. Mwachinsinsi, WordPress siyilola wolemba wanu wamba kuwonjezera zolemba za media pazolemba kapena tsamba. Ichi ndichinthu chachitetezo ndipo chimatanthauza kuti muchepetse mwayi wosokoneza tsamba lanu.

Komabe, ndi ma shortcode, wogwiritsa ntchito amatha kuphatikizira media mosavuta. Mwachitsanzo, kuti muyike kanema wa Youtube, palibe chifukwa chowonjezeramo zolemba - mumangoyika ulalo womwe mukugawana nawo kanemayo. Kuphatikizika kwa ma shortcode kumazindikiritsa njirayo ndikusintha ulalo ndi khodi yeniyeni yamakanema. Palibe mkangano, palibe zovuta!

Kupatula chimodzi. Pogwiritsa ntchito ma shortcode, m'lifupi mwanu wazomwe mukusindikiza ndizosintha. Chifukwa chake YouTube imatha kukulira kupyola kukula kwa zomwe mukuwerenga ndikufalikira pa sidebar yanu - kapena Slideshare atha kutenga theka la malo omwe angatenge. Ndidakhala maola ochepa ndikuyesera kudziwa momwe ndilembere zosefera kuti zisasinthe mulifupi mwa njira iliyonse. Ndawunikanso mapulagini tani kuti ndione ngati panali ena kunja uko.

Ndipo ndidazipeza ... kusinthidwa pang'ono pang'ono komwe WordPress idawonjezera ku API yawo. Kukhazikitsa komwe mungasinthe kuchuluka kwazomwe zili patsamba lanu ndi zolemba zanu:

ngati (! isset ($ content_width)) $ content_width = 600;

Nditangokhazikitsa m'lifupi mwanga mu fayilo yanga ya works.php, njira zonse zophatikizira zidasinthidwa moyenera. Ngakhale ndili wokondwa kuti zimangotenga mzere wama code, ndine wokhumudwa kwambiri kuti zidatenga nthawi yayitali kuti mupeze izi. Chosangalatsa ndichakuti kusowa kwamakonda komwe kumapezeka ndi Jetpack. Ma shortcode, mwachitsanzo, sangakhale olumala - amathandizidwa bola ngati pulogalamu yowonjezera imaloledwa.

Zikanakhala zabwino, mwachitsanzo, kuwonjezera pazambiri m'lifupi ndi kutalika kwake molunjika pa Jetpack Makonda a Shortcode. WordPress ndi nsanja yabwino kwambiri, koma nthawi zina kupeza yankho kumatha kukhumudwitsa!

Mukuganiza chiyani?

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