Ingcebiso ekhawulezileyo: WP_Query kunye neMigca yeeNdawo ezininzi

Ngoncedo lwe meta_query uphawu kudidi olunamandla lweWord_P_Query , iiposti zinokuhluzwa ezinamaxabiso athile kwimimandla ye-meta. Ukuba wenze i-meta enemigca emininzi (umzekelo ngoncedo lweeNkcubeko eziPhambili zeSiko ) kwaye ufuna kuphela ukufumana izithuba ezinexabiso elithile kule ndawo yahlulwe kukophuka kwemigca, ilizwe le- REGEX le-MySQL liyacetyiswa .


Lo mnxeba ulandelayo ufumana zonke izithuba ezinexabiso kwibar kwenye indawo emgceni kwibala le- foo:

d6a80606f7846cba392a561bfdecf2b7

Oku kuqinisekisa ukuba akukho misonto ingachanekanga ifumanekayo kwaye ulayini wophula umsebenzi kumaqonga. Kwakhona kubalulekile: Ixabiso lophawu lwexabiso kufuneka libe kumanqaku ecaphulo aphindwe kabini, kungenjalo i-WordPress iyakubaleka ukubuyela umva (ungakhathazeki: Umhle uyakuthathela ingqalelo oku ngokusisigxina). Inkqubo efanayo inokusetyenziselwa ezinye iinjongo: Umzekelo, kule khowudi ingentla, "\ r \ n | \ r | \ n" ithathelwe indawo ngu " ;" ukuba amaxabiso ayikoma (endaweni yomgca) ahlukaniswe kumhlaba wokubhaliweyo.

Emva