id
stringlengths
40
40
text
stringlengths
29
2.03k
original_text
stringlengths
3
154k
subdomain
stringclasses
20 values
metadata
dict
emb
listlengths
1.02k
1.02k
b9b42619fc0b2941bec938bcc3a2ad17687eb17c
Wordpress Stackexchange Q: Set Session Time Limit for Password Protected Posts I have made a series of posts and pages password protected on my website using the built-in Visibility setting. They all use the same password, so the user can view all of them after entering the password once. The problem: I need the session to time out after an hour. I have tried using this code in my functions.php file. add_action( 'wp', 'post_pw_sess_expire' ); function post_pw_sess_expire() { if ( isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) ) // Setting a time of 0 in setcookie() forces the cookie to expire with the session setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH); } It successfully clears the cache, but I would like to extend the time rather than expiring the session immediately. Any help would be greatly appreciated! A: The reason is when you execute this code setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH); It will reset your post password cookie to blank '', so it just work once To solve this you need to assign the original cookie and extend the timeout, like this setcookie('wp-postpass_' . COOKIEHASH, $_COOKIE['wp-postpass_' . COOKIEHASH], time() + 60 * 5, COOKIEPATH); Hope this help
Q: Set Session Time Limit for Password Protected Posts I have made a series of posts and pages password protected on my website using the built-in Visibility setting. They all use the same password, so the user can view all of them after entering the password once. The problem: I need the session to time out after an hour. I have tried using this code in my functions.php file. add_action( 'wp', 'post_pw_sess_expire' ); function post_pw_sess_expire() { if ( isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) ) // Setting a time of 0 in setcookie() forces the cookie to expire with the session setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH); } It successfully clears the cache, but I would like to extend the time rather than expiring the session immediately. Any help would be greatly appreciated! A: The reason is when you execute this code setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH); It will reset your post password cookie to blank '', so it just work once To solve this you need to assign the original cookie and extend the timeout, like this setcookie('wp-postpass_' . COOKIEHASH, $_COOKIE['wp-postpass_' . COOKIEHASH], time() + 60 * 5, COOKIEPATH); Hope this help A: You just need to hook into the filter like this and replace 0 with a time calculation, like time() + 60 function set_cookie_expire () { echo 0; } add_filter('post_password_expires', 'set_cookie_expire');
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:446044", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149313" }
[ 0.056732177734375, 0.01509857177734375, 0.004150390625, 0.043243408203125, 0.030609130859375, -0.057525634765625, 0.07110595703125, -0.07769775390625, -0.0174102783203125, -0.006866455078125, -0.02716064453125, -0.004291534423828125, -0.046905517578125, -0.032257080078125, -0.003940582275390625, -0.05584716796875, 0.0158233642578125, 0.01708984375, 0.020294189453125, -0.026275634765625, 0.01285552978515625, -0.022247314453125, 0.0220794677734375, 0.0102386474609375, 0.02679443359375, 0.01175689697265625, 0.054107666015625, -0.0069732666015625, 0.01340484619140625, -0.00812530517578125, 0.035247802734375, -0.0574951171875, -0.00890350341796875, 0.0667724609375, -0.0511474609375, 0.0018739700317382812, -0.01641845703125, 0.0401611328125, 0.0021305084228515625, 0.03668212890625, -0.0024738311767578125, -0.00014793872833251953, -0.01180267333984375, 0.026611328125, -0.0306396484375, -0.033782958984375, -0.007904052734375, -0.0235748291015625, 0.03546142578125, 0.02850341796875, 0.01032257080078125, 0.01529693603515625, 0.003017425537109375, 0.0190887451171875, -0.0177001953125, -0.00519561767578125, 0.01206207275390625, 0.0041961669921875, 0.0364990234375, -0.0399169921875, -0.03631591796875, -0.022308349609375, 0.024749755859375, 0.004001617431640625, -0.0169677734375, -0.0097503662109375, 0.005870819091796875, 0.0015115737915039062, -0.054412841796875, -0.0193939208984375, 0.056640625, -0.0244140625, -0.0028209686279296875, -0.016448974609375, -0.0404052734375, 0.004810333251953125, 0.002109527587890625, -0.013031005859375, 0.01788330078125, -0.0110321044921875, -0.036956787109375, -0.029052734375, -0.0198974609375, -0.006900787353515625, -0.0186767578125, 0.00046753883361816406, -0.023651123046875, 0.0139007568359375, -0.00010406970977783203, -0.0196380615234375, -0.017669677734375, -0.0012559890747070312, -0.0220947265625, 0.0172882080078125, -0.010589599609375, -0.0135040283203125, 0.0055694580078125, 0.01120758056640625, 0.001155853271484375, 0.01065826416015625, -0.00479888916015625, -0.0249481201171875, 0.001190185546875, -0.01001739501953125, -0.010833740234375, 0.0587158203125, 0.0256500244140625, 0.03466796875, 0.004093170166015625, -0.00170135498046875, 0.0008521080017089844, -0.049560546875, -0.017791748046875, -0.03424072265625, -0.046966552734375, 0.01526641845703125, -0.026580810546875, -0.038909912109375, 0.003772735595703125, -0.048553466796875, -0.045623779296875, -0.02618408203125, -0.02740478515625, -0.007022857666015625, 0.0308685302734375, -0.0184783935546875, -0.0078125, 0.045135498046875, 0.025482177734375, 0.05023193359375, -0.058074951171875, -0.0302276611328125, 0.07208251953125, 0.034820556640625, 0.029998779296875, -0.043701171875, 0.0487060546875, -0.035919189453125, -0.01479339599609375, 0.035064697265625, -0.0180816650390625, -0.025390625, 0.028411865234375, -0.0159454345703125, 0.00130462646484375, 0.0181427001953125, 0.026214599609375, 0.003940582275390625, -0.0098419189453125, -0.060943603515625, 0.010284423828125, -0.0143585205078125, 0.01009368896484375, -0.0009832382202148438, 0.0022525787353515625, -0.019134521484375, 0.0024566650390625, -0.0155792236328125, 0.0135345458984375, -0.01456451416015625, 0.00626373291015625, -0.0229644775390625, -0.027374267578125, -0.000579833984375, -0.039825439453125, 0.02191162109375, 0.0021724700927734375, -0.0016069412231445312, 0.034271240234375, 0.0272064208984375, 0.02423095703125, -0.053680419921875, 0.004730224609375, 0.00473785400390625, -0.0176849365234375, 0.03857421875, -0.0321044921875, 0.005298614501953125, 0.038238525390625, -0.031341552734375, -0.0379638671875, -0.043548583984375, 0.036865234375, -0.0021228790283203125, -0.0202178955078125, -0.0182342529296875, 0.0053558349609375, 0.02984619140625, 0.00734710693359375, 0.032196044921875, 0.0044097900390625, -0.0002849102020263672, -0.006130218505859375, 0.06365966796875, -0.02081298828125, -0.042022705078125, -0.01300811767578125, 0.01374053955078125, -0.038238525390625, -0.0205841064453125, 0.039306640625, 0.0035400390625, 0.01511383056640625, -0.0063934326171875, -0.06878662109375, 0.03167724609375, -0.0302276611328125, 0.026611328125, -0.00545501708984375, 0.013519287109375, 0.01320648193359375, -0.002689361572265625, 0.00033164024353027344, -0.032135009765625, -0.0252685546875, -0.01383209228515625, -0.046661376953125, 0.0936279296875, -0.01155853271484375, 0.08966064453125, 0.0059814453125, -0.08465576171875, 0.0241546630859375, -0.0367431640625, 0.042144775390625, 0.00197601318359375, -0.0186767578125, -0.014434814453125, 0.00582122802734375, 0.00579071044921875, -0.034332275390625, 0.03436279296875, 0.0090484619140625, 0.0311431884765625, -0.034088134765625, -0.025421142578125, -0.031463623046875, -0.031219482421875, 0.0124359130859375, 0.058197021484375, 0.04754638671875, 0.01401519775390625, -0.01155853271484375, -0.025177001953125, 0.03424072265625, -0.05792236328125, 0.0076904296875, -0.0213470458984375, -0.002346038818359375, 0.038330078125, 0.01068115234375, -0.007488250732421875, 0.022430419921875, -0.034423828125, -0.01230621337890625, 0.041778564453125, -0.03607177734375, -0.01178741455078125, -0.00769805908203125, 0.011688232421875, 0.00960540771484375, -0.05474853515625, -0.0005698204040527344, -0.0347900390625, 0.018707275390625, -0.0302276611328125, 0.0107879638671875, -0.01393890380859375, -0.01477813720703125, -0.0026702880859375, 0.0232086181640625, -0.052825927734375, -0.0010614395141601562, 0.0299072265625, 0.013763427734375, -0.052001953125, -0.01395416259765625, -0.00713348388671875, -0.0043792724609375, -0.00655364990234375, 0.02215576171875, 0.039459228515625, -0.016510009765625, 0.0067901611328125, 0.00585174560546875, 0.0013408660888671875, 0.002010345458984375, 0.060546875, 0.056396484375, -0.006595611572265625, 0.04254150390625, -0.01220703125, -0.01244354248046875, 0.038482666015625, 0.004085540771484375, -0.05487060546875, 0.01549530029296875, -0.0504150390625, 0.054718017578125, -0.050994873046875, 0.059173583984375, 0.0679931640625, -0.023284912109375, 0.038543701171875, 0.0017232894897460938, 0.03363037109375, 0.0184783935546875, -0.0014295578002929688, -0.0191650390625, -0.037445068359375, -0.0155792236328125, -0.0126953125, 0.0274658203125, 0.0396728515625, -0.0285491943359375, -0.04388427734375, -0.0159149169921875, 0.018951416015625, -0.067626953125, -0.04498291015625, -0.0259857177734375, -0.1251220703125, 0.014801025390625, -0.038848876953125, -0.0623779296875, 0.00666046142578125, 0.007617950439453125, 0.01264190673828125, -0.0200347900390625, -0.0189056396484375, 0.00012695789337158203, -0.0211944580078125, -0.007602691650390625, 0.00469207763671875, 0.002094268798828125, -0.0236053466796875, -0.0160980224609375, 0.09173583984375, -0.006195068359375, -0.04400634765625, -0.03302001953125, 0.0023555755615234375, -0.01229095458984375, -0.0263214111328125, -0.03802490234375, -0.01006317138671875, 0.0328369140625, -0.0038051605224609375, -0.042327880859375, -0.00982666015625, 0.036407470703125, -0.03204345703125, 0.01197052001953125, -0.025665283203125, 0.0347900390625, -0.00981903076171875, -0.04278564453125, 0.00742340087890625, 0.0229034423828125, -0.0267181396484375, -0.01323699951171875, -0.01001739501953125, -0.055999755859375, -0.0120849609375, 0.043914794921875, -0.0142059326171875, -0.025390625, -0.013580322265625, -0.035369873046875, -0.0063934326171875, 0.01678466796875, -0.040740966796875, 0.0195465087890625, -0.01507568359375, -0.035186767578125, -0.0033283233642578125, 0.04931640625, 0.01032257080078125, 0.019927978515625, 0.02569580078125, 0.043212890625, 0.027435302734375, -0.023651123046875, -0.039306640625, -0.050018310546875, 0.040130615234375, -0.00322723388671875, 0.02459716796875, -0.05029296875, -0.04302978515625, -0.0189056396484375, 0.1002197265625, -0.055694580078125, -0.040802001953125, -0.011627197265625, 0.021575927734375, -0.00720977783203125, -0.0300750732421875, 0.01335906982421875, -0.019195556640625, -0.08392333984375, 0.015838623046875, -0.0126800537109375, -0.01354217529296875, 0.006072998046875, -0.060638427734375, -0.01885986328125, -0.05224609375, 0.02362060546875, 0.0005202293395996094, 0.01511383056640625, -0.0026760101318359375, -0.00031375885009765625, -0.0109710693359375, 0.002780914306640625, -0.0207366943359375, -0.053680419921875, -0.006038665771484375, -0.01288604736328125, 0.0302886962890625, 0.0391845703125, -0.064208984375, 0.0172576904296875, 0.03717041015625, 0.0240020751953125, 0.0295257568359375, 0.0340576171875, -0.00115966796875, 0.028411865234375, 0.007274627685546875, 0.0369873046875, -0.0230255126953125, 0.00006729364395141602, -0.0139923095703125, 0.0028400421142578125, 0.0193634033203125, -0.036712646484375, -0.021881103515625, -0.0224456787109375, -0.0178375244140625, -0.07421875, -0.04437255859375, -0.0007305145263671875, 0.0203399658203125, -0.01261138916015625, 0.0014362335205078125, -0.0762939453125, -0.05694580078125, 0.08685302734375, 0.0132598876953125, 0.01041412353515625, -0.030242919921875, 0.07916259765625, 0.00433349609375, -0.048675537109375, 0.03619384765625, -0.01087188720703125, 0.01181793212890625, -0.03509521484375, 0.0439453125, 0.00005507469177246094, -0.0035800933837890625, 0.06256103515625, -0.0282745361328125, -0.01190185546875, -0.05194091796875, 0.0321044921875, -0.01267242431640625, -0.02777099609375, 0.00499725341796875, -0.043701171875, 0.07073974609375, -0.003482818603515625, 0.00518035888671875, 0.017578125, 0.0148468017578125, 0.010894775390625, 0.0443115234375, -0.06402587890625, -0.028778076171875, -0.0258026123046875, 0.01425933837890625, -0.01459503173828125, 0.0237884521484375, 0.0184173583984375, 0.0027294158935546875, 0.01126861572265625, -0.007801055908203125, 0.0023479461669921875, -0.03594970703125, -0.016143798828125, 0.01442718505859375, 0.010772705078125, 0.0233917236328125, 0.0249481201171875, -0.036590576171875, -0.0258026123046875, 0.09222412109375, 0.028167724609375, -0.050750732421875, 0.042266845703125, -0.003173828125, 0.0290069580078125, 0.0163421630859375, -0.036285400390625, 0.016845703125, -0.0068817138671875, -0.0028896331787109375, 0.0304718017578125, -0.041351318359375, -0.019683837890625, -0.0072784423828125, 0.039794921875, -0.0032138824462890625, 0.0031986236572265625, 0.0241241455078125, 0.04840087890625, 0.0201263427734375, 0.0291595458984375, -0.023406982421875, 0.053863525390625, 0.04534912109375, 0.0161285400390625, 0.0054473876953125, 0.0194549560546875, -0.0299530029296875, 0.018463134765625, -0.0209503173828125, -0.027374267578125, -0.062042236328125, 0.0037841796875, 0.00998687744140625, 0.01049041748046875, 0.04388427734375, 0.016693115234375, 0.0469970703125, -0.006092071533203125, 0.018402099609375, 0.01507568359375, -0.0311279296875, -0.00545501708984375, 0.0260162353515625, 0.034210205078125, -0.00322723388671875, -0.00754547119140625, -0.00679779052734375, -0.0220489501953125, 0.0166015625, 0.01971435546875, 0.0281982421875, -0.02783203125, -0.04156494140625, -0.042999267578125, -0.032562255859375, -0.037353515625, 0.05120849609375, 0.0005660057067871094, -0.0002644062042236328, -0.0257110595703125, 0.01058197021484375, -0.029205322265625, 0.003688812255859375, 0.01277923583984375, -0.01180267333984375, 0.0257568359375, 0.038055419921875, -0.01418304443359375, -0.0289764404296875, -0.0308074951171875, 0.0086822509765625, -0.0426025390625, -0.01788330078125, -0.01178741455078125, -0.0145263671875, -0.037445068359375, -0.0228729248046875, 0.033935546875, 0.0276336669921875, 0.0092926025390625, -0.0187835693359375, -0.04736328125, 0.00429534912109375, 0.037109375, 0.043243408203125, -0.016448974609375, 0.037017822265625, 0.00897216796875, -0.0229034423828125, 0.0046539306640625, -0.007015228271484375, -0.01053619384765625, 0.011993408203125, 0.01708984375, 0.006153106689453125, -0.016632080078125, -0.014923095703125, -0.007843017578125, -0.026275634765625, 0.0377197265625, -0.026031494140625, -0.0161590576171875, -0.0014209747314453125, 0.01174163818359375, -0.0214996337890625, 0.029022216796875, 0.036590576171875, -0.0081634521484375, 0.0183258056640625, -0.00257110595703125, 0.10406494140625, -0.00687408447265625, -0.00530242919921875, 0.032806396484375, -0.058135986328125, 0.0634765625, 0.0153045654296875, 0.00977325439453125, -0.00537109375, 0.05615234375, 0.00850677490234375, 0.04998779296875, 0.0186614990234375, 0.0310821533203125, 0.04022216796875, -0.01146697998046875, -0.02032470703125, -0.018768310546875, 0.041778564453125, -0.011993408203125, -0.0283203125, 0.0167388916015625, -0.0255279541015625, -0.005260467529296875, 0.04412841796875, 0.0309600830078125, -0.06988525390625, 0.0198516845703125, 0.0125274658203125, 0.004608154296875, 0.023681640625, -0.018951416015625, 0.020538330078125, 0.050628662109375, 0.0310821533203125, -0.018768310546875, -0.03826904296875, 0.020050048828125, 0.0017709732055664062, 0.021575927734375, -0.0238494873046875, 0.04718017578125, 0.004062652587890625, -0.0867919921875, 0.012054443359375, 0.0821533203125, -0.031524658203125, -0.0022373199462890625, -0.0051422119140625, -0.005779266357421875, -0.036865234375, -0.04791259765625, 0.005329132080078125, -0.022735595703125, -0.0006785392761230469, 0.000029981136322021484, 0.01396942138671875, 0.052947998046875, 0.052764892578125, 0.0101318359375, -0.01148223876953125, 0.022003173828125, 0.0238189697265625, -0.009307861328125, -0.013946533203125, 0.003086090087890625, 0.0205841064453125, -0.0251312255859375, 0.0178375244140625, -0.0216522216796875, -0.0166473388671875, -0.0167388916015625, -0.024993896484375, 0.05230712890625, -0.054412841796875, 0.02294921875, 0.033477783203125, 0.032135009765625, -0.004215240478515625, 0.004425048828125, 0.022979736328125, -0.049072265625, -0.005825042724609375, -0.0012140274047851562, 0.003448486328125, -0.0018873214721679688, 0.01294708251953125, -0.05462646484375, 0.1082763671875, 0.01021575927734375, 0.0083465576171875, 0.0209808349609375, 0.046875, -0.05877685546875, 0.01358795166015625, 0.0018520355224609375, 0.0240631103515625, -0.034271240234375, 0.00354766845703125, -0.0004036426544189453, 0.0149078369140625, 0.0033130645751953125, 0.016510009765625, 0.03326416015625, 0.029083251953125, -0.01462554931640625, -0.054901123046875, -0.046966552734375, 0.0101318359375, -0.022125244140625, 0.038787841796875, -0.0283050537109375, 0.0261077880859375, 0.01727294921875, -0.076416015625, 0.002471923828125, 0.0018215179443359375, -0.0171356201171875, 0.004703521728515625, 0.00197601318359375, -0.02105712890625, 0.0135650634765625, 0.042083740234375, -0.08599853515625, 0.024383544921875, 0.04486083984375, 0.0259857177734375, -0.0027446746826171875, 0.00897979736328125, 0.0166778564453125, -0.0345458984375, 0.0044403076171875, -0.0213623046875, 0.038787841796875, 0.0081939697265625, -0.004009246826171875, 0.03668212890625, 0.02642822265625, 0.0014772415161132812, -0.0138702392578125, -0.0002512931823730469, 0.00033283233642578125, -0.01092529296875, 0.031341552734375, 0.046630859375, 0.0396728515625, 0.029571533203125, 0.050323486328125, 0.02056884765625, 0.03277587890625, -0.039642333984375, -0.01458740234375, 0.0005578994750976562, -0.00015723705291748047, 0.020263671875, -0.01029205322265625, 0.03900146484375, 0.00971221923828125, -0.01403045654296875, 0.005825042724609375, 0.0269775390625, 0.043853759765625, 0.004489898681640625, 0.0265350341796875, 0.058746337890625, -0.08984375, 0.032958984375, -0.00310516357421875, -0.035400390625, 0.00539398193359375, 0.008148193359375, 0.0215301513671875, -0.01526641845703125, 0.0225830078125, 0.010833740234375, -0.008880615234375, 0.0140228271484375, 0.0191497802734375, -0.00848388671875, 0.00936126708984375, -0.007801055908203125, 0.035430908203125, 0.02032470703125, 0.013519287109375, -0.026947021484375, 0.033843994140625, 0.0092620849609375, -0.06829833984375, -0.019989013671875, 0.02386474609375, -0.02880859375, 0.033905029296875, 0.0297088623046875, -0.031158447265625, -0.01499176025390625, -0.050048828125, -0.0465087890625, 0.037933349609375, -0.0090484619140625, 0.0279388427734375, 0.004230499267578125, 0.01332855224609375, -0.01126861572265625, -0.0226593017578125, 0.038360595703125, 0.0107421875, 0.059722900390625, -0.002567291259765625, 0.00862884521484375, -0.0184478759765625, -0.0513916015625, 0.01277923583984375, 0.028167724609375, -0.016937255859375, 0.011199951171875, 0.02325439453125, -0.0183868408203125, 0.01194000244140625, -0.0043487548828125, 0.02215576171875, -0.027496337890625, -0.002841949462890625, -0.008270263671875, -0.09515380859375, -0.06573486328125, -0.055023193359375, 0.0523681640625, 0.0435791015625, 0.00583648681640625, 0.0312347412109375, 0.04412841796875, -0.00455474853515625, -0.00536346435546875, -0.003582000732421875, -0.011260986328125, -0.01514434814453125, -0.0079803466796875, 0.006015777587890625, 0.00722503662109375, -0.0673828125, 0.058349609375, -0.006717681884765625, 0.0170745849609375, 0.03546142578125, -0.0172271728515625, 0.0040435791015625, 0.012664794921875, -0.02581787109375, -0.023590087890625, -0.0245513916015625, -0.00316619873046875, 0.01324462890625, 0.0059356689453125, 0.0172882080078125, -0.0167999267578125, 0.057464599609375, -0.0640869140625, -0.0016069412231445312, 0.005859375, -0.06298828125, -0.010406494140625, 0.018341064453125, -0.0628662109375, -0.0287628173828125, -0.027191162109375, -0.0186767578125, -0.049224853515625, 0.0208282470703125, -0.0265350341796875, -0.01045989990234375, 0.0159149169921875, 0.059906005859375, 0.05804443359375, 0.04730224609375, -0.005367279052734375, 0.01275634765625, 0.038055419921875, -0.00860595703125, 0.00524139404296875, -0.030181884765625, -0.04815673828125, -0.06292724609375, 0.01123046875, 0.027008056640625, -0.0276336669921875, -0.048095703125, -0.0743408203125, 0.00469207763671875, 0.0273590087890625, -0.004077911376953125, -0.031280517578125, 0.027191162109375, -0.0301361083984375, 0.0248260498046875, -0.00411224365234375, -0.03369140625, 0.0065155029296875, 0.0265045166015625, -0.01328277587890625, -0.02764892578125, -0.041961669921875, 0.019378662109375, -0.06622314453125, -0.04827880859375, 0.0207061767578125, 0.030609130859375, -0.040283203125, -0.060333251953125, -0.056671142578125, -0.012054443359375, -0.0799560546875, -0.01282501220703125, 0.03509521484375, 0.0212249755859375, -0.0271759033203125, -0.08917236328125, -0.02117919921875, -0.0386962890625, 0.048370361328125, -0.006256103515625, -0.0032596588134765625, 0.0002570152282714844, -0.0230712890625, -0.02545166015625, 0.0274658203125, 0.0113067626953125, -0.019805908203125, -0.06671142578125, 0.0164337158203125, -0.00290679931640625, 0.0227508544921875, -0.01006317138671875, -0.0227203369140625, -0.0266265869140625, 0.0202178955078125, 0.0113067626953125, 0.0193023681640625, 0.02850341796875, 0.0543212890625, 0.0230560302734375, 0.0501708984375, 0.037078857421875, -0.022918701171875, -0.0167083740234375, 0.036773681640625, -0.00473785400390625, 0.053802490234375, -0.01201629638671875, 0.0120391845703125, -0.01395416259765625, -0.01096343994140625, -0.0032024383544921875, 0.0211944580078125, -0.0280303955078125, -0.018096923828125, 0.06317138671875, 0.0123443603515625, 0.01515960693359375, -0.0073394775390625, -0.041748046875, -0.00856781005859375, -0.00217437744140625, -0.02691650390625, 0.00909423828125, -0.048553466796875, -0.006561279296875, -0.050506591796875, 0.01027679443359375, -0.015869140625, -0.00431060791015625, -0.0023975372314453125, -0.027587890625, -0.0005936622619628906, -0.023712158203125, 0.0126953125, -0.00018787384033203125, 0.0085906982421875, -0.0127410888671875, -0.033782958984375, 0.01064300537109375, 0.012725830078125, -0.031982421875, 0.01300811767578125, 0.0001914501190185547, 0.03173828125, -0.04119873046875, -0.007755279541015625, -0.00957489013671875, 0.0167083740234375, -0.041229248046875, -0.01088714599609375, 0.006908416748046875, -0.00479888916015625, -0.01824951171875, -0.0269622802734375, 0.03204345703125, -0.0134124755859375, -0.0288848876953125, 0.007656097412109375, -0.01038360595703125, -0.01198577880859375, -0.022216796875, 0.042816162109375, 0.03857421875, -0.033355712890625, 0.06268310546875, -0.01390838623046875, 0.017822265625, -0.023834228515625, 0.037933349609375, -0.000396728515625, 0.03375244140625, -0.04046630859375, -0.02679443359375, 0.0150909423828125 ]
8bb5bee5121a159153c90ded81f7a3c8359e4ca7
Wordpress Stackexchange Q: Is it possible to maintain image aspect ratio when scaling images? I'm using a theme which displays a grid of images, but it only works with landscape images at the moment (with portrait images, people's heads are cut off). The theme uses custom featured image sizes defined in functions.php through the use of add_image_size(). Is there a way to set the image sizes proportionately to maintain the correct aspect ratio? A: The code of WordPress states that the fourth variable with the add_image_size() function is value for the crop 'mode'. If you that value to 'false' (which is default) it'll keep the aspect ratio of your images. For example, if you set height and width to both 150x150 and have an image that is 300x200 will become 225x150. Source: http://codex.wordpress.org/Function_Reference/add_image_size
Q: Is it possible to maintain image aspect ratio when scaling images? I'm using a theme which displays a grid of images, but it only works with landscape images at the moment (with portrait images, people's heads are cut off). The theme uses custom featured image sizes defined in functions.php through the use of add_image_size(). Is there a way to set the image sizes proportionately to maintain the correct aspect ratio? A: The code of WordPress states that the fourth variable with the add_image_size() function is value for the crop 'mode'. If you that value to 'false' (which is default) it'll keep the aspect ratio of your images. For example, if you set height and width to both 150x150 and have an image that is 300x200 will become 225x150. Source: http://codex.wordpress.org/Function_Reference/add_image_size
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:446045", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149315" }
[ -0.0016679763793945312, -0.0226287841796875, 0.0170135498046875, 0.044464111328125, -0.0233154296875, -0.0172119140625, 0.062469482421875, -0.03680419921875, 0.041900634765625, 0.005207061767578125, -0.0374755859375, -0.004573822021484375, -0.01230621337890625, -0.01120758056640625, -0.029998779296875, -0.032470703125, 0.05596923828125, -0.0292510986328125, 0.026885986328125, -0.00601959228515625, 0.0146026611328125, 0.0345458984375, -0.00009256601333618164, 0.10882568359375, -0.00592041015625, 0.06524658203125, 0.038604736328125, -0.02947998046875, -0.01198577880859375, -0.007343292236328125, 0.0120849609375, 0.00249481201171875, 0.01519775390625, 0.0095367431640625, -0.0217132568359375, -0.053680419921875, 0.00296783447265625, -0.01385498046875, -0.0316162109375, 0.0240936279296875, 0.025543212890625, -0.01221466064453125, 0.062744140625, 0.005889892578125, 0.0218505859375, -0.02001953125, 0.035125732421875, -0.05194091796875, -0.004352569580078125, 0.0272674560546875, 0.025604248046875, 0.017364501953125, 0.04180908203125, -0.003692626953125, -0.00960540771484375, -0.003246307373046875, -0.0282440185546875, 0.052093505859375, 0.036956787109375, -0.062042236328125, -0.04779052734375, -0.0180511474609375, 0.052459716796875, 0.04180908203125, 0.0196380615234375, -0.0200042724609375, -0.007434844970703125, 0.01715087890625, -0.00865936279296875, 0.012939453125, 0.028533935546875, -0.0170135498046875, 0.006298065185546875, -0.03009033203125, 0.0167388916015625, 0.0093231201171875, -0.0119171142578125, -0.00907135009765625, -0.0014581680297851562, 0.0173187255859375, 0.014251708984375, -0.04339599609375, 0.018646240234375, -0.0046539306640625, 0.0132904052734375, 0.023956298828125, 0.001953125, -0.00522613525390625, -0.025115966796875, -0.0037250518798828125, -0.0282440185546875, -0.05126953125, -0.033050537109375, 0.04296875, -0.004520416259765625, -0.006168365478515625, 0.004215240478515625, -0.0264739990234375, 0.01476287841796875, 0.004856109619140625, 0.057464599609375, -0.0706787109375, 0.06878662109375, -0.01715087890625, 0.0008425712585449219, 0.0176849365234375, -0.02142333984375, 0.0286102294921875, 0.0400390625, 0.033721923828125, 0.008392333984375, 0.0183868408203125, -0.0182647705078125, -0.03729248046875, -0.01474761962890625, 0.035308837890625, -0.024017333984375, 0.0015172958374023438, 0.0121612548828125, 0.0124359130859375, -0.005550384521484375, 0.01297760009765625, 0.052734375, -0.0018205642700195312, 0.031463623046875, 0.0343017578125, -0.0299224853515625, -0.05316162109375, -0.0023097991943359375, 0.047393798828125, -0.055511474609375, 0.01470947265625, 0.040496826171875, -0.005664825439453125, -0.01511383056640625, -0.0218963623046875, -0.0251007080078125, -0.06939697265625, -0.030975341796875, 0.02197265625, -0.01517486572265625, -0.0181732177734375, 0.0469970703125, -0.0216827392578125, 0.039642333984375, -0.0028228759765625, 0.0024871826171875, 0.04339599609375, 0.0030059814453125, -0.036590576171875, 0.052093505859375, -0.0202484130859375, 0.023101806640625, 0.01032257080078125, 0.022216796875, -0.0121612548828125, 0.059906005859375, -0.0229949951171875, -0.0194091796875, -0.03936767578125, -0.0120697021484375, -0.00959014892578125, 0.0098114013671875, -0.00022304058074951172, -0.01157379150390625, 0.0357666015625, -0.0391845703125, 0.0009832382202148438, 0.016326904296875, 0.0020618438720703125, 0.042083740234375, 0.0267791748046875, -0.007595062255859375, 0.0171051025390625, 0.01513671875, -0.006999969482421875, 0.0086669921875, -0.0128631591796875, 0.003726959228515625, 0.06036376953125, 0.020751953125, -0.0275421142578125, 0.002887725830078125, -0.0077362060546875, 0.0007300376892089844, -0.0338134765625, -0.0211944580078125, -0.064208984375, 0.03570556640625, -0.01183319091796875, -0.011627197265625, 0.022430419921875, -0.06536865234375, 0.027313232421875, -0.00954437255859375, 0.01305389404296875, -0.0081634521484375, 0.01151275634765625, 0.0006146430969238281, -0.02630615234375, 0.007701873779296875, -0.0280609130859375, 0.0034656524658203125, -0.00673675537109375, -0.03692626953125, -0.016143798828125, -0.01406097412109375, 0.014373779296875, -0.0218658447265625, 0.0225677490234375, 0.0163116455078125, 0.0011043548583984375, -0.0127716064453125, -0.0243682861328125, -0.00655364990234375, -0.00214385986328125, 0.0015077590942382812, 0.01068115234375, -0.01152801513671875, -0.00405120849609375, -0.043212890625, -0.0081024169921875, -0.0355224609375, 0.01666259765625, 0.0001531839370727539, -0.016845703125, -0.0281829833984375, -0.0268402099609375, -0.020294189453125, -0.01006317138671875, -0.0294952392578125, 0.048095703125, -0.04620361328125, -0.0007901191711425781, -0.0131988525390625, -0.01904296875, -0.00450897216796875, -0.044403076171875, 0.0285797119140625, 0.037689208984375, 0.0299530029296875, -0.0194854736328125, -0.0128631591796875, 0.0036163330078125, 0.050445556640625, 0.00934600830078125, 0.01555633544921875, -0.01171875, -0.0018901824951171875, -0.0215606689453125, 0.033203125, -0.021942138671875, 0.0224151611328125, -0.042938232421875, 0.0140380859375, 0.018157958984375, -0.042755126953125, 0.0140838623046875, -0.05224609375, 0.048126220703125, -0.0206451416015625, 0.034332275390625, 0.05755615234375, -0.025543212890625, -0.0264739990234375, 0.00856781005859375, -0.01107025146484375, -0.01071929931640625, -0.03106689453125, 0.01430511474609375, 0.034393310546875, 0.00902557373046875, 0.004638671875, -0.01114654541015625, -0.04473876953125, 0.0017528533935546875, -0.0183563232421875, 0.033721923828125, 0.00010854005813598633, -0.01617431640625, 0.001964569091796875, -0.002166748046875, -0.038787841796875, -0.0159149169921875, 0.0203704833984375, -0.06591796875, -0.00691986083984375, 0.0236358642578125, 0.0047760009765625, -0.006793975830078125, 0.01309967041015625, 0.036895751953125, 0.005245208740234375, 0.016845703125, 0.0088958740234375, -0.012176513671875, 0.002017974853515625, -0.08624267578125, 0.092529296875, -0.07269287109375, 0.07489013671875, 0.09417724609375, -0.056243896484375, 0.07000732421875, -0.00548553466796875, -0.01273345947265625, -0.0160369873046875, 0.00713348388671875, -0.0009632110595703125, -0.01422119140625, -0.033660888671875, 0.0130767822265625, 0.0311431884765625, 0.05902099609375, -0.005970001220703125, -0.0224609375, 0.01032257080078125, 0.04046630859375, 0.023040771484375, 0.01654052734375, 0.0247650146484375, -0.042694091796875, -0.033050537109375, -0.01371002197265625, -0.023956298828125, -0.002071380615234375, -0.00042247772216796875, -0.01318359375, -0.04071044921875, -0.0193023681640625, 0.003871917724609375, -0.07891845703125, -0.048187255859375, -0.04937744140625, 0.007556915283203125, 0.0022945404052734375, -0.000789642333984375, -0.020782470703125, 0.0029010772705078125, 0.0008234977722167969, 0.01561737060546875, 0.02490234375, 0.0225830078125, -0.0279541015625, 0.00762176513671875, -0.04095458984375, -0.013458251953125, -0.0138702392578125, 0.023193359375, 0.0205230712890625, -0.01239776611328125, 0.013641357421875, -0.049835205078125, -0.06951904296875, -0.043243408203125, 0.0626220703125, 0.055206298828125, -0.076416015625, 0.0231170654296875, -0.06866455078125, -0.050537109375, -0.037841796875, -0.083251953125, 0.0301971435546875, 0.061004638671875, 0.0019483566284179688, -0.02978515625, 0.019256591796875, 0.04669189453125, 0.019805908203125, 0.0230865478515625, -0.0179290771484375, 0.049560546875, 0.0043182373046875, 0.0280303955078125, -0.0662841796875, -0.021453857421875, -0.02874755859375, 0.045989990234375, -0.0161895751953125, 0.004642486572265625, -0.033447265625, 0.033721923828125, -0.0556640625, -0.0274658203125, 0.058929443359375, 0.03973388671875, 0.0204925537109375, -0.006023406982421875, -0.047515869140625, 0.01617431640625, 0.09002685546875, -0.01336669921875, -0.0257415771484375, -0.0161285400390625, 0.0268096923828125, -0.0232696533203125, -0.02972412109375, 0.007472991943359375, -0.006130218505859375, -0.022735595703125, 0.0070953369140625, 0.0263824462890625, -0.0457763671875, -0.0021572113037109375, 0.0195465087890625, -0.0121002197265625, 0.00033092498779296875, 0.012542724609375, 0.0020389556884765625, -0.0193328857421875, 0.043487548828125, -0.03173828125, 0.040557861328125, -0.00511932373046875, -0.030364990234375, -0.10382080078125, -0.0169219970703125, 0.0265655517578125, 0.060150146484375, -0.04840087890625, 0.04150390625, -0.03521728515625, 0.051605224609375, 0.001567840576171875, -0.00962066650390625, 0.031494140625, 0.0161895751953125, -0.0219573974609375, -0.01094818115234375, 0.0129547119140625, -0.052520751953125, 0.001739501953125, -0.03961181640625, -0.045074462890625, -0.0595703125, -0.0433349609375, -0.032470703125, -0.00975799560546875, -0.0201416015625, -0.03985595703125, -0.0243377685546875, -0.01001739501953125, 0.06097412109375, -0.00344085693359375, 0.0073394775390625, -0.06951904296875, -0.06292724609375, -0.0018796920776367188, 0.01497650146484375, 0.01055145263671875, 0.0218353271484375, 0.0723876953125, 0.005054473876953125, 0.0017976760864257812, -0.08416748046875, -0.01202392578125, 0.055267333984375, 0.040557861328125, -0.0006618499755859375, 0.0153045654296875, -0.03228759765625, 0.01433563232421875, 0.060882568359375, -0.040496826171875, -0.0204010009765625, 0.064697265625, -0.0044708251953125, -0.0205078125, 0.01435089111328125, -0.05615234375, 0.042266845703125, 0.0086669921875, -0.038665771484375, 0.0197601318359375, -0.0302734375, 0.005084991455078125, -0.029083251953125, 0.034759521484375, 0.003795623779296875, -0.0301513671875, 0.00998687744140625, 0.0115509033203125, 0.0183563232421875, -0.0015802383422851562, 0.01349639892578125, -0.008209228515625, 0.017974853515625, 0.0027713775634765625, -0.0149993896484375, 0.004116058349609375, -0.03692626953125, 0.0210723876953125, 0.0111541748046875, -0.0136260986328125, -0.0102081298828125, 0.00806427001953125, -0.0087738037109375, 0.00783538818359375, -0.033660888671875, -0.03564453125, -0.001377105712890625, -0.0170135498046875, -0.017913818359375, 0.0081024169921875, 0.062744140625, 0.0250701904296875, -0.0343017578125, -0.036102294921875, -0.03924560546875, -0.0014829635620117188, -0.07257080078125, -0.01873779296875, -0.009979248046875, -0.01422119140625, 0.042877197265625, -0.0290374755859375, 0.00997161865234375, -0.01169586181640625, 0.00021338462829589844, 0.03253173828125, 0.04632568359375, 0.01556396484375, 0.0165557861328125, 0.0228729248046875, -0.0258026123046875, 0.006862640380859375, 0.0006012916564941406, -0.01953125, 0.00823974609375, 0.024200439453125, 0.028900146484375, -0.01708984375, -0.032684326171875, 0.025390625, -0.03314208984375, 0.00617218017578125, 0.002490997314453125, -0.055267333984375, -0.051300048828125, -0.01404571533203125, 0.018798828125, 0.031585693359375, -0.033447265625, -0.053436279296875, -0.0043792724609375, -0.037994384765625, -0.0038509368896484375, 0.034912109375, -0.06365966796875, 0.053802490234375, 0.04534912109375, -0.056488037109375, -0.0271759033203125, -0.036376953125, 0.00044846534729003906, -0.0196990966796875, 0.0242462158203125, -0.0202178955078125, 0.01114654541015625, -0.02911376953125, -0.0269775390625, -0.0022602081298828125, 0.00812530517578125, -0.0191802978515625, 0.0182647705078125, 0.04083251953125, 0.008056640625, -0.0208587646484375, -0.0265045166015625, -0.03302001953125, -0.0197906494140625, 0.023468017578125, -0.032379150390625, 0.0023517608642578125, -0.0029392242431640625, 0.00969696044921875, 0.01544189453125, -0.00687408447265625, -0.0217132568359375, -0.026702880859375, 0.034149169921875, 0.0230712890625, 0.0304718017578125, -0.0033588409423828125, 0.02313232421875, 0.0016183853149414062, 0.057098388671875, -0.0002110004425048828, -0.006641387939453125, -0.0296783447265625, -0.01812744140625, -0.00328826904296875, 0.0010347366333007812, -0.007266998291015625, 0.01348114013671875, -0.005146026611328125, -0.035064697265625, 0.00930023193359375, 0.0008502006530761719, 0.006336212158203125, -0.05859375, -0.00794219970703125, -0.028289794921875, 0.0894775390625, -0.0697021484375, -0.0082550048828125, 0.00838470458984375, -0.039215087890625, 0.01433563232421875, 0.01413726806640625, -0.0015096664428710938, 0.019866943359375, -0.0325927734375, 0.007022857666015625, 0.042449951171875, 0.032318115234375, -0.014404296875, 0.049652099609375, -0.023345947265625, 0.05133056640625, 0.04949951171875, 0.01276397705078125, 0.038604736328125, -0.01059722900390625, -0.00409698486328125, -0.0132598876953125, 0.005435943603515625, -0.020538330078125, -0.00147247314453125, -0.004070281982421875, -0.00724029541015625, 0.0189361572265625, 0.0266876220703125, 0.06414794921875, -0.045745849609375, 0.02288818359375, 0.0059356689453125, -0.00655364990234375, 0.0445556640625, -0.01451873779296875, -0.0130767822265625, -0.005863189697265625, 0.035369873046875, 0.005115509033203125, -0.0229339599609375, 0.001739501953125, 0.00646209716796875, -0.00848388671875, 0.01287078857421875, 0.0212554931640625, 0.007358551025390625, -0.033782958984375, -0.0251922607421875, 0.033050537109375, -0.0174713134765625, 0.022369384765625, 0.042755126953125, -0.04681396484375, -0.00333404541015625, -0.01287841796875, -0.0160980224609375, -0.031402587890625, -0.028564453125, -0.0182342529296875, 0.0024242401123046875, 0.00989532470703125, 0.0246429443359375, -0.0021152496337890625, -0.0202789306640625, 0.0247039794921875, -0.07257080078125, 0.04644775390625, -0.0109710693359375, 0.04412841796875, 0.018218994140625, -0.06854248046875, 0.0020427703857421875, -0.0204315185546875, 0.00653839111328125, -0.00972747802734375, -0.0283355712890625, 0.057373046875, -0.029449462890625, -0.010711669921875, 0.004634857177734375, 0.04034423828125, -0.0010824203491210938, 0.00409698486328125, 0.04168701171875, -0.060394287109375, -0.059539794921875, 0.0233154296875, -0.07147216796875, -0.01294708251953125, -0.0112762451171875, -0.03106689453125, 0.056610107421875, -0.04656982421875, 0.0012826919555664062, 0.006206512451171875, 0.03564453125, 0.04815673828125, 0.038360595703125, 0.025909423828125, -0.0176239013671875, -0.0303802490234375, -0.01406097412109375, 0.005828857421875, 0.0024700164794921875, -0.017608642578125, 0.041961669921875, 0.0288543701171875, -0.005462646484375, -0.0474853515625, -0.00882720947265625, 0.068115234375, 0.0899658203125, 0.05133056640625, 0.0257720947265625, -0.0010023117065429688, -0.01102447509765625, 0.0443115234375, 0.0151519775390625, 0.02587890625, 0.01314544677734375, -0.02972412109375, 0.01268768310546875, -0.00879669189453125, -0.0101470947265625, 0.0021839141845703125, 0.01267242431640625, -0.0261077880859375, -0.01306915283203125, 0.0274658203125, -0.062286376953125, 0.0408935546875, 0.0127105712890625, 0.04132080078125, 0.0416259765625, -0.01617431640625, 0.00567626953125, 0.046417236328125, 0.0238037109375, 0.01264190673828125, 0.003269195556640625, 0.004268646240234375, 0.0175933837890625, -0.002109527587890625, -0.008941650390625, 0.039825439453125, -0.0026950836181640625, -0.041015625, -0.005523681640625, 0.00904083251953125, -0.0198822021484375, 0.017242431640625, 0.032745361328125, -0.0206451416015625, -0.01557159423828125, -0.0170440673828125, -0.0018329620361328125, 0.001018524169921875, 0.01287078857421875, -0.0220184326171875, -0.0016489028930664062, -0.0095062255859375, 0.018096923828125, 0.0149078369140625, 0.00180816650390625, 0.0257110595703125, 0.05401611328125, 0.00980377197265625, 0.0277099609375, -0.07403564453125, -0.0183563232421875, -0.041900634765625, 0.01116943359375, -0.005092620849609375, 0.03973388671875, 0.03216552734375, 0.0246734619140625, 0.034027099609375, -0.019012451171875, -0.0255126953125, 0.053192138671875, -0.019287109375, 0.033203125, -0.0181732177734375, -0.003665924072265625, -0.031494140625, 0.0350341796875, -0.036529541015625, -0.036651611328125, 0.04052734375, 0.0360107421875, -0.09185791015625, -0.0499267578125, -0.01189422607421875, -0.040191650390625, -0.006877899169921875, -0.0222015380859375, 0.037322998046875, 0.043243408203125, 0.0015134811401367188, 0.0185394287109375, 0.038116455078125, 0.046112060546875, -0.022613525390625, -0.01178741455078125, 0.004795074462890625, -0.041839599609375, 0.00867462158203125, 0.00876617431640625, 0.02471923828125, 0.004695892333984375, -0.047821044921875, -0.0029582977294921875, -0.0163726806640625, -0.03204345703125, 0.0104827880859375, 0.034271240234375, -0.0197601318359375, 0.0128173828125, -0.00737762451171875, -0.01385498046875, -0.0037841796875, -0.0034618377685546875, 0.01532745361328125, 0.0014638900756835938, 0.0127410888671875, 0.00696563720703125, -0.04339599609375, -0.011749267578125, -0.03314208984375, 0.045745849609375, 0.0019044876098632812, 0.1259765625, -0.05889892578125, 0.004619598388671875, 0.0259857177734375, -0.0126190185546875, 0.0478515625, 0.01294708251953125, 0.036285400390625, -0.0016632080078125, -0.00885772705078125, -0.040130615234375, 0.018951416015625, -0.016754150390625, 0.041717529296875, -0.0628662109375, -0.029541015625, -0.00023877620697021484, 0.0265045166015625, -0.0078125, 0.023651123046875, -0.03741455078125, -0.050018310546875, -0.052337646484375, 0.021392822265625, -0.0010967254638671875, -0.01116180419921875, -0.0300140380859375, 0.042724609375, 0.010101318359375, 0.0621337890625, 0.017425537109375, 0.01239776611328125, 0.0217132568359375, 0.03936767578125, -0.0882568359375, -0.059173583984375, 0.0027141571044921875, -0.0137176513671875, -0.00502777099609375, 0.007503509521484375, 0.06268310546875, -0.0151824951171875, -0.04931640625, 0.05474853515625, -0.0007915496826171875, 0.01407623291015625, -0.05548095703125, -0.02081298828125, 0.034149169921875, 0.012115478515625, 0.0291900634765625, 0.0231170654296875, -0.0231475830078125, -0.022796630859375, -0.0011234283447265625, 0.0161285400390625, 0.0154876708984375, 0.01131439208984375, -0.008636474609375, -0.005588531494140625, 0.0179595947265625, 0.01007080078125, -0.050201416015625, 0.0266876220703125, -0.019378662109375, 0.01216888427734375, -0.0255279541015625, -0.0496826171875, 0.0257415771484375, 0.056854248046875, -0.01235198974609375, -0.0248565673828125, -0.0125732421875, -0.00804901123046875, -0.007152557373046875, 0.0264892578125, 0.0355224609375, -0.039825439453125, -0.0355224609375, 0.044586181640625, 0.05023193359375, 0.07635498046875, 0.0032863616943359375, -0.00572967529296875, -0.003467559814453125, 0.034454345703125, -0.015411376953125, -0.0168914794921875, 0.005260467529296875, 0.0217742919921875, -0.0030670166015625, -0.0312042236328125, 0.0194549560546875, 0.01157379150390625, -0.035003662109375, -0.050201416015625, 0.007152557373046875, 0.0005826950073242188, -0.025787353515625, -0.0011243820190429688, -0.017578125, -0.0299835205078125, 0.055206298828125, 0.0137176513671875, -0.0211944580078125, 0.0015811920166015625, 0.0185546875, -0.0081329345703125, -0.0175933837890625, 0.00931549072265625, -0.00921630859375, -0.01739501953125, 0.0254364013671875, 0.029083251953125, -0.0232391357421875, -0.01273345947265625, 0.00296783447265625, 0.018310546875, 0.007686614990234375, -0.025054931640625, 0.000005245208740234375, 0.01325225830078125, 0.00025010108947753906, -0.0247039794921875, -0.0234527587890625, 0.00933074951171875, 0.00270843505859375, 0.052337646484375, 0.036102294921875, 0.0011425018310546875, -0.041229248046875, -0.027008056640625, -0.026947021484375, -0.020477294921875, -0.0199127197265625, 0.0171966552734375, -0.0548095703125, 0.0012798309326171875, -0.009124755859375, -0.028594970703125, -0.019500732421875, -0.01318359375, -0.06622314453125, -0.00832366943359375, -0.059967041015625, 0.005352020263671875, -0.07574462890625, 0.083740234375, 0.00452423095703125, -0.01476287841796875, 0.025848388671875, -0.0216217041015625, -0.032867431640625, 0.03350830078125, -0.00855255126953125, -0.0197906494140625, 0.0775146484375, -0.0165252685546875, -0.0042266845703125, 0.0214080810546875, -0.0046844482421875, -0.01366424560546875, 0.05328369140625, -0.0034961700439453125, 0.019927978515625, 0.0147247314453125, 0.03790283203125, -0.0309295654296875, 0.007808685302734375, 0.0195770263671875, -0.0271453857421875, -0.0526123046875, 0.016571044921875, -0.036041259765625, 0.00725555419921875, -0.004856109619140625, 0.01258087158203125, 0.06494140625, -0.01500701904296875, 0.00954437255859375, 0.0025577545166015625, -0.0341796875, -0.017364501953125, -0.0251007080078125, -0.01436614990234375, -0.01068878173828125, -0.003749847412109375 ]
c16456eb85deef38d650ed449bbaa54b472bb39c
Wordpress Stackexchange Q: Passing variables from header.php to template and vice verca I've defined a variable - let's call it $header_var, which is placed in the header.php file. I would like this variable to be passed onto my template file (in this case taxonomy.php). Also I would like to be able to do the same the other way around, like passing a $template_var from my taxonomy.php to header.php. Is this even possible since the variable was not declared once the header was loaded? I've tried using global $header_var but without luck. Any suggestions? A: Wordpress 5.5+ Since 5.5.0 get_header has $args parameter get_header changelog get_header( 'foo', [ 'header_var' => 'A value' ] ); // header-foo.php will be loaded /** * OR */ get_header( null, [ 'header_var' => 'A value' ] ); // header.php will be loaded header.php <?php echo $args['header_var']; ?> /** * OR */ <?php extract($args); ?> <?php echo $header_var; ?> /** * Or with defaults */ $defaults = array( 'header_var2' => 'bar', // ... ); extract(wp_parse_args( $args, $defaults )); <?= $header_var ?> <?= $header_var2 ?>
Q: Passing variables from header.php to template and vice verca I've defined a variable - let's call it $header_var, which is placed in the header.php file. I would like this variable to be passed onto my template file (in this case taxonomy.php). Also I would like to be able to do the same the other way around, like passing a $template_var from my taxonomy.php to header.php. Is this even possible since the variable was not declared once the header was loaded? I've tried using global $header_var but without luck. Any suggestions? A: Wordpress 5.5+ Since 5.5.0 get_header has $args parameter get_header changelog get_header( 'foo', [ 'header_var' => 'A value' ] ); // header-foo.php will be loaded /** * OR */ get_header( null, [ 'header_var' => 'A value' ] ); // header.php will be loaded header.php <?php echo $args['header_var']; ?> /** * OR */ <?php extract($args); ?> <?php echo $header_var; ?> /** * Or with defaults */ $defaults = array( 'header_var2' => 'bar', // ... ); extract(wp_parse_args( $args, $defaults )); <?= $header_var ?> <?= $header_var2 ?> A: I've defined a variable - let's call it $header_var, which is placed in the header.php file. I would like this variable to be passed onto my template file (in this case taxonomy.php). global is not a very recommended way to do the trick, but it works if you use it properly: put it before to define the variable in header.php and again before retrieve the variable in taxonomy.php (after having called get_header() to include header.php) // in header.php global $header_var; $header_var = 'A value'; // in taxonomy.php get_header(); global $header_var; echo $header_var; // 'A value' I would like to be able to do the same the other way around, like passing a $template_var from my taxonomy.php to header.php. Is this even possible since the variable was not declared once the header was loaded? It's PHP, not magic nor time machine: time rules apply to WordPress like to the rest of the universe. So, no, you can't pass a variable back in time, but usually, in templates, you include header.php by calling get_header() so if you set a variable before calling that function, the global trick will work too: // in header.php global $template_var; echo $template_var; // 'A value' // in taxonomy.php global $template_var; $template_var = 'A value' get_header(); However if you need to share variables in header.php and templates, best thing to do is do not declare them in header nor in templates, but in functions.php using action hooks to control when variables have to be declared. An useful hook to is 'template_redirect' where you have access to current query and it is fired before header.php and templates are loaded. A rough example: // in functions.php add_action( 'template_redirect', 'get_my_shared_vars' ); function get_my_shared_vars() { static $shared_vars = NULL; if ( empty( $shared_vars ) ) { $shared_vars = array( 'header_var' => 'An header value' ); if ( is_tax() || is_category() || is_tag() ) { $shared_vars['taxonomy_var'] = 'A taxonomy value'; } } return $shared_vars; } // in header.php $shared_vars = get_my_shared_vars(); echo $shared_vars['header_var']; // 'An header value' // in taxonomy.php $shared_vars = get_my_shared_vars(); echo $shared_vars['taxonomy_var']; // 'A taxonomy value' In previous code, thanks to static keyword all the code in get_my_shared_vars function used to set variables runs only once, so you don't have to worry about performance issues if calling the function more than once.
wordpress
{ "language": "en", "length": 558, "provenance": "stackexchange_00019.jsonl.gz:446049", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149333" }
[ 0.0236968994140625, -0.0269927978515625, -0.0053253173828125, -0.0716552734375, -0.0003936290740966797, 0.01300048828125, -0.00659942626953125, 0.0294189453125, -0.0181732177734375, -0.0111541748046875, -0.053955078125, -0.0046844482421875, -0.060394287109375, -0.004123687744140625, -0.0039215087890625, -0.0604248046875, 0.01158905029296875, -0.0016613006591796875, 0.02130126953125, 0.0081634521484375, -0.01323699951171875, 0.00382232666015625, 0.03570556640625, -0.00189208984375, 0.0321044921875, 0.0028591156005859375, -0.00974273681640625, -0.01995849609375, -0.0013113021850585938, -0.0113067626953125, 0.00783538818359375, 0.0088043212890625, 0.0123138427734375, 0.0367431640625, -0.0134735107421875, 0.03192138671875, 0.002582550048828125, 0.0205535888671875, 0.0322265625, 0.00844573974609375, 0.0131683349609375, 0.0026226043701171875, 0.03314208984375, 0.049285888671875, -0.006855010986328125, -0.028778076171875, 0.0122222900390625, -0.03564453125, -0.0081787109375, 0.0123138427734375, 0.00336456298828125, 0.023681640625, 0.005153656005859375, 0.0024967193603515625, 0.01012420654296875, 0.0023193359375, 0.013916015625, -0.0418701171875, 0.041046142578125, 0.031341552734375, -0.043731689453125, -0.0321044921875, 0.0296173095703125, -0.063232421875, 0.01325225830078125, 0.01352691650390625, -0.00484466552734375, 0.032379150390625, -0.050018310546875, 0.0036773681640625, 0.021270751953125, -0.0576171875, -0.00232696533203125, 0.000957489013671875, -0.0091705322265625, -0.06744384765625, 0.05059814453125, -0.0400390625, -0.010528564453125, 0.0222625732421875, 0.0030040740966796875, -0.007381439208984375, -0.036163330078125, -0.0113677978515625, 0.031646728515625, 0.040008544921875, -0.00731658935546875, -0.036773681640625, -0.01052093505859375, -0.0157623291015625, -0.020904541015625, 0.004856109619140625, -0.039398193359375, 0.0007610321044921875, -0.0013408660888671875, -0.0287628173828125, -0.031280517578125, 0.0072479248046875, -0.048736572265625, 0.034881591796875, -0.06732177734375, 0.0166015625, 0.005340576171875, -0.018218994140625, -0.0299072265625, 0.03570556640625, 0.01438140869140625, 0.02496337890625, -0.015960693359375, 0.031982421875, 0.003185272216796875, -0.036285400390625, -0.013214111328125, -0.00962066650390625, -0.043243408203125, 0.0355224609375, -0.01629638671875, -0.038482666015625, -0.0150909423828125, 0.0013475418090820312, -0.006206512451171875, 0.0032196044921875, 0.02484130859375, -0.0084381103515625, -0.01885986328125, -0.00794219970703125, -0.01276397705078125, -0.041778564453125, -0.020965576171875, 0.0174407958984375, 0.00057220458984375, 0.0089569091796875, -0.0006866455078125, 0.00859832763671875, -0.0260467529296875, -0.01103973388671875, 0.036956787109375, -0.0013093948364257812, 0.02056884765625, -0.002471923828125, 0.01267242431640625, -0.02105712890625, -0.017822265625, 0.007232666015625, -0.01081085205078125, -0.032867431640625, 0.01397705078125, 0.045928955078125, -0.01335906982421875, -0.01352691650390625, 0.026153564453125, 0.00203704833984375, 0.05352783203125, -0.01041412353515625, -0.0546875, -0.00905609130859375, -0.036865234375, -0.00623321533203125, -0.048065185546875, -0.01433563232421875, -0.062042236328125, -0.041595458984375, 0.0018711090087890625, -0.054931640625, -0.042877197265625, 0.0465087890625, 0.0126800537109375, 0.002696990966796875, 0.0090179443359375, -0.01187896728515625, -0.021209716796875, -0.00490570068359375, 0.01412200927734375, 0.0279083251953125, 0.030517578125, 0.0248260498046875, -0.0256195068359375, -0.0116119384765625, 0.036041259765625, -0.02020263671875, -0.03253173828125, -0.040496826171875, -0.0113067626953125, 0.00588226318359375, -0.036163330078125, 0.016845703125, -0.00919342041015625, 0.0098724365234375, 0.0167999267578125, 0.00493621826171875, 0.0266571044921875, 0.00713348388671875, -0.0721435546875, 0.023651123046875, -0.0022792816162109375, 0.02276611328125, 0.006175994873046875, 0.0156402587890625, -0.00019562244415283203, -0.0042724609375, -0.0173187255859375, -0.0208740234375, 0.01560211181640625, 0.0034542083740234375, 0.01113128662109375, -0.02056884765625, -0.0001468658447265625, 0.0192718505859375, -0.009918212890625, 0.0261688232421875, 0.01250457763671875, -0.005123138427734375, -0.005420684814453125, -0.02532958984375, -0.027435302734375, -0.01194000244140625, -0.007015228271484375, 0.06292724609375, 0.0264129638671875, 0.0391845703125, 0.04010009765625, -0.044677734375, 0.03973388671875, 0.00601959228515625, -0.0032787322998046875, 0.00484466552734375, -0.0106353759765625, -0.0031585693359375, -0.00231170654296875, 0.0194549560546875, 0.013702392578125, 0.00359344482421875, 0.002685546875, 0.01580810546875, -0.01532745361328125, -0.01030731201171875, -0.0024738311767578125, -0.0772705078125, -0.0023326873779296875, 0.047454833984375, 0.0313720703125, 0.019561767578125, 0.0007829666137695312, 0.0168609619140625, 0.05615234375, -0.019775390625, 0.00009399652481079102, -0.007213592529296875, 0.0095672607421875, 0.0198211669921875, 0.010498046875, -0.0208892822265625, 0.016387939453125, -0.0643310546875, -0.0050048828125, 0.020263671875, -0.034759521484375, -0.03363037109375, -0.0215911865234375, 0.01922607421875, -0.005725860595703125, -0.061737060546875, -0.01326751708984375, -0.0222015380859375, 0.07952880859375, -0.0253448486328125, 0.0212860107421875, 0.003383636474609375, -0.05291748046875, 0.0160064697265625, 0.031005859375, -0.0225372314453125, -0.01678466796875, -0.006961822509765625, 0.01033782958984375, -0.007503509521484375, -0.014251708984375, 0.013946533203125, -0.0298004150390625, -0.0164947509765625, 0.00004494190216064453, 0.032257080078125, -0.00897979736328125, 0.0038852691650390625, -0.01995849609375, -0.02044677734375, 0.02630615234375, 0.0452880859375, 0.04132080078125, -0.00630950927734375, 0.0133819580078125, 0.052581787109375, -0.00720977783203125, 0.0611572265625, 0.0032291412353515625, -0.01538848876953125, -0.0006866455078125, -0.01204681396484375, 0.01202392578125, -0.0175323486328125, 0.01416778564453125, 0.036712646484375, -0.0078277587890625, 0.00006860494613647461, -0.01515960693359375, 0.0158538818359375, -0.0037021636962890625, 0.003253936767578125, -0.0195465087890625, -0.060638427734375, 0.005161285400390625, -0.0015268325805664062, 0.0190277099609375, 0.039886474609375, -0.0057830810546875, -0.032073974609375, -0.007266998291015625, 0.01277923583984375, -0.043853759765625, -0.056060791015625, 0.059722900390625, -0.014678955078125, -0.0188751220703125, -0.0093994140625, -0.0230865478515625, -0.0308074951171875, -0.01079559326171875, -0.02105712890625, 0.060638427734375, -0.035858154296875, -0.09613037109375, -0.05535888671875, -0.10992431640625, -0.048309326171875, -0.01488494873046875, -0.0006308555603027344, -0.01454925537109375, 0.0906982421875, -0.0022602081298828125, -0.0186614990234375, -0.0081024169921875, -0.027618408203125, 0.01021575927734375, -0.00716400146484375, 0.00809478759765625, -0.036041259765625, 0.029632568359375, -0.01511383056640625, 0.044281005859375, 0.036468505859375, -0.0115814208984375, -0.0034656524658203125, -0.018707275390625, -0.0267181396484375, -0.0233154296875, 0.050384521484375, 0.03131103515625, -0.05279541015625, -0.0220489501953125, -0.07867431640625, -0.03826904296875, 0.01025390625, -0.054168701171875, 0.00832366943359375, 0.044281005859375, -0.0088043212890625, -0.016387939453125, -0.0060577392578125, -0.025482177734375, -0.0195159912109375, -0.044219970703125, -0.04876708984375, 0.032623291015625, 0.014617919921875, 0.033935546875, 0.058441162109375, 0.007293701171875, -0.0279541015625, 0.01367950439453125, 0.01377105712890625, -0.0017547607421875, -0.0031585693359375, 0.0196075439453125, -0.018035888671875, -0.0252838134765625, 0.06689453125, 0.03582763671875, 0.0108489990234375, -0.022857666015625, -0.04364013671875, -0.0120849609375, 0.07049560546875, -0.0266265869140625, -0.03228759765625, -0.0005397796630859375, 0.0230865478515625, -0.051055908203125, -0.033782958984375, 0.0067901611328125, -0.00830841064453125, -0.047271728515625, 0.00704193115234375, -0.0016336441040039062, -0.0059356689453125, -0.0498046875, 0.058380126953125, -0.03472900390625, -0.02056884765625, 0.012237548828125, 0.01885986328125, -0.01515960693359375, 0.0300445556640625, -0.0226898193359375, 0.0088043212890625, -0.006793975830078125, -0.0119781494140625, -0.0162506103515625, -0.0244598388671875, 0.0300445556640625, 0.01483917236328125, 0.015899658203125, -0.05584716796875, -0.003265380859375, 0.02215576171875, -0.0002104043960571289, 0.028167724609375, -0.01073455810546875, -0.00353240966796875, -0.012939453125, 0.0197601318359375, 0.009765625, 0.00860595703125, -0.001529693603515625, 0.00795745849609375, -0.03839111328125, 0.0190887451171875, -0.00443267822265625, -0.02484130859375, 0.034912109375, -0.046478271484375, -0.0721435546875, -0.03216552734375, 0.052093505859375, -0.010040283203125, 0.0081329345703125, 0.0208587646484375, -0.0010099411010742188, -0.031219482421875, 0.06866455078125, 0.049468994140625, 0.005352020263671875, -0.0193634033203125, 0.08599853515625, 0.0183258056640625, -0.04705810546875, 0.01087188720703125, 0.01364898681640625, 0.036224365234375, -0.038299560546875, 0.0296173095703125, -0.0126190185546875, -0.0291290283203125, 0.104736328125, -0.01690673828125, 0.038909912109375, -0.0209503173828125, 0.0165252685546875, 0.00440216064453125, -0.0477294921875, 0.04913330078125, 0.0242156982421875, -0.014678955078125, 0.054931640625, 0.006244659423828125, -0.033355712890625, 0.016204833984375, 0.02813720703125, -0.0238494873046875, 0.007232666015625, -0.0374755859375, 0.00848388671875, 0.006732940673828125, -0.0277557373046875, 0.035125732421875, 0.017822265625, -0.0022983551025390625, -0.0191497802734375, -0.0097808837890625, 0.01116180419921875, 0.0095672607421875, 0.01250457763671875, -0.0306854248046875, 0.0154876708984375, 0.008758544921875, -0.017059326171875, 0.01448822021484375, 0.0131683349609375, -0.0264129638671875, 0.0240631103515625, -0.0139007568359375, -0.03057861328125, 0.04327392578125, 0.034149169921875, -0.038543701171875, 0.021820068359375, 0.060516357421875, -0.00887298583984375, 0.02227783203125, -0.002918243408203125, -0.053985595703125, 0.01003265380859375, -0.03271484375, 0.0222930908203125, 0.0360107421875, -0.01064300537109375, 0.007205963134765625, 0.06866455078125, 0.0212860107421875, 0.0287322998046875, -0.03338623046875, -0.0171966552734375, 0.0025768280029296875, -0.006252288818359375, 0.03765869140625, -0.0000584721565246582, 0.0006246566772460938, -0.034912109375, 0.030059814453125, -0.03668212890625, 0.01113128662109375, -0.0019235610961914062, 0.037872314453125, -0.0083465576171875, -0.035797119140625, 0.0223236083984375, -0.039276123046875, -0.003322601318359375, -0.0102081298828125, -0.04913330078125, -0.034698486328125, -0.0223388671875, 0.0235443115234375, 0.0499267578125, -0.003978729248046875, -0.0207061767578125, 0.007167816162109375, -0.04412841796875, 0.029296875, -0.0103607177734375, 0.01454925537109375, -0.00618743896484375, -0.0223236083984375, 0.035614013671875, -0.005580902099609375, 0.0035762786865234375, -0.06298828125, -0.0176239013671875, -0.0330810546875, -0.017242431640625, 0.0767822265625, -0.0274505615234375, 0.032012939453125, -0.05145263671875, 0.0003657341003417969, 0.01325225830078125, 0.004268646240234375, 0.05706787109375, 0.034637451171875, -0.0665283203125, 0.0128326416015625, -0.048370361328125, -0.0036869049072265625, -0.06964111328125, -0.08160400390625, -0.034942626953125, 0.00684356689453125, -0.013092041015625, 0.040130615234375, 0.006084442138671875, 0.04632568359375, 0.0118560791015625, -0.01313018798828125, -0.05157470703125, 0.056549072265625, 0.00472259521484375, 0.052886962890625, -0.0003859996795654297, 0.022857666015625, 0.006114959716796875, 0.0260772705078125, -0.0303192138671875, -0.01096343994140625, 0.0033168792724609375, -0.01708984375, 0.00284576416015625, -0.0164031982421875, 0.004894256591796875, 0.00029778480529785156, 0.07568359375, 0.00867462158203125, 0.00811767578125, -0.01065826416015625, 0.0164794921875, -0.0168914794921875, -0.019195556640625, -0.031463623046875, -0.048828125, 0.03466796875, 0.01308441162109375, -0.0262603759765625, -0.034637451171875, -0.03155517578125, 0.0293121337890625, 0.0161590576171875, 0.0071563720703125, -0.0391845703125, -0.06500244140625, 0.055877685546875, 0.11590576171875, 0.02081298828125, 0.0638427734375, 0.027130126953125, 0.01953125, 0.0201873779296875, 0.0270843505859375, 0.042694091796875, -0.0207366943359375, 0.056915283203125, 0.0009703636169433594, -0.0019969940185546875, 0.0234375, -0.031951904296875, 0.006153106689453125, 0.037017822265625, 0.06793212890625, -0.0123291015625, -0.005504608154296875, 0.042266845703125, -0.0229339599609375, -0.004425048828125, -0.007205963134765625, -0.026641845703125, -0.058349609375, 0.0255279541015625, -0.005523681640625, -0.036865234375, -0.00907135009765625, 0.01052093505859375, -0.00853729248046875, -0.0287628173828125, -0.00200653076171875, 0.005496978759765625, -0.04827880859375, 0.057220458984375, 0.026641845703125, -0.00939178466796875, -0.01495361328125, 0.018157958984375, 0.005573272705078125, -0.027435302734375, -0.04486083984375, 0.0142974853515625, -0.01385498046875, -0.0307769775390625, -0.0147857666015625, 0.0171356201171875, 0.048980712890625, 0.043487548828125, 0.0213623046875, -0.0173187255859375, 0.01812744140625, 0.033172607421875, 0.00555419921875, -0.038055419921875, 0.001697540283203125, 0.037261962890625, -0.027435302734375, 0.0276947021484375, 0.0132293701171875, -0.023651123046875, 0.00434112548828125, 0.0290985107421875, 0.06304931640625, -0.0198211669921875, -0.0239105224609375, 0.031829833984375, 0.02716064453125, -0.0016384124755859375, 0.00966644287109375, 0.0596923828125, -0.04547119140625, -0.041168212890625, 0.031707763671875, -0.051971435546875, -0.04901123046875, -0.0157318115234375, -0.07843017578125, 0.098876953125, 0.0306396484375, 0.045867919921875, 0.00940704345703125, 0.028472900390625, -0.052490234375, -0.00860595703125, -0.037628173828125, 0.0667724609375, 0.054840087890625, 0.055877685546875, -0.06036376953125, -0.023223876953125, 0.0178985595703125, 0.0540771484375, 0.037261962890625, -0.00925445556640625, 0.05316162109375, 0.01116943359375, 0.0877685546875, 0.043792724609375, -0.0165863037109375, -0.036712646484375, 0.03753662109375, 0.00933074951171875, 0.007289886474609375, -0.01448822021484375, 0.0298614501953125, -0.07098388671875, 0.0191192626953125, 0.046478271484375, 0.007415771484375, -0.002986907958984375, 0.01558685302734375, -0.01439666748046875, -0.052642822265625, 0.003498077392578125, 0.028564453125, -0.0147857666015625, -0.017059326171875, 0.0311737060546875, -0.0033779144287109375, 0.044342041015625, -0.01104736328125, -0.01375579833984375, 0.0438232421875, 0.0195465087890625, 0.0018873214721679688, 0.031280517578125, 0.0017852783203125, 0.052215576171875, -0.02886962890625, -0.0182647705078125, 0.0022983551025390625, 0.032989501953125, 0.08197021484375, 0.032928466796875, 0.030364990234375, -0.057342529296875, -0.01473236083984375, 0.05364990234375, 0.09173583984375, -0.050872802734375, -0.01953125, 0.01036834716796875, 0.0304718017578125, 0.02593994140625, -0.0137939453125, 0.056854248046875, -0.0078277587890625, 0.0254058837890625, -0.03564453125, 0.005374908447265625, 0.034423828125, 0.0019664764404296875, 0.00743865966796875, -0.0008602142333984375, -0.0240478515625, 0.020538330078125, -0.056549072265625, 0.0026721954345703125, 0.00789642333984375, 0.08148193359375, 0.031707763671875, 0.050140380859375, -0.034393310546875, -0.05029296875, -0.025787353515625, 0.042572021484375, -0.00922393798828125, 0.028076171875, -0.00485992431640625, 0.00508880615234375, -0.037628173828125, 0.0264434814453125, -0.0294189453125, 0.001758575439453125, 0.01464080810546875, -0.0042266845703125, -0.06298828125, -0.019195556640625, -0.00856781005859375, -0.057525634765625, 0.040618896484375, -0.031341552734375, 0.0139007568359375, -0.02618408203125, -0.026885986328125, -0.01557159423828125, 0.00937652587890625, 0.02947998046875, -0.0098419189453125, 0.0239410400390625, -0.0004086494445800781, -0.0236968994140625, -0.00574493408203125, -0.042877197265625, 0.0289154052734375, -0.0020885467529296875, -0.0169525146484375, -0.006282806396484375, -0.005535125732421875, -0.04254150390625, 0.0097503662109375, 0.038818359375, -0.00914764404296875, 0.0192413330078125, -0.0255279541015625, 0.0093841552734375, -0.01580810546875, -0.021514892578125, -0.0024013519287109375, -0.033477783203125, 0.01003265380859375, -0.010894775390625, -0.031524658203125, -0.0247039794921875, -0.0142669677734375, 0.03973388671875, 0.047119140625, -0.01285552978515625, 0.015106201171875, 0.036285400390625, -0.01629638671875, 0.033966064453125, -0.02978515625, -0.01390838623046875, 0.035369873046875, 0.03741455078125, 0.016815185546875, -0.031951904296875, -0.019561767578125, 0.058502197265625, 0.040191650390625, -0.0008425712585449219, 0.050872802734375, 0.004367828369140625, 0.006183624267578125, -0.035491943359375, 0.05963134765625, 0.002857208251953125, -0.05462646484375, -0.0460205078125, 0.00942230224609375, 0.047760009765625, 0.091552734375, -0.003322601318359375, 0.0245208740234375, 0.02325439453125, -0.00856781005859375, 0.030914306640625, -0.0113372802734375, 0.03167724609375, 0.03350830078125, -0.0021209716796875, -0.03997802734375, 0.01532745361328125, -0.01271820068359375, -0.0189971923828125, 0.0164947509765625, 0.024993896484375, -0.00861358642578125, -0.03302001953125, 0.00780487060546875, 0.016876220703125, 0.049072265625, -0.01450347900390625, 0.01209259033203125, 0.0016422271728515625, 0.0078277587890625, -0.005809783935546875, -0.0284881591796875, -0.024749755859375, -0.038177490234375, -0.0005998611450195312, 0.03729248046875, -0.03570556640625, -0.018798828125, -0.08966064453125, -0.017425537109375, 0.03228759765625, -0.019256591796875, 0.03564453125, -0.032562255859375, -0.04644775390625, -0.00756072998046875, -0.006175994873046875, -0.027435302734375, -0.006633758544921875, 0.0171966552734375, -0.0188751220703125, 0.0135345458984375, -0.058685302734375, -0.028900146484375, -0.028106689453125, 0.022979736328125, 0.05706787109375, -0.01290130615234375, 0.0213165283203125, -0.004001617431640625, -0.010986328125, 0.06341552734375, -0.064697265625, -0.031158447265625, 0.01873779296875, -0.0012769699096679688, -0.031768798828125, -0.06390380859375, 0.004302978515625, -0.04852294921875, 0.01708984375, -0.0211334228515625, -0.00608062744140625, 0.00464630126953125, -0.042022705078125, -0.06732177734375, 0.060455322265625, -0.02508544921875, -0.029876708984375, -0.0004925727844238281, 0.0045318603515625, -0.005542755126953125, 0.0026645660400390625, 0.00191497802734375, -0.03363037109375, -0.0021038055419921875, 0.01361846923828125, 0.02264404296875, 0.0005364418029785156, 0.043243408203125, -0.002628326416015625, -0.032135009765625, 0.01422119140625, 0.004779815673828125, -0.0016155242919921875, -0.043701171875, -0.0031681060791015625, 0.0131988525390625, 0.02191162109375, -0.017669677734375, -0.03851318359375, 0.040069580078125, 0.0220947265625, 0.0056610107421875, 0.0189361572265625, -0.0295867919921875, 0.007625579833984375, 0.04180908203125, 0.04193115234375, 0.019134521484375, -0.0199127197265625, 0.02166748046875, -0.0190582275390625, -0.042449951171875, -0.0177459716796875, 0.028167724609375, -0.07391357421875, -0.02801513671875, 0.03631591796875, 0.0139007568359375, 0.013458251953125, -0.046600341796875, -0.00032138824462890625, -0.0234832763671875, -0.002124786376953125, -0.004795074462890625, 0.0008988380432128906, -0.05328369140625, 0.00522613525390625, -0.0018930435180664062, -0.0024890899658203125, -0.007793426513671875, 0.050262451171875, -0.01390838623046875, 0.02716064453125, -0.005069732666015625, 0.0232086181640625, -0.060638427734375, 0.003124237060546875, -0.00476837158203125, 0.054779052734375, -0.030242919921875, -0.021881103515625, -0.004039764404296875, 0.0177154541015625, -0.020843505859375, 0.016265869140625, 0.002704620361328125, 0.03948974609375, -0.004520416259765625, 0.059539794921875, -0.02001953125, -0.0675048828125, -0.027191162109375, 0.007404327392578125, -0.02880859375, 0.01544952392578125, 0.00921630859375, -0.0202789306640625, 0.001186370849609375, 0.0000040531158447265625, 0.0246734619140625, -0.06072998046875, 0.046875, 0.0283050537109375, 0.022796630859375, 0.04144287109375 ]
1792cc564e3f9d1ffeff79bf5cf2e72b6fd881d8
Wordpress Stackexchange Q: How to call a plugin function from front end form I have a page template having a form which further have 3 input fields and and a submit button. I have a written a function in a plugin which inserts the retrieved values in database. I am trying to figure out what to write in action attribute of the form, so that when user clicks the submit button, the function gets executed? A: Output The Form Can be done via Shortcode API. What Should Be Set on Form Action Leave it blank <form action="">. Make sure you avoid using reserved name as form field name like name or p. Otherwise your form submission will hit 404. How Can We Validate or Process The Form? Hook into template_redirect. add_action( 'template_redirect', 'wpse149613_form_process' ); function wpse149613_form_process(){ if(!isset($_POST['submit'])) // assuming you're using POST and submit button name is 'submit' return; // Validate the form, verify nonce // process form } Hope it makes sense. This is how I usually handle form submission.
Q: How to call a plugin function from front end form I have a page template having a form which further have 3 input fields and and a submit button. I have a written a function in a plugin which inserts the retrieved values in database. I am trying to figure out what to write in action attribute of the form, so that when user clicks the submit button, the function gets executed? A: Output The Form Can be done via Shortcode API. What Should Be Set on Form Action Leave it blank <form action="">. Make sure you avoid using reserved name as form field name like name or p. Otherwise your form submission will hit 404. How Can We Validate or Process The Form? Hook into template_redirect. add_action( 'template_redirect', 'wpse149613_form_process' ); function wpse149613_form_process(){ if(!isset($_POST['submit'])) // assuming you're using POST and submit button name is 'submit' return; // Validate the form, verify nonce // process form } Hope it makes sense. This is how I usually handle form submission. A: Here's another post! that can help you. Basically you need to specify admin_url( 'admin-post.php' ) as the action for the form and place a hidden input specifying a custom action. Then you can register that action in your plugin so you can process the form information. Example: <form action="<?=admin_url( 'admin-post.php' ) ?>" method="POST"> <!-- your inputs --> <input type="hidden" name="action" value="myplugin_mycustomaction"/> <input type="submit" value="Send"/> </form> Then in your PHP plugin can place the function that process that form this way add_action( 'admin_post_nopriv_myplugin_mycustomaction',array( "class_that_owns_that_function", 'yourmethod' ) ); public function yourmethod() { // Do what you want with $_POST variables } If the method is in the same class you can use $this instead of the name of owns the function.
wordpress
{ "language": "en", "length": 289, "provenance": "stackexchange_00019.jsonl.gz:446137", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149613" }
[ 0.0596923828125, 0.029541015625, -0.037994384765625, -0.030242919921875, 0.03973388671875, -0.031463623046875, 0.02008056640625, -0.023773193359375, 0.0166473388671875, -0.0081329345703125, -0.0133819580078125, -0.016357421875, -0.039947509765625, -0.046844482421875, -0.0074005126953125, -0.04766845703125, 0.03765869140625, -0.0060882568359375, 0.049224853515625, -0.003376007080078125, 0.0126495361328125, 0.0447998046875, -0.0074615478515625, 0.020416259765625, 0.0254058837890625, -0.01467132568359375, 0.06317138671875, 0.004547119140625, 0.00859832763671875, -0.0023479461669921875, 0.02020263671875, -0.026031494140625, 0.01837158203125, 0.0227813720703125, -0.01268768310546875, 0.03460693359375, 0.0296478271484375, 0.0082855224609375, 0.003673553466796875, 0.039520263671875, 0.06488037109375, -0.039764404296875, -0.051422119140625, 0.034698486328125, -0.042327880859375, -0.055267333984375, 0.0762939453125, -0.0088043212890625, -0.031097412109375, 0.053497314453125, 0.0195770263671875, -0.002197265625, 0.0309295654296875, -0.01178741455078125, 0.01218414306640625, 0.0059967041015625, -0.06396484375, 0.0165863037109375, 0.0235595703125, 0.0966796875, 0.00978851318359375, -0.027069091796875, -0.01558685302734375, -0.0826416015625, 0.032684326171875, 0.004512786865234375, 0.0160064697265625, 0.029022216796875, 0.0139312744140625, 0.047515869140625, -0.013916015625, -0.0267181396484375, -0.0100860595703125, 0.0203399658203125, -0.0161895751953125, -0.043548583984375, 0.0548095703125, 0.00656890869140625, -0.00884246826171875, 0.0281829833984375, -0.0124359130859375, -0.03533935546875, -0.01226043701171875, -0.0005741119384765625, 0.00002276897430419922, 0.04962158203125, -0.015716552734375, -0.0048370361328125, -0.03369140625, -0.032623291015625, -0.0213165283203125, -0.01548004150390625, -0.05023193359375, 0.01102447509765625, 0.00018358230590820312, -0.029296875, 0.004421234130859375, -0.00849151611328125, 0.0251922607421875, 0.0156402587890625, 0.036834716796875, -0.0697021484375, 0.04498291015625, -0.024688720703125, -0.00604248046875, 0.0792236328125, 0.0301666259765625, -0.0016202926635742188, -0.0197906494140625, -0.025482177734375, 0.00952911376953125, -0.043548583984375, -0.027862548828125, -0.038848876953125, -0.0068817138671875, 0.0149688720703125, -0.044097900390625, 0.004932403564453125, 0.011627197265625, -0.01042938232421875, 0.002315521240234375, 0.004764556884765625, 0.031768798828125, -0.04974365234375, 0.0017147064208984375, -0.02777099609375, -0.041839599609375, -0.0312347412109375, 0.0065460205078125, -0.00445556640625, -0.0265350341796875, 0.037200927734375, 0.059326171875, -0.00658416748046875, -0.01329803466796875, -0.00678253173828125, 0.01248931884765625, 0.00931549072265625, 0.004116058349609375, -0.004169464111328125, 0.00949859619140625, -0.0340576171875, -0.027313232421875, 0.0199127197265625, 0.01334381103515625, 0.021087646484375, 0.0168609619140625, 0.0079345703125, -0.0191650390625, -0.05694580078125, 0.0188751220703125, -0.02752685546875, 0.0284271240234375, 0.00646209716796875, 0.007137298583984375, 0.0167236328125, 0.0092620849609375, -0.0011186599731445312, -0.0029392242431640625, -0.004093170166015625, 0.01317596435546875, 0.01502227783203125, 0.021697998046875, -0.0516357421875, -0.0565185546875, -0.039794921875, -0.0440673828125, -0.008636474609375, 0.026123046875, 0.029296875, -0.01708984375, 0.017364501953125, -0.0137481689453125, 0.0263214111328125, 0.01224517822265625, 0.023681640625, -0.01157379150390625, 0.04400634765625, 0.017364501953125, 0.0168609619140625, 0.0124053955078125, -0.024261474609375, 0.08197021484375, -0.0005426406860351562, -0.0406494140625, 0.04931640625, 0.0193939208984375, 0.06494140625, -0.017333984375, 0.01751708984375, 0.005771636962890625, 0.038177490234375, 0.00872802734375, 0.01514434814453125, 0.007640838623046875, -0.0528564453125, -0.018829345703125, -0.0238037109375, -0.01555633544921875, 0.0106201171875, 0.0183563232421875, 0.0132904052734375, 0.01380157470703125, 0.021240234375, 0.002777099609375, 0.01593017578125, -0.005584716796875, 0.006107330322265625, -0.00035071372985839844, 0.0105133056640625, 0.01531219482421875, 0.0138702392578125, -0.0291595458984375, -0.00836181640625, -0.00923919677734375, 0.0225830078125, -0.044097900390625, 0.01438140869140625, -0.0165863037109375, 0.069580078125, -0.036529541015625, -0.0220794677734375, -0.042510986328125, -0.054229736328125, -0.001811981201171875, -0.016998291015625, -0.0181884765625, -0.01088714599609375, -0.04754638671875, 0.00647735595703125, -0.029693603515625, 0.032989501953125, 0.03656005859375, 0.0521240234375, -0.0172576904296875, -0.00665283203125, -0.01351165771484375, -0.033966064453125, -0.005260467529296875, 0.033233642578125, 0.0159149169921875, 0.0215911865234375, 0.0015392303466796875, 0.048614501953125, 0.02978515625, -0.022979736328125, -0.0018644332885742188, 0.0236053466796875, 0.050140380859375, 0.074951171875, -0.053131103515625, 0.0001976490020751953, 0.0212249755859375, -0.053680419921875, 0.03521728515625, 0.04156494140625, -0.046295166015625, -0.058197021484375, -0.00955963134765625, -0.00444793701171875, 0.021484375, -0.0845947265625, -0.04620361328125, -0.0284881591796875, 0.0238800048828125, 0.01271820068359375, 0.01036834716796875, 0.01123809814453125, -0.050506591796875, 0.02874755859375, 0.0411376953125, 0.0020008087158203125, -0.0128631591796875, 0.00830841064453125, 0.006320953369140625, -0.0423583984375, -0.02374267578125, 0.0157318115234375, -0.025543212890625, -0.00730133056640625, -0.00545501708984375, 0.050018310546875, -0.0276336669921875, -0.024505615234375, -0.01450347900390625, -0.0677490234375, -0.0020465850830078125, 0.00875091552734375, 0.05865478515625, 0.01690673828125, 0.040008544921875, -0.025146484375, -0.047576904296875, 0.060089111328125, 0.02764892578125, -0.0594482421875, -0.01396942138671875, 0.01215362548828125, 0.0177459716796875, -0.032012939453125, 0.003879547119140625, 0.03790283203125, -0.031585693359375, 0.0021457672119140625, 0.0028018951416015625, -0.0191650390625, 0.00519561767578125, 0.024810791015625, 0.0004839897155761719, -0.03448486328125, -0.0235443115234375, 0.00153350830078125, 0.0245361328125, 0.0853271484375, -0.033477783203125, -0.07049560546875, -0.022979736328125, 0.037994384765625, -0.07452392578125, -0.043609619140625, -0.01093292236328125, -0.07806396484375, 0.04058837890625, -0.0308837890625, -0.01702880859375, -0.0215606689453125, 0.01020050048828125, 0.0214691162109375, 0.0045623779296875, 0.012237548828125, -0.018096923828125, 0.0055694580078125, -0.0438232421875, -0.00586700439453125, 0.0033321380615234375, 0.010711669921875, 0.004001617431640625, 0.0474853515625, -0.00385284423828125, -0.0657958984375, -0.0164031982421875, -0.0176239013671875, -0.02362060546875, 0.00017082691192626953, 0.009552001953125, -0.034454345703125, 0.00688934326171875, 0.007640838623046875, 0.00048279762268066406, 0.00806427001953125, 0.0002677440643310547, -0.01776123046875, -0.00911712646484375, -0.0570068359375, -0.0008487701416015625, 0.0183258056640625, -0.0158843994140625, -0.0347900390625, 0.03643798828125, -0.06402587890625, 0.01148223876953125, -0.0025157928466796875, -0.04547119140625, -0.05999755859375, 0.0224151611328125, -0.01161956787109375, -0.00966644287109375, -0.02044677734375, 0.0350341796875, 0.017608642578125, 0.0158233642578125, 0.021942138671875, -0.004276275634765625, -0.0137176513671875, 0.02142333984375, -0.03607177734375, 0.064208984375, 0.011810302734375, -0.0090484619140625, 0.026519775390625, 0.026336669921875, 0.017120361328125, 0.01319122314453125, -0.01273345947265625, -0.07049560546875, 0.04718017578125, -0.0251617431640625, -0.037841796875, -0.01861572265625, -0.01641845703125, 0.0274200439453125, 0.071533203125, -0.0024261474609375, -0.0037078857421875, -0.007633209228515625, -0.004161834716796875, -0.0151824951171875, -0.0259552001953125, -0.039825439453125, -0.004734039306640625, -0.05706787109375, -0.005687713623046875, -0.0180206298828125, -0.00449371337890625, 0.0029850006103515625, -0.00019073486328125, -0.0167083740234375, -0.041900634765625, 0.0182037353515625, -0.02777099609375, 0.00910186767578125, -0.0101318359375, -0.021881103515625, -0.0261993408203125, -0.00098419189453125, -0.020355224609375, -0.027618408203125, -0.0030918121337890625, -0.01309967041015625, 0.039581298828125, 0.044342041015625, -0.056304931640625, 0.007312774658203125, 0.03436279296875, 0.0222320556640625, 0.04736328125, -0.00824737548828125, 0.0150909423828125, -0.016387939453125, -0.048614501953125, 0.00363922119140625, -0.028076171875, 0.021484375, 0.0282745361328125, -0.014312744140625, 0.018402099609375, -0.0419921875, -0.03387451171875, -0.0010967254638671875, -0.04766845703125, -0.01385498046875, -0.04217529296875, -0.0190887451171875, -0.00960540771484375, -0.01326751708984375, -0.00841522216796875, -0.015869140625, -0.00820159912109375, 0.026580810546875, -0.048431396484375, -0.00609588623046875, 0.0181884765625, 0.06982421875, 0.00431060791015625, 0.00649261474609375, -0.03533935546875, -0.004608154296875, 0.0338134765625, 0.01258087158203125, -0.0112457275390625, -0.017242431640625, -0.0491943359375, 0.05810546875, 0.0124053955078125, 0.0382080078125, -0.03948974609375, 0.04833984375, 0.01348876953125, -0.005260467529296875, 0.02252197265625, 0.033782958984375, -0.0200347900390625, 0.0249481201171875, -0.0155029296875, -0.0103912353515625, -0.0157318115234375, 0.0083465576171875, -0.0183258056640625, 0.03692626953125, 0.004974365234375, -0.03521728515625, -0.0024623870849609375, -0.048492431640625, 0.026611328125, 0.041900634765625, -0.0174560546875, 0.021514892578125, 0.0035247802734375, -0.025115966796875, 0.0247650146484375, 0.0108184814453125, 0.01081085205078125, 0.022247314453125, -0.0100555419921875, -0.03045654296875, -0.0010042190551757812, -0.0070648193359375, 0.030517578125, 0.006206512451171875, -0.0223388671875, -0.0276031494140625, -0.0187835693359375, -0.0218505859375, -0.024444580078125, 0.007724761962890625, 0.0224151611328125, 0.0296630859375, -0.03363037109375, -0.004161834716796875, 0.0297698974609375, 0.00033855438232421875, -0.038330078125, -0.0243377685546875, 0.0134735107421875, -0.0228729248046875, -0.0006093978881835938, 0.030853271484375, -0.01114654541015625, 0.008148193359375, -0.004302978515625, 0.043792724609375, 0.0246734619140625, 0.0014858245849609375, 0.0294342041015625, 0.0019178390502929688, 0.0023174285888671875, -0.04681396484375, -0.0166778564453125, -0.042236328125, 0.007358551025390625, 0.02142333984375, 0.0191650390625, -0.00814056396484375, -0.019561767578125, 0.026580810546875, 0.007442474365234375, 0.003570556640625, 0.00379180908203125, 0.00415802001953125, -0.004695892333984375, -0.0158538818359375, 0.032379150390625, 0.05426025390625, 0.00991058349609375, 0.0312042236328125, 0.0178680419921875, 0.056182861328125, 0.05181884765625, -0.00457000732421875, 0.007556915283203125, 0.004543304443359375, 0.003509521484375, 0.0240936279296875, -0.0012712478637695312, -0.018524169921875, -0.021209716796875, 0.006298065185546875, -0.0258636474609375, -0.01739501953125, 0.05706787109375, -0.056915283203125, 0.033966064453125, -0.02935791015625, 0.01422882080078125, -0.00997161865234375, 0.0006728172302246094, 0.07135009765625, 0.0606689453125, -0.06158447265625, -0.02593994140625, -0.0134124755859375, -0.01451873779296875, -0.010162353515625, 0.00606536865234375, -0.030670166015625, 0.0302886962890625, -0.0298919677734375, 0.01678466796875, -0.01093292236328125, 0.01849365234375, 0.04046630859375, -0.00030040740966796875, -0.05419921875, -0.002758026123046875, 0.01148223876953125, 0.057708740234375, -0.02276611328125, 0.04766845703125, 0.01320648193359375, 0.020965576171875, -0.03521728515625, -0.00614166259765625, -0.006130218505859375, -0.0299835205078125, -0.0163116455078125, -0.0018320083618164062, -0.016632080078125, 0.0265960693359375, 0.0572509765625, 0.005645751953125, -0.0029315948486328125, 0.003551483154296875, -0.00965118408203125, -0.023651123046875, 0.043365478515625, 0.0282440185546875, 0.0140533447265625, -0.01543426513671875, -0.052276611328125, -0.06390380859375, 0.01020050048828125, 0.00547027587890625, 0.0450439453125, -0.022247314453125, 0.0148468017578125, -0.00330352783203125, -0.0189361572265625, 0.039947509765625, 0.035797119140625, -0.0013570785522460938, 0.02923583984375, 0.0251312255859375, -0.00008416175842285156, -0.0009002685546875, 0.040740966796875, -0.007030487060546875, -0.030242919921875, 0.07757568359375, 0.0123748779296875, -0.046112060546875, 0.03509521484375, -0.05023193359375, 0.032623291015625, 0.056488037109375, 0.0682373046875, -0.103759765625, 0.0247955322265625, 0.0218658447265625, -0.00540924072265625, 0.044464111328125, -0.02142333984375, 0.00628662109375, -0.0019931793212890625, 0.037628173828125, 0.044189453125, -0.0137481689453125, 0.0271453857421875, 0.0242919921875, -0.0166473388671875, -0.0003159046173095703, 0.033660888671875, 0.00714111328125, -0.005344390869140625, -0.019744873046875, 0.00440216064453125, -0.01363372802734375, -0.020477294921875, 0.02178955078125, -0.01104736328125, -0.0181427001953125, -0.027679443359375, 0.0296173095703125, 0.018096923828125, -0.007106781005859375, -0.00737762451171875, 0.017608642578125, 0.040069580078125, 0.0426025390625, -0.00806427001953125, -0.0012884140014648438, 0.00809478759765625, 0.03826904296875, -0.0265655517578125, -0.039947509765625, -0.0026264190673828125, 0.00899505615234375, -0.055694580078125, 0.041839599609375, -0.0230712890625, -0.016693115234375, -0.00925445556640625, -0.0243377685546875, 0.0762939453125, -0.002773284912109375, -0.037139892578125, 0.01285552978515625, -0.03338623046875, -0.01134490966796875, -0.040252685546875, -0.0174713134765625, -0.061126708984375, 0.0014181137084960938, -0.0239715576171875, -0.007572174072265625, 0.0031528472900390625, -0.037567138671875, -0.10498046875, 0.10675048828125, 0.04833984375, 0.02935791015625, -0.0175933837890625, 0.031463623046875, -0.05108642578125, -0.01238250732421875, -0.045806884765625, 0.06304931640625, -0.01351165771484375, 0.0233001708984375, -0.030120849609375, 0.00982666015625, -0.002536773681640625, 0.003185272216796875, 0.035614013671875, 0.01216888427734375, -0.0306549072265625, 0.0190887451171875, 0.070556640625, 0.032867431640625, 0.0033168792724609375, 0.033203125, 0.0177001953125, -0.0123138427734375, 0.0286102294921875, -0.0159149169921875, 0.03277587890625, -0.034393310546875, 0.031646728515625, 0.0391845703125, -0.006610870361328125, -0.03912353515625, -0.037933349609375, 0.0122833251953125, -0.0158233642578125, -0.0228729248046875, -0.007080078125, 0.027984619140625, -0.04730224609375, 0.0460205078125, 0.004261016845703125, -0.027496337890625, 0.022735595703125, -0.04339599609375, 0.039398193359375, -0.0104217529296875, 0.028076171875, 0.00775146484375, 0.0197296142578125, 0.0288543701171875, -0.0374755859375, 0.004795074462890625, 0.0016279220581054688, -0.024078369140625, 0.065185546875, 0.00220489501953125, 0.0195770263671875, -0.053192138671875, -0.005710601806640625, 0.0141143798828125, 0.0572509765625, -0.045318603515625, -0.012451171875, 0.00408172607421875, 0.020904541015625, 0.01532745361328125, -0.0017795562744140625, 0.04901123046875, 0.002902984619140625, 0.0364990234375, 0.0291748046875, -0.0267181396484375, -0.0208892822265625, 0.01654052734375, -0.0017242431640625, -0.006526947021484375, 0.01448822021484375, -0.0125274658203125, -0.0074005126953125, 0.0092620849609375, -0.001953125, 0.045745849609375, -0.0182952880859375, 0.041015625, -0.057952880859375, -0.01096343994140625, -0.002719879150390625, 0.0295867919921875, 0.00992584228515625, -0.005527496337890625, 0.004741668701171875, -0.002933502197265625, -0.002208709716796875, -0.0032405853271484375, 0.03472900390625, 0.0704345703125, 0.039703369140625, 0.0187530517578125, 0.01499176025390625, 0.0171966552734375, 0.032257080078125, -0.014617919921875, -0.0200042724609375, -0.0181427001953125, -0.0167694091796875, -0.0084228515625, -0.02166748046875, 0.00516510009765625, 0.0258331298828125, -0.023162841796875, -0.0435791015625, 0.045440673828125, -0.0288543701171875, -0.02838134765625, 0.060821533203125, -0.060882568359375, 0.10101318359375, -0.0222625732421875, -0.042816162109375, -0.00989532470703125, 0.0188446044921875, -0.035919189453125, 0.0026531219482421875, 0.036407470703125, -0.057037353515625, 0.056365966796875, 0.00647735595703125, -0.048095703125, 0.050994873046875, 0.016326904296875, 0.00926971435546875, 0.02410888671875, 0.01122283935546875, -0.02349853515625, -0.0135040283203125, 0.004512786865234375, -0.022613525390625, 0.033172607421875, 0.0205078125, 0.0828857421875, -0.0379638671875, 0.03466796875, 0.0016889572143554688, 0.00673675537109375, 0.0008115768432617188, -0.017059326171875, 0.06512451171875, -0.02032470703125, -0.0134124755859375, -0.007694244384765625, -0.029266357421875, 0.03173828125, 0.017059326171875, 0.0110931396484375, 0.010040283203125, -0.006061553955078125, 0.0243072509765625, 0.0296630859375, 0.07232666015625, 0.004058837890625, -0.0220489501953125, -0.01203155517578125, -0.0147247314453125, 0.042877197265625, 0.08990478515625, 0.0252532958984375, 0.031280517578125, -0.0399169921875, 0.00939178466796875, -0.005985260009765625, -0.0406494140625, -0.01641845703125, 0.0218963623046875, -0.05572509765625, -0.00835418701171875, -0.006565093994140625, -0.0262298583984375, 0.043365478515625, -0.0229949951171875, 0.04034423828125, 0.004878997802734375, -0.0242462158203125, 0.0008411407470703125, -0.0311279296875, 0.0174713134765625, -0.01558685302734375, -0.0038890838623046875, -0.00786590576171875, 0.0157928466796875, -0.04815673828125, -0.053802490234375, -0.0178070068359375, -0.04388427734375, 0.01020050048828125, 0.0224761962890625, -0.000576019287109375, -0.018218994140625, -0.005767822265625, 0.0106201171875, 0.0009450912475585938, -0.0194091796875, -0.035369873046875, -0.0209503173828125, -0.0206756591796875, 0.0738525390625, -0.0550537109375, -0.00988006591796875, 0.0251922607421875, 0.07391357421875, -0.040435791015625, -0.01393890380859375, 0.0000667572021484375, -0.0181427001953125, -0.037139892578125, 0.0283355712890625, 0.03753662109375, -0.0221099853515625, -0.01316070556640625, 0.03973388671875, 0.0098876953125, 0.09490966796875, 0.0233154296875, -0.01470184326171875, 0.036041259765625, -0.007785797119140625, -0.0001760721206665039, -0.037994384765625, -0.012969970703125, -0.0084686279296875, 0.0171966552734375, -0.0283050537109375, -0.0117950439453125, -0.01219940185546875, -0.0509033203125, -0.0672607421875, 0.032806396484375, 0.003387451171875, -0.022613525390625, -0.044891357421875, 0.021270751953125, 0.037139892578125, -0.025146484375, -0.02490234375, -0.01302337646484375, -0.05462646484375, -0.01027679443359375, 0.005382537841796875, -0.0033817291259765625, 0.02984619140625, 0.0112152099609375, -0.07110595703125, -0.0184173583984375, -0.0257110595703125, -0.01087188720703125, 0.0384521484375, -0.035400390625, 0.050811767578125, 0.04010009765625, -0.035888671875, 0.00579071044921875, 0.006984710693359375, -0.0267791748046875, -0.0216522216796875, -0.032196044921875, -0.002635955810546875, 0.00873565673828125, 0.05816650390625, 0.041656494140625, 0.0184326171875, -0.057861328125, -0.038604736328125, -0.00890350341796875, -0.0057373046875, -0.00775146484375, 0.0172576904296875, -0.06683349609375, -0.01239776611328125, -0.00106048583984375, -0.017425537109375, -0.007396697998046875, 0.01134490966796875, -0.01380157470703125, -0.00722503662109375, 0.03118896484375, -0.021484375, 0.0338134765625, -0.0628662109375, 0.0899658203125, -0.046539306640625, -0.0175323486328125, 0.02435302734375, 0.034942626953125, 0.016632080078125, 0.01320648193359375, 0.0360107421875, 0.06903076171875, -0.0364990234375, -0.0142974853515625, 0.04058837890625, -0.0021915435791015625, -0.00632476806640625, -0.01763916015625, 0.0025177001953125, 0.0347900390625, -0.0172271728515625, 0.0090179443359375, -0.00966644287109375, 0.057647705078125, -0.01091766357421875, 0.0841064453125, -0.044281005859375, -0.0117340087890625, -0.019134521484375, 0.00797271728515625, -0.02880859375, 0.0228118896484375, 0.031829833984375, -0.02996826171875, 0.007190704345703125, 0.05072021484375, 0.0017223358154296875, 0.005680084228515625, 0.0186614990234375, 0.0115509033203125, 0.036224365234375, -0.004161834716796875 ]
c04eb587e821949d0c6b6d0db318177c1005214b
Wordpress Stackexchange Q: add_submenu_page not working I have a built a plugin which creates a custom menu like this: add_menu_page( 'Wholesale Pricing', 'Wholesale', 'manage_options', 'woo-wholesale', 'woo_wholesale_page_call'); I am now trying to add a subpage item underneath this. I have read the codex and came up with: add_submenu_page( 'woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); I am guessing this is incorrect as the submenu item isnt showing. Can anyone shed any light on this please? A: I made the same mistake as the OP as it is not intuitive how to get this working. By reading the codex on Administration Menus, I discovered the answer. The problem (for me, anyway) was to edit the $parent_slug parameter in the call to add_submenu_page(...). So, in the OP's case, you would change: add_submenu_page( 'woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); to: add_submenu_page( 'edit.php?post_type=woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' );
Q: add_submenu_page not working I have a built a plugin which creates a custom menu like this: add_menu_page( 'Wholesale Pricing', 'Wholesale', 'manage_options', 'woo-wholesale', 'woo_wholesale_page_call'); I am now trying to add a subpage item underneath this. I have read the codex and came up with: add_submenu_page( 'woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); I am guessing this is incorrect as the submenu item isnt showing. Can anyone shed any light on this please? A: I made the same mistake as the OP as it is not intuitive how to get this working. By reading the codex on Administration Menus, I discovered the answer. The problem (for me, anyway) was to edit the $parent_slug parameter in the call to add_submenu_page(...). So, in the OP's case, you would change: add_submenu_page( 'woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); to: add_submenu_page( 'edit.php?post_type=woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); A: Make sure that your add_action hook is set to admin_menu. Here's a sample code: add_action('admin_menu', 'wpse149688'); function wpse149688(){ add_menu_page( 'Wholesale Pricing', 'Wholesale', 'manage_options', 'woo-wholesale', 'woo_wholesale_page_call'); add_submenu_page( 'woo-wholesale', 'Registrations', 'Registrations', 'manage_options', 'woo-wholesale-registrations', 'wwpr_page_call' ); } Also check whether user you've logged in as has the ability to view this menu. As this menu is set using manage_options capability.
wordpress
{ "language": "en", "length": 201, "provenance": "stackexchange_00019.jsonl.gz:446153", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149688" }
[ 0.0584716796875, 0.0154571533203125, -0.00380706787109375, -0.0230560302734375, 0.0226287841796875, -0.044647216796875, 0.054656982421875, -0.031646728515625, -0.00937652587890625, 0.00409698486328125, -0.03485107421875, -0.01371002197265625, -0.028167724609375, -0.0281829833984375, 0.0093231201171875, -0.038055419921875, 0.020538330078125, -0.0004515647888183594, 0.038665771484375, -0.00038552284240722656, -0.011749267578125, 0.01544189453125, 0.0232696533203125, 0.00946044921875, 0.0333251953125, -0.0234222412109375, 0.04534912109375, -0.016357421875, 0.02850341796875, -0.01296234130859375, 0.0296478271484375, -0.0220794677734375, 0.02008056640625, 0.003780364990234375, 0.01568603515625, 0.01232147216796875, 0.019744873046875, -0.005916595458984375, 0.01776123046875, 0.00942230224609375, 0.03619384765625, -0.01438140869140625, -0.0285491943359375, 0.003635406494140625, -0.0184326171875, -0.06121826171875, 0.03997802734375, -0.0223236083984375, 0.0100555419921875, -0.056365966796875, -0.02325439453125, -0.0023288726806640625, 0.0062255859375, -0.0220947265625, -0.0203857421875, -0.01538848876953125, -0.033721923828125, 0.0241851806640625, 0.01265716552734375, 0.0433349609375, 0.006969451904296875, 0.0114288330078125, -0.01169586181640625, -0.0251922607421875, 0.029754638671875, -0.01320648193359375, -0.0156707763671875, 0.003467559814453125, -0.052490234375, 0.04693603515625, 0.057342529296875, -0.050079345703125, 0.003345489501953125, 0.026092529296875, 0.0062408447265625, -0.09515380859375, 0.01262664794921875, -0.032684326171875, 0.02215576171875, 0.04400634765625, 0.018157958984375, -0.01197052001953125, -0.00604248046875, 0.0198822021484375, -0.0313720703125, 0.0239715576171875, -0.006984710693359375, -0.01213836669921875, -0.0266876220703125, 0.0031452178955078125, -0.029022216796875, -0.03424072265625, 0.00940704345703125, 0.034912109375, -0.01959228515625, 0.0027332305908203125, 0.033477783203125, 0.062408447265625, -0.0008406639099121094, 0.0161285400390625, 0.0247802734375, -0.057281494140625, 0.060638427734375, -0.050018310546875, 0.0290985107421875, 0.045684814453125, -0.0161895751953125, 0.01763916015625, 0.0748291015625, 0.020233154296875, 0.025634765625, 0.0443115234375, 0.01025390625, -0.07354736328125, 0.012420654296875, 0.003597259521484375, 0.0006551742553710938, 0.0033473968505859375, 0.05584716796875, -0.054351806640625, 0.0142669677734375, 0.0548095703125, -0.03399658203125, -0.021514892578125, -0.0007772445678710938, 0.00021386146545410156, 0.0199127197265625, -0.0477294921875, 0.01107025146484375, -0.00191497802734375, -0.04254150390625, 0.0244293212890625, 0.0634765625, 0.0268707275390625, 0.02154541015625, -0.009613037109375, 0.00435638427734375, -0.0252227783203125, -0.0026454925537109375, -0.0016536712646484375, -0.0072479248046875, 0.013641357421875, 0.0207977294921875, -0.025634765625, 0.007724761962890625, 0.0127105712890625, 0.01375579833984375, 0.0210418701171875, 0.017669677734375, -0.00914764404296875, -0.011444091796875, -0.010467529296875, 0.0308990478515625, -0.01554107666015625, -0.0208587646484375, -0.039794921875, 0.0170745849609375, -0.036956787109375, 0.00948333740234375, -0.047454833984375, -0.0333251953125, -0.01617431640625, 0.029632568359375, -0.0899658203125, -0.06573486328125, 0.022125244140625, -0.0469970703125, -0.0178070068359375, 0.031280517578125, 0.0322265625, 0.067138671875, -0.040069580078125, -0.0112457275390625, 0.03631591796875, 0.0139312744140625, 0.01605224609375, -0.004627227783203125, 0.031768798828125, 0.0281982421875, 0.02325439453125, -0.0211181640625, -0.049774169921875, 0.072509765625, -0.036651611328125, -0.0736083984375, 0.056182861328125, -0.0033740997314453125, 0.0592041015625, 0.035369873046875, 0.01611328125, 0.027587890625, 0.0030193328857421875, -0.0479736328125, 0.0216064453125, 0.0032672882080078125, -0.01079559326171875, 0.0008697509765625, 0.01276397705078125, -0.01091766357421875, -0.00823974609375, -0.07635498046875, -0.028076171875, 0.0292510986328125, 0.0167236328125, -0.005664825439453125, 0.005306243896484375, -0.042388916015625, 0.03857421875, 0.021026611328125, -0.01168060302734375, -0.00943756103515625, -0.042144775390625, 0.0260009765625, -0.062164306640625, -0.0528564453125, -0.011749267578125, -0.0045928955078125, 0.050811767578125, -0.0013332366943359375, 0.01116943359375, 0.006214141845703125, -0.037017822265625, 0.0018291473388671875, 0.00946044921875, 0.0223236083984375, -0.005672454833984375, -0.0111541748046875, -0.0194549560546875, 0.0034313201904296875, 0.0121612548828125, 0.00241851806640625, 0.0303955078125, 0.022003173828125, -0.0200042724609375, -0.06268310546875, 0.01541900634765625, -0.0030803680419921875, 0.0012502670288085938, -0.0247039794921875, 0.04376220703125, 0.034515380859375, 0.038818359375, 0.0040740966796875, 0.01184844970703125, 0.042938232421875, -0.0751953125, -0.02496337890625, -0.003757476806640625, -0.0229644775390625, -0.01123046875, 0.08160400390625, 0.005481719970703125, 0.0089111328125, 0.0287933349609375, 0.0347900390625, -0.00948333740234375, -0.00568389892578125, -0.01468658447265625, 0.0345458984375, 0.0013332366943359375, -0.017333984375, -0.01971435546875, 0.017974853515625, -0.01338958740234375, -0.003223419189453125, 0.0293426513671875, 0.0185089111328125, 0.0053558349609375, -0.01287841796875, -0.009674072265625, 0.0255279541015625, -0.003917694091796875, -0.01153564453125, -0.03271484375, 0.0186004638671875, -0.04083251953125, -0.0523681640625, 0.039154052734375, -0.004638671875, -0.036651611328125, -0.00672149658203125, 0.0310516357421875, 0.022430419921875, -0.024261474609375, -0.03192138671875, -0.0767822265625, 0.0078277587890625, -0.008056640625, 0.008331298828125, -0.01123809814453125, 0.033172607421875, -0.0054168701171875, -0.037689208984375, 0.015869140625, 0.0037860870361328125, -0.0276031494140625, 0.05914306640625, 0.0152435302734375, 0.01049041748046875, -0.006931304931640625, 0.005908966064453125, 0.02227783203125, -0.024658203125, -0.005207061767578125, 0.0113525390625, -0.0728759765625, -0.0361328125, 0.044891357421875, 0.007770538330078125, 0.00986480712890625, -0.06243896484375, 0.06463623046875, 0.0019588470458984375, 0.0177001953125, -0.00635528564453125, -0.0293426513671875, -0.0010442733764648438, 0.0034046173095703125, -0.0293731689453125, -0.0247650146484375, -0.0288238525390625, -0.019683837890625, 0.00372314453125, 0.0219573974609375, -0.003971099853515625, -0.006824493408203125, 0.033721923828125, 0.008331298828125, -0.057647705078125, -0.039306640625, 0.0035762786865234375, -0.07464599609375, -0.0423583984375, 0.00299835205078125, 0.0198822021484375, 0.015655517578125, -0.008331298828125, 0.0290069580078125, 0.00632476806640625, -0.045989990234375, 0.0174560546875, 0.0364990234375, -0.0007839202880859375, 0.0055999755859375, 0.0245513916015625, -0.040985107421875, 0.036163330078125, -0.005077362060546875, 0.0369873046875, 0.03863525390625, -0.01287841796875, -0.00696563720703125, -0.032867431640625, -0.006374359130859375, 0.00774383544921875, -0.01064300537109375, 0.03369140625, 0.02557373046875, 0.0250244140625, -0.01399993896484375, -0.013824462890625, -0.02166748046875, -0.045196533203125, 0.01273345947265625, 0.021240234375, 0.00991058349609375, -0.004970550537109375, 0.00789642333984375, -0.0232086181640625, 0.01326751708984375, 0.0277862548828125, -0.0013942718505859375, -0.02264404296875, -0.03326416015625, -0.04766845703125, -0.00701904296875, 0.0245208740234375, -0.007366180419921875, 0.01230621337890625, 0.0197906494140625, 0.0010242462158203125, -0.012603759765625, 0.0248870849609375, -0.0158233642578125, -0.063232421875, 0.045166015625, -0.058563232421875, 0.0119476318359375, -0.077392578125, -0.01464080810546875, -0.034576416015625, 0.09356689453125, -0.0168609619140625, -0.038604736328125, -0.0182647705078125, 0.01885986328125, -0.0036144256591796875, -0.05908203125, 0.0411376953125, -0.01108551025390625, -0.037628173828125, 0.0254669189453125, -0.006641387939453125, -0.0015211105346679688, 0.00666046142578125, -0.00933837890625, -0.01180267333984375, -0.039947509765625, 0.046112060546875, -0.0372314453125, -0.01158905029296875, 0.06610107421875, -0.031951904296875, 0.0048828125, -0.0518798828125, -0.0063323974609375, -0.06866455078125, -0.01336669921875, 0.003322601318359375, 0.05133056640625, 0.0265350341796875, -0.0670166015625, 0.002086639404296875, 0.049957275390625, 0.048309326171875, 0.0209808349609375, 0.01058197021484375, -0.00945281982421875, -0.00864410400390625, -0.03814697265625, 0.00518035888671875, -0.03662109375, 0.0100860595703125, -0.0207366943359375, -0.006221771240234375, 0.034881591796875, -0.0411376953125, 0.0257720947265625, -0.038818359375, -0.0052642822265625, -0.061767578125, -0.019683837890625, 0.0023593902587890625, -0.001461029052734375, 0.005817413330078125, -0.0164642333984375, -0.01517486572265625, -0.03662109375, -0.039764404296875, -0.024932861328125, -0.01136016845703125, 0.041717529296875, -0.0004963874816894531, 0.0254364013671875, -0.0052032470703125, -0.00687408447265625, 0.01421356201171875, 0.01116943359375, -0.0218048095703125, 0.037872314453125, 0.006427764892578125, 0.01256561279296875, 0.0096435546875, -0.02374267578125, 0.044342041015625, -0.0017795562744140625, 0.01227569580078125, 0.008148193359375, 0.00447845458984375, 0.0013675689697265625, 0.00815582275390625, -0.021453857421875, 0.0287933349609375, -0.024017333984375, -0.043975830078125, -0.031829833984375, 0.08087158203125, -0.015655517578125, 0.06329345703125, -0.055389404296875, 0.006725311279296875, -0.01079559326171875, -0.0080413818359375, 0.07415771484375, 0.033782958984375, 0.002368927001953125, 0.00466156005859375, -0.01395416259765625, 0.01148223876953125, -0.0133514404296875, 0.0219879150390625, -0.0164642333984375, 0.04931640625, -0.00908660888671875, 0.00380706787109375, -0.0278167724609375, 0.0057830810546875, 0.04840087890625, 0.019622802734375, 0.0094146728515625, -0.049468994140625, 0.00646209716796875, 0.016143798828125, -0.0176239013671875, 0.029510498046875, 0.039947509765625, 0.01001739501953125, -0.0036487579345703125, -0.00971221923828125, -0.00958251953125, 0.01861572265625, -0.042022705078125, 0.0243072509765625, 0.0191192626953125, -0.01238250732421875, -0.03765869140625, 0.0653076171875, 0.0118408203125, -0.00891876220703125, -0.0002560615539550781, 0.024078369140625, -0.0016870498657226562, 0.037261962890625, 0.0167083740234375, 0.010955810546875, -0.004825592041015625, 0.0213623046875, -0.000004827976226806641, -0.0157623291015625, 0.005794525146484375, -0.0007266998291015625, 0.02252197265625, -0.00038313865661621094, -0.01593017578125, 0.0159759521484375, -0.0263519287109375, -0.020751953125, 0.019775390625, -0.038055419921875, -0.10113525390625, -0.00015306472778320312, 0.0535888671875, 0.0233154296875, -0.04412841796875, -0.024627685546875, 0.019561767578125, -0.0268096923828125, 0.00983428955078125, 0.0012483596801757812, -0.0288238525390625, 0.0011968612670898438, 0.0020618438720703125, -0.022186279296875, -0.0159912109375, 0.0271759033203125, -0.0543212890625, -0.0186614990234375, -0.03497314453125, -0.01436614990234375, 0.053314208984375, -0.036651611328125, 0.0019483566284179688, -0.0037841796875, -0.00399017333984375, -0.0223388671875, 0.005825042724609375, 0.06719970703125, 0.04339599609375, 0.012237548828125, 0.001621246337890625, -0.00873565673828125, -0.034759521484375, 0.0081024169921875, -0.024749755859375, -0.03570556640625, -0.03131103515625, -0.033447265625, -0.0017004013061523438, -0.0491943359375, -0.0303497314453125, -0.041229248046875, 0.0247802734375, 0.02716064453125, -0.0020427703857421875, 0.022247314453125, 0.057861328125, -0.035980224609375, 0.0197906494140625, 0.01287078857421875, 0.0023746490478515625, -0.0280914306640625, -0.0005893707275390625, 0.0079345703125, -0.02911376953125, -0.0341796875, -0.03265380859375, -0.014739990234375, 0.057403564453125, 0.0721435546875, -0.002712249755859375, 0.04296875, -0.0283203125, -0.0007457733154296875, -0.0256805419921875, 0.004451751708984375, -0.061065673828125, -0.016754150390625, 0.038604736328125, -0.07635498046875, -0.01384735107421875, 0.03826904296875, 0.0164947509765625, 0.028045654296875, -0.055511474609375, 0.024871826171875, 0.04400634765625, -0.041412353515625, 0.04925537109375, 0.05889892578125, 0.004703521728515625, 0.024932861328125, -0.006443023681640625, 0.009521484375, -0.004375457763671875, 0.01812744140625, 0.004688262939453125, 0.0311737060546875, 0.06024169921875, -0.006500244140625, -0.01067352294921875, 0.016326904296875, -0.0281829833984375, 0.01033782958984375, 0.10028076171875, 0.06298828125, -0.1326904296875, 0.000415802001953125, 0.01169586181640625, 0.0040130615234375, 0.0294036865234375, 0.022857666015625, -0.00864410400390625, -0.01395416259765625, 0.053680419921875, -0.0770263671875, 0.004566192626953125, 0.0234527587890625, -0.01132965087890625, -0.0262603759765625, -0.020111083984375, 0.04718017578125, 0.0293731689453125, -0.005107879638671875, 0.00279998779296875, 0.011871337890625, -0.0311279296875, 0.0158233642578125, 0.0103302001953125, -0.012115478515625, 0.0085296630859375, -0.0112152099609375, 0.0156402587890625, -0.06927490234375, 0.0028839111328125, 0.033233642578125, 0.016357421875, 0.002674102783203125, 0.052276611328125, -0.022125244140625, 0.01401519775390625, 0.022308349609375, -0.0056304931640625, 0.0166168212890625, -0.0164794921875, 0.0059967041015625, -0.0092926025390625, -0.0498046875, 0.0007181167602539062, -0.029754638671875, -0.01248931884765625, -0.00771331787109375, -0.009521484375, 0.08074951171875, -0.037994384765625, -0.0295867919921875, 0.022735595703125, 0.0180816650390625, -0.0175628662109375, -0.0029125213623046875, -0.00565338134765625, -0.030426025390625, -0.016082763671875, 0.0029735565185546875, -0.030303955078125, 0.0062103271484375, 0.00441741943359375, -0.065185546875, 0.12274169921875, -0.054229736328125, 0.0355224609375, 0.01555633544921875, 0.060943603515625, 0.0022735595703125, 0.04071044921875, -0.042266845703125, 0.042724609375, -0.00388336181640625, 0.0234222412109375, -0.0280914306640625, 0.0015554428100585938, -0.01080322265625, 0.024383544921875, 0.016082763671875, 0.00872802734375, 0.006603240966796875, 0.0288848876953125, 0.0657958984375, -0.01477813720703125, -0.0191650390625, 0.037811279296875, -0.0232391357421875, -0.035125732421875, 0.0197601318359375, -0.017578125, 0.031158447265625, -0.03680419921875, -0.012603759765625, -0.0257415771484375, 0.005840301513671875, 0.007080078125, 0.0011415481567382812, 0.0178070068359375, -0.01401519775390625, -0.0017347335815429688, 0.017059326171875, -0.0201263427734375, 0.007404327392578125, -0.00775146484375, -0.0173492431640625, 0.048004150390625, 0.00799560546875, -0.011474609375, 0.01093292236328125, 0.0096435546875, 0.041595458984375, -0.0231781005859375, -0.01255035400390625, 0.08111572265625, -0.004154205322265625, 0.01041412353515625, 0.05810546875, -0.004474639892578125, 0.03271484375, 0.032470703125, 0.02691650390625, -0.029449462890625, 0.004650115966796875, 0.039306640625, 0.041015625, -0.044647216796875, -0.055328369140625, 0.024932861328125, 0.017578125, -0.0115966796875, 0.0260772705078125, 0.00855255126953125, -0.0109100341796875, 0.040130615234375, -0.0289764404296875, 0.004787445068359375, 0.021331787109375, 0.021942138671875, 0.0015993118286132812, 0.0280609130859375, -0.04058837890625, -0.00881195068359375, -0.03558349609375, 0.006015777587890625, 0.025146484375, 0.06512451171875, -0.00458526611328125, 0.0780029296875, -0.0235748291015625, -0.029754638671875, 0.00469207763671875, 0.005889892578125, -0.026947021484375, 0.0185089111328125, -0.0400390625, -0.052825927734375, 0.0286712646484375, 0.0287933349609375, 0.011444091796875, 0.07440185546875, 0.061248779296875, 0.019805908203125, -0.0262603759765625, 0.00827789306640625, 0.032989501953125, -0.046295166015625, -0.05267333984375, -0.00482940673828125, -0.036376953125, -0.0158538818359375, 0.00276947021484375, -0.00766754150390625, 0.03912353515625, -0.02716064453125, -0.0195159912109375, 0.0261688232421875, -0.0146484375, -0.0220489501953125, 0.036895751953125, 0.00582122802734375, 0.06805419921875, 0.019317626953125, -0.1051025390625, -0.020660400390625, -0.07769775390625, -0.0193634033203125, 0.057464599609375, 0.03936767578125, -0.0098419189453125, 0.02978515625, 0.02899169921875, 0.002490997314453125, 0.0007004737854003906, -0.00559234619140625, 0.01436614990234375, -0.0084228515625, 0.0214691162109375, 0.00801849365234375, -0.00882720947265625, -0.0089263916015625, 0.0128173828125, 0.03668212890625, -0.0113677978515625, 0.08709716796875, -0.056396484375, -0.01352691650390625, -0.02679443359375, -0.037567138671875, 0.0031566619873046875, -0.0226898193359375, -0.00992584228515625, 0.0034503936767578125, 0.00553131103515625, 0.0036296844482421875, -0.0216522216796875, 0.00548553466796875, 0.040802001953125, -0.06365966796875, 0.0178070068359375, -0.00841522216796875, 0.0135650634765625, -0.045928955078125, 0.016204833984375, -0.014984130859375, 0.00853729248046875, -0.0194244384765625, -0.028350830078125, 0.037811279296875, 0.0158843994140625, -0.00952911376953125, 0.025177001953125, -0.0030517578125, -0.00400543212890625, 0.018463134765625, -0.0034999847412109375, 0.011199951171875, 0.0258331298828125, -0.01462554931640625, -0.0130767822265625, 0.034820556640625, 0.00934600830078125, -0.01016998291015625, 0.032379150390625, 0.0174102783203125, 0.03680419921875, -0.0198974609375, 0.01079559326171875, 0.00872802734375, 0.004291534423828125, -0.0408935546875, -0.007293701171875, 0.0435791015625, -0.033447265625, 0.0162353515625, -0.001232147216796875, -0.02996826171875, -0.05096435546875, 0.0197296142578125, 0.007747650146484375, 0.0255126953125, -0.0136566162109375, -0.010589599609375, -0.0211639404296875, 0.0556640625, 0.033538818359375, -0.0673828125, -0.0097198486328125, 0.01186370849609375, 0.05841064453125, 0.007843017578125, 0.0080718994140625, -0.004894256591796875, -0.00518035888671875, -0.01377105712890625, 0.0175323486328125, -0.0217742919921875, 0.004810333251953125, 0.02496337890625, 0.0161895751953125, 0.02349853515625, -0.02685546875, -0.007175445556640625, 0.018310546875, 0.024261474609375, 0.06787109375, 0.0491943359375, -0.02880859375, -0.0204620361328125, 0.00173187255859375, 0.02008056640625, -0.022796630859375, 0.004680633544921875, -0.05474853515625, -0.00267791748046875, 0.0090484619140625, 0.01336669921875, 0.0258331298828125, -0.033447265625, -0.050872802734375, 0.04437255859375, 0.0195159912109375, -0.0303192138671875, -0.04681396484375, 0.0246734619140625, -0.016265869140625, 0.0242767333984375, -0.00836944580078125, -0.0116424560546875, -0.00016069412231445312, 0.024627685546875, 0.006099700927734375, 0.0005311965942382812, 0.021331787109375, -0.0265960693359375, -0.040374755859375, 0.0133819580078125, 0.01934814453125, 0.0033016204833984375, 0.002349853515625, -0.0283966064453125, 0.01910400390625, 0.0181884765625, -0.049560546875, -0.04010009765625, -0.00760650634765625, 0.0312347412109375, 0.019012451171875, -0.0221405029296875, -0.020233154296875, -0.03021240234375, 0.0228118896484375, -0.0036449432373046875, 0.01425933837890625, 0.0153045654296875, 0.006435394287109375, -0.060638427734375, -0.0325927734375, 0.00826263427734375, 0.004131317138671875, -0.038482666015625, 0.0303497314453125, 0.01413726806640625, -0.0279388427734375, -0.032196044921875, 0.043304443359375, -0.0298919677734375, -0.004093170166015625, 0.017425537109375, -0.03875732421875, -0.00678253173828125, -0.01331329345703125, 0.048248291015625, -0.04974365234375, -0.05572509765625, 0.0144500732421875, 0.00933837890625, -0.0321044921875, -0.0276641845703125, -0.050018310546875, -0.0199432373046875, -0.03131103515625, 0.0310516357421875, -0.039031982421875, 0.055023193359375, -0.055145263671875, 0.0030574798583984375, -0.03887939453125, 0.034423828125, -0.003818511962890625, 0.0295257568359375, 0.00281524658203125, 0.06463623046875, 0.025909423828125, 0.08355712890625, -0.00952911376953125, 0.0341796875, -0.0188751220703125, 0.0533447265625, 0.0091400146484375, -0.01959228515625, 0.0288543701171875, -0.005405426025390625, -0.0005712509155273438, 0.004486083984375, -0.044708251953125, -0.0584716796875, 0.0260009765625, -0.01065826416015625, -0.0154266357421875, 0.0251312255859375 ]
586d0dcac9ed2a548afc0558fb3e64f5bebe5e82
Wordpress Stackexchange Q: Add tinymce buttons to caption textarea in media uploader I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php and media-editor.js file in wp-includes but not getting any hint. Please help me, how can I add it. Thanks in advance. A: I tried to get my head around this yesterday and I came pretty close solving this issue. But i gave up in the end, cause it was getting too complicated, when start thinking about all the tools, that you want to include/exclude. If you still wanna do this on your own, these two filters are your friend: attachment_fields_to_edit & attachment_fields_to_save. I now solved with the great acf plugin. I just placed a new wysiwyg editor into the attachment page and hide the original caption field via css.
Q: Add tinymce buttons to caption textarea in media uploader I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php and media-editor.js file in wp-includes but not getting any hint. Please help me, how can I add it. Thanks in advance. A: I tried to get my head around this yesterday and I came pretty close solving this issue. But i gave up in the end, cause it was getting too complicated, when start thinking about all the tools, that you want to include/exclude. If you still wanna do this on your own, these two filters are your friend: attachment_fields_to_edit & attachment_fields_to_save. I now solved with the great acf plugin. I just placed a new wysiwyg editor into the attachment page and hide the original caption field via css.
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:446171", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149749" }
[ 0.01117706298828125, 0.0057525634765625, -0.004947662353515625, 0.0279083251953125, -0.003154754638671875, -0.03826904296875, 0.06036376953125, -0.0238189697265625, 0.00424957275390625, 0.05889892578125, 0.019683837890625, 0.0093994140625, 0.0176544189453125, -0.026153564453125, -0.0244903564453125, 0.0169525146484375, 0.0008387565612792969, -0.00965118408203125, 0.00908660888671875, -0.00689697265625, -0.01459503173828125, -0.0012874603271484375, 0.0162200927734375, -0.06207275390625, 0.00978851318359375, 0.00624847412109375, 0.09515380859375, -0.032440185546875, 0.006824493408203125, -0.0297393798828125, 0.008575439453125, -0.006748199462890625, 0.030426025390625, 0.0322265625, -0.0772705078125, 0.005878448486328125, -0.0079803466796875, 0.0002956390380859375, -0.0149383544921875, 0.0330810546875, 0.0222625732421875, -0.00893402099609375, 0.0239105224609375, 0.03131103515625, -0.00571441650390625, -0.042022705078125, 0.049713134765625, -0.0369873046875, 0.006195068359375, -0.04058837890625, -0.011749267578125, -0.003387451171875, 0.01212310791015625, -0.022674560546875, -0.0208740234375, -0.0131988525390625, -0.02081298828125, -0.0027332305908203125, 0.005840301513671875, 0.038421630859375, 0.01493072509765625, 0.033233642578125, -0.0202789306640625, -0.01239776611328125, -0.027862548828125, 0.01654052734375, -0.0227203369140625, 0.007671356201171875, 0.01531982421875, -0.04473876953125, -0.045166015625, -0.0213623046875, 0.0277862548828125, -0.061798095703125, 0.0136566162109375, 0.049774169921875, -0.024505615234375, 0.00418853759765625, 0.0211334228515625, -0.03472900390625, 0.0039215087890625, -0.006908416748046875, 0.0099639892578125, -0.018829345703125, 0.0239410400390625, 0.0224151611328125, -0.0030994415283203125, -0.02056884765625, -0.0168914794921875, -0.01471710205078125, -0.0065155029296875, -0.048919677734375, -0.0070648193359375, 0.03717041015625, -0.0005688667297363281, -0.01971435546875, 0.0131378173828125, 0.002658843994140625, 0.0285491943359375, 0.0154266357421875, 0.0208740234375, -0.05267333984375, 0.04852294921875, -0.030731201171875, 0.031341552734375, -0.0161285400390625, -0.034820556640625, 0.0008740425109863281, 0.062408447265625, 0.04736328125, -0.0207061767578125, 0.035430908203125, 0.00013840198516845703, -0.01192474365234375, -0.01444244384765625, -0.004215240478515625, -0.04296875, 0.047271728515625, -0.008819580078125, 0.038909912109375, -0.01386260986328125, -0.01087188720703125, -0.0012454986572265625, 0.0203399658203125, -0.0267333984375, -0.0271148681640625, 0.007129669189453125, 0.004261016845703125, -0.00989532470703125, 0.0360107421875, -0.023956298828125, 0.01227569580078125, 0.040008544921875, 0.016082763671875, 0.0012941360473632812, -0.02197265625, -0.0008630752563476562, -0.025970458984375, 0.00994873046875, 0.00783538818359375, 0.0172576904296875, -0.03179931640625, 0.00759124755859375, 0.0243682861328125, -0.0024852752685546875, 0.03546142578125, 0.0221405029296875, -0.00556182861328125, -0.0193023681640625, -0.087890625, 0.051025390625, -0.042633056640625, 0.0576171875, 0.00910186767578125, -0.05902099609375, -0.05987548828125, 0.0287017822265625, -0.06182861328125, -0.0027027130126953125, -0.08062744140625, 0.041717529296875, 0.01026153564453125, 0.00977325439453125, -0.002033233642578125, -0.0131683349609375, -0.027435302734375, -0.0302734375, -0.01047515869140625, 0.038909912109375, 0.045196533203125, 0.0043487548828125, -0.0265960693359375, 0.05316162109375, 0.0224761962890625, -0.0155029296875, 0.021209716796875, 0.0012073516845703125, 0.0487060546875, 0.0161285400390625, 0.04510498046875, 0.0188751220703125, -0.0447998046875, 0.08319091796875, -0.025299072265625, -0.046356201171875, 0.050262451171875, -0.022796630859375, 0.0672607421875, 0.016754150390625, 0.0222625732421875, -0.03350830078125, 0.005374908447265625, 0.043914794921875, -0.01293182373046875, -0.01236724853515625, -0.043548583984375, -0.01203155517578125, 0.009002685546875, -0.016357421875, -0.007610321044921875, 0.038848876953125, -0.030487060546875, 0.00565338134765625, 0.00787353515625, -0.0391845703125, -0.00582122802734375, 0.0005688667297363281, -0.01126861572265625, -0.0238189697265625, -0.00933074951171875, 0.020538330078125, -0.0174713134765625, 0.0000030994415283203125, -0.044036865234375, -0.01849365234375, 0.0330810546875, 0.01513671875, 0.034576416015625, 0.040191650390625, 0.01451873779296875, 0.044769287109375, -0.01207733154296875, 0.045074462890625, 0.0137786865234375, 0.01128387451171875, -0.027008056640625, -0.01061248779296875, -0.019500732421875, 0.007740020751953125, -0.0084228515625, 0.0109405517578125, 0.0310821533203125, 0.015869140625, 0.0210113525390625, -0.057830810546875, -0.0233612060546875, -0.08013916015625, -0.049072265625, -0.0019378662109375, 0.06146240234375, 0.034759521484375, 0.040557861328125, 0.0276641845703125, 0.06170654296875, 0.05279541015625, 0.0284271240234375, 0.040679931640625, -0.0160980224609375, 0.012603759765625, 0.054412841796875, 0.00031876564025878906, -0.0118255615234375, -0.002452850341796875, -0.053314208984375, 0.035064697265625, 0.0228271484375, -0.0009899139404296875, 0.0186309814453125, -0.000038623809814453125, -0.00849151611328125, -0.004680633544921875, -0.061004638671875, -0.020965576171875, -0.02789306640625, 0.038482666015625, 0.043914794921875, 0.05523681640625, 0.0491943359375, -0.03076171875, 0.0270538330078125, -0.002105712890625, -0.0213775634765625, 0.00385284423828125, 0.04010009765625, 0.004467010498046875, 0.0294036865234375, -0.02960205078125, -0.01220703125, 0.009735107421875, 0.034912109375, -0.014984130859375, 0.00872039794921875, -0.047332763671875, -0.0104522705078125, 0.0171661376953125, -0.04742431640625, -0.01367950439453125, -0.0175933837890625, -0.0016069412231445312, -0.042022705078125, -0.01482391357421875, 0.036529541015625, -0.0017223358154296875, 0.0288848876953125, 0.025238037109375, -0.02545166015625, 0.0400390625, -0.0179443359375, 0.035614013671875, -0.0182037353515625, 0.04168701171875, 0.0538330078125, -0.020599365234375, -0.0020580291748046875, -0.01262664794921875, -0.004993438720703125, -0.05340576171875, 0.024749755859375, 0.0109710693359375, -0.031768798828125, -0.02008056640625, 0.0291900634765625, 0.01009368896484375, 0.0323486328125, -0.04833984375, -0.050018310546875, -0.043304443359375, 0.00849151611328125, -0.0599365234375, -0.0072784423828125, 0.03826904296875, -0.07733154296875, 0.0004754066467285156, 0.01198577880859375, -0.055694580078125, -0.029510498046875, 0.07635498046875, -0.005306243896484375, -0.0462646484375, 0.0001894235610961914, 0.015045166015625, -0.004669189453125, -0.00362396240234375, -0.00007969141006469727, 0.003276824951171875, 0.002971649169921875, 0.026611328125, 0.06317138671875, 0.027557373046875, -0.023193359375, 0.079345703125, -0.02587890625, -0.0219268798828125, 0.06060791015625, 0.05926513671875, -0.00801849365234375, -0.011138916015625, 0.01971435546875, 0.01142120361328125, 0.03741455078125, -0.05816650390625, -0.01837158203125, -0.0226898193359375, -0.00864410400390625, -0.01422119140625, 0.046112060546875, 0.0364990234375, -0.011505126953125, 0.0099029541015625, -0.05517578125, -0.0256500244140625, 0.0328369140625, -0.0005731582641601562, 0.00971221923828125, -0.0163421630859375, -0.034698486328125, -0.002338409423828125, 0.04144287109375, 0.01165008544921875, 0.040008544921875, -0.005290985107421875, 0.003936767578125, -0.0170440673828125, -0.0121002197265625, -0.0033664703369140625, -0.0007228851318359375, -0.037139892578125, -0.0204010009765625, 0.0225830078125, -0.039215087890625, 0.017364501953125, -0.030792236328125, 0.076171875, -0.033050537109375, -0.03057861328125, 0.0115203857421875, -0.06500244140625, 0.017791748046875, -0.06109619140625, 0.003124237060546875, -0.034149169921875, 0.06573486328125, -0.051544189453125, -0.0195465087890625, -0.0251007080078125, 0.0050201416015625, 0.0186767578125, -0.02215576171875, -0.0021991729736328125, -0.0203399658203125, -0.005207061767578125, 0.01277923583984375, -0.003940582275390625, 0.0007786750793457031, -0.0104217529296875, 0.006378173828125, -0.00922393798828125, -0.0254364013671875, 0.0355224609375, -0.0201568603515625, 0.0225982666015625, 0.01922607421875, -0.0033969879150390625, 0.01177215576171875, -0.00830841064453125, -0.0478515625, -0.11553955078125, -0.0200958251953125, -0.01396942138671875, 0.07989501953125, -0.01251220703125, 0.00498199462890625, -0.0239715576171875, 0.0626220703125, -0.01202392578125, 0.0217132568359375, 0.006565093994140625, 0.03399658203125, -0.0001043081283569336, -0.00470733642578125, 0.01190185546875, -0.0298614501953125, 0.0255279541015625, 0.00537109375, -0.0236358642578125, 0.0038127899169921875, -0.045654296875, -0.048187255859375, 0.0085906982421875, -0.0482177734375, -0.05035400390625, -0.03668212890625, -0.006511688232421875, 0.0183563232421875, -0.00940704345703125, 0.004749298095703125, -0.052337646484375, -0.052337646484375, 0.0281982421875, 0.0010776519775390625, -0.01053619384765625, -0.005550384521484375, 0.04754638671875, 0.02191162109375, -0.02117919921875, -0.02593994140625, 0.01213836669921875, 0.038665771484375, 0.00386810302734375, 0.007244110107421875, 0.004955291748046875, -0.0223846435546875, 0.01059722900390625, 0.01468658447265625, 0.03033447265625, -0.0771484375, 0.0531005859375, 0.003787994384765625, 0.00966644287109375, 0.01184844970703125, 0.006023406982421875, 0.0279541015625, -0.03790283203125, -0.045501708984375, 0.0164794921875, -0.030609130859375, 0.04119873046875, 0.01110076904296875, 0.028900146484375, -0.054046630859375, -0.033935546875, -0.00498199462890625, -0.00315093994140625, 0.03167724609375, -0.01190185546875, 0.01025390625, -0.00406646728515625, 0.023590087890625, -0.0022487640380859375, 0.0018110275268554688, 0.0132904052734375, 0.00030922889709472656, 0.049041748046875, 0.01380157470703125, 0.00860595703125, -0.00933837890625, -0.001842498779296875, -0.0170440673828125, 0.000006139278411865234, -0.05596923828125, 0.0044403076171875, 0.0032825469970703125, 0.0309600830078125, 0.00698089599609375, 0.017059326171875, -0.0047760009765625, -0.00443267822265625, 0.008758544921875, 0.00893402099609375, -0.005893707275390625, 0.0287933349609375, -0.02777099609375, -0.003910064697265625, 0.0042724609375, -0.03082275390625, -0.0006861686706542969, 0.01654052734375, -0.0134429931640625, -0.0175628662109375, 0.00743865966796875, 0.002834320068359375, 0.0399169921875, 0.0198822021484375, 0.00795745849609375, 0.02850341796875, -0.025177001953125, 0.03436279296875, 0.008758544921875, -0.01322174072265625, 0.0180206298828125, -0.00669097900390625, 0.017852783203125, -0.00597381591796875, -0.0312042236328125, 0.01776123046875, -0.0706787109375, -0.0170135498046875, -0.0243072509765625, -0.03240966796875, -0.0212554931640625, 0.00243377685546875, 0.0160980224609375, -0.005359649658203125, 0.028472900390625, 0.0066070556640625, -0.01447296142578125, -0.0196990966796875, -0.0100860595703125, -0.0002655982971191406, -0.040679931640625, -0.0073089599609375, -0.00017082691192626953, 0.0211944580078125, -0.01849365234375, -0.029754638671875, -0.04437255859375, -0.0261077880859375, -0.0166778564453125, 0.019805908203125, 0.05902099609375, -0.024017333984375, -0.00965118408203125, -0.0126190185546875, 0.016021728515625, -0.04632568359375, 0.025390625, -0.01340484619140625, -0.0191497802734375, 0.061553955078125, -0.031646728515625, -0.0350341796875, -0.04779052734375, 0.003582000732421875, -0.01453399658203125, -0.01043701171875, -0.01320648193359375, -0.00849151611328125, 0.0304718017578125, -0.01216888427734375, -0.01154327392578125, -0.016448974609375, 0.01142120361328125, 0.0104217529296875, 0.0352783203125, 0.0201263427734375, 0.0257110595703125, -0.0245208740234375, 0.06671142578125, 0.0116729736328125, -0.0155487060546875, -0.039154052734375, -0.02728271484375, 0.01003265380859375, -0.058258056640625, -0.0036468505859375, 0.010406494140625, 0.002635955810546875, 0.004077911376953125, -0.027435302734375, 0.00026988983154296875, 0.02886962890625, -0.0282440185546875, -0.0007138252258300781, -0.0228729248046875, 0.017181396484375, -0.038909912109375, -0.00296783447265625, 0.030242919921875, -0.044281005859375, 0.039215087890625, 0.0016040802001953125, 0.0230255126953125, 0.0158538818359375, -0.047210693359375, 0.0238037109375, 0.0311126708984375, -0.0372314453125, 0.0352783203125, 0.0416259765625, -0.0253448486328125, 0.01513671875, 0.0252685546875, -0.0032138824462890625, 0.0212860107421875, 0.017974853515625, -0.058441162109375, 0.00293731689453125, 0.040557861328125, 0.0118408203125, -0.0271148681640625, 0.0266571044921875, -0.031402587890625, 0.033843994140625, -0.006622314453125, 0.0679931640625, -0.0193634033203125, 0.0019025802612304688, 0.02313232421875, -0.053863525390625, 0.016998291015625, -0.015960693359375, -0.00418853759765625, -0.045440673828125, 0.07452392578125, -0.0224609375, -0.0006771087646484375, 0.033843994140625, -0.030792236328125, -0.0004506111145019531, -0.01230621337890625, 0.020477294921875, 0.0005888938903808594, -0.04193115234375, -0.02117919921875, 0.044403076171875, -0.039703369140625, 0.0106048583984375, 0.031158447265625, -0.01085662841796875, -0.01015472412109375, -0.025848388671875, 0.006023406982421875, -0.005901336669921875, -0.02947998046875, 0.0019521713256835938, 0.020660400390625, -0.0080108642578125, 0.048095703125, -0.03509521484375, 0.033477783203125, 0.0174407958984375, -0.01508331298828125, 0.057220458984375, -0.01343536376953125, 0.0196380615234375, 0.0011234283447265625, -0.027008056640625, -0.00359344482421875, -0.00016295909881591797, -0.0101318359375, 0.004638671875, 0.01560211181640625, 0.038818359375, -0.032012939453125, -0.0208587646484375, 0.0290679931640625, 0.009765625, 0.0003619194030761719, -0.037322998046875, -0.006622314453125, -0.07537841796875, -0.016998291015625, -0.0252227783203125, -0.016204833984375, 0.017913818359375, -0.0367431640625, -0.071044921875, 0.09906005859375, 0.0183258056640625, 0.031280517578125, -0.026702880859375, 0.05340576171875, -0.03125, 0.042144775390625, 0.00484466552734375, -0.01464080810546875, -0.0197906494140625, -0.028289794921875, -0.032867431640625, -0.005985260009765625, -0.021392822265625, 0.0589599609375, 0.0428466796875, -0.00261688232421875, 0.005367279052734375, 0.033447265625, 0.1163330078125, 0.07940673828125, 0.032196044921875, -0.005802154541015625, 0.0406494140625, -0.04815673828125, -0.0028533935546875, 0.055267333984375, 0.040252685546875, -0.045074462890625, 0.0070343017578125, 0.0640869140625, 0.026458740234375, 0.0543212890625, 0.0107421875, 0.025726318359375, -0.0003483295440673828, -0.0016870498657226562, 0.028839111328125, -0.06396484375, -0.0340576171875, 0.06951904296875, -0.005706787109375, -0.06524658203125, 0.00901031494140625, -0.06536865234375, 0.03729248046875, -0.0297393798828125, 0.0197296142578125, 0.01203155517578125, 0.01580810546875, 0.032684326171875, 0.0008063316345214844, 0.01654052734375, 0.038970947265625, -0.0335693359375, -0.0002598762512207031, -0.033355712890625, 0.0036525726318359375, -0.057769775390625, 0.021270751953125, 0.041046142578125, 0.007091522216796875, -0.01421356201171875, -0.01064300537109375, 0.01145172119140625, -0.00470733642578125, -0.0040283203125, -0.053253173828125, -0.01313018798828125, -0.053436279296875, -0.0245361328125, 0.0244140625, -0.00460052490234375, 0.007289886474609375, -0.00035381317138671875, 0.021453857421875, 0.03594970703125, -0.00841522216796875, 0.0177459716796875, -0.06304931640625, 0.02020263671875, -0.012176513671875, 0.059600830078125, 0.0361328125, 0.061187744140625, 0.002239227294921875, -0.03106689453125, -0.017333984375, 0.01554107666015625, 0.041351318359375, 0.0189666748046875, 0.027099609375, 0.040313720703125, 0.008819580078125, -0.0139312744140625, 0.03155517578125, 0.041015625, 0.044586181640625, 0.032989501953125, -0.014434814453125, 0.0038280487060546875, 0.05560302734375, -0.0162200927734375, -0.010040283203125, -0.040252685546875, -0.00432586669921875, 0.043426513671875, -0.00449371337890625, 0.003627777099609375, -0.05572509765625, 0.07904052734375, -0.05609130859375, 0.0257568359375, -0.01168060302734375, -0.03155517578125, 0.0244598388671875, -0.0302276611328125, 0.0247802734375, -0.02508544921875, -0.042083740234375, 0.0174102783203125, -0.0279541015625, -0.060272216796875, 0.0177154541015625, 0.02960205078125, -0.031982421875, 0.038970947265625, -0.00836944580078125, -0.0305328369140625, -0.0015964508056640625, 0.006626129150390625, 0.026153564453125, -0.0064849853515625, -0.0142822265625, -0.01447296142578125, -0.0178070068359375, 0.01264190673828125, 0.011505126953125, -0.0047149658203125, 0.02740478515625, 0.03826904296875, 0.015655517578125, -0.002559661865234375, -0.0204315185546875, 0.0159912109375, -0.01497650146484375, -0.00853729248046875, -0.00490570068359375, 0.0361328125, 0.0125274658203125, -0.0205078125, -0.0023479461669921875, 0.0782470703125, -0.0142669677734375, -0.02294921875, 0.02984619140625, -0.00527191162109375, -0.00891876220703125, 0.01079559326171875, 0.048095703125, -0.02008056640625, -0.042816162109375, -0.046478271484375, -0.004791259765625, 0.0041351318359375, 0.0033550262451171875, -0.003543853759765625, 0.024322509765625, 0.01506805419921875, -0.0261993408203125, 0.03753662109375, -0.049163818359375, 0.0609130859375, 0.041748046875, 0.00514984130859375, -0.02349853515625, 0.0061187744140625, -0.006870269775390625, -0.0032806396484375, 0.01544952392578125, 0.00750732421875, 0.031402587890625, -0.06390380859375, 0.032135009765625, 0.0251617431640625, 0.061065673828125, -0.003803253173828125, 0.0112457275390625, 0.0032501220703125, 0.008392333984375, 0.0269927978515625, -0.043365478515625, -0.055694580078125, -0.05963134765625, 0.00860595703125, 0.03607177734375, -0.042938232421875, -0.0313720703125, -0.1260986328125, -0.033172607421875, 0.03424072265625, -0.00865936279296875, -0.0164337158203125, -0.00844573974609375, -0.0223236083984375, 0.03564453125, -0.0123138427734375, -0.0260009765625, -0.0199737548828125, 0.0137481689453125, -0.029693603515625, -0.043304443359375, -0.06341552734375, 0.0270538330078125, -0.058197021484375, 0.01331329345703125, 0.03619384765625, -0.00909423828125, -0.00864410400390625, 0.033447265625, 0.0245513916015625, 0.0711669921875, -0.0284271240234375, -0.024200439453125, 0.00937652587890625, -0.01511383056640625, 0.01332855224609375, -0.04510498046875, -0.0115203857421875, -0.0625, -0.0012187957763671875, -0.02398681640625, 0.016326904296875, 0.006793975830078125, -0.048187255859375, -0.0914306640625, 0.036407470703125, -0.01247406005859375, -0.03338623046875, -0.01605224609375, 0.035858154296875, -0.00798797607421875, -0.01218414306640625, 0.00020682811737060547, -0.0186004638671875, 0.0238037109375, 0.01788330078125, 0.01308441162109375, 0.021636962890625, 0.0172576904296875, -0.0118255615234375, -0.03253173828125, 0.0098419189453125, 0.00745391845703125, 0.0291290283203125, 0.06536865234375, -0.0285797119140625, 0.03106689453125, 0.050750732421875, -0.0574951171875, -0.0694580078125, -0.055267333984375, -0.044158935546875, -0.024993896484375, -0.060821533203125, -0.004756927490234375, -0.00653839111328125, 0.07147216796875, 0.0291748046875, -0.00044655799865722656, -0.01904296875, 0.029327392578125, 0.008056640625, -0.0180206298828125, -0.018341064453125, 0.0004546642303466797, -0.0271453857421875, -0.0202484130859375, -0.003170013427734375, 0.03021240234375, -0.01184844970703125, 0.00867462158203125, 0.00463104248046875, -0.02471923828125, 0.025970458984375, -0.0097808837890625, -0.01556396484375, 0.01922607421875, 0.10284423828125, -0.054351806640625, -0.0172882080078125, 0.03179931640625, -0.00820159912109375, 0.037933349609375, 0.025360107421875, -0.024444580078125, -0.007640838623046875, -0.01000213623046875, 0.0225982666015625, -0.01800537109375, 0.00212860107421875, -0.0190887451171875, 0.0039215087890625, -0.0426025390625, 0.0022125244140625, 0.0272674560546875, 0.003498077392578125, -0.02984619140625, 0.01200103759765625, 0.01108551025390625, 0.02532958984375, -0.00766754150390625, -0.00104522705078125, -0.033538818359375, 0.026824951171875, 0.029632568359375, -0.005733489990234375, 0.035614013671875, 0.015106201171875, 0.01702880859375, 0.04736328125, -0.00493621826171875, 0.00843048095703125, -0.000457763671875, -0.0014171600341796875, -0.01276397705078125, -0.00696563720703125 ]
9ce75bdaaf730e66f1a72cfd37bb4f761101a231
Wordpress Stackexchange Q: Conditional tag to check if 'page.php' is being used? I'm trying to check whether the page.php template is being used or not. I've tried is_page_template( 'page.php' ) but it doesn't work. I also can't use is_page() because I only want to do something when page.php is used, and not when some other custom Page template is used. Please let me know about this and thanks! Edit: Should have mentioned earlier that I have a file called common-options.php which is getting included in almost all the templates (like index.php, page.php, single.php and page_blog.php), in this file I'm trying to do the check with the following code: if ( is_page_template( 'page.php' ) ) { echo "success!"; } But it's not working when I open a page that is using the "Default Template". A: You have two useful functions: is_page() and is_page_template(). The is_page() function will return true when you're on a page, and the is_page_template() function will return false if the current post (can be a page) is not using a custom template. So, you just need to use both of these functions together: if ( is_page() && !is_page_template() ) { // your code }
Q: Conditional tag to check if 'page.php' is being used? I'm trying to check whether the page.php template is being used or not. I've tried is_page_template( 'page.php' ) but it doesn't work. I also can't use is_page() because I only want to do something when page.php is used, and not when some other custom Page template is used. Please let me know about this and thanks! Edit: Should have mentioned earlier that I have a file called common-options.php which is getting included in almost all the templates (like index.php, page.php, single.php and page_blog.php), in this file I'm trying to do the check with the following code: if ( is_page_template( 'page.php' ) ) { echo "success!"; } But it's not working when I open a page that is using the "Default Template". A: You have two useful functions: is_page() and is_page_template(). The is_page() function will return true when you're on a page, and the is_page_template() function will return false if the current post (can be a page) is not using a custom template. So, you just need to use both of these functions together: if ( is_page() && !is_page_template() ) { // your code } A: I actually ran into the same problem myself and my solution was this code: if(basename(get_page_template()) === 'page.php'){ } basename(get_page_template()) gets the filename of the page template (according to https://codex.wordpress.org/Function_Reference/get_page_template) and we then check if it is equal to 'page.php' A: Old question, but an interesting one. In general it is uncommon to check for template in WordPress. The template is result of main query running and setting up context of request. If necessary I would probably somehow set a flag at start of page.php, such as declaring constant for it, to have my own context for that. Overall though it makes me think that any logic that requires such move should be considered to be adjusted in line with more common mechanics and conditionals. A: Actually it is very simple. Just use: is_page_template() If it returns true than page.php is not being used and vice versa :) A: $bulkitnt_custom_page_control = is_page_template( 'custom-page.php' ); if( $bulkitnt_custom_page_control != true ){ do_action('bulkitnt_header_action'); } A: This works for me in the seachbar.php basename(get_page_template()) === ( 'page.php' ) This my compleet code: if ( is_page_template( 'tpl-ads-home.php' ) || basename(get_page_template()) === ( 'page.php' ) || is_page_template( 'tpl-refine-search.php' ) || is_page_template( 'tpl-categories.php' ) || is_search() || is_404() || is_tax( APP_TAX_CAT ) || is_tax( APP_TAX_TAG ) || is_singular( APP_POST_TYPE ) ) : $args = cp_get_dropdown_categories_search_args( 'bar' ); A: Just use null array instead of 'page.php' eg: is_page_template(array(''));
wordpress
{ "language": "en", "length": 424, "provenance": "stackexchange_00019.jsonl.gz:446187", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149803" }
[ 0.000013530254364013672, 0.0011415481567382812, -0.01018524169921875, -0.0217437744140625, 0.003696441650390625, -0.0156402587890625, 0.0014896392822265625, -0.03411865234375, -0.0034198760986328125, -0.002532958984375, -0.03466796875, 0.01200103759765625, -0.049163818359375, -0.01015472412109375, 0.00740814208984375, -0.037750244140625, 0.029266357421875, -0.0030956268310546875, 0.032623291015625, -0.02239990234375, 0.0281219482421875, -0.00011199712753295898, 0.002269744873046875, 0.04254150390625, 0.04718017578125, -0.06842041015625, 0.037506103515625, -0.007343292236328125, 0.0291900634765625, -0.031524658203125, 0.03070068359375, 0.023590087890625, 0.0188446044921875, 0.047119140625, -0.05047607421875, -0.0307769775390625, -0.048828125, 0.0167999267578125, 0.0010986328125, 0.0016889572143554688, 0.0036830902099609375, 0.0098876953125, 0.001827239990234375, -0.01343536376953125, -0.01043701171875, 0.002521514892578125, -0.0277099609375, -0.044097900390625, -0.016998291015625, 0.0435791015625, 0.0094146728515625, -0.04083251953125, -0.000507354736328125, 0.05755615234375, -0.0011844635009765625, -0.007843017578125, -0.0031223297119140625, -0.00006282329559326172, 0.03240966796875, -0.00946044921875, -0.039825439453125, -0.00925445556640625, 0.01446533203125, -0.0312042236328125, 0.00345611572265625, -0.0231170654296875, -0.06829833984375, 0.039306640625, -0.0302276611328125, -0.01096343994140625, 0.018463134765625, -0.026458740234375, -0.0008158683776855469, -0.0212860107421875, -0.028106689453125, -0.009246826171875, 0.032501220703125, -0.0185394287109375, -0.0197906494140625, 0.01114654541015625, -0.0237884521484375, 0.018646240234375, -0.0474853515625, -0.029815673828125, 0.00366973876953125, 0.014404296875, -0.0223541259765625, -0.01275634765625, -0.023651123046875, -0.01483917236328125, -0.025543212890625, 0.01451873779296875, 0.030181884765625, -0.05987548828125, -0.05975341796875, -0.003726959228515625, 0.030853271484375, 0.08074951171875, -0.038177490234375, 0.00652313232421875, -0.0240478515625, -0.031341552734375, 0.0267333984375, -0.05072021484375, 0.01873779296875, 0.0836181640625, -0.02081298828125, -0.00716400146484375, 0.04107666015625, 0.00859832763671875, 0.037017822265625, -0.021331787109375, -0.0361328125, -0.0250396728515625, -0.03094482421875, 0.0263214111328125, -0.044342041015625, -0.0270233154296875, -0.002288818359375, -0.0012569427490234375, 0.0281829833984375, 0.036956787109375, 0.058074951171875, -0.0736083984375, 0.02203369140625, 0.019012451171875, -0.044952392578125, -0.07464599609375, 0.004489898681640625, 0.03192138671875, -0.01093292236328125, -0.00379180908203125, -0.004535675048828125, 0.0059051513671875, -0.0168609619140625, -0.0241241455078125, 0.018798828125, -0.0104827880859375, 0.01503753662109375, 0.002918243408203125, -0.0120849609375, -0.035675048828125, 0.004825592041015625, -0.021209716796875, -0.0171356201171875, 0.005588531494140625, 0.0224609375, 0.03314208984375, -0.01465606689453125, -0.04522705078125, 0.041717529296875, -0.0360107421875, -0.0036449432373046875, 0.0215911865234375, 0.0262451171875, -0.0232696533203125, -0.0091552734375, -0.00795745849609375, 0.0229034423828125, -0.00852203369140625, -0.0111541748046875, -0.00986480712890625, 0.006664276123046875, -0.047882080078125, -0.051239013671875, 0.015625, -0.037322998046875, 0.0028972625732421875, 0.014984130859375, -0.01349639892578125, 0.0167999267578125, -0.016510009765625, 0.0247039794921875, 0.0243988037109375, 0.006622314453125, 0.037689208984375, 0.015869140625, 0.013336181640625, 0.01256561279296875, 0.01441192626953125, -0.0249481201171875, -0.02728271484375, 0.053985595703125, -0.0287628173828125, -0.06976318359375, 0.0113677978515625, 0.0260009765625, 0.023712158203125, 0.0099945068359375, 0.006977081298828125, 0.07574462890625, 0.0165863037109375, 0.0009441375732421875, 0.059722900390625, 0.0262298583984375, -0.0435791015625, -0.017852783203125, 0.005069732666015625, -0.010772705078125, -0.06500244140625, 0.033447265625, -0.002109527587890625, -0.0108489990234375, -0.00017762184143066406, -0.08306884765625, -0.01509857177734375, -0.02667236328125, 0.0225830078125, -0.02056884765625, 0.0249786376953125, 0.0148468017578125, -0.0284576416015625, -0.0210113525390625, 0.027862548828125, 0.0030364990234375, 0.0007190704345703125, 0.0116119384765625, 0.0153045654296875, 0.00026535987854003906, 0.0026416778564453125, 0.0006732940673828125, -0.010894775390625, -0.019622802734375, 0.03656005859375, 0.022979736328125, 0.00675201416015625, -0.037078857421875, 0.00308990478515625, -0.0596923828125, 0.03900146484375, -0.0797119140625, 0.04791259765625, 0.018157958984375, 0.021453857421875, -0.0283966064453125, -0.0134735107421875, -0.0018758773803710938, -0.029022216796875, 0.01311492919921875, 0.0413818359375, 0.04339599609375, 0.034454345703125, -0.0069732666015625, -0.0089569091796875, 0.035064697265625, -0.0699462890625, -0.0103759765625, -0.01171112060546875, 0.0254058837890625, 0.030853271484375, -0.00968170166015625, 0.0023040771484375, 0.021331787109375, -0.0215606689453125, 0.006107330322265625, 0.03143310546875, -0.004093170166015625, 0.027191162109375, 0.013885498046875, 0.0179290771484375, -0.034759521484375, 0.042205810546875, 0.0428466796875, -0.01079559326171875, 0.031036376953125, -0.035980224609375, 0.021942138671875, 0.002620697021484375, 0.01184844970703125, -0.032440185546875, 0.0009169578552246094, -0.03192138671875, 0.0160369873046875, 0.027557373046875, 0.0274200439453125, 0.0546875, -0.0283660888671875, -0.042144775390625, 0.0211639404296875, 0.037139892578125, -0.0261688232421875, 0.0245361328125, -0.05523681640625, -0.01247406005859375, -0.0294647216796875, -0.03875732421875, -0.0016689300537109375, 0.0160675048828125, 0.03314208984375, 0.005718231201171875, 0.02587890625, 0.036895751953125, -0.0198211669921875, 0.06964111328125, -0.007579803466796875, -0.0167236328125, 0.01422119140625, -0.0350341796875, 0.040557861328125, -0.032989501953125, 0.004962921142578125, 0.055938720703125, -0.0144805908203125, 0.00730133056640625, -0.0007619857788085938, 0.00811767578125, 0.016204833984375, -0.009002685546875, -0.0138092041015625, -0.0115966796875, -0.0149383544921875, 0.005222320556640625, 0.01535797119140625, 0.04559326171875, -0.01444244384765625, -0.036163330078125, 0.0019369125366210938, -0.0100555419921875, -0.06719970703125, -0.08587646484375, -0.005649566650390625, -0.0438232421875, -0.01355743408203125, -0.023895263671875, -0.0224151611328125, -0.00078582763671875, -0.028900146484375, 0.0014524459838867188, -0.01788330078125, -0.0447998046875, -0.0377197265625, -0.0782470703125, -0.06732177734375, -0.02325439453125, 0.002353668212890625, -0.008209228515625, -0.01496124267578125, 0.07135009765625, -0.00894927978515625, -0.060760498046875, -0.0109710693359375, -0.002422332763671875, 0.003204345703125, 0.011810302734375, 0.0005173683166503906, -0.0214996337890625, 0.01195526123046875, 0.01114654541015625, -0.031890869140625, -0.013214111328125, 0.023223876953125, -0.028717041015625, -0.02496337890625, -0.046783447265625, 0.0105438232421875, -0.0048370361328125, 0.0216064453125, -0.026824951171875, 0.0083160400390625, -0.04681396484375, -0.06402587890625, 0.002544403076171875, -0.08172607421875, 0.05609130859375, 0.06878662109375, -0.01242828369140625, 0.0175933837890625, -0.006702423095703125, 0.00714874267578125, 0.00592803955078125, -0.0151519775390625, -0.00939178466796875, 0.032379150390625, 0.00492095947265625, 0.0206298828125, 0.01149749755859375, -0.0137176513671875, -0.037841796875, 0.014251708984375, -0.0239715576171875, 0.00006407499313354492, 0.015777587890625, -0.01241302490234375, -0.007442474365234375, -0.0452880859375, 0.025299072265625, -0.0210723876953125, -0.005367279052734375, -0.0242767333984375, 0.005096435546875, 0.01953125, 0.06561279296875, -0.01187896728515625, -0.029022216796875, -0.0131072998046875, 0.0011606216430664062, -0.0003762245178222656, -0.00439453125, 0.0244903564453125, -0.0159149169921875, -0.0214385986328125, 0.032135009765625, 0.00904083251953125, -0.0081939697265625, -0.01953125, -0.004329681396484375, -0.00789642333984375, -0.01033782958984375, 0.00579071044921875, -0.033477783203125, 0.0171051025390625, 0.05914306640625, -0.026458740234375, 0.039276123046875, 0.00013744831085205078, -0.05926513671875, -0.061126708984375, 0.0079345703125, -0.02703857421875, 0.007099151611328125, 0.0286102294921875, -0.032135009765625, -0.01079559326171875, 0.00769805908203125, 0.0421142578125, 0.01517486572265625, 0.0246124267578125, -0.0193939208984375, 0.01666259765625, -0.0110931396484375, 0.0274810791015625, -0.030120849609375, 0.0234527587890625, 0.028778076171875, -0.046875, 0.0120849609375, -0.0287933349609375, -0.03631591796875, 0.05328369140625, -0.06536865234375, 0.003726959228515625, -0.0022430419921875, 0.0200042724609375, 0.005222320556640625, -0.02349853515625, 0.004093170166015625, -0.00238037109375, -0.0074615478515625, 0.0543212890625, 0.010009765625, -0.02874755859375, 0.0098876953125, 0.054962158203125, 0.028533935546875, -0.044952392578125, -0.049560546875, 0.0194244384765625, 0.0211181640625, -0.0168609619140625, 0.0604248046875, 0.0213623046875, -0.01800537109375, 0.04315185546875, 0.0017175674438476562, -0.0333251953125, -0.01178741455078125, 0.07037353515625, -0.008575439453125, -0.0450439453125, 0.0097503662109375, -0.041748046875, 0.036529541015625, 0.055755615234375, -0.0015707015991210938, -0.048583984375, 0.0189361572265625, 0.07073974609375, -0.0224761962890625, 0.01372528076171875, -0.05206298828125, -0.0289764404296875, -0.00861358642578125, 0.0350341796875, 0.034912109375, 0.029998779296875, -0.0142974853515625, 0.04443359375, 0.040283203125, -0.005245208740234375, 0.046539306640625, 0.078125, 0.0005259513854980469, 0.02996826171875, 0.0302886962890625, -0.007755279541015625, -0.032684326171875, 0.01026153564453125, -0.01873779296875, 0.00738525390625, -0.04376220703125, -0.023406982421875, 0.00649261474609375, 0.00339508056640625, -0.01132965087890625, 0.027587890625, 0.040924072265625, -0.01308441162109375, -0.038604736328125, 0.0003948211669921875, 0.005687713623046875, -0.0218963623046875, -0.05023193359375, -0.044281005859375, -0.0120849609375, -0.0281219482421875, 0.007404327392578125, 0.00858306884765625, 0.007587432861328125, -0.0007300376892089844, -0.0226593017578125, 0.0234527587890625, 0.0256500244140625, 0.02044677734375, 0.0232086181640625, 0.006061553955078125, -0.0228118896484375, 0.0032711029052734375, 0.007709503173828125, -0.035003662109375, -0.032379150390625, 0.007228851318359375, 0.0261993408203125, -0.020050048828125, -0.009185791015625, 0.0196075439453125, 0.0244903564453125, -0.02911376953125, 0.0214385986328125, 0.0027256011962890625, -0.045196533203125, -0.034393310546875, 0.01308441162109375, 0.0240325927734375, 0.0106353759765625, -0.03594970703125, 0.03466796875, -0.02880859375, 0.03521728515625, 0.0241546630859375, -0.0284576416015625, 0.035491943359375, 0.029388427734375, -0.00885009765625, -0.0134124755859375, -0.00266265869140625, -0.0169219970703125, -0.0005159378051757812, -0.029510498046875, -0.0094146728515625, 0.0035839080810546875, -0.0176239013671875, 0.0269012451171875, -0.0192108154296875, -0.029998779296875, -0.0019502639770507812, 0.005405426025390625, 0.045257568359375, 0.022735595703125, -0.08148193359375, 0.006656646728515625, -0.0770263671875, -0.0171356201171875, -0.031341552734375, -0.09124755859375, -0.0501708984375, 0.0009636878967285156, -0.0037059783935546875, 0.0188446044921875, 0.0015459060668945312, 0.0270843505859375, -0.005985260009765625, 0.047760009765625, -0.0014257431030273438, 0.06939697265625, -0.0236053466796875, 0.08673095703125, 0.0171356201171875, 0.037139892578125, 0.0201263427734375, 0.04620361328125, -0.0037994384765625, -0.028594970703125, 0.0140380859375, -0.0186767578125, -0.0134735107421875, -0.021453857421875, -0.033447265625, 0.0034637451171875, 0.0599365234375, 0.001575469970703125, 0.0179443359375, -0.03302001953125, -0.01035308837890625, -0.02764892578125, 0.02618408203125, -0.0308074951171875, -0.0163116455078125, 0.0247650146484375, -0.01409149169921875, -0.031982421875, 0.006717681884765625, -0.01824951171875, 0.020294189453125, 0.0276947021484375, 0.002590179443359375, -0.018798828125, -0.07403564453125, 0.081787109375, 0.08612060546875, 0.007293701171875, 0.05657958984375, -0.00035452842712402344, 0.01336669921875, 0.031951904296875, 0.0222930908203125, -0.0258331298828125, -0.0401611328125, 0.03961181640625, 0.006092071533203125, -0.0003199577331542969, 0.03973388671875, -0.011932373046875, 0.03338623046875, 0.08203125, 0.06182861328125, -0.0960693359375, -0.010009765625, 0.02447509765625, -0.024261474609375, 0.008026123046875, -0.047027587890625, 0.00749969482421875, -0.042877197265625, 0.08404541015625, 0.006923675537109375, -0.01776123046875, 0.033660888671875, -0.04217529296875, -0.01276397705078125, -0.03778076171875, 0.08233642578125, 0.022369384765625, 0.0031833648681640625, 0.0158538818359375, 0.005596160888671875, 0.00356292724609375, -0.0088653564453125, 0.032379150390625, -0.020172119140625, -0.00025582313537597656, -0.0086669921875, 0.02899169921875, -0.028472900390625, -0.00812530517578125, 0.012786865234375, 0.0191802978515625, -0.008514404296875, 0.0386962890625, -0.0197296142578125, 0.0166168212890625, 0.028167724609375, -0.0182647705078125, -0.06072998046875, -0.00019180774688720703, 0.0283660888671875, 0.0014257431030273438, -0.0269317626953125, 0.028717041015625, -0.04901123046875, -0.0218658447265625, -0.0016326904296875, 0.0143890380859375, 0.10150146484375, -0.00897979736328125, -0.036529541015625, 0.0180816650390625, -0.010345458984375, -0.0228729248046875, -0.00627899169921875, 0.033416748046875, -0.0325927734375, -0.030853271484375, 0.00783538818359375, -0.04339599609375, -0.04217529296875, -0.02252197265625, -0.082275390625, 0.088134765625, 0.026947021484375, 0.054962158203125, 0.00394439697265625, 0.0246734619140625, -0.0289154052734375, 0.0123138427734375, -0.0308837890625, 0.0219268798828125, 0.045196533203125, 0.07672119140625, 0.00583648681640625, 0.002597808837890625, 0.036834716796875, 0.0345458984375, 0.0087127685546875, 0.005107879638671875, 0.0223236083984375, 0.0211029052734375, 0.04876708984375, 0.035369873046875, 0.003437042236328125, -0.0093994140625, -0.033721923828125, -0.0017690658569335938, 0.0025577545166015625, -0.078857421875, 0.002948760986328125, -0.0258636474609375, -0.0024089813232421875, -0.0109405517578125, 0.0108184814453125, 0.0078582763671875, -0.00698089599609375, -0.0142364501953125, -0.03558349609375, -0.00795745849609375, 0.0225830078125, -0.01358795166015625, 0.007335662841796875, 0.0046844482421875, 0.01380157470703125, -0.02557373046875, -0.0367431640625, -0.018829345703125, 0.032135009765625, 0.00907135009765625, 0.0138702392578125, -0.040863037109375, 0.0008444786071777344, 0.01236724853515625, -0.00966644287109375, -0.0108489990234375, 0.043670654296875, -0.01395416259765625, 0.045135498046875, 0.0210113525390625, 0.008270263671875, -0.0250396728515625, 0.0221710205078125, 0.013031005859375, 0.037109375, -0.0302581787109375, -0.03839111328125, -0.00537872314453125, -0.0114593505859375, -0.01554107666015625, 0.005321502685546875, -0.0200653076171875, 0.02056884765625, 0.042144775390625, -0.0171051025390625, -0.001895904541015625, -0.00879669189453125, -0.0178070068359375, -0.00507354736328125, -0.00782012939453125, 0.016937255859375, 0.0075531005859375, -0.0196075439453125, -0.0012865066528320312, 0.021484375, 0.059295654296875, 0.0023784637451171875, 0.039031982421875, -0.02569580078125, -0.022125244140625, -0.0184326171875, -0.0185546875, -0.049530029296875, 0.034576416015625, -0.05645751953125, -0.024078369140625, -0.0009250640869140625, 0.05511474609375, 0.01024627685546875, 0.0100555419921875, -0.01396942138671875, -0.01073455810546875, 0.0309600830078125, -0.0024242401123046875, 0.023406982421875, -0.023193359375, 0.0031986236572265625, -0.0180511474609375, -0.046661376953125, -0.01641845703125, -0.041595458984375, -0.01111602783203125, -0.0147857666015625, 0.0328369140625, -0.033843994140625, 0.0312347412109375, 0.0080413818359375, -0.005237579345703125, 0.041778564453125, 0.0277099609375, 0.037200927734375, 0.0200958251953125, -0.059539794921875, -0.004894256591796875, -0.03302001953125, -0.0291595458984375, 0.00684356689453125, 0.0311126708984375, -0.00992584228515625, 0.0186767578125, 0.04351806640625, 0.03753662109375, 0.01153564453125, -0.0291748046875, -0.0017976760864257812, -0.02197265625, 0.05499267578125, 0.0240325927734375, 0.001766204833984375, -0.0158843994140625, 0.008697509765625, 0.04730224609375, 0.00555419921875, 0.06573486328125, -0.0394287109375, 0.00533294677734375, 0.0247955322265625, 0.048004150390625, -0.038299560546875, -0.01264190673828125, 0.0577392578125, -0.00836944580078125, 0.01212310791015625, -0.0255584716796875, -0.06365966796875, 0.049072265625, 0.0199432373046875, 0.0142822265625, 0.039276123046875, -0.024505615234375, 0.0029354095458984375, 0.01084136962890625, -0.019775390625, -0.0284881591796875, -0.01526641845703125, 0.007793426513671875, 0.0078887939453125, 0.0042724609375, -0.00862884521484375, -0.0010404586791992188, 0.056304931640625, -0.035614013671875, -0.04046630859375, 0.0006256103515625, -0.0665283203125, -0.038604736328125, 0.013824462890625, 0.028076171875, -0.041656494140625, 0.01009368896484375, -0.00982666015625, -0.0141448974609375, 0.0294189453125, -0.007175445556640625, 0.0239410400390625, -0.0367431640625, -0.0223846435546875, -0.025299072265625, 0.00604248046875, -0.043731689453125, -0.0162811279296875, 0.01325225830078125, -0.00017642974853515625, -0.0092620849609375, -0.0244140625, -0.036529541015625, -0.0079345703125, 0.0175323486328125, 0.027862548828125, 0.02423095703125, 0.01190948486328125, -0.0202789306640625, -0.01439666748046875, 0.0201568603515625, -0.010467529296875, 0.000682830810546875, -0.0184783935546875, -0.029937744140625, 0.0024585723876953125, 0.0019025802612304688, 0.00603485107421875, 0.0115509033203125, 0.01325225830078125, -0.01441192626953125, 0.06317138671875, -0.0109405517578125, -0.052001953125, 0.062408447265625, 0.030029296875, 0.07147216796875, -0.034942626953125, -0.037628173828125, 0.01436614990234375, 0.0179901123046875, 0.06658935546875, -0.0099945068359375, -0.0215301513671875, 0.03594970703125, -0.0125885009765625, 0.0087127685546875, -0.050506591796875, -0.0079193115234375, -0.046356201171875, 0.02056884765625, 0.003208160400390625, 0.0013551712036132812, 0.0147705078125, -0.048126220703125, -0.1090087890625, 0.034454345703125, -0.01433563232421875, -0.050506591796875, -0.039642333984375, 0.0160675048828125, -0.006046295166015625, -0.0010671615600585938, -0.021697998046875, -0.0005092620849609375, 0.0007915496826171875, 0.05438232421875, 0.0120849609375, 0.0175933837890625, 0.031005859375, 0.01406097412109375, -0.05517578125, -0.0157623291015625, -0.0457763671875, -0.006061553955078125, -0.0005664825439453125, -0.005794525146484375, 0.014068603515625, 0.0167083740234375, -0.037994384765625, -0.040496826171875, -0.0044403076171875, 0.01446533203125, 0.0255889892578125, 0.0065155029296875, -0.0224761962890625, 0.006458282470703125, 0.05072021484375, 0.0318603515625, 0.0244903564453125, -0.042877197265625, -0.0306243896484375, -0.051513671875, -0.0703125, 0.017578125, 0.040374755859375, -0.065185546875, 0.046234130859375, 0.036712646484375, -0.040191650390625, -0.00939178466796875, 0.017669677734375, -0.080078125, 0.019500732421875, -0.0400390625, -0.00824737548828125, -0.045989990234375, -0.0100555419921875, 0.022247314453125, -0.016204833984375, -0.00150299072265625, -0.01959228515625, 0.03472900390625, -0.007358551025390625, -0.01277923583984375, 0.0333251953125, 0.08416748046875, -0.0843505859375, -0.042633056640625, 0.03167724609375, 0.008270263671875, 0.004245758056640625, -0.00894927978515625, 0.016448974609375, 0.025421142578125, -0.014434814453125, 0.02099609375, -0.0183563232421875, 0.035919189453125, -0.039093017578125, 0.057220458984375, -0.00659942626953125, 0.05560302734375, 0.00926971435546875, 0.02728271484375, 0.027557373046875, -0.021270751953125, 0.03662109375, -0.032684326171875, -0.0142822265625, -0.015350341796875, -0.02679443359375, -0.06341552734375, 0.03399658203125, -0.04913330078125, -0.007740020751953125, 0.028411865234375 ]
ba0245626d64423d5bd8b4ef70d1e93f9e1b93ca
Wordpress Stackexchange Q: Count post that have specific meta value How do I count only the post that have a specific custom meta field value? $productCount = wp_count_posts('product'); echo $productCount->publish; That gives me all the total of all the post. How do I find out how many of those post have say a custom meta value of cat? A: There is no default/native function in wordpress to count posts from a specific meta value. wp_count_posts only counts the amount of posts according to post type It might be useful here to use WP_Query to create a custom query to get all posts with that specific meta value and then use $wp_query->found_posts to get the post count. This should do it $query = new WP_Query( array( 'meta_key' => 'color', 'meta_value' => 'blue' ) ); echo $query->found_posts;
Q: Count post that have specific meta value How do I count only the post that have a specific custom meta field value? $productCount = wp_count_posts('product'); echo $productCount->publish; That gives me all the total of all the post. How do I find out how many of those post have say a custom meta value of cat? A: There is no default/native function in wordpress to count posts from a specific meta value. wp_count_posts only counts the amount of posts according to post type It might be useful here to use WP_Query to create a custom query to get all posts with that specific meta value and then use $wp_query->found_posts to get the post count. This should do it $query = new WP_Query( array( 'meta_key' => 'color', 'meta_value' => 'blue' ) ); echo $query->found_posts; A: Probably the best way to do this is by: global $wpdb; $count = $wpdb->get_row("SELECT COUNT(*) AS THE_COUNT FROM $wpdb->postmeta WHERE (meta_key = 'color' AND meta_value = 'blue')"); return $count->THE_COUNT; Here's a collection of functions to make it easier to use: /** * Returns the number of posts a particular metakey is used for. * Optionally qualified by a specific value or values in an array of the meta key. * * @param string $key * @param null|string|array $value * * @return mixed */ function get_meta_count( $key, $value = null) { global $wpdb; $where = get_meta_where($key, $value); $count = $wpdb->get_row("SELECT COUNT(*) AS THE_COUNT FROM $wpdb->postmeta WHERE $where"); return $count->THE_COUNT; } /** * Returns the postmeta records for a particular metakey. * Optionally qualified by a specific value or values in an array of the meta key. * * @param string $key * @param null|string|array $value * * @return mixed */ function get_meta ( $key, $value = null) { global $wpdb; $where = get_meta_where($key, $value); return $wpdb->get_results("SELECT * FROM $wpdb->postmeta WHERE $where"); } /** * Returns the where string for a metakey query * * @param string $key * @param null|string|array $value * * @return string */ function get_meta_where( $key, $value) { $where = "meta_key = '$key'"; if (null !== $value) { if (\is_array($value)) { \array_walk($value,'add_quote'); $in = \implode(',', $value); // Seperate values with a comma $where .= " AND meta_value IN ($in)"; } else { $where .= " AND meta_value = '$value'"; } } return $where; } /** * Puts quotes around each value in an array when used as a callback function * * @param $value * @param $key */ function add_quote( &$value, $key) { $value = "'$value'"; }
wordpress
{ "language": "en", "length": 413, "provenance": "stackexchange_00019.jsonl.gz:446216", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149925" }
[ 0.0182952880859375, -0.01313018798828125, 0.0357666015625, 0.00807952880859375, -0.01538848876953125, -0.0094146728515625, 0.0457763671875, -0.044952392578125, -0.007465362548828125, 0.00643157958984375, -0.0109405517578125, -0.023773193359375, -0.048919677734375, -0.040740966796875, -0.01328277587890625, -0.064453125, 0.0233306884765625, 0.0206298828125, 0.04473876953125, -0.002765655517578125, 0.0272369384765625, 0.0147705078125, 0.031219482421875, 0.00696563720703125, 0.0283050537109375, -0.03363037109375, 0.0426025390625, -0.042938232421875, 0.0255584716796875, -0.0247955322265625, 0.0270233154296875, 0.0272369384765625, 0.0203094482421875, -0.0300140380859375, 0.02264404296875, 0.00811767578125, 0.0166473388671875, -0.012451171875, 0.00879669189453125, 0.011688232421875, 0.046051025390625, -0.0287628173828125, 0.0218353271484375, -0.00730133056640625, 0.025787353515625, -0.02606201171875, 0.048187255859375, -0.046478271484375, 0.0540771484375, -0.05841064453125, -0.040985107421875, 0.058563232421875, -0.00934600830078125, -0.05059814453125, -0.0224151611328125, -0.0190277099609375, 0.01123046875, -0.02410888671875, 0.043487548828125, -0.029205322265625, -0.0242156982421875, -0.02197265625, 0.03594970703125, 0.00170135498046875, -0.0022068023681640625, -0.0088958740234375, -0.046661376953125, 0.029266357421875, -0.005390167236328125, -0.0266876220703125, 0.013519287109375, -0.0017986297607421875, 0.0024738311767578125, -0.0135498046875, 0.0119781494140625, -0.05194091796875, 0.01244354248046875, -0.043304443359375, -0.0172882080078125, 0.041168212890625, 0.0176239013671875, -0.00373077392578125, 0.0264434814453125, -0.0104217529296875, -0.01279449462890625, -0.012054443359375, -0.0159149169921875, -0.00959014892578125, -0.00809478759765625, -0.0589599609375, -0.01494598388671875, -0.0277099609375, -0.058929443359375, 0.00949859619140625, -0.00833892822265625, -0.027130126953125, 0.0167083740234375, 0.044708251953125, -0.035552978515625, -0.05169677734375, 0.00536346435546875, -0.026947021484375, -0.070556640625, -0.0029430389404296875, 0.045867919921875, 0.03729248046875, -0.0298004150390625, 0.02911376953125, 0.07904052734375, 0.04217529296875, 0.01401519775390625, 0.0143280029296875, -0.0265655517578125, -0.00555419921875, -0.04046630859375, 0.041107177734375, -0.01442718505859375, -0.03656005859375, -0.0104827880859375, -0.00278472900390625, -0.00661468505859375, 0.0171356201171875, 0.06500244140625, -0.06390380859375, 0.037994384765625, 0.02374267578125, -0.043914794921875, -0.06365966796875, -0.0178375244140625, 0.05303955078125, -0.03704833984375, -0.016876220703125, 0.05816650390625, 0.0291595458984375, 0.005313873291015625, -0.037506103515625, -0.0037937164306640625, -0.043609619140625, -0.015777587890625, 0.01458740234375, -0.01352691650390625, -0.04400634765625, 0.01910400390625, -0.020751953125, -0.0089569091796875, 0.01345062255859375, 0.004955291748046875, 0.01348876953125, -0.004543304443359375, -0.0333251953125, -0.00496673583984375, 0.004405975341796875, 0.01308441162109375, 0.0146026611328125, -0.01154327392578125, 0.0301361083984375, 0.008636474609375, -0.00926971435546875, -0.02447509765625, -0.00852203369140625, 0.032257080078125, -0.01424407958984375, -0.03125, 0.0310211181640625, -0.02197265625, 0.032196044921875, 0.018798828125, -0.009185791015625, 0.00870513916015625, 0.0210113525390625, 0.014892578125, 0.022186279296875, 0.009490966796875, -0.0226593017578125, -0.017913818359375, -0.0377197265625, -0.00493621826171875, 0.0187530517578125, 0.042755126953125, 0.0108184814453125, -0.0177001953125, -0.024383544921875, 0.084716796875, -0.0178070068359375, -0.049896240234375, 0.0264129638671875, 0.013946533203125, 0.03704833984375, 0.00998687744140625, -0.007518768310546875, 0.060394287109375, 0.0211181640625, 0.0015859603881835938, 0.00685882568359375, -0.005695343017578125, -0.01152801513671875, -0.0104827880859375, 0.0176849365234375, -0.01482391357421875, -0.007007598876953125, 0.04583740234375, 0.01091766357421875, -0.01317596435546875, -0.0162811279296875, -0.0643310546875, 0.007297515869140625, -0.01045989990234375, 0.03564453125, -0.056396484375, 0.019317626953125, 0.046875, -0.01470947265625, -0.031402587890625, -0.006175994873046875, -0.0011310577392578125, -0.048004150390625, 0.00849151611328125, 0.004940032958984375, -0.0306396484375, -0.01995849609375, -0.006938934326171875, -0.0291290283203125, -0.0077056884765625, 0.07952880859375, 0.053497314453125, 0.0261383056640625, -0.0180816650390625, 0.00905609130859375, 0.07012939453125, 0.031402587890625, -0.020172119140625, -0.024993896484375, -0.0261077880859375, -0.060302734375, -0.05560302734375, 0.007518768310546875, -0.0205078125, -0.054473876953125, -0.003368377685546875, 0.0736083984375, 0.03070068359375, 0.049102783203125, 0.01241302490234375, 0.01605224609375, 0.0677490234375, -0.033599853515625, -0.0034275054931640625, -0.004291534423828125, 0.02264404296875, 0.05413818359375, -0.009033203125, -0.0015516281127929688, 0.0205230712890625, -0.024658203125, -0.0018701553344726562, 0.03863525390625, -0.00396728515625, -0.000019729137420654297, -0.036895751953125, 0.027435302734375, -0.00664520263671875, 0.0179595947265625, 0.00930023193359375, -0.0082550048828125, 0.033447265625, -0.01271820068359375, 0.03460693359375, 0.0309295654296875, -0.0233917236328125, -0.0103302001953125, 0.0161590576171875, 0.031402587890625, -0.00920867919921875, -0.0218963623046875, -0.05059814453125, 0.03741455078125, -0.062469482421875, 0.03936767578125, 0.04345703125, -0.01425933837890625, 0.00021636486053466797, 0.027374267578125, -0.0389404296875, -0.0005435943603515625, -0.02264404296875, -0.07940673828125, -0.0021686553955078125, 0.0440673828125, -0.0265655517578125, -0.02593994140625, -0.0008382797241210938, 0.045989990234375, -0.0003025531768798828, 0.0120849609375, 0.0275115966796875, 0.0008249282836914062, -0.0090484619140625, -0.07403564453125, 0.057159423828125, -0.05206298828125, 0.0657958984375, 0.0775146484375, -0.04095458984375, 0.06878662109375, -0.0038394927978515625, 0.0173492431640625, -0.0274810791015625, 0.0531005859375, 0.0211639404296875, -0.044708251953125, -0.033233642578125, -0.0035343170166015625, 0.031280517578125, 0.038909912109375, 0.028900146484375, -0.01161956787109375, 0.034271240234375, 0.0266265869140625, -0.07635498046875, -0.1097412109375, 0.03594970703125, -0.037689208984375, -0.0156707763671875, -0.03582763671875, -0.033905029296875, 0.01230621337890625, -0.03753662109375, -0.00897979736328125, -0.06689453125, -0.0007491111755371094, -0.025421142578125, -0.0711669921875, -0.0293426513671875, -0.00786590576171875, -0.00007283687591552734, -0.005603790283203125, -0.0036716461181640625, 0.06854248046875, 0.0029621124267578125, -0.0665283203125, 0.0015087127685546875, 0.01198577880859375, -0.010955810546875, 0.025054931640625, -0.0005011558532714844, -0.0245819091796875, -0.00344085693359375, 0.01039886474609375, 0.0015287399291992188, -0.0095367431640625, 0.0202178955078125, -0.0210418701171875, 0.04498291015625, 0.0007967948913574219, 0.05029296875, 0.01849365234375, -0.0626220703125, 0.021270751953125, 0.03790283203125, -0.033294677734375, -0.03521728515625, -0.021728515625, -0.052398681640625, 0.00969696044921875, 0.0198516845703125, 0.03009033203125, -0.02838134765625, 0.0224151611328125, 0.0209503173828125, -0.0012788772583007812, 0.03228759765625, -0.024261474609375, 0.0211944580078125, 0.0180816650390625, 0.031402587890625, -0.036102294921875, -0.03826904296875, -0.0552978515625, 0.06170654296875, -0.02117919921875, 0.00153350830078125, -0.007541656494140625, 0.0215301513671875, -0.01678466796875, -0.0270843505859375, 0.044189453125, 0.048828125, 0.057098388671875, -0.0179595947265625, -0.061614990234375, -0.00930023193359375, 0.09063720703125, 0.0223388671875, -0.03936767578125, -0.034912109375, 0.0026111602783203125, 0.0095367431640625, -0.0304718017578125, 0.033294677734375, -0.00772857666015625, -0.10284423828125, -0.00018990039825439453, -0.005107879638671875, -0.041107177734375, -0.0155029296875, 0.01329803466796875, -0.07086181640625, -0.0245819091796875, 0.03253173828125, -0.0457763671875, 0.0287017822265625, -0.020416259765625, 0.024444580078125, -0.0289154052734375, -0.007045745849609375, -0.0321044921875, -0.006160736083984375, -0.01178741455078125, -0.004062652587890625, 0.021728515625, 0.00547027587890625, 0.00925445556640625, 0.0037326812744140625, 0.021575927734375, -0.0012483596801757812, 0.055908203125, -0.017822265625, 0.004901885986328125, -0.0023441314697265625, -0.0131988525390625, 0.006328582763671875, -0.0210113525390625, 0.00460052490234375, -0.0252227783203125, -0.0171051025390625, 0.0200042724609375, -0.0303497314453125, 0.019073486328125, -0.023529052734375, -0.0166168212890625, -0.00945281982421875, -0.009765625, -0.01454925537109375, 0.00894927978515625, -0.00223541259765625, -0.00226593017578125, -0.00540924072265625, -0.00855255126953125, 0.0369873046875, 0.00656890869140625, -0.021697998046875, 0.010101318359375, 0.07177734375, 0.0019855499267578125, -0.03460693359375, -0.06793212890625, -0.0085906982421875, 0.0428466796875, 0.017120361328125, -0.005931854248046875, -0.020599365234375, -0.040679931640625, 0.05596923828125, 0.013885498046875, 0.0242919921875, -0.01806640625, 0.027618408203125, -0.01861572265625, -0.0181121826171875, 0.0206451416015625, -0.0238037109375, 0.0204925537109375, 0.03765869140625, -0.004978179931640625, -0.0208282470703125, 0.0286102294921875, 0.0263671875, -0.021728515625, -0.020751953125, -0.01546478271484375, -0.02239990234375, 0.008544921875, 0.00434112548828125, 0.0299072265625, 0.0214996337890625, -0.00972747802734375, 0.039825439453125, 0.032196044921875, 0.0103302001953125, 0.0090179443359375, 0.01132965087890625, -0.020233154296875, 0.00004696846008300781, 0.0302581787109375, -0.0214691162109375, 0.003520965576171875, -0.00641632080078125, 0.0258026123046875, -0.0201873779296875, -0.0626220703125, -0.001461029052734375, -0.02459716796875, 0.0019140243530273438, 0.021026611328125, -0.0161285400390625, 0.052947998046875, 0.064453125, -0.048431396484375, -0.01477813720703125, -0.017364501953125, -0.007129669189453125, -0.07275390625, 0.004638671875, 0.0032958984375, 0.0036449432373046875, 0.0034427642822265625, 0.0908203125, -0.0211029052734375, 0.067138671875, -0.00893402099609375, 0.030731201171875, 0.01837158203125, 0.06536865234375, 0.0296630859375, -0.055694580078125, -0.038848876953125, 0.05218505859375, -0.043609619140625, -0.0347900390625, -0.0240325927734375, 0.0081329345703125, 0.026885986328125, 0.011474609375, 0.00783538818359375, 0.0191650390625, -0.00046372413635253906, -0.01389312744140625, -0.0274658203125, -0.04388427734375, -0.00736236572265625, -0.0012426376342773438, 0.024688720703125, 0.005764007568359375, 0.004711151123046875, 0.0162200927734375, -0.01123046875, -0.0059814453125, 0.028564453125, -0.036651611328125, 0.0494384765625, -0.031829833984375, -0.043487548828125, -0.0238800048828125, -0.0015411376953125, 0.0054473876953125, -0.0256195068359375, -0.053192138671875, -0.0060882568359375, -0.0287628173828125, 0.03656005859375, -0.005649566650390625, 0.06201171875, -0.029937744140625, -0.0252685546875, -0.0156402587890625, 0.01300048828125, 0.01406097412109375, 0.007579803466796875, -0.0016832351684570312, -0.0167236328125, 0.0024700164794921875, -0.0181121826171875, 0.09173583984375, 0.031341552734375, -0.00797271728515625, -0.032318115234375, 0.01274871826171875, 0.04144287109375, -0.0196685791015625, -0.0379638671875, -0.0102386474609375, 0.01226043701171875, 0.01038360595703125, 0.056854248046875, -0.0089874267578125, 0.023468017578125, 0.00827789306640625, 0.02593994140625, 0.012908935546875, 0.0302886962890625, 0.039581298828125, -0.04901123046875, 0.006679534912109375, -0.02032470703125, -0.024810791015625, -0.0128326416015625, 0.00708770751953125, -0.011138916015625, 0.003093719482421875, -0.012969970703125, 0.0043182373046875, -0.0208740234375, 0.00147247314453125, -0.0080108642578125, 0.0280609130859375, 0.0215301513671875, 0.020355224609375, 0.03759765625, -0.012969970703125, -0.005260467529296875, -0.00296783447265625, -0.0156402587890625, -0.004852294921875, 0.0181732177734375, -0.0038051605224609375, 0.00907135009765625, -0.0361328125, 0.047882080078125, 0.0531005859375, 0.01189422607421875, 0.0256805419921875, 0.02935791015625, 0.018951416015625, -0.01132965087890625, 0.0001455545425415039, 0.005035400390625, -0.004695892333984375, 0.06005859375, -0.0025043487548828125, -0.01493072509765625, 0.039764404296875, -0.0239410400390625, 0.01210784912109375, 0.0271759033203125, 0.0181884765625, -0.039154052734375, 0.0127716064453125, -0.001522064208984375, -0.034454345703125, 0.0231475830078125, 0.003631591796875, -0.01065826416015625, -0.01171112060546875, 0.014984130859375, -0.0196380615234375, -0.01496124267578125, 0.0015497207641601562, 0.00899505615234375, -0.0004012584686279297, 0.005352020263671875, -0.0166473388671875, -0.007625579833984375, 0.013641357421875, -0.0390625, 0.004764556884765625, -0.03155517578125, -0.036956787109375, -0.0224609375, -0.026458740234375, 0.0015497207641601562, -0.08233642578125, -0.0227508544921875, -0.0667724609375, 0.038116455078125, 0.035888671875, 0.0231170654296875, 0.062347412109375, 0.077880859375, 0.0032215118408203125, 0.00601959228515625, 0.033660888671875, 0.0186004638671875, -0.06719970703125, -0.034027099609375, -0.0030155181884765625, 0.01143646240234375, -0.030792236328125, 0.024871826171875, -0.0234832763671875, -0.03765869140625, 0.0012035369873046875, 0.03546142578125, 0.058746337890625, -0.02740478515625, -0.02288818359375, 0.036407470703125, 0.045654296875, -0.0084228515625, -0.00142669677734375, 0.024871826171875, -0.00963592529296875, 0.0330810546875, 0.01056671142578125, 0.007404327392578125, -0.0323486328125, -0.007793426513671875, -0.052215576171875, 0.055145263671875, -0.010894775390625, 0.01044464111328125, 0.004062652587890625, 0.0241851806640625, 0.0006313323974609375, 0.0118255615234375, -0.052032470703125, 0.07861328125, 0.005619049072265625, 0.06890869140625, -0.08343505859375, -0.02410888671875, 0.00848388671875, 0.04180908203125, 0.049072265625, 0.0121917724609375, -0.02484130859375, -0.018524169921875, 0.0147552490234375, 0.033599853515625, -0.01261138916015625, 0.03875732421875, 0.00412750244140625, 0.055328369140625, 0.09130859375, -0.057159423828125, 0.0261077880859375, 0.021209716796875, 0.0043487548828125, 0.022491455078125, 0.015869140625, 0.012786865234375, -0.029022216796875, 0.0241241455078125, 0.00414276123046875, -0.033477783203125, 0.006626129150390625, -0.0031185150146484375, 0.002552032470703125, 0.04315185546875, 0.0266571044921875, -0.048187255859375, -0.02099609375, -0.0290679931640625, 0.049713134765625, -0.00699615478515625, 0.044219970703125, 0.0211639404296875, 0.00862884521484375, 0.09442138671875, -0.0160064697265625, 0.0126953125, 0.0012340545654296875, 0.004604339599609375, 0.053619384765625, 0.004322052001953125, 0.002593994140625, -0.0226593017578125, 0.056396484375, -0.01873779296875, 0.0184173583984375, -0.06756591796875, -0.03955078125, 0.0159454345703125, -0.01442718505859375, -0.0220794677734375, -0.01812744140625, -0.028289794921875, 0.0066070556640625, 0.00574493408203125, -0.06256103515625, -0.005992889404296875, 0.02496337890625, 0.04034423828125, 0.0019235610961914062, 0.0053253173828125, -0.051910400390625, -0.051605224609375, -0.036102294921875, -0.0157318115234375, 0.033233642578125, 0.068359375, 0.02728271484375, 0.0283203125, -0.017974853515625, -0.035491943359375, -0.00293731689453125, 0.017486572265625, 0.01300048828125, 0.00046753883361816406, -0.02825927734375, -0.0240020751953125, 0.0302734375, 0.03173828125, 0.01178741455078125, 0.0265045166015625, 0.03875732421875, 0.057098388671875, 0.0205841064453125, -0.019012451171875, 0.0293426513671875, -0.0159149169921875, -0.034759521484375, -0.02001953125, 0.01251220703125, 0.005645751953125, 0.0115203857421875, -0.01482391357421875, 0.05584716796875, -0.0036640167236328125, 0.01021575927734375, -0.019287109375, 0.025054931640625, -0.032257080078125, 0.0302734375, 0.036041259765625, 0.03521728515625, 0.03497314453125, -0.01824951171875, 0.0171356201171875, -0.0012683868408203125, -0.06396484375, 0.014923095703125, 0.0298004150390625, -0.047210693359375, 0.06390380859375, -0.0160675048828125, -0.00794219970703125, 0.0196533203125, 0.005046844482421875, 0.0054779052734375, 0.0156097412109375, 0.01080322265625, 0.003887176513671875, -0.004299163818359375, -0.0233917236328125, 0.037841796875, 0.039520263671875, 0.0262451171875, -0.00026535987854003906, -0.0007219314575195312, 0.01849365234375, -0.0141754150390625, 0.0147247314453125, -0.00220489501953125, -0.0095367431640625, 0.00919342041015625, 0.02606201171875, 0.020111083984375, -0.019073486328125, -0.0303802490234375, -0.0225677490234375, 0.0655517578125, -0.03509521484375, 0.0026569366455078125, -0.00878143310546875, 0.0283966064453125, -0.039154052734375, 0.00791168212890625, -0.04132080078125, 0.019866943359375, -0.0386962890625, -0.07061767578125, 0.048919677734375, -0.00988006591796875, 0.040252685546875, 0.01519012451171875, -0.0025272369384765625, -0.030426025390625, 0.0249176025390625, -0.017974853515625, 0.025543212890625, 0.036895751953125, -0.0107421875, -0.006084442138671875, 0.032318115234375, -0.007419586181640625, 0.01540374755859375, 0.01314544677734375, 0.0242919921875, 0.02838134765625, -0.03961181640625, -0.03546142578125, 0.0102996826171875, 0.0244598388671875, 0.0016040802001953125, -0.00275421142578125, -0.017822265625, -0.006381988525390625, -0.01461029052734375, -0.009002685546875, -0.01461029052734375, -0.034820556640625, 0.004215240478515625, -0.0027446746826171875, 0.008819580078125, -0.01401519775390625, 0.03466796875, -0.0098876953125, 0.011138916015625, 0.004077911376953125, -0.01045989990234375, 0.024627685546875, -0.0194549560546875, -0.0341796875, -0.009307861328125, -0.05047607421875, 0.025909423828125, 0.0631103515625, -0.0106048583984375, 0.01256561279296875, -0.01123046875, -0.02734375, 0.00841522216796875, 0.0265350341796875, 0.019744873046875, -0.040679931640625, -0.0099029541015625, 0.00933837890625, 0.03094482421875, 0.0284423828125, 0.053009033203125, 0.004146575927734375, 0.0193328857421875, 0.003124237060546875, -0.0292205810546875, -0.07489013671875, 0.0279541015625, -0.0823974609375, -0.021453857421875, -0.0166015625, 0.0098114013671875, 0.03753662109375, -0.0171356201171875, -0.08013916015625, 0.017547607421875, -0.019561767578125, -0.0419921875, -0.06005859375, -0.024505615234375, 0.01287841796875, 0.0361328125, -0.0219268798828125, -0.0190887451171875, -0.07073974609375, 0.0270843505859375, 0.034698486328125, -0.0364990234375, 0.05072021484375, 0.03143310546875, -0.08056640625, 0.0213775634765625, 0.00142669677734375, 0.0018215179443359375, -0.00501251220703125, -0.0090789794921875, 0.017242431640625, 0.02264404296875, -0.0596923828125, -0.0030994415283203125, 0.00446319580078125, 0.0494384765625, 0.00861358642578125, -0.05450439453125, -0.0280914306640625, -0.038818359375, 0.021881103515625, 0.0258636474609375, 0.01226806640625, -0.0264892578125, 0.00775146484375, -0.0235137939453125, 0.0130767822265625, -0.044158935546875, -0.00174713134765625, -0.0718994140625, -0.03778076171875, -0.006389617919921875, -0.025482177734375, -0.005718231201171875, 0.0208587646484375, -0.037017822265625, 0.00815582275390625, 0.0200347900390625, 0.0076904296875, -0.044708251953125, -0.01433563232421875, -0.0018205642700195312, 0.004459381103515625, 0.0009608268737792969, 0.0024242401123046875, 0.00635528564453125, -0.007686614990234375, 0.06646728515625, 0.0325927734375, -0.034393310546875, -0.0020885467529296875, 0.033355712890625, 0.007205963134765625, 0.012451171875, -0.01458740234375, -0.052642822265625, -0.0173492431640625, 0.004680633544921875, 0.0080718994140625, -0.0103759765625, -0.01654052734375, -0.0036334991455078125, 0.005199432373046875, 0.031005859375, 0.0006437301635742188, 0.0307159423828125, -0.0118560791015625, 0.0140228271484375, -0.006450653076171875, -0.00738525390625, 0.01436614990234375, 0.0072784423828125, -0.00424957275390625, -0.00786590576171875, -0.036163330078125, -0.0452880859375, 0.0106964111328125, 0.0489501953125, -0.021240234375, 0.01397705078125 ]
8911f0a32f465030cdbf44b7092d50329f719b23
Wordpress Stackexchange Q: Retrieve Product category 'NAME' by product category ID - WooCommerce? Can I retrieve woocommerce product category name by ID? Not thumbnail, not the URL, not the Sub-categories, just raw Category name. A: Use get_term_by: $id = 42; if( $term = get_term_by( 'id', $id, 'product_cat' ) ){ echo $term->name; }
Q: Retrieve Product category 'NAME' by product category ID - WooCommerce? Can I retrieve woocommerce product category name by ID? Not thumbnail, not the URL, not the Sub-categories, just raw Category name. A: Use get_term_by: $id = 42; if( $term = get_term_by( 'id', $id, 'product_cat' ) ){ echo $term->name; }
wordpress
{ "language": "en", "length": 50, "provenance": "stackexchange_00019.jsonl.gz:446246", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/150031" }
[ -0.0269622802734375, -0.00968170166015625, -0.05206298828125, -0.0372314453125, 0.01416015625, -0.0135650634765625, -0.01241302490234375, 0.0257568359375, -0.003208160400390625, 0.0301666259765625, -0.03570556640625, -0.01267242431640625, 0.00046062469482421875, -0.01403045654296875, -0.02923583984375, -0.05169677734375, 0.033203125, 0.00820159912109375, 0.0172119140625, 0.007541656494140625, -0.0264129638671875, 0.037567138671875, 0.002277374267578125, 0.0210418701171875, 0.033599853515625, -0.048065185546875, 0.06689453125, -0.024871826171875, 0.018463134765625, -0.034393310546875, 0.035369873046875, -0.0078125, 0.004016876220703125, -0.0202789306640625, 0.0693359375, 0.07281494140625, 0.0120697021484375, 0.00717926025390625, 0.06207275390625, -0.0136566162109375, 0.03948974609375, -0.0227813720703125, 0.00738525390625, 0.0007061958312988281, -0.0003082752227783203, -0.04150390625, 0.0221099853515625, -0.05224609375, 0.02215576171875, -0.007732391357421875, 0.02191162109375, 0.03936767578125, 0.028564453125, -0.02789306640625, -0.023681640625, -0.0174102783203125, -0.0382080078125, 0.03448486328125, 0.036834716796875, -0.0168914794921875, -0.03228759765625, -0.031646728515625, 0.030242919921875, -0.01035308837890625, 0.004108428955078125, 0.017547607421875, 0.0311126708984375, 0.014862060546875, -0.017822265625, 0.01383209228515625, 0.039520263671875, -0.0213623046875, 0.028594970703125, 0.0205841064453125, -0.0157012939453125, -0.075439453125, 0.025665283203125, -0.0200653076171875, 0.017364501953125, 0.012237548828125, -0.0015153884887695312, -0.03717041015625, -0.027740478515625, -0.004791259765625, 0.006504058837890625, 0.02008056640625, -0.01239013671875, -0.01555633544921875, -0.0133209228515625, -0.07672119140625, -0.004756927490234375, -0.017303466796875, -0.08563232421875, 0.0369873046875, -0.0167999267578125, -0.0308837890625, 0.00753021240234375, 0.0276336669921875, -0.016693115234375, 0.009063720703125, 0.00865936279296875, -0.034881591796875, 0.01013946533203125, -0.02685546875, 0.00983428955078125, 0.016448974609375, 0.0094757080078125, 0.03631591796875, 0.047637939453125, 0.01983642578125, -0.0009407997131347656, 0.0352783203125, 0.0036449432373046875, -0.006435394287109375, -0.0199737548828125, 0.034759521484375, -0.024383544921875, 0.01067352294921875, -0.0024394989013671875, 0.0251922607421875, 0.0179595947265625, 0.052490234375, -0.006565093994140625, 0.0038509368896484375, -0.00765228271484375, 0.01488494873046875, 0.01247406005859375, -0.052337646484375, -0.01108551025390625, -0.053680419921875, -0.0240020751953125, 0.046356201171875, 0.0321044921875, 0.02239990234375, -0.00021922588348388672, 0.01885986328125, -0.0108184814453125, 0.038848876953125, 0.01454925537109375, -0.0284576416015625, 0.0247650146484375, 0.036376953125, 0.0277099609375, -0.01325225830078125, 0.0240478515625, -0.0102996826171875, -0.00815582275390625, 0.032562255859375, 0.0135040283203125, -0.0031490325927734375, 0.04510498046875, -0.033905029296875, 0.0008687973022460938, 0.0333251953125, 0.04156494140625, 0.00952911376953125, 0.0792236328125, -0.02947998046875, -0.0254058837890625, -0.041778564453125, 0.03887939453125, -0.0017070770263671875, 0.0157623291015625, 0.0176849365234375, -0.0192108154296875, 0.0120697021484375, -0.0443115234375, -0.0175933837890625, 0.0291595458984375, 0.06781005859375, 0.0294189453125, -0.01873779296875, 0.0045318603515625, 0.00997161865234375, -0.01012420654296875, -0.01111602783203125, -0.01424407958984375, -0.01181793212890625, 0.033599853515625, 0.0030612945556640625, -0.031890869140625, -0.042877197265625, -0.0052642822265625, -0.005870819091796875, -0.03302001953125, 0.0225677490234375, 0.0228118896484375, 0.07183837890625, -0.020477294921875, 0.01531982421875, 0.045928955078125, 0.0209808349609375, -0.0670166015625, -0.0021820068359375, 0.01081085205078125, -0.011962890625, 0.0159759521484375, -0.01284027099609375, 0.01303863525390625, -0.010498046875, 0.03857421875, 0.01430511474609375, 0.001068115234375, -0.0151824951171875, -0.043121337890625, 0.0102081298828125, 0.0004112720489501953, 0.0261688232421875, 0.0142822265625, 0.033782958984375, 0.01169586181640625, 0.0162811279296875, -0.0158538818359375, -0.045440673828125, -0.0208892822265625, 0.0012149810791015625, -0.052825927734375, 0.038360595703125, -0.01102447509765625, 0.0307769775390625, -0.0230865478515625, -0.0159454345703125, -0.00856781005859375, -0.00545501708984375, 0.0157623291015625, 0.037872314453125, -0.0239105224609375, 0.0193023681640625, 0.040496826171875, 0.042236328125, -0.0309600830078125, -0.037811279296875, 0.03582763671875, 0.038970947265625, 0.0012884140014648438, 0.01715087890625, 0.032806396484375, -0.07574462890625, 0.00534820556640625, 0.03350830078125, 0.03131103515625, 0.019683837890625, -0.024261474609375, -0.03045654296875, 0.08984375, -0.0219879150390625, -0.0200653076171875, -0.01361846923828125, -0.01020050048828125, 0.03631591796875, 0.00817108154296875, 0.03228759765625, 0.0025634765625, 0.0009636878967285156, -0.0258026123046875, 0.056732177734375, -0.0262451171875, -0.0103759765625, 0.0063018798828125, 0.0167999267578125, -0.01849365234375, -0.0037403106689453125, 0.01143646240234375, -0.0175933837890625, 0.0276031494140625, 0.04803466796875, 0.028228759765625, 0.0294952392578125, -0.047607421875, 0.0147705078125, 0.00980377197265625, 0.01091766357421875, -0.00530242919921875, 0.050201416015625, 0.048004150390625, -0.05438232421875, -0.03125, -0.0092315673828125, 0.006504058837890625, 0.002765655517578125, 0.0167999267578125, 0.0635986328125, 0.03460693359375, -0.0124969482421875, -0.02935791015625, -0.0655517578125, 0.010894775390625, 0.0211181640625, -0.05047607421875, 0.007171630859375, 0.01061248779296875, 0.06494140625, -0.0260772705078125, 0.028076171875, -0.056732177734375, 0.032135009765625, 0.00021827220916748047, -0.0106201171875, 0.0228424072265625, -0.019927978515625, 0.0290679931640625, 0.050750732421875, -0.0212554931640625, 0.035552978515625, 0.01323699951171875, -0.037353515625, 0.034027099609375, -0.01009368896484375, -0.0236968994140625, 0.035125732421875, -0.11090087890625, 0.01079559326171875, 0.01218414306640625, 0.10357666015625, -0.0228271484375, -0.05377197265625, 0.023040771484375, 0.034149169921875, -0.06878662109375, -0.10028076171875, -0.0177459716796875, -0.0302886962890625, 0.00693511962890625, -0.004505157470703125, 0.004131317138671875, 0.00122833251953125, 0.002330780029296875, 0.0080413818359375, 0.0211334228515625, -0.0350341796875, -0.055389404296875, -0.048431396484375, -0.061492919921875, 0.005115509033203125, -0.012115478515625, -0.0013580322265625, 0.0113067626953125, -0.009674072265625, -0.01446533203125, -0.0290374755859375, 0.0175628662109375, 0.03253173828125, -0.004795074462890625, 0.009368896484375, -0.025146484375, -0.0248870849609375, -0.009521484375, 0.007282257080078125, -0.01934814453125, -0.0169677734375, 0.022613525390625, -0.005161285400390625, 0.01297760009765625, 0.0218505859375, 0.039886474609375, -0.0092315673828125, -0.0196380615234375, 0.03271484375, 0.04498291015625, -0.0264892578125, -0.0139007568359375, -0.0341796875, -0.0305938720703125, 0.03460693359375, 0.02490234375, 0.0037975311279296875, -0.0201416015625, 0.021148681640625, 0.01201629638671875, -0.0009579658508300781, -0.027191162109375, -0.050201416015625, 0.010986328125, 0.0178680419921875, 0.052642822265625, 0.0178680419921875, 0.0122528076171875, -0.034820556640625, 0.0165863037109375, 0.00989532470703125, 0.005741119384765625, 0.01396942138671875, -0.01421356201171875, 0.01079559326171875, -0.049163818359375, 0.042327880859375, -0.052947998046875, -0.00402069091796875, -0.03350830078125, -0.01154327392578125, -0.00588226318359375, 0.072021484375, -0.0016012191772460938, -0.02423095703125, -0.021514892578125, 0.004627227783203125, -0.034332275390625, -0.0274200439453125, -0.04180908203125, -0.0021648406982421875, -0.06146240234375, 0.00753021240234375, -0.00597381591796875, -0.036163330078125, 0.0013895034790039062, 0.0016584396362304688, -0.036285400390625, -0.028717041015625, 0.0254364013671875, -0.0457763671875, 0.03155517578125, 0.007785797119140625, 0.002536773681640625, 0.01751708984375, -0.01500701904296875, -0.037353515625, -0.0038471221923828125, -0.01221466064453125, 0.048614501953125, -0.005985260009765625, -0.03173828125, 0.0220489501953125, -0.022247314453125, 0.038970947265625, 0.0060882568359375, 0.027496337890625, 0.006595611572265625, 0.02789306640625, -0.0180511474609375, -0.0288543701171875, -0.0045318603515625, -0.04791259765625, -0.012176513671875, -0.05047607421875, -0.0162506103515625, -0.0089263916015625, -0.0234222412109375, 0.03582763671875, -0.0202178955078125, -0.001819610595703125, -0.0970458984375, -0.035003662109375, 0.02435302734375, -0.0177154541015625, -0.0225982666015625, 0.025604248046875, -0.0123291015625, -0.061187744140625, 0.0704345703125, 0.03240966796875, -0.017669677734375, -0.0107269287109375, 0.051727294921875, 0.00738525390625, -0.04107666015625, -0.01708984375, 0.01085662841796875, 0.03863525390625, 0.00867462158203125, 0.01922607421875, -0.00325775146484375, -0.031402587890625, 0.04498291015625, 0.0185089111328125, 0.014495849609375, 0.0024261474609375, 0.027374267578125, -0.02447509765625, -0.033447265625, 0.0265045166015625, -0.03662109375, 0.005016326904296875, 0.0191802978515625, -0.035980224609375, -0.01221466064453125, -0.057952880859375, 0.047515869140625, -0.0142974853515625, 0.0499267578125, -0.038116455078125, -0.0074920654296875, 0.0211334228515625, -0.03741455078125, 0.0548095703125, 0.03662109375, -0.01080322265625, 0.0010318756103515625, -0.017059326171875, -0.0096588134765625, -0.019866943359375, -0.033050537109375, -0.026214599609375, -0.0167083740234375, -0.0178680419921875, -0.037139892578125, 0.006313323974609375, -0.0014352798461914062, -0.005222320556640625, -0.0167083740234375, -0.01837158203125, -0.01751708984375, -0.0197296142578125, -0.009185791015625, 0.03570556640625, -0.03997802734375, 0.01194000244140625, 0.04119873046875, -0.00046515464782714844, 0.0188751220703125, -0.054443359375, 0.0192413330078125, -0.0302886962890625, 0.0258636474609375, 0.00864410400390625, -0.00017118453979492188, 0.01971435546875, 0.08612060546875, -0.01427459716796875, 0.05950927734375, -0.0153656005859375, 0.016448974609375, -0.00904083251953125, 0.037567138671875, 0.03314208984375, -0.04241943359375, 0.009552001953125, -0.01531219482421875, -0.0005192756652832031, -0.043243408203125, -0.01505279541015625, 0.01497650146484375, 0.04241943359375, -0.0259552001953125, -0.033355712890625, 0.02716064453125, -0.027008056640625, -0.0072784423828125, -0.00550079345703125, -0.03924560546875, -0.021636962890625, -0.0196685791015625, -0.0238037109375, 0.00901031494140625, 0.00337982177734375, -0.01009368896484375, -0.00464630126953125, -0.019317626953125, 0.001422882080078125, 0.00982666015625, -0.0243072509765625, 0.00588226318359375, 0.0134429931640625, -0.03955078125, -0.007503509521484375, 0.0238189697265625, 0.00399017333984375, -0.000988006591796875, -0.02166748046875, -0.04754638671875, 0.06732177734375, 0.004436492919921875, 0.09637451171875, -0.050018310546875, -0.04278564453125, -0.0294189453125, -0.00798797607421875, 0.057342529296875, 0.05767822265625, -0.04095458984375, -0.01311492919921875, -0.01885986328125, -0.005367279052734375, 0.0697021484375, 0.0010881423950195312, -0.0115814208984375, -0.0175323486328125, -0.02166748046875, 0.01036834716796875, -0.0161285400390625, 0.004985809326171875, -0.0100555419921875, 0.017822265625, -0.00939178466796875, -0.024078369140625, -0.00244140625, -0.014739990234375, 0.029693603515625, 0.00855255126953125, 0.00142669677734375, -0.032867431640625, -0.0143890380859375, -0.01495361328125, -0.028106689453125, -0.040130615234375, 0.0186309814453125, 0.00991058349609375, 0.01178741455078125, 0.0007405281066894531, 0.015045166015625, 0.01480865478515625, 0.0087127685546875, -0.0206298828125, -0.01061248779296875, -0.010345458984375, -0.001491546630859375, -0.01311492919921875, -0.0301055908203125, 0.033905029296875, -0.0595703125, -0.0122833251953125, 0.020782470703125, -0.007564544677734375, 0.0418701171875, -0.04443359375, 0.0270538330078125, 0.04229736328125, -0.0152435302734375, 0.03070068359375, 0.07012939453125, 0.01071929931640625, 0.037933349609375, 0.009185791015625, 0.017059326171875, 0.01457977294921875, 0.06964111328125, -0.004253387451171875, -0.037628173828125, 0.054229736328125, 0.0184326171875, -0.0217742919921875, 0.035186767578125, -0.036376953125, -0.0097503662109375, 0.00485992431640625, 0.05181884765625, -0.028839111328125, 0.0105438232421875, 0.0452880859375, -0.025360107421875, -0.049774169921875, 0.0186767578125, -0.0419921875, -0.03643798828125, 0.022918701171875, -0.0239410400390625, -0.02203369140625, 0.002288818359375, -0.007190704345703125, 0.00566864013671875, -0.0027332305908203125, 0.04949951171875, 0.0191497802734375, -0.02691650390625, -0.024139404296875, 0.006313323974609375, 0.0029754638671875, -0.08258056640625, 0.00009441375732421875, 0.0263519287109375, 0.006214141845703125, -0.05718994140625, 0.0892333984375, 0.0198211669921875, 0.0732421875, 0.0178680419921875, 0.0218353271484375, -0.011962890625, 0.034759521484375, 0.0017547607421875, 0.005779266357421875, 0.004673004150390625, -0.0616455078125, 0.038299560546875, 0.005138397216796875, -0.00397491455078125, 0.018341064453125, -0.0689697265625, -0.0123443603515625, -0.05010986328125, 0.05877685546875, -0.0204010009765625, 0.00975799560546875, 0.03173828125, -0.01129913330078125, -0.016326904296875, 0.035247802734375, 0.0699462890625, -0.0011949539184570312, 0.0009407997131347656, 0.01139068603515625, 0.0161285400390625, 0.0640869140625, 0.0034542083740234375, 0.047454833984375, 0.00312042236328125, 0.00991058349609375, -0.0743408203125, 0.00807952880859375, -0.026611328125, 0.03155517578125, 0.00928497314453125, -0.0216064453125, 0.01206207275390625, -0.03839111328125, -0.0533447265625, 0.0284576416015625, 0.043853759765625, 0.051849365234375, -0.03204345703125, -0.033843994140625, 0.0169219970703125, 0.043182373046875, 0.04193115234375, -0.0013370513916015625, -0.0007839202880859375, 0.007488250732421875, 0.060516357421875, 0.0180511474609375, -0.0228424072265625, 0.014404296875, 0.0210723876953125, -0.04345703125, 0.07293701171875, -0.0098876953125, 0.0241546630859375, -0.01232147216796875, 0.044586181640625, 0.027435302734375, 0.0077667236328125, 0.020263671875, -0.015350341796875, 0.0218658447265625, 0.007659912109375, -0.0179595947265625, 0.004596710205078125, -0.048126220703125, 0.0174407958984375, 0.04022216796875, 0.038543701171875, -0.0215606689453125, -0.01129150390625, -0.023040771484375, 0.056488037109375, 0.01080322265625, 0.0304718017578125, 0.045684814453125, 0.018798828125, 0.1175537109375, -0.0131072998046875, 0.023834228515625, 0.004726409912109375, -0.0098724365234375, 0.0302734375, 0.0080108642578125, 0.023193359375, -0.00934600830078125, 0.0174407958984375, 0.0243988037109375, 0.029541015625, -0.0263519287109375, -0.052886962890625, 0.004955291748046875, -0.0113983154296875, 0.0226593017578125, 0.0168304443359375, 0.014404296875, 0.0172271728515625, 0.047149658203125, -0.07421875, 0.0133819580078125, 0.057830810546875, 0.036712646484375, -0.0021076202392578125, -0.0046234130859375, -0.07867431640625, -0.0283203125, -0.054595947265625, 0.04901123046875, 0.00583648681640625, 0.054229736328125, 0.01308441162109375, 0.06268310546875, -0.06195068359375, -0.037445068359375, 0.0183563232421875, 0.046905517578125, 0.0095977783203125, -0.0261077880859375, -0.00643157958984375, -0.04693603515625, -0.00203704833984375, 0.0218048095703125, 0.0161895751953125, 0.0374755859375, 0.042144775390625, 0.05572509765625, 0.0206756591796875, -0.004207611083984375, 0.03387451171875, -0.00434112548828125, 0.031707763671875, -0.0187835693359375, 0.08331298828125, 0.0219573974609375, 0.00855255126953125, -0.04095458984375, 0.0479736328125, 0.05499267578125, -0.022491455078125, 0.06109619140625, 0.0011034011840820312, -0.0165557861328125, 0.0653076171875, -0.02447509765625, 0.05670166015625, -0.01342010498046875, -0.08111572265625, -0.0137176513671875, -0.037933349609375, 0.007221221923828125, 0.0191192626953125, 0.0259857177734375, -0.0161285400390625, 0.04248046875, 0.01194000244140625, -0.01263427734375, 0.0289154052734375, -0.00860595703125, 0.0064544677734375, -0.006938934326171875, 0.00586700439453125, -0.00665283203125, -0.00954437255859375, 0.00904083251953125, 0.01849365234375, -0.01314544677734375, 0.0222015380859375, 0.007160186767578125, 0.0300140380859375, 0.01000213623046875, -0.025543212890625, 0.0290069580078125, -0.060943603515625, -0.034759521484375, 0.069091796875, -0.01184844970703125, -0.0293731689453125, -0.0012874603271484375, 0.01155853271484375, 0.0272674560546875, 0.039703369140625, -0.01441192626953125, 0.00858306884765625, -0.01050567626953125, 0.0197601318359375, -0.00839996337890625, 0.019500732421875, -0.0097198486328125, -0.035552978515625, -0.03680419921875, -0.01201629638671875, 0.025360107421875, 0.05072021484375, 0.00556182861328125, -0.02740478515625, -0.0228118896484375, -0.0218353271484375, 0.025787353515625, 0.01898193359375, 0.0364990234375, 0.0269927978515625, -0.04473876953125, -0.00534820556640625, -0.006195068359375, -0.01094818115234375, 0.0139312744140625, 0.0138397216796875, -0.003597259521484375, 0.0031757354736328125, -0.00977325439453125, 0.020263671875, 0.0271148681640625, 0.0296630859375, -0.0185546875, 0.000949859619140625, 0.03582763671875, -0.0138092041015625, -0.048004150390625, -0.05377197265625, -0.021636962890625, -0.03790283203125, 0.00681304931640625, 0.015838623046875, -0.0012445449829101562, -0.004535675048828125, -0.006229400634765625, -0.01000213623046875, 0.0284423828125, -0.0088653564453125, -0.026397705078125, 0.00678253173828125, -0.016998291015625, 0.0406494140625, -0.00896453857421875, -0.045135498046875, 0.006549835205078125, 0.01727294921875, -0.0309295654296875, 0.0214996337890625, -0.038726806640625, -0.044158935546875, -0.0226593017578125, 0.0190582275390625, 0.0176239013671875, -0.032958984375, -0.020721435546875, 0.050811767578125, 0.0251922607421875, 0.09490966796875, 0.023895263671875, -0.042266845703125, -0.0091094970703125, 0.023406982421875, -0.010162353515625, -0.06292724609375, 0.0037593841552734375, -0.041534423828125, 0.0035800933837890625, 0.01422119140625, -0.003978729248046875, 0.0253448486328125, -0.0162200927734375, -0.0049285888671875, 0.060333251953125, 0.01056671142578125, -0.0178985595703125, -0.01371002197265625, -0.0330810546875, -0.036376953125, 0.025360107421875, -0.019622802734375, 0.00441741943359375, -0.0118865966796875, 0.04815673828125, 0.01629638671875, -0.0062103271484375, 0.041534423828125, -0.01192474365234375, -0.05072021484375, 0.00919342041015625, -0.01111602783203125, 0.013946533203125, -0.0019130706787109375, 0.0160980224609375, -0.0200347900390625, 0.0160369873046875, -0.04193115234375, -0.0286712646484375, -0.007061004638671875, 0.01383209228515625, 0.01059722900390625, -0.036102294921875, -0.0205841064453125, -0.0229339599609375, -0.0183258056640625, 0.030487060546875, 0.0016508102416992188, -0.00630950927734375, -0.03497314453125, -0.0098876953125, -0.00923919677734375, -0.009490966796875, 0.02783203125, -0.06158447265625, 0.00827789306640625, 0.004589080810546875, -0.032867431640625, 0.0255584716796875, 0.02081298828125, -0.058685302734375, 0.0131683349609375, -0.023193359375, -0.01947021484375, -0.07916259765625, 0.03265380859375, -0.0298309326171875, -0.032867431640625, -0.05792236328125, -0.00992584228515625, -0.0036106109619140625, -0.06329345703125, -0.054351806640625, 0.0215301513671875, 0.025543212890625, -0.0199432373046875, -0.01277923583984375, 0.0252227783203125, -0.003414154052734375, 0.00936126708984375, 0.00173187255859375, -0.0347900390625, 0.03948974609375, 0.01450347900390625, 0.023101806640625, -0.02880859375, 0.037017822265625, 0.040283203125, 0.0462646484375, 0.0179443359375, -0.0127410888671875, 0.007312774658203125, 0.06744384765625, 0.004703521728515625, -0.03594970703125, 0.018310546875, -0.0628662109375, -0.0025386810302734375, -0.01421356201171875, -0.0284271240234375, -0.032745361328125, 0.00019919872283935547, 0.0016775131225585938, -0.03668212890625, 0.017059326171875 ]
1566b086cd9e65dc651cd0963034409bfb056130
Wordpress Stackexchange Q: How can I display a menu on certain pages only? Instead of using sidebar widgets to tell on what page they should be visible, I like to choose at the menu settings to appear on specific pages. Default Wordpress way: So projects is a page and has some subpages. But what if I have like 10 more of these pages and subpages with the same situation. I would like to add an extra setting (a list of the top level pages): But I cannot find any documentation, actions, filters etc when these settings are loaded. A: That's a nice option, but I agree with sri, right now it really depends on your theme. You can do a work-around through is_page(). You need to write something like this on your page.php theme file: <?php if (is_page('projects')) { if ( is_active_sidebar( 'sidebar-navigation' )) { dynamic_sidebar( 'sidebar-navigation' ); } } ?> If you want to show the sidebar on other pages as well, you can use logic or like this: if (is_page('projects') || is_page('home') || is_page('post-page'))
Q: How can I display a menu on certain pages only? Instead of using sidebar widgets to tell on what page they should be visible, I like to choose at the menu settings to appear on specific pages. Default Wordpress way: So projects is a page and has some subpages. But what if I have like 10 more of these pages and subpages with the same situation. I would like to add an extra setting (a list of the top level pages): But I cannot find any documentation, actions, filters etc when these settings are loaded. A: That's a nice option, but I agree with sri, right now it really depends on your theme. You can do a work-around through is_page(). You need to write something like this on your page.php theme file: <?php if (is_page('projects')) { if ( is_active_sidebar( 'sidebar-navigation' )) { dynamic_sidebar( 'sidebar-navigation' ); } } ?> If you want to show the sidebar on other pages as well, you can use logic or like this: if (is_page('projects') || is_page('home') || is_page('post-page')) A: This is how you can do it in Twenty Twelve themes header.php copied to a child theme. <?php if ( is_page('projects') ) : ?> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu' => 'conditional-menu-name', 'menu_class' => 'nav-menu' ) ); ?> <?php else : ?> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu' => 'Primary', 'menu_class' => 'nav-menu' ) ); ?> <?php endif; ?> Create a new menu with the items you want to display and swap out the conditional-menu-name in the above code with the name of your menu. menu_class names may need changing for themes other than Twenty Twelve. Source A: I think using a plugin for this is better, so you can keep the functionality even if you change themes in the future. Check out this plugin. It does what you want, but slightly differently than how you mocked it up. https://wordpress.org/plugins/page-specific-menu-items/ If this helps, please up vote or accept as the answer. Thanks! A: I know this thread is old but in case someone would need search for answer for this, I would like to suggest the conditional menus from themify https://themify.me/conditional-menus. You choose which menu to use, per page, category, meta, everything. and it is free :) hope this helps A: If you are willing to re-engage your widgets and want a simple solution, you can use a plugin called Display Widgets. I have used this and use the text portion where you can add links to where you want to go. It works whether the links are on you own site or to another site. It has a space down below the text where you can choose which pages to show or hide. You can still remove the widgets that you do not use. I played around with the menus for quite a while before I looked for and found this plugin. It works well. You can find it in the Plugins section of WordPress.org. A: One option would be to make custom templates for each menu that you have. (That refers to the theme locations check box) Then on every page, you choose the template that you want it to use and it will also use the menu associated with that template. https://codex.wordpress.org/Page_Templates It gives you the same result I think you are looking for but rather than telling each menu what page it shows on, you will be telling each page what menu will show on it. An added benefit of doing it this way is that there is no way for you to accidentally tell two menus to be in the same place at the same time. A: You can use Menu Swapper plugin for doing same thing from admin panel. Here is the Demo of this plugin.
wordpress
{ "language": "en", "length": 629, "provenance": "stackexchange_00019.jsonl.gz:446299", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/150209" }
[ 0.040191650390625, 0.004425048828125, 0.03704833984375, 0.02996826171875, 0.01387786865234375, -0.0261383056640625, 0.0797119140625, -0.07342529296875, -0.0035495758056640625, -0.0266265869140625, -0.060333251953125, 0.0019207000732421875, -0.08416748046875, -0.032318115234375, 0.01806640625, -0.0755615234375, 0.021636962890625, -0.0010366439819335938, 0.00502777099609375, -0.013916015625, -0.0008893013000488281, 0.00434112548828125, -0.016204833984375, 0.07373046875, 0.0248565673828125, -0.06976318359375, 0.0225830078125, 0.0117034912109375, 0.0059661865234375, -0.0077056884765625, 0.01070404052734375, -0.00844573974609375, 0.01111602783203125, -0.006122589111328125, 0.052093505859375, 0.0477294921875, -0.0028133392333984375, 0.01216888427734375, 0.034515380859375, -0.00020313262939453125, 0.05078125, -0.0244598388671875, 0.0223846435546875, 0.007297515869140625, 0.01519012451171875, -0.0283966064453125, 0.04193115234375, -0.0394287109375, -0.0118560791015625, -0.03973388671875, 0.002460479736328125, -0.03173828125, 0.0245361328125, 0.0018262863159179688, -0.029296875, -0.0155029296875, 0.0204315185546875, -0.03277587890625, 0.03302001953125, 0.00274658203125, -0.016571044921875, -0.02423095703125, 0.033203125, -0.0170745849609375, -0.0021610260009765625, -0.0243072509765625, -0.0384521484375, 0.0209808349609375, -0.03594970703125, 0.006114959716796875, 0.047882080078125, -0.031768798828125, -0.00029087066650390625, -0.01357269287109375, -0.036285400390625, 0.0011625289916992188, 0.0021209716796875, -0.00902557373046875, 0.0167694091796875, -0.01110076904296875, -0.02154541015625, 0.0113372802734375, -0.07501220703125, 0.00012826919555664062, 0.00998687744140625, 0.02935791015625, -0.0293731689453125, -0.01837158203125, -0.0205078125, 0.033233642578125, -0.02020263671875, 0.0150604248046875, -0.006282806396484375, 0.00789642333984375, -0.014862060546875, 0.01270294189453125, -0.0027923583984375, 0.042327880859375, -0.022857666015625, 0.040863037109375, -0.0189056396484375, -0.047119140625, 0.069580078125, -0.08001708984375, 0.00565338134765625, 0.05828857421875, -0.0119476318359375, 0.001483917236328125, 0.03424072265625, 0.028900146484375, 0.035675048828125, -0.0119476318359375, -0.01233673095703125, -0.0072021484375, -0.038787841796875, -0.01171875, -0.039306640625, -0.0265045166015625, -0.0054779052734375, -0.020721435546875, 0.00865936279296875, 0.04437255859375, 0.00968170166015625, -0.034637451171875, -0.0045013427734375, -0.009002685546875, -0.0214385986328125, -0.045989990234375, 0.026458740234375, 0.005832672119140625, -0.0350341796875, -0.005222320556640625, 0.031494140625, 0.0347900390625, 0.0121612548828125, -0.01105499267578125, 0.031585693359375, 0.0005321502685546875, 0.01450347900390625, 0.00916290283203125, -0.009857177734375, -0.0039520263671875, 0.02227783203125, -0.02667236328125, -0.0189666748046875, -0.004138946533203125, 0.01052093505859375, 0.0278472900390625, -0.004482269287109375, -0.03204345703125, 0.0023250579833984375, 0.00473785400390625, 0.0131072998046875, 0.02789306640625, -0.025115966796875, 0.0220489501953125, 0.0143585205078125, -0.0080718994140625, -0.019256591796875, -0.013275146484375, -0.015869140625, 0.0010938644409179688, 0.013763427734375, -0.056549072265625, -0.056060791015625, -0.024078369140625, -0.0243682861328125, -0.0032863616943359375, 0.0070648193359375, -0.0094146728515625, -0.00702667236328125, -0.01457977294921875, -0.0025310516357421875, 0.00963592529296875, -0.0020904541015625, 0.0362548828125, -0.0254058837890625, 0.0284881591796875, 0.01100921630859375, 0.047271728515625, 0.005916595458984375, -0.0306396484375, 0.038360595703125, -0.002590179443359375, -0.07110595703125, 0.01392364501953125, -0.0079345703125, 0.033935546875, 0.0274200439453125, 0.017242431640625, 0.039215087890625, 0.00926971435546875, -0.043701171875, -0.00672149658203125, -0.00714111328125, -0.0133819580078125, 0.000032067298889160156, -0.00611114501953125, -0.0157623291015625, 0.00579833984375, -0.018585205078125, 0.0017023086547851562, 0.0166015625, 0.0216827392578125, -0.02203369140625, 0.0216217041015625, -0.0274200439453125, 0.0438232421875, 0.05352783203125, 0.01383209228515625, -0.0298309326171875, -0.01256561279296875, 0.01016998291015625, -0.051666259765625, -0.08282470703125, -0.0017566680908203125, 0.0017328262329101562, 0.0352783203125, -0.00750732421875, -0.00579071044921875, -0.0069732666015625, -0.0188140869140625, -0.0106658935546875, 0.029632568359375, 0.0748291015625, -0.015960693359375, -0.006999969482421875, -0.05035400390625, 0.05303955078125, 0.01267242431640625, -0.06256103515625, 0.0229949951171875, 0.00620269775390625, 0.01336669921875, -0.035064697265625, 0.00913238525390625, -0.0009965896606445312, 0.0179443359375, -0.001407623291015625, 0.01389312744140625, 0.045074462890625, 0.033294677734375, -0.008056640625, -0.022613525390625, 0.041290283203125, -0.076171875, -0.003711700439453125, -0.0180511474609375, -0.0584716796875, -0.03424072265625, 0.04644775390625, 0.018829345703125, 0.01514434814453125, -0.0347900390625, 0.00511932373046875, 0.032562255859375, -0.003986358642578125, 0.0127716064453125, -0.005825042724609375, -0.0276641845703125, 0.01032257080078125, 0.010345458984375, -0.022308349609375, -0.003505706787109375, 0.0293731689453125, 0.0111083984375, 0.022735595703125, 0.0218658447265625, 0.003917694091796875, -0.015472412109375, -0.0010509490966796875, -0.00890350341796875, 0.005199432373046875, 0.014007568359375, 0.04669189453125, -0.0234832763671875, -0.0249176025390625, -0.03106689453125, 0.037567138671875, -0.0035419464111328125, -0.0221710205078125, 0.007904052734375, -0.0037097930908203125, -0.01111602783203125, 0.00025725364685058594, -0.06024169921875, 0.0173797607421875, 0.011383056640625, 0.006977081298828125, -0.02191162109375, 0.0088958740234375, 0.0098419189453125, -0.0201873779296875, 0.026519775390625, -0.0118408203125, -0.0230255126953125, 0.055572509765625, -0.03863525390625, 0.04400634765625, -0.028533935546875, 0.038604736328125, 0.049530029296875, -0.037628173828125, 0.0230712890625, -0.0141448974609375, 0.0168914794921875, -0.00916290283203125, 0.0009975433349609375, -0.021087646484375, 0.006084442138671875, -0.036712646484375, -0.000583648681640625, 0.013031005859375, -0.0120086669921875, -0.004749298095703125, -0.031890869140625, -0.0180206298828125, -0.00341796875, -0.06787109375, -0.022705078125, 0.0248260498046875, -0.04986572265625, 0.0110931396484375, 0.007587432861328125, -0.0235443115234375, -0.01232147216796875, 0.03717041015625, 0.006473541259765625, -0.0006933212280273438, -0.0224761962890625, -0.0269012451171875, -0.016448974609375, -0.0288238525390625, 0.039520263671875, -0.01174163818359375, -0.00789642333984375, 0.0012884140014648438, 0.044525146484375, -0.0004944801330566406, -0.07452392578125, 0.0124359130859375, 0.036712646484375, -0.0230255126953125, 0.03546142578125, 0.0196075439453125, -0.0479736328125, -0.0014352798461914062, 0.01015472412109375, 0.04412841796875, 0.0031185150146484375, -0.01218414306640625, -0.0017538070678710938, -0.0180816650390625, 0.02020263671875, 0.01593017578125, -0.0230712890625, 0.034759521484375, 0.034423828125, -0.005962371826171875, -0.0243682861328125, -0.04571533203125, -0.0210418701171875, -0.08135986328125, 0.008544921875, 0.04669189453125, 0.015716552734375, -0.02294921875, 0.01763916015625, 0.0198516845703125, 0.018768310546875, 0.04620361328125, -0.0181427001953125, -0.00397491455078125, -0.006359100341796875, 0.01544189453125, -0.034027099609375, 0.01364898681640625, -0.03228759765625, -0.00201416015625, 0.0007839202880859375, 0.006206512451171875, -0.00927734375, 0.029022216796875, -0.009521484375, -0.03509521484375, 0.00641632080078125, -0.0042724609375, 0.05535888671875, -0.00873565673828125, -0.011993408203125, 0.0121917724609375, 0.076904296875, -0.039459228515625, -0.0220489501953125, 0.0124359130859375, 0.0157012939453125, -0.0023250579833984375, -0.040252685546875, -0.039154052734375, -0.0156707763671875, -0.09259033203125, 0.002819061279296875, -0.0194549560546875, -0.0235137939453125, -0.0048065185546875, -0.0087432861328125, -0.038421630859375, -0.039306640625, 0.042144775390625, -0.037567138671875, 0.005054473876953125, 0.02105712890625, -0.037017822265625, 0.003330230712890625, -0.030975341796875, -0.012603759765625, -0.06640625, -0.0058441162109375, -0.005584716796875, 0.0218505859375, 0.0191802978515625, -0.061279296875, 0.00460052490234375, 0.0303955078125, 0.051239013671875, 0.025115966796875, 0.042755126953125, -0.0207977294921875, 0.041534423828125, -0.0306549072265625, 0.044677734375, -0.038818359375, 0.01377105712890625, 0.0101165771484375, -0.0408935546875, 0.00852203369140625, -0.0163421630859375, -0.00791168212890625, 0.0254974365234375, -0.03961181640625, -0.05938720703125, -0.0284271240234375, 0.0018835067749023438, -0.0055084228515625, -0.00750732421875, 0.002056121826171875, -0.0203399658203125, -0.03411865234375, -0.01213836669921875, -0.01470184326171875, -0.006679534912109375, 0.031982421875, 0.07159423828125, 0.014373779296875, -0.00035572052001953125, -0.0108489990234375, 0.016693115234375, 0.026092529296875, 0.01207733154296875, 0.06427001953125, 0.0089111328125, -0.00722503662109375, 0.06219482421875, 0.00540924072265625, 0.0197906494140625, -0.007659912109375, 0.0276947021484375, 0.004634857177734375, 0.00031280517578125, 0.001087188720703125, -0.000014126300811767578, -0.0107879638671875, 0.0269775390625, -0.01239776611328125, -0.006160736083984375, -0.015045166015625, 0.042083740234375, 0.002811431884765625, -0.018829345703125, -0.06494140625, 0.047576904296875, -0.0288543701171875, 0.032073974609375, 0.08953857421875, 0.042816162109375, 0.01047515869140625, 0.0020732879638671875, 0.055145263671875, -0.00022304058074951172, 0.04302978515625, 0.0499267578125, -0.0011463165283203125, 0.0305633544921875, 0.0160064697265625, -0.01190185546875, 0.003116607666015625, -0.00876617431640625, 0.049224853515625, 0.006908416748046875, -0.026275634765625, -0.0157318115234375, -0.005649566650390625, 0.034027099609375, 0.00211334228515625, 0.029541015625, 0.034088134765625, -0.0138702392578125, -0.0264892578125, -0.02886962890625, 0.01490020751953125, -0.036285400390625, -0.046173095703125, 0.033233642578125, 0.0012464523315429688, 0.0177764892578125, -0.00701141357421875, 0.08056640625, 0.0125885009765625, 0.049407958984375, -0.033905029296875, 0.00994110107421875, 0.03643798828125, -0.00899505615234375, -0.0072174072265625, 0.0556640625, -0.00971221923828125, -0.0190887451171875, 0.06036376953125, -0.0251617431640625, -0.0035552978515625, 0.01491546630859375, 0.0193939208984375, 0.0283050537109375, 0.008697509765625, -0.00988006591796875, -0.011199951171875, -0.02947998046875, 0.057952880859375, -0.01593017578125, -0.054107666015625, -0.067626953125, -0.00774383544921875, 0.0633544921875, -0.01404571533203125, -0.01751708984375, 0.0306549072265625, 0.01412200927734375, 0.029327392578125, 0.0257568359375, -0.054840087890625, 0.046875, 0.05340576171875, -0.036590576171875, -0.0182037353515625, 0.0258026123046875, -0.092529296875, -0.02880859375, 0.0020313262939453125, 0.006908416748046875, -0.010589599609375, -0.047760009765625, 0.04949951171875, 0.0036334991455078125, -0.039459228515625, 0.036590576171875, 0.0255584716796875, 0.0219879150390625, 0.023040771484375, -0.061767578125, 0.01092529296875, -0.038818359375, 0.005741119384765625, -0.0572509765625, -0.051971435546875, -0.058197021484375, -0.01959228515625, 0.037994384765625, 0.027923583984375, 0.0113372802734375, -0.0206146240234375, -0.05841064453125, 0.004344940185546875, 0.044097900390625, 0.0626220703125, -0.026123046875, 0.08697509765625, -0.0097503662109375, 0.057373046875, -0.006866455078125, 0.00951385498046875, -0.04461669921875, 0.00489044189453125, 0.01580810546875, -0.048583984375, -0.026824951171875, -0.021453857421875, -0.04046630859375, 0.038665771484375, 0.048858642578125, 0.00678253173828125, 0.06158447265625, -0.039642333984375, -0.0039520263671875, -0.011199951171875, 0.00928497314453125, -0.0682373046875, 0.021148681640625, 0.0679931640625, -0.01288604736328125, 0.0135345458984375, 0.0192413330078125, -0.0384521484375, 0.031280517578125, 0.011871337890625, 0.04693603515625, 0.0040130615234375, -0.0499267578125, 0.06890869140625, 0.09051513671875, 0.00273895263671875, 0.0550537109375, 0.011138916015625, 0.005382537841796875, 0.030487060546875, -0.01364898681640625, -0.0016241073608398438, 0.043609619140625, 0.037200927734375, -0.0199737548828125, 0.00995635986328125, 0.0109710693359375, -0.01534271240234375, -0.0154266357421875, 0.09173583984375, 0.0557861328125, -0.10540771484375, -0.01995849609375, 0.0064849853515625, 0.01421356201171875, 0.0264739990234375, 0.00098419189453125, -0.0089263916015625, -0.039093017578125, 0.043609619140625, 0.01568603515625, -0.01171875, 0.01413726806640625, 0.01488494873046875, 0.0113372802734375, -0.0005240440368652344, 0.061309814453125, 0.006866455078125, 0.013763427734375, -0.048980712890625, -0.0022068023681640625, 0.0075836181640625, -0.007259368896484375, -0.0330810546875, 0.0146026611328125, -0.045623779296875, -0.052978515625, -0.0013914108276367188, -0.05755615234375, 0.0219573974609375, 0.08038330078125, -0.00144195556640625, -0.00905609130859375, 0.05914306640625, -0.0308380126953125, 0.0528564453125, 0.007354736328125, -0.0309906005859375, -0.0178680419921875, -0.00039458274841308594, 0.0001341104507446289, -0.03265380859375, -0.00763702392578125, -0.0013170242309570312, -0.033477783203125, -0.0192718505859375, -0.027557373046875, -0.0234375, 0.150390625, -0.04315185546875, -0.03594970703125, -0.0029048919677734375, 0.0225982666015625, -0.0220489501953125, -0.0205841064453125, 0.0394287109375, -0.03204345703125, -0.01361846923828125, -0.00566864013671875, -0.01499176025390625, -0.047576904296875, -0.044769287109375, -0.0160675048828125, 0.060211181640625, -0.044952392578125, -0.01044464111328125, 0.033111572265625, 0.04449462890625, 0.0000693202018737793, 0.033935546875, -0.0197906494140625, 0.055206298828125, 0.02935791015625, 0.0670166015625, -0.0204010009765625, 0.0013113021850585938, 0.0487060546875, 0.04046630859375, 0.003948211669921875, 0.004955291748046875, -0.00714111328125, -0.0133209228515625, 0.01494598388671875, 0.029998779296875, -0.00567626953125, 0.0211944580078125, -0.03515625, -0.01439666748046875, -0.01543426513671875, -0.044891357421875, 0.01399993896484375, -0.0258026123046875, -0.031097412109375, -0.021942138671875, 0.0038585662841796875, 0.0174407958984375, -0.02667236328125, 0.032440185546875, 0.00548553466796875, -0.04364013671875, -0.0011577606201171875, -0.0181732177734375, -0.0029659271240234375, 0.025115966796875, 0.043365478515625, -0.039276123046875, -0.0296173095703125, -0.018646240234375, 0.0430908203125, 0.02972412109375, 0.003238677978515625, 0.023223876953125, 0.025421142578125, 0.005462646484375, -0.0303802490234375, -0.004337310791015625, 0.0199737548828125, -0.033050537109375, 0.06939697265625, 0.00531768798828125, 0.0255584716796875, -0.0384521484375, -0.0041351318359375, -0.00439453125, 0.05206298828125, -0.03094482421875, -0.062225341796875, 0.00899505615234375, -0.00656890869140625, 0.01509857177734375, 0.035369873046875, 0.033416748046875, 0.022796630859375, 0.058624267578125, -0.024566650390625, 0.00542449951171875, 0.01154327392578125, 0.00693511962890625, -0.01708984375, -0.0267181396484375, 0.00789642333984375, 0.0279083251953125, -0.045654296875, 0.031463623046875, 0.039459228515625, 0.051910400390625, 0.0029735565185546875, 0.034759521484375, -0.01187896728515625, -0.0196533203125, 0.01349639892578125, -0.00940704345703125, -0.04638671875, 0.01629638671875, -0.0753173828125, -0.054656982421875, -0.025634765625, 0.07379150390625, 0.03057861328125, 0.0080413818359375, 0.0214691162109375, 0.0306243896484375, 0.020263671875, 0.0023632049560546875, 0.047943115234375, 0.002819061279296875, 0.00350189208984375, -0.00833892822265625, -0.0107269287109375, 0.012969970703125, -0.0166473388671875, 0.00514984130859375, 0.0136566162109375, 0.0333251953125, -0.01103973388671875, 0.002109527587890625, -0.005462646484375, -0.0145263671875, 0.035247802734375, -0.0185546875, 0.0379638671875, 0.0126495361328125, -0.07843017578125, -0.013763427734375, -0.053741455078125, -0.018035888671875, 0.031890869140625, 0.0361328125, -0.01439666748046875, 0.03131103515625, 0.0355224609375, 0.0206146240234375, 0.0090789794921875, -0.02838134765625, -0.0004382133483886719, 0.030120849609375, 0.04193115234375, 0.043182373046875, -0.035919189453125, -0.0240020751953125, -0.00681304931640625, 0.01190948486328125, 0.022186279296875, 0.05096435546875, 0.0189666748046875, 0.01520538330078125, -0.018890380859375, 0.036468505859375, -0.026214599609375, -0.0224456787109375, 0.0165557861328125, 0.021728515625, 0.030517578125, -0.0301513671875, -0.0160980224609375, 0.047821044921875, 0.0305023193359375, -0.03271484375, 0.045501708984375, -0.032196044921875, -0.00211334228515625, -0.04913330078125, -0.01052093505859375, -0.011871337890625, -0.0274810791015625, -0.01155853271484375, 0.0207672119140625, 0.025909423828125, 0.033660888671875, -0.029205322265625, -0.00734710693359375, -0.00835418701171875, -0.024322509765625, 0.0154266357421875, 0.014129638671875, -0.00873565673828125, 0.0222930908203125, 0.0076141357421875, -0.01336669921875, 0.015228271484375, -0.0026950836181640625, -0.0002818107604980469, 0.0252685546875, -0.003993988037109375, 0.00021064281463623047, -0.01190948486328125, 0.01904296875, 0.0154571533203125, 0.0288848876953125, -0.04364013671875, -0.0007586479187011719, 0.028045654296875, -0.0078277587890625, 0.00553131103515625, 0.0281829833984375, -0.0254364013671875, -0.0290374755859375, 0.005741119384765625, 0.01338958740234375, -0.0164642333984375, -0.0240478515625, -0.07177734375, -0.01322174072265625, 0.041961669921875, 0.019378662109375, -0.0478515625, 0.0263214111328125, -0.0214080810546875, 0.019073486328125, -0.020355224609375, 0.00208282470703125, -0.00458526611328125, -0.0155029296875, -0.0247344970703125, 0.039031982421875, -0.03009033203125, -0.01517486572265625, 0.011383056640625, 0.012725830078125, 0.045867919921875, -0.02197265625, -0.014373779296875, -0.01494598388671875, -0.0015268325805664062, 0.04571533203125, -0.005706787109375, -0.0103912353515625, 0.00977325439453125, 0.01071929931640625, -0.018402099609375, -0.010650634765625, 0.0225067138671875, -0.006679534912109375, -0.0265960693359375, 0.01873779296875, -0.019866943359375, 0.002719879150390625, -0.03802490234375, -0.050079345703125, 0.0645751953125, 0.002422332763671875, -0.0292816162109375, 0.00537872314453125, 0.041229248046875, -0.039154052734375, 0.01428985595703125, 0.01308441162109375, -0.041778564453125, 0.04534912109375, 0.01678466796875, 0.022491455078125, 0.048095703125, 0.0020885467529296875, 0.0286712646484375, -0.02435302734375, 0.01108551025390625, -0.0202484130859375, 0.009124755859375, -0.00921630859375, -0.0292510986328125, 0.01268768310546875, 0.0198822021484375, -0.043853759765625, -0.04217529296875, -0.003612518310546875, 0.020294189453125, 0.0166015625, 0.0118255615234375, -0.0682373046875, -0.049407958984375, 0.0540771484375, 0.05712890625, 0.0288848876953125, 0.002155303955078125, 0.0245819091796875, -0.00469207763671875, -0.037322998046875, 0.01076507568359375, 0.021240234375, -0.0295867919921875, -0.0017757415771484375, 0.000043392181396484375, -0.01461029052734375, 0.00042510032653808594, 0.00457763671875, -0.036376953125, -0.0026416778564453125, 0.0201263427734375, 0.01910400390625, -0.06427001953125, -0.032073974609375, 0.00768280029296875, -0.0095977783203125, -0.0242462158203125, 0.0057373046875, 0.0144195556640625, -0.0330810546875, 0.04669189453125, -0.002777099609375, 0.03094482421875, -0.07574462890625, 0.0192413330078125, -0.017242431640625, 0.033966064453125, -0.0638427734375, -0.00823211669921875, -0.01392364501953125, 0.02410888671875, 0.00121307373046875, 0.03472900390625, 0.0126190185546875, 0.01479339599609375, 0.01561737060546875, 0.0328369140625, 0.021484375, 0.08880615234375, 0.0162811279296875, 0.05224609375, -0.0231781005859375, -0.034515380859375, -0.007091522216796875, -0.0753173828125, -0.0187225341796875, -0.0091552734375, -0.05279541015625, -0.072021484375, 0.035858154296875, 0.00426483154296875, 0.0005788803100585938, 0.031982421875 ]
642424a21788a287968e57dde1832e0812537c0e
Wordpress Stackexchange Q: Retrieve posts by term id custom query i want to retrieve custom posts using using custom query . my taxonomy is recipe_tx and terms (Beef) , (Chicken) etc in it . i have tried using SELECT p.* FROM wp_posts p, wp_term_taxonomy tt, wp_term_relationships tr WHERE p.ID=tr.`object_id` AND tt.`term_id`=tr.`term_taxonomy_id` AND (p.post_type = 'recipe_cpt') AND p.post_status = 'publish' AND tt.`term_taxonomy_id` = 37 but no luck . can someone help me how to get wp posts by their term_id . if beefs id is 37 then i want to retrieve all the posts with term_id = 37 Thank's A: Have you tried using the WP_Query class? You might find it's easier to use the built-in tools for this instead of a custom query from scratch. Something similar to the following should work for you: <?php $args = array( 'post_type' => 'recipe_cpt', 'tax_query' => array( array( 'taxonomy' => 'recipe_tx', 'field' => 'term_id', 'terms' => 37 ) ) ); $query = new WP_Query( $args ); ?> EDIT: note the tax_query is an array of arrays by design. Many tax query problems are a result of missing this detail. EDIT: corrected field value typo above, replacing 'id' with 'term_id'.
Q: Retrieve posts by term id custom query i want to retrieve custom posts using using custom query . my taxonomy is recipe_tx and terms (Beef) , (Chicken) etc in it . i have tried using SELECT p.* FROM wp_posts p, wp_term_taxonomy tt, wp_term_relationships tr WHERE p.ID=tr.`object_id` AND tt.`term_id`=tr.`term_taxonomy_id` AND (p.post_type = 'recipe_cpt') AND p.post_status = 'publish' AND tt.`term_taxonomy_id` = 37 but no luck . can someone help me how to get wp posts by their term_id . if beefs id is 37 then i want to retrieve all the posts with term_id = 37 Thank's A: Have you tried using the WP_Query class? You might find it's easier to use the built-in tools for this instead of a custom query from scratch. Something similar to the following should work for you: <?php $args = array( 'post_type' => 'recipe_cpt', 'tax_query' => array( array( 'taxonomy' => 'recipe_tx', 'field' => 'term_id', 'terms' => 37 ) ) ); $query = new WP_Query( $args ); ?> EDIT: note the tax_query is an array of arrays by design. Many tax query problems are a result of missing this detail. EDIT: corrected field value typo above, replacing 'id' with 'term_id'. A: I know the question is answered, but if anyone is trying to achieve the same with a raw SQL query, you could try the following: SELECT * FROM wpiw_posts WHERE ID IN ( SELECT object_id FROM wpiw_term_relationships AS TR INNER JOIN wpiw_term_taxonomy AS TT ON TR.term_taxonomy_id = TT.term_taxonomy_id INNER JOIN wpiw_terms AS T ON TT.term_id = T.term_id WHERE TT.taxonomy = 'recipe_tx' AND T.term_id = 37 ) The above query will get you all the posts that belong to the given taxonomy (recipe_tx) and term ID (37). A: I know that this is an old post, but I just wanted to chime in. @jdm2112 is correct. Just use the WP_Query class. This makes sure that if the database structure is ever updated in the future, your query still works.... However, since it looks like you are looking for a raw SQL answer, this is the actual SQL that WP_Query would execute... at least as of WordPress 5.6. (I've adapted the SQL to your question) SELECT * from wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE (wp_term_relationships.term_taxonomy_id IN (37)) AND wp_posts.post_type = 'recipe_cpt' AND wp_posts.post_status = 'publish' GROUP BY wp_posts.ID You can get the the actual query by creating a WP_Query instance, then look at the request property like so: <?php $args = [ 'post_type' => 'recipe_cpt', 'tax_query' => [ [ 'taxonomy' => 'recipe_tx', 'field' => 'term_id', 'terms' => 37 ] ] ]; $queryObj = new WP_Query($args); // This will give you the actual raw SQL query $rawSqlQuery = $queryObj->request;
wordpress
{ "language": "en", "length": 444, "provenance": "stackexchange_00019.jsonl.gz:446306", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/150247" }
[ 0.04925537109375, 0.0017719268798828125, 0.0110321044921875, -0.00577545166015625, 0.0240936279296875, -0.03778076171875, 0.059814453125, -0.01453399658203125, -0.0193939208984375, 0.017822265625, -0.0176849365234375, -0.01611328125, -0.031219482421875, -0.024658203125, -0.01340484619140625, -0.053070068359375, 0.0153045654296875, -0.00992584228515625, 0.006927490234375, -0.013702392578125, 0.0273284912109375, -0.01241302490234375, 0.0034847259521484375, 0.00782012939453125, 0.047821044921875, 0.01119232177734375, 0.0167694091796875, -0.018341064453125, 0.03173828125, 0.0051422119140625, 0.0252838134765625, -0.0408935546875, 0.025604248046875, 0.0206756591796875, -0.0283203125, -0.02191162109375, -0.0133056640625, 0.002964019775390625, -0.0005540847778320312, 0.021148681640625, 0.0193328857421875, -0.0006222724914550781, -0.007221221923828125, 0.0404052734375, -0.037750244140625, -0.0440673828125, 0.01430511474609375, -0.014434814453125, 0.0198516845703125, 0.0498046875, 0.0174407958984375, 0.01212310791015625, 0.01276397705078125, 0.016998291015625, -0.00452423095703125, -0.018096923828125, 0.033203125, -0.061126708984375, 0.025299072265625, -0.0272979736328125, -0.035369873046875, -0.02703857421875, 0.05615234375, 0.001171112060546875, -0.02496337890625, 0.046600341796875, 0.080078125, -0.000484466552734375, -0.06146240234375, -0.0726318359375, -0.00768280029296875, -0.017364501953125, -0.0007939338684082031, 0.030517578125, 0.0012540817260742188, -0.10223388671875, 0.037841796875, -0.04510498046875, -0.006259918212890625, 0.062225341796875, -0.00771331787109375, -0.00026154518127441406, -0.060821533203125, 0.039703369140625, -0.0226898193359375, 0.056060791015625, -0.026031494140625, -0.032073974609375, 0.0069427490234375, -0.032501220703125, 0.0112762451171875, -0.040283203125, -0.03216552734375, 0.01371002197265625, 0.0092620849609375, -0.06756591796875, 0.00263214111328125, 0.036773681640625, -0.023162841796875, 0.0135955810546875, -0.00884246826171875, -0.033203125, 0.01385498046875, -0.0222625732421875, 0.024627685546875, 0.05096435546875, -0.004840850830078125, 0.0504150390625, 0.07244873046875, 0.0167083740234375, 0.036956787109375, 0.032684326171875, -0.01503753662109375, 0.00484466552734375, -0.03997802734375, 0.014556884765625, -0.02117919921875, -0.04827880859375, -0.0166015625, -0.0220184326171875, 0.0023059844970703125, 0.027130126953125, -0.0030460357666015625, -0.03021240234375, -0.0008788108825683594, -0.0182037353515625, -0.0175018310546875, -0.0123748779296875, -0.051666259765625, 0.0262908935546875, -0.022735595703125, 0.0193634033203125, 0.0592041015625, 0.033172607421875, -0.0103759765625, -0.0154266357421875, 0.03350830078125, -0.0290374755859375, -0.0198974609375, 0.00402069091796875, 0.0330810546875, 0.0196990966796875, 0.02783203125, -0.01345062255859375, -0.0423583984375, 0.0157623291015625, 0.022491455078125, 0.00574493408203125, -0.0189056396484375, -0.04534912109375, -0.036712646484375, 0.01861572265625, 0.07806396484375, 0.0038242340087890625, -0.09100341796875, 0.005847930908203125, 0.01538848876953125, -0.020172119140625, -0.074462890625, -0.07537841796875, 0.0214385986328125, 0.006168365478515625, -0.01180267333984375, -0.0221099853515625, -0.0298309326171875, -0.0215911865234375, -0.0266265869140625, -0.0014629364013671875, 0.0167694091796875, 0.028228759765625, 0.0179901123046875, -0.03375244140625, 0.01953125, 0.0170745849609375, -0.005092620849609375, 0.017364501953125, 0.0103912353515625, 0.0042724609375, 0.0184478759765625, 0.033599853515625, -0.00919342041015625, -0.04052734375, 0.03875732421875, -0.01763916015625, -0.0279541015625, 0.0266571044921875, 0.006744384765625, 0.0467529296875, -0.00783538818359375, 0.0194854736328125, 0.0169219970703125, 0.0233612060546875, -0.06121826171875, 0.06103515625, 0.01025390625, -0.03125, -0.05816650390625, -0.0243682861328125, -0.012908935546875, -0.012603759765625, -0.006099700927734375, 0.0204620361328125, -0.0167694091796875, 0.0257720947265625, -0.065185546875, 0.01139068603515625, -0.01462554931640625, 0.028656005859375, -0.014892578125, 0.02337646484375, 0.032989501953125, 0.0131072998046875, -0.050506591796875, 0.03155517578125, -0.015960693359375, 0.0127410888671875, -0.036651611328125, 0.0107574462890625, 0.0010890960693359375, -0.0161285400390625, 0.005748748779296875, -0.035736083984375, 0.01476287841796875, 0.0185546875, -0.002017974853515625, 0.00353240966796875, -0.00969696044921875, 0.0135040283203125, 0.019622802734375, 0.0189666748046875, 0.0144500732421875, -0.01056671142578125, 0.042938232421875, 0.046722412109375, 0.0060577392578125, -0.00269317626953125, 0.039794921875, -0.06390380859375, 0.017120361328125, 0.041839599609375, 0.0389404296875, 0.023773193359375, -0.00710296630859375, -0.025543212890625, 0.07232666015625, -0.04852294921875, -0.006786346435546875, -0.0221099853515625, 0.02581787109375, 0.0706787109375, -0.002651214599609375, 0.005657196044921875, 0.01415252685546875, 0.041961669921875, 0.0011968612670898438, 0.0234375, -0.052001953125, 0.0152130126953125, -0.007419586181640625, 0.004871368408203125, -0.017669677734375, -0.033050537109375, 0.028228759765625, -0.0374755859375, 0.02001953125, 0.0516357421875, 0.04779052734375, 0.0528564453125, -0.052581787109375, 0.0247344970703125, 0.00821685791015625, 0.046356201171875, 0.00830078125, -0.0184478759765625, 0.017578125, 0.0018463134765625, -0.01131439208984375, 0.003963470458984375, 0.0257110595703125, -0.0184783935546875, 0.026519775390625, 0.06494140625, -0.017242431640625, 0.0012941360473632812, -0.0225982666015625, -0.0247802734375, -0.00580596923828125, 0.06109619140625, -0.030609130859375, -0.020538330078125, -0.0036678314208984375, 0.07586669921875, -0.01323699951171875, 0.047088623046875, -0.01479339599609375, 0.0167388916015625, 0.006561279296875, -0.02886962890625, 0.0217437744140625, -0.0160369873046875, 0.029754638671875, 0.054931640625, 0.03350830078125, -0.017486572265625, -0.0008778572082519531, -0.0254974365234375, -0.01039886474609375, 0.0304412841796875, -0.0007190704345703125, -0.019683837890625, -0.016632080078125, 0.0345458984375, 0.01149749755859375, 0.06610107421875, -0.0438232421875, -0.053985595703125, -0.023223876953125, 0.006816864013671875, -0.099853515625, -0.0823974609375, 0.005725860595703125, -0.0088653564453125, -0.030181884765625, -0.0301971435546875, 0.0009746551513671875, 0.02081298828125, -0.0631103515625, -0.008758544921875, 0.03656005859375, -0.028533935546875, -0.04681396484375, -0.0221099853515625, -0.0711669921875, -0.004619598388671875, 0.0034580230712890625, 0.0258941650390625, 0.017669677734375, 0.036285400390625, 0.0038738250732421875, -0.0513916015625, -0.0027370452880859375, 0.0257415771484375, -0.038116455078125, -0.00884246826171875, 0.0006489753723144531, -0.01554107666015625, 0.0046234130859375, -0.0006690025329589844, 0.00556182861328125, 0.0221099853515625, -0.01165008544921875, -0.0009031295776367188, 0.0149383544921875, 0.0049591064453125, 0.0295867919921875, -0.01364898681640625, -0.03759765625, 0.01611328125, 0.0188140869140625, -0.0282440185546875, -0.052490234375, 0.0001398324966430664, -0.047515869140625, 0.0261383056640625, 0.0275726318359375, 0.0067901611328125, -0.004955291748046875, 0.0177154541015625, 0.01067352294921875, -0.0018491744995117188, 0.017120361328125, -0.019317626953125, 0.01654052734375, -0.0005841255187988281, 0.0058441162109375, -0.0250396728515625, 0.042755126953125, -0.01529693603515625, 0.004734039306640625, 0.01776123046875, 0.0050048828125, 0.0038356781005859375, -0.033935546875, -0.054473876953125, -0.03509521484375, 0.0230255126953125, -0.0292510986328125, 0.043975830078125, -0.03704833984375, -0.017059326171875, -0.0184478759765625, 0.0797119140625, -0.01032257080078125, -0.028350830078125, -0.0005521774291992188, 0.0010528564453125, -0.004718780517578125, -0.01313018798828125, -0.01425933837890625, -0.0202178955078125, -0.02978515625, -0.006866455078125, 0.00318145751953125, -0.0258636474609375, -0.032989501953125, 0.00966644287109375, -0.06292724609375, -0.0120086669921875, 0.0491943359375, -0.061981201171875, 0.053680419921875, 0.006275177001953125, 0.0278472900390625, -0.024200439453125, -0.020477294921875, -0.035919189453125, -0.0308685302734375, 0.002773284912109375, 0.0162811279296875, -0.014404296875, -0.005191802978515625, -0.0177154541015625, 0.01248931884765625, 0.032470703125, 0.01483154296875, 0.01274871826171875, -0.0019092559814453125, 0.004642486572265625, -0.0265045166015625, -0.010406494140625, -0.007091522216796875, -0.023529052734375, -0.025054931640625, -0.01276397705078125, 0.004787445068359375, 0.05963134765625, -0.02581787109375, 0.01271820068359375, -0.03167724609375, 0.0008578300476074219, -0.049835205078125, -0.0039825439453125, -0.032958984375, -0.0121307373046875, -0.040283203125, -0.00864410400390625, 0.007045745849609375, -0.05517578125, 0.04986572265625, 0.036529541015625, -0.01291656494140625, -0.011749267578125, 0.08062744140625, 0.0209808349609375, -0.039703369140625, -0.0158538818359375, -0.0002123117446899414, 0.02032470703125, 0.00534820556640625, 0.027740478515625, 0.0030803680419921875, -0.0022373199462890625, 0.030364990234375, -0.00928497314453125, -0.0187835693359375, 0.00830841064453125, 0.0297088623046875, 0.0167236328125, 0.01059722900390625, -0.0135040283203125, -0.024993896484375, 0.0308380126953125, 0.039642333984375, -0.00879669189453125, -0.051849365234375, -0.0222930908203125, 0.066162109375, -0.0138092041015625, 0.041259765625, -0.054473876953125, -0.059661865234375, 0.032928466796875, -0.024261474609375, 0.0018825531005859375, 0.000415802001953125, -0.0081024169921875, 0.0276947021484375, -0.006465911865234375, 0.00855255126953125, -0.0028228759765625, 0.042083740234375, -0.02154541015625, 0.0303192138671875, 0.0096893310546875, -0.01465606689453125, -0.0310516357421875, 0.010772705078125, -0.006290435791015625, -0.0217437744140625, -0.055755615234375, -0.02459716796875, 0.0142822265625, 0.00806427001953125, 0.0293731689453125, 0.0068817138671875, 0.041015625, 0.06781005859375, 0.01209259033203125, -0.01291656494140625, -0.01458740234375, 0.056121826171875, -0.025665283203125, 0.01409912109375, 0.0068511962890625, -0.0164794921875, -0.034088134765625, 0.088623046875, -0.004558563232421875, 0.0310211181640625, -0.0212554931640625, 0.0219268798828125, -0.0202789306640625, 0.056854248046875, 0.0119781494140625, -0.0278472900390625, 0.0212860107421875, 0.009429931640625, 0.0019245147705078125, -0.05096435546875, 0.0160980224609375, 0.004852294921875, 0.056121826171875, -0.0160369873046875, -0.052886962890625, 0.03057861328125, -0.0478515625, -0.030853271484375, 0.0241241455078125, 0.0294036865234375, -0.00566864013671875, -0.03411865234375, -0.0245361328125, 0.0260009765625, 0.042205810546875, -0.002422332763671875, 0.0006241798400878906, -0.031402587890625, 0.02587890625, -0.05133056640625, 0.024932861328125, -0.01568603515625, -0.0120849609375, -0.0287322998046875, -0.0167236328125, -0.0107269287109375, 0.01161956787109375, -0.0208892822265625, 0.00023412704467773438, -0.0233612060546875, 0.0186767578125, -0.01049041748046875, 0.033477783203125, -0.05841064453125, 0.00452423095703125, -0.023895263671875, -0.00733184814453125, 0.05859375, 0.036865234375, -0.038909912109375, -0.01690673828125, -0.01277923583984375, 0.0181884765625, 0.054840087890625, -0.01534271240234375, 0.004119873046875, -0.01216888427734375, -0.0155487060546875, 0.024993896484375, -0.00382232666015625, 0.005947113037109375, -0.0247802734375, -0.00786590576171875, -0.01338958740234375, -0.0026721954345703125, 0.01404571533203125, 0.0291900634765625, -0.0138092041015625, 0.055450439453125, 0.00983428955078125, -0.02191162109375, -0.031768798828125, -0.0240325927734375, -0.0241851806640625, -0.107421875, -0.00823974609375, 0.02655029296875, -0.0175933837890625, 0.056243896484375, -0.01140594482421875, 0.016326904296875, 0.06597900390625, -0.0218505859375, -0.0015897750854492188, -0.007152557373046875, -0.0225677490234375, -0.0309906005859375, 0.045501708984375, 0.03887939453125, -0.01213836669921875, 0.00742340087890625, -0.004154205322265625, 0.03118896484375, -0.01165008544921875, -0.024444580078125, 0.0021953582763671875, -0.0118255615234375, -0.0007109642028808594, 0.0098724365234375, 0.050201416015625, 0.01157379150390625, 0.033050537109375, -0.003147125244140625, 0.010498046875, 0.0183868408203125, 0.005794525146484375, -0.0076904296875, -0.0098419189453125, 0.026397705078125, -0.0106048583984375, -0.01543426513671875, 0.01413726806640625, -0.0267333984375, -0.0197906494140625, 0.013885498046875, 0.022186279296875, -0.02899169921875, -0.0079498291015625, 0.01235198974609375, -0.02197265625, -0.01715087890625, 0.02001953125, -0.00787353515625, -0.046844482421875, -0.04296875, 0.022918701171875, -0.0227203369140625, -0.02850341796875, 0.00377655029296875, 0.0079803466796875, -0.0006694793701171875, 0.0284576416015625, -0.007152557373046875, -0.0333251953125, 0.0048828125, 0.0101318359375, -0.00603485107421875, -0.0262908935546875, 0.019744873046875, -0.030853271484375, 0.0170745849609375, -0.0631103515625, 0.0145111083984375, -0.0335693359375, -0.0013551712036132812, 0.03131103515625, -0.041046142578125, 0.0180511474609375, 0.0291595458984375, -0.0219879150390625, 0.008880615234375, -0.00351715087890625, -0.02703857421875, -0.015411376953125, -0.0297088623046875, -0.0237884521484375, 0.0433349609375, -0.040924072265625, 0.0289306640625, -0.0240325927734375, 0.0128021240234375, -0.00775146484375, -0.02349853515625, 0.0169525146484375, -0.041961669921875, 0.01198577880859375, 0.040008544921875, 0.06463623046875, -0.004856109619140625, -0.018218994140625, 0.006282806396484375, -0.052886962890625, -0.0251312255859375, -0.00902557373046875, -0.018035888671875, -0.0174713134765625, -0.044525146484375, -0.06365966796875, 0.10791015625, 0.0200958251953125, 0.01641845703125, 0.0012187957763671875, 0.039031982421875, -0.04840087890625, 0.01377105712890625, -0.039154052734375, 0.0360107421875, -0.004581451416015625, 0.0247344970703125, -0.0545654296875, -0.006561279296875, -0.01467132568359375, 0.019927978515625, 0.08404541015625, 0.0201873779296875, -0.06427001953125, -0.02423095703125, 0.04339599609375, 0.060516357421875, 0.01331329345703125, 0.04058837890625, 0.03582763671875, 0.074951171875, 0.08453369140625, -0.00769805908203125, 0.05743408203125, 0.01486968994140625, -0.0239105224609375, 0.06121826171875, 0.0170135498046875, 0.0256195068359375, 0.01107025146484375, 0.00817108154296875, -0.022125244140625, 0.00458526611328125, 0.0220489501953125, -0.056610107421875, 0.0225677490234375, 0.0191650390625, 0.0443115234375, -0.08209228515625, -0.028656005859375, -0.0308990478515625, 0.04248046875, 0.012786865234375, 0.04290771484375, 0.0066680908203125, 0.0208892822265625, 0.06951904296875, -0.032470703125, 0.0285186767578125, 0.0214996337890625, -0.0469970703125, 0.027374267578125, -0.0015888214111328125, 0.01213836669921875, -0.0672607421875, -0.0018711090087890625, 0.03350830078125, 0.038055419921875, -0.037261962890625, -0.03326416015625, 0.0237579345703125, 0.0281219482421875, -0.01806640625, 0.020355224609375, 0.0105438232421875, 0.060577392578125, 0.0892333984375, -0.0595703125, 0.01371002197265625, 0.000713348388671875, 0.00621795654296875, -0.0283203125, -0.01312255859375, -0.003582000732421875, -0.00820159912109375, -0.037628173828125, 0.0078125, 0.0266265869140625, 0.043121337890625, 0.01435089111328125, 0.0220184326171875, -0.0291748046875, -0.01157379150390625, 0.020599365234375, 0.0178070068359375, 0.00835418701171875, -0.04180908203125, 0.027679443359375, -0.028656005859375, -0.036041259765625, 0.01248931884765625, 0.017303466796875, 0.059783935546875, 0.0254974365234375, 0.0217437744140625, 0.0194244384765625, -0.005741119384765625, 0.021881103515625, -0.021026611328125, -0.0053253173828125, -0.020416259765625, 0.01318359375, 0.03363037109375, -0.007038116455078125, 0.009307861328125, 0.0114593505859375, 0.038055419921875, -0.01548004150390625, 0.07318115234375, -0.006694793701171875, 0.0031642913818359375, 0.00986480712890625, -0.006649017333984375, 0.032745361328125, 0.00989532470703125, -0.03662109375, -0.0166473388671875, -0.0301055908203125, -0.02947998046875, 0.017822265625, 0.037445068359375, 0.031890869140625, -0.0218048095703125, 0.006267547607421875, -0.01319122314453125, -0.01280975341796875, 0.01068115234375, 0.0251312255859375, -0.0023365020751953125, -0.0059967041015625, 0.00734710693359375, -0.028350830078125, -0.01270294189453125, 0.03668212890625, 0.007781982421875, -0.008056640625, 0.0269622802734375, -0.000050008296966552734, -0.007144927978515625, -0.035369873046875, 0.033447265625, -0.050750732421875, -0.03936767578125, 0.0440673828125, -0.00930023193359375, 0.0050201416015625, 0.006404876708984375, 0.0190277099609375, 0.0007033348083496094, 0.042510986328125, -0.0399169921875, -0.044158935546875, -0.0173187255859375, 0.037384033203125, 0.004550933837890625, 0.036590576171875, -0.0144195556640625, -0.0091400146484375, -0.03143310546875, -0.043853759765625, 0.052032470703125, 0.0304718017578125, 0.0097198486328125, 0.02947998046875, 0.025238037109375, -0.01641845703125, 0.0479736328125, -0.0345458984375, 0.0810546875, 0.043548583984375, -0.035125732421875, -0.0004439353942871094, 0.023834228515625, -0.0130462646484375, 0.0094757080078125, 0.01024627685546875, 0.007343292236328125, 0.00634002685546875, 0.012298583984375, 0.01157379150390625, 0.017242431640625, 0.05517578125, -0.0038204193115234375, 0.016387939453125, 0.004547119140625, 0.0005893707275390625, -0.01102447509765625, -0.0177764892578125, -0.0364990234375, 0.0020313262939453125, -0.0002560615539550781, 0.0007638931274414062, 0.035491943359375, -0.0338134765625, -0.01470947265625, -0.007232666015625, 0.0168914794921875, -0.00395965576171875, -0.024383544921875, 0.01068115234375, -0.039154052734375, 0.006389617919921875, -0.01019287109375, -0.038116455078125, 0.01519775390625, 0.003177642822265625, -0.035675048828125, 0.0170440673828125, -0.017059326171875, -0.02191162109375, 0.00963592529296875, 0.020660400390625, 0.011932373046875, -0.051971435546875, -0.0171661376953125, 0.055877685546875, 0.0557861328125, 0.0819091796875, 0.061248779296875, -0.016510009765625, 0.0246429443359375, -0.003170013427734375, -0.05810546875, -0.07177734375, 0.0323486328125, -0.07147216796875, -0.0231475830078125, 0.000020205974578857422, 0.017486572265625, 0.0516357421875, -0.0295257568359375, -0.105224609375, 0.06976318359375, -0.03912353515625, -0.03173828125, -0.07989501953125, -0.003582000732421875, 0.0154571533203125, -0.026580810546875, -0.040802001953125, 0.00262451171875, -0.041046142578125, 0.054046630859375, 0.0200653076171875, 0.02606201171875, 0.038299560546875, 0.01776123046875, -0.0667724609375, 0.0072479248046875, -0.040252685546875, 0.021240234375, 0.0199127197265625, -0.02490234375, -0.00009304285049438477, -0.007373809814453125, -0.072265625, -0.064453125, -0.033416748046875, 0.036651611328125, -0.004428863525390625, -0.022857666015625, -0.01593017578125, -0.0002830028533935547, 0.0306396484375, 0.02874755859375, 0.0067291259765625, -0.038818359375, -0.009552001953125, -0.00007534027099609375, -0.0036258697509765625, -0.013824462890625, 0.007175445556640625, -0.043365478515625, -0.01354217529296875, -0.005069732666015625, -0.024383544921875, 0.034942626953125, -0.02215576171875, -0.054962158203125, 0.00882720947265625, -0.03497314453125, -0.0190277099609375, -0.05865478515625, 0.062164306640625, -0.0308074951171875, -0.010223388671875, -0.023895263671875, -0.0281524658203125, -0.01361846923828125, -0.04315185546875, -0.0216522216796875, -0.0115203857421875, -0.007022857666015625, 0.00287628173828125, 0.010711669921875, 0.0016088485717773438, -0.03173828125, 0.00827789306640625, -0.0033626556396484375, 0.0005893707275390625, 0.034332275390625, -0.00021648406982421875, 0.0167999267578125, -0.022491455078125, 0.030914306640625, -0.0166168212890625, 0.0947265625, -0.00036835670471191406, 0.01389312744140625, -0.0013828277587890625, 0.0252685546875, -0.005977630615234375, -0.01259613037109375, 0.00921630859375, -0.0134735107421875, 0.01244354248046875, -0.004791259765625, 0.026123046875, -0.006122589111328125, 0.0185394287109375, 0.020294189453125, -0.019256591796875, 0.01690673828125 ]
5144a735a97ad1abb011b824956ae0d016c13d03
Wordpress Stackexchange Q: Find out who deleted a page or post? Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored it, show that someone edited it 3 days prior to today, so it could have been them, but I can't be sure. Does WP keep track of who clicks the trash button? If not, I presume I'd have to write a custom script to hook onto the trash button, when clicked. A: By default, no, WordPress doesn't keep track of who changes post statuses (at least that I can see). you can hook into transition_post_status and log the user id. add_action( 'transition_post_status', 'wwm_transition_post_status', 10, 3 ); function wwm_transition_post_status( $new_status, $old_status, $post ) { if ( 'trash' == $new_status ) { $uid = get_current_user_id(); //somehow or another log the $uid with the $post->ID } }
Q: Find out who deleted a page or post? Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored it, show that someone edited it 3 days prior to today, so it could have been them, but I can't be sure. Does WP keep track of who clicks the trash button? If not, I presume I'd have to write a custom script to hook onto the trash button, when clicked. A: By default, no, WordPress doesn't keep track of who changes post statuses (at least that I can see). you can hook into transition_post_status and log the user id. add_action( 'transition_post_status', 'wwm_transition_post_status', 10, 3 ); function wwm_transition_post_status( $new_status, $old_status, $post ) { if ( 'trash' == $new_status ) { $uid = get_current_user_id(); //somehow or another log the $uid with the $post->ID } } A: No, natively WordPress does not log any activity. While plugins for it exist, they won't work retroactively. However don't forget that any action taken in WordPress is technically a HTTP request, such as page load, form submit, or Ajax request. These are often logged pretty thoroughly in web server's access log and if available it's pretty realistic to reconstruct action that happened and details like user's IP from them. A: WP can not do it, but you can go to the server logs and find the user's IP. It may take some effort and success is not guaranteed but this is the only possible way. Will's answer will help you in future mistakes. Finding a user based on their IP is not usually hard especially if the number of authors is limited. A: There is a free plugin called Stream that will make your life much easier. Search within the WordPress plugins page. It logs all changes to posts and who is responsible for them.
wordpress
{ "language": "en", "length": 328, "provenance": "stackexchange_00019.jsonl.gz:446309", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/150258" }
[ 0.01270294189453125, 0.009979248046875, -0.0166015625, -0.000005185604095458984, 0.0187835693359375, -0.02886962890625, 0.01666259765625, -0.03265380859375, 0.041534423828125, 0.012451171875, -0.0021877288818359375, -0.0267791748046875, -0.0225982666015625, -0.033935546875, -0.0175323486328125, -0.0224456787109375, 0.0263671875, 0.0219268798828125, 0.0836181640625, 0.01340484619140625, -0.03485107421875, 0.0217742919921875, 0.08221435546875, -0.06280517578125, 0.0196990966796875, 0.01404571533203125, 0.020538330078125, -0.042266845703125, 0.0206451416015625, -0.005771636962890625, 0.01129150390625, -0.018310546875, -0.0196990966796875, 0.0272979736328125, 0.00952911376953125, 0.00945281982421875, -0.0296630859375, 0.0307464599609375, 0.04937744140625, -0.007904052734375, 0.0160980224609375, -0.0010538101196289062, -0.0106048583984375, -0.0279998779296875, -0.01641845703125, -0.035064697265625, 0.031494140625, -0.0194091796875, 0.0309295654296875, 0.0257568359375, 0.015625, -0.01532745361328125, 0.0269012451171875, 0.01369476318359375, -0.035797119140625, -0.038909912109375, 0.026763916015625, 0.0093994140625, 0.035858154296875, -0.030914306640625, -0.051239013671875, 0.018890380859375, 0.007762908935546875, -0.032562255859375, -0.0199127197265625, -0.005001068115234375, 0.036956787109375, 0.01898193359375, -0.03729248046875, -0.0540771484375, 0.0027561187744140625, 0.00040459632873535156, -0.01666259765625, 0.01898193359375, -0.0212554931640625, -0.054779052734375, 0.02459716796875, -0.056060791015625, -0.00598907470703125, 0.039947509765625, 0.00991058349609375, 0.0292510986328125, -0.022369384765625, -0.019439697265625, 0.0166015625, 0.0325927734375, -0.010650634765625, -0.03607177734375, -0.043426513671875, -0.037841796875, -0.02557373046875, -0.061279296875, -0.0230255126953125, -0.0260162353515625, -0.033416748046875, -0.0221710205078125, 0.024810791015625, 0.1051025390625, -0.04302978515625, -0.020263671875, -0.03900146484375, 0.0032176971435546875, -0.05584716796875, -0.0300750732421875, -0.00431060791015625, 0.004718780517578125, 0.0226898193359375, 0.0118865966796875, 0.021240234375, 0.018890380859375, -0.03253173828125, 0.00814056396484375, -0.004337310791015625, 0.0002646446228027344, -0.051177978515625, 0.0253448486328125, -0.00811004638671875, -0.01251220703125, -0.01506805419921875, 0.019439697265625, -0.0113525390625, 0.019134521484375, -0.0386962890625, -0.03692626953125, -0.0006833076477050781, -0.0253753662109375, -0.00803375244140625, 0.002918243408203125, -0.000823974609375, -0.0287322998046875, -0.04620361328125, 0.03387451171875, 0.09429931640625, 0.00884246826171875, 0.0053253173828125, -0.0007886886596679688, 0.0155487060546875, -0.0243377685546875, -0.0162200927734375, 0.0287322998046875, 0.00662994384765625, -0.06292724609375, -0.0290985107421875, -0.01485443115234375, -0.0031337738037109375, 0.033233642578125, 0.01537322998046875, -0.0007991790771484375, -0.016326904296875, -0.0693359375, 0.01885986328125, -0.056304931640625, 0.025360107421875, -0.0116729736328125, 0.044158935546875, -0.058258056640625, 0.059417724609375, -0.052825927734375, 0.00844573974609375, -0.0396728515625, 0.05029296875, -0.0014066696166992188, 0.0189971923828125, 0.0251922607421875, -0.0310516357421875, 0.004730224609375, -0.0623779296875, -0.032989501953125, 0.0242156982421875, -0.0050811767578125, 0.0256805419921875, -0.014617919921875, -0.0120086669921875, -0.0018062591552734375, 0.00010138750076293945, 0.01209259033203125, 0.0013799667358398438, 0.017181396484375, 0.0132293701171875, 0.04205322265625, -0.006366729736328125, -0.0291595458984375, 0.0276031494140625, -0.001003265380859375, -0.001544952392578125, 0.0104217529296875, 0.03179931640625, 0.050872802734375, -0.03753662109375, 0.032318115234375, -0.00720977783203125, 0.03265380859375, -0.0377197265625, 0.00103759765625, 0.01473236083984375, -0.01233673095703125, -0.0272674560546875, -0.01468658447265625, 0.01071929931640625, -0.00858306884765625, 0.0298309326171875, 0.0148162841796875, 0.005725860595703125, 0.0243988037109375, -0.09747314453125, 0.04510498046875, -0.045623779296875, 0.03570556640625, -0.00917816162109375, 0.023895263671875, 0.0252685546875, 0.01297760009765625, -0.0340576171875, 0.00672149658203125, -0.00041103363037109375, 0.0002980232238769531, -0.022430419921875, 0.002323150634765625, -0.01111602783203125, 0.042449951171875, -0.043426513671875, -0.017547607421875, -0.0538330078125, -0.0235443115234375, 0.023406982421875, -0.03369140625, 0.00823974609375, -0.01812744140625, 0.01678466796875, -0.025482177734375, 0.01103973388671875, 0.044464111328125, 0.0139617919921875, 0.01544952392578125, 0.00807952880859375, -0.0023632049560546875, 0.01438140869140625, -0.138671875, 0.032196044921875, 0.064208984375, 0.0242767333984375, -0.0067138671875, 0.027313232421875, 0.070556640625, 0.047393798828125, -0.045013427734375, -0.006107330322265625, 0.045013427734375, 0.0233001708984375, 0.07952880859375, 0.0208587646484375, 0.01180267333984375, -0.0107574462890625, -0.0207061767578125, -0.0121612548828125, 0.01702880859375, -0.01506805419921875, -0.004772186279296875, 0.0008053779602050781, -0.01180267333984375, 0.0059051513671875, -0.059967041015625, -0.04364013671875, -0.032440185546875, 0.037933349609375, -0.020751953125, 0.0447998046875, 0.02935791015625, -0.00276947021484375, -0.0167388916015625, 0.01171875, -0.01617431640625, -0.007251739501953125, 0.0147552490234375, 0.0270843505859375, 0.055938720703125, -0.0217132568359375, -0.01284027099609375, 0.006313323974609375, 0.0142669677734375, -0.042938232421875, -0.023040771484375, -0.00803375244140625, -0.01030731201171875, -0.0024394989013671875, 0.01432037353515625, 0.037078857421875, -0.007526397705078125, -0.0309906005859375, -0.002529144287109375, 0.002285003662109375, 0.061920166015625, -0.0259552001953125, 0.053466796875, -0.007076263427734375, 0.00731658935546875, 0.02508544921875, -0.042083740234375, 0.034149169921875, -0.020477294921875, 0.0285186767578125, 0.07757568359375, 0.00966644287109375, -0.0140380859375, 0.00018286705017089844, 0.03216552734375, 0.0145721435546875, -0.01318359375, -0.005706787109375, 0.0216827392578125, -0.051055908203125, 0.02117919921875, 0.01873779296875, 0.0221099853515625, -0.0149688720703125, -0.03509521484375, -0.01568603515625, -0.0007963180541992188, -0.0692138671875, -0.03558349609375, -0.043426513671875, -0.050750732421875, -0.0006756782531738281, -0.00437164306640625, -0.0243682861328125, 0.01070404052734375, 0.029327392578125, 0.01528167724609375, -0.040374755859375, 0.0240325927734375, -0.00945281982421875, 0.004032135009765625, -0.01271820068359375, -0.01203155517578125, -0.0179595947265625, 0.00201416015625, 0.00630950927734375, 0.0714111328125, -0.0086822509765625, -0.10791015625, -0.0643310546875, 0.006412506103515625, -0.030975341796875, -0.0218505859375, -0.01261138916015625, 0.029327392578125, 0.0088043212890625, 0.0107421875, -0.0015544891357421875, 0.029541015625, -0.0189971923828125, -0.01406097412109375, -0.029083251953125, -0.01222991943359375, 0.0029087066650390625, -0.00098419189453125, 0.017791748046875, 0.00572967529296875, 0.0003161430358886719, -0.046356201171875, -0.0167694091796875, -0.00955963134765625, -0.0309600830078125, 0.01045989990234375, -0.002033233642578125, 0.0026302337646484375, 0.0267486572265625, 0.008880615234375, 0.030670166015625, 0.0200653076171875, -0.029541015625, 0.028106689453125, -0.03240966796875, -0.0038852691650390625, 0.01070404052734375, 0.0244903564453125, -0.00858306884765625, -0.04376220703125, 0.034271240234375, -0.01267242431640625, -0.0184783935546875, -0.00408935546875, -0.005702972412109375, 0.0145416259765625, 0.0036563873291015625, 0.019378662109375, -0.033050537109375, 0.01549530029296875, -0.01497650146484375, -0.008331298828125, -0.0121002197265625, 0.0494384765625, -0.013153076171875, -0.0275421142578125, -0.023284912109375, -0.009796142578125, 0.0251617431640625, -0.004993438720703125, 0.005924224853515625, -0.0208892822265625, -0.112548828125, 0.03240966796875, 0.02838134765625, -0.0367431640625, -0.04840087890625, 0.087890625, -0.08489990234375, -0.0205841064453125, 0.0231781005859375, -0.03692626953125, 0.035186767578125, 0.00792694091796875, 0.01959228515625, -0.01126861572265625, -0.01174163818359375, -0.038360595703125, -0.041839599609375, -0.005329132080078125, -0.016387939453125, 0.0166778564453125, 0.019622802734375, -0.01373291015625, 0.0172882080078125, 0.029144287109375, 0.0206451416015625, 0.022735595703125, -0.0300445556640625, -0.021728515625, -0.0248260498046875, -0.00873565673828125, -0.01013946533203125, -0.019866943359375, 0.023345947265625, -0.003040313720703125, -0.06280517578125, -0.034210205078125, -0.04644775390625, 0.013824462890625, 0.01371002197265625, -0.04962158203125, -0.051025390625, -0.034820556640625, -0.012969970703125, 0.007427215576171875, -0.00946044921875, 0.00606536865234375, -0.043609619140625, -0.0670166015625, 0.033447265625, 0.00016248226165771484, -0.0070648193359375, 0.00864410400390625, 0.050689697265625, 0.01361083984375, -0.016937255859375, -0.006465911865234375, 0.0033664703369140625, 0.024688720703125, 0.01189422607421875, 0.00873565673828125, 0.01427459716796875, -0.02166748046875, -0.0159912109375, 0.010711669921875, -0.0035610198974609375, -0.0269927978515625, 0.039886474609375, -0.00885009765625, -0.02313232421875, 0.01442718505859375, -0.0321044921875, 0.03948974609375, 0.051513671875, -0.039398193359375, 0.017974853515625, 0.01198577880859375, 0.01073455810546875, -0.07940673828125, 0.044036865234375, -0.01129150390625, -0.018829345703125, 0.0052490234375, -0.041351318359375, 0.068603515625, 0.032196044921875, 0.0032444000244140625, 0.03204345703125, 0.035614013671875, -0.00432586669921875, -0.03790283203125, -0.0283660888671875, 0.023193359375, 0.038787841796875, -0.02362060546875, 0.0355224609375, -0.03472900390625, -0.007114410400390625, 0.039581298828125, -0.0008301734924316406, -0.055450439453125, -0.00002199411392211914, -0.01100921630859375, -0.04058837890625, 0.00905609130859375, -0.01007843017578125, 0.0235595703125, 0.0139617919921875, -0.006542205810546875, 0.0008711814880371094, 0.0022602081298828125, -0.0106201171875, -0.041015625, -0.0230560302734375, -0.007656097412109375, -0.0145263671875, 0.021484375, 0.030120849609375, -0.0304412841796875, 0.036224365234375, -0.01255035400390625, 0.0164337158203125, 0.00563812255859375, 0.0120697021484375, 0.01338958740234375, 0.036651611328125, 0.007671356201171875, -0.0010404586791992188, 0.00884246826171875, -0.0421142578125, -0.0063323974609375, 0.052886962890625, 0.06988525390625, 0.0081787109375, -0.022369384765625, -0.00771331787109375, -0.02471923828125, -0.01457977294921875, 0.054718017578125, 0.016448974609375, -0.05230712890625, -0.01178741455078125, 0.03350830078125, 0.01776123046875, -0.018829345703125, 0.0023555755615234375, -0.0465087890625, -0.054229736328125, -0.048095703125, 0.0070343017578125, -0.03363037109375, -0.01910400390625, -0.01201629638671875, -0.007396697998046875, -0.022796630859375, 0.00390625, -0.040863037109375, 0.01372528076171875, -0.037261962890625, -0.02996826171875, 0.06390380859375, 0.002178192138671875, 0.0110626220703125, -0.02374267578125, -0.00110626220703125, 0.0355224609375, -0.016998291015625, 0.07403564453125, 0.0105743408203125, -0.00905609130859375, -0.020538330078125, -0.031036376953125, -0.034454345703125, 0.0177154541015625, -0.0045318603515625, -0.0255584716796875, -0.001667022705078125, -0.0032482147216796875, 0.0155487060546875, -0.0167999267578125, 0.01163482666015625, -0.0241546630859375, 0.0294952392578125, 0.007801055908203125, 0.0380859375, 0.003204345703125, 0.0276641845703125, 0.021514892578125, 0.07904052734375, 0.040008544921875, 0.03192138671875, -0.0121002197265625, -0.04779052734375, 0.0221405029296875, 0.01229095458984375, -0.0008845329284667969, -0.048553466796875, 0.009429931640625, -0.05157470703125, 0.0266876220703125, -0.01450347900390625, 0.01470184326171875, -0.0156402587890625, 0.002193450927734375, -0.02813720703125, 0.007415771484375, -0.0083160400390625, -0.0184326171875, 0.03375244140625, -0.0281219482421875, -0.02972412109375, 0.0073394775390625, 0.037445068359375, -0.0179901123046875, -0.006031036376953125, -0.0154876708984375, -0.00995635986328125, -0.01287841796875, 0.0187530517578125, 0.0312347412109375, -0.0107879638671875, 0.0300140380859375, 0.004062652587890625, 0.01404571533203125, 0.0285186767578125, -0.004364013671875, -0.00305938720703125, 0.01447296142578125, 0.03521728515625, 0.001621246337890625, 0.0097198486328125, 0.0102996826171875, -0.006565093994140625, -0.0025844573974609375, 0.03216552734375, 0.036529541015625, -0.060394287109375, 0.00922393798828125, 0.0171661376953125, -0.01230621337890625, 0.0140380859375, 0.0050201416015625, -0.0023345947265625, -0.0301666259765625, 0.0101776123046875, -0.05743408203125, -0.0212860107421875, -0.00881195068359375, -0.033294677734375, 0.00632476806640625, -0.038848876953125, 0.0516357421875, -0.0101165771484375, -0.04632568359375, -0.0015125274658203125, 0.00945281982421875, -0.01739501953125, -0.050811767578125, -0.00814056396484375, 0.0189666748046875, -0.0003657341003417969, -0.056793212890625, 0.042144775390625, -0.01910400390625, 0.047576904296875, -0.00418853759765625, 0.0165557861328125, 0.050628662109375, 0.037933349609375, 0.01094818115234375, 0.0081634521484375, 0.007167816162109375, 0.00818634033203125, -0.0555419921875, -0.0294189453125, 0.058074951171875, 0.00962066650390625, -0.031494140625, 0.040771484375, -0.00798797607421875, -0.0855712890625, -0.017486572265625, 0.031402587890625, 0.09368896484375, -0.0274505615234375, -0.016082763671875, 0.020111083984375, 0.048309326171875, -0.01514434814453125, 0.01092529296875, 0.0296783447265625, -0.02630615234375, -0.0235137939453125, 0.01097869873046875, -0.058258056640625, -0.041656494140625, -0.0175933837890625, -0.076904296875, 0.060150146484375, 0.05987548828125, 0.01055145263671875, -0.04010009765625, 0.0279998779296875, -0.0212249755859375, -0.0002739429473876953, -0.059051513671875, 0.092041015625, -0.01210784912109375, 0.05316162109375, -0.05560302734375, -0.00154876708984375, 0.0212554931640625, 0.006374359130859375, 0.04913330078125, 0.0202789306640625, 0.0011730194091796875, 0.0111846923828125, 0.0175933837890625, -0.0195465087890625, -0.036163330078125, 0.03521728515625, 0.015350341796875, 0.04150390625, 0.0121612548828125, -0.052520751953125, 0.0288238525390625, -0.03497314453125, -0.00994873046875, 0.02227783203125, 0.00922393798828125, 0.0172882080078125, -0.027587890625, 0.0018520355224609375, -0.041168212890625, -0.0029964447021484375, 0.02105712890625, -0.004291534423828125, 0.030487060546875, 0.040679931640625, 0.07696533203125, -0.036376953125, -0.0028896331787109375, -0.0267333984375, 0.06634521484375, 0.01495361328125, 0.00815582275390625, 0.03515625, 0.03314208984375, 0.026214599609375, -0.05462646484375, -0.0034027099609375, -0.025115966796875, -0.0268402099609375, 0.058685302734375, 0.050506591796875, 0.0364990234375, -0.026397705078125, -0.0256195068359375, 0.02044677734375, 0.08197021484375, -0.04205322265625, -0.054962158203125, 0.006511688232421875, 0.006931304931640625, 0.03594970703125, 0.0103912353515625, 0.0528564453125, -0.044952392578125, 0.0123291015625, -0.0256500244140625, -0.0340576171875, 0.0187835693359375, 0.02569580078125, 0.006572723388671875, 0.006496429443359375, -0.004680633544921875, -0.042755126953125, 0.006603240966796875, -0.034271240234375, 0.0176544189453125, -0.0234222412109375, 0.00213623046875, 0.00738525390625, 0.06683349609375, 0.036224365234375, -0.0095672607421875, 0.01169586181640625, 0.00821685791015625, 0.005626678466796875, -0.0247650146484375, -0.0297088623046875, 0.0161285400390625, 0.021820068359375, -0.005214691162109375, -0.014129638671875, 0.045318603515625, 0.0183563232421875, -0.0728759765625, -0.031494140625, -0.011871337890625, -0.045745849609375, 0.0237579345703125, -0.051788330078125, -0.017242431640625, 0.00485992431640625, -0.024932861328125, -0.002902984619140625, -0.041839599609375, 0.042755126953125, -0.0290069580078125, 0.0154571533203125, -0.0007619857788085938, -0.0345458984375, 0.05572509765625, 0.0125885009765625, 0.048553466796875, 0.0030918121337890625, -0.028839111328125, -0.0018978118896484375, -0.0307464599609375, 0.0089263916015625, -0.0251007080078125, 0.01412200927734375, 0.0248565673828125, -0.00115966796875, -0.01128387451171875, -0.0283050537109375, 0.01276397705078125, 0.0227813720703125, -0.0030517578125, 0.067138671875, 0.013153076171875, 0.00009578466415405273, 0.01105499267578125, -0.00870513916015625, 0.035980224609375, 0.043548583984375, 0.01511383056640625, 0.03076171875, -0.0019168853759765625, 0.01519775390625, -0.0325927734375, 0.0273590087890625, -0.060211181640625, -0.055328369140625, 0.050872802734375, -0.035247802734375, -0.0149078369140625, 0.03350830078125, -0.03448486328125, 0.05682373046875, 0.00044608116149902344, 0.0037784576416015625, 0.0277252197265625, -0.02581787109375, -0.0030460357666015625, 0.034423828125, 0.044830322265625, -0.020721435546875, 0.0157470703125, 0.037322998046875, 0.0006012916564941406, 0.0202484130859375, -0.017547607421875, -0.0290069580078125, 0.043212890625, -0.0016536712646484375, -0.0013837814331054688, 0.0133819580078125, -0.038543701171875, -0.004680633544921875, 0.018707275390625, 0.0130462646484375, -0.0264739990234375, -0.00014138221740722656, -0.0099945068359375, -0.00473785400390625, 0.017608642578125, 0.01739501953125, 0.0288848876953125, 0.05633544921875, -0.02459716796875, -0.036529541015625, 0.0026187896728515625, -0.0160369873046875, -0.00720977783203125, -0.0243988037109375, 0.0220947265625, -0.0006580352783203125, 0.0341796875, 0.0001971721649169922, -0.005359649658203125, -0.008575439453125, 0.00014543533325195312, 0.0006074905395507812, 0.007354736328125, -0.0143280029296875, -0.037078857421875, 0.012420654296875, 0.038360595703125, -0.08795166015625, 0.0718994140625, 0.006526947021484375, -0.06390380859375, -0.00693511962890625, -0.001617431640625, -0.02825927734375, -0.034820556640625, -0.00855255126953125, -0.0170745849609375, -0.05059814453125, 0.052215576171875, 0.0010633468627929688, -0.00855255126953125, 0.016845703125, -0.0029239654541015625, -0.0108642578125, -0.022003173828125, -0.0202178955078125, 0.01183319091796875, -0.04052734375, -0.0345458984375, -0.003627777099609375, 0.006984710693359375, 0.04461669921875, -0.0217742919921875, -0.02801513671875, -0.003009796142578125, 0.0216827392578125, 0.010498046875, -0.01140594482421875, 0.01546478271484375, -0.0390625, -0.052642822265625, 0.0697021484375, -0.004398345947265625, -0.029571533203125, -0.045013427734375, 0.0343017578125, 0.020477294921875, -0.03204345703125, -0.0178375244140625, -0.0090484619140625, -0.01849365234375, 0.00205230712890625, -0.01190948486328125, 0.049591064453125, -0.0084381103515625, -0.0169525146484375, -0.05126953125, -0.00835418701171875, -0.005924224853515625, 0.01024627685546875, 0.023284912109375, -0.03466796875, 0.056884765625, 0.050567626953125, -0.038909912109375, 0.029693603515625, 0.004489898681640625, 0.0191192626953125, 0.007228851318359375, 0.033294677734375, -0.0335693359375, 0.00144195556640625, 0.058258056640625, 0.047821044921875, 0.0283355712890625, -0.014129638671875, -0.0010976791381835938, -0.0307769775390625, -0.03753662109375, -0.0184173583984375, 0.0198974609375, -0.058807373046875, -0.00853729248046875, 0.007320404052734375, -0.010406494140625, 0.01471710205078125, -0.042877197265625, -0.036163330078125, 0.00524139404296875, 0.004940032958984375, 0.0254974365234375, -0.036895751953125, 0.007236480712890625, 0.02691650390625, -0.014862060546875, 0.0169525146484375, -0.01470947265625, 0.01314544677734375, 0.0227813720703125, 0.0031719207763671875, 0.01071929931640625, 0.0271148681640625, -0.06622314453125, 0.0265045166015625, -0.00809478759765625, 0.051422119140625, -0.07464599609375, -0.0167999267578125, 0.01534271240234375, -0.021209716796875, -0.03106689453125, -0.028106689453125, 0.0288238525390625, 0.01904296875, -0.0262603759765625, 0.0246429443359375, 0.0295562744140625, 0.017120361328125, 0.01317596435546875, 0.042236328125, 0.0120086669921875, -0.054656982421875, 0.032501220703125, -0.0615234375, -0.02410888671875, -0.031494140625, -0.00777435302734375, -0.10443115234375, 0.061309814453125, 0.03515625, 0.0267333984375, 0.047088623046875 ]
9413fd0042f24f12e7f96706ddad70b008b64844
Wordpress Stackexchange Q: How do I check for a duplicate record before inserting using wpdb I am inserting a row into a custom table in a wordpress database. this is the code: $wpdb->insert( 'wp_pl_my_parts', array( 'user_ID' => $user_ID, 'PL_part_ID' => $PL_part_ID, 'part_save_date' => $part_save_date ), array( '%d', '%d', '%s' ) ); How do I make sure I do not insert a duplicate entry. Ie. I don't want it to insert if the user_ID and the PL_part_ID are the same as an existing record? Date doesn't matter and shouldn't be checked. A: I have found the best way to check it a record exists or not with WPDB is to check using the WPDB update function first. An example of this could be: if(!$wpdb->update($wpdb->prefix.'table_name',$data,array('id'=>$dbRowId),array('%s'),array('%d'))){ $wpdb->insert($wpdb->prefix.'table_name',$data,array('%s')); return $wpdb->insert_id; }else{ return $dbRowId; } It's a little bit bigger than you may want in terms as an overall function but if you set it up as a callable method in a model or DB class in your plugin or theme, you can have it handle to WPDB functionality.
Q: How do I check for a duplicate record before inserting using wpdb I am inserting a row into a custom table in a wordpress database. this is the code: $wpdb->insert( 'wp_pl_my_parts', array( 'user_ID' => $user_ID, 'PL_part_ID' => $PL_part_ID, 'part_save_date' => $part_save_date ), array( '%d', '%d', '%s' ) ); How do I make sure I do not insert a duplicate entry. Ie. I don't want it to insert if the user_ID and the PL_part_ID are the same as an existing record? Date doesn't matter and shouldn't be checked. A: I have found the best way to check it a record exists or not with WPDB is to check using the WPDB update function first. An example of this could be: if(!$wpdb->update($wpdb->prefix.'table_name',$data,array('id'=>$dbRowId),array('%s'),array('%d'))){ $wpdb->insert($wpdb->prefix.'table_name',$data,array('%s')); return $wpdb->insert_id; }else{ return $dbRowId; } It's a little bit bigger than you may want in terms as an overall function but if you set it up as a callable method in a model or DB class in your plugin or theme, you can have it handle to WPDB functionality. A: Just create your database table with a UNIQUE index (or indexes) to prevent duplicates, see MySQL: CREATE INDEX Syntax for starters. For the WordPress specifics take a look at Codex: Creating Tables with Plugins - Create Database Tables. Below example code is taken from there: global $wpdb; $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, name tinytext NOT NULL, text text NOT NULL, url VARCHAR(55) DEFAULT '' NOT NULL, UNIQUE KEY id (id) );"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); The premise of this answer is, to prevent the problem the OP is experiencing beforehand. Meaning by designing, planing and setting it up in a way that the problem can't occur in the first place. A: Let's say the primary key of the table is my_part_ID. So we will check if there is any primary key value for the combination of user_ID and PL_part_ID as below $my_part_ID = $wpdb->get_var( $wpdb->prepare( "SELECT my_part_ID FROM " . $wpdb->prefix . "pl_my_parts WHERE user_ID = %d AND PL_part_ID = %d LIMIT 1", $user_ID, $PL_part_ID ) ); if ( $my_part_ID > 0 ) // exists else // does not exist A: global $wpdb; $table_user = $wpdb->prefix . 'user'; $PL_part_ID= $_POST['PL_part_ID']; // first check if data exists with select query $datum = $wpdb->get_results("SELECT * FROM $table_user WHERE PL_part_ID= '".$PL_part_ID."'"); if($wpdb->num_rows > 0) { echo "result exists"; } // if not exist in the database then insert it else{ $result = $wpdb->insert( $table_token, array( 'Firstname' => $_POST["value1"], 'Surname' => $_POST["value2"], 'Month' => $_POST["value3"], 'Day' => $_POST["value4"], 'Email Address' => $_POST["value5"] ) ); }
wordpress
{ "language": "en", "length": 441, "provenance": "stackexchange_00019.jsonl.gz:446403", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/151587" }
[ 0.07757568359375, 0.0272674560546875, 0.002685546875, -0.078125, 0.049530029296875, -0.026092529296875, 0.03961181640625, -0.0176239013671875, 0.0062255859375, 0.024749755859375, -0.038848876953125, 0.0022449493408203125, -0.0199127197265625, -0.0174102783203125, -0.01482391357421875, -0.04296875, 0.0164947509765625, -0.007015228271484375, 0.0081939697265625, -0.0265960693359375, 0.0095672607421875, -0.0174102783203125, 0.005374908447265625, 0.0322265625, 0.03375244140625, -0.048583984375, 0.04547119140625, 0.0071563720703125, 0.042266845703125, -0.002048492431640625, 0.0250701904296875, -0.033843994140625, -0.01032257080078125, 0.023040771484375, 0.0050506591796875, 0.015106201171875, 0.057037353515625, -0.0057525634765625, 0.0269927978515625, 0.041717529296875, 0.02685546875, -0.01210784912109375, 0.0019969940185546875, -0.00441741943359375, -0.02410888671875, -0.0386962890625, 0.04779052734375, 0.0177154541015625, 0.0178375244140625, 0.045440673828125, 0.00270843505859375, 0.0166473388671875, 0.00530242919921875, 0.0300750732421875, 0.0093841552734375, -0.004199981689453125, -0.0220489501953125, -0.03143310546875, 0.05181884765625, 0.057708740234375, -0.0008182525634765625, -0.0474853515625, 0.006656646728515625, -0.06317138671875, 0.0092315673828125, -0.00888824462890625, 0.043975830078125, 0.03436279296875, -0.0163116455078125, -0.00890350341796875, -0.0042724609375, 0.0106201171875, -0.025543212890625, 0.01461029052734375, -0.00994873046875, 0.007106781005859375, 0.028533935546875, 0.0007462501525878906, -0.007213592529296875, 0.056549072265625, -0.03643798828125, -0.016387939453125, 0.00862884521484375, -0.042022705078125, 0.012298583984375, 0.00629425048828125, -0.0303955078125, 0.01087188720703125, -0.00830841064453125, -0.007244110107421875, -0.0025501251220703125, -0.03045654296875, -0.0085601806640625, 0.01204681396484375, -0.004039764404296875, -0.020904541015625, 0.01486968994140625, 0.11505126953125, -0.0626220703125, 0.0171966552734375, -0.02532958984375, -0.00916290283203125, 0.01300048828125, -0.0648193359375, 0.0224761962890625, 0.0139923095703125, -0.0029964447021484375, -0.089111328125, -0.003147125244140625, 0.002971649169921875, -0.0270538330078125, 0.0304718017578125, -0.0023441314697265625, -0.064208984375, -0.01451873779296875, 0.059356689453125, 0.004425048828125, -0.0293426513671875, 0.0179595947265625, -0.0213470458984375, -0.01611328125, 0.014373779296875, -0.056396484375, -0.0212860107421875, 0.01430511474609375, -0.03387451171875, -0.02587890625, 0.04705810546875, -0.074462890625, 0.02142333984375, -0.0479736328125, 0.0222015380859375, 0.12420654296875, 0.05914306640625, 0.003376007080078125, -0.0280303955078125, 0.05322265625, -0.01081085205078125, -0.0101318359375, 0.0235595703125, -0.0006389617919921875, -0.0146942138671875, -0.0084381103515625, -0.023468017578125, -0.01690673828125, 0.0172119140625, 0.0215301513671875, 0.015655517578125, -0.01360321044921875, -0.038818359375, -0.0238494873046875, -0.0057220458984375, -0.0172882080078125, 0.0087738037109375, 0.0220947265625, 0.0010423660278320312, -0.03668212890625, 0.0103759765625, 0.02728271484375, 0.03564453125, 0.031982421875, -0.00568389892578125, -0.006961822509765625, -0.03656005859375, -0.070556640625, -0.00571441650390625, -0.05950927734375, -0.0106353759765625, 0.0237884521484375, 0.039306640625, -0.0260467529296875, 0.004390716552734375, 0.020477294921875, 0.019744873046875, -0.0125732421875, 0.020843505859375, 0.0134735107421875, -0.0236663818359375, 0.0208892822265625, 0.02392578125, -0.01580810546875, -0.01198577880859375, 0.051361083984375, -0.021331787109375, -0.03558349609375, 0.06103515625, 0.005283355712890625, 0.07745361328125, 0.002864837646484375, 0.0187530517578125, 0.0167083740234375, 0.0350341796875, -0.00984954833984375, 0.01422882080078125, -0.03558349609375, -0.035858154296875, 0.00370025634765625, 0.0120391845703125, -0.03619384765625, 0.01387786865234375, -0.01666259765625, 0.00656890869140625, 0.0169677734375, -0.0178985595703125, -0.051025390625, 0.0175628662109375, -0.0243377685546875, 0.046783447265625, -0.01329803466796875, 0.050567626953125, 0.01456451416015625, 0.0249481201171875, -0.039886474609375, 0.01605224609375, 0.003978729248046875, -0.016571044921875, -0.0211944580078125, 0.0183258056640625, -0.0195465087890625, 0.060516357421875, -0.056060791015625, -0.02362060546875, -0.05474853515625, -0.038055419921875, -0.004444122314453125, -0.00003540515899658203, -0.0205841064453125, 0.003444671630859375, -0.017333984375, 0.023162841796875, 0.001300811767578125, 0.00020253658294677734, 0.06396484375, 0.0300140380859375, -0.0220489501953125, -0.006114959716796875, 0.00913238525390625, -0.07177734375, -0.0036163330078125, 0.06524658203125, 0.03753662109375, -0.0372314453125, 0.005367279052734375, 0.028106689453125, -0.0032253265380859375, -0.035858154296875, 0.02294921875, -0.0028591156005859375, 0.013458251953125, 0.0811767578125, -0.02264404296875, 0.021087646484375, -0.003719329833984375, -0.036712646484375, -0.0200347900390625, 0.05096435546875, -0.0389404296875, 0.0280609130859375, -0.0052337646484375, -0.0160675048828125, -0.018829345703125, -0.0276641845703125, 0.035614013671875, -0.03887939453125, 0.034149169921875, 0.001018524169921875, 0.061004638671875, 0.053253173828125, 0.008453369140625, -0.0196685791015625, -0.019805908203125, -0.0184783935546875, 0.0189056396484375, 0.04071044921875, -0.047943115234375, 0.0716552734375, -0.03961181640625, -0.00423431396484375, 0.03594970703125, 0.0191802978515625, -0.021820068359375, 0.041107177734375, 0.00006079673767089844, -0.02056884765625, -0.017547607421875, -0.01959228515625, 0.00007611513137817383, -0.031494140625, -0.035247802734375, -0.065185546875, -0.015838623046875, 0.053955078125, -0.034210205078125, 0.048431396484375, -0.0236053466796875, -0.0236053466796875, -0.006748199462890625, -0.023162841796875, 0.0264892578125, -0.030303955078125, -0.01224517822265625, 0.049774169921875, 0.01055908203125, -0.019775390625, -0.00817108154296875, -0.020294189453125, -0.0017566680908203125, -0.0037212371826171875, -0.0236358642578125, -0.01568603515625, -0.05059814453125, 0.017120361328125, 0.043243408203125, 0.0712890625, 0.03912353515625, -0.0155487060546875, 0.034698486328125, 0.061553955078125, -0.0207977294921875, -0.1005859375, -0.048828125, -0.0123443603515625, 0.01070404052734375, -0.0194549560546875, 0.0013256072998046875, 0.006511688232421875, -0.01416778564453125, 0.01434326171875, -0.0029239654541015625, -0.0245513916015625, -0.0254974365234375, -0.064697265625, -0.07208251953125, -0.004581451416015625, 0.0132598876953125, 0.029541015625, -0.005924224853515625, 0.0538330078125, -0.0044403076171875, -0.005268096923828125, 0.0017070770263671875, -0.0037078857421875, -0.004268646240234375, -0.0196990966796875, -0.00554656982421875, -0.0106048583984375, 0.01297760009765625, -0.0016727447509765625, 0.0030841827392578125, 0.0179595947265625, -0.00968170166015625, 0.003173828125, 0.03424072265625, -0.00788116455078125, 0.05908203125, 0.010101318359375, -0.057098388671875, 0.0291900634765625, 0.08111572265625, -0.01177978515625, -0.0175018310546875, 0.021240234375, -0.01416778564453125, 0.0082244873046875, -0.02789306640625, -0.0146636962890625, 0.03265380859375, 0.0177764892578125, 0.03875732421875, 0.0498046875, -0.0352783203125, 0.02532958984375, 0.0269012451171875, 0.0009522438049316406, 0.0154266357421875, -0.0115509033203125, 0.03765869140625, 0.0007390975952148438, -0.0078277587890625, 0.015472412109375, 0.0092620849609375, 0.007511138916015625, -0.007236480712890625, -0.032073974609375, -0.035064697265625, 0.0246124267578125, -0.0232391357421875, 0.0654296875, -0.042877197265625, -0.01383209228515625, -0.01099395751953125, 0.09429931640625, -0.00293731689453125, -0.03826904296875, 0.01177215576171875, 0.023223876953125, -0.0286102294921875, -0.01153564453125, -0.0241241455078125, -0.01009368896484375, 0.0182647705078125, -0.0179901123046875, -0.0187835693359375, -0.002513885498046875, -0.020172119140625, -0.00470733642578125, -0.00782012939453125, -0.004833221435546875, 0.04132080078125, -0.07196044921875, 0.03338623046875, 0.055267333984375, -0.00656890869140625, 0.03143310546875, -0.02276611328125, -0.0560302734375, -0.0615234375, 0.006191253662109375, -0.0516357421875, 0.0199737548828125, 0.01122283935546875, 0.00135040283203125, -0.0172576904296875, 0.01190948486328125, -0.00885009765625, 0.039520263671875, -0.00806427001953125, 0.0269012451171875, -0.002017974853515625, -0.0253448486328125, -0.0125732421875, -0.031494140625, -0.0190582275390625, -0.038787841796875, -0.01073455810546875, -0.01145172119140625, -0.050445556640625, -0.004207611083984375, -0.037017822265625, 0.0021724700927734375, 0.015380859375, -0.049774169921875, -0.0095672607421875, 0.01328277587890625, -0.003963470458984375, -0.007511138916015625, -0.043731689453125, 0.004871368408203125, 0.0182342529296875, -0.03533935546875, -0.00958251953125, 0.0219268798828125, 0.07220458984375, 0.0167694091796875, -0.0038204193115234375, -0.0670166015625, 0.006542205810546875, 0.053466796875, 0.00421142578125, 0.0193328857421875, 0.0196380615234375, -0.032989501953125, 0.0179443359375, 0.0384521484375, -0.0233306884765625, 0.00594329833984375, 0.037750244140625, 0.01119232177734375, 0.00926971435546875, -0.0196990966796875, -0.034027099609375, 0.01288604736328125, 0.01404571533203125, -0.00969696044921875, -0.01153564453125, 0.01357269287109375, 0.024749755859375, -0.006885528564453125, 0.011993408203125, -0.035186767578125, -0.050323486328125, 0.0102386474609375, -0.04888916015625, 0.004459381103515625, -0.029632568359375, 0.017730712890625, 0.0010509490966796875, 0.0033702850341796875, -0.01015472412109375, 0.0310821533203125, 0.06396484375, 0.001125335693359375, 0.041473388671875, 0.02069091796875, -0.004657745361328125, -0.057159423828125, -0.0064544677734375, 0.04119873046875, 0.0059814453125, -0.030548095703125, -0.0093536376953125, -0.020416259765625, -0.0202484130859375, 0.0224609375, -0.0013265609741210938, 0.004608154296875, 0.009063720703125, -0.0450439453125, -0.006946563720703125, -0.0209197998046875, 0.01332855224609375, -0.03631591796875, 0.0165557861328125, 0.0248565673828125, -0.0244903564453125, 0.01617431640625, -0.00553131103515625, 0.017913818359375, -0.01044464111328125, -0.01427459716796875, 0.07000732421875, 0.0704345703125, 0.05230712890625, 0.0158233642578125, -0.03106689453125, -0.03424072265625, 0.025299072265625, -0.0467529296875, -0.03619384765625, -0.01515960693359375, 0.020355224609375, 0.040618896484375, -0.015228271484375, -0.017913818359375, 0.0166778564453125, -0.0254669189453125, -0.0137939453125, 0.0085601806640625, -0.01776123046875, -0.0435791015625, -0.0233001708984375, 0.03662109375, 0.0328369140625, -0.00843048095703125, 0.00472259521484375, -0.0018711090087890625, -0.03155517578125, 0.0283355712890625, 0.0048828125, 0.034393310546875, -0.0517578125, -0.06134033203125, 0.0213623046875, -0.0171356201171875, -0.03387451171875, 0.047698974609375, 0.0364990234375, -0.039794921875, -0.0181121826171875, 0.044342041015625, -0.0242156982421875, 0.0203857421875, -0.033905029296875, -0.000804901123046875, -0.0017805099487304688, 0.0015821456909179688, 0.054473876953125, 0.023712158203125, 0.0272979736328125, -0.045013427734375, -0.025848388671875, -0.0226898193359375, 0.00200653076171875, -0.00038695335388183594, 0.01320648193359375, 0.0164794921875, -0.00969696044921875, -0.011444091796875, -0.0120086669921875, -0.018951416015625, -0.0016641616821289062, 0.024017333984375, 0.005840301513671875, -0.044525146484375, -0.0269775390625, 0.0487060546875, 0.001369476318359375, 0.0369873046875, 0.003509521484375, 0.01445770263671875, 0.014801025390625, -0.0204925537109375, 0.0027294158935546875, -0.0146331787109375, -0.010498046875, -0.0328369140625, 0.03314208984375, -0.0008134841918945312, 0.0099639892578125, 0.0004074573516845703, 0.0234832763671875, -0.0010957717895507812, 0.006183624267578125, -0.021728515625, 0.005222320556640625, -0.01158905029296875, -0.0312042236328125, 0.056610107421875, -0.0293426513671875, -0.006214141845703125, -0.01068878173828125, 0.001007080078125, 0.006282806396484375, -0.016387939453125, -0.019622802734375, 0.01367950439453125, -0.018218994140625, 0.003082275390625, 0.0271453857421875, 0.0372314453125, 0.0570068359375, 0.00013315677642822266, 0.04718017578125, 0.0131683349609375, -0.010345458984375, -0.0091552734375, -0.0001996755599975586, 0.06524658203125, -0.0005311965942382812, -0.012908935546875, 0.067626953125, -0.020477294921875, 0.019317626953125, 0.031707763671875, 0.0648193359375, -0.04248046875, 0.003963470458984375, -0.0026645660400390625, -0.0273284912109375, 0.0276947021484375, -0.0192413330078125, -0.01200103759765625, -0.007568359375, 0.059234619140625, -0.01023101806640625, -0.0282440185546875, 0.024017333984375, -0.0198516845703125, -0.0021839141845703125, -0.019561767578125, 0.0243072509765625, -0.00555419921875, 0.01483154296875, -0.0212860107421875, -0.018218994140625, -0.006744384765625, 0.007518768310546875, 0.022216796875, -0.028411865234375, -0.011871337890625, -0.057037353515625, -0.023834228515625, -0.02520751953125, -0.025238037109375, 0.0098114013671875, 0.0141448974609375, 0.080810546875, 0.03826904296875, 0.03790283203125, -0.04510498046875, 0.0098419189453125, 0.0220794677734375, -0.005870819091796875, 0.0109405517578125, 0.01204681396484375, 0.0161285400390625, -0.051513671875, 0.007781982421875, -0.061431884765625, 0.026580810546875, 0.00495147705078125, -0.004199981689453125, 0.07159423828125, -0.074951171875, 0.005023956298828125, 0.0124053955078125, 0.0011577606201171875, 0.020660400390625, -0.0100860595703125, 0.0128326416015625, -0.0711669921875, -0.056488037109375, -0.0162811279296875, -0.0821533203125, -0.016204833984375, -0.03240966796875, -0.0828857421875, 0.089599609375, 0.03179931640625, 0.0187225341796875, -0.005702972412109375, 0.036376953125, -0.0157012939453125, 0.007678985595703125, -0.040313720703125, 0.045074462890625, 0.015045166015625, 0.03973388671875, -0.02099609375, -0.0056304931640625, 0.0204010009765625, 0.0130767822265625, 0.047119140625, 0.017913818359375, -0.012359619140625, -0.0043487548828125, 0.0191802978515625, 0.0113067626953125, -0.0270538330078125, 0.027618408203125, -0.036224365234375, 0.03948974609375, 0.0596923828125, -0.06610107421875, 0.0255279541015625, 0.00759124755859375, -0.0224456787109375, -0.0268707275390625, 0.006900787353515625, 0.0213470458984375, -0.03204345703125, -0.0019741058349609375, 0.020904541015625, -0.033721923828125, -0.0026874542236328125, -0.045654296875, 0.0306243896484375, 0.0129852294921875, 0.035125732421875, -0.06927490234375, 0.009613037109375, -0.037261962890625, 0.037689208984375, -0.0145263671875, 0.029571533203125, 0.03729248046875, 0.01073455810546875, 0.062164306640625, 0.019866943359375, -0.0011396408081054688, 0.0029582977294921875, 0.0247344970703125, 0.0281219482421875, 0.02618408203125, 0.01070404052734375, -0.035400390625, 0.0063323974609375, 0.049530029296875, 0.044281005859375, -0.042083740234375, 0.0146942138671875, 0.02642822265625, 0.022369384765625, -0.0252227783203125, -0.01523590087890625, 0.0025196075439453125, -0.0153961181640625, 0.0194091796875, -0.00911712646484375, -0.0220489501953125, 0.007671356201171875, 0.003993988037109375, 0.00431060791015625, 0.0202178955078125, 0.0157012939453125, -0.0236663818359375, -0.03839111328125, 0.0258941650390625, 0.0174407958984375, 0.0379638671875, -0.007396697998046875, 0.040740966796875, 0.00899505615234375, -0.006931304931640625, -0.0288848876953125, 0.0192413330078125, 0.0163421630859375, 0.0374755859375, -0.059539794921875, -0.02264404296875, 0.04815673828125, 0.04364013671875, -0.02642822265625, 0.034942626953125, 0.0245513916015625, 0.0206756591796875, -0.022674560546875, -0.01043701171875, 0.03509521484375, -0.04010009765625, -0.02923583984375, -0.053558349609375, 0.0015964508056640625, -0.00823974609375, 0.0103607177734375, 0.02728271484375, 0.036407470703125, -0.0174407958984375, 0.004146575927734375, 0.013671875, -0.0009851455688476562, -0.01195526123046875, 0.0188140869140625, -0.023162841796875, 0.0117340087890625, 0.0164947509765625, -0.0460205078125, -0.003261566162109375, -0.00461578369140625, -0.040802001953125, -0.0111846923828125, 0.0301666259765625, -0.0126800537109375, 0.015472412109375, 0.042724609375, 0.005634307861328125, -0.005519866943359375, 0.00820159912109375, 0.0178680419921875, 0.007228851318359375, 0.04144287109375, 0.024017333984375, -0.01096343994140625, 0.0145111083984375, 0.02386474609375, -0.00217437744140625, -0.0173797607421875, 0.037933349609375, -0.001010894775390625, -0.006282806396484375, -0.0149078369140625, 0.06451416015625, -0.0787353515625, -0.019744873046875, 0.05621337890625, -0.0199432373046875, 0.005657196044921875, 0.0013475418090820312, -0.0264739990234375, -0.00705718994140625, 0.0197601318359375, 0.005584716796875, -0.005123138427734375, -0.03948974609375, 0.051177978515625, 0.0274658203125, 0.0214691162109375, -0.018829345703125, 0.01374053955078125, 0.0019073486328125, 0.003765106201171875, 0.0516357421875, 0.03277587890625, -0.0106048583984375, 0.048736572265625, -0.006031036376953125, -0.041229248046875, 0.01029205322265625, -0.051177978515625, 0.018341064453125, 0.034332275390625, 0.01027679443359375, -0.015045166015625, -0.036712646484375, -0.0269927978515625, -0.023345947265625, -0.007137298583984375, -0.00848388671875, -0.02935791015625, -0.054229736328125, 0.026336669921875, 0.08050537109375, 0.045501708984375, -0.006317138671875, 0.034271240234375, 0.0447998046875, -0.039093017578125, 0.02447509765625, 0.02008056640625, -0.005126953125, -0.001430511474609375, -0.0099639892578125, 0.0016803741455078125, -0.0005207061767578125, -0.00921630859375, -0.034271240234375, 0.0147705078125, 0.01500701904296875, -0.0305328369140625, -0.01229095458984375, 0.0246429443359375, -0.04388427734375, 0.010467529296875, -0.0289459228515625, 0.0216827392578125, 0.005001068115234375, 0.045196533203125, -0.040618896484375, -0.0230865478515625, 0.00046443939208984375, 0.02215576171875, -0.015869140625, -0.0128326416015625, 0.0064697265625, -0.026611328125, -0.047027587890625, -0.0316162109375, 0.0173797607421875, -0.006587982177734375, 0.0570068359375, -0.025604248046875, 0.004474639892578125, -0.0097503662109375, 0.0030517578125, -0.0166473388671875, 0.01166534423828125, -0.067138671875, -0.0193328857421875, -0.06591796875, 0.038848876953125, 0.0311737060546875, -0.04632568359375, -0.1041259765625, 0.09832763671875, -0.060089111328125, -0.028533935546875, 0.0017108917236328125, -0.03717041015625, -0.03033447265625, 0.0260467529296875, -0.01141357421875, 0.0046234130859375, -0.01160430908203125, 0.0478515625, -0.026123046875, 0.0125274658203125, 0.0167236328125, -0.036285400390625, -0.08673095703125, -0.0308990478515625, -0.0338134765625, -0.01250457763671875, 0.0246429443359375, -0.002655029296875, 0.03155517578125, 0.056671142578125, -0.003948211669921875, -0.030792236328125, -0.024932861328125, -0.06390380859375, -0.01312255859375, -0.00453948974609375, -0.00949859619140625, 0.006988525390625, 0.06365966796875, 0.08624267578125, 0.022491455078125, -0.048736572265625, -0.0215911865234375, -0.0294342041015625, -0.02130126953125, 0.01213836669921875, 0.008514404296875, -0.038360595703125, 0.01519775390625, 0.006744384765625, -0.00807952880859375, -0.0022029876708984375, 0.034210205078125, -0.015228271484375, -0.018096923828125, 0.0285491943359375, -0.0164337158203125, -0.050872802734375, 0.00963592529296875, 0.0187225341796875, -0.037353515625, -0.049285888671875, -0.0102691650390625, 0.00919342041015625, -0.0499267578125, -0.043853759765625, -0.001983642578125, 0.01904296875, -0.036590576171875, 0.0021820068359375, 0.002899169921875, -0.0038051605224609375, -0.018951416015625, 0.005321502685546875, -0.0224456787109375, -0.01849365234375, -0.00969696044921875, -0.033050537109375, 0.010101318359375, -0.005626678466796875, -0.0184783935546875, 0.0987548828125, -0.02044677734375, 0.042999267578125, -0.0258636474609375, 0.0177154541015625, 0.009735107421875, -0.00450897216796875, 0.039306640625, -0.006481170654296875, -0.0003337860107421875, 0.03717041015625, -0.024505615234375, -0.052642822265625, 0.021240234375, 0.021087646484375, 0.0137939453125, 0.012847900390625 ]
4c18abdd55ffe5c97f9a32d4bb56cbe4945703f3
Wordpress Stackexchange Q: How to remove category from wordpress url? I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have tried various solutions like Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/ Next set your Category Base to / But even after doing this i am not able to remove the /category/ from the URL. Any help would be appreciated Thanks A: There is a plugin for that called WP No Category Base. As the name suggests this plugin will completely remove the mandatory 'Category Base' from your category permalinks ( e.g. myblog.com/category/my-category/ to myblog.com/my-category/ ). https://wordpress.org/plugins/wp-no-category-base/
Q: How to remove category from wordpress url? I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have tried various solutions like Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/ Next set your Category Base to / But even after doing this i am not able to remove the /category/ from the URL. Any help would be appreciated Thanks A: There is a plugin for that called WP No Category Base. As the name suggests this plugin will completely remove the mandatory 'Category Base' from your category permalinks ( e.g. myblog.com/category/my-category/ to myblog.com/my-category/ ). https://wordpress.org/plugins/wp-no-category-base/ A: I recommend one of these two plugins to get the job done * *https://wordpress.org/plugins/fv-top-level-cats/, or *https://wordpress.org/plugins/wordpress-seo/ Wordpress SEO has the abillity to remove the /category/ base and many other valuable features. Cheers A: I found this handy solution which you can use without plugin. https://stackoverflow.com/a/27569173/851045 function fix_slash( $string, $type ) { global $wp_rewrite; if ( $wp_rewrite->use_trailing_slashes == false ) { if ( $type != 'single' && $type != 'category' ) return trailingslashit( $string ); if ( $type == 'single' && ( strpos( $string, '.html/' ) !== false ) ) return trailingslashit( $string ); if ( $type == 'category' && ( strpos( $string, 'category' ) !== false ) ){ $aa_g = str_replace( "/category/", "/", $string ); return trailingslashit( $aa_g ); } if ( $type == 'category' ) return trailingslashit( $string ); } return $string; } add_filter( 'user_trailingslashit', 'fix_slash', 55, 2 ); A: I recommend CS Remove Category Base plugin to get the job done. https://wordpress.org/plugins/cs-remove-category-base/ You can undoubtedly remove /category/ slug from your page WordPress URLs using this plugin. I hope it's useful to you. A: Select Custom Structure in permalinks and add /%category%/%postname%/ after your domain. Adding "/" to the category base doesn't work, you have to add a period/dot. I wrote a tutorial for this here: remove category from URL tutorial
wordpress
{ "language": "en", "length": 334, "provenance": "stackexchange_00019.jsonl.gz:446485", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/151874" }
[ 0.07257080078125, 0.021759033203125, -0.044189453125, -0.06512451171875, 0.04949951171875, -0.060028076171875, 0.045257568359375, 0.0007891654968261719, -0.01529693603515625, 0.0117034912109375, 0.035003662109375, -0.03912353515625, 0.00458526611328125, -0.06524658203125, 0.00664520263671875, -0.0111541748046875, -0.0026111602783203125, 0.028594970703125, 0.0288238525390625, -0.007354736328125, 0.01557159423828125, -0.0119781494140625, 0.011138916015625, 0.039642333984375, 0.00518035888671875, -0.01001739501953125, 0.04400634765625, -0.053924560546875, -0.005481719970703125, -0.05914306640625, 0.00039315223693847656, 0.03924560546875, -0.0029048919677734375, 0.01971435546875, 0.0166015625, 0.0156707763671875, -0.018218994140625, 0.0281829833984375, 0.035552978515625, -0.0008168220520019531, 0.02099609375, -0.0266571044921875, 0.0101470947265625, -0.0007963180541992188, 0.004985809326171875, -0.035980224609375, 0.03253173828125, -0.05828857421875, -0.001201629638671875, -0.0458984375, 0.0264129638671875, 0.020294189453125, 0.0540771484375, -0.028564453125, -0.03045654296875, -0.02545166015625, -0.033935546875, 0.020050048828125, 0.024139404296875, 0.0183563232421875, -0.01366424560546875, 0.0004146099090576172, 0.0025882720947265625, -0.01540374755859375, -0.022186279296875, -0.020172119140625, 0.002521514892578125, 0.0253143310546875, -0.04345703125, -0.019256591796875, 0.046173095703125, -0.0162353515625, -0.023956298828125, -0.0041961669921875, -0.04736328125, 0.0053558349609375, 0.007221221923828125, -0.0250244140625, 0.0162811279296875, 0.004108428955078125, 0.0120391845703125, -0.0157470703125, 0.021636962890625, -0.01496124267578125, 0.024871826171875, 0.0211944580078125, -0.0034198760986328125, -0.0207672119140625, -0.03472900390625, -0.00576019287109375, -0.0186004638671875, -0.0297393798828125, -0.05084228515625, 0.0233917236328125, 0.007167816162109375, -0.00446319580078125, 0.01995849609375, -0.0005016326904296875, -0.0017404556274414062, -0.012725830078125, 0.0149078369140625, -0.045257568359375, -0.0012359619140625, -0.00554656982421875, 0.0108184814453125, 0.0380859375, 0.0010709762573242188, 0.041168212890625, 0.052490234375, 0.01983642578125, 0.00966644287109375, 0.0283660888671875, -0.0245361328125, 0.0031795501708984375, -0.0193939208984375, 0.0277862548828125, -0.026214599609375, -0.00579071044921875, -0.047210693359375, 0.0233306884765625, -0.0158843994140625, 0.03155517578125, -0.0198211669921875, -0.00913238525390625, 0.01383209228515625, 0.013671875, 0.0024051666259765625, -0.0299530029296875, -0.00897979736328125, -0.042449951171875, -0.042449951171875, 0.04833984375, 0.0672607421875, 0.02471923828125, 0.0173492431640625, -0.0035991668701171875, 0.0011034011840820312, -0.004840850830078125, -0.0026340484619140625, 0.01241302490234375, 0.015716552734375, -0.01617431640625, 0.0142669677734375, -0.00742340087890625, 0.042205810546875, 0.017791748046875, -0.009857177734375, 0.02093505859375, 0.03863525390625, 0.019439697265625, 0.01180267333984375, -0.055816650390625, 0.07086181640625, 0.004791259765625, -0.031005859375, 0.0025272369384765625, 0.07110595703125, -0.047576904296875, -0.06719970703125, -0.07183837890625, 0.03759765625, 0.0003039836883544922, 0.0111236572265625, 0.011871337890625, -0.024078369140625, -0.005222320556640625, -0.053314208984375, -0.00882720947265625, 0.006744384765625, -0.007633209228515625, 0.0076751708984375, 0.004947662353515625, -0.0224609375, 0.005279541015625, 0.024169921875, -0.0004475116729736328, 0.01004791259765625, -0.01239013671875, 0.0086517333984375, 0.07769775390625, 0.005489349365234375, -0.036102294921875, -0.01019287109375, 0.00389862060546875, -0.062255859375, 0.048858642578125, 0.018035888671875, 0.07330322265625, -0.0227813720703125, 0.0113525390625, 0.077880859375, 0.0310516357421875, -0.0157318115234375, -0.0177154541015625, 0.00980377197265625, -0.00921630859375, -0.01334381103515625, -0.006160736083984375, 0.0028057098388671875, -0.004047393798828125, 0.0249786376953125, 0.0272369384765625, -0.0193939208984375, 0.0228729248046875, -0.0246734619140625, 0.0163726806640625, -0.006877899169921875, 0.0309906005859375, -0.03692626953125, 0.03466796875, 0.031829833984375, 0.020050048828125, -0.037872314453125, -0.03369140625, -0.01273345947265625, 0.004913330078125, 0.026336669921875, -0.0159454345703125, -0.00150299072265625, 0.00554656982421875, -0.005107879638671875, 0.017913818359375, -0.0330810546875, 0.0256805419921875, 0.04296875, -0.0095977783203125, -0.019927978515625, -0.04522705078125, -0.01190185546875, 0.01505279541015625, -0.10052490234375, 0.0384521484375, 0.036956787109375, 0.0302276611328125, -0.03216552734375, 0.016632080078125, 0.027130126953125, -0.0017108917236328125, -0.01319122314453125, 0.026519775390625, 0.038330078125, -0.00677490234375, -0.04302978515625, -0.044189453125, 0.0157012939453125, -0.07122802734375, -0.0203857421875, -0.005130767822265625, 0.00989532470703125, -0.0005502700805664062, 0.055023193359375, -0.020721435546875, 0.0181732177734375, 0.01064300537109375, 0.017730712890625, 0.0009937286376953125, 0.008941650390625, -0.03009033203125, 0.0105133056640625, -0.0023365020751953125, 0.0307159423828125, -0.016754150390625, -0.0682373046875, 0.03045654296875, -0.007659912109375, 0.02496337890625, 0.01117706298828125, 0.034698486328125, -0.007122039794921875, 0.01025390625, 0.01123809814453125, 0.004817962646484375, -0.0200653076171875, 0.041748046875, 0.05352783203125, -0.006988525390625, -0.0237884521484375, 0.003482818603515625, -0.033966064453125, 0.021392822265625, -0.01873779296875, 0.04254150390625, 0.0230255126953125, -0.0197296142578125, -0.04095458984375, -0.04876708984375, 0.0106658935546875, -0.024688720703125, -0.036865234375, -0.0291290283203125, 0.0251007080078125, 0.00555419921875, -0.0117034912109375, -0.01239013671875, -0.0028553009033203125, -0.0115509033203125, 0.01708984375, -0.01229095458984375, 0.025146484375, -0.01517486572265625, 0.031036376953125, 0.059051513671875, 0.0022144317626953125, -0.002593994140625, 0.02276611328125, -0.0214080810546875, 0.035308837890625, -0.0034942626953125, -0.0036296844482421875, 0.034210205078125, -0.08441162109375, -0.006381988525390625, 0.0171051025390625, -0.015228271484375, 0.0289764404296875, -0.03240966796875, 0.0223236083984375, 0.0110931396484375, -0.048004150390625, -0.050384521484375, 0.006999969482421875, 0.01519775390625, 0.02020263671875, 0.057952880859375, 0.01459503173828125, -0.0357666015625, 0.08807373046875, -0.000423431396484375, 0.06500244140625, -0.05035400390625, -0.0843505859375, -0.034423828125, -0.07904052734375, -0.04376220703125, -0.0104522705078125, -0.018310546875, 0.0041046142578125, 0.033660888671875, 0.006710052490234375, -0.0450439453125, 0.006107330322265625, 0.01409912109375, -0.007843017578125, 0.005702972412109375, 0.01445770263671875, -0.02301025390625, -0.005832672119140625, -0.00569915771484375, 0.068359375, 0.0377197265625, -0.037994384765625, 0.0165252685546875, -0.0130615234375, 0.01013946533203125, 0.00966644287109375, -0.0129852294921875, 0.025970458984375, -0.00991058349609375, -0.0165557861328125, -0.052886962890625, -0.02545166015625, 0.0168914794921875, -0.01849365234375, 0.0251617431640625, -0.004337310791015625, -0.00859832763671875, -0.0019102096557617188, 0.0224456787109375, 0.0090484619140625, 0.00989532470703125, 0.0328369140625, -0.030029296875, 0.036407470703125, -0.009521484375, -0.004116058349609375, -0.038909912109375, 0.033599853515625, -0.0379638671875, -0.004322052001953125, -0.0121917724609375, -0.031982421875, -0.0129852294921875, -0.0017461776733398438, 0.00579833984375, -0.047882080078125, 0.046905517578125, -0.043426513671875, -0.03741455078125, -0.0197906494140625, -0.0011920928955078125, 0.01136016845703125, 0.06951904296875, -0.016510009765625, -0.023406982421875, -0.023773193359375, 0.01212310791015625, -0.023162841796875, -0.04107666015625, -0.032470703125, -0.0205841064453125, -0.09747314453125, 0.026763916015625, 0.01468658447265625, -0.0240020751953125, -0.007694244384765625, 0.005828857421875, -0.058380126953125, -0.03955078125, 0.036163330078125, -0.04351806640625, 0.007350921630859375, -0.0174713134765625, -0.0030345916748046875, -0.05242919921875, -0.034332275390625, -0.0069732666015625, -0.0150604248046875, -0.0014171600341796875, -0.001644134521484375, 0.00017189979553222656, -0.0006723403930664062, 0.01235198974609375, -0.005176544189453125, 0.03082275390625, 0.01494598388671875, 0.015106201171875, -0.0017881393432617188, -0.0082855224609375, -0.0257568359375, 0.042449951171875, 0.017120361328125, -0.00421905517578125, 0.0133056640625, -0.0129547119140625, -0.03143310546875, 0.03070068359375, -0.023406982421875, 0.03106689453125, 0.00051116943359375, -0.0200042724609375, -0.038848876953125, -0.0279083251953125, -0.028900146484375, -0.01025390625, -0.0028934478759765625, -0.0165557861328125, -0.0225067138671875, -0.04803466796875, 0.04052734375, 0.0243682861328125, 0.0111541748046875, -0.00027632713317871094, 0.035919189453125, 0.0012807846069335938, -0.029022216796875, -0.0157012939453125, 0.021392822265625, 0.033538818359375, -0.0089874267578125, 0.044036865234375, -0.0034847259521484375, -0.01727294921875, 0.0650634765625, -0.005840301513671875, 0.017669677734375, -0.04534912109375, 0.0626220703125, 0.00595855712890625, 0.002429962158203125, 0.007610321044921875, -0.0062713623046875, 0.0210113525390625, 0.01476287841796875, -0.00043582916259765625, 0.021636962890625, -0.01293182373046875, -0.0165252685546875, 0.0252838134765625, -0.031585693359375, -0.01137542724609375, -0.0265045166015625, 0.01042938232421875, 0.0204925537109375, 0.044769287109375, 0.0183563232421875, -0.00492095947265625, 0.021240234375, 0.02044677734375, 0.0106048583984375, -0.049346923828125, -0.0263671875, -0.052032470703125, 0.034759521484375, -0.052703857421875, -0.01265716552734375, -0.0097503662109375, 0.013580322265625, -0.0016756057739257812, -0.00933074951171875, -0.0091400146484375, -0.040069580078125, -0.00811767578125, 0.037841796875, 0.0181121826171875, -0.0301361083984375, 0.038787841796875, 0.019012451171875, -0.0030460357666015625, 0.005352020263671875, -0.059783935546875, -0.04144287109375, -0.0439453125, 0.030487060546875, 0.0064697265625, -0.0095672607421875, 0.0263824462890625, 0.024749755859375, 0.01113128662109375, 0.0197906494140625, -0.01456451416015625, -0.00563812255859375, 0.01904296875, 0.0272674560546875, 0.0203857421875, -0.035919189453125, 0.0022563934326171875, -0.013824462890625, 0.034210205078125, -0.0673828125, -0.01195526123046875, 0.00429534912109375, 0.06317138671875, -0.01042938232421875, -0.048126220703125, 0.033172607421875, -0.011474609375, -0.01025390625, 0.019256591796875, -0.0254058837890625, -0.0156707763671875, -0.022491455078125, -0.0177764892578125, 0.01549530029296875, -0.01035308837890625, -0.0183868408203125, -0.0218353271484375, -0.0248870849609375, 0.0217437744140625, 0.05059814453125, -0.00913238525390625, 0.009429931640625, -0.016937255859375, -0.03472900390625, -0.0272064208984375, -0.008331298828125, 0.012664794921875, 0.01146697998046875, -0.0238494873046875, -0.03759765625, 0.013092041015625, 0.005168914794921875, 0.047210693359375, -0.01251220703125, -0.035125732421875, 0.0406494140625, -0.01320648193359375, 0.055938720703125, 0.0183258056640625, -0.057830810546875, 0.0026454925537109375, -0.0423583984375, -0.00672149658203125, 0.0007047653198242188, -0.018890380859375, -0.025970458984375, -0.00017976760864257812, 0.0193634033203125, 0.0111846923828125, -0.004856109619140625, -0.0036678314208984375, -0.02197265625, 0.0178375244140625, 0.0264739990234375, -0.006374359130859375, -0.0281219482421875, 0.011444091796875, 0.01100921630859375, 0.015472412109375, -0.00876617431640625, -0.0002186298370361328, 0.030120849609375, -0.037689208984375, 0.0166778564453125, -0.038116455078125, -0.03179931640625, -0.0035572052001953125, -0.052459716796875, -0.001003265380859375, 0.042388916015625, -0.00414276123046875, -0.018890380859375, 0.002899169921875, 0.0011014938354492188, -0.0341796875, 0.016448974609375, -0.0004916191101074219, 0.0098419189453125, -0.043121337890625, 0.01317596435546875, 0.0577392578125, -0.0265655517578125, 0.0015993118286132812, 0.006412506103515625, -0.03509521484375, 0.0257720947265625, 0.032379150390625, -0.03399658203125, 0.040252685546875, 0.07080078125, 0.028228759765625, 0.06353759765625, 0.0256195068359375, 0.02899169921875, 0.00026798248291015625, 0.01788330078125, -0.0034427642822265625, 0.006916046142578125, 0.036651611328125, 0.0105438232421875, 0.008453369140625, 0.0184326171875, -0.0207366943359375, -0.01271820068359375, 0.059173583984375, 0.046722412109375, -0.08221435546875, 0.001728057861328125, 0.00885772705078125, 0.01210784912109375, 0.0285797119140625, 0.0289459228515625, -0.012969970703125, -0.0221099853515625, -0.0243988037109375, -0.0202178955078125, -0.017730712890625, -0.00823974609375, 0.00323486328125, 0.011077880859375, 0.01038360595703125, 0.033843994140625, 0.0039825439453125, -0.06103515625, -0.0181121826171875, 0.05633544921875, -0.021148681640625, -0.033935546875, -0.01128387451171875, 0.08154296875, -0.043853759765625, -0.054351806640625, 0.0816650390625, 0.00800323486328125, 0.0012254714965820312, 0.013580322265625, -0.002437591552734375, -0.01319122314453125, 0.0111846923828125, -0.0133056640625, -0.0012884140014648438, -0.01381683349609375, -0.0751953125, 0.08123779296875, 0.0186920166015625, 0.02001953125, -0.017425537109375, -0.04107666015625, -0.0174407958984375, -0.0297088623046875, 0.0146331787109375, -0.011932373046875, -0.0377197265625, 0.080322265625, -0.06768798828125, 0.00006890296936035156, -0.0084075927734375, 0.0274810791015625, 0.0350341796875, -0.0216827392578125, 0.037353515625, -0.0012607574462890625, 0.04119873046875, 0.0016565322875976562, 0.06536865234375, 0.033935546875, -0.00627899169921875, -0.07427978515625, 0.047637939453125, -0.0164031982421875, 0.0687255859375, 0.005580902099609375, 0.0015573501586914062, 0.025177001953125, -0.0017547607421875, -0.0236053466796875, 0.056488037109375, 0.0645751953125, 0.003021240234375, -0.01483154296875, -0.0209808349609375, 0.01399993896484375, 0.036407470703125, 0.07464599609375, 0.0157623291015625, 0.00569915771484375, 0.0154266357421875, 0.07720947265625, 0.0259246826171875, -0.0157470703125, 0.0176239013671875, 0.0041351318359375, 0.00566864013671875, 0.0227203369140625, 0.00428009033203125, 0.0399169921875, -0.00182342529296875, -0.03057861328125, 0.018585205078125, 0.0244903564453125, 0.04443359375, -0.0003490447998046875, 0.0269012451171875, -0.01812744140625, 0.0033054351806640625, 0.028076171875, -0.0252838134765625, -0.0027179718017578125, 0.061614990234375, 0.03070068359375, -0.054931640625, -0.003917694091796875, -0.039642333984375, 0.0650634765625, -0.010284423828125, 0.032501220703125, 0.04852294921875, 0.0203704833984375, 0.06756591796875, -0.0162506103515625, 0.03131103515625, 0.004726409912109375, -0.0170745849609375, 0.078369140625, 0.053436279296875, 0.038787841796875, 0.0009579658508300781, 0.014068603515625, 0.0308380126953125, 0.08056640625, -0.053009033203125, -0.074951171875, 0.00023639202117919922, 0.006755828857421875, 0.021453857421875, 0.0168914794921875, 0.019134521484375, -0.021759033203125, 0.0450439453125, -0.055145263671875, 0.01113128662109375, 0.023956298828125, 0.05999755859375, -0.023529052734375, -0.0273590087890625, -0.062744140625, -0.0188140869140625, -0.0245361328125, 0.00972747802734375, -0.002384185791015625, 0.0297088623046875, 0.034454345703125, 0.0173187255859375, -0.01324462890625, -0.0274505615234375, 0.0010280609130859375, 0.03875732421875, -0.01448822021484375, -0.00844573974609375, -0.0130615234375, -0.053802490234375, 0.0182342529296875, 0.0290679931640625, 0.00406646728515625, 0.012664794921875, 0.03436279296875, 0.0433349609375, 0.01033782958984375, -0.0166168212890625, 0.008819580078125, -0.005031585693359375, 0.020721435546875, -0.0552978515625, 0.0338134765625, 0.0010509490966796875, 0.0099945068359375, 0.002197265625, 0.0102996826171875, 0.0247344970703125, -0.01319122314453125, -0.002506256103515625, 0.00460052490234375, -0.04638671875, 0.048065185546875, -0.0323486328125, 0.050079345703125, 0.0018281936645507812, -0.0200347900390625, 0.001461029052734375, -0.046417236328125, -0.0322265625, 0.02337646484375, 0.034515380859375, -0.01306915283203125, 0.03033447265625, 0.00077056884765625, -0.005218505859375, 0.0179901123046875, -0.01500701904296875, -0.01016998291015625, -0.0433349609375, 0.0033512115478515625, -0.018524169921875, -0.029937744140625, -0.022064208984375, 0.00925445556640625, 0.038482666015625, 0.00907135009765625, 0.09259033203125, -0.027313232421875, 0.0011138916015625, -0.0399169921875, 0.03924560546875, -0.064453125, -0.0223541259765625, -0.0205535888671875, 0.01313018798828125, 0.00733184814453125, 0.005229949951171875, -0.0268402099609375, -0.0123748779296875, 0.04827880859375, -0.0450439453125, 0.005401611328125, -0.021728515625, 0.0205078125, -0.0266876220703125, -0.00016367435455322266, -0.0347900390625, -0.05072021484375, -0.04278564453125, -0.0027008056640625, 0.01529693603515625, 0.01715087890625, -0.01558685302734375, 0.01218414306640625, -0.0234222412109375, -0.0004973411560058594, 0.0027618408203125, 0.0167388916015625, -0.003467559814453125, 0.0283660888671875, -0.037322998046875, -0.0135955810546875, 0.058929443359375, 0.0038852691650390625, 0.01540374755859375, 0.0202178955078125, 0.0244903564453125, 0.059326171875, -0.0643310546875, -0.048797607421875, -0.0119171142578125, 0.01371002197265625, 0.018890380859375, 0.016693115234375, -0.06903076171875, 0.004344940185546875, -0.020538330078125, -0.019622802734375, -0.0221405029296875, -0.02935791015625, -0.031341552734375, 0.0174560546875, -0.044464111328125, -0.047637939453125, -0.0416259765625, 0.021942138671875, 0.034912109375, 0.011962890625, -0.08636474609375, 0.06719970703125, -0.03790283203125, 0.041259765625, -0.015716552734375, 0.00786590576171875, -0.01224517822265625, -0.0168914794921875, -0.07354736328125, 0.0023632049560546875, -0.040679931640625, -0.007476806640625, -0.019317626953125, 0.01641845703125, 0.0270233154296875, -0.0237884521484375, -0.02362060546875, -0.0159912109375, 0.007144927978515625, 0.03680419921875, 0.01297760009765625, -0.0136566162109375, -0.01410675048828125, 0.040130615234375, -0.05938720703125, -0.019866943359375, 0.0236968994140625, 0.021484375, -0.019927978515625, -0.031005859375, 0.005031585693359375, 0.0019273757934570312, -0.032745361328125, -0.05267333984375, 0.050506591796875, -0.0143280029296875, -0.0248870849609375, -0.0085906982421875, -0.00815582275390625, -0.0057830810546875, 0.050567626953125, 0.00011539459228515625, -0.00363922119140625, -0.037109375, 0.002044677734375, 0.040985107421875, 0.036163330078125, -0.0206756591796875, 0.0477294921875, -0.0215911865234375, 0.07733154296875, 0.05242919921875, 0.04132080078125, -0.03375244140625, 0.0435791015625, -0.01024627685546875, 0.046417236328125, -0.014068603515625, 0.055206298828125, 0.006561279296875, 0.0079498291015625, 0.005374908447265625, -0.062103271484375, -0.0275726318359375, -0.03302001953125, 0.047088623046875, 0.0002722740173339844, 0.01371002197265625, 0.007099151611328125, -0.10284423828125, -0.057373046875, 0.036529541015625, -0.027374267578125, 0.00859832763671875, -0.080810546875, 0.022247314453125, 0.016357421875, -0.00525665283203125, 0.0189666748046875, -0.0504150390625, -0.0333251953125, 0.0001875162124633789, -0.01210784912109375, 0.031585693359375, -0.046295166015625, 0.033782958984375, -0.05224609375, -0.0031223297119140625, -0.014495849609375, -0.038421630859375, 0.00215911865234375, -0.04827880859375, -0.033538818359375, -0.01007843017578125, 0.005710601806640625, -0.006626129150390625, 0.021697998046875, 0.006328582763671875, 0.0236053466796875, -0.0113067626953125, 0.0033969879150390625, -0.045257568359375, 0.03289794921875, 0.02215576171875, 0.0237579345703125, -0.037628173828125, 0.036285400390625, 0.0535888671875, 0.040313720703125, 0.0178985595703125, -0.05224609375, -0.0098876953125, 0.0625, -0.01468658447265625, -0.0386962890625, 0.011932373046875, -0.059844970703125, -0.021636962890625, 0.02325439453125, -0.02764892578125, -0.058013916015625, 0.0252227783203125, -0.0213165283203125, 0.0257110595703125, 0.0241851806640625 ]
23ee082a9e21a124117a8df6c51ef94123106ab5
Wordpress Stackexchange Q: Drag images with caption in WP editor Whenever I insert an image without a caption in the post, the editor makes it an object that I can select and move around / scale. Whenever I insert an image with a caption, it inserts fine. I can scale the image, but I can't move it around. I think that's because the caption displays beneath the image, wich is just text. Is there a way to make the image + caption an object or something, so that I can't select the caption text, instead selects the whole lot, so I can move it around? Or maybe is there a hook to target images with captions in the WP editor, and just don't display the caption ( so it's treated like a normal image )? Thanks in advance. A: This is/was a known bug that should be fixed in WP >= 4.4 See this ticket for details: https://core.trac.wordpress.org/ticket/28003
Q: Drag images with caption in WP editor Whenever I insert an image without a caption in the post, the editor makes it an object that I can select and move around / scale. Whenever I insert an image with a caption, it inserts fine. I can scale the image, but I can't move it around. I think that's because the caption displays beneath the image, wich is just text. Is there a way to make the image + caption an object or something, so that I can't select the caption text, instead selects the whole lot, so I can move it around? Or maybe is there a hook to target images with captions in the WP editor, and just don't display the caption ( so it's treated like a normal image )? Thanks in advance. A: This is/was a known bug that should be fixed in WP >= 4.4 See this ticket for details: https://core.trac.wordpress.org/ticket/28003
wordpress
{ "language": "en", "length": 156, "provenance": "stackexchange_00019.jsonl.gz:446486", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/151875" }
[ 0.07537841796875, -0.0004324913024902344, 0.034454345703125, 0.0645751953125, 0.010345458984375, -0.06634521484375, 0.1368408203125, -0.0814208984375, 0.050811767578125, 0.0170745849609375, -0.05535888671875, 0.028839111328125, -0.01468658447265625, 0.001293182373046875, -0.0297698974609375, -0.00043201446533203125, 0.0110015869140625, -0.034515380859375, 0.01068878173828125, -0.019073486328125, 0.0193634033203125, -0.0052947998046875, 0.031280517578125, -0.039215087890625, 0.0223541259765625, 0.0164794921875, 0.053436279296875, -0.0195159912109375, 0.03546142578125, -0.00048422813415527344, 0.03411865234375, -0.049560546875, 0.02288818359375, 0.058929443359375, -0.0762939453125, 0.04296875, -0.023040771484375, 0.0258026123046875, 0.004627227783203125, 0.016815185546875, 0.00632476806640625, 0.01143646240234375, 0.0283355712890625, 0.01284027099609375, -0.007205963134765625, -0.036102294921875, 0.0171356201171875, -0.039703369140625, 0.04522705078125, -0.041168212890625, 0.0262298583984375, 0.049713134765625, 0.05340576171875, -0.038726806640625, -0.03338623046875, 0.01314544677734375, -0.0150299072265625, 0.06622314453125, 0.022979736328125, 0.01715087890625, -0.0171356201171875, 0.03619384765625, -0.016510009765625, -0.022674560546875, 0.00496673583984375, -0.0117645263671875, -0.021331787109375, 0.009857177734375, -0.032379150390625, 0.00562286376953125, 0.03204345703125, -0.031280517578125, 0.0168304443359375, -0.06512451171875, 0.006351470947265625, 0.038970947265625, 0.0005602836608886719, 0.0117034912109375, -0.004116058349609375, -0.00928497314453125, 0.04180908203125, 0.00384521484375, -0.0038585662841796875, 0.0005345344543457031, 0.0101470947265625, 0.005435943603515625, 0.0110321044921875, -0.00969696044921875, -0.007755279541015625, 0.00992584228515625, 0.0004825592041015625, -0.0206298828125, -0.022308349609375, 0.046966552734375, 0.0018796920776367188, -0.0156707763671875, -0.023162841796875, -0.004619598388671875, -0.00959014892578125, 0.04327392578125, -0.005817413330078125, -0.043212890625, 0.06365966796875, -0.05194091796875, 0.0318603515625, -0.037200927734375, -0.0298309326171875, -0.03192138671875, 0.0615234375, 0.050048828125, -0.029937744140625, 0.06695556640625, 0.02337646484375, 0.026123046875, -0.0204620361328125, -0.01093292236328125, -0.0180511474609375, 0.034515380859375, -0.0121002197265625, 0.037841796875, -0.0130462646484375, 0.004673004150390625, 0.0040130615234375, -0.004962921142578125, 0.0289764404296875, 0.0205078125, 0.009521484375, -0.035491943359375, 0.005580902099609375, -0.03863525390625, -0.03826904296875, 0.031402587890625, 0.0987548828125, 0.0572509765625, 0.042022705078125, -0.00717926025390625, -0.038177490234375, -0.047271728515625, -0.0030670166015625, -0.0031871795654296875, 0.009979248046875, -0.0338134765625, 0.035797119140625, -0.0012598037719726562, 0.0253753662109375, 0.036651611328125, -0.00927734375, 0.0123443603515625, 0.0243988037109375, -0.07958984375, 0.0699462890625, -0.07794189453125, 0.021636962890625, 0.0108642578125, 0.0288238525390625, -0.05462646484375, 0.06646728515625, -0.061370849609375, 0.023162841796875, -0.05133056640625, 0.0294342041015625, 0.0234527587890625, 0.019561767578125, -0.0031795501708984375, -0.00652313232421875, -0.037261962890625, -0.033172607421875, -0.006763458251953125, 0.0193023681640625, 0.02447509765625, -0.03436279296875, 0.0155487060546875, 0.036651611328125, 0.01422882080078125, -0.018280029296875, 0.0218505859375, 0.021392822265625, -0.03485107421875, -0.0037975311279296875, 0.0657958984375, 0.007114410400390625, -0.0199432373046875, 0.0045928955078125, -0.0166015625, -0.007427215576171875, -0.036407470703125, 0.01059722900390625, -0.0207366943359375, 0.01482391357421875, 0.0198211669921875, 0.003925323486328125, 0.0256195068359375, -0.029510498046875, 0.0005850791931152344, -0.01715087890625, -0.005329132080078125, -0.00426483154296875, 0.00827789306640625, -0.0095672607421875, -0.0012369155883789062, 0.03192138671875, -0.0399169921875, 0.0264739990234375, -0.0177459716796875, -0.0313720703125, -0.0423583984375, -0.002506256103515625, -0.002628326416015625, -0.0097198486328125, 0.027557373046875, 0.02447509765625, 0.0039043426513671875, -0.0135040283203125, -0.02734375, -0.016632080078125, -0.023681640625, -0.00397491455078125, 0.0230255126953125, 0.0202178955078125, 0.0223236083984375, 0.0289459228515625, -0.04205322265625, 0.0118865966796875, 0.0218505859375, 0.043365478515625, 0.01071929931640625, -0.02813720703125, -0.015777587890625, 0.023956298828125, 0.0174560546875, -0.0291595458984375, 0.028350830078125, -0.0260009765625, 0.01003265380859375, -0.0106353759765625, -0.0108184814453125, -0.00182342529296875, -0.044769287109375, 0.036224365234375, 0.03729248046875, 0.032684326171875, 0.033447265625, 0.03240966796875, 0.0243682861328125, 0.03125, -0.000965118408203125, 0.0458984375, -0.03997802734375, -0.018157958984375, -0.021820068359375, 0.03125, -0.019317626953125, 0.021484375, -0.01381683349609375, 0.0257720947265625, 0.01396942138671875, 0.0057525634765625, 0.00043892860412597656, -0.0011453628540039062, 0.0008082389831542969, 0.00675201416015625, -0.026763916015625, -0.03546142578125, 0.00118255615234375, -0.0273590087890625, 0.00849151611328125, 0.003002166748046875, -0.0010356903076171875, -0.0246429443359375, -0.005825042724609375, 0.03509521484375, -0.0079193115234375, -0.000415802001953125, 0.04168701171875, 0.04205322265625, 0.0516357421875, -0.019317626953125, -0.0250091552734375, -0.0008859634399414062, 0.0325927734375, -0.027679443359375, -0.0033931732177734375, -0.015899658203125, -0.01006317138671875, 0.01302337646484375, -0.035858154296875, 0.01363372802734375, -0.0113525390625, -0.062103271484375, -0.0189056396484375, 0.012115478515625, 0.00952911376953125, 0.0014553070068359375, -0.02276611328125, -0.0109405517578125, 0.01061248779296875, -0.0090484619140625, -0.07861328125, 0.0703125, -0.055755615234375, 0.04180908203125, 0.0889892578125, -0.0224761962890625, 0.043487548828125, -0.00556182861328125, -0.0263824462890625, 0.0211029052734375, -0.0180511474609375, -0.02679443359375, -0.003589630126953125, -0.057891845703125, 0.0192718505859375, 0.0304718017578125, 0.03076171875, -0.0099639892578125, -0.035736083984375, -0.016021728515625, 0.029022216796875, -0.071044921875, -0.043182373046875, 0.0248260498046875, -0.05645751953125, -0.03594970703125, 0.04473876953125, -0.039764404296875, -0.0183563232421875, 0.0748291015625, -0.014892578125, -0.04534912109375, -0.0166015625, 0.004848480224609375, -0.020538330078125, -0.036712646484375, 0.003116607666015625, 0.00543212890625, 0.016326904296875, 0.0104217529296875, 0.07794189453125, 0.016571044921875, -0.05352783203125, 0.0212860107421875, 0.035003662109375, -0.0166015625, 0.0236663818359375, 0.051422119140625, -0.0380859375, 0.0017786026000976562, -0.002063751220703125, 0.01070404052734375, 0.037506103515625, -0.036163330078125, -0.0021610260009765625, -0.02020263671875, -0.04144287109375, -0.01540374755859375, 0.022552490234375, 0.0261383056640625, -0.0124664306640625, 0.0180816650390625, -0.048370361328125, -0.02764892578125, -0.03173828125, -0.049102783203125, 0.0206451416015625, 0.0192718505859375, 0.0175628662109375, -0.027679443359375, 0.035430908203125, 0.01248931884765625, 0.041656494140625, 0.006603240966796875, 0.0277099609375, -0.0243072509765625, -0.0178375244140625, -0.03466796875, -0.02655029296875, -0.0196075439453125, -0.035186767578125, 0.02325439453125, -0.0251617431640625, 0.00628662109375, -0.043853759765625, 0.055999755859375, -0.046356201171875, -0.0016756057739257812, 0.0293426513671875, -0.0023651123046875, 0.0225677490234375, -0.007450103759765625, -0.0206298828125, 0.0007581710815429688, 0.05352783203125, -0.0009403228759765625, -0.01198577880859375, -0.01255035400390625, -0.007717132568359375, 0.0164794921875, 0.02630615234375, -0.035614013671875, -0.0163116455078125, -0.0270843505859375, -0.00829315185546875, -0.01377105712890625, -0.0213470458984375, -0.01218414306640625, 0.0167388916015625, -0.0175018310546875, -0.0198211669921875, 0.0200958251953125, 0.006954193115234375, -0.0094146728515625, 0.041290283203125, -0.0316162109375, 0.055206298828125, -0.0197601318359375, -0.028350830078125, -0.12054443359375, -0.020721435546875, 0.037506103515625, 0.04248046875, -0.08807373046875, 0.0714111328125, -0.047607421875, 0.0517578125, 0.01007843017578125, 0.03338623046875, 0.0131378173828125, 0.01399993896484375, -0.01061248779296875, -0.015045166015625, 0.0244293212890625, -0.04150390625, -0.01338958740234375, -0.0232391357421875, -0.0124359130859375, 0.021728515625, -0.01334381103515625, -0.0016870498657226562, -0.01561737060546875, -0.0006151199340820312, -0.01056671142578125, -0.01532745361328125, -0.0189666748046875, 0.0276947021484375, 0.007293701171875, -0.03289794921875, -0.05181884765625, -0.0313720703125, 0.028778076171875, 0.02032470703125, -0.0004546642303466797, -0.00865936279296875, 0.07696533203125, 0.010345458984375, -0.0240020751953125, -0.0174102783203125, 0.006977081298828125, 0.01947021484375, 0.0108489990234375, 0.0116119384765625, 0.0022487640380859375, 0.00428009033203125, -0.04180908203125, 0.00806427001953125, -0.0220489501953125, -0.033294677734375, 0.0445556640625, 0.005657196044921875, -0.00901031494140625, 0.005634307861328125, -0.03424072265625, 0.04974365234375, 0.05010986328125, -0.005992889404296875, -0.032135009765625, -0.0032062530517578125, 0.04644775390625, -0.038299560546875, 0.030242919921875, -0.0215606689453125, -0.039764404296875, 0.005207061767578125, -0.003910064697265625, -0.00858306884765625, 0.01036834716796875, 0.001644134521484375, -0.000012814998626708984, 0.020263671875, 0.01221466064453125, -0.005229949951171875, -0.052978515625, -0.021026611328125, 0.038604736328125, -0.0006632804870605469, 0.017822265625, 0.03875732421875, -0.00778961181640625, 0.05084228515625, -0.00913238525390625, -0.03558349609375, -0.04119873046875, -0.00922393798828125, 0.01250457763671875, 0.007663726806640625, 0.0303955078125, -0.011322021484375, 0.01418304443359375, 0.03045654296875, 0.0202178955078125, 0.0443115234375, 0.021697998046875, -0.004421234130859375, -0.005382537841796875, 0.000232696533203125, -0.0140228271484375, 0.03594970703125, -0.0028400421142578125, -0.00943756103515625, 0.01100921630859375, -0.0014009475708007812, -0.0258331298828125, 0.00637054443359375, 0.0190277099609375, 0.0231475830078125, 0.0036106109619140625, 0.00008106231689453125, -0.0020885467529296875, 0.049713134765625, -0.029144287109375, -0.00644683837890625, 0.0268707275390625, 0.03057861328125, -0.0265045166015625, -0.041778564453125, 0.027099609375, -0.00994873046875, -0.034759521484375, 0.04461669921875, 0.0038051605224609375, -0.046356201171875, -0.03680419921875, -0.01169586181640625, 0.0197296142578125, 0.01313018798828125, -0.0076751708984375, -0.0233001708984375, -0.023529052734375, 0.00701141357421875, -0.00363922119140625, -0.01161956787109375, -0.005157470703125, -0.01137542724609375, -0.032745361328125, -0.0176239013671875, -0.02880859375, 0.00949859619140625, -0.01323699951171875, 0.016357421875, -0.02215576171875, 0.0245208740234375, -0.040283203125, -0.0033893585205078125, -0.0031108856201171875, 0.02801513671875, -0.07598876953125, 0.03997802734375, -0.0269775390625, -0.0180206298828125, 0.0297698974609375, -0.018585205078125, -0.03253173828125, -0.05194091796875, -0.00696563720703125, -0.024261474609375, -0.047393798828125, -0.0223236083984375, -0.004215240478515625, 0.036712646484375, -0.0165863037109375, -0.0084075927734375, 0.0007719993591308594, 0.00627899169921875, -0.01067352294921875, 0.046600341796875, -0.009246826171875, 0.0305328369140625, -0.0307464599609375, 0.0218048095703125, -0.0287933349609375, -0.0184173583984375, -0.012908935546875, -0.0014371871948242188, -0.004352569580078125, -0.039306640625, -0.00650787353515625, -0.005863189697265625, 0.0006127357482910156, 0.033660888671875, 0.0382080078125, 0.007904052734375, 0.006000518798828125, -0.025604248046875, -0.0004429817199707031, -0.00806427001953125, 0.051239013671875, -0.0125732421875, -0.017730712890625, 0.033294677734375, -0.0302734375, 0.03564453125, -0.00601959228515625, 0.0201416015625, 0.007904052734375, -0.03955078125, -0.0007958412170410156, 0.03826904296875, 0.01483154296875, -0.052215576171875, 0.042694091796875, 0.01119232177734375, 0.05401611328125, 0.02703857421875, 0.03997802734375, 0.05035400390625, 0.0179443359375, -0.028289794921875, -0.0212249755859375, 0.02490234375, 0.00455474853515625, -0.016693115234375, 0.0306549072265625, -0.0280303955078125, 0.041473388671875, 0.0157470703125, 0.07012939453125, -0.01372528076171875, 0.0020294189453125, 0.019622802734375, -0.062042236328125, 0.021087646484375, 0.000736236572265625, -0.01287078857421875, -0.025787353515625, 0.016510009765625, -0.03839111328125, -0.026214599609375, -0.00439453125, -0.01202392578125, 0.0081024169921875, -0.017333984375, 0.0160675048828125, 0.005157470703125, -0.06622314453125, 0.0218963623046875, 0.04638671875, -0.00469970703125, -0.03741455078125, 0.01409912109375, -0.00647735595703125, -0.01053619384765625, -0.042816162109375, 0.0177154541015625, -0.007549285888671875, 0.0161895751953125, -0.0246124267578125, 0.010711669921875, 0.004055023193359375, 0.050933837890625, -0.025115966796875, -0.00420379638671875, 0.040008544921875, -0.034576416015625, 0.0518798828125, -0.01410675048828125, 0.0111236572265625, 0.0279083251953125, -0.040283203125, 0.0015239715576171875, 0.01078033447265625, 0.0017004013061523438, -0.001445770263671875, 0.0024890899658203125, 0.05462646484375, -0.038482666015625, -0.0106658935546875, 0.022003173828125, 0.017791748046875, 0.0039825439453125, 0.005710601806640625, 0.037200927734375, -0.05731201171875, -0.03558349609375, 0.017181396484375, -0.032684326171875, -0.032135009765625, -0.011444091796875, -0.0272369384765625, 0.0797119140625, -0.00881195068359375, 0.0222015380859375, 0.0216522216796875, 0.03411865234375, -0.01371002197265625, 0.0283660888671875, -0.03680419921875, 0.0194244384765625, -0.06256103515625, 0.0614013671875, -0.0787353515625, 0.0030364990234375, -0.0054168701171875, 0.049835205078125, 0.07720947265625, -0.006397247314453125, 0.01116180419921875, 0.005535125732421875, 0.10406494140625, 0.067626953125, 0.0129852294921875, -0.0023517608642578125, 0.006542205810546875, -0.01488494873046875, -0.005474090576171875, 0.0101165771484375, 0.02227783203125, -0.0233306884765625, -0.030029296875, 0.039306640625, 0.0060272216796875, 0.0204620361328125, 0.00201416015625, 0.03033447265625, -0.0295867919921875, -0.01226043701171875, 0.039947509765625, -0.061065673828125, -0.005344390869140625, 0.034881591796875, 0.02166748046875, -0.044708251953125, 0.0016736984252929688, -0.045257568359375, 0.04840087890625, 0.0019969940185546875, 0.0287628173828125, 0.01027679443359375, 0.016754150390625, 0.04638671875, -0.0017080307006835938, 0.0205230712890625, 0.05230712890625, -0.0396728515625, -0.006134033203125, -0.0016460418701171875, -0.00012671947479248047, -0.045928955078125, 0.0296783447265625, 0.058349609375, 0.016265869140625, -0.02972412109375, -0.0264434814453125, 0.004024505615234375, 0.006938934326171875, -0.001354217529296875, -0.027496337890625, -0.00276947021484375, -0.06268310546875, -0.0298919677734375, 0.003566741943359375, -0.007541656494140625, 0.0216827392578125, 0.030792236328125, 0.0194854736328125, 0.032684326171875, -0.0241241455078125, -0.028778076171875, -0.04766845703125, 0.035797119140625, 0.023284912109375, 0.044036865234375, 0.00534820556640625, 0.07452392578125, 0.0197296142578125, -0.01369476318359375, -0.0237274169921875, 0.03192138671875, 0.0166168212890625, 0.0203704833984375, -0.01273345947265625, -0.00626373291015625, 0.0083160400390625, 0.0176239013671875, 0.00836181640625, 0.0273895263671875, 0.043121337890625, 0.03826904296875, -0.017730712890625, -0.01507568359375, 0.0302581787109375, -0.021148681640625, -0.01788330078125, -0.011474609375, 0.0269012451171875, 0.0755615234375, 0.01043701171875, 0.00457000732421875, 0.0045166015625, 0.1025390625, -0.028289794921875, -0.0101776123046875, 0.0022754669189453125, -0.0180816650390625, 0.007080078125, -0.0162200927734375, 0.005191802978515625, -0.00021278858184814453, -0.07513427734375, -0.005199432373046875, -0.04364013671875, -0.033111572265625, 0.0159149169921875, 0.03448486328125, -0.007442474365234375, 0.02117919921875, -0.0084228515625, -0.013275146484375, -0.022979736328125, 0.006114959716796875, 0.040008544921875, -0.0015649795532226562, 0.0021686553955078125, 0.0193634033203125, -0.008453369140625, -0.010986328125, 0.01244354248046875, 0.0341796875, 0.0276641845703125, 0.06463623046875, -0.023956298828125, -0.00021731853485107422, -0.00884246826171875, 0.0093536376953125, -0.008636474609375, -0.0130767822265625, 0.00737762451171875, -0.004299163818359375, -0.004413604736328125, -0.02105712890625, -0.0083160400390625, 0.060272216796875, 0.00212860107421875, 0.00675201416015625, 0.0286102294921875, -0.0196533203125, 0.01506805419921875, 0.041015625, 0.0256195068359375, -0.036163330078125, -0.0293731689453125, -0.04241943359375, -0.01611328125, -0.0034618377685546875, -0.031402587890625, -0.00298309326171875, 0.01342010498046875, -0.005191802978515625, -0.057708740234375, 0.038482666015625, -0.07843017578125, 0.033538818359375, 0.0194091796875, 0.03570556640625, -0.03265380859375, 0.02593994140625, 0.0010890960693359375, -0.01397705078125, 0.0286407470703125, 0.0226593017578125, 0.012786865234375, -0.0203399658203125, -0.01007843017578125, -0.013031005859375, 0.0258636474609375, -0.0089569091796875, -0.01163482666015625, -0.0240325927734375, 0.0015201568603515625, -0.022247314453125, 0.004413604736328125, -0.043548583984375, -0.0721435546875, 0.00921630859375, 0.00962066650390625, -0.0428466796875, -0.054229736328125, -0.06768798828125, -0.037628173828125, 0.066650390625, 0.032989501953125, -0.042266845703125, 0.008056640625, 0.0069122314453125, -0.0094146728515625, 0.047821044921875, -0.01206207275390625, 0.0186004638671875, 0.05364990234375, -0.0372314453125, -0.0166473388671875, -0.01325225830078125, -0.0141143798828125, -0.027252197265625, 0.044342041015625, 0.0338134765625, -0.03826904296875, -0.0236358642578125, 0.0679931640625, 0.059539794921875, 0.1116943359375, 0.02239990234375, -0.01531219482421875, -0.03564453125, 0.045196533203125, 0.002223968505859375, 0.0230865478515625, 0.01148223876953125, 0.048309326171875, -0.0401611328125, -0.0155792236328125, 0.0236663818359375, 0.039642333984375, -0.042724609375, -0.1201171875, -0.01519775390625, -0.01377105712890625, -0.059844970703125, 0.015716552734375, -0.02142333984375, -0.04425048828125, 0.0648193359375, 0.016815185546875, -0.01551055908203125, 0.01387786865234375, 0.02337646484375, -0.018646240234375, 0.035797119140625, 0.0107574462890625, -0.0202484130859375, 0.01091766357421875, -0.005584716796875, 0.0008411407470703125, -0.00928497314453125, 0.03424072265625, -0.0169677734375, 0.019927978515625, 0.04095458984375, -0.054351806640625, -0.02716064453125, -0.04193115234375, 0.00003230571746826172, -0.0238189697265625, -0.03204345703125, 0.01134490966796875, 0.0129547119140625, 0.035980224609375, 0.050933837890625, -0.007404327392578125, -0.051910400390625, 0.052581787109375, 0.0034732818603515625, -0.034576416015625, -0.0168304443359375, -0.00856781005859375, -0.0084228515625, -0.0175933837890625, -0.02032470703125, 0.0052490234375, 0.030303955078125, 0.023834228515625, -0.01297760009765625, -0.0139923095703125, 0.002056121826171875, -0.0083160400390625, -0.11016845703125, 0.000308990478515625, 0.050018310546875, -0.034027099609375, -0.014495849609375, 0.00836944580078125, 0.0138702392578125, 0.00940704345703125, 0.01036834716796875, -0.0236663818359375, -0.0026569366455078125, -0.0177154541015625, 0.0102081298828125, -0.0233612060546875, 0.023040771484375, -0.0245208740234375, 0.00579071044921875, -0.033355712890625, 0.01129913330078125, 0.005359649658203125, 0.0095977783203125, -0.008544921875, 0.037078857421875, 0.0325927734375, 0.005809783935546875, -0.0049591064453125, 0.00891876220703125, -0.0139923095703125, 0.0290985107421875, -0.006916046142578125, -0.014617919921875, 0.020172119140625, -0.038421630859375, 0.027618408203125, 0.0095367431640625, 0.01016998291015625, 0.039459228515625, -0.036773681640625, -0.0304107666015625, -0.0141448974609375, -0.0210723876953125 ]
2b909fd987325aab4285dbf8351227ab68fdf765
Wordpress Stackexchange Q: Difference between the_permalink() and get_permalink() function In WordPress I am using both the_permalink() and get_permalink() functions, but I cannot get any difference in the output of both functions. What is the difference between both functions? A: If you look at the WordPress Codex on this you will see that get_permalink() is there for use outside the loop. the_permalink() is for use within the loop. That’s the easiest way to look at it.
Q: Difference between the_permalink() and get_permalink() function In WordPress I am using both the_permalink() and get_permalink() functions, but I cannot get any difference in the output of both functions. What is the difference between both functions? A: If you look at the WordPress Codex on this you will see that get_permalink() is there for use outside the loop. the_permalink() is for use within the loop. That’s the easiest way to look at it. A: the_permalink echos out the permalink of the current post to the frontend. get_permalink however returns it as a variable, but does not echo it out. You can also pass a post ID to it if you want the permalink of another post. the_permalink is equivalent to: echo get_permalink(); Which is very close to what it actually does. This is the implementation of the_permalink: function the_permalink() { echo esc_url( apply_filters( 'the_permalink', get_permalink() ) ); } A: the_permalink() is used in posts loops, like the_title(). Read more about loops in The Loop. get_permalink() can be used in loops or outside the loops. In the loops, the function returns (not echo) the current post permalink. But outside loops, it requires a post ID. For example: echo get_permalink( 1 ); This will display the current page permalink: echo get_permalink();
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:446524", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152004" }
[ 0.07733154296875, -0.004909515380859375, 0.052703857421875, 0.00528717041015625, -0.00598907470703125, -0.0179443359375, 0.05517578125, -0.051727294921875, -0.03350830078125, 0.00519561767578125, -0.036468505859375, 0.0298004150390625, -0.03717041015625, -0.0240325927734375, 0.036407470703125, -0.03424072265625, 0.05133056640625, -0.04425048828125, 0.0203399658203125, -0.0223846435546875, 0.021881103515625, -0.00030517578125, 0.029510498046875, 0.0999755859375, 0.048248291015625, -0.07080078125, 0.0333251953125, -0.0034046173095703125, 0.0038280487060546875, -0.0261077880859375, 0.01287841796875, 0.02178955078125, 0.00391387939453125, 0.0192413330078125, -0.0191497802734375, -0.02734375, -0.0087738037109375, 0.0222625732421875, 0.01358795166015625, -0.0011272430419921875, 0.028228759765625, -0.004673004150390625, -0.013336181640625, 0.051910400390625, -0.0209503173828125, -0.002841949462890625, -0.0174407958984375, -0.059173583984375, -0.0113677978515625, -0.020050048828125, 0.033538818359375, 0.0092620849609375, 0.04705810546875, 0.0007281303405761719, -0.019622802734375, -0.01041412353515625, 0.0225982666015625, -0.015106201171875, 0.02301025390625, -0.0311431884765625, -0.054718017578125, 0.0017385482788085938, 0.036773681640625, -0.01161956787109375, -0.034210205078125, 0.00925445556640625, -0.0165863037109375, 0.0211944580078125, -0.04296875, -0.036407470703125, 0.012451171875, -0.025909423828125, -0.0212249755859375, -0.01800537109375, -0.022064208984375, -0.0034542083740234375, -0.003631591796875, -0.045989990234375, -0.004180908203125, 0.016387939453125, -0.0033416748046875, -0.02618408203125, -0.09283447265625, -0.00856781005859375, 0.01300048828125, 0.0183563232421875, 0.005672454833984375, -0.01282501220703125, -0.011138916015625, -0.034820556640625, -0.0159454345703125, -0.03167724609375, -0.0193328857421875, 0.0187835693359375, 0.00508880615234375, -0.04180908203125, 0.03790283203125, 0.042266845703125, -0.0206298828125, -0.0011577606201171875, 0.009552001953125, -0.0384521484375, 0.007091522216796875, -0.021820068359375, -0.023223876953125, -0.01229095458984375, 0.03253173828125, 0.06378173828125, 0.0288238525390625, 0.026153564453125, -0.0181121826171875, 0.048248291015625, 0.0003676414489746094, -0.054901123046875, 0.0241851806640625, 0.0142822265625, -0.0275421142578125, 0.04754638671875, 0.02142333984375, 0.0257415771484375, -0.0013952255249023438, 0.0278778076171875, 0.0303955078125, 0.005168914794921875, -0.004703521728515625, 0.0272674560546875, -0.0003514289855957031, -0.06805419921875, -0.00434112548828125, 0.08282470703125, -0.04840087890625, -0.048309326171875, 0.0244598388671875, 0.035400390625, 0.0277557373046875, -0.0538330078125, -0.0194854736328125, 0.0186920166015625, 0.011383056640625, 0.03460693359375, -0.02166748046875, -0.050079345703125, 0.0161285400390625, 0.0020046234130859375, -0.02447509765625, 0.0078887939453125, 0.00971221923828125, 0.0203094482421875, -0.00901031494140625, -0.025054931640625, -0.02215576171875, 0.0005908012390136719, -0.0020294189453125, -0.0246124267578125, 0.02557373046875, -0.02703857421875, -0.0287322998046875, -0.0125274658203125, 0.038970947265625, 0.01399993896484375, 0.04058837890625, -0.0195159912109375, -0.0301666259765625, 0.01323699951171875, -0.046142578125, 0.03228759765625, -0.00028777122497558594, -0.0166015625, 0.0120391845703125, 0.0193634033203125, 0.0198822021484375, 0.0223388671875, -0.0172271728515625, 0.004383087158203125, 0.0164794921875, -0.0231475830078125, -0.023651123046875, 0.0200653076171875, 0.00879669189453125, 0.0117950439453125, -0.0157470703125, -0.046173095703125, 0.0030460357666015625, -0.00826263427734375, -0.05194091796875, 0.0269775390625, 0.02703857421875, 0.04498291015625, -0.0180206298828125, 0.01209259033203125, 0.051025390625, 0.045196533203125, -0.034912109375, 0.03973388671875, 0.0034656524658203125, -0.041534423828125, -0.011993408203125, -0.0121307373046875, -0.02374267578125, -0.01861572265625, -0.0206756591796875, 0.01473236083984375, -0.004261016845703125, 0.0211944580078125, -0.0648193359375, 0.036865234375, -0.0364990234375, 0.034912109375, 0.00493621826171875, 0.034881591796875, -0.0007905960083007812, -0.00797271728515625, -0.010833740234375, -0.035858154296875, -0.01430511474609375, 0.028839111328125, -0.0243682861328125, 0.00283050537109375, -0.006168365478515625, 0.0018053054809570312, -0.0032711029052734375, -0.017181396484375, -0.024169921875, 0.01059722900390625, 0.0306243896484375, -0.0115966796875, -0.0194244384765625, -0.0267181396484375, -0.0288238525390625, 0.0152587890625, -0.053253173828125, 0.06182861328125, 0.05609130859375, 0.0653076171875, -0.00579833984375, 0.00116729736328125, -0.004764556884765625, -0.047576904296875, -0.01396942138671875, 0.044647216796875, 0.0282440185546875, 0.0330810546875, -0.02447509765625, -0.0305938720703125, 0.06573486328125, -0.00004553794860839844, 0.0192108154296875, -0.0321044921875, 0.0035457611083984375, 0.02838134765625, 0.0245819091796875, 0.031494140625, -0.002124786376953125, -0.0009527206420898438, -0.0023670196533203125, 0.036773681640625, -0.02923583984375, 0.0257110595703125, -0.01375579833984375, 0.025604248046875, -0.0199737548828125, -0.015625, 0.027862548828125, -0.040313720703125, -0.045318603515625, 0.00196075439453125, -0.0194854736328125, 0.007709503173828125, 0.00494384765625, -0.0249786376953125, 0.0303497314453125, 0.0222320556640625, 0.0006513595581054688, 0.059326171875, 0.0130615234375, -0.004573822021484375, -0.035980224609375, -0.0163726806640625, -0.00667572021484375, 0.0276336669921875, -0.0303497314453125, 0.00806427001953125, -0.0251617431640625, -0.007450103759765625, -0.0122833251953125, -0.03497314453125, -0.0007386207580566406, -0.00637054443359375, 0.0109100341796875, -0.005283355712890625, 0.039093017578125, -0.0204925537109375, -0.044158935546875, 0.025238037109375, 0.0035037994384765625, -0.035125732421875, 0.0242919921875, -0.0215606689453125, 0.004375457763671875, -0.0304107666015625, 0.0278167724609375, 0.033233642578125, -0.0100860595703125, 0.002071380615234375, 0.0099945068359375, -0.039947509765625, 0.0003376007080078125, -0.0013341903686523438, -0.0255126953125, 0.033966064453125, -0.109619140625, -0.007434844970703125, 0.0075836181640625, 0.02874755859375, -0.00905609130859375, -0.038299560546875, -0.0200347900390625, 0.00634002685546875, -0.07794189453125, -0.05682373046875, -0.013580322265625, -0.06689453125, 0.0011053085327148438, -0.003032684326171875, -0.01454925537109375, -0.004772186279296875, -0.003803253173828125, 0.013763427734375, 0.04925537109375, -0.0029468536376953125, -0.058685302734375, -0.01174163818359375, -0.06787109375, 0.0185546875, -0.004039764404296875, 0.008087158203125, -0.00566864013671875, 0.01538848876953125, -0.0220794677734375, -0.0264129638671875, -0.02703857421875, 0.00814056396484375, -0.001674652099609375, -0.044403076171875, -0.01364898681640625, 0.007648468017578125, -0.00974273681640625, -0.0008940696716308594, 0.055206298828125, 0.0190887451171875, -0.0287017822265625, 0.0009398460388183594, -0.0027980804443359375, -0.032623291015625, 0.06146240234375, 0.0241241455078125, -0.0287628173828125, 0.0197906494140625, 0.07403564453125, -0.030517578125, -0.04510498046875, -0.0157012939453125, -0.049224853515625, 0.087890625, 0.03692626953125, -0.00925445556640625, 0.0113677978515625, 0.0297088623046875, 0.01374053955078125, 0.010223388671875, -0.0242919921875, -0.0300445556640625, 0.0648193359375, 0.01253509521484375, 0.060577392578125, -0.00545501708984375, 0.0015888214111328125, -0.036407470703125, 0.03704833984375, 0.0004687309265136719, -0.0015192031860351562, 0.0008502006530761719, -0.0093994140625, -0.007503509521484375, -0.035919189453125, 0.04913330078125, -0.07232666015625, -0.049835205078125, -0.0218658447265625, -0.0111083984375, 0.0194091796875, 0.0699462890625, 0.038116455078125, -0.01629638671875, -0.002521514892578125, -0.00574493408203125, -0.042877197265625, -0.022705078125, -0.03350830078125, -0.0008573532104492188, -0.038848876953125, -0.01025390625, -0.0130767822265625, -0.0054168701171875, -0.0127105712890625, 0.05584716796875, -0.029998779296875, -0.0149078369140625, 0.0170440673828125, 0.0113983154296875, -0.019683837890625, 0.0173187255859375, -0.018280029296875, -0.006072998046875, -0.0084991455078125, -0.00182342529296875, -0.0185394287109375, -0.0128631591796875, 0.016387939453125, 0.0267333984375, 0.0135345458984375, -0.02276611328125, -0.006351470947265625, 0.0257720947265625, 0.005352020263671875, 0.0175323486328125, 0.0167999267578125, 0.00090789794921875, 0.03375244140625, -0.01103973388671875, 0.022491455078125, -0.01007843017578125, 0.001087188720703125, -0.0443115234375, -0.057098388671875, -0.011077880859375, -0.0189666748046875, 0.062744140625, -0.00443267822265625, -0.016204833984375, -0.05792236328125, 0.029815673828125, -0.0045013427734375, -0.00876617431640625, -0.001922607421875, -0.016876220703125, 0.037322998046875, -0.06463623046875, 0.033355712890625, -0.0003764629364013672, -0.009796142578125, -0.0115509033203125, 0.0697021484375, 0.0181121826171875, -0.02117919921875, 0.0009484291076660156, -0.0213623046875, 0.02099609375, -0.0225677490234375, 0.033599853515625, 0.01171875, -0.01309967041015625, 0.0161590576171875, -0.0159912109375, -0.00909423828125, -0.00323486328125, 0.0220489501953125, 0.01126861572265625, 0.0134429931640625, -0.018035888671875, -0.01067352294921875, 0.03033447265625, 0.032623291015625, -0.025482177734375, -0.009063720703125, -0.043365478515625, 0.03948974609375, 0.00890350341796875, 0.0169677734375, -0.04638671875, -0.0111083984375, 0.0103302001953125, -0.01016998291015625, 0.050384521484375, 0.022613525390625, -0.004425048828125, 0.0220947265625, 0.01270294189453125, 0.018951416015625, 0.002658843994140625, 0.004199981689453125, 0.00539398193359375, 0.045989990234375, 0.000032067298889160156, 0.0146484375, -0.0209197998046875, -0.003818511962890625, 0.057525634765625, 0.0128173828125, -0.0175323486328125, 0.00664520263671875, -0.022247314453125, 0.0187835693359375, 0.009918212890625, 0.00502777099609375, 0.052520751953125, 0.0004050731658935547, -0.026275634765625, -0.0008554458618164062, -0.00792694091796875, -0.027862548828125, -0.04998779296875, 0.0157318115234375, -0.0084075927734375, 0.0088348388671875, -0.021575927734375, 0.07952880859375, -0.00635528564453125, 0.050323486328125, -0.01134490966796875, -0.01175689697265625, 0.0265350341796875, 0.0165863037109375, 0.0300445556640625, -0.02490234375, -0.01369476318359375, -0.01739501953125, 0.014984130859375, -0.0214996337890625, -0.0311126708984375, 0.0157470703125, 0.0423583984375, -0.0014591217041015625, 0.02813720703125, 0.004032135009765625, 0.012359619140625, -0.045166015625, 0.06500244140625, 0.05889892578125, -0.0411376953125, -0.0246124267578125, 0.0139617919921875, 0.0167999267578125, 0.0165557861328125, -0.0160369873046875, 0.034515380859375, 0.0003666877746582031, 0.0154266357421875, -0.002666473388671875, -0.01995849609375, 0.013275146484375, 0.01898193359375, -0.002437591552734375, -0.0311737060546875, -0.00649261474609375, -0.0079498291015625, 0.01053619384765625, -0.031951904296875, -0.0258636474609375, 0.042022705078125, 0.02056884765625, 0.06976318359375, -0.0650634765625, -0.0367431640625, -0.035430908203125, -0.0301971435546875, 0.091796875, 0.052764892578125, -0.07171630859375, 0.015167236328125, -0.04302978515625, 0.018402099609375, -0.061798095703125, -0.05169677734375, -0.036407470703125, 0.0037937164306640625, -0.0037384033203125, 0.0149688720703125, 0.0084686279296875, 0.04937744140625, 0.015838623046875, 0.040924072265625, -0.021636962890625, 0.036285400390625, 0.00983428955078125, 0.034332275390625, 0.041473388671875, 0.0230560302734375, 0.03118896484375, 0.017547607421875, -0.016693115234375, -0.037322998046875, 0.005825042724609375, -0.05206298828125, -0.0216064453125, -0.00785064697265625, -0.0037822723388671875, -0.0008945465087890625, 0.01349639892578125, -0.004039764404296875, -0.0088958740234375, -0.005634307861328125, -0.0000661015510559082, -0.0189056396484375, 0.000728607177734375, -0.0220947265625, -0.021697998046875, -0.00988006591796875, 0.022674560546875, 0.0546875, -0.0006756782531738281, -0.052490234375, 0.032806396484375, 0.004634857177734375, 0.0352783203125, 0.01235198974609375, -0.023590087890625, 0.027618408203125, 0.0653076171875, 0.020263671875, 0.03851318359375, 0.01306915283203125, 0.019500732421875, 0.0219573974609375, 0.023040771484375, 0.0257568359375, 0.0008158683776855469, 0.09454345703125, 0.02093505859375, -0.0037174224853515625, 0.06573486328125, -0.031646728515625, -0.0025768280029296875, 0.039581298828125, 0.07989501953125, -0.03594970703125, -0.0168304443359375, 0.053497314453125, -0.017242431640625, -0.0447998046875, 0.01898193359375, -0.03521728515625, -0.05108642578125, 0.05633544921875, -0.05865478515625, 0.00897216796875, 0.0214996337890625, -0.03277587890625, -0.021514892578125, -0.04034423828125, 0.0128936767578125, 0.0260467529296875, 0.00621795654296875, 0.02374267578125, 0.003902435302734375, 0.01788330078125, 0.00778961181640625, -0.00672149658203125, -0.013824462890625, -0.0270233154296875, -0.005096435546875, -0.002223968505859375, -0.031524658203125, 0.0195770263671875, -0.0026454925537109375, 0.0048980712890625, 0.044189453125, 0.0155029296875, 0.003692626953125, -0.01090240478515625, -0.00965118408203125, 0.0084075927734375, 0.0213165283203125, -0.0276641845703125, 0.00450897216796875, 0.0202789306640625, -0.043548583984375, 0.00733184814453125, -0.022918701171875, -0.013336181640625, -0.005107879638671875, -0.034423828125, 0.09027099609375, -0.0709228515625, -0.0002143383026123047, 0.03350830078125, -0.0092010498046875, -0.0139007568359375, -0.01197052001953125, 0.0163726806640625, -0.0171051025390625, 0.0318603515625, -0.00959014892578125, 0.00605010986328125, 0.0081634521484375, -0.02899169921875, -0.0648193359375, 0.08660888671875, -0.002582550048828125, 0.058502197265625, 0.039459228515625, 0.0126953125, -0.0193634033203125, -0.007160186767578125, -0.041839599609375, 0.051727294921875, 0.0247802734375, 0.01505279541015625, -0.041961669921875, -0.00537109375, -0.017578125, 0.0020580291748046875, 0.06396484375, 0.00470733642578125, -0.00789642333984375, -0.00927734375, 0.0703125, 0.0599365234375, -0.0029144287109375, -0.0103607177734375, 0.02667236328125, 0.0821533203125, 0.10174560546875, -0.0240020751953125, 0.038116455078125, 0.0138397216796875, 0.004608154296875, 0.050323486328125, 0.005886077880859375, -0.01018524169921875, 0.0216217041015625, -0.021728515625, -0.0288848876953125, -0.0037841796875, 0.0267333984375, -0.0196380615234375, -0.02984619140625, 0.0294036865234375, 0.007625579833984375, -0.0526123046875, -0.017425537109375, -0.027496337890625, 0.03173828125, -0.0032787322998046875, 0.03924560546875, 0.047119140625, 0.00893402099609375, 0.08416748046875, 0.02178955078125, 0.03411865234375, 0.02093505859375, 0.016937255859375, 0.051971435546875, 0.03631591796875, 0.026702880859375, -0.036651611328125, -0.02783203125, 0.0528564453125, 0.0819091796875, -0.0251312255859375, -0.021453857421875, 0.013702392578125, 0.006565093994140625, 0.00531768798828125, -0.0188446044921875, 0.0118408203125, -0.02813720703125, 0.0007076263427734375, 0.006336212158203125, -0.005840301513671875, 0.009613037109375, 0.02423095703125, -0.0002086162567138672, -0.0294036865234375, -0.00035691261291503906, 0.023895263671875, -0.040130615234375, 0.024658203125, -0.00299835205078125, 0.03753662109375, 0.0097808837890625, 0.051025390625, -0.018341064453125, -0.01308441162109375, -0.0009546279907226562, 0.047760009765625, -0.0340576171875, 0.0234527587890625, -0.06524658203125, -0.07623291015625, 0.035247802734375, 0.055938720703125, 0.0233154296875, -0.016265869140625, -0.0018472671508789062, -0.00591278076171875, -0.00020503997802734375, 0.00572967529296875, 0.02825927734375, -0.0126953125, 0.0224151611328125, -0.0256500244140625, 0.014312744140625, 0.0006680488586425781, -0.01519012451171875, -0.0170440673828125, -0.00023996829986572266, 0.0305633544921875, -0.0328369140625, 0.0236968994140625, -0.00949859619140625, -0.0213623046875, 0.0389404296875, -0.0275421142578125, 0.05023193359375, -0.00899505615234375, -0.00704193115234375, -0.0114898681640625, 0.01386260986328125, -0.0228729248046875, 0.0076904296875, 0.037384033203125, 0.02850341796875, -0.0136871337890625, 0.01239776611328125, -0.002285003662109375, 0.01045989990234375, 0.00720977783203125, -0.00550079345703125, -0.0175628662109375, 0.0284881591796875, 0.0062103271484375, -0.08111572265625, -0.04669189453125, -0.03668212890625, 0.027435302734375, 0.0016336441040039062, 0.0614013671875, -0.0031948089599609375, 0.00963592529296875, 0.007701873779296875, 0.01279449462890625, -0.004848480224609375, -0.0239105224609375, 0.06414794921875, -0.01267242431640625, -0.0048370361328125, -0.0196533203125, -0.045257568359375, 0.0265655517578125, 0.038299560546875, -0.036956787109375, 0.0225677490234375, 0.01186370849609375, 0.0016803741455078125, -0.046173095703125, 0.00904083251953125, -0.03619384765625, -0.042877197265625, -0.017333984375, 0.003337860107421875, 0.00447845458984375, -0.0192413330078125, -0.023406982421875, -0.0024471282958984375, -0.00421905517578125, -0.053466796875, 0.0087432861328125, -0.005077362060546875, -0.0019779205322265625, 0.0246429443359375, 0.00553131103515625, -0.01494598388671875, -0.01367950439453125, -0.03717041015625, 0.012969970703125, -0.007320404052734375, 0.01268768310546875, -0.00653076171875, -0.045623779296875, 0.00007045269012451172, -0.054718017578125, -0.0159912109375, -0.05535888671875, -0.01898193359375, -0.004802703857421875, 0.018707275390625, 0.00391387939453125, -0.03717041015625, -0.01490020751953125, -0.052276611328125, -0.0010118484497070312, 0.0221099853515625, -0.032073974609375, -0.00733184814453125, -0.004390716552734375, 0.01073455810546875, 0.006591796875, -0.006237030029296875, -0.0222015380859375, 0.0222015380859375, -0.025299072265625, 0.0245208740234375, -0.040283203125, -0.0517578125, 0.00928497314453125, 0.04144287109375, -0.0255889892578125, -0.03399658203125, -0.05718994140625, -0.01386260986328125, -0.07073974609375, 0.0377197265625, 0.04437255859375, -0.055389404296875, -0.0209197998046875, 0.07244873046875, 0.038909912109375, 0.1204833984375, 0.00850677490234375, -0.0252685546875, -0.00803375244140625, 0.01314544677734375, -0.009765625, -0.0301666259765625, 0.0277252197265625, -0.0264892578125, -0.0012035369873046875, -0.002124786376953125, -0.0113983154296875, 0.004703521728515625, -0.029876708984375, -0.037017822265625, 0.061553955078125, 0.00275421142578125, -0.0180511474609375, -0.041595458984375, -0.0308990478515625, -0.00429534912109375, 0.0285491943359375, -0.004547119140625, -0.01137542724609375, -0.060943603515625, 0.0210113525390625, 0.034942626953125, 0.01157379150390625, 0.03594970703125, 0.0258941650390625, 0.0283050537109375, 0.053802490234375, 0.053131103515625, 0.0191192626953125, 0.01180267333984375, -0.0210723876953125, 0.042327880859375, 0.05877685546875, -0.01641845703125, -0.0192413330078125, -0.021484375, -0.021728515625, -0.027008056640625, -0.056732177734375, 0.0247802734375, 0.011688232421875, 0.0673828125, 0.006504058837890625, 0.0054931640625, -0.055572509765625, -0.00957489013671875, 0.00569915771484375, -0.0482177734375, -0.01812744140625, 0.04083251953125, -0.0823974609375, -0.0255126953125, 0.00466156005859375, 0.0003223419189453125, -0.00911712646484375, -0.022674560546875, -0.030670166015625, -0.00867462158203125, -0.025909423828125, -0.01084136962890625, -0.0290679931640625, -0.011199951171875, 0.056243896484375, -0.043121337890625, 0.0138397216796875, 0.0026302337646484375, 0.01495361328125, 0.022003173828125, 0.0011796951293945312, 0.0423583984375, 0.0465087890625, -0.027587890625, -0.0198211669921875, 0.050506591796875, 0.01190185546875, 0.031707763671875, -0.03509521484375, 0.01094818115234375, 0.017333984375, -0.0010852813720703125, 0.0001245737075805664, -0.0262298583984375, 0.0760498046875, 0.002590179443359375, 0.05078125, -0.0008139610290527344, 0.1025390625, 0.003692626953125, 0.055511474609375, -0.063720703125, 0.01016998291015625, -0.0574951171875, -0.0256195068359375, -0.007266998291015625, 0.01363372802734375, -0.00555419921875, -0.026763916015625, 0.01453399658203125, -0.035888671875, 0.00312042236328125, 0.020599365234375 ]
bc1e8b87ae7c36e0fb6b7a67d39480c2e97ae1b2
Wordpress Stackexchange Q: How to extract translatable (double underscores and _e) strings? I made a custom theme and wonder how could I extract all translatable strings to a .po file so I can translate it. Do I need WPML plugin? Ex: I have a string "soccer" which is written as _e('soccer','mytheme'); and I want to translate it to "futebol" but how can I transport it to a .po file? A: One way is to use the WordPress i18n tools. I had to checkout WordPress trunk to make it work. On the command line: svn co http://develop.svn.wordpress.org/trunk once you have trunk somewhere, you'll then want to call the makepot script. Again, on the command line: php /path/to/wordpress/trunk/tools/i18n/makepot.php wp-theme /path/to/your/theme/ After that script has run, the pot files will be in whatever directory was specified in the above /path/to/your/theme More information and a couple of other methods can be seen here: http://codex.wordpress.org/I18n_for_WordPress_Developers
Q: How to extract translatable (double underscores and _e) strings? I made a custom theme and wonder how could I extract all translatable strings to a .po file so I can translate it. Do I need WPML plugin? Ex: I have a string "soccer" which is written as _e('soccer','mytheme'); and I want to translate it to "futebol" but how can I transport it to a .po file? A: One way is to use the WordPress i18n tools. I had to checkout WordPress trunk to make it work. On the command line: svn co http://develop.svn.wordpress.org/trunk once you have trunk somewhere, you'll then want to call the makepot script. Again, on the command line: php /path/to/wordpress/trunk/tools/i18n/makepot.php wp-theme /path/to/your/theme/ After that script has run, the pot files will be in whatever directory was specified in the above /path/to/your/theme More information and a couple of other methods can be seen here: http://codex.wordpress.org/I18n_for_WordPress_Developers A: You can extract traslatable (gettext) strings from a Wordpress Theme or Plugin with wp-cli. To install: * *Visit oficial documentation. *Use Homebrew (mac): brew install wp-cli Once you have it, you run the following command: wp i18n . path/to/domain_name.pot --domain=domain_name (Run from the theme/plugin root folder, where domain_name is the domain you've used on the code.) This will generate a .pot file. You can use software like POEdit to open the .pot file and do the translations. This software will then let you export to .po and .mo. You can find more info on I18n for Wordpress Developers.
wordpress
{ "language": "en", "length": 247, "provenance": "stackexchange_00019.jsonl.gz:446569", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152137" }
[ -0.0149078369140625, -0.01444244384765625, 0.007076263427734375, 0.0197601318359375, -0.020782470703125, -0.0100860595703125, 0.0357666015625, -0.013427734375, 0.0164642333984375, 0.052947998046875, 0.0478515625, 0.01078033447265625, 0.055755615234375, -0.036407470703125, 0.0012540817260742188, 0.04193115234375, 0.01445770263671875, -0.023773193359375, 0.017974853515625, -0.020416259765625, 0.01519012451171875, -0.0113677978515625, 0.0123138427734375, -0.06585693359375, 0.030303955078125, -0.041107177734375, 0.07110595703125, -0.0380859375, 0.00698089599609375, -0.03125, 0.023284912109375, 0.0204010009765625, 0.0562744140625, -0.0232391357421875, -0.01442718505859375, -0.04180908203125, -0.037200927734375, -0.018096923828125, -0.06561279296875, 0.03265380859375, 0.0110321044921875, -0.006793975830078125, -0.0335693359375, 0.007755279541015625, -0.0281982421875, -0.064208984375, 0.039031982421875, -0.0048065185546875, -0.0007343292236328125, 0.00955963134765625, -0.00490570068359375, -0.015655517578125, 0.01497650146484375, 0.0174713134765625, 0.004695892333984375, -0.002735137939453125, -0.0618896484375, 0.040069580078125, 0.00481414794921875, 0.04302978515625, 0.0241546630859375, 0.01493072509765625, 0.0064239501953125, 0.0131378173828125, -0.046783447265625, 0.01494598388671875, -0.0171661376953125, -0.0015544891357421875, 0.0164794921875, -0.0802001953125, -0.026397705078125, 0.00399017333984375, 0.0408935546875, -0.01568603515625, -0.022613525390625, 0.00878143310546875, -0.0017757415771484375, 0.0155181884765625, 0.0205230712890625, -0.03729248046875, -0.0009579658508300781, -0.01605224609375, -0.0186004638671875, -0.01026153564453125, 0.0184326171875, 0.033294677734375, -0.0037555694580078125, -0.0175933837890625, -0.04388427734375, -0.00839996337890625, -0.031707763671875, 0.028961181640625, -0.09161376953125, 0.036865234375, 0.0159759521484375, -0.013275146484375, -0.021026611328125, -0.006397247314453125, -0.020477294921875, 0.044403076171875, -0.0152130126953125, -0.033447265625, 0.07965087890625, -0.030242919921875, 0.007045745849609375, -0.0213470458984375, -0.033111572265625, 0.031524658203125, 0.06268310546875, 0.04034423828125, -0.0146026611328125, 0.029937744140625, 0.005580902099609375, -0.0254974365234375, -0.018768310546875, 0.07281494140625, 0.048736572265625, -0.0286102294921875, -0.001476287841796875, 0.0028476715087890625, -0.00555419921875, 0.016510009765625, -0.019927978515625, -0.04376220703125, 0.01317596435546875, -0.0404052734375, -0.035736083984375, 0.03521728515625, 0.031951904296875, 0.044952392578125, 0.003177642822265625, -0.0156707763671875, -0.03369140625, -0.0024394989013671875, -0.029937744140625, -0.0247650146484375, 0.003917694091796875, 0.008148193359375, 0.0018157958984375, 0.0208892822265625, 0.012115478515625, -0.0384521484375, -0.017333984375, 0.022613525390625, -0.0249786376953125, -0.0012369155883789062, 0.002178192138671875, 0.0263824462890625, 0.0181427001953125, -0.02191162109375, -0.0012302398681640625, -0.0106048583984375, 0.0721435546875, -0.0226593017578125, -0.04266357421875, -0.0677490234375, 0.0467529296875, -0.0770263671875, -0.0115814208984375, -0.095947265625, -0.03729248046875, -0.03253173828125, -0.0161895751953125, -0.0176849365234375, -0.03839111328125, 0.06268310546875, 0.009002685546875, 0.0049896240234375, 0.0258941650390625, -0.001605987548828125, -0.002651214599609375, 0.0132293701171875, 0.0312042236328125, 0.0261993408203125, 0.01172637939453125, 0.0293426513671875, -0.029571533203125, -0.001361846923828125, 0.0091400146484375, 0.0357666015625, 0.027008056640625, -0.03271484375, 0.005157470703125, 0.0192108154296875, -0.04022216796875, -0.0147857666015625, 0.004730224609375, 0.044708251953125, 0.04315185546875, 0.02191162109375, 0.016937255859375, -0.04852294921875, -0.037811279296875, 0.037872314453125, -0.0178680419921875, -0.005626678466796875, 0.01142120361328125, 0.0222015380859375, -0.01457977294921875, -0.01042938232421875, 0.005069732666015625, -0.01465606689453125, 0.021697998046875, 0.02886962890625, 0.01448822021484375, 0.0191650390625, -0.0189666748046875, 0.003437042236328125, -0.003719329833984375, 0.0225067138671875, 0.00797271728515625, -0.01995849609375, -0.002346038818359375, -0.03216552734375, -0.0163116455078125, -0.02667236328125, -0.00044536590576171875, 0.058837890625, 0.01568603515625, 0.00911712646484375, 0.05926513671875, -0.060211181640625, 0.0399169921875, 0.026611328125, 0.0084686279296875, 0.01425933837890625, -0.0165557861328125, 0.006237030029296875, 0.0498046875, 0.0175018310546875, 0.050018310546875, -0.0008935928344726562, -0.0287017822265625, -0.01000213623046875, -0.0294952392578125, 0.0107269287109375, -0.0030612945556640625, -0.025543212890625, -0.005657196044921875, 0.0472412109375, 0.041259765625, 0.033294677734375, -0.0013446807861328125, -0.0242919921875, 0.07257080078125, -0.0193328857421875, 0.0130615234375, -0.017364501953125, 0.0113372802734375, 0.037689208984375, -0.034820556640625, -0.0290679931640625, 0.0008997917175292969, -0.0916748046875, -0.02099609375, 0.046051025390625, -0.04364013671875, -0.036163330078125, 0.01342010498046875, 0.002483367919921875, -0.006504058837890625, -0.0167388916015625, 0.0031681060791015625, -0.0094757080078125, 0.0323486328125, -0.01317596435546875, 0.0006189346313476562, -0.010406494140625, -0.05914306640625, 0.0311431884765625, 0.04266357421875, 0.006946563720703125, -0.01751708984375, -0.01122283935546875, 0.0253448486328125, 0.0034580230712890625, 0.0009341239929199219, -0.0002770423889160156, -0.030242919921875, -0.00388336181640625, 0.019073486328125, 0.10028076171875, 0.00714874267578125, -0.0234222412109375, -0.005908966064453125, -0.047271728515625, -0.02984619140625, -0.01910400390625, -0.0297698974609375, -0.01477813720703125, 0.0150909423828125, 0.0477294921875, -0.0190887451171875, 0.039886474609375, -0.032562255859375, 0.0020751953125, 0.0653076171875, -0.00678253173828125, 0.0073394775390625, -0.0034313201904296875, 0.0321044921875, 0.045196533203125, 0.003265380859375, -0.0182342529296875, 0.01274871826171875, -0.016754150390625, 0.01299285888671875, 0.00806427001953125, -0.003765106201171875, -0.029815673828125, -0.04754638671875, -0.040771484375, 0.005565643310546875, 0.038360595703125, -0.00693511962890625, -0.054718017578125, 0.008880615234375, 0.00757598876953125, -0.079833984375, -0.0723876953125, 0.01245880126953125, -0.038665771484375, -0.03631591796875, 0.005458831787109375, -0.0340576171875, 0.005161285400390625, 0.012451171875, -0.01110076904296875, 0.00482177734375, -0.0079193115234375, -0.027252197265625, -0.0164642333984375, -0.04339599609375, 0.00865936279296875, 0.005218505859375, 0.0145111083984375, 0.00876617431640625, -0.058258056640625, 0.01323699951171875, 0.0152435302734375, 0.04803466796875, 0.1219482421875, 0.0184326171875, -0.0143280029296875, -0.055633544921875, 0.007183074951171875, 0.027130126953125, -0.021026611328125, -0.006328582763671875, 0.0031871795654296875, 0.015716552734375, 0.0023059844970703125, 0.04376220703125, 0.0298919677734375, 0.013092041015625, -0.0814208984375, -0.050689697265625, 0.05059814453125, -0.041351318359375, -0.040374755859375, -0.0421142578125, 0.0105133056640625, -0.01495361328125, 0.06817626953125, -0.0090789794921875, -0.00821685791015625, -0.01027679443359375, 0.083251953125, 0.0256500244140625, 0.00260162353515625, 0.0232391357421875, 0.00896453857421875, -0.0416259765625, -0.0006384849548339844, 0.0279083251953125, -0.005191802978515625, 0.04327392578125, -0.014862060546875, -0.017333984375, 0.01206207275390625, -0.0006618499755859375, 0.0028362274169921875, 0.00666046142578125, -0.004302978515625, -0.0340576171875, 0.07537841796875, 0.019378662109375, -0.006664276123046875, -0.0031909942626953125, -0.039703369140625, -0.0016078948974609375, 0.058837890625, 0.0043182373046875, -0.029510498046875, -0.0033206939697265625, 0.020050048828125, -0.0212249755859375, -0.022125244140625, -0.00016450881958007812, -0.01151275634765625, -0.03302001953125, 0.0038909912109375, -0.0158233642578125, 0.005741119384765625, -0.01038360595703125, 0.0025787353515625, 0.00408935546875, -0.02471923828125, 0.007472991943359375, 0.01361083984375, 0.019073486328125, -0.0167999267578125, 0.0225830078125, -0.019287109375, 0.00695037841796875, -0.02777099609375, -0.0474853515625, -0.006237030029296875, -0.0017042160034179688, 0.0257110595703125, 0.0069122314453125, -0.020355224609375, -0.0255279541015625, 0.01555633544921875, -0.0265350341796875, 0.028656005859375, 0.0045013427734375, 0.027008056640625, 0.01123046875, 0.05224609375, 0.0306854248046875, 0.0037250518798828125, -0.0086212158203125, -0.0103302001953125, -0.0207366943359375, 0.040374755859375, 0.0098876953125, 0.0038967132568359375, 0.0222320556640625, -0.027099609375, -0.0200347900390625, -0.0233612060546875, -0.019317626953125, 0.017791748046875, -0.007076263427734375, 0.003265380859375, -0.0212249755859375, -0.0227813720703125, 0.06549072265625, 0.0282135009765625, -0.004451751708984375, -0.011932373046875, 0.019989013671875, -0.01374053955078125, -0.07354736328125, -0.061920166015625, 0.0224151611328125, 0.0312042236328125, 0.0097198486328125, 0.0413818359375, 0.01024627685546875, -0.0298614501953125, 0.04656982421875, 0.0167388916015625, 0.0055694580078125, 0.03826904296875, -0.01422882080078125, 0.01259613037109375, -0.007556915283203125, -0.00901031494140625, 0.00792694091796875, -0.0161895751953125, 0.006359100341796875, -0.005756378173828125, 0.0209503173828125, 0.030242919921875, 0.01441192626953125, -0.02301025390625, -0.0015840530395507812, -0.0198974609375, -0.08056640625, 0.03173828125, -0.025238037109375, -0.021026611328125, -0.0321044921875, 0.015533447265625, 0.015045166015625, 0.002506256103515625, 0.005275726318359375, 0.030426025390625, 0.0129852294921875, 0.0019989013671875, 0.0297088623046875, 0.0214080810546875, -0.0045928955078125, -0.006893157958984375, -0.00787353515625, 0.0205230712890625, -0.0005583763122558594, -0.003948211669921875, -0.038726806640625, 0.0141754150390625, 0.03131103515625, 0.0086212158203125, -0.01486968994140625, 0.0014486312866210938, 0.037841796875, -0.017120361328125, 0.0177459716796875, -0.01525115966796875, 0.0216217041015625, -0.039398193359375, -0.08477783203125, -0.03857421875, -0.0169677734375, 0.01544952392578125, 0.016143798828125, -0.04339599609375, 0.01953125, -0.0140533447265625, -0.00965118408203125, 0.0019550323486328125, 0.07476806640625, 0.027740478515625, -0.07891845703125, 0.00299072265625, 0.06304931640625, 0.0231781005859375, -0.04400634765625, 0.0121307373046875, 0.049224853515625, 0.048095703125, -0.028167724609375, -0.07000732421875, 0.0233306884765625, -0.01934814453125, -0.0084381103515625, 0.02667236328125, 0.0275726318359375, -0.00921630859375, -0.028472900390625, 0.004428863525390625, 0.02203369140625, 0.00890350341796875, -0.0194854736328125, 0.007579803466796875, -0.052490234375, -0.011199951171875, -0.0037441253662109375, -0.04022216796875, -0.001251220703125, 0.003940582275390625, -0.019500732421875, -0.01441192626953125, 0.04266357421875, -0.075927734375, -0.01314544677734375, -0.00438690185546875, -0.00820159912109375, 0.0094757080078125, 0.006893157958984375, -0.02294921875, -0.00632476806640625, 0.01058197021484375, -0.00017559528350830078, 0.0031337738037109375, 0.035247802734375, -0.03875732421875, -0.01026153564453125, -0.016510009765625, -0.034149169921875, -0.0204010009765625, 0.00354766845703125, -0.0193023681640625, -0.033599853515625, -0.0165863037109375, -0.01430511474609375, 0.032257080078125, -0.022430419921875, 0.01381683349609375, 0.051422119140625, 0.027740478515625, -0.036590576171875, 0.044586181640625, -0.0225372314453125, 0.07403564453125, 0.039825439453125, 0.0029201507568359375, 0.02813720703125, 0.08489990234375, 0.0274810791015625, -0.0128631591796875, -0.0280609130859375, -0.01160430908203125, 0.0108489990234375, 0.0122222900390625, 0.041473388671875, -0.018524169921875, -0.005462646484375, 0.0113525390625, 0.0223846435546875, 0.0091705322265625, 0.005603790283203125, -0.020660400390625, 0.003353118896484375, -0.042205810546875, 0.01248931884765625, -0.00859832763671875, -0.080810546875, -0.00876617431640625, 0.012664794921875, 0.025177001953125, 0.054931640625, -0.078857421875, 0.0176544189453125, 0.091064453125, -0.03411865234375, 0.02557373046875, 0.01348876953125, 0.0187225341796875, 0.0133819580078125, 0.0224609375, 0.020355224609375, -0.06439208984375, 0.01445770263671875, -0.02728271484375, -0.0113677978515625, -0.0267181396484375, -0.0195770263671875, 0.01010894775390625, -0.057281494140625, 0.001987457275390625, 0.022979736328125, 0.0548095703125, 0.070068359375, -0.0806884765625, 0.0017557144165039062, 0.00955963134765625, -0.049072265625, -0.0294036865234375, 0.036529541015625, -0.002002716064453125, -0.05010986328125, 0.008697509765625, -0.0242919921875, 0.00656890869140625, 0.0002818107604980469, -0.031280517578125, 0.0085296630859375, -0.0146636962890625, 0.06268310546875, 0.0224456787109375, -0.0277252197265625, 0.00955963134765625, -0.0007166862487792969, 0.020599365234375, -0.02001953125, 0.00469207763671875, -0.01161956787109375, -0.0280914306640625, -0.04638671875, -0.0157318115234375, -0.0200347900390625, -0.007434844970703125, 0.0012216567993164062, 0.0265045166015625, 0.039031982421875, 0.048828125, -0.0005564689636230469, -0.0182952880859375, 0.021209716796875, 0.04046630859375, 0.068359375, 0.0010814666748046875, 0.0186309814453125, 0.00522613525390625, -0.018890380859375, -0.005756378173828125, -0.026641845703125, -0.0171661376953125, -0.0015106201171875, -0.0188140869140625, 0.041900634765625, -0.007297515869140625, -0.0190582275390625, 0.023651123046875, 0.015777587890625, -0.00946044921875, -0.0311126708984375, -0.002349853515625, -0.07867431640625, -0.03466796875, -0.0121612548828125, -0.053558349609375, 0.0003647804260253906, -0.01485443115234375, -0.055755615234375, 0.080078125, -0.02374267578125, 0.014556884765625, 0.0004303455352783203, 0.042724609375, -0.016754150390625, 0.00997161865234375, -0.046844482421875, 0.0190582275390625, 0.037261962890625, 0.019256591796875, -0.051361083984375, -0.01065826416015625, -0.0163421630859375, 0.0233001708984375, 0.01312255859375, 0.0013904571533203125, 0.0013942718505859375, 0.0233612060546875, 0.08306884765625, 0.05780029296875, 0.0164642333984375, -0.0035266876220703125, 0.03948974609375, 0.061767578125, 0.0347900390625, -0.0247039794921875, 0.041046142578125, -0.060699462890625, -0.01401519775390625, 0.0302276611328125, 0.003894805908203125, -0.0185699462890625, -0.00357818603515625, -0.01462554931640625, -0.0012683868408203125, -0.007595062255859375, -0.0245819091796875, -0.01390838623046875, 0.005397796630859375, 0.01003265380859375, 0.034423828125, -0.004955291748046875, -0.026153564453125, -0.01471710205078125, 0.032745361328125, 0.00630950927734375, 0.04241943359375, 0.03448486328125, 0.0027866363525390625, 0.072998046875, -0.007129669189453125, 0.020477294921875, 0.01338958740234375, 0.0169219970703125, 0.006809234619140625, 0.026458740234375, 0.0016841888427734375, 0.01180267333984375, 0.058624267578125, 0.052459716796875, 0.004547119140625, -0.047088623046875, 0.01300811767578125, 0.00708770751953125, -0.012176513671875, 0.00228118896484375, -0.0281524658203125, 0.01116943359375, 0.0008840560913085938, -0.026092529296875, -0.0011119842529296875, 0.007083892822265625, 0.026031494140625, -0.0190277099609375, 0.001262664794921875, 0.007076263427734375, 0.00016033649444580078, 0.0386962890625, -0.032440185546875, 0.0015783309936523438, 0.029266357421875, 0.0300445556640625, -0.0006794929504394531, 0.03857421875, 0.0352783203125, -0.002254486083984375, 0.017486572265625, 0.016876220703125, -0.002685546875, -0.0204315185546875, 0.00743865966796875, -0.0305328369140625, 0.0198516845703125, 0.004085540771484375, -0.0128936767578125, 0.02606201171875, 0.0703125, 0.055694580078125, -0.049163818359375, -0.03204345703125, 0.00714111328125, -0.030914306640625, 0.026153564453125, -0.0306396484375, -0.01047515869140625, -0.01763916015625, -0.0163116455078125, -0.0577392578125, 0.00592803955078125, -0.003265380859375, -0.0067901611328125, 0.06591796875, -0.00576019287109375, 0.0012388229370117188, 0.0211334228515625, -0.037261962890625, 0.06707763671875, 0.005764007568359375, -0.08514404296875, 0.00618743896484375, -0.0364990234375, -0.05731201171875, 0.03363037109375, 0.045867919921875, 0.008819580078125, -0.0016813278198242188, 0.006839752197265625, 0.0006613731384277344, 0.0107421875, -0.0250091552734375, 0.00630950927734375, -0.0182342529296875, 0.0185394287109375, 0.0006594657897949219, -0.0355224609375, -0.03631591796875, -0.047149658203125, 0.06573486328125, 0.038055419921875, 0.0310516357421875, -0.017974853515625, 0.06060791015625, -0.036529541015625, -0.0001685619354248047, -0.0032978057861328125, -0.0028076171875, -0.0195770263671875, 0.075439453125, 0.036773681640625, -0.03765869140625, -0.037017822265625, -0.00762176513671875, 0.0433349609375, -0.03533935546875, 0.003818511962890625, 0.004413604736328125, 0.0310211181640625, -0.0207672119140625, 0.03594970703125, -0.036895751953125, -0.055389404296875, -0.054443359375, 0.00030684471130371094, -0.0006270408630371094, 0.004638671875, 0.0035533905029296875, 0.002002716064453125, 0.038177490234375, -0.0343017578125, 0.0396728515625, -0.018310546875, 0.026641845703125, 0.022064208984375, 0.0621337890625, 0.022552490234375, 0.040252685546875, -0.01505279541015625, 0.0230865478515625, 0.0053253173828125, 0.041748046875, 0.01342010498046875, 0.0203704833984375, -0.021209716796875, -0.008087158203125, 0.0106048583984375, -0.034088134765625, 0.01385498046875, -0.016021728515625, 0.014495849609375, 0.044525146484375, 0.017974853515625, -0.0115203857421875, -0.0386962890625, -0.01033782958984375, 0.00722503662109375, -0.00348663330078125, -0.034576416015625, -0.0241546630859375, -0.042266845703125, 0.01605224609375, -0.0002624988555908203, -0.022186279296875, -0.020660400390625, 0.005390167236328125, -0.0111083984375, -0.021881103515625, -0.0286712646484375, 0.0175933837890625, 0.028656005859375, -0.052276611328125, -0.034820556640625, -0.0290374755859375, -0.00909423828125, -0.030853271484375, -0.004364013671875, 0.04248046875, 0.016204833984375, -0.028594970703125, 0.013519287109375, -0.0250091552734375, 0.06591796875, -0.03509521484375, 0.00423431396484375, 0.01479339599609375, 0.01018524169921875, -0.058349609375, -0.113037109375, 0.031707763671875, -0.0997314453125, 0.00942230224609375, 0.0178680419921875, -0.0305938720703125, -0.018280029296875, -0.044952392578125, -0.09429931640625, 0.09747314453125, -0.00994110107421875, -0.033416748046875, -0.0479736328125, -0.02740478515625, 0.005535125732421875, 0.043243408203125, -0.0262603759765625, -0.01081085205078125, -0.055389404296875, 0.03076171875, 0.0294952392578125, 0.03741455078125, 0.0036792755126953125, -0.00260162353515625, -0.00732421875, 0.031707763671875, 0.038818359375, 0.0106658935546875, -0.0234222412109375, 0.019744873046875, 0.0128936767578125, 0.014251708984375, -0.0244140625, -0.01175689697265625, -0.00328826904296875, -0.00971221923828125, -0.0023632049560546875, -0.04791259765625, -0.045623779296875, -0.0128326416015625, 0.0762939453125, 0.044189453125, 0.0178375244140625, -0.0296173095703125, 0.01142120361328125, -0.013641357421875, -0.03778076171875, -0.02716064453125, 0.011260986328125, -0.05859375, 0.0009984970092773438, -0.005962371826171875, 0.02197265625, -0.00579071044921875, -0.0283203125, 0.00983428955078125, -0.0298919677734375, 0.0110931396484375, -0.003902435302734375, 0.0321044921875, -0.00592803955078125, 0.058013916015625, -0.044403076171875, -0.03436279296875, 0.01439666748046875, 0.01174163818359375, 0.0026988983154296875, -0.0221099853515625, -0.038421630859375, 0.0155181884765625, -0.01021575927734375, 0.021575927734375, -0.00803375244140625, 0.0193023681640625, -0.00030040740966796875, 0.016265869140625, 0.0035419464111328125, 0.036712646484375, 0.0035419464111328125, 0.035430908203125, -0.0299530029296875, 0.046112060546875, 0.0158233642578125, 0.0079345703125, -0.041412353515625, 0.021759033203125, -0.040252685546875, 0.0279541015625, -0.044036865234375, 0.01983642578125, -0.001132965087890625, 0.0035552978515625, 0.01544189453125, -0.002559661865234375, -0.007843017578125, -0.006763458251953125, 0.0021076202392578125, -0.00609588623046875, -0.02545166015625, 0.007293701171875 ]
8f822949874e86f6cb14119bb745fd58e2277f19
Wordpress Stackexchange Q: Category checkboxes in upload modal In a project I'm working on, I've enabled categories for attachments using: register_taxonomy_for_object_type('category', 'attachment'); In the edit attachment screen in the Media Library you see the normal list of checkboxes, but in the upload modal categories are presented as a comma-separated list of slugs in a textfield, as if they were a non-hierarchical taxonomy. I'm wondering if it's possible to replace this textfield with a list of category chechboxes. I'm trying to do it myself, but there is little documentation about the 3.5 upload modal. Any ideas? Thanks in advance
Q: Category checkboxes in upload modal In a project I'm working on, I've enabled categories for attachments using: register_taxonomy_for_object_type('category', 'attachment'); In the edit attachment screen in the Media Library you see the normal list of checkboxes, but in the upload modal categories are presented as a comma-separated list of slugs in a textfield, as if they were a non-hierarchical taxonomy. I'm wondering if it's possible to replace this textfield with a list of category chechboxes. I'm trying to do it myself, but there is little documentation about the 3.5 upload modal. Any ideas? Thanks in advance
wordpress
{ "language": "en", "length": 96, "provenance": "stackexchange_00019.jsonl.gz:446573", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152150" }
[ 0.069580078125, 0.015838623046875, -0.01007080078125, -0.068359375, 0.02789306640625, -0.0288543701171875, -0.004299163818359375, -0.028350830078125, 0.025421142578125, 0.0526123046875, 0.0034847259521484375, -0.0237274169921875, 0.0625, -0.046722412109375, -0.025543212890625, 0.01496124267578125, 0.00441741943359375, 0.025604248046875, 0.03594970703125, -0.0159759521484375, 0.0007948875427246094, -0.016632080078125, 0.040130615234375, -0.042205810546875, 0.0014085769653320312, 0.0029621124267578125, -0.005191802978515625, -0.018524169921875, 0.003871917724609375, -0.0211639404296875, -0.001171112060546875, 0.01284027099609375, 0.005352020263671875, 0.01126861572265625, -0.003963470458984375, 0.0211029052734375, 0.00621795654296875, 0.0221405029296875, 0.0195159912109375, 0.02154541015625, 0.042083740234375, -0.0318603515625, 0.0214080810546875, -0.023895263671875, 0.0202484130859375, -0.018707275390625, 0.0229339599609375, -0.0528564453125, 0.042816162109375, -0.05560302734375, 0.0101776123046875, -0.00530242919921875, 0.03314208984375, -0.09429931640625, -0.01380157470703125, 0.02032470703125, -0.0589599609375, 0.0201873779296875, 0.03204345703125, 0.0615234375, 0.0140228271484375, -0.01666259765625, -0.0186614990234375, -0.0458984375, 0.0019178390502929688, 0.01018524169921875, -0.0281829833984375, 0.01528167724609375, -0.055511474609375, -0.021026611328125, 0.019561767578125, -0.06451416015625, 0.027008056640625, -0.0218963623046875, -0.00589752197265625, 0.0152587890625, -0.0272369384765625, -0.01314544677734375, 0.044158935546875, -0.040985107421875, 0.0211334228515625, 0.03253173828125, 0.0132904052734375, 0.0269317626953125, -0.00928497314453125, 0.0419921875, 0.007511138916015625, -0.04205322265625, -0.02301025390625, 0.00991058349609375, -0.019439697265625, -0.01348114013671875, -0.024017333984375, 0.026885986328125, 0.01309967041015625, -0.030548095703125, 0.0305328369140625, 0.024749755859375, 0.0258941650390625, 0.0025272369384765625, -0.005401611328125, -0.044952392578125, 0.002166748046875, -0.0167236328125, 0.038238525390625, 0.03155517578125, -0.0249786376953125, -0.038604736328125, 0.053253173828125, 0.0247344970703125, 0.0021152496337890625, 0.0693359375, 0.009185791015625, 0.012451171875, -0.0238189697265625, -0.01436614990234375, -0.0177459716796875, 0.028167724609375, -0.01751708984375, 0.026885986328125, -0.005016326904296875, 0.03118896484375, -0.00036597251892089844, -0.047454833984375, 0.0160980224609375, -0.007411956787109375, -0.0013446807861328125, -0.027069091796875, -0.0063629150390625, -0.00739288330078125, -0.033935546875, 0.01271820068359375, 0.04736328125, 0.04412841796875, 0.0265655517578125, -0.0010156631469726562, -0.018890380859375, -0.0022830963134765625, 0.007091522216796875, -0.0013761520385742188, 0.04412841796875, -0.0236358642578125, 0.007518768310546875, 0.03338623046875, 0.01111602783203125, 0.05487060546875, 0.0192413330078125, -0.0190887451171875, -0.0207672119140625, -0.04541015625, 0.0153045654296875, -0.07464599609375, 0.051055908203125, 0.01189422607421875, -0.047332763671875, -0.01421356201171875, 0.037384033203125, -0.037353515625, -0.042877197265625, -0.08160400390625, 0.038055419921875, -0.01611328125, 0.01505279541015625, -0.04779052734375, -0.046875, 0.0108184814453125, -0.091796875, -0.01629638671875, 0.02935791015625, 0.00811767578125, 0.0212860107421875, -0.033050537109375, 0.0085906982421875, 0.001800537109375, 0.006999969482421875, 0.016265869140625, 0.02789306640625, 0.0024356842041015625, 0.01497650146484375, 0.04644775390625, 0.0088958740234375, -0.0290985107421875, 0.028076171875, -0.0181427001953125, -0.056549072265625, 0.041839599609375, 0.0037708282470703125, 0.034637451171875, 0.02099609375, -0.00971221923828125, 0.054656982421875, 0.034515380859375, -0.045562744140625, 0.0219268798828125, 0.015533447265625, 0.0103759765625, -0.059600830078125, 0.007671356201171875, -0.00424957275390625, -0.0233001708984375, 0.030181884765625, 0.018707275390625, 0.018768310546875, 0.0198822021484375, 0.0244140625, 0.0161895751953125, 0.00742340087890625, 0.00839996337890625, -0.0010728836059570312, 0.03350830078125, 0.01149749755859375, -0.0021419525146484375, -0.029022216796875, -0.0098114013671875, -0.00498199462890625, 0.002040863037109375, -0.0026988983154296875, 0.023712158203125, -0.0171966552734375, 0.005001068115234375, -0.04461669921875, 0.01468658447265625, -0.024658203125, 0.006542205810546875, -0.0081939697265625, 0.0013885498046875, -0.002643585205078125, 0.0024280548095703125, 0.0208892822265625, 0.033203125, 0.0016622543334960938, -0.0201263427734375, 0.006534576416015625, 0.00809478759765625, -0.024200439453125, -0.01416778564453125, -0.006282806396484375, -0.10406494140625, 0.01415252685546875, 0.06744384765625, 0.00582122802734375, 0.0226593017578125, -0.01479339599609375, 0.01432037353515625, 0.08624267578125, 0.01702880859375, 0.0016498565673828125, 0.01190185546875, -0.034423828125, 0.0012750625610351562, 0.019073486328125, 0.0126495361328125, 0.0152435302734375, 0.0226593017578125, 0.016387939453125, 0.0032253265380859375, -0.0013275146484375, -0.044952392578125, 0.0279998779296875, -0.00433349609375, 0.0222625732421875, -0.0237274169921875, -0.042388916015625, 0.003322601318359375, 0.0012989044189453125, 0.0149688720703125, 0.0246734619140625, 0.0181732177734375, -0.013275146484375, 0.01328277587890625, 0.005615234375, -0.03594970703125, 0.00006175041198730469, 0.0243682861328125, 0.029876708984375, -0.007671356201171875, -0.0340576171875, -0.010711669921875, 0.0269317626953125, 0.004184722900390625, -0.01251983642578125, 0.038360595703125, -0.003662109375, -0.000560760498046875, -0.03326416015625, -0.047027587890625, 0.0267333984375, 0.027801513671875, -0.028839111328125, -0.060302734375, 0.01169586181640625, 0.0056304931640625, -0.0277557373046875, 0.01953125, -0.03594970703125, -0.044342041015625, 0.0184783935546875, 0.0053863525390625, 0.0206451416015625, -0.01390838623046875, 0.032806396484375, 0.03558349609375, -0.053497314453125, 0.039642333984375, 0.0038280487060546875, 0.006778717041015625, -0.001102447509765625, 0.0260772705078125, 0.0148162841796875, -0.0234375, 0.0012807846069335938, 0.00896453857421875, 0.01445770263671875, 0.0164031982421875, 0.00202178955078125, -0.048492431640625, 0.00882720947265625, 0.005950927734375, -0.039764404296875, -0.0438232421875, 0.0148773193359375, -0.065673828125, 0.04534912109375, 0.014984130859375, -0.035003662109375, -0.0565185546875, 0.0799560546875, 0.0182952880859375, 0.018280029296875, -0.03521728515625, 0.004451751708984375, -0.0195770263671875, -0.034759521484375, -0.03460693359375, 0.0194244384765625, -0.00634002685546875, 0.004467010498046875, 0.059844970703125, 0.0005173683166503906, -0.050506591796875, -0.004405975341796875, -0.007404327392578125, 0.0155792236328125, 0.02496337890625, 0.03204345703125, -0.03228759765625, 0.004604339599609375, 0.01461029052734375, 0.00901031494140625, 0.010711669921875, -0.0208740234375, -0.0316162109375, -0.010284423828125, 0.005462646484375, -0.0108795166015625, -0.0170135498046875, 0.01812744140625, 0.0106201171875, -0.031341552734375, -0.031951904296875, 0.007640838623046875, -0.0025081634521484375, -0.001003265380859375, -0.0179595947265625, -0.0255584716796875, -0.0078887939453125, -0.0166015625, 0.0297088623046875, -0.0007996559143066406, -0.00206756591796875, 0.0266265869140625, -0.04217529296875, -0.01358795166015625, -0.0022106170654296875, -0.0008654594421386719, -0.0004935264587402344, -0.03704833984375, -0.0287933349609375, 0.01100921630859375, -0.0389404296875, -0.005290985107421875, -0.05328369140625, 0.08978271484375, -0.0234375, -0.0611572265625, 0.04058837890625, -0.0772705078125, -0.0146331787109375, -0.07208251953125, -0.0012598037719726562, -0.031982421875, 0.07281494140625, -0.06793212890625, -0.01258087158203125, 0.0016431808471679688, 0.0244140625, -0.024261474609375, -0.045928955078125, -0.048919677734375, -0.003246307373046875, -0.0670166015625, 0.0010280609130859375, 0.0230865478515625, -0.03436279296875, -0.01175689697265625, 0.00844573974609375, -0.05047607421875, -0.0367431640625, 0.048004150390625, -0.0274200439453125, -0.008575439453125, -0.007091522216796875, 0.01971435546875, -0.053924560546875, -0.029815673828125, 0.0005803108215332031, -0.09857177734375, -0.021636962890625, 0.0169219970703125, 0.03204345703125, -0.0357666015625, 0.020782470703125, -0.03009033203125, 0.057861328125, 0.024322509765625, 0.01117706298828125, 0.02032470703125, -0.0077056884765625, 0.01244354248046875, 0.004779815673828125, 0.0278472900390625, -0.01062774658203125, -0.01654052734375, -0.057403564453125, -0.07220458984375, -0.05859375, -0.0128021240234375, 0.0136260986328125, 0.012054443359375, -0.0263671875, -0.0487060546875, -0.03607177734375, -0.07037353515625, -0.02569580078125, -0.0184173583984375, -0.0201263427734375, -0.019287109375, -0.06060791015625, 0.0214691162109375, -0.019927978515625, 0.00799560546875, 0.034088134765625, 0.048919677734375, 0.0024566650390625, -0.00672149658203125, -0.0858154296875, -0.005222320556640625, 0.0531005859375, -0.0207672119140625, -0.0006494522094726562, -0.002864837646484375, -0.051300048828125, 0.07867431640625, 0.0013723373413085938, 0.03753662109375, -0.0535888671875, 0.058197021484375, -0.0015001296997070312, 0.0070953369140625, 0.0012302398681640625, -0.0032939910888671875, 0.01537322998046875, -0.04498291015625, -0.01351165771484375, 0.0188751220703125, -0.0163726806640625, 0.0005311965942382812, 0.033416748046875, 0.0020160675048828125, -0.00292205810546875, -0.0565185546875, 0.01258087158203125, -0.01055908203125, 0.03790283203125, 0.02667236328125, -0.00629425048828125, 0.040435791015625, 0.025177001953125, -0.033416748046875, -0.006137847900390625, -0.009918212890625, 0.0249176025390625, 0.03533935546875, -0.036529541015625, -0.005161285400390625, -0.0272216796875, 0.0103302001953125, -0.06622314453125, -0.02264404296875, -0.01433563232421875, -0.06170654296875, 0.0096282958984375, 0.0264892578125, 0.027008056640625, -0.0167388916015625, 0.020294189453125, 0.02301025390625, 0.005405426025390625, -0.00266265869140625, -0.054290771484375, 0.0352783203125, -0.0379638671875, -0.0162353515625, 0.0033702850341796875, -0.0240020751953125, 0.01715087890625, -0.005619049072265625, -0.0028171539306640625, -0.0180206298828125, -0.006656646728515625, 0.0311431884765625, 0.037811279296875, -0.01003265380859375, 0.01617431640625, 0.00782012939453125, -0.01204681396484375, -0.0245819091796875, 0.0105438232421875, -0.041717529296875, 0.0251922607421875, -0.004962921142578125, 0.0241546630859375, -0.019317626953125, -0.052215576171875, 0.046142578125, -0.043121337890625, 0.00502777099609375, -0.0005640983581542969, -0.05426025390625, -0.0369873046875, -0.0197296142578125, -0.032257080078125, 0.00048804283142089844, -0.037628173828125, -0.02099609375, 0.03759765625, -0.0457763671875, 0.009490966796875, 0.044342041015625, -0.038055419921875, 0.0052947998046875, 0.01971435546875, -0.032470703125, -0.0123443603515625, -0.003997802734375, -0.05609130859375, -0.03875732421875, -0.0015697479248046875, -0.021514892578125, 0.05853271484375, -0.0018157958984375, 0.01181793212890625, -0.00850677490234375, -0.030120849609375, -0.0001233816146850586, -0.003841400146484375, 0.0479736328125, 0.001316070556640625, -0.015472412109375, -0.0189056396484375, -0.025848388671875, -0.0255279541015625, -0.0208892822265625, -0.0217437744140625, -0.0164794921875, -0.00693511962890625, -0.0033168792724609375, 0.0286712646484375, -0.01548004150390625, 0.005245208740234375, 0.01104736328125, 0.0122528076171875, 0.0028476715087890625, 0.045867919921875, -0.0136260986328125, 0.0284271240234375, 0.00777435302734375, 0.049072265625, 0.00017583370208740234, -0.0247039794921875, -0.03863525390625, -0.02618408203125, -0.0384521484375, -0.08984375, 0.0020809173583984375, 0.057708740234375, -0.03778076171875, 0.06634521484375, 0.0291900634765625, 0.027313232421875, 0.0233917236328125, -0.00754547119140625, 0.0168914794921875, -0.006092071533203125, -0.02252197265625, -0.025634765625, -0.0296783447265625, 0.048095703125, -0.0306549072265625, -0.00394439697265625, 0.0024700164794921875, 0.0195465087890625, 0.028076171875, -0.0225067138671875, 0.018798828125, 0.0169830322265625, -0.048828125, 0.046051025390625, 0.0318603515625, 0.04766845703125, 0.0240936279296875, 0.0007138252258300781, 0.02227783203125, -0.033935546875, 0.0251922607421875, 0.04241943359375, -0.0335693359375, 0.06768798828125, 0.01593017578125, -0.01403045654296875, 0.046783447265625, -0.038818359375, 0.0005192756652832031, 0.0279083251953125, 0.037506103515625, -0.046661376953125, 0.0013418197631835938, -0.000396728515625, -0.0305938720703125, -0.01444244384765625, 0.0032939910888671875, -0.0136260986328125, -0.070068359375, -0.006313323974609375, -0.0184173583984375, -0.037567138671875, -0.0496826171875, -0.0283966064453125, -0.006744384765625, 0.0074920654296875, 0.01806640625, 0.0102691650390625, 0.00461578369140625, -0.033599853515625, -0.01241302490234375, 0.0148773193359375, 0.017578125, 0.022369384765625, -0.0156707763671875, -0.0012989044189453125, -0.0008397102355957031, 0.03472900390625, -0.033782958984375, -0.006824493408203125, 0.014801025390625, -0.00408935546875, 0.019805908203125, 0.01580810546875, 0.0009427070617675781, -0.024383544921875, -0.006252288818359375, -0.05120849609375, 0.04327392578125, -0.001861572265625, 0.01020050048828125, 0.0310821533203125, -0.056396484375, -0.0041961669921875, -0.032196044921875, 0.02752685546875, 0.00627899169921875, 0.009521484375, 0.0186309814453125, -0.03546142578125, -0.0156097412109375, 0.036285400390625, 0.0271148681640625, 0.0037288665771484375, 0.0040130615234375, 0.03521728515625, -0.06072998046875, -0.058349609375, 0.01506805419921875, -0.0693359375, -0.00980377197265625, -0.01275634765625, -0.066162109375, 0.08251953125, 0.025390625, 0.047698974609375, 0.01108551025390625, 0.02154541015625, -0.0254364013671875, 0.00252532958984375, -0.0182037353515625, 0.00492095947265625, 0.0085296630859375, -0.011505126953125, -0.06878662109375, -0.0200347900390625, -0.03948974609375, 0.05255126953125, 0.039825439453125, -0.01474761962890625, 0.016510009765625, 0.00044918060302734375, 0.051422119140625, 0.050048828125, -0.01111602783203125, 0.0026836395263671875, 0.01047515869140625, 0.012481689453125, 0.0280914306640625, -0.0095977783203125, 0.035919189453125, -0.0278472900390625, -0.0169830322265625, 0.02197265625, 0.02581787109375, 0.05828857421875, 0.001979827880859375, 0.047576904296875, 0.0236358642578125, -0.0231781005859375, 0.01605224609375, -0.0625, 0.030364990234375, 0.0318603515625, 0.0145111083984375, -0.0031147003173828125, 0.0249481201171875, -0.01522064208984375, 0.048858642578125, -0.01194000244140625, 0.0301666259765625, -0.0009365081787109375, -0.0009260177612304688, 0.06243896484375, -0.0267791748046875, -0.01226043701171875, 0.0012264251708984375, -0.0012607574462890625, 0.0182342529296875, -0.040191650390625, 0.0025615692138671875, -0.056304931640625, 0.0216217041015625, 0.0230865478515625, 0.010833740234375, -0.0404052734375, -0.0697021484375, 0.005008697509765625, 0.033203125, 0.025146484375, 0.0226593017578125, 0.02935791015625, -0.01456451416015625, 0.058197021484375, -0.052398681640625, -0.0200653076171875, 0.0104217529296875, 0.0246734619140625, 0.010101318359375, 0.0474853515625, -0.0220184326171875, -0.0389404296875, -0.048004150390625, 0.031463623046875, -0.0077972412109375, 0.03472900390625, 0.0026702880859375, 0.0758056640625, -0.031463623046875, -0.0033092498779296875, 0.00091552734375, -0.004734039306640625, 0.01470947265625, -0.0141754150390625, -0.0174102783203125, -0.007266998291015625, 0.042816162109375, 0.020721435546875, -0.005756378173828125, 0.0005955696105957031, 0.04443359375, 0.069091796875, -0.00765228271484375, -0.02105712890625, 0.06317138671875, 0.0013818740844726562, -0.0279998779296875, -0.044830322265625, 0.038818359375, 0.0877685546875, 0.031951904296875, -0.0006275177001953125, -0.02239990234375, 0.119140625, -0.0121002197265625, 0.03839111328125, -0.00788116455078125, -0.0295562744140625, 0.032989501953125, -0.044097900390625, 0.10162353515625, 0.0021495819091796875, -0.0582275390625, -0.022003173828125, -0.031707763671875, -0.036651611328125, 0.044158935546875, 0.04913330078125, -0.036468505859375, 0.025390625, -0.04119873046875, -0.0231781005859375, -0.01201629638671875, 0.033905029296875, -0.01427459716796875, -0.023895263671875, 0.010955810546875, -0.04302978515625, -0.00687408447265625, 0.0179290771484375, 0.0240631103515625, -0.004924774169921875, -0.0021152496337890625, 0.06756591796875, -0.002323150634765625, -0.00453948974609375, -0.019378662109375, 0.041839599609375, -0.07989501953125, -0.0013475418090820312, 0.005451202392578125, 0.00304412841796875, -0.002956390380859375, -0.0045928955078125, 0.0384521484375, 0.013763427734375, 0.042449951171875, -0.04315185546875, -0.0088043212890625, -0.00560760498046875, 0.0186767578125, 0.00051116943359375, 0.04046630859375, -0.0213775634765625, -0.036865234375, -0.042694091796875, -0.003833770751953125, 0.0146331787109375, 0.056396484375, 0.008209228515625, 0.045928955078125, 0.0007314682006835938, 0.010986328125, 0.01611328125, -0.00525665283203125, 0.0035686492919921875, 0.027191162109375, -0.018707275390625, -0.005283355712890625, 0.029937744140625, -0.0042724609375, 0.0175628662109375, 0.01068115234375, 0.0169830322265625, 0.03497314453125, -0.0831298828125, 0.0017242431640625, 0.057830810546875, 0.0284271240234375, -0.034271240234375, 0.020416259765625, 0.057647705078125, -0.0304107666015625, 0.017303466796875, -0.000652313232421875, -0.01910400390625, -0.0116729736328125, -0.0165863037109375, 0.0184478759765625, 0.0034465789794921875, -0.01302337646484375, -0.05828857421875, -0.0184173583984375, 0.018585205078125, 0.006092071533203125, -0.0178680419921875, 0.00440216064453125, -0.0031604766845703125, 0.034576416015625, -0.02587890625, 0.042572021484375, -0.0171966552734375, 0.012908935546875, -0.0413818359375, 0.01255035400390625, -0.035552978515625, 0.0026702880859375, -0.01104736328125, 0.00966644287109375, 0.0019273757934570312, -0.0301055908203125, -0.016265869140625, 0.023956298828125, 0.025604248046875, 0.07208251953125, 0.056304931640625, -0.00911712646484375, -0.00917816162109375, 0.029571533203125, -0.0228271484375, -0.01947021484375, 0.0020809173583984375, 0.018829345703125, -0.006839752197265625, -0.0122833251953125, -0.01434326171875, -0.0024547576904296875, -0.049957275390625, -0.1004638671875, 0.0611572265625, -0.0298614501953125, -0.033050537109375, -0.0231475830078125, 0.004787445068359375, -0.0038585662841796875, 0.0302734375, -0.0048980712890625, 0.00508880615234375, -0.0186767578125, 0.0182647705078125, 0.0053253173828125, 0.00244903564453125, 0.0267791748046875, -0.00846099853515625, -0.0802001953125, -0.0236663818359375, -0.03240966796875, 0.0031871795654296875, 0.07025146484375, -0.014892578125, 0.0113677978515625, 0.040985107421875, -0.06781005859375, -0.04705810546875, -0.06536865234375, -0.01401519775390625, 0.00885772705078125, -0.028594970703125, -0.007415771484375, -0.024017333984375, -0.0018167495727539062, 0.0169525146484375, -0.00782012939453125, 0.0095672607421875, 0.0035076141357421875, -0.0027637481689453125, -0.02166748046875, -0.017608642578125, 0.0186767578125, -0.0655517578125, -0.019378662109375, 0.007259368896484375, 0.01206207275390625, -0.02471923828125, 0.0005903244018554688, -0.00495147705078125, -0.0299224853515625, 0.018890380859375, 0.00438690185546875, -0.01018524169921875, -0.00778961181640625, -0.0002123117446899414, -0.01424407958984375, -0.034698486328125, -0.0009160041809082031, 0.006893157958984375, -0.051361083984375, 0.01284027099609375, -0.0537109375, -0.034210205078125, 0.005702972412109375, 0.04156494140625, -0.0253448486328125, 0.04254150390625, -0.0247650146484375, 0.0257110595703125, -0.01143646240234375, 0.0184326171875, -0.000823974609375, 0.027313232421875, -0.0172882080078125, 0.042022705078125, 0.0122222900390625, 0.026824951171875, -0.01198577880859375, -0.019561767578125, -0.01261138916015625, 0.0165252685546875, -0.00380706787109375, -0.001499176025390625, 0.0501708984375, -0.05865478515625, 0.016845703125, 0.0015020370483398438, -0.0219879150390625, -0.00905609130859375, -0.011871337890625, -0.0279541015625, -0.0261993408203125, 0.00006079673767089844 ]
4bc2f28be39833ace68f4181b08724fa3463f83d
Wordpress Stackexchange Q: Add Incrementing ID to each paragraph in the_content I need to loop through each paragraph in the_content and add an ID to each paragraph with an incremental value. function incrementparagraphs( $content ) { for ($i = 0; $i <count($content); $i++) { return str_replace( "<p>", "<p data-section-id=" . $i . ">", $content ); } } add_filter( 'the_content', 'incrementparagraphs', 10, 1 ); A: If I understand your question correctly, you can try the following: add_filter( 'the_content', 'incrementparagraphs', 10, 1 ); function incrementparagraphs( $content ) { return preg_replace_callback( '|<p>|', function ( $matches ) { static $i = 0; return sprintf( '<p data-section-id="%d">', $i++ ); }, $content ); } to replace every <p> tags with <p data-section-id="1">, where the data-section-id attribute contains the incremental count of the current p tag. Example: Before: <p>aaa</p> <p>bbb</p> <p>ccc</p> After: <p data-section-id="0">aaa</p> <p data-section-id="1">bbb</p> <p data-section-id="2">ccc</p> More on preg_replace_callback here.
Q: Add Incrementing ID to each paragraph in the_content I need to loop through each paragraph in the_content and add an ID to each paragraph with an incremental value. function incrementparagraphs( $content ) { for ($i = 0; $i <count($content); $i++) { return str_replace( "<p>", "<p data-section-id=" . $i . ">", $content ); } } add_filter( 'the_content', 'incrementparagraphs', 10, 1 ); A: If I understand your question correctly, you can try the following: add_filter( 'the_content', 'incrementparagraphs', 10, 1 ); function incrementparagraphs( $content ) { return preg_replace_callback( '|<p>|', function ( $matches ) { static $i = 0; return sprintf( '<p data-section-id="%d">', $i++ ); }, $content ); } to replace every <p> tags with <p data-section-id="1">, where the data-section-id attribute contains the incremental count of the current p tag. Example: Before: <p>aaa</p> <p>bbb</p> <p>ccc</p> After: <p data-section-id="0">aaa</p> <p data-section-id="1">bbb</p> <p data-section-id="2">ccc</p> More on preg_replace_callback here.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:446576", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152157" }
[ 0.0056610107421875, -0.0221710205078125, -0.0302886962890625, -0.08514404296875, 0.005519866943359375, -0.01003265380859375, -0.0287322998046875, 0.036285400390625, 0.0279998779296875, 0.0245819091796875, -0.03985595703125, -0.01611328125, -0.0165863037109375, -0.0098876953125, -0.0283355712890625, -0.02783203125, -0.002960205078125, 0.00531005859375, -0.0006699562072753906, -0.019439697265625, 0.0156402587890625, -0.030059814453125, 0.008758544921875, 0.0200653076171875, 0.0031719207763671875, -0.03662109375, 0.06683349609375, -0.02716064453125, -0.018218994140625, -0.050140380859375, -0.0103302001953125, 0.045989990234375, -0.00800323486328125, 0.037200927734375, -0.0014591217041015625, 0.01294708251953125, 0.04583740234375, -0.002017974853515625, 0.02532958984375, 0.034088134765625, 0.023681640625, -0.0197296142578125, 0.03778076171875, 0.03338623046875, -0.0131072998046875, -0.0034198760986328125, 0.024383544921875, -0.034088134765625, -0.00513458251953125, 0.0229034423828125, 0.0244140625, 0.0224456787109375, 0.005992889404296875, 0.05126953125, -0.002685546875, 0.004253387451171875, -0.0137176513671875, -0.0338134765625, 0.0113983154296875, 0.025360107421875, 0.022125244140625, -0.005054473876953125, 0.0106353759765625, -0.0184173583984375, -0.034698486328125, 0.004322052001953125, 0.0283660888671875, -0.0010986328125, -0.02899169921875, -0.05181884765625, -0.004398345947265625, -0.0008673667907714844, -0.00807952880859375, -0.050018310546875, 0.0006079673767089844, 0.053436279296875, -0.02099609375, -0.0015649795532226562, 0.003814697265625, 0.0002791881561279297, 0.0229034423828125, 0.018524169921875, 0.0118255615234375, -0.0012607574462890625, 0.007724761962890625, 0.0024433135986328125, -0.010223388671875, -0.0247039794921875, -0.02398681640625, -0.035675048828125, -0.03125, -0.0004265308380126953, 0.0229949951171875, -0.04656982421875, -0.0714111328125, -0.00426483154296875, 0.008819580078125, 0.046661376953125, -0.0216217041015625, -0.0004277229309082031, 0.005359649658203125, -0.0238189697265625, -0.001529693603515625, -0.031097412109375, 0.0224609375, 0.0173187255859375, -0.01434326171875, 0.02587890625, 0.049102783203125, 0.0289764404296875, 0.007801055908203125, 0.04217529296875, -0.0009627342224121094, 0.0149383544921875, -0.07000732421875, 0.00899505615234375, -0.01290130615234375, -0.0592041015625, -0.0092010498046875, -0.040802001953125, -0.0077362060546875, 0.01522064208984375, -0.07220458984375, 0.045257568359375, 0.006839752197265625, 0.0188140869140625, 0.033355712890625, -0.0037212371826171875, -0.0289459228515625, -0.000009179115295410156, -0.03662109375, 0.03619384765625, 0.08563232421875, 0.0190582275390625, 0.00485992431640625, -0.002216339111328125, 0.035400390625, -0.0579833984375, -0.0360107421875, 0.024139404296875, -0.0027923583984375, -0.0103302001953125, -0.0079345703125, -0.041046142578125, 0.01119232177734375, -0.020965576171875, 0.01904296875, 0.031219482421875, -0.01123046875, -0.029205322265625, 0.04144287109375, -0.033843994140625, 0.0750732421875, -0.0288543701171875, -0.08837890625, -0.01690673828125, -0.0355224609375, -0.0125732421875, -0.03741455078125, -0.045318603515625, 0.0296173095703125, -0.0157928466796875, -0.0104827880859375, -0.008697509765625, -0.0298614501953125, 0.00791168212890625, -0.01983642578125, -0.010498046875, 0.0252685546875, 0.06793212890625, 0.01111602783203125, -0.00481414794921875, 0.0002199411392211914, 0.01412200927734375, -0.01204681396484375, -0.0033245086669921875, -0.03570556640625, 0.0501708984375, 0.0258636474609375, 0.0245819091796875, 0.0254058837890625, -0.037017822265625, 0.054443359375, 0.02081298828125, -0.09173583984375, 0.08905029296875, -0.00394439697265625, 0.10345458984375, 0.032470703125, 0.002300262451171875, 0.0250091552734375, -0.00484466552734375, -0.048492431640625, 0.0272979736328125, 0.005435943603515625, -0.035125732421875, 0.024658203125, 0.0040283203125, 0.00281524658203125, -0.01375579833984375, -0.0192718505859375, 0.01444244384765625, -0.0217437744140625, 0.033905029296875, -0.0207672119140625, -0.0125274658203125, -0.00018525123596191406, 0.023895263671875, 0.012939453125, -0.003826141357421875, -0.01430511474609375, -0.042510986328125, 0.0227203369140625, -0.015411376953125, -0.0361328125, -0.020111083984375, -0.040130615234375, 0.00806427001953125, -0.022613525390625, 0.033843994140625, -0.0221405029296875, 0.032745361328125, -0.0097503662109375, -0.0075225830078125, 0.08123779296875, -0.016021728515625, -0.0184173583984375, -0.03118896484375, 0.051910400390625, -0.0164794921875, -0.045074462890625, 0.05841064453125, 0.013458251953125, 0.054718017578125, -0.03082275390625, -0.02142333984375, -0.04510498046875, -0.046844482421875, 0.011871337890625, 0.059783935546875, 0.058685302734375, 0.0345458984375, 0.00806427001953125, -0.038299560546875, 0.04156494140625, -0.0005617141723632812, 0.0394287109375, -0.06890869140625, -0.0223846435546875, 0.01165771484375, 0.01056671142578125, 0.0012664794921875, 0.0165252685546875, -0.043853759765625, -0.0009183883666992188, 0.037506103515625, 0.0168304443359375, 0.003963470458984375, -0.038482666015625, 0.0096282958984375, 0.00740814208984375, -0.00847625732421875, -0.03558349609375, 0.007419586181640625, 0.01462554931640625, 0.014862060546875, 0.044921875, 0.047027587890625, -0.0032100677490234375, -0.021087646484375, 0.01412200927734375, 0.04412841796875, -0.0171966552734375, -0.00656890869140625, -0.042938232421875, 0.00196075439453125, -0.0089111328125, 0.029052734375, -0.031463623046875, -0.017608642578125, 0.00939178466796875, 0.0789794921875, -0.025848388671875, -0.027587890625, -0.005458831787109375, 0.01227569580078125, -0.04339599609375, -0.0236053466796875, -0.0902099609375, -0.0826416015625, -0.035675048828125, 0.0308837890625, -0.03778076171875, 0.012298583984375, -0.0107574462890625, -0.0030994415283203125, 0.0567626953125, -0.04119873046875, 0.046722412109375, -0.026275634765625, 0.061553955078125, 0.058258056640625, -0.0189208984375, 0.0142974853515625, -0.004695892333984375, 0.037017822265625, 0.032501220703125, 0.0203399658203125, 0.0214996337890625, -0.047149658203125, 0.025146484375, 0.0117950439453125, 0.034454345703125, 0.0604248046875, 0.0267181396484375, -0.0221710205078125, 0.0162200927734375, 0.040771484375, -0.071533203125, -0.1417236328125, 0.038421630859375, -0.0577392578125, -0.038421630859375, -0.0019741058349609375, -0.056121826171875, 0.015472412109375, 0.03717041015625, -0.021026611328125, -0.0517578125, -0.034149169921875, -0.01505279541015625, -0.07635498046875, -0.040008544921875, 0.0279693603515625, 0.0088958740234375, 0.0213775634765625, 0.0156402587890625, 0.03631591796875, 0.00914764404296875, 0.00557708740234375, 0.039398193359375, 0.0133819580078125, -0.0006537437438964844, -0.006366729736328125, -0.00021731853485107422, -0.0290985107421875, -0.0037746429443359375, -0.004833221435546875, 0.010528564453125, 0.0128173828125, 0.0032176971435546875, 0.00116729736328125, 0.01074981689453125, 0.041900634765625, 0.02880859375, 0.0211334228515625, -0.004383087158203125, 0.08099365234375, 0.046142578125, -0.0086212158203125, -0.01947021484375, 0.024749755859375, -0.00974273681640625, -0.0267486572265625, -0.04193115234375, -0.0189361572265625, -0.0203094482421875, 0.04449462890625, -0.032012939453125, -0.00487518310546875, 0.01275634765625, -0.01259613037109375, 0.0237884521484375, -0.038177490234375, -0.049407958984375, 0.0006227493286132812, 0.02679443359375, -0.00286102294921875, 0.0210113525390625, 0.0203399658203125, 0.0122833251953125, 0.01456451416015625, -0.0236053466796875, -0.002712249755859375, -0.0011463165283203125, 0.031402587890625, 0.03350830078125, 0.05206298828125, -0.00359344482421875, -0.027587890625, -0.026397705078125, 0.048858642578125, -0.0599365234375, -0.018096923828125, 0.0164642333984375, 0.029388427734375, -0.005718231201171875, -0.060791015625, -0.024078369140625, -0.029022216796875, -0.0111541748046875, 0.032012939453125, 0.013916015625, -0.0159759521484375, -0.033050537109375, 0.017669677734375, -0.01557159423828125, -0.007904052734375, 0.03204345703125, -0.04876708984375, -0.01995849609375, 0.04107666015625, -0.044769287109375, 0.0316162109375, -0.04058837890625, -0.005947113037109375, -0.01329803466796875, 0.007266998291015625, -0.0273590087890625, 0.0062255859375, 0.048553466796875, -0.042572021484375, 0.004909515380859375, 0.009185791015625, 0.0009813308715820312, 0.015777587890625, 0.02001953125, 0.04498291015625, -0.0243377685546875, -0.03485107421875, 0.0164337158203125, -0.06549072265625, -0.0204315185546875, 0.0114288330078125, 0.0218658447265625, 0.055511474609375, -0.0188751220703125, -0.006473541259765625, -0.009857177734375, -0.0164947509765625, -0.056640625, -0.043609619140625, 0.0092010498046875, -0.0147552490234375, 0.00582122802734375, -0.0090484619140625, -0.040069580078125, -0.041259765625, 0.020416259765625, 0.01474761962890625, 0.00826263427734375, -0.008697509765625, 0.046295166015625, 0.032623291015625, -0.018402099609375, 0.058807373046875, 0.016387939453125, 0.0122528076171875, 0.03851318359375, 0.0294342041015625, -0.029541015625, -0.0171966552734375, 0.070068359375, -0.03173828125, 0.0240631103515625, 0.0251617431640625, 0.007656097412109375, 0.0030117034912109375, -0.015228271484375, 0.00955963134765625, 0.0191802978515625, -0.027557373046875, 0.01027679443359375, -0.024322509765625, -0.004817962646484375, -0.0106048583984375, 0.02154541015625, -0.00814056396484375, 0.02508544921875, -0.0219879150390625, -0.0236358642578125, 0.0134124755859375, 0.05517578125, -0.0028438568115234375, -0.007526397705078125, 0.020172119140625, -0.00952911376953125, -0.005649566650390625, -0.004085540771484375, 0.01507568359375, 0.007503509521484375, -0.004375457763671875, 0.032501220703125, 0.01123046875, -0.0123443603515625, 0.0004982948303222656, -0.0021686553955078125, 0.01372528076171875, 0.0294189453125, -0.0207977294921875, -0.040252685546875, 0.0228424072265625, 0.003131866455078125, -0.0418701171875, 0.026611328125, 0.004261016845703125, -0.0138702392578125, -0.0223846435546875, 0.014373779296875, -0.007396697998046875, 0.00409698486328125, -0.023529052734375, -0.0172271728515625, -0.006908416748046875, -0.020965576171875, -0.0038776397705078125, -0.013427734375, 0.0213470458984375, -0.05010986328125, -0.0141448974609375, 0.03662109375, 0.034027099609375, 0.0157012939453125, 0.003936767578125, 0.016448974609375, -0.031494140625, 0.034393310546875, 0.0020732879638671875, -0.0299530029296875, 0.00469970703125, 0.04296875, 0.030426025390625, 0.0217742919921875, -0.006290435791015625, -0.019012451171875, -0.0243682861328125, -0.01221466064453125, 0.00809478759765625, -0.0110626220703125, -0.0244140625, -0.0206146240234375, -0.0064239501953125, 0.002788543701171875, 0.005924224853515625, 0.006954193115234375, -0.03375244140625, -0.0006742477416992188, -0.003414154052734375, -0.0298919677734375, -0.004604339599609375, -0.0298309326171875, -0.0298309326171875, 0.0229949951171875, -0.0263824462890625, -0.033050537109375, 0.0213775634765625, -0.0054473876953125, -0.0090484619140625, -0.00677490234375, 0.06402587890625, -0.0196533203125, 0.054931640625, -0.0179595947265625, -0.0279388427734375, -0.006008148193359375, 0.01482391357421875, 0.030364990234375, 0.0186309814453125, -0.00981903076171875, -0.003997802734375, -0.03240966796875, -0.00458526611328125, -0.0202484130859375, -0.05816650390625, -0.007129669189453125, -0.01465606689453125, 0.025543212890625, 0.030029296875, -0.0120849609375, -0.015960693359375, 0.0474853515625, 0.0104827880859375, -0.00769805908203125, 0.07452392578125, -0.0018205642700195312, 0.03424072265625, -0.0194854736328125, 0.041778564453125, 0.0030574798583984375, 0.0299224853515625, 0.035125732421875, -0.043914794921875, -0.01788330078125, -0.07830810546875, 0.02069091796875, 0.005931854248046875, 0.0213470458984375, 0.0200958251953125, -0.014190673828125, 0.0168609619140625, 0.050018310546875, -0.01470184326171875, 0.011505126953125, -0.01247406005859375, -0.0281219482421875, -0.0413818359375, -0.006465911865234375, 0.05169677734375, -0.01058197021484375, -0.0157928466796875, 0.0184326171875, 0.013885498046875, -0.00189208984375, 0.004779815673828125, 0.002346038818359375, -0.043548583984375, -0.0153045654296875, 0.0175323486328125, 0.008544921875, -0.001407623291015625, 0.019989013671875, -0.03759765625, 0.0321044921875, 0.0277252197265625, -0.0279541015625, 0.0323486328125, 0.043243408203125, 0.07305908203125, -0.01065826416015625, -0.0160675048828125, 0.0548095703125, -0.039093017578125, -0.0166778564453125, -0.022216796875, -0.050994873046875, -0.004909515380859375, -0.00013887882232666016, -0.079833984375, -0.027679443359375, 0.034576416015625, 0.0181427001953125, 0.006549835205078125, -0.0029582977294921875, 0.037078857421875, 0.035491943359375, 0.0144195556640625, 0.0360107421875, 0.01629638671875, -0.010406494140625, -0.01386260986328125, -0.0237274169921875, -0.0019779205322265625, 0.0207672119140625, -0.01387786865234375, -0.00020122528076171875, 0.004962921142578125, -0.04901123046875, -0.01285552978515625, 0.0440673828125, -0.033966064453125, -0.07891845703125, 0.0181884765625, -0.00897979736328125, 0.022491455078125, -0.03509521484375, -0.00567626953125, 0.01381683349609375, 0.008544921875, -0.005962371826171875, -0.00958251953125, -0.0180816650390625, -0.0012578964233398438, -0.014923095703125, -0.03070068359375, 0.006031036376953125, 0.0308685302734375, -0.03094482421875, 0.0139007568359375, -0.020660400390625, -0.01100921630859375, -0.0198211669921875, 0.0005784034729003906, 0.040679931640625, 0.0048370361328125, -0.0294647216796875, 0.05816650390625, 0.020111083984375, -0.048583984375, -0.033355712890625, 0.0230560302734375, -0.08428955078125, -0.031585693359375, -0.00997161865234375, -0.00867462158203125, 0.022735595703125, -0.033782958984375, -0.054412841796875, 0.1297607421875, 0.0058135986328125, -0.004669189453125, 0.01320648193359375, 0.059356689453125, -0.06048583984375, 0.0210418701171875, -0.0295257568359375, 0.021575927734375, -0.03857421875, 0.0098876953125, -0.038543701171875, -0.005001068115234375, -0.0010271072387695312, 0.0263519287109375, 0.032745361328125, 0.013214111328125, -0.045806884765625, -0.00568389892578125, 0.0272979736328125, 0.031646728515625, 0.00484466552734375, 0.027618408203125, -0.008941650390625, 0.0227508544921875, -0.0018358230590820312, -0.0928955078125, 0.00041222572326660156, -0.0491943359375, -0.00107574462890625, 0.0236053466796875, 0.02178955078125, 0.052642822265625, -0.0396728515625, -0.0089263916015625, 0.005725860595703125, -0.028167724609375, 0.007038116455078125, -0.0171966552734375, -0.028778076171875, 0.0416259765625, 0.0014257431030273438, -0.10052490234375, -0.02618408203125, -0.049652099609375, 0.040374755859375, -0.003025054931640625, 0.07000732421875, 0.047271728515625, 0.01346588134765625, 0.057861328125, 0.008819580078125, 0.041748046875, -0.0014896392822265625, 0.00385284423828125, 0.012176513671875, 0.01406097412109375, 0.0268707275390625, -0.00905609130859375, 0.0197601318359375, 0.035980224609375, 0.033782958984375, -0.0299224853515625, -0.022796630859375, 0.0009164810180664062, -0.0009937286376953125, 0.0212554931640625, -0.01111602783203125, 0.0230255126953125, -0.03009033203125, -0.00966644287109375, -0.0299224853515625, -0.017852783203125, 0.01201629638671875, 0.0267333984375, 0.006587982177734375, 0.0191802978515625, -0.0143280029296875, -0.04583740234375, -0.030059814453125, 0.03594970703125, -0.00420379638671875, -0.0183563232421875, -0.014923095703125, 0.0382080078125, 0.033935546875, 0.0198822021484375, 0.027130126953125, 0.022369384765625, 0.019866943359375, -0.0223388671875, 0.010467529296875, -0.03564453125, 0.00982666015625, 0.0093536376953125, 0.01412200927734375, 0.0186614990234375, 0.0146484375, 0.0082550048828125, 0.0078125, 0.0073394775390625, 0.0197601318359375, -0.012298583984375, 0.048675537109375, -0.0258941650390625, 0.0242462158203125, -0.027252197265625, -0.0172882080078125, -0.0311126708984375, -0.0014925003051757812, 0.02783203125, 0.0301055908203125, 0.026611328125, 0.00909423828125, 0.0005326271057128906, -0.0108642578125, 0.02520751953125, 0.0035915374755859375, 0.064697265625, -0.0845947265625, 0.0020275115966796875, -0.0254669189453125, -0.09039306640625, 0.042724609375, 0.045623779296875, -0.0682373046875, 0.04962158203125, -0.02435302734375, 0.0298004150390625, 0.0095672607421875, -0.040802001953125, -0.008575439453125, 0.0443115234375, 0.045074462890625, 0.0185546875, 0.0037555694580078125, 0.0011310577392578125, 0.040313720703125, 0.041107177734375, -0.0079345703125, 0.055511474609375, -0.0190277099609375, 0.01367950439453125, -0.047088623046875, 0.011322021484375, -0.02154541015625, -0.031646728515625, 0.035369873046875, 0.05029296875, 0.01296234130859375, -0.0188140869140625, -0.037200927734375, 0.0517578125, 0.02337646484375, 0.0088653564453125, 0.046630859375, -0.0127105712890625, 0.004009246826171875, -0.0006308555603027344, 0.028778076171875, 0.0003910064697265625, -0.008819580078125, -0.00841522216796875, -0.0059661865234375, 0.059478759765625, 0.09393310546875, 0.0204925537109375, 0.0087890625, 0.02069091796875, 0.00168609619140625, 0.0240478515625, -0.007534027099609375, 0.060638427734375, 0.0307159423828125, -0.050811767578125, -0.0367431640625, -0.001262664794921875, -0.01010894775390625, -0.05059814453125, 0.02923583984375, -0.000016748905181884766, -0.007843017578125, -0.0380859375, -0.01474761962890625, 0.08544921875, 0.08392333984375, 0.0237274169921875, 0.061767578125, 0.00679779052734375, -0.023284912109375, 0.02044677734375, 0.0020732879638671875, -0.0190887451171875, -0.0254364013671875, 0.004512786865234375, 0.0025081634521484375, 0.0021114349365234375, -0.0235443115234375, -0.039703369140625, 0.00794219970703125, -0.003284454345703125, 0.0079498291015625, -0.035125732421875, 0.01629638671875, 0.0084686279296875, 0.0226898193359375, -0.007419586181640625, 0.01047515869140625, -0.033935546875, -0.0026111602783203125, -0.032196044921875, -0.04638671875, -0.06842041015625, 0.049285888671875, -0.05426025390625, 0.0258636474609375, 0.039031982421875, -0.01103973388671875, 0.02734375, -0.01194000244140625, 0.00225830078125, 0.048065185546875, -0.028411865234375, -0.01453399658203125, 0.010406494140625, 0.004009246826171875, -0.032073974609375, -0.08001708984375, 0.0010080337524414062, -0.06854248046875, -0.0007872581481933594, -0.02294921875, 0.0007157325744628906, 0.01039886474609375, -0.033966064453125, -0.07098388671875, 0.027984619140625, -0.01140594482421875, -0.025543212890625, -0.024078369140625, -0.041748046875, -0.016937255859375, -0.01103973388671875, -0.0201416015625, -0.0235443115234375, -0.041717529296875, 0.064208984375, -0.007747650146484375, 0.0262451171875, 0.033050537109375, -0.0230255126953125, -0.01300048828125, -0.00011676549911499023, -0.0100860595703125, -0.004669189453125, 0.01416778564453125, -0.01739501953125, 0.0185699462890625, 0.02789306640625, -0.0259857177734375, -0.040313720703125, -0.01407623291015625, -0.04095458984375, -0.013916015625, -0.06414794921875, -0.016937255859375, -0.007198333740234375, 0.053131103515625, 0.01551055908203125, -0.0006418228149414062, -0.047119140625, 0.028656005859375, 0.0280914306640625, -0.0179290771484375, 0.01470947265625, -0.0001062154769897461, 0.01119232177734375, -0.00823974609375, -0.04058837890625, -0.0023441314697265625, -0.020904541015625, -0.02044677734375, -0.0266265869140625, -0.0299835205078125, -0.023223876953125, -0.0131988525390625, 0.0018873214721679688, -0.0352783203125, 0.0355224609375, -0.035247802734375, -0.0289306640625, 0.00623321533203125, 0.03515625, -0.0148162841796875, -0.0235748291015625, -0.010467529296875, 0.0374755859375, 0.0024356842041015625, 0.02557373046875, 0.030059814453125, 0.029693603515625, -0.00930023193359375, 0.01366424560546875, -0.04241943359375, 0.006954193115234375, 0.008026123046875, 0.007480621337890625, -0.0022449493408203125, -0.0208587646484375, 0.00328826904296875, 0.06121826171875, -0.0160369873046875, 0.01198577880859375, -0.00608062744140625, -0.0028705596923828125, -0.02642822265625, 0.00716400146484375, 0.004322052001953125, 0.00803375244140625, -0.002285003662109375, -0.0272674560546875, -0.01922607421875, -0.068603515625, 0.0208740234375, -0.012237548828125, -0.01158905029296875, 0.03143310546875 ]
50dd2db4d9a8ad1a9a1040374be87d6e458e4a01
Wordpress Stackexchange Q: Display admin notice only on main dashboard page I'm using following code to display a notification in the admin dashboard. I want to display only on the main dashboard page (index.php), however the following code would display on all pages in the dashboard. Is there anyway to restrict it only to the dashboard main page? Thanks. function my_admin_notice() { ?> <div class="updated"> <p><?php _e( 'some message', 'my-text-domain' ); ?></p> </div> <?php } add_action( 'admin_notices', 'my_admin_notice' ); A: You can try the following: function my_admin_notice() { ?> <div class="updated"> <p><?php _e( 'some message', 'my-text-domain' ); ?></p> </div> <?php } add_action( 'load-index.php', function(){ add_action( 'admin_notices', 'my_admin_notice' ); } ); where we use the load-index.php hook to target the dashboard page.
Q: Display admin notice only on main dashboard page I'm using following code to display a notification in the admin dashboard. I want to display only on the main dashboard page (index.php), however the following code would display on all pages in the dashboard. Is there anyway to restrict it only to the dashboard main page? Thanks. function my_admin_notice() { ?> <div class="updated"> <p><?php _e( 'some message', 'my-text-domain' ); ?></p> </div> <?php } add_action( 'admin_notices', 'my_admin_notice' ); A: You can try the following: function my_admin_notice() { ?> <div class="updated"> <p><?php _e( 'some message', 'my-text-domain' ); ?></p> </div> <?php } add_action( 'load-index.php', function(){ add_action( 'admin_notices', 'my_admin_notice' ); } ); where we use the load-index.php hook to target the dashboard page.
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:446578", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152173" }
[ 0.051239013671875, -0.00885009765625, -0.018524169921875, -0.048004150390625, 0.028411865234375, -0.0372314453125, 0.015899658203125, 0.0105743408203125, -0.0094757080078125, 0.030364990234375, -0.0018825531005859375, -0.01474761962890625, 0.0025386810302734375, -0.0274200439453125, -0.0238494873046875, -0.020477294921875, 0.00569915771484375, 0.009429931640625, 0.03790283203125, -0.004756927490234375, 0.0172576904296875, 0.00027298927307128906, -0.003932952880859375, 0.016571044921875, -0.0048828125, -0.041656494140625, 0.0655517578125, -0.008209228515625, -0.018035888671875, -0.02398681640625, -0.00506591796875, 0.02752685546875, 0.0013952255249023438, 0.0379638671875, -0.0118865966796875, -0.00971221923828125, -0.0005702972412109375, 0.017242431640625, 0.0182952880859375, 0.0224761962890625, 0.006359100341796875, 0.00933837890625, 0.06878662109375, 0.020263671875, 0.007579803466796875, -0.0127105712890625, 0.0034542083740234375, -0.05645751953125, 0.0010166168212890625, -0.0458984375, 0.0200958251953125, 0.0406494140625, 0.034881591796875, -0.0166778564453125, 0.001262664794921875, 0.040740966796875, -0.033447265625, 0.0056915283203125, 0.034088134765625, 0.036895751953125, -0.0217742919921875, -0.0178070068359375, -0.00464630126953125, -0.06170654296875, -0.01142120361328125, -0.0262451171875, 0.0007967948913574219, -0.002288818359375, -0.032806396484375, -0.0245819091796875, 0.049346923828125, -0.00919342041015625, 0.0006189346313476562, -0.0209503173828125, -0.018890380859375, -0.016876220703125, 0.028045654296875, -0.0088958740234375, 0.005069732666015625, 0.0007548332214355469, 0.0019378662109375, 0.0214080810546875, -0.009033203125, -0.004436492919921875, 0.019683837890625, 0.04656982421875, -0.0169677734375, -0.0233612060546875, -0.026031494140625, 0.001087188720703125, -0.026580810546875, -0.01092529296875, -0.0014820098876953125, -0.00939178466796875, -0.01502227783203125, -0.0175018310546875, 0.0197906494140625, 0.09039306640625, -0.0203704833984375, -0.002300262451171875, -0.042236328125, -0.0027713775634765625, -0.03753662109375, -0.043548583984375, -0.006175994873046875, 0.0902099609375, 0.014129638671875, -0.01496124267578125, 0.00395965576171875, -0.01444244384765625, 0.0242462158203125, -0.024658203125, -0.0394287109375, -0.01367950439453125, -0.0165252685546875, -0.0012874603271484375, -0.06793212890625, -0.0148773193359375, -0.0149688720703125, -0.01322174072265625, 0.0035552978515625, 0.036834716796875, -0.01428985595703125, -0.0667724609375, 0.00804901123046875, -0.0252532958984375, -0.0330810546875, -0.00592041015625, 0.036041259765625, -0.00806427001953125, -0.0367431640625, -0.0032253265380859375, 0.032928466796875, 0.0142059326171875, 0.0276641845703125, -0.01171875, 0.024658203125, 0.033203125, 0.0230560302734375, -0.0093536376953125, 0.0197906494140625, -0.00653839111328125, 0.00937652587890625, 0.0027217864990234375, -0.057861328125, 0.0227813720703125, 0.0135955810546875, 0.002166748046875, -0.0199737548828125, -0.057281494140625, -0.0140838623046875, -0.0246124267578125, 0.048004150390625, 0.0183868408203125, -0.034515380859375, -0.0012454986572265625, 0.06561279296875, -0.037506103515625, -0.055938720703125, -0.051971435546875, 0.01459503173828125, -0.0166015625, 0.0179443359375, -0.0169830322265625, -0.040557861328125, 0.01806640625, -0.0716552734375, -0.006946563720703125, 0.0286865234375, -0.0172576904296875, 0.0232696533203125, -0.004352569580078125, 0.0231170654296875, 0.043182373046875, 0.0118255615234375, 0.02984619140625, 0.01410675048828125, -0.021148681640625, 0.03460693359375, -0.0075225830078125, -0.041229248046875, -0.03466796875, 0.0282135009765625, -0.0233306884765625, -0.07269287109375, 0.03387451171875, 0.00923919677734375, 0.075927734375, 0.01068115234375, 0.00792694091796875, 0.036041259765625, 0.0033893585205078125, 0.0316162109375, 0.002140045166015625, -0.0338134765625, -0.021575927734375, -0.01233673095703125, 0.04486083984375, -0.0406494140625, -0.01354217529296875, -0.020233154296875, 0.01299285888671875, -0.00039076805114746094, 0.00868988037109375, -0.04571533203125, 0.021575927734375, -0.0191802978515625, 0.04486083984375, 0.06060791015625, 0.03216552734375, -0.0041656494140625, 0.055938720703125, -0.035919189453125, -0.052764892578125, -0.07220458984375, 0.0128326416015625, -0.0130767822265625, 0.040557861328125, -0.01189422607421875, 0.03887939453125, 0.0019369125366210938, -0.038177490234375, -0.01280975341796875, 0.007678985595703125, 0.0406494140625, -0.01332855224609375, -0.0199432373046875, -0.013458251953125, 0.04241943359375, -0.008636474609375, -0.0067596435546875, 0.03692626953125, -0.00806427001953125, -0.0079345703125, -0.0345458984375, -0.01396942138671875, -0.003864288330078125, -0.05169677734375, 0.01239776611328125, 0.0426025390625, -0.00408935546875, -0.021636962890625, -0.007289886474609375, 0.09844970703125, 0.030059814453125, -0.031494140625, -0.01190185546875, 0.060882568359375, -0.0290374755859375, -0.028961181640625, -0.029571533203125, -0.0091552734375, 0.04754638671875, -0.06231689453125, -0.02410888671875, 0.0731201171875, 0.0418701171875, 0.050567626953125, -0.07293701171875, 0.015869140625, -0.003871917724609375, -0.0233612060546875, -0.052459716796875, -0.008331298828125, -0.03759765625, -0.00447845458984375, 0.00621795654296875, 0.01201629638671875, -0.0150909423828125, -0.0506591796875, 0.0294342041015625, 0.058197021484375, -0.01043701171875, 0.032562255859375, -0.005985260009765625, -0.0291290283203125, -0.038543701171875, 0.0032444000244140625, -0.001964569091796875, 0.00122833251953125, -0.0219573974609375, -0.00804901123046875, -0.01425933837890625, -0.0098724365234375, 0.01351165771484375, -0.0399169921875, 0.011199951171875, -0.037567138671875, 0.022796630859375, -0.0230560302734375, 0.0034542083740234375, 0.0256195068359375, -0.01378631591796875, 0.04302978515625, 0.02288818359375, -0.0220794677734375, -0.04608154296875, -0.035064697265625, 0.0274505615234375, -0.038055419921875, 0.040924072265625, 0.071044921875, 0.007579803466796875, 0.00101470947265625, -0.0035037994384765625, 0.0265045166015625, 0.0098724365234375, -0.00921630859375, -0.0106658935546875, 0.008087158203125, -0.033355712890625, 0.038116455078125, 0.021942138671875, 0.01178741455078125, -0.0055084228515625, -0.043243408203125, -0.01189422607421875, 0.00897979736328125, -0.07183837890625, -0.06475830078125, -0.048370361328125, -0.0279388427734375, -0.01387786865234375, 0.0019044876098632812, -0.0102996826171875, 0.014495849609375, 0.00394439697265625, 0.011505126953125, -0.0382080078125, 0.00897216796875, -0.01453399658203125, 0.0003883838653564453, -0.0160369873046875, 0.055877685546875, -0.005611419677734375, 0.005260467529296875, -0.00479888916015625, 0.051910400390625, 0.0120391845703125, -0.057281494140625, 0.01104736328125, 0.0577392578125, -0.01303863525390625, 0.01494598388671875, 0.0169830322265625, -0.04150390625, -0.0173187255859375, 0.01430511474609375, 0.00931549072265625, -0.0165252685546875, -0.0006079673767089844, -0.01544189453125, -0.0157318115234375, -0.046173095703125, -0.0211181640625, 0.002658843994140625, 0.01326751708984375, -0.041473388671875, -0.0176544189453125, -0.060516357421875, -0.005054473876953125, 0.01349639892578125, -0.040802001953125, -0.0263824462890625, 0.005523681640625, -0.026763916015625, 0.01401519775390625, -0.0418701171875, -0.00160980224609375, -0.00478363037109375, -0.002696990966796875, 0.01424407958984375, -0.0306396484375, -0.01287841796875, -0.00672149658203125, -0.0075531005859375, -0.04583740234375, -0.044097900390625, 0.039154052734375, -0.020782470703125, 0.0214385986328125, -0.01074981689453125, 0.0292205810546875, -0.0023365020751953125, -0.0301666259765625, 0.00908660888671875, -0.04644775390625, -0.005733489990234375, -0.004978179931640625, 0.00797271728515625, 0.0271759033203125, 0.06756591796875, -0.055206298828125, -0.0157470703125, 0.01044464111328125, 0.0087738037109375, -0.008636474609375, -0.01153564453125, -0.04791259765625, -0.0204620361328125, -0.08392333984375, -0.034210205078125, -0.0295257568359375, -0.028564453125, -0.00759124755859375, 0.030029296875, -0.043243408203125, -0.038055419921875, 0.0399169921875, -0.052459716796875, -0.00036716461181640625, 0.02716064453125, -0.01470184326171875, 0.0012454986572265625, -0.015411376953125, -0.044525146484375, -0.04638671875, -0.0142822265625, -0.0143280029296875, 0.048492431640625, 0.0274200439453125, -0.03466796875, 0.005855560302734375, 0.044403076171875, 0.0158538818359375, 0.004375457763671875, -0.013275146484375, 0.0110626220703125, 0.0248565673828125, -0.028167724609375, -0.0179901123046875, -0.0199432373046875, -0.035247802734375, -0.0011501312255859375, -0.0117645263671875, 0.0175323486328125, 0.0012645721435546875, -0.01039886474609375, 0.038238525390625, -0.0191497802734375, -0.071044921875, -0.027069091796875, -0.00586700439453125, 0.021728515625, -0.00681304931640625, 0.007694244384765625, -0.020172119140625, -0.0615234375, -0.026214599609375, 0.01197052001953125, -0.052978515625, 0.041778564453125, -0.006561279296875, 0.026153564453125, -0.01082611083984375, -0.06903076171875, -0.0099334716796875, 0.04150390625, 0.01070404052734375, 0.0294647216796875, 0.0168304443359375, -0.037353515625, 0.05877685546875, 0.00789642333984375, 0.00992584228515625, -0.020904541015625, 0.025543212890625, -0.01617431640625, -0.0716552734375, 0.056488037109375, -0.0288848876953125, -0.0004413127899169922, -0.010101318359375, -0.02484130859375, 0.0008544921875, -0.03948974609375, 0.028594970703125, 0.005390167236328125, 0.046112060546875, -0.032073974609375, -0.0038299560546875, -0.010650634765625, 0.0176239013671875, 0.01513671875, 0.01139068603515625, 0.017425537109375, -0.0254669189453125, 0.0198211669921875, 0.01509857177734375, 0.053375244140625, 0.047149658203125, -0.011993408203125, 0.0281982421875, 0.072265625, 0.0030517578125, 0.0227813720703125, -0.003932952880859375, 0.024688720703125, 0.00865936279296875, -0.05096435546875, -0.007732391357421875, -0.0009207725524902344, 0.057891845703125, 0.003940582275390625, 0.0124664306640625, 0.01678466796875, 0.0282745361328125, -0.014190673828125, -0.00945281982421875, 0.0726318359375, -0.04180908203125, -0.0294036865234375, 0.014739990234375, -0.01271820068359375, -0.0050048828125, -0.016571044921875, 0.051666259765625, -0.0230560302734375, 0.0285797119140625, -0.00453948974609375, 0.04425048828125, 0.03076171875, 0.017822265625, -0.0117950439453125, 0.031341552734375, 0.00815582275390625, -0.0010423660278320312, 0.00986480712890625, 0.01049041748046875, 0.02288818359375, 0.00948333740234375, -0.01105499267578125, 0.0270538330078125, 0.003284454345703125, -0.01201629638671875, 0.008636474609375, -0.024444580078125, 0.09112548828125, 0.007061004638671875, -0.073974609375, -0.061920166015625, 0.0090179443359375, 0.062408447265625, -0.01336669921875, -0.0004639625549316406, 0.034271240234375, 0.00342559814453125, 0.04901123046875, -0.0147857666015625, 0.017730712890625, -0.0060272216796875, -0.01320648193359375, -0.04345703125, -0.0007371902465820312, 0.018310546875, -0.06414794921875, -0.0677490234375, 0.00926971435546875, 0.0005087852478027344, 0.01116180419921875, -0.0019159317016601562, 0.00284576416015625, -0.031707763671875, -0.0159759521484375, -0.03973388671875, -0.00415802001953125, 0.06500244140625, 0.027099609375, -0.0694580078125, -0.0027713775634765625, -0.04534912109375, -0.006908416748046875, -0.045379638671875, -0.0616455078125, -0.03778076171875, 0.004913330078125, 0.030029296875, 0.01007080078125, 0.0210418701171875, -0.01318359375, -0.03753662109375, 0.03887939453125, 0.03668212890625, 0.059295654296875, 0.0268096923828125, 0.061248779296875, -0.0052337646484375, 0.072265625, 0.03411865234375, 0.0321044921875, -0.0298309326171875, -0.041290283203125, 0.0321044921875, 0.00682830810546875, -0.01561737060546875, -0.011077880859375, -0.000682830810546875, -0.0574951171875, -0.011016845703125, -0.033966064453125, 0.025238037109375, 0.006580352783203125, 0.0096282958984375, -0.0145416259765625, 0.009124755859375, -0.0095367431640625, 0.006717681884765625, 0.0206298828125, 0.0030422210693359375, -0.00653839111328125, -0.00012290477752685547, -0.032470703125, 0.0107574462890625, 0.030731201171875, 0.01297760009765625, -0.02215576171875, -0.06109619140625, 0.09307861328125, 0.1146240234375, 0.0048065185546875, 0.0614013671875, 0.01702880859375, 0.005218505859375, 0.0121917724609375, 0.04681396484375, -0.0142822265625, -0.035675048828125, 0.037994384765625, 0.01406097412109375, -0.01617431640625, 0.03033447265625, -0.0189971923828125, -0.01415252685546875, 0.08685302734375, 0.061767578125, -0.09588623046875, -0.007495880126953125, 0.0247955322265625, 0.004581451416015625, -0.01666259765625, -0.026092529296875, -0.0248565673828125, -0.040252685546875, 0.056396484375, 0.01251220703125, -0.024658203125, 0.02862548828125, 0.019439697265625, -0.004817962646484375, 0.007350921630859375, 0.050140380859375, 0.009796142578125, -0.018524169921875, -0.0557861328125, 0.013427734375, -0.0389404296875, -0.007534027099609375, 0.0263519287109375, 0.003047943115234375, -0.0207366943359375, -0.057403564453125, -0.00896453857421875, 0.0156402587890625, -0.03643798828125, 0.0005497932434082031, 0.0190887451171875, 0.01507568359375, 0.0343017578125, -0.00794219970703125, -0.00205230712890625, 0.007755279541015625, -0.02032470703125, 0.0126495361328125, -0.02825927734375, -0.00432586669921875, -0.0019817352294921875, -0.06634521484375, 0.00616455078125, -0.025909423828125, -0.0023860931396484375, -0.01168060302734375, -0.06787109375, 0.09613037109375, -0.038909912109375, -0.0223236083984375, -0.031402587890625, -0.0166168212890625, 0.021636962890625, -0.00971221923828125, 0.037506103515625, -0.04522705078125, -0.01029205322265625, 0.00530242919921875, -0.03399658203125, -0.04547119140625, -0.038482666015625, -0.043243408203125, 0.0679931640625, 0.020965576171875, -0.01401519775390625, -0.011932373046875, 0.036712646484375, -0.04644775390625, 0.004787445068359375, -0.0294952392578125, 0.054351806640625, 0.048431396484375, 0.01415252685546875, -0.045196533203125, -0.019683837890625, -0.0128021240234375, 0.0252227783203125, 0.0060272216796875, 0.01258087158203125, -0.019287109375, -0.001110076904296875, -0.0170135498046875, -0.01251220703125, -0.032501220703125, 0.056304931640625, -0.02685546875, -0.0110626220703125, -0.0028133392333984375, -0.01959228515625, 0.01824951171875, -0.01433563232421875, -0.034576416015625, 0.019561767578125, 0.0177154541015625, 0.01690673828125, 0.041290283203125, 0.00435638427734375, -0.011932373046875, 0.0185699462890625, 0.0290679931640625, -0.05859375, -0.01499176025390625, 0.0335693359375, 0.0181121826171875, -0.0267181396484375, 0.0213470458984375, -0.0298309326171875, 0.044525146484375, 0.01629638671875, -0.001964569091796875, 0.007293701171875, 0.0048980712890625, -0.0164337158203125, 0.042694091796875, 0.003963470458984375, 0.04400634765625, -0.01617431640625, 0.0192718505859375, 0.04022216796875, 0.0496826171875, -0.005130767822265625, -0.019439697265625, 0.011505126953125, 0.052642822265625, -0.005367279052734375, -0.0231781005859375, 0.00797271728515625, -0.00974273681640625, 0.0096435546875, 0.0125579833984375, 0.043212890625, -0.0156707763671875, -0.0021076202392578125, -0.00843048095703125, -0.0247344970703125, -0.013519287109375, 0.04132080078125, -0.0004062652587890625, -0.016204833984375, 0.019073486328125, -0.039093017578125, -0.01152801513671875, 0.005001068115234375, 0.005298614501953125, 0.02239990234375, -0.0189971923828125, 0.013519287109375, -0.030364990234375, 0.00385284423828125, -0.0185089111328125, -0.0147247314453125, -0.02032470703125, 0.038177490234375, -0.060150146484375, -0.0012731552124023438, 0.006900787353515625, 0.049560546875, 0.00772857666015625, -0.0210723876953125, 0.0204315185546875, 0.032135009765625, -0.003833770751953125, -0.00910186767578125, -0.003917694091796875, -0.00598907470703125, -0.00008779764175415039, -0.04534912109375, -0.00982666015625, -0.004329681396484375, -0.0016384124755859375, 0.02392578125, 0.00257110595703125, 0.00460052490234375, -0.0193939208984375, -0.0411376953125, 0.00563812255859375, -0.045623779296875, 0.049102783203125, 0.0013027191162109375, -0.005847930908203125, 0.00556182861328125, -0.01140594482421875, -0.009857177734375, 0.00853729248046875, -0.0207977294921875, 0.0055999755859375, 0.02545166015625, -0.0226287841796875, 0.0399169921875, 0.06402587890625, 0.061279296875, -0.0307159423828125, -0.04644775390625, 0.0134429931640625, -0.0401611328125, 0.0491943359375, 0.033355712890625, 0.004673004150390625, -0.003574371337890625, -0.0080718994140625, 0.032928466796875, 0.0171966552734375, 0.07025146484375, -0.00946807861328125, 0.038177490234375, -0.0083770751953125, 0.014312744140625, -0.045623779296875, -0.022674560546875, 0.02203369140625, -0.025604248046875, -0.01509857177734375, -0.0115966796875, -0.09814453125, 0.0279693603515625, 0.023590087890625, -0.020660400390625, 0.0770263671875, 0.0025787353515625, -0.0139312744140625, -0.07269287109375, 0.0164642333984375, -0.00528717041015625, -0.060791015625, -0.0223388671875, 0.029144287109375, 0.0103302001953125, 0.08612060546875, 0.00756072998046875, 0.0272674560546875, -0.0122222900390625, -0.03662109375, -0.0091094970703125, -0.032318115234375, -0.050537109375, 0.01042938232421875, 0.04730224609375, -0.00250244140625, -0.0048370361328125, -0.0225982666015625, 0.04595947265625, -0.01552581787109375, 0.052642822265625, -0.003047943115234375, 0.07080078125, -0.01247406005859375, -0.006946563720703125, -0.019134521484375, -0.06280517578125, -0.009918212890625, 0.03875732421875, -0.00931549072265625, 0.0012540817260742188, 0.01152801513671875, -0.0120086669921875, -0.044464111328125, -0.0210418701171875, 0.01177215576171875, -0.041015625, -0.03948974609375, -0.06536865234375, 0.0377197265625, 0.0257110595703125, -0.0080108642578125, -0.05133056640625, 0.027252197265625, -0.0258331298828125, 0.0908203125, -0.026123046875, 0.03759765625, -0.003139495849609375, -0.01287078857421875, -0.054107666015625, -0.004405975341796875, -0.029022216796875, 0.003421783447265625, -0.0190582275390625, -0.0186920166015625, 0.0220184326171875, 0.0007472038269042969, 0.01192474365234375, -0.0518798828125, -0.0269317626953125, 0.0101470947265625, -0.020965576171875, -0.031707763671875, -0.0017995834350585938, 0.0053558349609375, 0.01161956787109375, -0.01222991943359375, -0.00649261474609375, -0.01213836669921875, -0.00830841064453125, 0.0240631103515625, -0.0038242340087890625, 0.03131103515625, -0.028228759765625, -0.08575439453125, 0.0487060546875, -0.005825042724609375, -0.0399169921875, 0.0318603515625, 0.006359100341796875, -0.022064208984375, 0.02392578125, 0.024444580078125, -0.052398681640625, 0.0167999267578125, 0.0113525390625, 0.037109375, -0.025787353515625, 0.05908203125, -0.0008020401000976562, -0.004268646240234375, 0.0299072265625, 0.039093017578125, 0.005222320556640625, -0.05474853515625, -0.0126800537109375, 0.035308837890625, 0.026611328125, -0.0236358642578125, 0.01274871826171875, 0.051177978515625, 0.0135650634765625, -0.00848388671875, -0.043701171875, -0.01351165771484375, -0.0154876708984375, 0.057586669921875, 0.029388427734375, 0.0178070068359375, -0.03436279296875, -0.011138916015625, -0.02197265625, -0.0308990478515625, -0.019287109375, 0.01296234130859375, -0.052215576171875, -0.003910064697265625, 0.004985809326171875, -0.01025390625, 0.0117340087890625, 0.0290985107421875, -0.019500732421875, 0.00856781005859375, 0.027008056640625, -0.00830841064453125, -0.058807373046875, -0.07049560546875, 0.03839111328125, -0.0289459228515625, -0.006412506103515625, 0.005077362060546875, 0.0360107421875, 0.01021575927734375, 0.0297698974609375, 0.0083465576171875, -0.0347900390625, -0.0142364501953125, 0.0209503173828125, -0.0067596435546875, 0.036773681640625, -0.00846099853515625, -0.032073974609375, -0.0065155029296875, 0.027313232421875, 0.00641632080078125, 0.03619384765625, -0.00440216064453125, 0.00020551681518554688, 0.003849029541015625, 0.01001739501953125, -0.01003265380859375, 0.07208251953125, -0.01044464111328125, 0.042572021484375, -0.00826263427734375, -0.01349639892578125, 0.0011968612670898438, -0.01318359375, 0.01214599609375, 0.00824737548828125, 0.0577392578125, -0.01727294921875, 0.0239105224609375, -0.032562255859375, 0.03857421875, 0.012359619140625 ]
3fb9abd4255b2be92db5f054f97d03f4f0fdf5e0
Wordpress Stackexchange Q: Different back-end colour scheme for the different sites of a multisite Is it possible to have a different back-end colour scheme selected for the different sites of a multisite? i.e. "Sunrise" for Site A and "Midnight" for Site B If it's not possible for the user to setup could it be enforced through a plugin or the theme? A: Add to your functions.php file the following code, this will hook into your admin header section and will place the style you chose accordingly to the matching site. add_action('admin_enqueue_scripts', 'my_admin_background'); function my_admin_background() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/custom_script.css' ); global $blog_id; $color = ''; if ($blog_id == 1) { $color = 'white'; } elseif ($blog_id == 2) { $color = 'red'; } elseif ($blog_id == 3) { $color = 'blue'; } else { $color = 'yellow'; } $custom_css = "<style> body { background: $color } </style>"; wp_add_inline_style( 'custom-style', $custom_css ); }
Q: Different back-end colour scheme for the different sites of a multisite Is it possible to have a different back-end colour scheme selected for the different sites of a multisite? i.e. "Sunrise" for Site A and "Midnight" for Site B If it's not possible for the user to setup could it be enforced through a plugin or the theme? A: Add to your functions.php file the following code, this will hook into your admin header section and will place the style you chose accordingly to the matching site. add_action('admin_enqueue_scripts', 'my_admin_background'); function my_admin_background() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/custom_script.css' ); global $blog_id; $color = ''; if ($blog_id == 1) { $color = 'white'; } elseif ($blog_id == 2) { $color = 'red'; } elseif ($blog_id == 3) { $color = 'blue'; } else { $color = 'yellow'; } $custom_css = "<style> body { background: $color } </style>"; wp_add_inline_style( 'custom-style', $custom_css ); } A: A better way to do this would be to use the "get_user_option_admin_color" filter. This way you can choose an already created colour scheme which it seems like the question was asking for. add_filter('get_user_option_admin_color', 'change_admin_color'); function change_admin_color($result) { if(get_current_blog_id() == 2) { return "light"; } else { return "midnight"; } A: This is some sample code needed for making an individual color scheme. wp_admin_css_color( 'classic', __( 'Classic' ), admin_url( "css/colors-classic.css" ), array( '#07273E', '#14568A', '#D54E21', '#2683AE' ) ); Source file: wp-includes/general-template.php /** * Register color schemes. */ function add_colors() Example: Scroll down to find the color scheme that you duplicated, and copy all the code, paste it at the bottom of that function, and give it your custom color scheme name. In the end, the bottom two options (before the function is closed) should look something like this: wp_admin_css_color( 'seashore', __( 'Seashore', 'admin_schemes' ), plugins_url( "seashore/colors$suffix.css", __FILE__ ), array( '#F8F6F1', '#d5cdad', '#7D6B5C', '#456a7f' ), array( 'base' => '#533C2F', 'focus' => '#F8F6F1', 'current' => '#F8F6F1' ) ); wp_admin_css_color( 'matt', __( 'Matt', 'admin_schemes' ), plugins_url( "matt/colors$suffix.css", __FILE__ ), array( '#1F2C39', '#2c3e50', '#1abc9c', '#f39c12' ), array( 'base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff' ) );
wordpress
{ "language": "en", "length": 345, "provenance": "stackexchange_00019.jsonl.gz:446593", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152231" }
[ 0.0308990478515625, 0.0171966552734375, -0.0020389556884765625, -0.03619384765625, 0.018218994140625, -0.0169219970703125, 0.0032215118408203125, -0.032958984375, -0.0220184326171875, -0.004726409912109375, -0.015838623046875, 0.016448974609375, -0.05499267578125, -0.0221099853515625, 0.0179443359375, -0.04461669921875, 0.054901123046875, -0.02484130859375, 0.0248260498046875, 0.006496429443359375, 0.0032558441162109375, 0.03863525390625, -0.00528717041015625, 0.04168701171875, 0.03375244140625, -0.0615234375, 0.025146484375, 0.0149688720703125, 0.0298309326171875, 0.0034027099609375, 0.029205322265625, -0.00989532470703125, 0.032318115234375, -0.01215362548828125, -0.01110076904296875, -0.044403076171875, 0.0230865478515625, -0.0213165283203125, -0.020660400390625, 0.034820556640625, 0.028106689453125, -0.0252838134765625, 0.025390625, 0.025115966796875, 0.014007568359375, -0.041748046875, 0.061553955078125, -0.036163330078125, 0.00725555419921875, -0.04144287109375, -0.003875732421875, -0.0281829833984375, 0.019683837890625, -0.0190277099609375, -0.030548095703125, -0.0169830322265625, 0.00786590576171875, -0.00021755695343017578, 0.0439453125, -0.036865234375, -0.040740966796875, -0.03155517578125, 0.033294677734375, -0.025177001953125, -0.00945281982421875, 0.01493072509765625, 0.00765228271484375, 0.005062103271484375, -0.05657958984375, -0.03387451171875, 0.01312255859375, -0.04486083984375, 0.0107879638671875, -0.0198516845703125, -0.03192138671875, 0.031890869140625, -0.0240936279296875, 0.0140838623046875, 0.031829833984375, -0.0455322265625, -0.0270233154296875, -0.01332855224609375, -0.0285491943359375, -0.06396484375, 0.0439453125, -0.0122222900390625, -0.00812530517578125, 0.0128021240234375, -0.03564453125, -0.01190185546875, -0.0240631103515625, -0.01788330078125, -0.037841796875, 0.00872039794921875, 0.0003459453582763672, -0.0306854248046875, 0.01374053955078125, 0.06610107421875, -0.0144500732421875, 0.015533447265625, -0.0181427001953125, -0.011688232421875, 0.003467559814453125, -0.0439453125, 0.00732421875, 0.020538330078125, 0.003871917724609375, 0.022674560546875, 0.04107666015625, 0.031829833984375, 0.0065765380859375, 0.0231781005859375, -0.006412506103515625, -0.0154571533203125, -0.033966064453125, -0.01320648193359375, -0.03350830078125, -0.0023059844970703125, 0.00931549072265625, -0.0321044921875, 0.0036449432373046875, 0.04949951171875, 0.020538330078125, -0.03558349609375, -0.01995849609375, -0.01110076904296875, -0.004734039306640625, -0.07135009765625, -0.033447265625, 0.009765625, -0.059234619140625, 0.021026611328125, 0.11090087890625, 0.0335693359375, 0.0251007080078125, -0.04345703125, 0.042755126953125, 0.039398193359375, -0.019561767578125, 0.0240020751953125, 0.025665283203125, -0.0557861328125, -0.059844970703125, 0.00997161865234375, 0.0139007568359375, 0.025665283203125, 0.0268707275390625, 0.0152740478515625, -0.01171112060546875, -0.07061767578125, 0.0665283203125, -0.060394287109375, -0.0017709732055664062, 0.0274200439453125, -0.02801513671875, -0.021881103515625, 0.004486083984375, -0.01117706298828125, 0.007106781005859375, -0.02044677734375, 0.00518035888671875, -0.00846099853515625, 0.0265960693359375, 0.0235137939453125, 0.020233154296875, -0.0004792213439941406, -0.0017366409301757812, 0.008270263671875, 0.019744873046875, -0.01424407958984375, -0.01010894775390625, -0.01551055908203125, 0.038665771484375, -0.002040863037109375, -0.01416015625, 0.0269012451171875, 0.006221771240234375, 0.0357666015625, 0.02117919921875, -0.00991058349609375, -0.02557373046875, -0.047607421875, 0.060333251953125, -0.031524658203125, -0.0721435546875, 0.0194091796875, -0.0027065277099609375, 0.0887451171875, 0.04522705078125, 0.01548004150390625, 0.01131439208984375, -0.03875732421875, 0.0229949951171875, 0.005237579345703125, -0.0209808349609375, -0.0264739990234375, -0.034698486328125, 0.01617431640625, -0.0266571044921875, -0.01055908203125, -0.00252532958984375, -0.003566741943359375, 0.0159454345703125, 0.01708984375, -0.0014944076538085938, 0.02899169921875, -0.0191497802734375, 0.0201568603515625, -0.0097198486328125, 0.003276824951171875, 0.00982666015625, 0.01123046875, 0.00896453857421875, -0.0859375, -0.0267791748046875, 0.03839111328125, 0.015960693359375, 0.013885498046875, 0.0224151611328125, -0.0090179443359375, 0.057708740234375, -0.004253387451171875, 0.03179931640625, 0.01053619384765625, 0.0496826171875, -0.0078125, -0.0243072509765625, -0.018341064453125, 0.023468017578125, 0.01280975341796875, -0.031280517578125, 0.041961669921875, 0.060760498046875, 0.066162109375, 0.01042938232421875, 0.0172882080078125, 0.06866455078125, -0.06842041015625, -0.0193023681640625, 0.02008056640625, 0.04541015625, 0.01081085205078125, -0.0267486572265625, -0.044281005859375, 0.044219970703125, 0.0164337158203125, 0.03411865234375, -0.05535888671875, 0.0077972412109375, 0.037628173828125, -0.051666259765625, -0.004779815673828125, 0.04150390625, -0.0533447265625, 0.01032257080078125, 0.05560302734375, -0.016021728515625, -0.038299560546875, 0.02276611328125, -0.000009775161743164062, 0.0188446044921875, -0.00139617919921875, -0.02227783203125, 0.00867462158203125, 0.023101806640625, -0.03326416015625, 0.01192474365234375, -0.01261138916015625, -0.0097808837890625, -0.02288818359375, 0.0217742919921875, -0.037200927734375, -0.000011742115020751953, 0.0214996337890625, 0.05914306640625, 0.009735107421875, -0.0225677490234375, -0.0311279296875, 0.018646240234375, 0.0152740478515625, -0.018402099609375, 0.044647216796875, -0.06463623046875, -0.007537841796875, -0.00751495361328125, -0.08599853515625, -0.036529541015625, -0.0047454833984375, -0.016448974609375, -0.007747650146484375, 0.02972412109375, -0.008026123046875, -0.0291595458984375, -0.01081085205078125, 0.01024627685546875, -0.0264434814453125, 0.004833221435546875, -0.00959014892578125, 0.0242156982421875, -0.0216827392578125, 0.0015506744384765625, 0.043914794921875, 0.006500244140625, -0.00493621826171875, -0.019287109375, 0.0343017578125, -0.048370361328125, 0.0113525390625, 0.00823974609375, -0.0178985595703125, -0.03472900390625, 0.021148681640625, 0.0266265869140625, -0.06268310546875, 0.04998779296875, 0.013031005859375, -0.00606536865234375, -0.00402069091796875, -0.043914794921875, -0.015045166015625, -0.00846099853515625, -0.050628662109375, -0.0218353271484375, -0.03277587890625, -0.025543212890625, 0.01088714599609375, -0.0206146240234375, 0.0016813278198242188, -0.00844573974609375, -0.055572509765625, -0.01219940185546875, -0.07568359375, -0.062042236328125, -0.05816650390625, 0.034088134765625, -0.0031490325927734375, -0.004451751708984375, 0.07354736328125, 0.0195770263671875, -0.038726806640625, 0.0189666748046875, 0.0210113525390625, -0.005771636962890625, -0.005603790283203125, -0.022857666015625, -0.03765869140625, -0.007129669189453125, -0.01611328125, 0.007701873779296875, 0.01027679443359375, 0.01226043701171875, 0.0168914794921875, -0.0197296142578125, -0.000012278556823730469, -0.00711822509765625, 0.0231475830078125, 0.037689208984375, 0.005031585693359375, -0.001880645751953125, -0.03851318359375, -0.02996826171875, -0.00384521484375, -0.043121337890625, 0.0396728515625, 0.0168914794921875, -0.0181427001953125, 0.0024261474609375, 0.0286407470703125, 0.0252685546875, -0.03363037109375, -0.00620269775390625, -0.0277099609375, 0.04925537109375, 0.02520751953125, 0.0357666015625, -0.00994110107421875, -0.00945281982421875, -0.0174102783203125, 0.047576904296875, 0.00316619873046875, 0.020477294921875, -0.0185089111328125, 0.02215576171875, -0.04449462890625, -0.043731689453125, 0.01454925537109375, -0.0499267578125, 0.0357666015625, -0.041351318359375, -0.002567291259765625, -0.0163726806640625, 0.0777587890625, -0.061004638671875, 0.0030879974365234375, -0.007732391357421875, 0.0269775390625, -0.0380859375, -0.05279541015625, -0.030242919921875, 0.01044464111328125, -0.15625, 0.007762908935546875, -0.01461029052734375, -0.036041259765625, -0.017730712890625, 0.00070953369140625, -0.073486328125, -0.0687255859375, 0.0257110595703125, 0.060577392578125, -0.0234832763671875, 0.021728515625, -0.00954437255859375, 0.014068603515625, 0.0094146728515625, -0.002544403076171875, -0.06268310546875, -0.0197906494140625, -0.03759765625, 0.049713134765625, 0.02545166015625, -0.0020847320556640625, 0.0110931396484375, 0.04498291015625, 0.0003247261047363281, 0.0221405029296875, -0.0192413330078125, 0.01045989990234375, -0.011016845703125, -0.0430908203125, -0.023956298828125, -0.0330810546875, 0.007144927978515625, 0.01885986328125, -0.02581787109375, 0.052032470703125, -0.0159149169921875, -0.0055084228515625, 0.032257080078125, -0.03656005859375, -0.01824951171875, -0.01213836669921875, 0.0025501251220703125, -0.0016527175903320312, -0.0074920654296875, -0.0126953125, 0.01140594482421875, -0.0041656494140625, 0.03253173828125, 0.01337432861328125, -0.0167388916015625, -0.005405426025390625, 0.027252197265625, 0.011871337890625, -0.027191162109375, -0.007244110107421875, -0.0114593505859375, 0.02752685546875, -0.033111572265625, -0.0007719993591308594, -0.017730712890625, -0.028900146484375, 0.050567626953125, -0.0241851806640625, 0.002285003662109375, 0.00714111328125, 0.057586669921875, -0.00159454345703125, -0.0362548828125, 0.03594970703125, -0.00936126708984375, -0.029205322265625, 0.01410675048828125, -0.00827789306640625, -0.01238250732421875, -0.00586700439453125, 0.0179901123046875, 0.0236968994140625, -0.0228118896484375, -0.043701171875, -0.033355712890625, -0.0003170967102050781, -0.04949951171875, 0.048858642578125, 0.038848876953125, -0.01152801513671875, 0.021453857421875, 0.021728515625, -0.00402069091796875, 0.0032329559326171875, 0.007312774658203125, 0.00446319580078125, 0.00627899169921875, 0.0198211669921875, -0.017364501953125, 0.0009036064147949219, -0.01422119140625, 0.10174560546875, 0.0088653564453125, -0.034454345703125, -0.01523590087890625, -0.0114898681640625, -0.00022995471954345703, -0.006351470947265625, 0.0014581680297851562, 0.058349609375, 0.022003173828125, -0.01568603515625, -0.00992584228515625, -0.0121307373046875, -0.0172576904296875, -0.06280517578125, -0.005950927734375, 0.005283355712890625, -0.0222930908203125, 0.035797119140625, 0.0081634521484375, 0.01064300537109375, 0.0251007080078125, -0.01076507568359375, -0.00603485107421875, 0.00962066650390625, 0.0027713775634765625, -0.00981903076171875, 0.037017822265625, 0.003154754638671875, -0.00843048095703125, 0.07037353515625, -0.0039215087890625, 0.03192138671875, 0.0177459716796875, 0.019775390625, 0.028839111328125, -0.01203155517578125, -0.008087158203125, -0.044769287109375, -0.0091094970703125, 0.035614013671875, 0.00720977783203125, -0.034942626953125, -0.01776123046875, 0.00601959228515625, 0.025787353515625, -0.00893402099609375, -0.0184478759765625, 0.029937744140625, -0.023223876953125, 0.005710601806640625, -0.0022735595703125, -0.03338623046875, -0.00762939453125, 0.01184844970703125, -0.061126708984375, -0.0171966552734375, 0.00887298583984375, -0.049652099609375, -0.03485107421875, 0.0006847381591796875, -0.0184326171875, -0.027130126953125, 0.01451873779296875, 0.03070068359375, -0.0364990234375, -0.039459228515625, -0.0277099609375, -0.0021457672119140625, 0.042236328125, 0.004974365234375, 0.0004432201385498047, 0.0196990966796875, -0.03173828125, -0.01493072509765625, -0.0433349609375, -0.0582275390625, -0.0198974609375, -0.02557373046875, 0.0189666748046875, 0.01502227783203125, -0.0031528472900390625, -0.041900634765625, -0.04217529296875, 0.0322265625, 0.05474853515625, 0.055755615234375, -0.0240020751953125, 0.03887939453125, 0.0053253173828125, 0.056396484375, 0.006450653076171875, -0.0025653839111328125, -0.007320404052734375, -0.0155181884765625, -0.011688232421875, -0.07763671875, -0.0006375312805175781, 0.00799560546875, 0.01456451416015625, 0.07989501953125, 0.03961181640625, 0.023590087890625, 0.032318115234375, -0.00445556640625, 0.004947662353515625, -0.022979736328125, -0.0309295654296875, -0.02923583984375, 0.0318603515625, -0.01751708984375, 0.003582000732421875, 0.0238037109375, -0.0266265869140625, -0.0308990478515625, 0.0223236083984375, 0.006687164306640625, 0.034149169921875, -0.002468109130859375, -0.0841064453125, 0.0230560302734375, 0.031707763671875, 0.0262603759765625, 0.05999755859375, -0.01617431640625, 0.0229644775390625, 0.06304931640625, -0.006694793701171875, 0.0121917724609375, -0.0179901123046875, 0.00316619873046875, -0.021148681640625, 0.0250244140625, 0.006946563720703125, 0.00962066650390625, 0.015167236328125, 0.047088623046875, 0.039337158203125, -0.08203125, -0.0010471343994140625, -0.0205841064453125, 0.0005064010620117188, 0.050048828125, -0.01097869873046875, -0.017547607421875, -0.01549530029296875, 0.062469482421875, 0.0125885009765625, -0.0101318359375, 0.03997802734375, 0.01448822021484375, 0.00908660888671875, 0.005550384521484375, -0.0274810791015625, -0.01056671142578125, -0.02301025390625, -0.01042938232421875, -0.00041985511779785156, 0.0025501251220703125, 0.0211029052734375, -0.01177978515625, -0.0205078125, -0.04669189453125, -0.0386962890625, -0.037139892578125, -0.04931640625, -0.0262908935546875, 0.01119232177734375, 0.007293701171875, 0.029266357421875, 0.0616455078125, -0.014892578125, 0.01467132568359375, 0.0291748046875, 0.0035552978515625, 0.0223388671875, 0.017425537109375, 0.0298614501953125, -0.04669189453125, -0.0260467529296875, 0.005634307861328125, -0.057464599609375, -0.01416015625, 0.002170562744140625, 0.057769775390625, 0.033447265625, 0.002094268798828125, -0.02618408203125, 0.06439208984375, 0.038055419921875, -0.0296478271484375, 0.000576019287109375, 0.0184326171875, -0.09539794921875, -0.099609375, 0.0134124755859375, -0.08660888671875, -0.0027904510498046875, 0.0051116943359375, -0.0197906494140625, 0.05157470703125, -0.030303955078125, 0.02203369140625, 0.046875, 0.00659942626953125, -0.01971435546875, 0.0023822784423828125, -0.016754150390625, -0.007053375244140625, 0.007045745849609375, -0.0011472702026367188, -0.04119873046875, -0.00981903076171875, -0.0263671875, 0.03436279296875, -0.00250244140625, 0.003940582275390625, -0.048126220703125, -0.0021190643310546875, 0.026824951171875, 0.01462554931640625, 0.006221771240234375, 0.03863525390625, -0.02020263671875, 0.0166015625, -0.010528564453125, -0.036407470703125, 0.01010894775390625, -0.0208282470703125, -0.0576171875, 0.01219940185546875, 0.0013370513916015625, 0.0046539306640625, 0.00945281982421875, -0.0027313232421875, -0.053131103515625, 0.0029354095458984375, 0.053985595703125, -0.0347900390625, -0.01421356201171875, 0.0302886962890625, -0.0123291015625, -0.024627685546875, 0.007171630859375, -0.036102294921875, 0.039154052734375, -0.0224609375, -0.035552978515625, -0.020751953125, 0.0029239654541015625, -0.01247406005859375, -0.00016200542449951172, -0.035552978515625, 0.035064697265625, 0.0005311965942382812, -0.00696563720703125, 0.00029850006103515625, 0.0177459716796875, -0.01425933837890625, -0.00057220458984375, -0.0101470947265625, -0.007488250732421875, -0.00350189208984375, -0.004306793212890625, 0.01020050048828125, -0.007472991943359375, 0.01605224609375, -0.01227569580078125, 0.0277557373046875, -0.04156494140625, -0.035186767578125, -0.038665771484375, -0.002716064453125, 0.02960205078125, 0.025238037109375, -0.0067901611328125, -0.017974853515625, -0.007038116455078125, -0.01244354248046875, -0.06695556640625, 0.0214080810546875, 0.019287109375, 0.07379150390625, 0.020538330078125, 0.05987548828125, -0.001148223876953125, -0.036224365234375, -0.0361328125, 0.05224609375, 0.009368896484375, 0.0220947265625, -0.021240234375, -0.0099639892578125, -0.006404876708984375, 0.028594970703125, -0.0149688720703125, -0.004634857177734375, 0.026947021484375, 0.00655364990234375, -0.032623291015625, -0.03045654296875, -0.0010709762573242188, -0.03094482421875, 0.0304412841796875, -0.052581787109375, 0.02581787109375, -0.002643585205078125, -0.01128387451171875, 0.002864837646484375, -0.0186767578125, 0.048492431640625, -0.007080078125, 0.00325775146484375, 0.007671356201171875, 0.00638580322265625, -0.004825592041015625, 0.0234527587890625, -0.0201416015625, 0.02471923828125, -0.040985107421875, -0.003940582275390625, -0.015899658203125, -0.004337310791015625, 0.009735107421875, 0.0214996337890625, -0.015838623046875, 0.02349853515625, 0.01385498046875, -0.0313720703125, 0.02703857421875, 0.0203857421875, 0.0005383491516113281, 0.0203094482421875, 0.021881103515625, 0.0038967132568359375, -0.101318359375, -0.064453125, -0.036407470703125, 0.03680419921875, -0.004985809326171875, 0.0484619140625, 0.01139068603515625, 0.016265869140625, 0.05340576171875, 0.0256195068359375, 0.012725830078125, 0.00885009765625, 0.008941650390625, -0.0081329345703125, 0.0264892578125, -0.00881195068359375, -0.047607421875, 0.01378631591796875, 0.0128631591796875, -0.01389312744140625, 0.00829315185546875, 0.006595611572265625, 0.01007843017578125, 0.0079498291015625, 0.012237548828125, -0.02569580078125, -0.033966064453125, -0.058319091796875, -0.01416778564453125, 0.03924560546875, 0.019378662109375, -0.017333984375, 0.041656494140625, 0.021575927734375, -0.03155517578125, 0.033599853515625, -0.05157470703125, 0.08404541015625, 0.044219970703125, -0.0145721435546875, -0.02825927734375, 0.0210418701171875, 0.013671875, -0.0157318115234375, 0.0289306640625, 0.006931304931640625, 0.02301025390625, -0.01568603515625, 0.076904296875, 0.07757568359375, 0.0538330078125, -0.038482666015625, 0.007404327392578125, 0.1195068359375, -0.027862548828125, -0.0007781982421875, -0.0218963623046875, -0.020904541015625, -0.0214385986328125, 0.01299285888671875, 0.0187835693359375, 0.0251007080078125, 0.00850677490234375, -0.0033130645751953125, -0.01165008544921875, 0.052490234375, -0.01500701904296875, -0.0125579833984375, -0.0018854141235351562, -0.07568359375, 0.039825439453125, 0.004657745361328125, -0.008209228515625, -0.005859375, 0.0209503173828125, 0.00630950927734375, -0.01502227783203125, -0.040008544921875, 0.036651611328125, -0.01082611083984375, -0.02215576171875, 0.0291290283203125, 0.0237884521484375, 0.01654052734375, -0.03814697265625, -0.04132080078125, 0.0185394287109375, -0.093505859375, 0.010406494140625, 0.04595947265625, -0.017547607421875, -0.04693603515625, -0.0784912109375, -0.002666473388671875, -0.041595458984375, 0.004974365234375, 0.01129913330078125, -0.0230712890625, -0.015625, -0.04132080078125, -0.051666259765625, 0.0227508544921875, 0.0179901123046875, -0.0303192138671875, -0.0067596435546875, 0.00832366943359375, 0.015411376953125, -0.03692626953125, 0.0006265640258789062, -0.041290283203125, -0.01456451416015625, -0.007537841796875, 0.0243988037109375, 0.030914306640625, -0.00927734375, 0.032379150390625, -0.06365966796875, 0.034942626953125, 0.0083160400390625, 0.0185394287109375, 0.011749267578125, -0.0261688232421875, 0.0088653564453125, 0.0114288330078125, -0.032958984375, -0.05914306640625, 0.0030117034912109375, -0.0005168914794921875, -0.01474761962890625, -0.00433349609375, -0.0280914306640625, -0.00917816162109375, 0.09039306640625, 0.04425048828125, 0.021575927734375, -0.017974853515625, -0.0149383544921875, 0.00673675537109375, -0.031829833984375, -0.0384521484375, 0.0247802734375, -0.08917236328125, -0.037872314453125, 0.00679779052734375, -0.016021728515625, 0.026611328125, 0.0302581787109375, -0.020751953125, 0.0164337158203125, 0.054656982421875, 0.008636474609375, -0.0838623046875, -0.01517486572265625, 0.04010009765625, -0.0199432373046875, 0.00827789306640625, -0.00482940673828125, 0.0127105712890625, 0.0219879150390625, 0.04583740234375, -0.004695892333984375, -0.015869140625, -0.0243072509765625, 0.003597259521484375, -0.0164642333984375, 0.006183624267578125, -0.031646728515625, -0.0128631591796875, -0.016387939453125, -0.01104736328125, -0.01140594482421875, -0.02593994140625, 0.0211181640625, -0.01580810546875, -0.0167388916015625, 0.06451416015625, -0.0159149169921875, 0.020416259765625, -0.01366424560546875, 0.0009860992431640625, -0.0234527587890625, 0.01528167724609375, 0.01320648193359375, -0.00836944580078125, 0.00287628173828125, 0.01468658447265625, 0.03424072265625, -0.05413818359375, 0.042144775390625, -0.0263671875, 0.03564453125, 0.0247650146484375 ]
0ce5f326016580a14bb4dac80dca089b4748f387
Wordpress Stackexchange Q: How to add multiple images to a custom post type single post? I have created a custom post type and I need to add multiple images to every single post, so I can create a loop and use them in a slider. So far my search on Google etc. has turned up nothing. What's the cleanest way to add a metabox to the custom post type, so I can add images to the post and create a loop to display them in a slider/gallery? A: Thanks for the suggestions, guys. I did some more research, and found this - https://wordpress.org/plugins/attachments/ It's a great plugin that lets you attach images to the post without inserting them in the post and the images can be easily sorted with ajax, it's also quite modifiable and just what I needed, and works on custom post types. You just create a loop and you can use the images in any slider.
Q: How to add multiple images to a custom post type single post? I have created a custom post type and I need to add multiple images to every single post, so I can create a loop and use them in a slider. So far my search on Google etc. has turned up nothing. What's the cleanest way to add a metabox to the custom post type, so I can add images to the post and create a loop to display them in a slider/gallery? A: Thanks for the suggestions, guys. I did some more research, and found this - https://wordpress.org/plugins/attachments/ It's a great plugin that lets you attach images to the post without inserting them in the post and the images can be easily sorted with ajax, it's also quite modifiable and just what I needed, and works on custom post types. You just create a loop and you can use the images in any slider. A: Create a custom text area(post meta) field in your custom post type. Then Add multiple images using add media button of the editor . Now You can use all these uploaded images as slider in your post. Secondly you can add an extra field (post meta) to that support multiple file uploads that you can use to display as slider.
wordpress
{ "language": "en", "length": 218, "provenance": "stackexchange_00019.jsonl.gz:446636", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152380" }
[ 0.0985107421875, -0.0052947998046875, 0.031341552734375, -0.062744140625, 0.0278472900390625, -0.00801849365234375, 0.059600830078125, -0.031890869140625, -0.0182952880859375, 0.0288238525390625, -0.0092315673828125, 0.0181121826171875, -0.01837158203125, -0.021240234375, -0.0093231201171875, -0.01904296875, 0.037017822265625, -0.00238037109375, 0.054840087890625, 0.0017290115356445312, 0.01250457763671875, 0.0099029541015625, 0.035736083984375, 0.04046630859375, 0.0015316009521484375, 0.00650787353515625, 0.0261077880859375, -0.021759033203125, -0.0014095306396484375, -0.01983642578125, 0.007358551025390625, 0.0260162353515625, 0.01409912109375, 0.0161590576171875, -0.0173187255859375, 0.0135498046875, -0.006275177001953125, 0.009307861328125, 0.0036773681640625, 0.01739501953125, 0.0038547515869140625, -0.00170135498046875, 0.052734375, 0.0225982666015625, 0.0204925537109375, -0.0293121337890625, 0.00913238525390625, -0.07806396484375, 0.02911376953125, -0.041290283203125, 0.00865936279296875, -0.0251007080078125, 0.03485107421875, -0.0391845703125, -0.038848876953125, -0.039581298828125, -0.010894775390625, -0.011932373046875, 0.034698486328125, -0.039459228515625, -0.0390625, -0.021209716796875, 0.041473388671875, 0.004055023193359375, -0.0010519027709960938, 0.01047515869140625, -0.0091094970703125, 0.008819580078125, -0.061920166015625, -0.0274658203125, 0.0184326171875, -0.046875, 0.015350341796875, -0.06268310546875, 0.02520751953125, 0.0171966552734375, -0.03228759765625, -0.039306640625, 0.0221710205078125, -0.01513671875, 0.00548553466796875, -0.0020751953125, 0.00940704345703125, -0.0166168212890625, 0.0092315673828125, 0.00567626953125, -0.0214996337890625, 0.00025081634521484375, -0.01091766357421875, -0.0389404296875, -0.01064300537109375, -0.09112548828125, -0.02313232421875, 0.0254364013671875, 0.0042266845703125, -0.04095458984375, 0.0184783935546875, -0.01021575927734375, -0.00685882568359375, 0.007442474365234375, 0.0219268798828125, -0.05596923828125, 0.05963134765625, -0.0189208984375, 0.00994873046875, -0.0318603515625, -0.013916015625, 0.0160369873046875, 0.060546875, 0.047027587890625, -0.01910400390625, 0.048797607421875, 0.0200958251953125, 0.00513458251953125, -0.0186614990234375, -0.0166168212890625, -0.0169830322265625, 0.0279998779296875, -0.01171112060546875, 0.0227203369140625, -0.00287628173828125, 0.033935546875, 0.003875732421875, -0.0281219482421875, 0.00337982177734375, 0.005985260009765625, -0.00792694091796875, -0.05303955078125, 0.008575439453125, -0.00592041015625, -0.050018310546875, 0.01309967041015625, 0.07012939453125, 0.0562744140625, 0.038909912109375, -0.01453399658203125, -0.0015735626220703125, -0.0170440673828125, -0.0202178955078125, 0.0272369384765625, -0.007568359375, -0.0625, -0.00719451904296875, -0.00345611572265625, 0.01015472412109375, 0.036163330078125, -0.011566162109375, 0.0037822723388671875, 0.03509521484375, -0.040557861328125, -0.00463104248046875, -0.04266357421875, -0.002689361572265625, 0.0239715576171875, 0.006229400634765625, 0.01522064208984375, 0.02947998046875, -0.0145416259765625, 0.0135498046875, -0.0178375244140625, 0.0234527587890625, 0.025543212890625, 0.030303955078125, 0.03216552734375, 0.0274200439453125, -0.020355224609375, -0.0440673828125, 0.000598907470703125, 0.02374267578125, 0.00942230224609375, -0.0169830322265625, -0.005069732666015625, 0.006439208984375, -0.0088958740234375, -0.0279998779296875, 0.006313323974609375, 0.015411376953125, 0.03485107421875, -0.0106964111328125, 0.053924560546875, 0.01157379150390625, -0.04339599609375, 0.05096435546875, -0.0201873779296875, -0.063720703125, 0.0273284912109375, -0.007080078125, 0.04364013671875, 0.03814697265625, 0.004222869873046875, 0.03936767578125, 0.0023956298828125, -0.0269775390625, -0.0178070068359375, -0.007396697998046875, 0.013641357421875, -0.0164794921875, 0.004688262939453125, -0.01418304443359375, 0.00443267822265625, -0.04254150390625, -0.0244903564453125, 0.0037479400634765625, 0.015869140625, -0.0089263916015625, -0.0185546875, -0.0204315185546875, 0.01824951171875, -0.0548095703125, 0.01093292236328125, 0.03424072265625, -0.0276336669921875, 0.007625579833984375, -0.025665283203125, 0.004669189453125, -0.01224517822265625, -0.00597381591796875, 0.0146942138671875, -0.004150390625, 0.0128173828125, -0.0024013519287109375, -0.0323486328125, -0.0156097412109375, 0.028472900390625, 0.08868408203125, 0.0305328369140625, -0.047332763671875, -0.0196380615234375, 0.002780914306640625, 0.04107666015625, -0.137939453125, 0.0469970703125, -0.0226593017578125, -0.050994873046875, -0.040985107421875, -0.0117340087890625, -0.0006890296936035156, -0.042327880859375, 0.01038360595703125, 0.05987548828125, 0.0175628662109375, 0.0213623046875, 0.01554107666015625, 0.06036376953125, 0.050048828125, -0.003833770751953125, 0.00670623779296875, 0.02130126953125, -0.01824951171875, -0.004535675048828125, -0.01290130615234375, 0.0111846923828125, 0.031829833984375, -0.038116455078125, 0.035308837890625, 0.0292205810546875, -0.00147247314453125, -0.0031566619873046875, 0.0033779144287109375, 0.011444091796875, 0.00591278076171875, 0.01947021484375, -0.0275421142578125, 0.00665283203125, 0.041534423828125, 0.002643585205078125, 0.04901123046875, 0.03070068359375, -0.003986358642578125, 0.003997802734375, -0.004055023193359375, -0.03179931640625, 0.006649017333984375, -0.0019025802612304688, -0.0106353759765625, 0.038726806640625, -0.03240966796875, -0.0006504058837890625, 0.034423828125, 0.01129150390625, -0.01149749755859375, -0.01320648193359375, -0.0230560302734375, -0.0161895751953125, 0.02191162109375, -0.045928955078125, 0.01116943359375, -0.0156707763671875, -0.046234130859375, -0.03668212890625, 0.00969696044921875, 0.019622802734375, 0.005702972412109375, -0.003719329833984375, 0.0220947265625, -0.01021575927734375, 0.00370025634765625, -0.0654296875, 0.0748291015625, -0.046173095703125, 0.0677490234375, 0.0816650390625, -0.03997802734375, 0.062042236328125, -0.017425537109375, 0.037078857421875, -0.0252685546875, 0.03448486328125, 0.00518035888671875, -0.0804443359375, 0.0140533447265625, -0.0245361328125, 0.03497314453125, 0.034637451171875, 0.001102447509765625, -0.0242156982421875, 0.006748199462890625, 0.0303497314453125, -0.03582763671875, -0.051239013671875, 0.05572509765625, -0.05230712890625, -0.0267486572265625, -0.0181427001953125, -0.039825439453125, -0.00896453857421875, 0.020050048828125, -0.0194854736328125, -0.035736083984375, 0.0019016265869140625, 0.01285552978515625, -0.0307159423828125, -0.02130126953125, -0.0042877197265625, 0.0132293701171875, 0.004413604736328125, 0.00006091594696044922, 0.09136962890625, 0.01284027099609375, -0.0535888671875, 0.001338958740234375, 0.04541015625, -0.0107574462890625, 0.01488494873046875, 0.04132080078125, -0.0166778564453125, 0.0187225341796875, 0.0128936767578125, -0.0082550048828125, 0.04241943359375, -0.04425048828125, -0.0278472900390625, -0.01593017578125, 0.0191802978515625, -0.0020389556884765625, 0.00553131103515625, 0.0193634033203125, 0.031951904296875, 0.021331787109375, -0.02130126953125, 0.01253509521484375, -0.00809478759765625, -0.00415802001953125, -0.04571533203125, -0.01103973388671875, -0.00547027587890625, -0.04376220703125, 0.0281829833984375, 0.00803375244140625, 0.0111846923828125, 0.0102996826171875, -0.0182342529296875, 0.04095458984375, -0.0009708404541015625, 0.006488800048828125, -0.03570556640625, -0.01494598388671875, -0.028564453125, 0.043365478515625, -0.019134521484375, 0.01381683349609375, -0.0295867919921875, 0.0297393798828125, -0.05279541015625, -0.064453125, 0.047637939453125, -0.0219268798828125, 0.027435302734375, -0.049072265625, -0.042755126953125, -0.004852294921875, 0.091552734375, -0.06976318359375, -0.01029205322265625, 0.00870513916015625, 0.0028057098388671875, 0.00885772705078125, -0.0157928466796875, -0.049530029296875, -0.038177490234375, -0.037322998046875, 0.0046844482421875, 0.00470733642578125, -0.04205322265625, 0.00440216064453125, -0.01422882080078125, -0.0301971435546875, -0.025482177734375, 0.03460693359375, -0.03961181640625, 0.01145172119140625, 0.00954437255859375, 0.0036258697509765625, -0.020355224609375, -0.01163482666015625, -0.03082275390625, -0.10870361328125, -0.023956298828125, -0.01020050048828125, 0.087158203125, -0.022979736328125, 0.003509521484375, -0.0221099853515625, 0.061767578125, -0.0006241798400878906, 0.0217437744140625, -0.00952911376953125, 0.01154327392578125, 0.002468109130859375, -0.02490234375, -0.016326904296875, -0.037017822265625, -0.029632568359375, -0.036285400390625, 0.010894775390625, -0.003368377685546875, -0.01534271240234375, -0.025299072265625, -0.015960693359375, 0.016845703125, 0.01543426513671875, -0.0226287841796875, -0.0113372802734375, 0.04302978515625, -0.00598907470703125, -0.0117034912109375, -0.0487060546875, -0.0137786865234375, -0.009674072265625, -0.016876220703125, -0.0053253173828125, 0.038421630859375, 0.07470703125, 0.0203704833984375, 0.0157012939453125, -0.1436767578125, -0.0171051025390625, 0.041748046875, 0.004108428955078125, 0.032440185546875, 0.02545166015625, -0.014404296875, 0.0116424560546875, 0.01483917236328125, 0.00665283203125, -0.040283203125, 0.058135986328125, -0.0160980224609375, -0.0225372314453125, 0.0239105224609375, -0.0433349609375, 0.03790283203125, 0.006244659423828125, -0.00754547119140625, -0.0290985107421875, -0.0111846923828125, 0.043609619140625, -0.0025482177734375, 0.00710296630859375, -0.036590576171875, -0.0145263671875, -0.00447845458984375, -0.00638580322265625, 0.05450439453125, 0.021881103515625, -0.004802703857421875, 0.0215911865234375, 0.02081298828125, 0.012359619140625, -0.0031604766845703125, 0.0005288124084472656, 0.004180908203125, 0.0201263427734375, 0.044342041015625, 0.0130767822265625, -0.0021610260009765625, 0.00740814208984375, -0.0014429092407226562, 0.00461578369140625, -0.031402587890625, -0.04296875, 0.02117919921875, 0.0384521484375, 0.0011997222900390625, 0.0202484130859375, 0.035247802734375, 0.0049285888671875, -0.0041046142578125, -0.0005402565002441406, -0.016265869140625, -0.004917144775390625, -0.049835205078125, -0.015625, 0.028717041015625, -0.0191497802734375, 0.007129669189453125, -0.0025730133056640625, -0.00772857666015625, -0.00885009765625, -0.00323486328125, 0.012115478515625, 0.0390625, 0.02874755859375, 0.012969970703125, 0.0103607177734375, -0.034393310546875, 0.02862548828125, -0.0016164779663085938, -0.034698486328125, 0.0164794921875, 0.00795745849609375, 0.07171630859375, 0.002902984619140625, -0.030975341796875, -0.0007100105285644531, -0.05810546875, -0.0154876708984375, -0.004306793212890625, -0.01384735107421875, -0.036163330078125, -0.00954437255859375, -0.005481719970703125, -0.00400543212890625, -0.005039215087890625, -0.0152740478515625, 0.00649261474609375, 0.0034618377685546875, 0.04486083984375, -0.04229736328125, -0.00933837890625, 0.0302581787109375, 0.0343017578125, -0.07391357421875, -0.00814056396484375, -0.00893402099609375, -0.01082611083984375, -0.041839599609375, 0.013824462890625, -0.039520263671875, 0.005573272705078125, -0.0214691162109375, 0.01776123046875, -0.007625579833984375, -0.0153045654296875, 0.019500732421875, 0.026214599609375, 0.035858154296875, 0.0003364086151123047, 0.01332855224609375, -0.0272064208984375, -0.0267791748046875, -0.0184478759765625, 0.0185089111328125, -0.04193115234375, -0.0113372802734375, -0.028717041015625, 0.0131988525390625, 0.055755615234375, -0.0121002197265625, -0.0199432373046875, 0.00899505615234375, -0.024261474609375, -0.03216552734375, 0.043548583984375, -0.01248931884765625, 0.0088653564453125, 0.012969970703125, 0.06005859375, -0.01654052734375, -0.0218963623046875, 0.006610870361328125, -0.02532958984375, -0.01532745361328125, -0.052978515625, -0.0205535888671875, 0.026214599609375, 0.00957489013671875, 0.040252685546875, 0.00989532470703125, 0.0092315673828125, -0.0181427001953125, -0.031890869140625, -0.012481689453125, -0.017822265625, 0.041473388671875, 0.006938934326171875, 0.00493621826171875, 0.01904296875, -0.0024890899658203125, 0.048828125, 0.000033736228942871094, -0.02880859375, 0.02471923828125, 0.00476837158203125, 0.0247039794921875, 0.02020263671875, -0.01885986328125, 0.0160675048828125, 0.05511474609375, 0.0011491775512695312, 0.048614501953125, 0.006435394287109375, 0.015869140625, 0.034759521484375, 0.0133819580078125, -0.00862884521484375, 0.003490447998046875, 0.046661376953125, 0.0018711090087890625, -0.019866943359375, 0.029693603515625, -0.0251007080078125, 0.010406494140625, -0.022003173828125, 0.0433349609375, -0.0183258056640625, 0.0283966064453125, 0.0033588409423828125, 0.0243988037109375, 0.07989501953125, -0.01462554931640625, 0.00853729248046875, -0.0014362335205078125, 0.01393890380859375, 0.01535797119140625, -0.0265045166015625, 0.00548553466796875, -0.001544952392578125, -0.00031065940856933594, -0.0117034912109375, -0.004344940185546875, -0.0094146728515625, -0.06829833984375, -0.001094818115234375, 0.05731201171875, -0.049224853515625, -0.004467010498046875, -0.011566162109375, 0.0017499923706054688, -0.02862548828125, -0.06744384765625, -0.0065155029296875, -0.039581298828125, 0.0108642578125, 0.01427459716796875, 0.0142364501953125, 0.0232696533203125, 0.05609130859375, -0.0030918121337890625, 0.002613067626953125, 0.0200653076171875, -0.021636962890625, -0.0251922607421875, -0.0244140625, -0.005146026611328125, 0.0224609375, -0.052642822265625, 0.0131378173828125, -0.031280517578125, 0.0258941650390625, -0.01434326171875, -0.01212310791015625, 0.046173095703125, -0.0203704833984375, -0.01067352294921875, 0.0235595703125, 0.032806396484375, -0.0078125, 0.0303955078125, -0.0011167526245117188, -0.037261962890625, -0.0277099609375, 0.00930023193359375, -0.059783935546875, -0.0121307373046875, 0.003009796142578125, -0.08416748046875, 0.09564208984375, -0.03521728515625, 0.04278564453125, -0.0067596435546875, 0.036590576171875, 0.0011663436889648438, 0.01131439208984375, -0.00606536865234375, 0.0221099853515625, -0.04473876953125, 0.02630615234375, -0.05706787109375, -0.00688934326171875, -0.00859832763671875, 0.05560302734375, 0.052490234375, 0.0123443603515625, -0.0217742919921875, -0.0212249755859375, 0.057098388671875, 0.06695556640625, 0.01395416259765625, 0.010345458984375, 0.01285552978515625, 0.0074005126953125, 0.05352783203125, 0.02740478515625, 0.05364990234375, 0.016021728515625, -0.0261688232421875, 0.0176239013671875, -0.0016736984252929688, -0.0159912109375, 0.007965087890625, 0.00585174560546875, -0.01800537109375, -0.004161834716796875, 0.0084991455078125, -0.002803802490234375, 0.012542724609375, 0.0279388427734375, -0.005985260009765625, 0.020904541015625, 0.02239990234375, -0.00939178466796875, 0.030609130859375, -0.032745361328125, 0.043304443359375, 0.02099609375, 0.0144500732421875, 0.0109100341796875, 0.0277099609375, 0.036376953125, 0.032196044921875, -0.0169525146484375, 0.03826904296875, -0.01861572265625, -0.00452423095703125, -0.10015869140625, 0.0131683349609375, 0.050201416015625, 0.0487060546875, -0.04547119140625, -0.048736572265625, 0.00508880615234375, -0.01056671142578125, 0.01678466796875, -0.01580810546875, 0.010101318359375, -0.0218048095703125, 0.0062255859375, -0.037689208984375, 0.02020263671875, 0.0130157470703125, 0.045196533203125, -0.0178375244140625, 0.000008463859558105469, -0.05877685546875, -0.009490966796875, -0.0164642333984375, -0.0089874267578125, 0.004425048828125, 0.035675048828125, 0.01512908935546875, 0.047454833984375, -0.0198974609375, -0.0142822265625, -0.002490997314453125, 0.03070068359375, 0.0010595321655273438, 0.005229949951171875, -0.01800537109375, -0.05548095703125, 0.023529052734375, 0.035675048828125, 0.04833984375, 0.02960205078125, 0.0682373046875, 0.062225341796875, -0.01099395751953125, 0.0004811286926269531, 0.03192138671875, -0.0008378028869628906, -0.00307464599609375, -0.0267486572265625, 0.00872039794921875, 0.040771484375, -0.0164794921875, 0.001461029052734375, -0.03594970703125, 0.0648193359375, -0.0024051666259765625, 0.01849365234375, 0.0018186569213867188, -0.042205810546875, 0.033447265625, -0.024383544921875, 0.07733154296875, 0.0020008087158203125, -0.092041015625, -0.0251922607421875, -0.0164031982421875, -0.06689453125, 0.05755615234375, 0.056854248046875, -0.0479736328125, 0.01070404052734375, -0.007587432861328125, -0.01398468017578125, -0.0005884170532226562, -0.0013074874877929688, 0.0132598876953125, -0.00664520263671875, 0.0005526542663574219, -0.00772857666015625, -0.0758056640625, -0.0298614501953125, -0.0054779052734375, 0.0117340087890625, 0.01251220703125, 0.0242156982421875, 0.025634765625, 0.0142364501953125, 0.0009088516235351562, 0.009307861328125, -0.01020050048828125, 0.0232391357421875, -0.019744873046875, 0.013671875, 0.01474761962890625, -0.0203399658203125, 0.02227783203125, -0.005634307861328125, 0.05059814453125, -0.054473876953125, -0.04302978515625, 0.0145416259765625, 0.022705078125, -0.00115966796875, 0.04510498046875, -0.023712158203125, 0.0081024169921875, -0.05853271484375, -0.057769775390625, 0.07025146484375, 0.0213165283203125, 0.013214111328125, 0.010833740234375, 0.04217529296875, 0.003231048583984375, 0.023956298828125, -0.01049041748046875, 0.044891357421875, 0.037994384765625, -0.00499725341796875, -0.076416015625, -0.015106201171875, -0.006221771240234375, -0.03155517578125, 0.004993438720703125, 0.0447998046875, 0.00678253173828125, -0.04693603515625, 0.00131988525390625, 0.0165557861328125, 0.0302581787109375, -0.008636474609375, 0.00455474853515625, 0.0274810791015625, -0.0225372314453125, -0.0256805419921875, 0.03839111328125, -0.006610870361328125, -0.0545654296875, 0.005062103271484375, 0.01678466796875, -0.0220794677734375, 0.0161590576171875, -0.043487548828125, -0.0069732666015625, 0.0266265869140625, 0.01055908203125, -0.041412353515625, 0.0300140380859375, -0.0198516845703125, -0.01715087890625, -0.0011587142944335938, -0.054534912109375, 0.0297088623046875, 0.0816650390625, 0.0128173828125, -0.048797607421875, -0.00948333740234375, 0.034515380859375, -0.0360107421875, 0.038116455078125, 0.024932861328125, -0.05169677734375, 0.03509521484375, 0.026214599609375, 0.050628662109375, 0.06866455078125, 0.044525146484375, -0.00473785400390625, 0.0086822509765625, 0.014556884765625, -0.02685546875, -0.043792724609375, 0.0235443115234375, -0.027679443359375, -0.0131072998046875, -0.047607421875, 0.022674560546875, 0.03521728515625, -0.023345947265625, -0.07952880859375, 0.0703125, -0.0401611328125, -0.0245819091796875, -0.0791015625, 0.03076171875, 0.0011749267578125, 0.0232391357421875, -0.0273895263671875, -0.00421905517578125, 0.002655029296875, 0.04473876953125, -0.0013341903686523438, -0.01100921630859375, 0.059478759765625, -0.00994110107421875, -0.003017425537109375, -0.01047515869140625, 0.00513458251953125, -0.02850341796875, 0.01033782958984375, -0.0294036865234375, 0.033843994140625, 0.032989501953125, -0.045928955078125, -0.024017333984375, 0.0024433135986328125, -0.00617218017578125, -0.039276123046875, -0.039398193359375, -0.01177978515625, -0.0027008056640625, 0.06561279296875, 0.070556640625, 0.0242156982421875, -0.04681396484375, 0.056121826171875, -0.036468505859375, -0.03411865234375, -0.0171966552734375, -0.0106201171875, -0.019683837890625, -0.0187225341796875, 0.01102447509765625, -0.0125885009765625, -0.015411376953125, 0.0091552734375, -0.0323486328125, -0.005077362060546875, 0.022186279296875, 0.00658416748046875, -0.055023193359375, 0.0706787109375, 0.04150390625, -0.03179931640625, 0.032318115234375, -0.0198211669921875, -0.035125732421875, 0.047821044921875, -0.02191162109375, -0.012786865234375, -0.0084075927734375, -0.0177154541015625, 0.028167724609375, -0.017974853515625, 0.037994384765625, -0.04052734375, 0.0055084228515625, -0.003803253173828125, 0.0270538330078125, -0.0016241073608398438, 0.0218505859375, -0.034149169921875, 0.0667724609375, -0.0005955696105957031, 0.05224609375, -0.034149169921875, -0.005764007568359375, -0.03326416015625, 0.00843048095703125, -0.00617218017578125, 0.0272064208984375, 0.03778076171875, 0.002323150634765625, 0.01019287109375, -0.0076141357421875, -0.036590576171875, -0.00719451904296875, -0.012542724609375, 0.0229034423828125, -0.0269927978515625, 0.011199951171875 ]
c9cd1feda0433ad6fce4a488ef1ca45d0b65bd7d
Wordpress Stackexchange Q: Getting custom taxonomy from custom post type I have a custom post type called email_block and have a custom taxonomy called block_type. I need to loop through all the email blocks find out what custom taxonomy (block_type) they have. I know how get all the email block custom post types, it's finding the what block_type they belong to is what I'm struggling with. This is the code I have so far. I'm using a relationship field from advanced custom fields to filter what email blocks I want to display. <?php $posts = get_field('block_selector'); if( $posts ): ?> <ul> <?php foreach( $posts as $post): // variable must be called $post (IMPORTANT) ?> <?php setup_postdata($post); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span>Custom field from $post: <?php the_field('author'); ?></span> </li> <?php endforeach; ?> </ul> <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly endif; ?> A: You mean get_the_terms()? <?php $terms = get_the_terms( $post->ID, 'block_type' ); foreach($terms as $term) { echo $term->name; } ?> Or have I simplified this too much?
Q: Getting custom taxonomy from custom post type I have a custom post type called email_block and have a custom taxonomy called block_type. I need to loop through all the email blocks find out what custom taxonomy (block_type) they have. I know how get all the email block custom post types, it's finding the what block_type they belong to is what I'm struggling with. This is the code I have so far. I'm using a relationship field from advanced custom fields to filter what email blocks I want to display. <?php $posts = get_field('block_selector'); if( $posts ): ?> <ul> <?php foreach( $posts as $post): // variable must be called $post (IMPORTANT) ?> <?php setup_postdata($post); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span>Custom field from $post: <?php the_field('author'); ?></span> </li> <?php endforeach; ?> </ul> <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly endif; ?> A: You mean get_the_terms()? <?php $terms = get_the_terms( $post->ID, 'block_type' ); foreach($terms as $term) { echo $term->name; } ?> Or have I simplified this too much? A: this is best way to do it <?php $taxonomy = 'movies-category'; $terms = get_object_term_cache( $post->ID, $taxonomy ); $output = ''; foreach($terms as $term) { if(!empty($output)) $output .= ' | '; $output .= '<span class="cat"><a href="'. esc_url( get_term_link( $term )). '">'.$term->name.'</a></span>'; } echo $output; ?>
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:446677", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152510" }
[ 0.018341064453125, -0.0022525787353515625, -0.02716064453125, -0.057525634765625, 0.02154541015625, -0.0235443115234375, 0.013092041015625, 0.01349639892578125, -0.004650115966796875, 0.01021575927734375, -0.0189056396484375, -0.01371002197265625, -0.052032470703125, -0.034637451171875, -0.0028171539306640625, -0.05535888671875, 0.03326416015625, -0.005565643310546875, 0.035736083984375, 0.0022640228271484375, 0.0077362060546875, 0.019927978515625, 0.01271820068359375, 0.01261138916015625, 0.01434326171875, 0.00537872314453125, 0.089111328125, -0.0255889892578125, 0.015869140625, -0.0182647705078125, 0.03173828125, -0.0279388427734375, 0.016998291015625, 0.00646209716796875, -0.01568603515625, 0.01061248779296875, 0.0263519287109375, -0.0106658935546875, 0.0005779266357421875, 0.039337158203125, 0.024810791015625, -0.023956298828125, -0.01409149169921875, -0.00812530517578125, -0.01364898681640625, -0.033172607421875, 0.0090179443359375, -0.046783447265625, 0.01519775390625, 0.0052947998046875, 0.02337646484375, -0.01045989990234375, 0.03143310546875, -0.0162506103515625, -0.01953125, -0.0247650146484375, -0.004863739013671875, -0.0352783203125, 0.0279541015625, -0.0173797607421875, -0.004238128662109375, -0.00951385498046875, 0.0399169921875, 0.013092041015625, -0.02044677734375, 0.0167083740234375, 0.03399658203125, 0.01100921630859375, -0.0241241455078125, -0.0357666015625, 0.006023406982421875, -0.01261138916015625, -0.00855255126953125, -0.005580902099609375, 0.0039520263671875, -0.050201416015625, 0.0160675048828125, -0.031280517578125, -0.0110015869140625, 0.0322265625, 0.0102386474609375, -0.034088134765625, -0.07672119140625, 0.032867431640625, -0.0015106201171875, 0.047088623046875, -0.0025005340576171875, -0.03131103515625, 0.00995635986328125, -0.0374755859375, -0.0022640228271484375, 0.01560211181640625, -0.034698486328125, 0.0159454345703125, -0.01026153564453125, -0.029998779296875, 0.0234527587890625, 0.0178985595703125, -0.0250396728515625, -0.022796630859375, -0.0167999267578125, -0.0225830078125, -0.00885772705078125, -0.022186279296875, 0.00897216796875, -0.0011577606201171875, -0.029205322265625, 0.0012903213500976562, 0.05126953125, 0.051177978515625, 0.01169586181640625, -0.027557373046875, -0.00734710693359375, 0.004459381103515625, -0.041046142578125, 0.00836944580078125, -0.031494140625, -0.0110321044921875, -0.01214599609375, 0.0005078315734863281, 0.0215301513671875, 0.04840087890625, 0.03326416015625, -0.00887298583984375, -0.0180816650390625, 0.0101470947265625, -0.005992889404296875, -0.0882568359375, -0.01082611083984375, 0.04150390625, -0.048553466796875, 0.00841522216796875, 0.0684814453125, 0.0218353271484375, 0.01593017578125, -0.03594970703125, 0.0015840530395507812, -0.027008056640625, -0.0010433197021484375, -0.017974853515625, 0.03912353515625, -0.0059051513671875, -0.0069427490234375, 0.01329803466796875, 0.0160980224609375, 0.01277923583984375, 0.0233917236328125, 0.0194549560546875, -0.01995849609375, -0.022308349609375, 0.0152435302734375, 0.016876220703125, 0.05535888671875, 0.0153350830078125, -0.0202789306640625, 0.0140380859375, 0.057373046875, -0.03900146484375, -0.065185546875, -0.05938720703125, 0.06695556640625, -0.0193939208984375, -0.04150390625, 0.02545166015625, -0.00832366943359375, 0.033233642578125, -0.044403076171875, -0.005481719970703125, 0.022735595703125, -0.041595458984375, 0.0372314453125, 0.00034046173095703125, 0.0038013458251953125, -0.00519561767578125, 0.007415771484375, 0.0003559589385986328, -0.0109405517578125, -0.003765106201171875, 0.036224365234375, 0.000949859619140625, -0.032073974609375, -0.03704833984375, 0.0163726806640625, -0.0239410400390625, -0.03863525390625, 0.0090484619140625, -0.009765625, 0.0189056396484375, 0.023101806640625, 0.004253387451171875, 0.022369384765625, 0.01259613037109375, -0.049346923828125, 0.01389312744140625, 0.0157470703125, 0.006191253662109375, -0.039306640625, -0.005901336669921875, -0.0038623809814453125, -0.005336761474609375, -0.006244659423828125, -0.033233642578125, 0.031982421875, -0.02099609375, -0.0298614501953125, 0.00876617431640625, -0.0233612060546875, 0.030303955078125, -0.01934814453125, 0.0013751983642578125, 0.0325927734375, -0.018035888671875, -0.039886474609375, -0.01360321044921875, -0.0184783935546875, 0.02410888671875, 0.0009636878967285156, -0.00039505958557128906, -0.0204620361328125, 0.00760650634765625, -0.00627899169921875, -0.044281005859375, -0.0258026123046875, 0.041412353515625, 0.037017822265625, 0.04473876953125, -0.02862548828125, 0.0171661376953125, 0.012420654296875, 0.062286376953125, -0.07763671875, -0.024749755859375, 0.034088134765625, 0.0186767578125, -0.0312042236328125, 0.00493621826171875, 0.053802490234375, -0.03759765625, 0.00627899169921875, 0.034759521484375, 0.037200927734375, 0.0137786865234375, -0.01776123046875, -0.02911376953125, 0.07391357421875, -0.0310516357421875, 0.00257110595703125, -0.0191802978515625, 0.0157470703125, 0.046722412109375, -0.0030651092529296875, 0.023712158203125, 0.01244354248046875, 0.0166015625, 0.036865234375, 0.029876708984375, 0.001819610595703125, -0.0023212432861328125, 0.0005950927734375, 0.0188751220703125, 0.006267547607421875, -0.02740478515625, -0.0355224609375, -0.0102996826171875, 0.048828125, 0.021484375, 0.034027099609375, 0.0189666748046875, -0.05377197265625, 0.0212860107421875, 0.00981903076171875, 0.0016326904296875, 0.0069580078125, 0.00850677490234375, 0.00820159912109375, 0.0220794677734375, -0.036529541015625, -0.0015392303466796875, 0.03472900390625, 0.00962066650390625, -0.003116607666015625, 0.036041259765625, -0.0281829833984375, -0.0109710693359375, -0.019989013671875, -0.051666259765625, -0.0151519775390625, 0.0299835205078125, -0.0386962890625, -0.00685882568359375, 0.0173492431640625, 0.0250091552734375, -0.0171356201171875, -0.00021016597747802734, -0.00785064697265625, 0.000843048095703125, -0.048004150390625, -0.04693603515625, 0.0582275390625, -0.0523681640625, -0.0010004043579101562, 0.058990478515625, -0.00775146484375, 0.022186279296875, 0.00830078125, -0.056732177734375, 0.005664825439453125, 0.037353515625, 0.00972747802734375, -0.04425048828125, -0.0207672119140625, 0.0223388671875, 0.0147857666015625, 0.06658935546875, -0.03411865234375, -0.06512451171875, -0.01947021484375, 0.03375244140625, -0.0304107666015625, 0.004482269287109375, 0.05535888671875, -0.055999755859375, -0.01654052734375, -0.0631103515625, -0.04150390625, -0.0002727508544921875, -0.056732177734375, -0.0124053955078125, 0.0237884521484375, -0.04864501953125, -0.1009521484375, -0.0638427734375, -0.0955810546875, -0.00926971435546875, -0.005313873291015625, 0.0124359130859375, 0.0125274658203125, 0.056182861328125, 0.0210418701171875, -0.047332763671875, 0.01255035400390625, -0.0013456344604492188, -0.036285400390625, 0.0170135498046875, -0.0272064208984375, -0.005828857421875, 0.0136871337890625, 0.006988525390625, -0.036895751953125, -0.025390625, 0.02020263671875, -0.038909912109375, -0.0055999755859375, 0.01474761962890625, 0.0214385986328125, -0.010772705078125, -0.012908935546875, 0.02496337890625, 0.00897216796875, -0.037841796875, -0.005313873291015625, 0.0244293212890625, 0.0194854736328125, 0.039947509765625, -0.032379150390625, -0.0297393798828125, -0.01190948486328125, 0.07330322265625, -0.007205963134765625, -0.0038909912109375, -0.0197906494140625, -0.041961669921875, 0.03265380859375, 0.0292510986328125, 0.036651611328125, 0.016693115234375, -0.00455474853515625, -0.04461669921875, 0.0172271728515625, -0.00397491455078125, 0.01029205322265625, -0.01300811767578125, -0.0004336833953857422, -0.036376953125, -0.08282470703125, 0.0484619140625, -0.0687255859375, -0.00377655029296875, -0.041290283203125, -0.015777587890625, 0.0156402587890625, 0.11517333984375, -0.002704620361328125, 0.0003306865692138672, -0.03057861328125, -0.0097808837890625, -0.00525665283203125, -0.022003173828125, -0.040283203125, -0.0075225830078125, -0.0924072265625, 0.0257110595703125, 0.0159759521484375, -0.037445068359375, -0.0220184326171875, 0.0260162353515625, -0.0743408203125, -0.01812744140625, 0.033599853515625, -0.007770538330078125, 0.0252838134765625, 0.0167694091796875, -0.0005464553833007812, 0.009765625, -0.036102294921875, -0.0205078125, -0.0205841064453125, 0.0012598037719726562, 0.00429534912109375, -0.0205535888671875, -0.0177001953125, 0.0243072509765625, -0.00580596923828125, 0.0229644775390625, 0.04559326171875, -0.02435302734375, 0.0161590576171875, -0.0106201171875, 0.016082763671875, -0.0265350341796875, -0.00484466552734375, -0.0360107421875, 0.0012350082397460938, 0.005916595458984375, -0.028289794921875, 0.0565185546875, -0.0113983154296875, 0.0220184326171875, 0.003692626953125, -0.0330810546875, -0.035980224609375, 0.006595611572265625, -0.035552978515625, -0.012237548828125, -0.023162841796875, -0.01436614990234375, 0.0173797607421875, -0.057769775390625, 0.0517578125, 0.028076171875, -0.0263824462890625, 0.00616455078125, 0.07525634765625, 0.0194091796875, -0.030487060546875, -0.062469482421875, 0.0019741058349609375, 0.041839599609375, -0.0067596435546875, 0.035980224609375, 0.030517578125, -0.01629638671875, 0.041839599609375, 0.01116943359375, 0.0210418701171875, -0.0318603515625, 0.06390380859375, 0.00960540771484375, 0.0110931396484375, -0.0031757354736328125, -0.005077362060546875, 0.015869140625, 0.006069183349609375, -0.0394287109375, -0.0217437744140625, -0.0012187957763671875, 0.066162109375, -0.034454345703125, 0.049896240234375, -0.04949951171875, -0.056793212890625, 0.03680419921875, -0.0147705078125, -0.00799560546875, 0.022491455078125, -0.0268096923828125, 0.0216522216796875, -0.035308837890625, 0.016845703125, 0.0032901763916015625, 0.032806396484375, 0.0032405853271484375, 0.0283203125, 0.018341064453125, 0.00624847412109375, -0.0236663818359375, 0.013885498046875, 0.0067291259765625, -0.017303466796875, -0.045013427734375, -0.00926971435546875, -0.02227783203125, -0.015167236328125, 0.0296478271484375, -0.01776123046875, 0.052337646484375, 0.036224365234375, 0.0066986083984375, 0.0301055908203125, -0.045318603515625, 0.0250396728515625, -0.0290679931640625, 0.000021755695343017578, -0.00798797607421875, -0.003803253173828125, -0.03076171875, 0.072998046875, -0.0216522216796875, 0.0247344970703125, -0.0126800537109375, 0.0250091552734375, 0.01403045654296875, 0.042388916015625, 0.0167236328125, -0.01824951171875, 0.0017290115356445312, 0.0008873939514160156, -0.0006570816040039062, -0.04022216796875, -0.0170440673828125, -0.00992584228515625, 0.0714111328125, -0.01514434814453125, -0.0246124267578125, 0.0292816162109375, -0.046630859375, -0.006591796875, 0.0016450881958007812, -0.003696441650390625, -0.00980377197265625, -0.00847625732421875, 0.003879547119140625, 0.0189056396484375, 0.0033359527587890625, -0.0233001708984375, 0.0200958251953125, -0.027801513671875, 0.022308349609375, -0.0313720703125, -0.015045166015625, 0.0024776458740234375, 0.013946533203125, -0.045257568359375, -0.01904296875, 0.0298309326171875, -0.072021484375, -0.03656005859375, -0.0027561187744140625, -0.015777587890625, 0.01126861572265625, -0.02349853515625, 0.06048583984375, -0.0318603515625, -0.0118865966796875, -0.0322265625, 0.00670623779296875, 0.0460205078125, 0.037322998046875, -0.065185546875, -0.0023174285888671875, -0.046234130859375, 0.0129241943359375, -0.041748046875, -0.07135009765625, -0.0138397216796875, 0.009429931640625, 0.01308441162109375, 0.02349853515625, 0.01910400390625, 0.00904083251953125, 0.003246307373046875, -0.0023860931396484375, -0.0232696533203125, 0.01947021484375, 0.021209716796875, 0.01593017578125, -0.004657745361328125, 0.04803466796875, -0.0113067626953125, -0.0276641845703125, -0.052001953125, -0.0047149658203125, -0.0276641845703125, -0.09368896484375, 0.0028839111328125, 0.0240936279296875, -0.0257415771484375, 0.03668212890625, -0.002201080322265625, 0.0223236083984375, 0.0036869049072265625, -0.0121002197265625, 0.0036449432373046875, -0.0209808349609375, 0.02044677734375, -0.0005803108215332031, -0.008392333984375, 0.009033203125, -0.01430511474609375, 0.01221466064453125, 0.0216827392578125, -0.017425537109375, 0.034271240234375, -0.005527496337890625, 0.025909423828125, 0.004180908203125, 0.0080413818359375, -0.00035762786865234375, 0.02008056640625, 0.003376007080078125, 0.027557373046875, 0.0155181884765625, 0.0207977294921875, 0.006931304931640625, 0.0018291473388671875, -0.006938934326171875, 0.0146331787109375, 0.06292724609375, 0.007205963134765625, -0.0212249755859375, 0.033294677734375, -0.02655029296875, -0.0242919921875, 0.0256805419921875, 0.06512451171875, -0.04144287109375, -0.01131439208984375, 0.053924560546875, 0.01953125, -0.0259246826171875, 0.033203125, -0.0283660888671875, -0.0313720703125, -0.0218658447265625, -0.01284027099609375, -0.0244140625, -0.01546478271484375, 0.004573822021484375, 0.001659393310546875, -0.01258087158203125, 0.06256103515625, 0.0164947509765625, -0.01180267333984375, -0.022674560546875, -0.0093231201171875, 0.0003273487091064453, -0.024871826171875, 0.01428985595703125, -0.03375244140625, 0.0199127197265625, -0.028961181640625, 0.029754638671875, -0.041229248046875, 0.030242919921875, -0.01509857177734375, -0.00844573974609375, 0.005535125732421875, 0.0294342041015625, -0.006046295166015625, -0.01377105712890625, 0.01146697998046875, -0.07403564453125, -0.04022216796875, -0.00856781005859375, -0.01250457763671875, 0.0352783203125, -0.02886962890625, 0.0266876220703125, -0.0277862548828125, 0.01253509521484375, -0.01526641845703125, -0.0020160675048828125, 0.0565185546875, -0.0206451416015625, -0.0204010009765625, 0.03155517578125, 0.033782958984375, -0.009063720703125, 0.00714874267578125, 0.01444244384765625, -0.0265045166015625, -0.0016574859619140625, 0.00457763671875, -0.0027561187744140625, -0.00527191162109375, 0.0097503662109375, -0.07049560546875, 0.0833740234375, 0.0115814208984375, 0.032928466796875, 0.0136260986328125, 0.0203704833984375, -0.03448486328125, -0.0028362274169921875, -0.0272979736328125, 0.04534912109375, 0.0178985595703125, 0.015899658203125, -0.05865478515625, -0.020263671875, -0.002635955810546875, 0.045013427734375, 0.062744140625, 0.00891876220703125, -0.006725311279296875, -0.0264434814453125, 0.0191497802734375, 0.034820556640625, -0.0220794677734375, 0.0119476318359375, 0.037353515625, 0.0380859375, 0.05694580078125, -0.0011434555053710938, 0.039886474609375, 0.005794525146484375, -0.004364013671875, 0.06756591796875, 0.01861572265625, 0.0350341796875, -0.0253143310546875, -0.034881591796875, -0.035308837890625, -0.018463134765625, 0.048248291015625, -0.0579833984375, 0.0080108642578125, 0.033477783203125, 0.0277099609375, -0.0362548828125, 0.038909912109375, -0.0294342041015625, 0.05230712890625, -0.022552490234375, 0.023284912109375, 0.023223876953125, 0.01326751708984375, 0.054595947265625, -0.040618896484375, 0.004894256591796875, -0.011444091796875, -0.004566192626953125, 0.04534912109375, -0.0181427001953125, -0.0107879638671875, -0.10711669921875, -0.00823211669921875, 0.041351318359375, 0.055206298828125, -0.0556640625, -0.078857421875, 0.02154541015625, 0.01727294921875, 0.00823974609375, 0.034149169921875, 0.01506805419921875, 0.016937255859375, 0.0711669921875, -0.0687255859375, -0.0172271728515625, 0.006160736083984375, 0.051849365234375, -0.0247955322265625, -0.048370361328125, -0.01009368896484375, -0.054901123046875, -0.07080078125, 0.0171661376953125, 0.031829833984375, 0.04681396484375, 0.0165252685546875, 0.056488037109375, 0.03680419921875, -0.0177459716796875, 0.0089111328125, 0.0031414031982421875, -0.004974365234375, -0.002407073974609375, 0.0240631103515625, 0.0244140625, -0.03973388671875, 0.014373779296875, 0.0272674560546875, -0.02362060546875, 0.013153076171875, 0.011688232421875, 0.012115478515625, -0.00511932373046875, 0.0059814453125, -0.0043487548828125, 0.00035190582275390625, -0.0462646484375, 0.0092315673828125, 0.0097808837890625, -0.01519012451171875, 0.031341552734375, -0.024444580078125, 0.05267333984375, 0.000553131103515625, 0.066162109375, 0.0023822784423828125, 0.0034313201904296875, 0.0232391357421875, 0.003414154052734375, 0.0498046875, 0.034576416015625, -0.091796875, -0.01352691650390625, -0.0576171875, -0.0377197265625, 0.026275634765625, 0.03704833984375, -0.0028171539306640625, 0.00823211669921875, 0.01097869873046875, -0.0447998046875, 0.0288238525390625, 0.03369140625, 0.0023403167724609375, 0.014617919921875, 0.004077911376953125, -0.0194091796875, -0.024200439453125, -0.008819580078125, 0.0171356201171875, 0.007213592529296875, 0.01885986328125, 0.011474609375, 0.01861572265625, 0.0104522705078125, -0.057037353515625, 0.063232421875, -0.0938720703125, -0.039886474609375, 0.032958984375, 0.02410888671875, 0.0084991455078125, -0.0111846923828125, -0.0311737060546875, 0.00701141357421875, 0.0657958984375, -0.032806396484375, -0.0073394775390625, 0.028167724609375, 0.0207672119140625, -0.037506103515625, 0.029052734375, -0.0279388427734375, -0.0252532958984375, -0.0302581787109375, -0.030303955078125, 0.0253143310546875, 0.02191162109375, 0.027801513671875, 0.002643585205078125, 0.00339508056640625, -0.0287322998046875, 0.03704833984375, -0.016448974609375, 0.06402587890625, 0.04144287109375, -0.0247802734375, -0.09332275390625, 0.036773681640625, -0.0012788772583007812, -0.006439208984375, 0.023834228515625, 0.086669921875, 0.017425537109375, -0.0567626953125, 0.021270751953125, 0.00444793701171875, 0.037384033203125, -0.0217742919921875, 0.00872039794921875, 0.0169677734375, -0.00034928321838378906, -0.006198883056640625, -0.01641845703125, -0.027679443359375, -0.032135009765625, -0.0032672882080078125, 0.0211944580078125, 0.006290435791015625, -0.017486572265625, -0.035797119140625, -0.0221405029296875, 0.0474853515625, -0.0106658935546875, 0.0028171539306640625, -0.004245758056640625, -0.049896240234375, -0.002231597900390625, -0.0014276504516601562, -0.035064697265625, 0.0287933349609375, 0.06494140625, -0.01690673828125, -0.007389068603515625, -0.0280609130859375, -0.01505279541015625, -0.0195465087890625, 0.00504302978515625, 0.0248260498046875, -0.0262603759765625, -0.035736083984375, 0.007144927978515625, 0.01464080810546875, 0.04510498046875, 0.0323486328125, -0.01439666748046875, 0.004474639892578125, 0.007411956787109375, -0.0555419921875, -0.048095703125, 0.050811767578125, -0.06353759765625, -0.04168701171875, -0.0094451904296875, 0.0186004638671875, 0.037841796875, -0.0206146240234375, -0.0732421875, 0.01434326171875, -0.0220184326171875, -0.033355712890625, -0.06842041015625, 0.0228729248046875, 0.017730712890625, -0.013397216796875, -0.0157928466796875, -0.036895751953125, -0.03704833984375, 0.0190277099609375, 0.008087158203125, -0.006282806396484375, 0.032379150390625, 0.024993896484375, -0.0584716796875, 0.0202484130859375, 0.0007328987121582031, 0.0005626678466796875, -0.02703857421875, -0.0223388671875, 0.0173492431640625, 0.02825927734375, -0.0110931396484375, -0.0650634765625, 0.0153350830078125, 0.002552032470703125, -0.0001398324966430664, -0.040283203125, -0.040985107421875, -0.021820068359375, 0.056915283203125, 0.03253173828125, 0.0196533203125, -0.0255279541015625, -0.01358795166015625, 0.01476287841796875, -0.042694091796875, -0.012237548828125, 0.03399658203125, -0.060272216796875, -0.01113128662109375, -0.004547119140625, -0.0251922607421875, -0.001331329345703125, -0.006107330322265625, -0.04132080078125, 0.00489044189453125, -0.0259552001953125, -0.0219268798828125, -0.05767822265625, 0.0736083984375, -0.036376953125, -0.0038471221923828125, -0.0007681846618652344, -0.043975830078125, -0.0191650390625, -0.011993408203125, -0.038421630859375, -0.014068603515625, -0.0110015869140625, 0.0197296142578125, 0.00046253204345703125, 0.0193023681640625, -0.00090789794921875, 0.028076171875, 0.01018524169921875, -0.00550079345703125, 0.00760650634765625, -0.0159759521484375, -0.0309600830078125, -0.03021240234375, 0.08319091796875, 0.006114959716796875, 0.1063232421875, 0.0235748291015625, -0.006298065185546875, -0.00931549072265625, 0.0611572265625, 0.0131378173828125, -0.044708251953125, 0.024810791015625, -0.043670654296875, 0.01068878173828125, -0.0005083084106445312, 0.0191650390625, 0.0037593841552734375, -0.01285552978515625, 0.004638671875, -0.0029087066650390625, 0.001857757568359375 ]
3c0b6061be46ef7b9e35af5ff2aff6662dae323a
Wordpress Stackexchange Q: Wordpress Shortcode in Menu Item Title I've looked and have not found anything that works. I am trying to include a shortcode in a menu item's 'Navigation Label'. Basically Iwould like to have a dynamic title displaying the user's name & avatar. [profilepicture round] [user_name] Right now it's just spit back out since Wordpress Menus do not parse shortcodes. I've tried: function my_nav_menu_objects_shortcode_mangler($items) { foreach ($items as $item) { $item->title = do_shortcode($item->title); } return $items; } But it doesn't parse it. I also tried $item->type_label with no luck. Am I just referencing the wrong attribute of item? Also tried the following with no luck. add_filter('wp_nav_menu_items', 'do_shortcode'); The avatar and username can both be retrieved via php if needed: <?php echo userpro_profile_data('user_login', $user_id); ?> <?php echo userpro_profile_data('profilepicture', $user_id); ?> A: Since WP 4.4.0 you can use the following: add_filter('nav_menu_item_title', function ($title, $item, $args, $depth) { return do_shortcode($title); }, 10, 4);
Q: Wordpress Shortcode in Menu Item Title I've looked and have not found anything that works. I am trying to include a shortcode in a menu item's 'Navigation Label'. Basically Iwould like to have a dynamic title displaying the user's name & avatar. [profilepicture round] [user_name] Right now it's just spit back out since Wordpress Menus do not parse shortcodes. I've tried: function my_nav_menu_objects_shortcode_mangler($items) { foreach ($items as $item) { $item->title = do_shortcode($item->title); } return $items; } But it doesn't parse it. I also tried $item->type_label with no luck. Am I just referencing the wrong attribute of item? Also tried the following with no luck. add_filter('wp_nav_menu_items', 'do_shortcode'); The avatar and username can both be retrieved via php if needed: <?php echo userpro_profile_data('user_login', $user_id); ?> <?php echo userpro_profile_data('profilepicture', $user_id); ?> A: Since WP 4.4.0 you can use the following: add_filter('nav_menu_item_title', function ($title, $item, $args, $depth) { return do_shortcode($title); }, 10, 4); A: First of all download 'Shortcodes in Menus' plugin and install/activate it. Then in theme's function.php add following code. add_shortcode( 'current-username' , 'ss_get_current_username' ); function ss_get_current_username(){ $user = wp_get_current_user(); return $user->display_name; } Now, in menu's navigation lable write [current-username] shortcode. Same thing you can do for displaying avatar. This way it will display logged in user name in menu item.
wordpress
{ "language": "en", "length": 210, "provenance": "stackexchange_00019.jsonl.gz:446708", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152628" }
[ 0.040771484375, -0.01397705078125, 0.03277587890625, 0.0207061767578125, -0.01180267333984375, -0.0241851806640625, 0.056549072265625, -0.06903076171875, -0.016082763671875, 0.034698486328125, -0.01666259765625, 0.0106048583984375, -0.05035400390625, -0.0034618377685546875, -0.041046142578125, -0.056060791015625, 0.006504058837890625, 0.0112152099609375, 0.0190887451171875, -0.009979248046875, -0.006816864013671875, -0.01076507568359375, 0.006198883056640625, 0.003322601318359375, 0.01360321044921875, -0.048828125, 0.057891845703125, -0.00437164306640625, -0.000675201416015625, -0.01232147216796875, 0.00737762451171875, -0.01947021484375, 0.012847900390625, 0.01406097412109375, 0.00836944580078125, 0.06182861328125, -0.0139312744140625, 0.013671875, 0.034576416015625, -0.006683349609375, 0.0380859375, -0.00972747802734375, 0.0171661376953125, 0.021026611328125, 0.0011491775512695312, -0.057373046875, 0.062744140625, -0.0236968994140625, -0.001079559326171875, -0.00507354736328125, 0.037811279296875, 0.016387939453125, 0.052459716796875, 0.003108978271484375, -0.00829315185546875, 0.0133056640625, -0.022247314453125, -0.04510498046875, 0.0212249755859375, 0.052947998046875, 0.01357269287109375, -0.0294952392578125, 0.01195526123046875, -0.043975830078125, 0.0215301513671875, -0.0022106170654296875, 0.0455322265625, 0.00998687744140625, -0.009246826171875, 0.033905029296875, 0.0241241455078125, -0.0012426376342773438, -0.0189666748046875, 0.00907135009765625, -0.0377197265625, -0.007843017578125, 0.005931854248046875, -0.04644775390625, 0.0274658203125, 0.02532958984375, -0.00528717041015625, -0.0023288726806640625, -0.053741455078125, 0.011749267578125, -0.01904296875, 0.01102447509765625, -0.01556396484375, -0.00550079345703125, 0.00928497314453125, 0.0241546630859375, -0.0032958984375, 0.0076904296875, -0.00435638427734375, 0.044769287109375, 0.0017414093017578125, 0.0007910728454589844, 0.0092926025390625, 0.09820556640625, -0.0198211669921875, 0.07373046875, -0.0296173095703125, -0.033447265625, 0.10235595703125, -0.0982666015625, -0.0078125, 0.017974853515625, -0.00858306884765625, 0.038604736328125, 0.045654296875, 0.0479736328125, 0.0251922607421875, 0.0185699462890625, -0.0174102783203125, -0.0132904052734375, -0.0184326171875, 0.02227783203125, -0.0380859375, 0.004886627197265625, 0.01013946533203125, 0.010955810546875, -0.006084442138671875, -0.0031452178955078125, 0.0027370452880859375, 0.019775390625, 0.0139312744140625, 0.01148223876953125, -0.01129150390625, -0.007293701171875, 0.005741119384765625, 0.0128326416015625, 0.0009303092956542969, -0.005352020263671875, 0.00920867919921875, 0.0543212890625, 0.01235198974609375, -0.01325225830078125, 0.004085540771484375, -0.053253173828125, -0.003002166748046875, -0.00424957275390625, 0.03643798828125, 0.02081298828125, 0.01342010498046875, -0.0120086669921875, 0.0270233154296875, 0.003345489501953125, 0.01494598388671875, 0.0169677734375, 0.0248565673828125, -0.04119873046875, 0.01824951171875, -0.01861572265625, 0.0248870849609375, 0.031402587890625, -0.009307861328125, 0.03814697265625, 0.032501220703125, -0.0233306884765625, -0.025238037109375, -0.015045166015625, 0.002620697021484375, -0.015289306640625, -0.011993408203125, -0.07861328125, -0.0689697265625, 0.0060272216796875, -0.0321044921875, -0.003810882568359375, 0.011932373046875, 0.03179931640625, -0.0119476318359375, 0.0189666748046875, -0.0198211669921875, 0.0262603759765625, 0.01325225830078125, 0.01424407958984375, -0.0034465789794921875, 0.05462646484375, 0.005634307861328125, -0.00212860107421875, -0.021881103515625, -0.056640625, 0.045074462890625, -0.0079498291015625, -0.0714111328125, 0.0002968311309814453, 0.0163116455078125, 0.0687255859375, 0.029815673828125, 0.019744873046875, 0.04443359375, 0.0007357597351074219, 0.005428314208984375, -0.05352783203125, 0.0019664764404296875, -0.0234527587890625, 0.039947509765625, -0.00876617431640625, 0.00440216064453125, 0.04736328125, 0.022247314453125, -0.006374359130859375, 0.02734375, -0.0279998779296875, -0.03790283203125, 0.002887725830078125, -0.027191162109375, 0.042388916015625, -0.005939483642578125, -0.0185089111328125, 0.003520965576171875, -0.02496337890625, -0.013946533203125, 0.02191162109375, -0.0121307373046875, 0.043914794921875, -0.04522705078125, 0.0203704833984375, -0.0186004638671875, 0.019805908203125, 0.004985809326171875, -0.0140838623046875, 0.0012273788452148438, 0.017822265625, 0.046142578125, -0.0286407470703125, -0.00036406517028808594, -0.03961181640625, 0.0207672119140625, 0.0006947517395019531, -0.053863525390625, 0.0218048095703125, 0.006938934326171875, -0.0374755859375, -0.07611083984375, -0.008819580078125, -0.040435791015625, -0.0224456787109375, -0.0015964508056640625, 0.06610107421875, 0.046966552734375, 0.052642822265625, 0.025177001953125, -0.00579833984375, 0.03912353515625, -0.03125, 0.038055419921875, -0.037139892578125, -0.014801025390625, 0.0281982421875, 0.033050537109375, 0.0284576416015625, 0.004058837890625, -0.0184478759765625, -0.0031833648681640625, 0.053314208984375, -0.01378631591796875, -0.004421234130859375, -0.0006213188171386719, -0.009552001953125, 0.0129241943359375, -0.010589599609375, -0.0134735107421875, -0.005062103271484375, 0.040802001953125, 0.0220184326171875, 0.0311431884765625, 0.02581787109375, -0.049468994140625, 0.035186767578125, 0.017974853515625, -0.004230499267578125, 0.0045013427734375, 0.0045013427734375, 0.01364898681640625, 0.01343536376953125, -0.0418701171875, 0.004306793212890625, 0.0271759033203125, 0.0005602836608886719, -0.0012989044189453125, 0.03668212890625, 0.03515625, -0.01340484619140625, 0.0113372802734375, -0.01149749755859375, 0.013824462890625, -0.0289459228515625, 0.018768310546875, -0.00630950927734375, 0.0030269622802734375, 0.0364990234375, -0.017181396484375, 0.046112060546875, 0.0229034423828125, -0.01297760009765625, 0.061614990234375, -0.01219940185546875, 0.022216796875, -0.0255584716796875, 0.0311279296875, 0.040283203125, -0.03546142578125, 0.0157318115234375, 0.01311492919921875, 0.0006155967712402344, -0.0142822265625, 0.01557159423828125, 0.0130462646484375, -0.01812744140625, 0.0244598388671875, 0.10052490234375, 0.0176239013671875, -0.0008258819580078125, 0.00824737548828125, -0.0249176025390625, -0.0016069412231445312, 0.014007568359375, -0.047271728515625, -0.045013427734375, 0.0188140869140625, -0.02008056640625, 0.042236328125, 0.0224609375, 0.0007853507995605469, -0.046051025390625, 0.057525634765625, 0.001087188720703125, 0.0031280517578125, -0.0090179443359375, -0.052459716796875, -0.0095672607421875, -0.0582275390625, 0.03118896484375, -0.011962890625, 0.0140228271484375, 0.01605224609375, 0.0219879150390625, 0.004192352294921875, -0.0207366943359375, 0.051055908203125, 0.0179901123046875, -0.01025390625, 0.0272979736328125, 0.03436279296875, -0.0285797119140625, 0.01128387451171875, 0.0008091926574707031, -0.059112548828125, 0.0360107421875, -0.0236358642578125, -0.01305389404296875, -0.00855255126953125, 0.01010894775390625, 0.037933349609375, 0.01363372802734375, -0.005054473876953125, 0.0589599609375, 0.0770263671875, 0.0012483596801757812, -0.020263671875, -0.0167388916015625, -0.0501708984375, 0.006336212158203125, 0.02911376953125, -0.01120758056640625, -0.0222320556640625, 0.01221466064453125, 0.0116729736328125, 0.012908935546875, 0.0226593017578125, 0.0032482147216796875, -0.040313720703125, -0.0155181884765625, -0.0035266876220703125, -0.01181793212890625, 0.034332275390625, -0.006504058837890625, 0.0150604248046875, 0.0147247314453125, 0.023712158203125, 0.01058197021484375, -0.0041351318359375, -0.01371002197265625, -0.03936767578125, 0.05670166015625, -0.0012083053588867188, 0.00585174560546875, -0.041778564453125, -0.044525146484375, -0.00925445556640625, 0.085693359375, -0.0323486328125, -0.01776123046875, -0.0162200927734375, 0.003192901611328125, 0.0121002197265625, -0.0229949951171875, -0.0131378173828125, -0.0212249755859375, -0.10333251953125, 0.01149749755859375, -0.00643157958984375, -0.030670166015625, -0.004184722900390625, -0.0013685226440429688, -0.052032470703125, -0.043548583984375, 0.033477783203125, -0.0242919921875, 0.0194854736328125, 0.029205322265625, -0.0276947021484375, 0.0079193115234375, -0.0413818359375, -0.0164642333984375, -0.0648193359375, -0.011749267578125, -0.005039215087890625, 0.0535888671875, 0.00004291534423828125, -0.00485992431640625, -0.032562255859375, 0.033935546875, 0.0207672119140625, 0.036163330078125, -0.00453948974609375, -0.00508880615234375, -0.001186370849609375, 0.0192108154296875, 0.00946807861328125, 0.004291534423828125, 0.0122528076171875, 0.01715087890625, -0.04052734375, 0.03857421875, -0.03460693359375, 0.00008654594421386719, -0.00001436471939086914, -0.040985107421875, -0.055633544921875, -0.03955078125, 0.0195770263671875, 0.0124053955078125, -0.00249481201171875, 0.0018758773803710938, -0.051727294921875, -0.039215087890625, 0.032501220703125, -0.020721435546875, -0.01348876953125, 0.0003674030303955078, 0.04754638671875, 0.0105438232421875, -0.0302734375, -0.0130157470703125, 0.02667236328125, 0.066162109375, -0.049957275390625, 0.058258056640625, 0.0364990234375, -0.046173095703125, 0.08770751953125, 0.00917816162109375, 0.024993896484375, -0.0187225341796875, 0.0404052734375, 0.00040721893310546875, -0.01554107666015625, 0.018341064453125, 0.0232696533203125, -0.0272369384765625, 0.025054931640625, -0.0013418197631835938, -0.0186920166015625, -0.0162811279296875, 0.0228271484375, 0.0238189697265625, -0.020233154296875, -0.02008056640625, -0.035247802734375, 0.0219879150390625, -0.00450897216796875, 0.0211639404296875, 0.004756927490234375, 0.002948760986328125, -0.0023365020751953125, -0.01444244384765625, -0.0154876708984375, 0.001369476318359375, -0.04473876953125, 0.002399444580078125, 0.03472900390625, -0.06414794921875, 0.0009636878967285156, 0.020294189453125, -0.0019388198852539062, 0.07391357421875, 0.0286407470703125, -0.0028247833251953125, -0.030487060546875, 0.0010623931884765625, -0.012542724609375, -0.030517578125, 0.01910400390625, 0.028839111328125, 0.03924560546875, 0.01036834716796875, -0.00839996337890625, -0.01227569580078125, 0.03076171875, -0.03228759765625, 0.05755615234375, -0.0166168212890625, 0.00675201416015625, 0.00579833984375, 0.0185089111328125, -0.034912109375, 0.0322265625, 0.0005774497985839844, 0.00769805908203125, 0.020172119140625, 0.01265716552734375, 0.0245513916015625, -0.0164642333984375, -0.00045752525329589844, 0.002460479736328125, 0.028076171875, -0.0196533203125, -0.0106353759765625, -0.00006705522537231445, 0.040069580078125, -0.018829345703125, -0.01031494140625, 0.0209197998046875, -0.034942626953125, -0.0174560546875, 0.00970458984375, -0.040008544921875, -0.033905029296875, -0.0570068359375, -0.037750244140625, 0.03680419921875, -0.0072174072265625, -0.005126953125, -0.04156494140625, 0.0086212158203125, -0.00624847412109375, -0.00258636474609375, -0.030609130859375, 0.0186614990234375, 0.005901336669921875, -0.0193023681640625, -0.02716064453125, -0.01418304443359375, -0.031280517578125, 0.00911712646484375, -0.013671875, -0.02655029296875, 0.036773681640625, -0.029754638671875, 0.03387451171875, -0.05364990234375, 0.0364990234375, -0.018280029296875, 0.0007467269897460938, 0.0240936279296875, 0.01377105712890625, -0.0228424072265625, 0.0096435546875, 0.00708770751953125, 0.016571044921875, 0.063720703125, -0.00807952880859375, -0.00376129150390625, -0.06365966796875, -0.036529541015625, 0.0230560302734375, -0.0110015869140625, 0.04608154296875, -0.04010009765625, 0.0101318359375, -0.01540374755859375, 0.032623291015625, -0.018707275390625, 0.024017333984375, 0.0275115966796875, 0.019134521484375, 0.002933502197265625, 0.0015897750854492188, -0.002132415771484375, -0.01861572265625, 0.0338134765625, 0.00804901123046875, -0.07330322265625, -0.033843994140625, -0.015869140625, 0.0182342529296875, 0.0770263671875, -0.032867431640625, 0.07525634765625, -0.0277862548828125, 0.00913238525390625, -0.0045928955078125, -0.0227508544921875, -0.05865478515625, -0.0132904052734375, 0.07830810546875, -0.018035888671875, 0.02008056640625, -0.006824493408203125, 0.01322174072265625, 0.004703521728515625, -0.017486572265625, 0.01175689697265625, 0.01397705078125, -0.063232421875, 0.0970458984375, 0.100830078125, -0.025146484375, 0.0273895263671875, 0.02703857421875, -0.0216522216796875, 0.01041412353515625, -0.013763427734375, 0.034576416015625, 0.03057861328125, 0.04974365234375, -0.022705078125, -0.0157012939453125, 0.0205841064453125, -0.034820556640625, 0.0179595947265625, 0.044677734375, 0.0655517578125, -0.035888671875, -0.0084075927734375, 0.0236358642578125, -0.04241943359375, 0.00909423828125, 0.004215240478515625, 0.006893157958984375, -0.00749969482421875, 0.0218505859375, 0.00450897216796875, -0.007587432861328125, 0.0202789306640625, 0.01194000244140625, 0.01397705078125, -0.0196685791015625, 0.056640625, -0.00035953521728515625, -0.00384521484375, -0.05206298828125, 0.004177093505859375, 0.0038623809814453125, -0.050933837890625, -0.0185699462890625, 0.03717041015625, -0.0145263671875, -0.08758544921875, 0.0238800048828125, -0.0252532958984375, 0.02001953125, 0.033782958984375, 0.00908660888671875, 0.0095977783203125, 0.04840087890625, -0.01372528076171875, 0.035491943359375, 0.01922607421875, -0.00868988037109375, 0.04736328125, -0.0201416015625, -0.0141754150390625, 0.0137481689453125, -0.045654296875, -0.006931304931640625, -0.0024852752685546875, 0.01335906982421875, -0.0306243896484375, -0.05572509765625, 0.0733642578125, -0.0099945068359375, -0.034912109375, -0.023956298828125, -0.0109100341796875, 0.0210723876953125, 0.0025997161865234375, 0.0467529296875, -0.054229736328125, -0.050628662109375, 0.024078369140625, -0.0684814453125, -0.054046630859375, -0.0023212432861328125, -0.054962158203125, 0.049285888671875, -0.00439453125, 0.0166778564453125, -0.004222869873046875, 0.016571044921875, 0.006816864013671875, 0.0012979507446289062, -0.0255279541015625, 0.06719970703125, 0.01184844970703125, 0.059600830078125, -0.016021728515625, -0.0107574462890625, 0.04534912109375, 0.047515869140625, -0.032684326171875, 0.0006608963012695312, -0.0146331787109375, -0.00818634033203125, 0.022735595703125, 0.012786865234375, 0.012420654296875, 0.0186767578125, 0.00644683837890625, -0.043365478515625, -0.002712249755859375, 0.032989501953125, 0.044189453125, -0.0439453125, -0.023345947265625, 0.008544921875, 0.003894805908203125, 0.0018014907836914062, -0.0010128021240234375, 0.005950927734375, 0.005092620849609375, -0.012847900390625, -0.00913238525390625, -0.0034503936767578125, -0.025787353515625, 0.015869140625, -0.004913330078125, -0.0643310546875, -0.07244873046875, -0.0242919921875, 0.01287078857421875, 0.016693115234375, 0.006282806396484375, 0.0592041015625, 0.033233642578125, 0.00853729248046875, -0.0018835067749023438, 0.0141448974609375, 0.00023639202117919922, 0.0032329559326171875, 0.0421142578125, -0.01509857177734375, 0.01641845703125, -0.08221435546875, -0.064697265625, 0.05694580078125, 0.0897216796875, -0.0262298583984375, -0.042694091796875, 0.015869140625, 0.0184478759765625, 0.001338958740234375, 0.0357666015625, 0.0302276611328125, -0.02703857421875, 0.040008544921875, -0.018157958984375, 0.01238250732421875, 0.032379150390625, 0.04376220703125, 0.017303466796875, 0.049407958984375, -0.0755615234375, 0.0084991455078125, -0.031707763671875, 0.03411865234375, -0.01453399658203125, 0.032928466796875, -0.0067901611328125, 0.06634521484375, -0.0484619140625, -0.00875091552734375, 0.01439666748046875, 0.0311431884765625, -0.01233673095703125, -0.0237884521484375, -0.024627685546875, -0.07452392578125, -0.0003898143768310547, 0.028778076171875, 0.0211639404296875, -0.01543426513671875, 0.01020050048828125, -0.00408935546875, -0.0259246826171875, -0.0122833251953125, 0.012908935546875, -0.016326904296875, -0.031524658203125, 0.0028934478759765625, 0.002964019775390625, 0.04571533203125, 0.001567840576171875, 0.00484466552734375, 0.03839111328125, 0.035186767578125, -0.035888671875, 0.0269775390625, -0.0074310302734375, -0.0281219482421875, 0.009063720703125, 0.003398895263671875, 0.042083740234375, -0.005611419677734375, -0.1207275390625, -0.030517578125, -0.02154541015625, -0.05609130859375, 0.053375244140625, 0.05633544921875, -0.0260009765625, 0.005191802978515625, -0.0023136138916015625, -0.043914794921875, 0.00634765625, 0.0484619140625, -0.00505828857421875, 0.0279388427734375, 0.0181884765625, -0.0155029296875, -0.04876708984375, 0.004985809326171875, -0.027923583984375, 0.022979736328125, 0.0745849609375, -0.0012197494506835938, 0.031768798828125, 0.053924560546875, -0.06256103515625, 0.00014638900756835938, -0.050018310546875, -0.058013916015625, 0.05755615234375, 0.006053924560546875, -0.03045654296875, -0.0017213821411132812, -0.01264190673828125, 0.0184783935546875, 0.049560546875, -0.012237548828125, 0.0251312255859375, -0.00241851806640625, 0.01093292236328125, -0.042877197265625, 0.031524658203125, -0.03240966796875, -0.0130615234375, -0.034027099609375, -0.03375244140625, 0.01495361328125, -0.01378631591796875, 0.0018548965454101562, 0.01036834716796875, 0.0703125, -0.01068115234375, 0.029632568359375, 0.0021038055419921875, 0.04205322265625, 0.026519775390625, 0.038116455078125, 0.0304107666015625, -0.0019254684448242188, -0.0206298828125, 0.012237548828125, 0.006534576416015625, -0.0283966064453125, -0.004528045654296875, -0.05828857421875, 0.06536865234375, 0.01898193359375, 0.044830322265625, -0.0220489501953125, 0.01143646240234375, 0.0276336669921875, 0.01158905029296875, -0.01166534423828125, 0.0124664306640625, -0.039703369140625, -0.072021484375, -0.005565643310546875, 0.01355743408203125, -0.0457763671875, -0.04241943359375, -0.08856201171875, -0.004268646240234375, 0.0222320556640625, 0.0179290771484375, -0.056915283203125, 0.0367431640625, -0.008880615234375, -0.0011930465698242188, 0.0024547576904296875, 0.00667572021484375, -0.005344390869140625, -0.017059326171875, -0.025909423828125, 0.005466461181640625, -0.03533935546875, 0.00928497314453125, -0.0099029541015625, -0.0090179443359375, 0.043914794921875, -0.00616455078125, -0.055694580078125, -0.005176544189453125, -0.01505279541015625, 0.039886474609375, -0.033172607421875, -0.04217529296875, -0.0298309326171875, 0.0182342529296875, 0.01092529296875, -0.032623291015625, -0.0004475116729736328, -0.03277587890625, -0.002246856689453125, 0.0399169921875, -0.036590576171875, -0.019378662109375, -0.051422119140625, -0.06396484375, 0.050140380859375, 0.01971435546875, -0.0411376953125, -0.0105438232421875, 0.0232086181640625, -0.0181427001953125, -0.0031261444091796875, 0.005573272705078125, -0.041351318359375, 0.0106048583984375, 0.027130126953125, -0.0089874267578125, 0.05010986328125, -0.02105712890625, 0.0283050537109375, -0.04132080078125, 0.0164031982421875, -0.0276947021484375, -0.0352783203125, 0.0389404296875, -0.049774169921875, 0.038848876953125, 0.019378662109375, -0.059844970703125, -0.061676025390625, -0.00881195068359375, -0.00885009765625, 0.007720947265625, -0.015472412109375, -0.048065185546875, -0.030426025390625, 0.060089111328125, 0.0369873046875, 0.0240325927734375, 0.003204345703125, 0.0022335052490234375, -0.006343841552734375, 0.00939178466796875, -0.0094757080078125, 0.002040863037109375, -0.025421142578125, -0.0210418701171875, -0.01018524169921875, -0.0160675048828125, -0.0257568359375, -0.005939483642578125, -0.048614501953125, 0.0063018798828125, -0.0009369850158691406, 0.0121002197265625, -0.01491546630859375, -0.05084228515625, 0.052642822265625, -0.03485107421875, -0.040863037109375, 0.016357421875, 0.0298004150390625, -0.0089874267578125, 0.0035495758056640625, -0.035491943359375, 0.031829833984375, -0.0197296142578125, 0.004852294921875, -0.00374603271484375, 0.029632568359375, -0.0159149169921875, 0.04022216796875, 0.005512237548828125, 0.0260162353515625, -0.0009169578552246094, 0.031707763671875, -0.017608642578125, 0.050689697265625, 0.020660400390625, 0.033843994140625, -0.014404296875, 0.0374755859375, -0.002628326416015625, 0.0374755859375, -0.006198883056640625, -0.0302734375, 0.018402099609375, -0.038543701171875, -0.005702972412109375, 0.041717529296875, -0.00215911865234375, -0.03497314453125, 0.007694244384765625, 0.01505279541015625, 0.041534423828125, 0.004352569580078125 ]
8fc0a425a1b5482d7b047d1215b4312663c90c89
Wordpress Stackexchange Q: How do i know the current post type when on post.php in admin? Im trying to do something with an admin_init hook if - and only if - the user is editing a post (post.php) with post type "event". My problem is that, even though wordpress points to a global variable calls $post_type. if i do: global $post_type; var_dump($post_type); It returns NULL. but if I do this: global $pagenow; var_dump($pagenow); it returns my current page. i.e. "post.php". I looked into this function $screen = get_current_screen(); but thats not declared until after the admin_init hooks has run, and then its to late. So my question is, how do I, by the time admin_init is run, find out what post type the current post being edited is. if the url is post.php?post=81&action=edit then, how do I know what post type postid=81 is? Thanks Malthe A: get_current_screen()->post_type holds post type slug. Or $_REQUEST['post_type']. Note that for standard pages/posts post_type might not be set.
Q: How do i know the current post type when on post.php in admin? Im trying to do something with an admin_init hook if - and only if - the user is editing a post (post.php) with post type "event". My problem is that, even though wordpress points to a global variable calls $post_type. if i do: global $post_type; var_dump($post_type); It returns NULL. but if I do this: global $pagenow; var_dump($pagenow); it returns my current page. i.e. "post.php". I looked into this function $screen = get_current_screen(); but thats not declared until after the admin_init hooks has run, and then its to late. So my question is, how do I, by the time admin_init is run, find out what post type the current post being edited is. if the url is post.php?post=81&action=edit then, how do I know what post type postid=81 is? Thanks Malthe A: get_current_screen()->post_type holds post type slug. Or $_REQUEST['post_type']. Note that for standard pages/posts post_type might not be set. A: I am going to expand on MiCc83's answer. There are a few things that don't follow the OP's original questions but overall it's a great solution. For example, it would not work with a post_type event because you are checking the post_type as 'post' in the answer. add_action( 'admin_init', 'do_something_152677' ); function do_something_152677 () { // Global object containing current admin page global $pagenow; // If current page is post.php and post isset than query for its post type if ( 'post.php' === $pagenow && isset($_GET['post']) ){ $post_id = $_GET['post']; // Do something with $post_id. For example, you can get the full post object: $post = get_post($post_id); } } The condition 'post' === get_post_type( $_GET['post'] ) in the previous answer would prevent this from working on a post type 'event'. You would need to check for post type 'event' instead of 'post'. A: add_action( 'admin_init', 'do_something_152677' ); function do_something_152677 () { // Global object containing current admin page global $pagenow; // If current page is post.php and post isset than query for its post type // if the post type is 'event' do something if ( 'post.php' === $pagenow && isset($_GET['post']) && 'post' === get_post_type( $_GET['post'] ) ) // Do something } }
wordpress
{ "language": "en", "length": 365, "provenance": "stackexchange_00019.jsonl.gz:446725", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152677" }
[ 0.0073699951171875, -0.00714874267578125, -0.0171356201171875, 0.0003142356872558594, -0.009185791015625, -0.0233001708984375, 0.036712646484375, -0.0241546630859375, -0.0103912353515625, -0.0114288330078125, 0.004955291748046875, -0.0033931732177734375, -0.032257080078125, -0.0511474609375, 0.03253173828125, -0.0005364418029785156, 0.048858642578125, -0.049285888671875, 0.0236358642578125, -0.0105133056640625, -0.0119781494140625, 0.0100250244140625, 0.06951904296875, 0.0162200927734375, 0.0280303955078125, -0.01491546630859375, 0.040435791015625, -0.007671356201171875, 0.0218505859375, -0.0010061264038085938, 0.016815185546875, -0.025970458984375, 0.007518768310546875, 0.014495849609375, 0.02215576171875, 0.0313720703125, 0.004367828369140625, 0.0180511474609375, 0.06536865234375, -0.0257568359375, 0.0009169578552246094, 0.004055023193359375, 0.0287322998046875, 0.0040130615234375, -0.0144500732421875, -0.0272979736328125, -0.005184173583984375, -0.02618408203125, 0.0092010498046875, -0.0157012939453125, 0.0073394775390625, 0.0165863037109375, 0.0230560302734375, -0.0159149169921875, -0.009185791015625, -0.0092620849609375, -0.0250244140625, 0.0016937255859375, 0.045623779296875, -0.0186004638671875, -0.042694091796875, -0.049041748046875, 0.0404052734375, -0.0292205810546875, -0.014190673828125, -0.0020008087158203125, 0.0543212890625, 0.00829315185546875, -0.046356201171875, -0.0306549072265625, 0.0269622802734375, -0.0016717910766601562, 0.01003265380859375, 0.00009864568710327148, 0.0031642913818359375, -0.05145263671875, 0.05419921875, 0.004467010498046875, -0.0355224609375, 0.029388427734375, 0.018402099609375, 0.0046844482421875, -0.03076171875, 0.0033092498779296875, -0.0075225830078125, 0.01364898681640625, -0.010589599609375, -0.018035888671875, -0.02105712890625, -0.037689208984375, -0.03350830078125, 0.0102691650390625, -0.0034542083740234375, -0.0114898681640625, -0.032073974609375, -0.0153045654296875, 0.02423095703125, 0.031494140625, 0.0155487060546875, 0.005279541015625, -0.0191802978515625, -0.02978515625, 0.008270263671875, -0.033294677734375, 0.046905517578125, 0.035064697265625, -0.023834228515625, -0.017333984375, 0.06939697265625, 0.006465911865234375, 0.00409698486328125, 0.048980712890625, -0.0386962890625, 0.0171661376953125, -0.045074462890625, 0.0159149169921875, -0.056396484375, -0.00896453857421875, -0.01445770263671875, 0.03955078125, 0.0269012451171875, 0.04608154296875, 0.040802001953125, -0.0301513671875, 0.0087127685546875, 0.0247039794921875, -0.03680419921875, -0.07037353515625, 0.0133209228515625, 0.016082763671875, -0.044189453125, 0.01904296875, 0.07476806640625, 0.004871368408203125, 0.0010919570922851562, -0.01398468017578125, -0.01910400390625, -0.0411376953125, -0.0209503173828125, 0.0126495361328125, -0.013885498046875, -0.01336669921875, 0.01174163818359375, -0.034149169921875, -0.008087158203125, 0.044921875, 0.007358551025390625, -0.016998291015625, -0.012603759765625, -0.039093017578125, -0.01313018798828125, -0.0501708984375, 0.025146484375, 0.027862548828125, -0.0049896240234375, -0.007373809814453125, 0.056884765625, -0.0304718017578125, -0.025634765625, -0.06048583984375, 0.024261474609375, -0.0205230712890625, 0.0181884765625, -0.0202178955078125, -0.04803466796875, 0.04608154296875, -0.06793212890625, -0.0200042724609375, 0.0171051025390625, -0.0233917236328125, 0.0584716796875, 0.0234375, 0.0184783935546875, 0.003078460693359375, 0.000652313232421875, -0.032958984375, -0.0218658447265625, -0.025360107421875, 0.056121826171875, 0.02679443359375, -0.0117034912109375, -0.00453948974609375, 0.0271759033203125, -0.005199432373046875, -0.033782958984375, 0.0321044921875, 0.0158538818359375, 0.0010528564453125, -0.001739501953125, -0.006107330322265625, 0.036376953125, 0.054443359375, -0.01488494873046875, 0.006565093994140625, -0.0116729736328125, -0.011993408203125, -0.0141448974609375, 0.01099395751953125, -0.0311279296875, -0.001407623291015625, 0.01160430908203125, 0.00923919677734375, -0.004100799560546875, -0.01009368896484375, -0.07550048828125, 0.01067352294921875, -0.0212554931640625, 0.061370849609375, 0.03436279296875, 0.004299163818359375, 0.002468109130859375, -0.0047454833984375, -0.01641845703125, -0.0180816650390625, -0.04058837890625, 0.054718017578125, -0.01250457763671875, 0.01438140869140625, -0.037841796875, 0.052642822265625, -0.06353759765625, -0.007904052734375, -0.06591796875, -0.015869140625, 0.033203125, 0.03997802734375, -0.01079559326171875, 0.0099029541015625, 0.06439208984375, 0.0355224609375, 0.0028076171875, -0.0180206298828125, -0.0303802490234375, -0.014862060546875, -0.0250091552734375, -0.0258026123046875, -0.0004241466522216797, -0.06317138671875, 0.025390625, 0.06109619140625, 0.03851318359375, 0.0297393798828125, 0.0019006729125976562, 0.002655029296875, 0.038848876953125, -0.0226898193359375, 0.032989501953125, -0.027496337890625, 0.00904083251953125, 0.052703857421875, 0.01035308837890625, 0.04412841796875, 0.0080413818359375, 0.0240631103515625, 0.0265045166015625, 0.03570556640625, 0.007442474365234375, -0.001056671142578125, 0.0220794677734375, 0.018951416015625, -0.022003173828125, -0.002285003662109375, -0.004589080810546875, -0.01103973388671875, 0.07403564453125, 0.01513671875, 0.05633544921875, 0.045684814453125, -0.06915283203125, 0.007045745849609375, 0.024322509765625, 0.054473876953125, 0.00173187255859375, 0.03546142578125, 0.035736083984375, -0.0146484375, -0.048828125, -0.01271820068359375, 0.01418304443359375, 0.0121002197265625, -0.05389404296875, -0.0296783447265625, -0.054901123046875, -0.0123443603515625, -0.0265350341796875, -0.03955078125, 0.0321044921875, 0.005863189697265625, 0.03558349609375, 0.00218963623046875, 0.0340576171875, -0.006534576416015625, -0.062255859375, 0.08087158203125, -0.021820068359375, -0.03753662109375, 0.0159912109375, -0.03765869140625, 0.044677734375, -0.02960205078125, 0.062255859375, 0.058258056640625, -0.02484130859375, 0.027069091796875, 0.0010290145874023438, -0.012176513671875, -0.0002808570861816406, -0.0022029876708984375, -0.0023651123046875, -0.01258087158203125, -0.048614501953125, 0.0216827392578125, 0.006641387939453125, 0.033203125, -0.01250457763671875, -0.046539306640625, 0.00737762451171875, 0.0032520294189453125, -0.0672607421875, -0.043975830078125, -0.02825927734375, -0.07421875, -0.0031337738037109375, -0.059051513671875, -0.0262298583984375, 0.0142669677734375, -0.042633056640625, 0.01470184326171875, 0.009429931640625, -0.030242919921875, -0.0322265625, -0.034576416015625, -0.0552978515625, -0.028533935546875, -0.005985260009765625, -0.003894805908203125, 0.00189208984375, 0.06756591796875, 0.0264129638671875, -0.037353515625, 0.007801055908203125, 0.057708740234375, -0.0204010009765625, 0.00208282470703125, -0.0008139610290527344, -0.042327880859375, 0.034423828125, 0.018524169921875, -0.01366424560546875, -0.00580596923828125, 0.02801513671875, -0.041107177734375, -0.0140533447265625, -0.008392333984375, 0.013397216796875, 0.0131683349609375, 0.01049041748046875, -0.00806427001953125, 0.0180511474609375, -0.0496826171875, -0.0165863037109375, -0.00936126708984375, -0.04498291015625, 0.03863525390625, 0.0235595703125, -0.0221405029296875, 0.0187530517578125, -0.004734039306640625, -0.00991058349609375, -0.006702423095703125, 0.0175628662109375, -0.033477783203125, 0.038848876953125, 0.0037975311279296875, -0.00437164306640625, -0.005340576171875, -0.007171630859375, -0.005992889404296875, 0.037200927734375, 0.0025424957275390625, 0.0196685791015625, 0.0026416778564453125, 0.01561737060546875, -0.00843048095703125, -0.08026123046875, 0.044342041015625, -0.017181396484375, -0.0189361572265625, -0.0267791748046875, -0.025726318359375, 0.005382537841796875, 0.07757568359375, -0.05291748046875, -0.01267242431640625, -0.0218963623046875, 0.01163482666015625, -0.042510986328125, -0.056884765625, -0.035247802734375, -0.006557464599609375, -0.08270263671875, 0.026123046875, -0.00794219970703125, 0.003772735595703125, -0.037078857421875, 0.064697265625, -0.055999755859375, -0.04443359375, 0.0452880859375, -0.051361083984375, 0.01372528076171875, 0.032135009765625, -0.02252197265625, 0.0253448486328125, -0.050872802734375, -0.0423583984375, -0.081787109375, -0.0153656005859375, -0.00299835205078125, 0.051239013671875, -0.000007331371307373047, -0.02130126953125, -0.017608642578125, 0.0195770263671875, 0.027099609375, -0.014129638671875, 0.0008859634399414062, -0.016021728515625, 0.0026798248291015625, -0.0193023681640625, -0.0175323486328125, -0.0203857421875, -0.012908935546875, 0.004497528076171875, -0.02996826171875, 0.013763427734375, -0.0251007080078125, -0.050201416015625, 0.0126495361328125, -0.0308837890625, -0.052459716796875, -0.004726409912109375, -0.00658416748046875, 0.0347900390625, -0.014801025390625, 0.01776123046875, -0.0248870849609375, -0.0924072265625, 0.045745849609375, -0.011077880859375, -0.01229095458984375, -0.004638671875, 0.06549072265625, 0.01611328125, -0.023834228515625, -0.0031147003173828125, 0.00970458984375, 0.039276123046875, 0.0124969482421875, 0.05072021484375, 0.03851318359375, -0.0147857666015625, 0.0213470458984375, 0.047149658203125, -0.0243072509765625, -0.0214080810546875, 0.049835205078125, 0.00525665283203125, 0.0008711814880371094, -0.0203857421875, -0.049957275390625, 0.062408447265625, -0.00667572021484375, -0.032257080078125, -0.01354217529296875, 0.001079559326171875, 0.052978515625, -0.056549072265625, 0.09490966796875, -0.0224761962890625, -0.028961181640625, 0.01043701171875, 0.0014162063598632812, -0.0011501312255859375, 0.03204345703125, -0.01407623291015625, 0.01314544677734375, 0.003299713134765625, -0.00423431396484375, 0.01019287109375, 0.056121826171875, -0.0010547637939453125, 0.0241546630859375, 0.019744873046875, 0.00156402587890625, -0.0296173095703125, 0.005939483642578125, -0.002887725830078125, -0.045806884765625, -0.057891845703125, -0.036346435546875, -0.0129852294921875, 0.004642486572265625, 0.0341796875, -0.0290985107421875, -0.005550384521484375, 0.032623291015625, -0.00475311279296875, -0.0159149169921875, -0.015106201171875, 0.0257568359375, -0.022430419921875, 0.0022830963134765625, 0.00020778179168701172, 0.004489898681640625, 0.02618408203125, 0.050537109375, 0.0182952880859375, 0.031402587890625, -0.0232391357421875, 0.0265960693359375, 0.042144775390625, 0.02410888671875, 0.0274658203125, -0.0023555755615234375, -0.0179901123046875, 0.005008697509765625, 0.00263214111328125, -0.02484130859375, -0.00597381591796875, 0.0207366943359375, 0.044189453125, -0.0222320556640625, -0.01497650146484375, 0.014556884765625, -0.01235198974609375, -0.021453857421875, 0.041534423828125, 0.0289459228515625, -0.059722900390625, -0.0181732177734375, 0.043487548828125, 0.043548583984375, -0.017242431640625, -0.021881103515625, 0.039215087890625, -0.0177459716796875, 0.0247650146484375, -0.0185546875, -0.042999267578125, 0.0228729248046875, 0.03857421875, -0.055206298828125, -0.040130615234375, -0.00499725341796875, -0.03240966796875, -0.01035308837890625, -0.0047760009765625, -0.011627197265625, 0.0216064453125, -0.00237274169921875, 0.01593017578125, -0.0181884765625, -0.0194854736328125, -0.003856658935546875, 0.0008082389831542969, 0.051727294921875, 0.005748748779296875, -0.025054931640625, 0.0161590576171875, -0.06341552734375, -0.015228271484375, -0.00855255126953125, -0.04144287109375, -0.033111572265625, -0.01380157470703125, -0.017333984375, 0.022979736328125, -0.0159912109375, 0.0182952880859375, -0.0129852294921875, 0.0175933837890625, -0.003936767578125, 0.056915283203125, 0.01039886474609375, 0.07489013671875, -0.026611328125, 0.0216827392578125, -0.00007551908493041992, 0.01849365234375, -0.05230712890625, 0.0196075439453125, 0.00287628173828125, -0.02685546875, -0.0095672607421875, 0.002971649169921875, 0.024078369140625, -0.0091094970703125, 0.00743865966796875, -0.009918212890625, -0.0188140869140625, 0.02349853515625, 0.008819580078125, -0.019989013671875, -0.01493072509765625, 0.04632568359375, -0.000980377197265625, 0.01242828369140625, -0.0057830810546875, -0.00870513916015625, -0.0205230712890625, 0.0200653076171875, -0.0162353515625, -0.014434814453125, -0.0140380859375, 0.0195159912109375, -0.033416748046875, 0.03314208984375, 0.08367919921875, 0.0200653076171875, 0.06988525390625, 0.00433349609375, 0.028167724609375, 0.051971435546875, 0.01090240478515625, -0.01174163818359375, -0.01030731201171875, 0.035186767578125, 0.0123443603515625, 0.00708770751953125, 0.0299530029296875, -0.00780487060546875, -0.0005526542663574219, 0.05535888671875, 0.07012939453125, -0.09075927734375, 0.0211639404296875, 0.042633056640625, 0.01187896728515625, -0.0019588470458984375, -0.0157318115234375, -0.0148162841796875, -0.019744873046875, 0.037261962890625, -0.049285888671875, -0.048614501953125, 0.00550079345703125, -0.0204315185546875, -0.005214691162109375, -0.023590087890625, 0.0828857421875, 0.01303863525390625, 0.00786590576171875, -0.005672454833984375, -0.007160186767578125, 0.00536346435546875, -0.02569580078125, 0.0206756591796875, -0.024810791015625, -0.007671356201171875, -0.068359375, -0.01255035400390625, -0.0074005126953125, -0.003749847412109375, 0.00717926025390625, 0.007171630859375, 0.016082763671875, 0.045501708984375, -0.015716552734375, 0.0011777877807617188, 0.0227813720703125, -0.0173797607421875, -0.087890625, -0.03802490234375, -0.013916015625, 0.06231689453125, -0.005046844482421875, 0.037872314453125, -0.0166015625, -0.01554107666015625, -0.00772857666015625, -0.0227203369140625, 0.07598876953125, -0.06341552734375, -0.005695343017578125, 0.0347900390625, -0.01336669921875, -0.01404571533203125, 0.012939453125, -0.0219573974609375, -0.0016450881958007812, 0.00643157958984375, -0.0150909423828125, -0.05364990234375, -0.0051116943359375, -0.01169586181640625, -0.0531005859375, 0.043121337890625, -0.005199432373046875, 0.023223876953125, 0.0132293701171875, 0.0020427703857421875, -0.019195556640625, -0.021636962890625, -0.04937744140625, 0.037506103515625, -0.0074462890625, 0.04547119140625, -0.07830810546875, -0.004299163818359375, -0.0052947998046875, 0.017852783203125, 0.07342529296875, 0.009246826171875, -0.0086669921875, 0.0232696533203125, 0.07391357421875, 0.026702880859375, -0.01361083984375, 0.0194244384765625, 0.028350830078125, 0.005458831787109375, 0.051513671875, -0.00705718994140625, 0.03436279296875, -0.0170135498046875, 0.00897216796875, 0.040557861328125, 0.0097503662109375, -0.00042319297790527344, -0.005748748779296875, -0.015655517578125, -0.0219268798828125, -0.005710601806640625, 0.006992340087890625, 0.0008697509765625, 0.0180816650390625, 0.035888671875, 0.04931640625, -0.06878662109375, 0.0167999267578125, -0.04217529296875, 0.056304931640625, -0.00507354736328125, -0.01092529296875, 0.02001953125, 0.02313232421875, -0.00888824462890625, -0.042724609375, -0.01206207275390625, -0.0029773712158203125, -0.032073974609375, 0.040374755859375, 0.0295257568359375, 0.024383544921875, -0.0135955810546875, 0.004665374755859375, 0.0504150390625, 0.054931640625, -0.0401611328125, -0.055694580078125, 0.0126190185546875, 0.018768310546875, 0.006755828857421875, 0.020721435546875, 0.016571044921875, 0.018280029296875, 0.06439208984375, -0.0321044921875, -0.02886962890625, 0.0221405029296875, 0.06976318359375, 0.0021877288818359375, 0.0216064453125, -0.062042236328125, -0.068359375, -0.0767822265625, 0.01340484619140625, 0.044281005859375, 0.07275390625, 0.00007283687591552734, 0.058349609375, 0.01242828369140625, -0.018524169921875, -0.01348876953125, -0.006076812744140625, -0.0087432861328125, 0.0251007080078125, -0.04052734375, -0.0187225341796875, 0.0127105712890625, 0.0394287109375, 0.0218505859375, 0.0099029541015625, 0.0284881591796875, 0.013916015625, -0.01166534423828125, -0.00798797607421875, 0.0141754150390625, -0.01428985595703125, -0.01885986328125, -0.0286865234375, -0.03460693359375, -0.0220489501953125, -0.01172637939453125, 0.0039215087890625, 0.008880615234375, -0.01141357421875, 0.001644134521484375, 0.0232696533203125, 0.008392333984375, -0.01364898681640625, 0.0223846435546875, 0.02740478515625, 0.047271728515625, 0.04168701171875, -0.07440185546875, -0.004787445068359375, -0.06109619140625, -0.067138671875, 0.055145263671875, 0.047943115234375, -0.024200439453125, 0.00817108154296875, 0.019622802734375, 0.00708770751953125, -0.0245819091796875, 0.0104217529296875, 0.01023101806640625, -0.00986480712890625, 0.02215576171875, 0.0281219482421875, -0.028289794921875, -0.020904541015625, -0.020721435546875, 0.019683837890625, 0.01715087890625, 0.040496826171875, -0.00202178955078125, 0.02911376953125, -0.0138397216796875, 0.056182861328125, -0.07586669921875, -0.0174560546875, 0.00905609130859375, -0.02386474609375, 0.0193939208984375, 0.00928497314453125, -0.0323486328125, 0.0102386474609375, 0.04986572265625, -0.01235198974609375, -0.0198516845703125, 0.01195526123046875, 0.031829833984375, 0.0017709732055664062, 0.0201263427734375, -0.0117034912109375, 0.018798828125, 0.0200347900390625, -0.02239990234375, 0.0300750732421875, 0.0034942626953125, 0.01364898681640625, 0.01605224609375, 0.0103759765625, -0.045257568359375, 0.0021152496337890625, 0.000659942626953125, -0.030426025390625, 0.012908935546875, 0.01467132568359375, -0.017181396484375, 0.044830322265625, 0.0032558441162109375, 0.01361083984375, 0.042633056640625, 0.0277557373046875, 0.027069091796875, 0.0129852294921875, 0.046661376953125, -0.0300140380859375, 0.035858154296875, -0.01763916015625, -0.012969970703125, 0.004695892333984375, 0.022430419921875, -0.003818511962890625, -0.040496826171875, -0.0158538818359375, -0.047943115234375, -0.00272369384765625, 0.0137939453125, -0.00811767578125, -0.027862548828125, -0.01474761962890625, -0.01168060302734375, 0.03375244140625, -0.0101165771484375, -0.0156707763671875, 0.006221771240234375, -0.04754638671875, 0.0106048583984375, 0.0069427490234375, -0.0269622802734375, 0.0291595458984375, 0.036590576171875, -0.0094146728515625, 0.01168060302734375, -0.0154266357421875, -0.005779266357421875, 0.0101165771484375, 0.0389404296875, 0.047149658203125, -0.04205322265625, -0.059112548828125, 0.0191650390625, 0.0247955322265625, 0.0556640625, 0.013641357421875, -0.0180511474609375, 0.012481689453125, 0.0290985107421875, -0.0221710205078125, -0.04254150390625, -0.0018701553344726562, -0.0140838623046875, 0.0104217529296875, -0.007167816162109375, 0.0207061767578125, 0.034423828125, -0.019622802734375, -0.053619384765625, 0.0711669921875, -0.018341064453125, -0.0272216796875, -0.04693603515625, 0.0190582275390625, 0.02337646484375, -0.0054168701171875, -0.0151519775390625, -0.0338134765625, -0.034912109375, -0.00007516145706176758, 0.00022554397583007812, -0.007465362548828125, 0.047576904296875, -0.0357666015625, -0.05059814453125, -0.0223846435546875, -0.01465606689453125, 0.003704071044921875, 0.007274627685546875, -0.004207611083984375, 0.0022525787353515625, 0.023529052734375, -0.0577392578125, 0.02197265625, -0.0185089111328125, 0.0631103515625, -0.015777587890625, -0.05108642578125, -0.054290771484375, -0.032318115234375, 0.10101318359375, 0.0628662109375, 0.030670166015625, -0.027313232421875, -0.0182952880859375, -0.037322998046875, -0.08880615234375, -0.01568603515625, 0.053070068359375, -0.08099365234375, 0.0125885009765625, 0.01454925537109375, 0.0014848709106445312, -0.04376220703125, 0.030670166015625, -0.01666259765625, -0.0203704833984375, 0.00800323486328125, -0.00799560546875, -0.01702880859375, 0.004833221435546875, 0.00894927978515625, -0.01445770263671875, 0.025665283203125, -0.01041412353515625, 0.01242828369140625, 0.02532958984375, 0.01556396484375, 0.0003154277801513672, 0.01032257080078125, -0.04791259765625, 0.01263427734375, -0.0168609619140625, -0.00331878662109375, -0.047088623046875, -0.00670623779296875, 0.003925323486328125, 0.00201416015625, -0.0159759521484375, -0.0018463134765625, -0.000023603439331054688, 0.049072265625, -0.01580810546875, 0.027252197265625, 0.01641845703125, 0.01502227783203125, 0.0026073455810546875, 0.04437255859375, 0.005939483642578125, -0.037109375, 0.04132080078125, -0.06878662109375, -0.0045623779296875, 0.0150299072265625, -0.040740966796875, -0.057861328125, 0.00933074951171875, 0.020751953125, 0.006011962890625, 0.0213165283203125 ]
79302d183c1c534d64a40f8b0780b8b934823cb4
Wordpress Stackexchange Q: Hook into $wpdb Is there a way to hook into the WPDB instance ($wpdb)? What i basically want, is to execute a own function BEFORE the desired query get's executed. Is this possible? Additional question for comment to first answer: $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "test WHERE type = %s and ip = %s", $type, $ip_full_log); $fetch = $wpdb->get_results($query, ARRAY_A); Would this parse the final query to my callback function? A: query - you will get sql as argument of the callback. add_filter('query', 'some_callback_that_change_query'); function some_callback_that_change_query($sql){ remove_filter('query', 'some_callback_that_change_query'); // your banny wrote add_filter('query', 'some_callback_that_change_query'); return $sql; }
Q: Hook into $wpdb Is there a way to hook into the WPDB instance ($wpdb)? What i basically want, is to execute a own function BEFORE the desired query get's executed. Is this possible? Additional question for comment to first answer: $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "test WHERE type = %s and ip = %s", $type, $ip_full_log); $fetch = $wpdb->get_results($query, ARRAY_A); Would this parse the final query to my callback function? A: query - you will get sql as argument of the callback. add_filter('query', 'some_callback_that_change_query'); function some_callback_that_change_query($sql){ remove_filter('query', 'some_callback_that_change_query'); // your banny wrote add_filter('query', 'some_callback_that_change_query'); return $sql; }
wordpress
{ "language": "en", "length": 102, "provenance": "stackexchange_00019.jsonl.gz:446750", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152770" }
[ 0.0694580078125, 0.0298309326171875, -0.01459503173828125, -0.052520751953125, 0.043731689453125, -0.04107666015625, 0.034271240234375, -0.023681640625, -0.005077362060546875, 0.01534271240234375, -0.028350830078125, 0.026519775390625, -0.031402587890625, -0.006694793701171875, -0.0024871826171875, -0.03253173828125, 0.049957275390625, -0.04620361328125, 0.020721435546875, 0.006893157958984375, 0.00909423828125, 0.0404052734375, 0.0219268798828125, 0.0570068359375, 0.032257080078125, -0.0147705078125, 0.0791015625, -0.006725311279296875, 0.04095458984375, 0.01250457763671875, 0.028594970703125, -0.07421875, 0.007472991943359375, 0.08197021484375, -0.073974609375, 0.058624267578125, 0.05853271484375, 0.01062774658203125, -0.00218963623046875, 0.09326171875, 0.0284576416015625, -0.013885498046875, -0.0251617431640625, 0.046417236328125, -0.03851318359375, -0.061431884765625, 0.06573486328125, 0.00800323486328125, 0.02435302734375, -0.00605010986328125, 0.01136016845703125, 0.018798828125, 0.021575927734375, -0.01788330078125, -0.010589599609375, 0.0295867919921875, -0.031829833984375, 0.00931549072265625, 0.014068603515625, 0.03857421875, -0.0064239501953125, 0.00461578369140625, -0.0008263587951660156, -0.0282745361328125, 0.004467010498046875, 0.02996826171875, 0.041717529296875, -0.001922607421875, -0.003498077392578125, -0.00482940673828125, -0.01041412353515625, -0.016448974609375, -0.035858154296875, 0.033477783203125, -0.034088134765625, -0.022613525390625, 0.05426025390625, -0.013214111328125, -0.00958251953125, 0.059722900390625, 0.035888671875, -0.031951904296875, -0.0266265869140625, 0.01297760009765625, 0.00376129150390625, 0.02691650390625, 0.0025081634521484375, -0.0178985595703125, -0.0257568359375, -0.02203369140625, -0.0162200927734375, 0.0221405029296875, -0.04998779296875, -0.0022430419921875, -0.0076751708984375, -0.03546142578125, -0.014190673828125, -0.0089874267578125, -0.007965087890625, 0.006591796875, -0.00836181640625, -0.00733184814453125, -0.026611328125, -0.001834869384765625, -0.0015802383422851562, 0.01175689697265625, 0.004730224609375, -0.01557159423828125, 0.0069732666015625, 0.0276641845703125, -0.00897979736328125, -0.0125579833984375, -0.0089874267578125, 0.027557373046875, -0.033935546875, -0.010833740234375, -0.02294921875, -0.02777099609375, -0.032623291015625, -0.036895751953125, -0.00435638427734375, -0.0088653564453125, -0.007633209228515625, 0.01436614990234375, 0.00566864013671875, -0.0191497802734375, -0.022186279296875, 0.01152801513671875, -0.01378631591796875, 0.0178375244140625, -0.02734375, 0.004253387451171875, 0.07470703125, 0.04302978515625, 0.019195556640625, -0.01200103759765625, 0.023590087890625, 0.0172119140625, 0.01654052734375, -0.00024378299713134766, 0.03204345703125, -0.049285888671875, -0.07928466796875, 0.03106689453125, 0.0303955078125, -0.0212860107421875, 0.00909423828125, 0.03607177734375, 0.004238128662109375, 0.0287322998046875, 0.03509521484375, -0.0230865478515625, -0.0046539306640625, 0.02606201171875, 0.02374267578125, 0.00829315185546875, 0.01593017578125, -0.0115966796875, -0.002712249755859375, 0.0025882720947265625, -0.0001913309097290039, -0.03643798828125, -0.00399017333984375, -0.0273895263671875, -0.0321044921875, 0.04095458984375, -0.054962158203125, 0.01061248779296875, 0.0217742919921875, 0.017547607421875, 0.027252197265625, 0.00362396240234375, 0.0161285400390625, 0.0276947021484375, 0.005828857421875, 0.0016632080078125, -0.01220703125, 0.02154541015625, 0.04583740234375, -0.04693603515625, -0.0128936767578125, -0.0235748291015625, 0.08984375, -0.02374267578125, -0.04937744140625, 0.07769775390625, 0.0064544677734375, 0.074951171875, -0.00011855363845825195, 0.016754150390625, -0.0078125, 0.053558349609375, -0.0323486328125, 0.0290679931640625, -0.011749267578125, -0.034210205078125, -0.006893157958984375, -0.007381439208984375, -0.0210113525390625, -0.001041412353515625, 0.0118560791015625, 0.0181427001953125, -0.0251312255859375, -0.02960205078125, -0.08099365234375, -0.0128326416015625, -0.0214996337890625, 0.049530029296875, 0.058807373046875, 0.02117919921875, -0.0093536376953125, 0.032806396484375, -0.0235748291015625, -0.036376953125, -0.06884765625, -0.0047760009765625, -0.026031494140625, 0.0693359375, 0.002475738525390625, 0.057373046875, -0.004364013671875, -0.041046142578125, -0.008331298828125, -0.037017822265625, 0.0196075439453125, -0.036895751953125, 0.0030307769775390625, -0.0297088623046875, 0.016876220703125, 0.005367279052734375, -0.005695343017578125, 0.007266998291015625, 0.0024166107177734375, 0.042572021484375, 0.0061187744140625, -0.019134521484375, 0.00251007080078125, -0.08050537109375, 0.02484130859375, 0.04888916015625, 0.041534423828125, 0.0249176025390625, 0.0074615478515625, -0.00688934326171875, 0.0028400421142578125, -0.0435791015625, 0.0313720703125, -0.042724609375, 0.005199432373046875, -0.0029754638671875, -0.01824951171875, -0.0123291015625, 0.047027587890625, -0.00893402099609375, 0.0026226043701171875, 0.035675048828125, 0.00815582275390625, 0.01445770263671875, -0.01357269287109375, -0.0012979507446289062, 0.001384735107421875, 0.01300811767578125, -0.005779266357421875, 0.009429931640625, 0.022552490234375, -0.04864501953125, 0.039520263671875, 0.0246124267578125, 0.042755126953125, -0.07049560546875, -0.007137298583984375, -0.0223236083984375, 0.0027179718017578125, 0.015716552734375, -0.032928466796875, -0.017364501953125, -0.023712158203125, 0.0116119384765625, 0.00045228004455566406, -0.002483367919921875, -0.0020904541015625, 0.058990478515625, -0.048492431640625, -0.024810791015625, -0.0269012451171875, 0.00016582012176513672, -0.02545166015625, -0.0129241943359375, 0.00196075439453125, -0.005352020263671875, 0.032867431640625, -0.0021305084228515625, -0.034332275390625, 0.04388427734375, -0.037445068359375, -0.0276031494140625, 0.0089111328125, -0.021484375, 0.0212249755859375, -0.025299072265625, 0.034027099609375, 0.06915283203125, 0.0033626556396484375, -0.001461029052734375, 0.0160980224609375, -0.05426025390625, 0.023284912109375, 0.004199981689453125, -0.0016269683837890625, -0.000598907470703125, -0.06341552734375, 0.0228729248046875, 0.0193023681640625, 0.0623779296875, -0.0157623291015625, -0.0418701171875, -0.00640869140625, 0.01690673828125, -0.0271759033203125, -0.0540771484375, 0.01800537109375, -0.01329803466796875, 0.029541015625, -0.029449462890625, 0.00823974609375, -0.0195465087890625, -0.03765869140625, 0.0024547576904296875, -0.010284423828125, -0.04290771484375, -0.062255859375, -0.07843017578125, -0.070556640625, 0.036895751953125, -0.00017774105072021484, 0.0226898193359375, 0.01168060302734375, 0.040740966796875, 0.0036468505859375, -0.03411865234375, 0.00780487060546875, 0.003513336181640625, -0.0205230712890625, 0.0004897117614746094, -0.003448486328125, -0.02667236328125, 0.042327880859375, -0.0134429931640625, 0.009765625, 0.019683837890625, 0.01116943359375, -0.01129913330078125, 0.01071929931640625, 0.01113128662109375, 0.036041259765625, 0.0245361328125, -0.0230865478515625, 0.0158843994140625, 0.0517578125, -0.035614013671875, 0.043975830078125, -0.01042938232421875, 0.006015777587890625, -0.047332763671875, -0.040283203125, -0.0164947509765625, 0.0007967948913574219, 0.004009246826171875, 0.037841796875, 0.0164031982421875, -0.0203094482421875, -0.00446319580078125, 0.042205810546875, 0.0008053779602050781, 0.035247802734375, -0.02105712890625, 0.0245819091796875, -0.0092620849609375, 0.00983428955078125, 0.00745391845703125, 0.0273590087890625, -0.0005083084106445312, 0.019439697265625, -0.033203125, -0.0247802734375, 0.054779052734375, 0.007778167724609375, -0.006969451904296875, -0.01457977294921875, -0.0269622802734375, 0.01448822021484375, 0.08148193359375, -0.04571533203125, -0.0015716552734375, -0.01326751708984375, 0.011383056640625, -0.058685302734375, -0.04254150390625, -0.057464599609375, 0.0143585205078125, -0.0634765625, 0.01104736328125, -0.00861358642578125, -0.00968170166015625, -0.0161285400390625, -0.00691986083984375, -0.0303955078125, -0.04974365234375, 0.0372314453125, -0.005329132080078125, -0.018585205078125, 0.0589599609375, -0.045379638671875, 0.038543701171875, -0.0250396728515625, -0.009857177734375, -0.11767578125, -0.01593017578125, -0.046417236328125, 0.07989501953125, 0.0292816162109375, -0.04058837890625, -0.023590087890625, 0.0323486328125, -0.0021877288818359375, -0.039154052734375, 0.039794921875, 0.032745361328125, -0.022491455078125, -0.013153076171875, 0.00970458984375, -0.042236328125, 0.01123046875, -0.00252532958984375, -0.0206756591796875, 0.0243072509765625, -0.035247802734375, 0.0066986083984375, -0.018829345703125, -0.023223876953125, -0.005847930908203125, -0.032196044921875, -0.02813720703125, 0.044586181640625, -0.0238037109375, 0.0096282958984375, -0.04498291015625, -0.02972412109375, 0.01016998291015625, -0.006160736083984375, 0.007221221923828125, 0.013214111328125, 0.050201416015625, 0.01947021484375, -0.016265869140625, -0.0184783935546875, -0.0231781005859375, 0.00989532470703125, -0.0123138427734375, 0.057861328125, 0.0252227783203125, -0.004791259765625, 0.046142578125, -0.0114288330078125, 0.018280029296875, -0.0301971435546875, 0.055328369140625, 0.031463623046875, 0.018096923828125, 0.006072998046875, 0.03485107421875, -0.0294189453125, 0.003505706787109375, -0.007617950439453125, -0.025115966796875, 0.0328369140625, 0.020538330078125, -0.02984619140625, 0.058319091796875, -0.003925323486328125, -0.0105438232421875, 0.0026988983154296875, 0.01230621337890625, 0.038330078125, 0.0106658935546875, 0.00933837890625, -0.00890350341796875, -0.00933074951171875, 0.019500732421875, 0.0002727508544921875, 0.00965118408203125, -0.0273590087890625, 0.061279296875, -0.01715087890625, 0.01641845703125, -0.0061798095703125, 0.0018930435180664062, 0.0136566162109375, -0.01456451416015625, -0.038421630859375, -0.007152557373046875, -0.02337646484375, 0.00792694091796875, 0.0184326171875, 0.0001074671745300293, 0.038818359375, 0.0167236328125, -0.0176849365234375, -0.009765625, -0.028594970703125, -0.028289794921875, -0.040557861328125, 0.01678466796875, 0.0162811279296875, -0.006824493408203125, 0.0156097412109375, 0.01001739501953125, 0.00797271728515625, 0.0036449432373046875, -0.005535125732421875, 0.0562744140625, -0.006984710693359375, 0.0121917724609375, 0.007251739501953125, 0.006084442138671875, 0.0235748291015625, -0.00847625732421875, -0.006443023681640625, -0.01338958740234375, -0.004634857177734375, 0.00952911376953125, -0.0144500732421875, -0.01482391357421875, 0.006832122802734375, 0.0362548828125, 0.019805908203125, -0.015625, 0.06231689453125, 0.07281494140625, -0.01155853271484375, -0.048980712890625, -0.050201416015625, 0.0228118896484375, 0.0153045654296875, 0.01520538330078125, -0.0036640167236328125, 0.005329132080078125, 0.0285186767578125, -0.0472412109375, 0.013763427734375, -0.0072479248046875, -0.010162353515625, 0.0142974853515625, -0.018890380859375, -0.0213470458984375, 0.02215576171875, 0.007549285888671875, -0.0135498046875, -0.01467132568359375, 0.0153961181640625, -0.031036376953125, 0.03662109375, -0.053253173828125, 0.00986480712890625, -0.051483154296875, -0.0117340087890625, 0.08489990234375, 0.06756591796875, -0.006572723388671875, 0.004833221435546875, -0.035858154296875, -0.01329803466796875, 0.016693115234375, -0.0455322265625, -0.0243377685546875, -0.04656982421875, 0.040557861328125, 0.02972412109375, 0.02386474609375, -0.0224761962890625, -0.0025920867919921875, -0.0216217041015625, -0.01080322265625, -0.0029582977294921875, -0.0246124267578125, 0.09100341796875, -0.0240325927734375, 0.03387451171875, 0.0092926025390625, 0.026580810546875, -0.01210784912109375, 0.0045318603515625, -0.00981903076171875, -0.055267333984375, 0.00130462646484375, 0.0018100738525390625, -0.00901031494140625, 0.01016998291015625, 0.0181121826171875, 0.0036411285400390625, 0.040435791015625, -0.0092620849609375, 0.0033016204833984375, 0.001697540283203125, 0.00853729248046875, -0.025299072265625, -0.0102081298828125, 0.04669189453125, -0.00829315185546875, -0.007442474365234375, -0.0183868408203125, -0.005035400390625, 0.0172271728515625, -0.012603759765625, -0.00708770751953125, 0.00342559814453125, -0.0278167724609375, 0.0220184326171875, 0.04278564453125, 0.011962890625, 0.05328369140625, -0.028076171875, 0.019561767578125, 0.0270538330078125, 0.01287841796875, -0.0333251953125, -0.0096893310546875, 0.024017333984375, -0.005031585693359375, 0.00569915771484375, 0.021392822265625, -0.00548553466796875, 0.035491943359375, 0.021331787109375, 0.085205078125, -0.053131103515625, 0.031982421875, 0.0266876220703125, -0.0276336669921875, 0.01318359375, 0.0125885009765625, -0.0293426513671875, -0.024871826171875, -0.0089111328125, 0.0015354156494140625, -0.022247314453125, 0.00208282470703125, 0.0186614990234375, -0.007781982421875, -0.031707763671875, 0.02789306640625, 0.0178680419921875, 0.0029449462890625, 0.04254150390625, -0.025482177734375, 0.0484619140625, 0.005001068115234375, 0.0255889892578125, 0.03485107421875, -0.00881195068359375, -0.0246429443359375, 0.0281219482421875, -0.009490966796875, -0.0301971435546875, 0.011962890625, 0.029510498046875, 0.014739990234375, 0.0246429443359375, 0.0109100341796875, -0.005550384521484375, 0.0162811279296875, -0.01538848876953125, -0.06585693359375, 0.002460479736328125, 0.0167694091796875, 0.042236328125, -0.037567138671875, 0.0406494140625, -0.049835205078125, 0.0205535888671875, -0.0002779960632324219, -0.015838623046875, 0.0289459228515625, -0.00400543212890625, -0.00860595703125, 0.032470703125, 0.007686614990234375, -0.001438140869140625, -0.0206298828125, 0.0098876953125, -0.0377197265625, -0.0136260986328125, -0.0243377685546875, -0.056182861328125, -0.024566650390625, -0.06219482421875, -0.04541015625, 0.1456298828125, -0.01389312744140625, 0.0113067626953125, 0.037109375, 0.053466796875, -0.0404052734375, 0.0306396484375, -0.059722900390625, 0.0633544921875, 0.046417236328125, 0.0804443359375, -0.048492431640625, -0.01708984375, 0.033782958984375, 0.0243377685546875, 0.004787445068359375, -0.01065826416015625, -0.004856109619140625, -0.0203704833984375, 0.0233306884765625, 0.01087188720703125, -0.01146697998046875, 0.025146484375, -0.0020294189453125, 0.056610107421875, 0.051971435546875, -0.0182647705078125, 0.063720703125, -0.044219970703125, -0.038116455078125, 0.0073699951171875, 0.0037059783935546875, 0.0019292831420898438, 0.011077880859375, 0.05230712890625, 0.0213165283203125, -0.0034332275390625, 0.0024204254150390625, -0.017669677734375, 0.01326751708984375, 0.01464080810546875, 0.025482177734375, -0.021575927734375, 0.00514984130859375, -0.032257080078125, 0.037750244140625, 0.006740570068359375, -0.003147125244140625, 0.002071380615234375, -0.006404876708984375, 0.05377197265625, -0.0421142578125, -0.033966064453125, 0.012664794921875, 0.0207977294921875, 0.103515625, 0.01218414306640625, 0.035430908203125, -0.036285400390625, 0.00989532470703125, 0.0161285400390625, 0.095947265625, -0.06597900390625, -0.0290374755859375, -0.0006575584411621094, 0.01560211181640625, 0.0010833740234375, 0.004253387451171875, 0.009124755859375, 0.03302001953125, 0.0552978515625, 0.0014734268188476562, -0.0178985595703125, -0.007526397705078125, 0.00910186767578125, -0.00864410400390625, 0.0275421142578125, 0.01291656494140625, -0.0152435302734375, 0.0139617919921875, -0.06671142578125, 0.02789306640625, 0.05780029296875, 0.0124359130859375, 0.0274200439453125, -0.055633544921875, -0.0164337158203125, -0.01552581787109375, 0.031524658203125, -0.00909423828125, 0.0267791748046875, -0.052337646484375, -0.027313232421875, -0.0013599395751953125, 0.028594970703125, 0.01739501953125, 0.0081939697265625, 0.0202484130859375, 0.017364501953125, -0.0220489501953125, 0.0011310577392578125, 0.045867919921875, -0.014434814453125, -0.02294921875, -0.0167999267578125, 0.015289306640625, 0.022003173828125, 0.0195465087890625, 0.000659942626953125, 0.08001708984375, -0.0020847320556640625, -0.017181396484375, 0.04595947265625, -0.01450347900390625, -0.015533447265625, 0.0308380126953125, -0.0233154296875, 0.0650634765625, -0.0027904510498046875, -0.0859375, -0.004673004150390625, -0.004924774169921875, -0.076416015625, 0.018218994140625, 0.050994873046875, -0.00830078125, -0.01419830322265625, 0.0055694580078125, 0.01470947265625, 0.0088043212890625, -0.0251007080078125, 0.007541656494140625, -0.03857421875, 0.0184173583984375, -0.005229949951171875, -0.03485107421875, -0.01739501953125, -0.00653839111328125, 0.04217529296875, -0.00775146484375, 0.05426025390625, -0.019378662109375, 0.007404327392578125, 0.0208282470703125, -0.006847381591796875, -0.004268646240234375, 0.0156707763671875, -0.00342559814453125, -0.0389404296875, -0.01568603515625, 0.0015172958374023438, -0.0299835205078125, -0.01763916015625, 0.0200653076171875, -0.0247650146484375, 0.005771636962890625, -0.034271240234375, 0.04150390625, -0.01329803466796875, 0.02606201171875, -0.01515960693359375, 0.0211181640625, 0.0311279296875, -0.00475311279296875, 0.032745361328125, 0.01294708251953125, 0.01245880126953125, 0.005321502685546875, -0.0207672119140625, 0.0074310302734375, -0.0308074951171875, 0.0253143310546875, -0.0305328369140625, 0.0302734375, -0.0621337890625, 0.00904083251953125, 0.00007516145706176758, -0.02557373046875, -0.002834320068359375, 0.01459503173828125, 0.01434326171875, -0.00569915771484375, -0.0231170654296875, -0.0125885009765625, -0.007293701171875, 0.0399169921875, 0.00919342041015625, 0.0200042724609375, -0.022857666015625, -0.0024623870849609375, -0.00804901123046875, -0.007534027099609375, -0.0308685302734375, -0.00457000732421875, -0.00811004638671875, 0.01416015625, 0.002376556396484375, -0.063720703125, -0.067138671875, 0.020172119140625, 0.059051513671875, 0.018524169921875, -0.099365234375, 0.042938232421875, -0.031341552734375, 0.0946044921875, 0.0116119384765625, -0.01470947265625, 0.00617218017578125, 0.01470947265625, -0.0208892822265625, -0.03790283203125, -0.01544952392578125, 0.020660400390625, 0.0009050369262695312, 0.0291290283203125, 0.044036865234375, -0.0311737060546875, -0.002971649169921875, 0.01363372802734375, 0.01200103759765625, 0.056884765625, -0.0114898681640625, -0.029022216796875, -0.0018148422241210938, 0.0201568603515625, 0.004913330078125, -0.032623291015625, -0.00693511962890625, -0.01303863525390625, 0.017578125, 0.037445068359375, -0.01053619384765625, 0.0277252197265625, -0.0282745361328125, -0.08917236328125, 0.08807373046875, -0.0100250244140625, -0.0298004150390625, -0.0518798828125, 0.026580810546875, 0.01334381103515625, -0.0259857177734375, -0.03692626953125, 0.016937255859375, -0.0282440185546875, 0.005771636962890625, 0.019561767578125, -0.016571044921875, 0.042083740234375, -0.0249481201171875, -0.075927734375, 0.006984710693359375, -0.007778167724609375, 0.04095458984375, -0.013916015625, -0.01049041748046875, 0.033477783203125, 0.0194854736328125, -0.020721435546875, 0.00390625, 0.0237579345703125, -0.015167236328125, -0.01313018798828125, 0.00007987022399902344, -0.006114959716796875, 0.03363037109375, 0.07952880859375, 0.05889892578125, 0.0209808349609375, -0.06817626953125, -0.04229736328125, -0.0477294921875, -0.0092315673828125, -0.0284576416015625, 0.0136566162109375, -0.06317138671875, 0.0170440673828125, 0.0035552978515625, -0.0097503662109375, -0.027557373046875, 0.031280517578125, -0.01873779296875, -0.01241302490234375, 0.028839111328125, -0.0102081298828125, -0.0304412841796875, -0.0477294921875, 0.09228515625, -0.0521240234375, -0.01311492919921875, 0.01377105712890625, 0.04290771484375, 0.032745361328125, -0.0283966064453125, -0.003429412841796875, 0.0023956298828125, 0.0009598731994628906, 0.025604248046875, 0.006015777587890625, -0.02178955078125, -0.02490234375, 0.0018854141235351562, -0.034332275390625, 0.023773193359375, 0.01491546630859375, 0.034027099609375, 0.007686614990234375, 0.0095977783203125, 0.025848388671875, 0.0367431640625, -0.00856781005859375, -0.006000518798828125, -0.02386474609375, 0.014190673828125, -0.005191802978515625, -0.00295257568359375, 0.035797119140625, -0.017822265625, 0.0059356689453125, 0.00865936279296875, 0.01198577880859375, -0.040740966796875, 0.041748046875, 0.05108642578125, 0.0017099380493164062, 0.0213623046875 ]
8c3d19699a1a59e258552ec29161dfbc5201f496
Wordpress Stackexchange Q: wp_logout_url() - WordPress Failure Notice My wp_logout_url() is working right from the front end. But when I change the new password from the front end, then, on the change password page, when I click on logout, the wp_logout_url() outputs You are attempting to log out of (site name) Do you really want to log out? Here is a screen shot snippet Any suggestions? A: I have the exact same problem and can duplicate the behavior. It only happens when a password is successfully changed. If after a password change you navigate to a different page, all is well again. But clicking the logout link then invokes wp_logout_url() and I consistently get that error. The error is also triggered if you provide a wrong nonce. So, that may be a clue. Seems like it is a WP core bug of some sort. In my case the not so elegant work-around has been to force a redirect to a page that says "Your Password Has Been Changed" after a successful password change. The logout link will be well behaved again. This is a work-around, not a solution for the bug.
Q: wp_logout_url() - WordPress Failure Notice My wp_logout_url() is working right from the front end. But when I change the new password from the front end, then, on the change password page, when I click on logout, the wp_logout_url() outputs You are attempting to log out of (site name) Do you really want to log out? Here is a screen shot snippet Any suggestions? A: I have the exact same problem and can duplicate the behavior. It only happens when a password is successfully changed. If after a password change you navigate to a different page, all is well again. But clicking the logout link then invokes wp_logout_url() and I consistently get that error. The error is also triggered if you provide a wrong nonce. So, that may be a clue. Seems like it is a WP core bug of some sort. In my case the not so elegant work-around has been to force a redirect to a page that says "Your Password Has Been Changed" after a successful password change. The logout link will be well behaved again. This is a work-around, not a solution for the bug. A: What is the code that does the password change? I had a similar problem that was 100% reproducible. The problem for me was that I was automatically logging in a WP user if I detected a cookie from an external authentication server. My code for the automatic login was calling wp_set_auth_cookie(). This puts the WP logged_in cookie into the current HTTP response which then becomes available in the next HTTP request, but not the current one. Thus the nonce generated for the logout URL in the current request is not correct since it is not finding the session's logged_in token which should be in the cookies. For me, I found the solution in this answer by Jörn Lund: https://wordpress.stackexchange.com/a/184055/69247 I added the code suggested by that answer to my plugin that was doing the automatic login and the logout failure page went away because now the nonce is being correctly generated using the token that is in the logged_in cookie. function my_update_cookie( $logged_in_cookie ){ $_COOKIE[LOGGED_IN_COOKIE] = $logged_in_cookie; } add_action( 'set_logged_in_cookie', 'my_update_cookie' );
wordpress
{ "language": "en", "length": 362, "provenance": "stackexchange_00019.jsonl.gz:446801", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/152950" }
[ 0.05902099609375, -0.0167694091796875, 0.03167724609375, 0.0098419189453125, -0.01036834716796875, -0.034393310546875, 0.06591796875, -0.052734375, 0.02392578125, 0.021697998046875, 0.0045318603515625, -0.0103302001953125, -0.035003662109375, -0.02496337890625, -0.025848388671875, -0.022979736328125, 0.011810302734375, -0.0015430450439453125, -0.00036787986755371094, -0.0038127899169921875, -0.0023441314697265625, 0.01255035400390625, -0.0227813720703125, -0.00432586669921875, -0.0080718994140625, 0.02142333984375, 0.0794677734375, -0.028900146484375, 0.0085601806640625, -0.0196685791015625, 0.0130615234375, -0.02130126953125, 0.00911712646484375, 0.054901123046875, -0.05462646484375, -0.01001739501953125, -0.0173797607421875, 0.0193634033203125, -0.0166168212890625, 0.042449951171875, 0.0072479248046875, -0.005794525146484375, 0.0286407470703125, -0.0143280029296875, -0.0014677047729492188, -0.0184478759765625, 0.00997161865234375, -0.033538818359375, -0.00759124755859375, -0.00396728515625, 0.01165771484375, 0.01198577880859375, 0.034912109375, -0.0078277587890625, -0.00981903076171875, -0.00933074951171875, -0.0162811279296875, -0.005512237548828125, 0.017608642578125, 0.02252197265625, 0.00644683837890625, -0.003932952880859375, 0.0033969879150390625, -0.0182037353515625, -0.03082275390625, 0.00742340087890625, 0.005859375, 0.002716064453125, -0.01464080810546875, -0.047760009765625, 0.00257110595703125, -0.001529693603515625, -0.04248046875, 0.005146026611328125, -0.0162200927734375, 0.0106353759765625, 0.0163116455078125, -0.003787994384765625, -0.015899658203125, 0.04730224609375, -0.00598907470703125, -0.01293182373046875, -0.044586181640625, 0.0168304443359375, -0.015838623046875, 0.019683837890625, -0.0164031982421875, -0.005657196044921875, -0.0240936279296875, -0.012054443359375, -0.025909423828125, 0.01116180419921875, -0.024627685546875, -0.008758544921875, -0.0282440185546875, -0.014434814453125, 0.01551055908203125, 0.013824462890625, 0.016937255859375, -0.01462554931640625, -0.0182952880859375, -0.041259765625, -0.0196685791015625, -0.00690460205078125, -0.0214385986328125, 0.054840087890625, 0.037353515625, 0.0328369140625, -0.0034942626953125, 0.00397491455078125, 0.0091400146484375, -0.0092010498046875, -0.03228759765625, -0.059234619140625, 0.01148223876953125, 0.0352783203125, -0.033203125, 0.01418304443359375, 0.0167083740234375, 0.00490570068359375, -0.04974365234375, -0.0245361328125, -0.007450103759765625, 0.00907135009765625, -0.008209228515625, -0.01953125, 0.0059661865234375, 0.0009632110595703125, 0.026336669921875, 0.0322265625, -0.0595703125, 0.00028061866760253906, 0.08404541015625, 0.00635528564453125, 0.01806640625, -0.04119873046875, 0.04876708984375, -0.00676727294921875, -0.0014925003051757812, 0.032257080078125, -0.00714111328125, -0.03485107421875, 0.002979278564453125, 0.004978179931640625, 0.024017333984375, 0.037078857421875, 0.020477294921875, 0.01068878173828125, -0.00009739398956298828, -0.06689453125, 0.00958251953125, -0.0018835067749023438, 0.016082763671875, -0.01343536376953125, 0.04595947265625, -0.051605224609375, 0.057586669921875, -0.057891845703125, 0.033843994140625, -0.0312347412109375, 0.023681640625, 0.0005521774291992188, -0.003444671630859375, -0.0029010772705078125, -0.0076904296875, -0.0157928466796875, -0.04931640625, 0.0003132820129394531, 0.0271453857421875, 0.0103607177734375, 0.0345458984375, -0.05126953125, -0.029388427734375, 0.01102447509765625, 0.0033397674560546875, 0.0289306640625, -0.0216217041015625, 0.0263519287109375, 0.00969696044921875, 0.04443359375, 0.0157470703125, -0.03631591796875, 0.028594970703125, 0.009796142578125, -0.01422119140625, -0.01169586181640625, 0.0106658935546875, 0.0196380615234375, 0.0036907196044921875, 0.0240020751953125, -0.0037174224853515625, 0.0181732177734375, -0.0063934326171875, 0.062347412109375, -0.032745361328125, -0.04864501953125, 0.026153564453125, 0.0302886962890625, -0.0297698974609375, -0.023406982421875, 0.047698974609375, 0.01983642578125, -0.0195770263671875, -0.020294189453125, -0.0992431640625, 0.0207061767578125, -0.0276947021484375, 0.038482666015625, 0.004657745361328125, 0.0355224609375, 0.0124053955078125, -0.00585174560546875, -0.01629638671875, -0.017669677734375, -0.019073486328125, -0.00455474853515625, -0.0267181396484375, 0.035125732421875, -0.007709503173828125, 0.054718017578125, -0.0263824462890625, -0.00785064697265625, -0.024444580078125, -0.04351806640625, 0.0186309814453125, -0.028167724609375, -0.02490234375, -0.0286407470703125, -0.00440216064453125, -0.01849365234375, -0.0054931640625, 0.05908203125, 0.03082275390625, 0.006244659423828125, -0.07049560546875, -0.0209197998046875, -0.03564453125, -0.008087158203125, -0.007350921630859375, 0.05224609375, 0.040435791015625, -0.004180908203125, -0.0171051025390625, -0.0088348388671875, 0.004505157470703125, -0.0626220703125, -0.00557708740234375, -0.004772186279296875, -0.007354736328125, 0.0014057159423828125, -0.01407623291015625, -0.019073486328125, 0.045745849609375, -0.04132080078125, -0.01108551025390625, 0.041015625, -0.0160675048828125, -0.0056304931640625, -0.0023651123046875, -0.01416778564453125, 0.0021686553955078125, -0.0347900390625, -0.02435302734375, -0.01378631591796875, -0.01229095458984375, -0.042449951171875, -0.019500732421875, -0.03009033203125, -0.0018129348754882812, -0.026092529296875, 0.027313232421875, -0.0489501953125, -0.006084442138671875, 0.05609130859375, 0.07110595703125, -0.035980224609375, -0.02471923828125, -0.0196075439453125, 0.003871917724609375, 0.0248565673828125, -0.01168060302734375, 0.02069091796875, -0.0128936767578125, -0.0190887451171875, 0.006847381591796875, -0.01222991943359375, -0.0010061264038085938, -0.0208587646484375, 0.031158447265625, -0.00145721435546875, 0.043426513671875, -0.005023956298828125, -0.002597808837890625, 0.0166473388671875, 0.023956298828125, -0.03729248046875, 0.025482177734375, -0.037841796875, 0.049072265625, -0.0274200439453125, 0.01024627685546875, 0.061279296875, -0.0012559890747070312, 0.0175323486328125, 0.006465911865234375, 0.00949859619140625, 0.0243988037109375, -0.018829345703125, -0.025421142578125, 0.0267486572265625, -0.0989990234375, -0.038665771484375, 0.02471923828125, 0.05322265625, -0.0108184814453125, -0.049285888671875, -0.007167816162109375, 0.0164337158203125, -0.0595703125, -0.052886962890625, -0.091796875, -0.038543701171875, 0.0240478515625, 0.00872039794921875, 0.004085540771484375, 0.0201263427734375, 0.0255279541015625, 0.043731689453125, 0.05718994140625, -0.0272216796875, -0.071044921875, -0.0257415771484375, -0.08416748046875, -0.004184722900390625, -0.00344085693359375, 0.004665374755859375, -0.00310516357421875, 0.0711669921875, 0.0006608963012695312, -0.054473876953125, -0.0232391357421875, 0.03839111328125, -0.01372528076171875, -0.03143310546875, -0.022186279296875, -0.01016998291015625, -0.01373291015625, -0.01412200927734375, 0.0269317626953125, -0.006862640380859375, 0.01114654541015625, 0.007236480712890625, 0.00962066650390625, -0.05279541015625, 0.0224456787109375, -0.0262451171875, -0.0303802490234375, -0.046966552734375, 0.0038585662841796875, -0.06158447265625, 0.00665283203125, -0.0156097412109375, -0.02685546875, 0.051513671875, 0.0218353271484375, -0.0204620361328125, 0.0180511474609375, -0.01229095458984375, -0.0161590576171875, -0.00586700439453125, 0.0179443359375, -0.01023101806640625, 0.03631591796875, -0.025146484375, -0.031982421875, -0.033843994140625, 0.035400390625, -0.0151519775390625, -0.003185272216796875, -0.0026340484619140625, 0.0189361572265625, -0.00778961181640625, -0.0217437744140625, -0.04840087890625, -0.0689697265625, 0.048248291015625, -0.06585693359375, -0.02825927734375, -0.0325927734375, -0.01142120361328125, 0.00528717041015625, 0.09222412109375, -0.02911376953125, -0.0257110595703125, -0.0008816719055175781, 0.0289459228515625, -0.0036449432373046875, -0.022003173828125, 0.00182342529296875, -0.0222930908203125, -0.05328369140625, -0.0016450881958007812, -0.0184783935546875, -0.01462554931640625, -0.0010271072387695312, -0.0297698974609375, 0.0019216537475585938, -0.050018310546875, -0.005474090576171875, 0.0254974365234375, 0.0253143310546875, -0.0139617919921875, 0.00177001953125, -0.01296234130859375, 0.0195770263671875, -0.028778076171875, -0.034912109375, -0.0091094970703125, 0.025634765625, 0.02197265625, 0.0018644332885742188, -0.03759765625, -0.01326751708984375, 0.035064697265625, -0.0007028579711914062, 0.0175628662109375, -0.009124755859375, -0.021331787109375, 0.026031494140625, 0.048126220703125, -0.0046539306640625, 0.020782470703125, 0.0036106109619140625, -0.0135345458984375, -0.08599853515625, -0.0165863037109375, -0.01145172119140625, 0.033599853515625, 0.03265380859375, -0.0462646484375, -0.02947998046875, -0.020965576171875, 0.01079559326171875, 0.01476287841796875, 0.01393890380859375, -0.007694244384765625, -0.013214111328125, -0.0264739990234375, 0.0270233154296875, 0.003513336181640625, -0.03887939453125, 0.0078887939453125, 0.046905517578125, 0.03125, -0.0093841552734375, 0.026092529296875, 0.0023021697998046875, 0.006244659423828125, -0.0079803466796875, 0.0094757080078125, -0.0193634033203125, -0.00743865966796875, 0.042694091796875, -0.0288543701171875, -0.0025386810302734375, -0.01198577880859375, 0.038909912109375, 0.00826263427734375, -0.003299713134765625, -0.01016998291015625, -0.0187530517578125, 0.00576019287109375, 0.0235137939453125, 0.008544921875, -0.0007915496826171875, 0.028778076171875, 0.0103759765625, -0.016326904296875, -0.01479339599609375, -0.0097503662109375, -0.06231689453125, 0.0201568603515625, -0.0041656494140625, 0.0060272216796875, 0.0266876220703125, -0.0084686279296875, 0.0294036865234375, -0.0009984970092773438, 0.006687164306640625, -0.058502197265625, -0.0115966796875, -0.051239013671875, 0.04071044921875, -0.0810546875, -0.01068115234375, -0.0246429443359375, -0.041473388671875, 0.14599609375, 0.039764404296875, -0.060760498046875, 0.046966552734375, -0.028564453125, 0.0104522705078125, 0.016876220703125, -0.00977325439453125, 0.032470703125, -0.0318603515625, -0.020111083984375, -0.004741668701171875, -0.0082550048828125, -0.061248779296875, -0.0457763671875, 0.0428466796875, -0.0019741058349609375, 0.002109527587890625, -0.0006136894226074219, 0.071044921875, 0.0161590576171875, 0.04296875, -0.0172576904296875, 0.002231597900390625, -0.0090484619140625, 0.034423828125, 0.0235748291015625, 0.00693511962890625, -0.001689910888671875, 0.0285186767578125, 0.0176849365234375, -0.04412841796875, -0.049713134765625, 0.026580810546875, 0.0491943359375, -0.01221466064453125, 0.0098114013671875, 0.0075225830078125, 0.01078033447265625, 0.0032291412353515625, 0.0791015625, -0.0110015869140625, -0.109130859375, 0.005527496337890625, 0.048492431640625, 0.0141143798828125, -0.09246826171875, -0.006183624267578125, -0.042388916015625, -0.0242767333984375, -0.01116943359375, -0.005126953125, -0.013092041015625, 0.01113128662109375, -0.0101165771484375, -0.033966064453125, -0.045989990234375, -0.02435302734375, 0.0193328857421875, 0.02264404296875, -0.032196044921875, -0.03802490234375, 0.0301971435546875, -0.047088623046875, 0.00699615478515625, -0.0104522705078125, 0.0285797119140625, 0.01007843017578125, 0.0135650634765625, 0.051361083984375, 0.022064208984375, -0.066650390625, 0.02191162109375, -0.0242462158203125, 0.0008587837219238281, 0.022430419921875, -0.0450439453125, -0.0243072509765625, -0.04876708984375, 0.036834716796875, 0.0153961181640625, 0.0195465087890625, -0.0148162841796875, -0.052337646484375, 0.0257110595703125, 0.05267333984375, 0.0226898193359375, -0.025665283203125, 0.045166015625, -0.0103912353515625, 0.0210113525390625, -0.0028858184814453125, 0.013671875, -0.01416015625, 0.00629425048828125, 0.0305938720703125, -0.0209808349609375, -0.0160980224609375, -0.06317138671875, 0.0362548828125, 0.011566162109375, 0.036590576171875, -0.01067352294921875, -0.052825927734375, -0.01308441162109375, -0.00823974609375, -0.01171875, 0.07708740234375, 0.053436279296875, -0.0190887451171875, 0.006084442138671875, -0.00337982177734375, 0.049560546875, -0.0211639404296875, 0.00803375244140625, -0.00382232666015625, -0.022064208984375, 0.012664794921875, 0.008636474609375, -0.034820556640625, 0.0097198486328125, 0.07861328125, 0.01471710205078125, 0.040008544921875, 0.01528167724609375, 0.00511932373046875, 0.0284881591796875, -0.0111236572265625, -0.04241943359375, 0.00812530517578125, 0.01009368896484375, -0.0162506103515625, -0.0227813720703125, -0.013275146484375, -0.021270751953125, 0.035797119140625, 0.0628662109375, 0.08648681640625, -0.10076904296875, 0.035736083984375, 0.0232086181640625, -0.0043182373046875, 0.041015625, 0.00423431396484375, 0.032135009765625, 0.027801513671875, -0.0284576416015625, -0.03521728515625, -0.03118896484375, -0.034820556640625, -0.0265045166015625, 0.00930023193359375, -0.034515380859375, 0.042755126953125, 0.013427734375, -0.110595703125, 0.0487060546875, 0.058441162109375, -0.01434326171875, -0.030548095703125, -0.033416748046875, 0.02593994140625, -0.04266357421875, -0.05859375, 0.013824462890625, -0.0236968994140625, 0.0222015380859375, -0.033447265625, -0.0149993896484375, 0.03155517578125, 0.035614013671875, -0.02044677734375, -0.01508331298828125, 0.0097198486328125, 0.007427215576171875, 0.062347412109375, -0.005893707275390625, 0.01277923583984375, 0.0283966064453125, -0.06182861328125, 0.0009794235229492188, -0.0153045654296875, 0.016693115234375, -0.00940704345703125, -0.0210113525390625, 0.06805419921875, -0.050201416015625, 0.014678955078125, 0.0391845703125, 0.0132598876953125, -0.0220184326171875, 0.00945281982421875, 0.0107421875, -0.039306640625, -0.0216827392578125, 0.0163421630859375, -0.0307769775390625, 0.014892578125, 0.009613037109375, -0.042388916015625, 0.11163330078125, -0.0254974365234375, 0.0183258056640625, 0.0264739990234375, 0.05059814453125, -0.0123138427734375, 0.045867919921875, -0.058624267578125, 0.03570556640625, 0.019195556640625, 0.0435791015625, -0.03680419921875, -0.00611114501953125, 0.006519317626953125, 0.01702880859375, 0.0239105224609375, 0.006824493408203125, -0.04644775390625, -0.034088134765625, 0.00859832763671875, 0.0294342041015625, 0.01422119140625, 0.048858642578125, -0.005825042724609375, 0.0160064697265625, 0.0246429443359375, -0.034423828125, 0.016632080078125, 0.0017375946044921875, -0.0256195068359375, 0.00878143310546875, 0.00447845458984375, -0.039031982421875, 0.006378173828125, 0.0139923095703125, -0.08612060546875, 0.026031494140625, 0.0274505615234375, 0.038299560546875, 0.0008082389831542969, 0.034698486328125, 0.05316162109375, -0.040924072265625, 0.0306854248046875, -0.04449462890625, 0.0662841796875, -0.00002872943878173828, -0.0180206298828125, 0.01149749755859375, 0.0114898681640625, 0.021240234375, -0.05194091796875, -0.0301513671875, 0.00545501708984375, -0.0036525726318359375, 0.08111572265625, 0.022735595703125, 0.034332275390625, -0.0266571044921875, 0.04022216796875, 0.003139495849609375, 0.0692138671875, -0.05865478515625, -0.045440673828125, -0.0083160400390625, -0.01751708984375, 0.0416259765625, -0.0096588134765625, 0.053314208984375, -0.03021240234375, -0.0242462158203125, -0.01268768310546875, 0.0087127685546875, 0.0272064208984375, 0.005405426025390625, 0.00638580322265625, 0.01183319091796875, -0.036468505859375, 0.027679443359375, -0.0219268798828125, -0.01239013671875, 0.011627197265625, 0.03619384765625, 0.01428985595703125, 0.00010007619857788086, -0.025543212890625, -0.004608154296875, 0.001987457275390625, 0.04364013671875, -0.0165863037109375, -0.00797271728515625, -0.037384033203125, -0.079833984375, 0.031829833984375, 0.036834716796875, -0.01338958740234375, -0.0162811279296875, 0.0078277587890625, 0.00420379638671875, -0.034698486328125, -0.024688720703125, 0.018402099609375, -0.0322265625, -0.0027408599853515625, -0.017059326171875, -0.000009417533874511719, 0.0192718505859375, -0.0080718994140625, -0.00789642333984375, 0.0360107421875, 0.01062774658203125, -0.007709503173828125, 0.042510986328125, 0.004611968994140625, -0.0068817138671875, 0.000621795654296875, 0.025604248046875, 0.034149169921875, 0.038116455078125, -0.057708740234375, -0.01922607421875, -0.00623321533203125, -0.012115478515625, 0.01080322265625, 0.043304443359375, 0.00885009765625, -0.007221221923828125, -0.010772705078125, -0.00714111328125, -0.008392333984375, 0.01300811767578125, 0.0066375732421875, -0.0278472900390625, 0.00902557373046875, -0.0193939208984375, -0.0841064453125, -0.05120849609375, -0.01349639892578125, 0.0226593017578125, 0.006011962890625, 0.06732177734375, 0.00412750244140625, 0.004940032958984375, 0.00025153160095214844, 0.004161834716796875, -0.00969696044921875, 0.016754150390625, -0.032196044921875, -0.005157470703125, -0.0017852783203125, -0.0175933837890625, -0.0853271484375, 0.06475830078125, -0.008758544921875, 0.0189361572265625, 0.0794677734375, -0.040313720703125, -0.0146484375, -0.0022602081298828125, 0.0059051513671875, -0.035797119140625, -0.0526123046875, 0.00592803955078125, 0.0284881591796875, -0.024566650390625, 0.0054168701171875, 0.0002409219741821289, 0.050567626953125, -0.034332275390625, -0.010101318359375, -0.003833770751953125, -0.0545654296875, -0.0251922607421875, 0.0210418701171875, -0.01374053955078125, -0.01165008544921875, -0.054168701171875, -0.023162841796875, -0.037872314453125, 0.01093292236328125, -0.0189056396484375, -0.03460693359375, 0.04083251953125, 0.01122283935546875, 0.00829315185546875, 0.027313232421875, -0.003269195556640625, 0.0136871337890625, 0.004360198974609375, 0.006816864013671875, -0.0033740997314453125, -0.04058837890625, -0.0255584716796875, -0.048492431640625, 0.00335693359375, 0.006450653076171875, 0.0009388923645019531, -0.0340576171875, 0.0127716064453125, -0.0016660690307617188, 0.025634765625, -0.00032520294189453125, -0.048614501953125, 0.0018472671508789062, -0.01708984375, 0.05035400390625, -0.02447509765625, -0.024688720703125, 0.014373779296875, 0.03704833984375, -0.03338623046875, -0.01218414306640625, -0.037841796875, -0.006378173828125, -0.04461669921875, -0.00704193115234375, 0.0343017578125, -0.0114898681640625, -0.026458740234375, -0.025909423828125, -0.006702423095703125, 0.016143798828125, -0.0294342041015625, -0.049346923828125, -0.0242462158203125, 0.01488494873046875, 0.0384521484375, 0.01171112060546875, -0.016357421875, 0.0224609375, -0.0174407958984375, -0.00849151611328125, -0.01019287109375, -0.01430511474609375, -0.0538330078125, -0.07269287109375, 0.01264190673828125, 0.01529693603515625, -0.033355712890625, -0.04510498046875, 0.014556884765625, 0.006214141845703125, -0.015380859375, -0.014312744140625, -0.00836181640625, -0.0254364013671875, 0.01183319091796875, 0.04315185546875, 0.0092926025390625, 0.0292205810546875, 0.0692138671875, -0.0085601806640625, 0.06573486328125, 0.0489501953125, 0.016845703125, -0.0206451416015625, 0.0203857421875, -0.00411224365234375, 0.05877685546875, 0.0000032782554626464844, -0.01319122314453125, 0.007274627685546875, -0.032470703125, 0.00562286376953125, 0.0268096923828125, 0.0228729248046875, 0.0213165283203125, 0.0024166107177734375, 0.0082855224609375, -0.006092071533203125, -0.01580810546875, -0.06903076171875, -0.033660888671875, -0.0023651123046875, -0.02630615234375, 0.01139068603515625, -0.0892333984375, -0.0111846923828125, -0.000980377197265625, -0.015350341796875, -0.0094757080078125, -0.0096282958984375, -0.03485107421875, 0.004512786865234375, 0.0256195068359375, 0.0177001953125, 0.007144927978515625, -0.0300750732421875, 0.0863037109375, -0.0499267578125, 0.00711822509765625, -0.0007495880126953125, 0.036651611328125, 0.03271484375, -0.031951904296875, 0.017333984375, 0.021575927734375, -0.0204010009765625, -0.00797271728515625, 0.019439697265625, 0.038665771484375, -0.0037326812744140625, -0.0270843505859375, 0.00530242919921875, 0.0105743408203125, -0.0170135498046875, 0.004253387451171875, 0.0051727294921875, 0.03759765625, -0.0031185150146484375, 0.042205810546875, -0.0010776519775390625, -0.003253936767578125, -0.03387451171875, 0.054229736328125, -0.0003139972686767578, -0.01241302490234375, 0.032257080078125, -0.01544952392578125, 0.018341064453125, 0.01018524169921875, 0.035491943359375, -0.0253143310546875, 0.027618408203125, 0.0275115966796875, 0.0242156982421875, 0.017974853515625 ]
685fe707c3d5e8b5c3e6d6a62163eae501a2e8d7
Wordpress Stackexchange Q: How to archive a wordpress site (make it read only) Is it possible to make a WordPress deployment read-only? For a website that won't be updated, I'd like to make it read-only/static, so the archive is there but nobody can post, so I don't have to deal with breaches and updates? A: Assuming you have shell access, or access to any Linux/Unix box, you could use wget to download the entire site to static html files: wget --recursive --no-clobber --page-requisites --html-extension --domains domain.com http://domain.com Then either upload or move these files to your web root (after backing up and removing your WP installation). I imagine it's also possible to do this via some sort of proxy/cache setup, but I can't comment on the relative security of such an approach with any certainty.
Q: How to archive a wordpress site (make it read only) Is it possible to make a WordPress deployment read-only? For a website that won't be updated, I'd like to make it read-only/static, so the archive is there but nobody can post, so I don't have to deal with breaches and updates? A: Assuming you have shell access, or access to any Linux/Unix box, you could use wget to download the entire site to static html files: wget --recursive --no-clobber --page-requisites --html-extension --domains domain.com http://domain.com Then either upload or move these files to your web root (after backing up and removing your WP installation). I imagine it's also possible to do this via some sort of proxy/cache setup, but I can't comment on the relative security of such an approach with any certainty. A: Finally the solution I resorted to was Simply Static (a free plugin) – it generates a static copy of the website (including custom content).
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:446822", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/153027" }
[ 0.030120849609375, -0.007190704345703125, 0.01132965087890625, -0.00627899169921875, -0.01580810546875, -0.0272369384765625, 0.0259857177734375, -0.031494140625, 0.012481689453125, 0.010284423828125, -0.00995635986328125, -0.043182373046875, -0.0017805099487304688, -0.0260009765625, -0.0116424560546875, -0.0313720703125, 0.039398193359375, 0.002166748046875, 0.038543701171875, -0.004329681396484375, 0.0126190185546875, 0.032196044921875, 0.031402587890625, 0.047882080078125, -0.02545166015625, 0.01085662841796875, 0.07574462890625, -0.0269927978515625, -0.002086639404296875, -0.0213623046875, 0.005397796630859375, 0.0029315948486328125, 0.00714111328125, 0.00829315185546875, -0.009490966796875, -0.024383544921875, 0.00406646728515625, 0.004436492919921875, 0.0036334991455078125, 0.0194549560546875, -0.02593994140625, 0.0184478759765625, 0.0041046142578125, -0.004154205322265625, -0.0225830078125, -0.047882080078125, -0.01422119140625, -0.048248291015625, 0.034210205078125, -0.00170135498046875, -0.01187896728515625, 0.051910400390625, 0.00798797607421875, -0.028717041015625, -0.00525665283203125, 0.019989013671875, 0.046844482421875, 0.0043792724609375, 0.047943115234375, -0.08001708984375, -0.06536865234375, 0.01190185546875, 0.0304107666015625, 0.0128173828125, 0.00930023193359375, -0.016845703125, 0.0280303955078125, 0.007648468017578125, -0.09271240234375, 0.0225067138671875, 0.08416748046875, -0.05609130859375, 0.047821044921875, -0.046539306640625, 0.01280975341796875, 0.02337646484375, -0.00647735595703125, 0.0060882568359375, 0.019439697265625, -0.0208740234375, 0.02288818359375, -0.01788330078125, -0.0228118896484375, -0.030914306640625, 0.02752685546875, -0.0211029052734375, 0.0032558441162109375, -0.01320648193359375, 0.01024627685546875, -0.01184844970703125, -0.01434326171875, 0.037353515625, -0.0013628005981445312, -0.002376556396484375, -0.03900146484375, -0.0206756591796875, -0.0084686279296875, 0.0311431884765625, 0.0021266937255859375, 0.0210418701171875, -0.0288238525390625, -0.00995635986328125, -0.0014085769653320312, -0.0183868408203125, -0.0116119384765625, 0.02423095703125, 0.0011348724365234375, 0.0159912109375, 0.0280609130859375, 0.01496124267578125, -0.0136871337890625, -0.003986358642578125, -0.036590576171875, -0.04541015625, -0.0060272216796875, 0.054046630859375, -0.037689208984375, 0.022979736328125, -0.0038776397705078125, 0.023895263671875, 0.000010073184967041016, 0.0285186767578125, -0.0281219482421875, -0.0157623291015625, -0.0087890625, -0.0202789306640625, 0.002155303955078125, -0.015838623046875, 0.01143646240234375, 0.0011205673217773438, -0.0252532958984375, 0.0261077880859375, 0.0014142990112304688, -0.00196075439453125, -0.018402099609375, 0.0014495849609375, 0.0063629150390625, 0.002956390380859375, -0.00899505615234375, 0.035369873046875, -0.012939453125, -0.046234130859375, 0.01303863525390625, -0.00560760498046875, 0.02099609375, 0.057525634765625, 0.04510498046875, 0.00788116455078125, -0.033111572265625, -0.045623779296875, 0.005970001220703125, 0.0181121826171875, 0.026031494140625, 0.013153076171875, -0.036651611328125, -0.07623291015625, 0.0216064453125, -0.04998779296875, 0.033294677734375, -0.06158447265625, 0.019073486328125, 0.01230621337890625, 0.031768798828125, 0.0236968994140625, 0.0099334716796875, -0.027618408203125, -0.0278472900390625, -0.00951385498046875, 0.02325439453125, 0.0350341796875, -0.00037407875061035156, -0.0528564453125, 0.056121826171875, 0.0026187896728515625, -0.03326416015625, 0.03631591796875, -0.01285552978515625, -0.007228851318359375, 0.0156402587890625, 0.017852783203125, 0.000957489013671875, -0.0214996337890625, 0.0416259765625, -0.01068878173828125, -0.01151275634765625, 0.00447845458984375, -0.0164947509765625, 0.00943756103515625, 0.0180816650390625, 0.01331329345703125, -0.035675048828125, 0.00878143310546875, -0.012847900390625, 0.006622314453125, 0.019439697265625, -0.01183319091796875, 0.006000518798828125, 0.005161285400390625, 0.0005950927734375, -0.03631591796875, 0.005840301513671875, -0.0217437744140625, -0.0009765625, -0.0179901123046875, -0.02813720703125, -0.027679443359375, -0.005062103271484375, 0.010894775390625, -0.01239013671875, 0.026641845703125, 0.01432037353515625, 0.00045680999755859375, -0.02288818359375, -0.01513671875, -0.035552978515625, -0.020416259765625, -0.0186614990234375, 0.056396484375, 0.0021419525146484375, 0.03131103515625, 0.013092041015625, -0.04803466796875, 0.030853271484375, 0.01039886474609375, 0.02679443359375, -0.038970947265625, -0.0006909370422363281, -0.03253173828125, 0.027008056640625, -0.022857666015625, 0.00725555419921875, 0.0244140625, 0.030609130859375, 0.045745849609375, 0.00018525123596191406, 0.00843048095703125, 0.0002008676528930664, -0.06390380859375, -0.00048804283142089844, 0.039337158203125, 0.021240234375, -0.011871337890625, -0.01508331298828125, 0.002925872802734375, 0.0159149169921875, -0.0401611328125, -0.0029697418212890625, 0.006458282470703125, -0.01117706298828125, 0.01447296142578125, -0.00975799560546875, -0.0007958412170410156, 0.0283966064453125, 0.002613067626953125, -0.0206451416015625, 0.04754638671875, 0.01039886474609375, 0.0306243896484375, -0.00354766845703125, -0.006465911865234375, 0.0099639892578125, 0.040496826171875, -0.00800323486328125, 0.01446533203125, 0.01091766357421875, 0.0293731689453125, 0.0217742919921875, 0.0244293212890625, -0.042694091796875, 0.0265045166015625, 0.0214080810546875, -0.00569915771484375, 0.018798828125, 0.056365966796875, 0.00753021240234375, 0.004688262939453125, 0.0031185150146484375, -0.040191650390625, 0.006320953369140625, 0.039794921875, -0.0333251953125, 0.0020503997802734375, 0.004055023193359375, -0.0193634033203125, 0.00373077392578125, -0.0302886962890625, 0.020538330078125, -0.03729248046875, -0.038818359375, -0.006496429443359375, 0.0004429817199707031, 0.0305938720703125, -0.00746917724609375, 0.00902557373046875, 0.020050048828125, -0.007335662841796875, 0.02154541015625, -0.06610107421875, 0.040252685546875, -0.027099609375, 0.07110595703125, 0.081298828125, 0.014434814453125, -0.0010471343994140625, -0.0158843994140625, -0.02227783203125, -0.03497314453125, 0.0140228271484375, -0.02410888671875, -0.0175018310546875, -0.09075927734375, -0.01509857177734375, 0.0264434814453125, -0.040069580078125, 0.055755615234375, 0.033660888671875, -0.0086212158203125, 0.0125274658203125, -0.04754638671875, -0.038055419921875, -0.0135345458984375, -0.057647705078125, 0.02825927734375, 0.0101318359375, -0.0174102783203125, -0.0200653076171875, 0.055206298828125, 0.0265350341796875, -0.01885986328125, -0.0252838134765625, -0.07171630859375, -0.0498046875, -0.07574462890625, -0.0104217529296875, -0.0166778564453125, 0.00864410400390625, 0.0163726806640625, 0.05535888671875, 0.01222991943359375, -0.07281494140625, 0.005794525146484375, 0.0316162109375, -0.0274810791015625, 0.01071929931640625, -0.003696441650390625, -0.019195556640625, -0.032318115234375, 0.0082550048828125, 0.0276336669921875, -0.017852783203125, 0.0189056396484375, -0.022705078125, -0.0121612548828125, -0.005096435546875, -0.00823974609375, 0.0204010009765625, 0.015777587890625, -0.032684326171875, -0.0218658447265625, -0.06109619140625, -0.007175445556640625, 0.0015869140625, -0.018310546875, 0.006801605224609375, -0.00460052490234375, -0.01885986328125, -0.01519012451171875, 0.0262451171875, 0.018402099609375, 0.024688720703125, 0.048248291015625, 0.036407470703125, -0.019134521484375, -0.03955078125, -0.05255126953125, -0.038665771484375, 0.0390625, -0.0179443359375, 0.011322021484375, 0.0023670196533203125, -0.0274200439453125, -0.050445556640625, 0.0210723876953125, -0.07977294921875, -0.04034423828125, 0.04364013671875, -0.0312042236328125, 0.033355712890625, -0.0278472900390625, -0.0307159423828125, 0.0012331008911132812, 0.09881591796875, -0.037628173828125, 0.010772705078125, -0.009979248046875, 0.0017995834350585938, -0.01488494873046875, -0.037506103515625, -0.0489501953125, -0.003414154052734375, -0.0144805908203125, -0.004245758056640625, -0.03216552734375, 0.0029392242431640625, -0.0144500732421875, -0.086669921875, 0.01166534423828125, -0.0518798828125, 0.00727081298828125, 0.00777435302734375, 0.0230865478515625, -0.044036865234375, 0.048431396484375, -0.08270263671875, 0.02227783203125, -0.020721435546875, -0.08843994140625, -0.01451873779296875, -0.001277923583984375, 0.049163818359375, -0.0213470458984375, 0.034332275390625, -0.029876708984375, 0.043792724609375, -0.025634765625, 0.0289154052734375, -0.00019216537475585938, 0.0217132568359375, -0.030426025390625, -0.006183624267578125, -0.0044097900390625, -0.03802490234375, -0.0094451904296875, -0.0345458984375, -0.006137847900390625, -0.013458251953125, -0.03741455078125, -0.032623291015625, -0.0164337158203125, -0.005924224853515625, -0.0775146484375, -0.049285888671875, -0.0003604888916015625, 0.0267486572265625, -0.00708770751953125, -0.0025691986083984375, -0.0467529296875, -0.06915283203125, 0.052490234375, 0.0018720626831054688, -0.02740478515625, 0.0182647705078125, 0.07879638671875, 0.007415771484375, -0.0209808349609375, -0.06280517578125, 0.01202392578125, 0.01898193359375, -0.0229339599609375, 0.04327392578125, 0.02471923828125, -0.0081329345703125, 0.01486968994140625, -0.0042877197265625, -0.01149749755859375, 0.01018524169921875, 0.012786865234375, 0.02276611328125, -0.01284027099609375, -0.007781982421875, 0.016937255859375, 0.0121917724609375, 0.03607177734375, 0.03057861328125, -0.038543701171875, 0.00899505615234375, 0.027374267578125, 0.019683837890625, 0.004550933837890625, -0.0111083984375, -0.03369140625, -0.013641357421875, -0.03271484375, 0.0574951171875, 0.037506103515625, -0.019287109375, 0.0753173828125, 0.07171630859375, -0.00994873046875, -0.024261474609375, -0.0204620361328125, -0.00714874267578125, 0.0178680419921875, -0.00957489013671875, -0.0006823539733886719, -0.0194854736328125, -0.0184173583984375, 0.040252685546875, -0.01136016845703125, -0.086181640625, 0.01386260986328125, 0.0013475418090820312, 0.00412750244140625, 0.035400390625, -0.0301361083984375, 0.015350341796875, 0.00763702392578125, -0.0057525634765625, -0.00007343292236328125, -0.0310821533203125, -0.0222015380859375, -0.035308837890625, -0.005939483642578125, 0.00800323486328125, -0.01546478271484375, 0.05706787109375, 0.024322509765625, 0.0038623809814453125, 0.0208587646484375, -0.0242156982421875, 0.044097900390625, 0.054840087890625, 0.017425537109375, 0.0021953582763671875, -0.008819580078125, -0.0011959075927734375, -0.0008516311645507812, 0.0137481689453125, -0.0122222900390625, 0.01143646240234375, 0.032958984375, 0.005573272705078125, -0.0024127960205078125, -0.015655517578125, -0.0013589859008789062, -0.0341796875, -0.01502227783203125, -0.0005779266357421875, -0.0250091552734375, -0.03375244140625, -0.0203094482421875, -0.00677490234375, -0.0028533935546875, -0.0078582763671875, 0.01485443115234375, -0.004974365234375, 0.01129913330078125, -0.01361083984375, 0.08843994140625, -0.052032470703125, -0.0193023681640625, -0.008544921875, -0.037109375, -0.022247314453125, 0.00385284423828125, -0.0242767333984375, -0.006717681884765625, -0.0252227783203125, -0.0022411346435546875, 0.05865478515625, -0.00606536865234375, -0.0061187744140625, -0.03289794921875, 0.021514892578125, -0.003650665283203125, -0.01259613037109375, 0.062408447265625, 0.01837158203125, -0.034423828125, -0.0231475830078125, -0.038726806640625, -0.024383544921875, -0.03759765625, -0.026214599609375, -0.047943115234375, 0.01541900634765625, 0.03271484375, 0.03167724609375, -0.0268707275390625, -0.08251953125, 0.0128021240234375, -0.005672454833984375, 0.0274200439453125, 0.0032596588134765625, -0.02301025390625, 0.063232421875, 0.015472412109375, 0.05755615234375, 0.00818634033203125, 0.0206298828125, -0.028350830078125, -0.0247650146484375, 0.0157318115234375, -0.0178375244140625, -0.0272369384765625, -0.04266357421875, 0.01203155517578125, -0.00360870361328125, 0.02471923828125, -0.005847930908203125, -0.0128173828125, -0.03619384765625, -0.0120391845703125, -0.032989501953125, 0.0650634765625, -0.041168212890625, 0.004932403564453125, -0.0645751953125, 0.005828857421875, 0.048492431640625, -0.0213775634765625, -0.021331787109375, 0.0160064697265625, 0.0081634521484375, 0.027099609375, -0.0125579833984375, -0.064697265625, 0.04095458984375, 0.07073974609375, 0.031829833984375, 0.058929443359375, -0.0115966796875, 0.034423828125, 0.047088623046875, 0.023468017578125, 0.0082550048828125, -0.0330810546875, 0.035858154296875, 0.0025806427001953125, -0.017059326171875, 0.0264739990234375, -0.033447265625, 0.006351470947265625, 0.057281494140625, 0.06298828125, -0.06304931640625, -0.007480621337890625, 0.01117706298828125, -0.036407470703125, -0.006252288818359375, 0.00829315185546875, -0.0311431884765625, -0.06463623046875, 0.04949951171875, -0.0347900390625, -0.02020263671875, 0.004184722900390625, 0.0028781890869140625, 0.01261138916015625, 0.0012874603271484375, 0.0509033203125, 0.030059814453125, -0.0298919677734375, 0.0135345458984375, 0.0273284912109375, 0.02362060546875, -0.0143890380859375, 0.00536346435546875, 0.004482269287109375, -0.034332275390625, -0.05499267578125, -0.002452850341796875, -0.00579071044921875, -0.0166473388671875, 0.020599365234375, -0.015625, 0.0270538330078125, 0.03131103515625, -0.011932373046875, 0.0222015380859375, -0.000469207763671875, 0.01274871826171875, -0.07757568359375, -0.060821533203125, -0.00626373291015625, -0.0035266876220703125, -0.01430511474609375, 0.043212890625, -0.0005140304565429688, -0.066650390625, 0.00025343894958496094, 0.00858306884765625, 0.0472412109375, -0.036346435546875, -0.0126800537109375, 0.0262298583984375, 0.0002830028533935547, -0.01241302490234375, -0.00600433349609375, 0.041412353515625, -0.0213623046875, 0.01293182373046875, 0.002353668212890625, -0.0006041526794433594, -0.0215301513671875, -0.0106658935546875, -0.042388916015625, 0.09661865234375, -0.035400390625, 0.00656890869140625, 0.0285797119140625, 0.056915283203125, -0.02886962890625, 0.030517578125, -0.023406982421875, 0.0263519287109375, -0.0196380615234375, 0.0293731689453125, -0.021392822265625, -0.00923919677734375, 0.0137939453125, 0.0086517333984375, 0.0247650146484375, 0.015960693359375, -0.0390625, -0.0114593505859375, 0.03155517578125, 0.017822265625, 0.006866455078125, 0.058563232421875, -0.029144287109375, 0.041351318359375, 0.01279449462890625, -0.07745361328125, 0.019805908203125, -0.0182037353515625, -0.046234130859375, -0.00896453857421875, 0.003948211669921875, -0.003940582275390625, -0.00920867919921875, 0.050872802734375, -0.07183837890625, 0.00823974609375, 0.0290069580078125, 0.050537109375, 0.006378173828125, 0.0224609375, 0.0389404296875, -0.0277862548828125, -0.00421142578125, -0.025390625, 0.0404052734375, 0.006504058837890625, -0.005893707275390625, 0.010009765625, 0.002864837646484375, -0.0293731689453125, 0.005985260009765625, -0.00476837158203125, 0.001708984375, -0.0031909942626953125, 0.0237579345703125, 0.045196533203125, 0.035858154296875, -0.0107879638671875, -0.015960693359375, 0.047882080078125, 0.032379150390625, -0.00848388671875, -0.01097869873046875, 0.01898193359375, -0.02008056640625, -0.0242156982421875, -0.023468017578125, -0.013427734375, 0.0023136138916015625, 0.0036106109619140625, 0.0190887451171875, -0.00681304931640625, 0.0091094970703125, 0.007442474365234375, 0.0140533447265625, 0.044189453125, -0.01500701904296875, -0.0042572021484375, 0.007427215576171875, -0.04644775390625, -0.02215576171875, -0.007518768310546875, 0.0294342041015625, -0.006359100341796875, 0.0162353515625, 0.0098419189453125, -0.0210723876953125, 0.056121826171875, -0.01485443115234375, 0.02935791015625, -0.060516357421875, -0.0634765625, 0.01373291015625, 0.045013427734375, 0.0171661376953125, -0.0010080337524414062, 0.03759765625, 0.04638671875, -0.0374755859375, -0.0086822509765625, 0.057647705078125, -0.0140533447265625, 0.006999969482421875, 0.0005769729614257812, 0.00030231475830078125, 0.0017919540405273438, -0.01534271240234375, -0.03887939453125, 0.06414794921875, 0.01145172119140625, 0.002796173095703125, 0.01067352294921875, -0.0006031990051269531, -0.003204345703125, 0.055145263671875, -0.0274200439453125, -0.0169677734375, 0.01430511474609375, -0.0274658203125, -0.01346588134765625, 0.00894927978515625, 0.0160369873046875, -0.0081939697265625, 0.0165252685546875, -0.0231781005859375, 0.051239013671875, 0.037200927734375, 0.01158905029296875, -0.01451873779296875, -0.017578125, 0.0148773193359375, 0.0283660888671875, 0.037139892578125, 0.04278564453125, -0.0098724365234375, -0.042633056640625, -0.01519012451171875, 0.0797119140625, 0.0171356201171875, 0.0477294921875, -0.036102294921875, 0.021270751953125, -0.032745361328125, 0.030120849609375, -0.047698974609375, -0.0134429931640625, -0.021209716796875, 0.00969696044921875, 0.0236053466796875, 0.004238128662109375, 0.009124755859375, 0.01392364501953125, -0.0030384063720703125, -0.05328369140625, 0.00852203369140625, -0.05096435546875, 0.00939178466796875, 0.0200347900390625, 0.00395965576171875, -0.0399169921875, -0.06414794921875, -0.0199432373046875, 0.0281524658203125, -0.022796630859375, -0.01305389404296875, -0.0033359527587890625, 0.04998779296875, -0.0250701904296875, -0.0205078125, 0.0279083251953125, -0.03692626953125, 0.022064208984375, 0.0166015625, -0.0017147064208984375, -0.00608062744140625, -0.0127716064453125, -0.0233001708984375, 0.005706787109375, -0.0102691650390625, 0.0192718505859375, -0.006008148193359375, -0.02520751953125, -0.041168212890625, -0.0086822509765625, 0.036407470703125, -0.0007328987121582031, 0.0306854248046875, -0.05560302734375, 0.00902557373046875, 0.01165008544921875, -0.00128173828125, -0.02178955078125, 0.004016876220703125, -0.0185699462890625, -0.0007061958312988281, -0.01212310791015625, -0.0675048828125, -0.061981201171875, 0.01447296142578125, 0.00665283203125, -0.0038814544677734375, -0.06488037109375, 0.060760498046875, -0.0003097057342529297, 0.033477783203125, -0.04034423828125, 0.035308837890625, -0.03155517578125, -0.0182952880859375, -0.079345703125, -0.06573486328125, -0.0537109375, 0.056549072265625, -0.0802001953125, 0.0239105224609375, 0.054229736328125, -0.01419830322265625, -0.00042748451232910156, 0.005802154541015625, 0.005641937255859375, 0.05023193359375, -0.045928955078125, 0.004261016845703125, 0.053466796875, -0.0162811279296875, -0.04150390625, -0.07861328125, -0.0018129348754882812, -0.045166015625, 0.010986328125, -0.02288818359375, 0.0172882080078125, 0.0179901123046875, -0.0276947021484375, -0.0587158203125, 0.020172119140625, -0.00759124755859375, -0.03326416015625, -0.04180908203125, -0.032012939453125, -0.021514892578125, 0.0413818359375, -0.028228759765625, 0.0137176513671875, -0.0216522216796875, 0.06201171875, 0.02227783203125, 0.03729248046875, -0.007640838623046875, 0.0489501953125, -0.0208282470703125, 0.054107666015625, 0.0277099609375, 0.01116180419921875, -0.01421356201171875, 0.023895263671875, 0.00600433349609375, 0.0443115234375, -0.00896453857421875, 0.02117919921875, 0.01165008544921875, -0.02069091796875, -0.01409149169921875, 0.0296783447265625, -0.03057861328125, 0.01125335693359375, 0.055816650390625, 0.08746337890625, 0.0216064453125, -0.0377197265625, -0.038787841796875, -0.037872314453125, -0.0693359375, -0.0523681640625, 0.0426025390625, -0.09307861328125, -0.00047326087951660156, -0.0018768310546875, -0.036895751953125, 0.0401611328125, -0.033050537109375, -0.057647705078125, 0.0295257568359375, 0.010101318359375, 0.0248870849609375, -0.06573486328125, -0.0494384765625, 0.0794677734375, -0.0382080078125, 0.015106201171875, 0.014556884765625, 0.03912353515625, 0.0496826171875, 0.0227203369140625, -0.03338623046875, -0.01494598388671875, -0.01983642578125, 0.01715087890625, -0.0214080810546875, 0.0105743408203125, -0.025543212890625, 0.00555419921875, -0.01519012451171875, 0.01824951171875, 0.0267486572265625, 0.01995849609375, -0.02764892578125, 0.0010461807250976562, 0.007648468017578125, -0.0044708251953125, -0.028228759765625, -0.05889892578125, -0.0251312255859375, 0.00774383544921875, -0.06951904296875, 0.034759521484375, -0.031219482421875, -0.03265380859375, 0.017669677734375, -0.00208282470703125, 0.013946533203125, -0.0199737548828125, -0.01320648193359375, -0.08148193359375, -0.0023822784423828125, -0.007656097412109375 ]
2373d89813bf000ef62fb2ebf94073fd3486bd1d
Wordpress Stackexchange Q: Run WordPress frontend and backend in different domains I want to run my WP frontend as www.example.com and my backend (i.e. wp-admin) as user1.example.org, is it possible? The reason is I want to host lot of sites in a single server which has only 1 IP and I need SSL support for wp-admin (i.e. *.example.org) A: There's no need to do it the way you mean. There are ways to host multiple SSL websites on a single domain both with Apache and Nginx, and it's much easier to implement than your idea. Check out these tutorials: https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-apache-on-ubuntu-12-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-nginx-on-ubuntu-12-04
Q: Run WordPress frontend and backend in different domains I want to run my WP frontend as www.example.com and my backend (i.e. wp-admin) as user1.example.org, is it possible? The reason is I want to host lot of sites in a single server which has only 1 IP and I need SSL support for wp-admin (i.e. *.example.org) A: There's no need to do it the way you mean. There are ways to host multiple SSL websites on a single domain both with Apache and Nginx, and it's much easier to implement than your idea. Check out these tutorials: https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-apache-on-ubuntu-12-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-nginx-on-ubuntu-12-04
wordpress
{ "language": "en", "length": 99, "provenance": "stackexchange_00019.jsonl.gz:446832", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/153061" }
[ 0.033233642578125, 0.00901031494140625, -0.013275146484375, -0.044586181640625, -0.0022907257080078125, -0.0249176025390625, -0.01039886474609375, -0.04144287109375, -0.05023193359375, 0.01180267333984375, 0.03533935546875, 0.01309967041015625, 0.0064239501953125, -0.04974365234375, 0.03607177734375, -0.003681182861328125, -0.002902984619140625, 0.0312347412109375, 0.01363372802734375, -0.02130126953125, 0.001873016357421875, -0.017852783203125, -0.0117034912109375, 0.0186004638671875, 0.01287078857421875, -0.042633056640625, 0.04278564453125, -0.0205841064453125, 0.0013742446899414062, -0.00927734375, 0.008758544921875, 0.004772186279296875, 0.0264892578125, 0.02642822265625, -0.052978515625, -0.03466796875, -0.021026611328125, 0.0183258056640625, -0.0187835693359375, 0.011322021484375, 0.016937255859375, 0.0006546974182128906, 0.09832763671875, 0.051483154296875, 0.055450439453125, -0.0648193359375, 0.06988525390625, -0.090087890625, 0.0118255615234375, 0.01232147216796875, -0.0018644332885742188, 0.012115478515625, -0.00391387939453125, 0.0031070709228515625, 0.0013599395751953125, -0.0041351318359375, 0.0004582405090332031, -0.0193634033203125, 0.025665283203125, -0.01531219482421875, -0.0267181396484375, -0.01091766357421875, 0.0235595703125, -0.0011034011840820312, -0.006313323974609375, -0.006565093994140625, -0.033538818359375, 0.0289764404296875, -0.038482666015625, -0.0088958740234375, 0.017425537109375, -0.025482177734375, -0.0174713134765625, -0.0017442703247070312, -0.0158843994140625, 0.018035888671875, 0.0215911865234375, 0.0036411285400390625, 0.002170562744140625, 0.0106964111328125, -0.0258636474609375, -0.0117950439453125, -0.085205078125, -0.03466796875, 0.015228271484375, -0.0018663406372070312, -0.01654052734375, -0.00704193115234375, -0.0072479248046875, 0.02728271484375, -0.00913238525390625, -0.043243408203125, -0.0164947509765625, 0.06549072265625, 0.016326904296875, 0.0030574798583984375, 0.00650787353515625, -0.00928497314453125, 0.01995849609375, 0.003238677978515625, 0.01361846923828125, -0.05853271484375, 0.03460693359375, -0.01922607421875, -0.0086669921875, 0.061370849609375, 0.0146026611328125, 0.0697021484375, 0.0364990234375, -0.0007963180541992188, 0.005619049072265625, 0.0199432373046875, -0.02435302734375, -0.053070068359375, -0.0008563995361328125, 0.022308349609375, -0.024261474609375, 0.02606201171875, 0.00862884521484375, -0.01023101806640625, 0.0013837814331054688, 0.046112060546875, -0.006069183349609375, -0.017364501953125, -0.01262664794921875, 0.00023376941680908203, 0.016082763671875, -0.056427001953125, 0.01369476318359375, 0.0202484130859375, -0.0312347412109375, 0.0038700103759765625, 0.05548095703125, 0.035919189453125, 0.007495880126953125, -0.01361846923828125, 0.0276031494140625, 0.043914794921875, -0.00446319580078125, 0.0038547515869140625, 0.05755615234375, -0.06390380859375, -0.09661865234375, 0.02679443359375, 0.0088348388671875, 0.0006160736083984375, 0.03973388671875, 0.01806640625, -0.00740814208984375, -0.03448486328125, 0.01206207275390625, 0.028045654296875, 0.0051422119140625, 0.01309967041015625, 0.028656005859375, -0.0034847259521484375, 0.00749969482421875, -0.00809478759765625, 0.00005328655242919922, 0.01412200927734375, -0.02215576171875, 0.01023101806640625, 0.061248779296875, -0.042144775390625, -0.041015625, -0.0220489501953125, -0.0389404296875, -0.0062103271484375, 0.02337646484375, -0.0335693359375, 0.02471923828125, -0.02313232421875, 0.00606536865234375, -0.005908966064453125, 0.0037288665771484375, 0.0250244140625, 0.0189361572265625, 0.03448486328125, -0.0215301513671875, 0.0263824462890625, 0.01047515869140625, -0.037628173828125, 0.051177978515625, -0.01024627685546875, -0.03326416015625, -0.01296234130859375, -0.032623291015625, 0.021087646484375, 0.059539794921875, 0.0093841552734375, -0.0286407470703125, -0.029510498046875, -0.009765625, 0.034332275390625, -0.05413818359375, -0.03411865234375, -0.029693603515625, 0.01154327392578125, -0.03985595703125, -0.0081634521484375, -0.024749755859375, -0.0160064697265625, 0.018402099609375, -0.0138092041015625, 0.04510498046875, -0.042572021484375, 0.01715087890625, 0.0119171142578125, 0.0264129638671875, 0.01432037353515625, -0.01300811767578125, -0.0091705322265625, 0.01146697998046875, -0.054351806640625, -0.0303955078125, 0.01483917236328125, -0.023101806640625, 0.02215576171875, 0.0028934478759765625, 0.0188751220703125, 0.014984130859375, -0.02093505859375, 0.0079498291015625, -0.0154876708984375, 0.02923583984375, -0.0139617919921875, 0.0096893310546875, -0.0175628662109375, 0.03985595703125, 0.005863189697265625, -0.008209228515625, 0.0013751983642578125, 0.040069580078125, 0.0340576171875, -0.0305023193359375, -0.0015048980712890625, 0.0159149169921875, -0.031768798828125, -0.00592041015625, 0.03985595703125, 0.03302001953125, -0.005382537841796875, -0.0157470703125, -0.01751708984375, 0.00909423828125, -0.039947509765625, 0.0189666748046875, -0.0276641845703125, -0.01111602783203125, -0.01397705078125, -0.0203704833984375, -0.00399017333984375, 0.053497314453125, -0.05072021484375, 0.00807952880859375, 0.0736083984375, 0.03399658203125, -0.01090240478515625, -0.01174163818359375, 0.0003943443298339844, 0.0255584716796875, -0.0016336441040039062, -0.06689453125, 0.0179901123046875, -0.03570556640625, -0.00931549072265625, -0.01715087890625, -0.0106201171875, -0.001338958740234375, -0.01861572265625, 0.0192108154296875, -0.04241943359375, -0.0111083984375, 0.0021820068359375, 0.037017822265625, 0.006023406982421875, -0.0274658203125, -0.016204833984375, 0.021881103515625, -0.0025997161865234375, -0.0283355712890625, -0.0045318603515625, -0.05084228515625, 0.004566192626953125, -0.0272369384765625, -0.06884765625, 0.038726806640625, 0.038970947265625, 0.0080413818359375, -0.0019445419311523438, 0.0296783447265625, -0.02508544921875, -0.052886962890625, 0.043853759765625, -0.027252197265625, -0.039520263671875, 0.041412353515625, -0.023345947265625, 0.03448486328125, -0.00872039794921875, 0.046112060546875, 0.056182861328125, 0.007198333740234375, -0.00812530517578125, 0.007373809814453125, 0.01027679443359375, 0.0220947265625, 0.00699615478515625, -0.0172576904296875, -0.00855255126953125, -0.06500244140625, -0.0322265625, 0.037261962890625, -0.017852783203125, 0.0452880859375, -0.006221771240234375, 0.005950927734375, 0.034027099609375, -0.036468505859375, -0.055694580078125, -0.033905029296875, -0.050323486328125, 0.0010023117065429688, 0.0009508132934570312, -0.02618408203125, 0.0081939697265625, 0.01029205322265625, 0.011688232421875, 0.054351806640625, -0.029083251953125, -0.05108642578125, -0.0292816162109375, -0.07769775390625, -0.0704345703125, -0.0016584396362304688, -0.0118560791015625, 0.0113983154296875, 0.017852783203125, -0.00827789306640625, -0.03692626953125, 0.01222991943359375, 0.062225341796875, -0.0009732246398925781, -0.01453399658203125, -0.01505279541015625, -0.03289794921875, -0.02081298828125, 0.005126953125, 0.0261993408203125, 0.007709503173828125, 0.004669189453125, 0.0118560791015625, 0.01213836669921875, -0.08154296875, -0.01284027099609375, -0.04779052734375, -0.01085662841796875, -0.0321044921875, -0.0290374755859375, -0.07147216796875, -0.0089874267578125, -0.005252838134765625, -0.027069091796875, -0.016510009765625, 0.0233306884765625, -0.024688720703125, -0.006298065185546875, -0.0013170242309570312, 0.0013818740844726562, -0.0026607513427734375, 0.004787445068359375, -0.0009508132934570312, -0.0021991729736328125, -0.006168365478515625, -0.0038166046142578125, -0.01247406005859375, 0.027679443359375, -0.0202484130859375, -0.056488037109375, -0.02191162109375, -0.0017375946044921875, -0.01169586181640625, 0.01529693603515625, -0.0201416015625, -0.07794189453125, 0.0631103515625, -0.0027523040771484375, -0.0041046142578125, -0.036651611328125, -0.050567626953125, 0.004917144775390625, 0.11834716796875, -0.01233673095703125, -0.01279449462890625, 0.034332275390625, 0.02392578125, -0.045684814453125, 0.00445556640625, -0.046783447265625, -0.017425537109375, -0.05718994140625, -0.024444580078125, -0.032745361328125, -0.01233673095703125, 0.0184326171875, -0.06500244140625, -0.0006895065307617188, -0.049591064453125, 0.03399658203125, -0.01555633544921875, 0.015716552734375, -0.01092529296875, 0.002044677734375, -0.039886474609375, -0.00762176513671875, -0.0213623046875, -0.047607421875, -0.0224609375, 0.010040283203125, 0.06610107421875, -0.00701141357421875, 0.005706787109375, -0.0079498291015625, 0.048675537109375, -0.0166015625, 0.039398193359375, -0.0167999267578125, 0.005451202392578125, 0.037445068359375, -0.00920867919921875, 0.0017375946044921875, -0.00499725341796875, -0.0286712646484375, -0.040618896484375, -0.0242767333984375, -0.00328826904296875, -0.0155029296875, -0.0013246536254882812, 0.0016794204711914062, -0.01474761962890625, -0.04449462890625, -0.00885772705078125, -0.05224609375, -0.01322174072265625, -0.00981903076171875, -0.045684814453125, -0.0106353759765625, -0.04852294921875, 0.049072265625, -0.038543701171875, -0.036163330078125, 0.015655517578125, 0.04998779296875, 0.00527191162109375, -0.01415252685546875, -0.0418701171875, -0.0017375946044921875, 0.01953125, -0.0172576904296875, 0.03497314453125, 0.012176513671875, 0.0063629150390625, 0.0224609375, -0.00363922119140625, 0.0222930908203125, 0.03399658203125, -0.03887939453125, 0.025482177734375, -0.0135345458984375, -0.01000213623046875, 0.046112060546875, -0.03302001953125, 0.005512237548828125, 0.014495849609375, 0.0166473388671875, 0.002658843994140625, -0.03729248046875, 0.021026611328125, -0.037445068359375, 0.004840850830078125, -0.0301361083984375, 0.00940704345703125, -0.061309814453125, 0.040496826171875, 0.02880859375, -0.007389068603515625, 0.0379638671875, 0.04632568359375, -0.027099609375, -0.00893402099609375, 0.0094757080078125, -0.006900787353515625, 0.01406097412109375, -0.0231475830078125, -0.0311737060546875, -0.0194854736328125, -0.026397705078125, 0.12744140625, 0.009002685546875, -0.06134033203125, 0.025482177734375, -0.017822265625, -0.0296783447265625, 0.0294036865234375, -0.0264892578125, 0.0305633544921875, -0.0097198486328125, -0.0313720703125, -0.0203094482421875, -0.016082763671875, -0.059112548828125, -0.06201171875, -0.044158935546875, -0.01558685302734375, -0.0240020751953125, 0.029876708984375, 0.045074462890625, 0.00653076171875, 0.046478271484375, -0.0302581787109375, 0.0307769775390625, 0.0192718505859375, -0.005664825439453125, -0.005161285400390625, 0.05426025390625, -0.005237579345703125, -0.01088714599609375, 0.01129913330078125, -0.0148468017578125, 0.006435394287109375, 0.061492919921875, 0.036590576171875, 0.07562255859375, 0.018341064453125, -0.06463623046875, -0.010345458984375, -0.003192901611328125, 0.02947998046875, 0.00429534912109375, -0.02166748046875, -0.0240936279296875, 0.004638671875, 0.0399169921875, -0.016143798828125, -0.0212554931640625, -0.00281524658203125, 0.021728515625, 0.0408935546875, -0.0090179443359375, -0.028411865234375, 0.032135009765625, 0.0287322998046875, 0.02374267578125, -0.02191162109375, -0.01503753662109375, -0.005161285400390625, 0.0279388427734375, -0.040191650390625, -0.009521484375, 0.0338134765625, -0.012603759765625, -0.001186370849609375, -0.01934814453125, -0.001354217529296875, -0.0178985595703125, 0.0031604766845703125, 0.035858154296875, 0.019439697265625, -0.050750732421875, 0.01001739501953125, -0.054534912109375, 0.0090789794921875, 0.0447998046875, 0.00794219970703125, -0.00958251953125, -0.01218414306640625, 0.05322265625, 0.00984954833984375, -0.000682830810546875, -0.060394287109375, -0.01251220703125, 0.0103607177734375, 0.04156494140625, 0.0203399658203125, -0.00615692138671875, 0.047821044921875, -0.029022216796875, 0.05438232421875, -0.0088958740234375, -0.020050048828125, -0.042877197265625, 0.00730133056640625, 0.0098876953125, -0.0723876953125, -0.0216064453125, -0.0238494873046875, -0.00820159912109375, 0.05364990234375, 0.0377197265625, 0.01152801513671875, -0.0009307861328125, 0.003765106201171875, 0.014251708984375, -0.031097412109375, -0.01149749755859375, -0.014434814453125, 0.0018215179443359375, -0.035858154296875, -0.005664825439453125, 0.04071044921875, -0.0222625732421875, -0.019195556640625, 0.0165557861328125, -0.005519866943359375, 0.0118408203125, 0.04107666015625, -0.006267547607421875, -0.00760650634765625, 0.0916748046875, 0.0217437744140625, 0.055328369140625, 0.0435791015625, 0.0192108154296875, 0.0308990478515625, 0.0036983489990234375, -0.050506591796875, -0.007045745849609375, -0.00260162353515625, 0.005176544189453125, -0.006061553955078125, 0.0087890625, -0.00214385986328125, 0.01641845703125, 0.056671142578125, 0.066650390625, -0.09490966796875, 0.01239013671875, 0.0196685791015625, -0.01189422607421875, -0.025665283203125, -0.0078887939453125, -0.01245880126953125, -0.0203857421875, 0.0087127685546875, 0.0077056884765625, -0.0163421630859375, 0.0088043212890625, 0.0304718017578125, -0.020751953125, 0.006572723388671875, 0.027923583984375, 0.006580352783203125, -0.0157623291015625, -0.01285552978515625, 0.0035400390625, -0.0174102783203125, -0.00328826904296875, -0.0094451904296875, 0.01403045654296875, -0.046600341796875, -0.067626953125, -0.0225372314453125, -0.004993438720703125, -0.019805908203125, 0.0233306884765625, 0.02447509765625, 0.030975341796875, 0.0570068359375, -0.0107421875, 0.0283355712890625, 0.0194854736328125, 0.0301513671875, -0.0016946792602539062, 0.01113128662109375, -0.00919342041015625, -0.016815185546875, -0.05224609375, -0.004642486572265625, -0.068603515625, 0.0277099609375, -0.023834228515625, -0.00798797607421875, 0.0821533203125, 0.01409149169921875, -0.03582763671875, 0.0224761962890625, 0.038360595703125, -0.0196533203125, 0.01012420654296875, 0.027252197265625, -0.03936767578125, -0.032684326171875, 0.014984130859375, -0.0572509765625, 0.0011758804321289062, 0.004344940185546875, -0.057373046875, 0.07635498046875, -0.0182647705078125, 0.034820556640625, 0.0187530517578125, 0.01306915283203125, -0.00830078125, 0.00420379638671875, -0.005126953125, 0.012939453125, -0.002010345458984375, -0.0222320556640625, -0.0071868896484375, 0.004505157470703125, -0.0125274658203125, 0.01727294921875, 0.01708984375, 0.0260009765625, -0.05059814453125, 0.015716552734375, 0.021881103515625, -0.0142822265625, -0.01340484619140625, 0.06298828125, -0.031402587890625, 0.007289886474609375, 0.00719451904296875, 0.0028839111328125, 0.0279388427734375, -0.017669677734375, -0.0660400390625, -0.00794219970703125, 0.023681640625, 0.0232086181640625, 0.0185546875, 0.0428466796875, -0.0360107421875, 0.008544921875, 0.0364990234375, -0.0168914794921875, 0.0029430389404296875, -0.0206298828125, -0.0241546630859375, -0.0302276611328125, 0.042083740234375, -0.033935546875, 0.03131103515625, -0.008880615234375, -0.026092529296875, 0.01617431640625, 0.0306549072265625, -0.07550048828125, 0.0110015869140625, -0.00823974609375, 0.033416748046875, -0.028594970703125, 0.01345062255859375, 0.0262298583984375, 0.050872802734375, 0.00896453857421875, 0.01103973388671875, 0.0019092559814453125, 0.0260772705078125, -0.0156402587890625, -0.05120849609375, 0.0109405517578125, -0.0008511543273925781, 0.034027099609375, 0.0267791748046875, 0.04290771484375, 0.01035308837890625, 0.0059814453125, -0.0218658447265625, 0.0018291473388671875, 0.0088348388671875, 0.0013628005981445312, 0.0013704299926757812, 0.041961669921875, -0.005535125732421875, -0.0084228515625, -0.05194091796875, -0.0007863044738769531, 0.00618743896484375, 0.064697265625, 0.0477294921875, 0.050567626953125, 0.01169586181640625, -0.042327880859375, 0.003772735595703125, 0.03546142578125, 0.0153045654296875, -0.035247802734375, -0.0141448974609375, -0.05657958984375, 0.004974365234375, 0.035675048828125, -0.0016603469848632812, 0.036895751953125, 0.0263214111328125, 0.06671142578125, 0.0194854736328125, -0.00740814208984375, 0.08404541015625, 0.01346588134765625, 0.0379638671875, -0.01068115234375, -0.0171661376953125, -0.03778076171875, -0.034759521484375, -0.0211944580078125, 0.021270751953125, -0.015838623046875, -0.0014019012451171875, 0.0200042724609375, -0.004383087158203125, -0.024169921875, 0.0016727447509765625, -0.052398681640625, 0.019134521484375, -0.01407623291015625, -0.035247802734375, -0.00946044921875, -0.0007829666137695312, -0.01171112060546875, 0.00838470458984375, 0.02581787109375, -0.01338958740234375, 0.03118896484375, 0.036773681640625, -0.0394287109375, 0.0160064697265625, 0.0240020751953125, 0.017486572265625, 0.01378631591796875, 0.016326904296875, 0.00839996337890625, -0.045013427734375, -0.033294677734375, -0.023223876953125, 0.047149658203125, 0.000514984130859375, 0.0699462890625, -0.0291900634765625, 0.019317626953125, 0.01904296875, 0.0178375244140625, -0.0007252693176269531, -0.00798797607421875, -0.017913818359375, 0.00766754150390625, 0.03887939453125, -0.0080108642578125, -0.0472412109375, 0.0023555755615234375, 0.04022216796875, -0.064453125, 0.0272064208984375, 0.01204681396484375, 0.00458526611328125, -0.07586669921875, 0.029144287109375, -0.025604248046875, -0.09747314453125, -0.0595703125, 0.0712890625, -0.01776123046875, 0.02801513671875, -0.06982421875, 0.01538848876953125, -0.0160369873046875, -0.040191650390625, 0.0038604736328125, -0.0309906005859375, -0.002780914306640625, 0.024688720703125, -0.01385498046875, -0.036163330078125, 0.0079803466796875, -0.01314544677734375, 0.0030517578125, 0.0005931854248046875, 0.0631103515625, 0.006870269775390625, 0.011260986328125, 0.015838623046875, 0.024200439453125, 0.035186767578125, -0.0208282470703125, 0.0178070068359375, 0.025909423828125, -0.01486968994140625, 0.0017614364624023438, -0.001399993896484375, -0.0150299072265625, 0.0071258544921875, -0.007232666015625, 0.0183868408203125, 0.0181732177734375, -0.0311126708984375, -0.054901123046875, 0.0017213821411132812, 0.0200042724609375, -0.0352783203125, 0.0242156982421875, 0.015960693359375, -0.0509033203125, -0.00994110107421875, -0.0109710693359375, 0.0223236083984375, -0.0111846923828125, -0.0037174224853515625, -0.02423095703125, -0.02728271484375, -0.048583984375, 0.0322265625, -0.0360107421875, 0.0018472671508789062, 0.04095458984375, 0.001773834228515625, -0.01922607421875, -0.018707275390625, -0.03570556640625, 0.03216552734375, -0.032501220703125, 0.035919189453125, 0.00113677978515625, 0.014129638671875, -0.0645751953125, -0.07110595703125, 0.0302276611328125, -0.033111572265625, -0.040985107421875, -0.020111083984375, 0.0272369384765625, 0.032012939453125, -0.027374267578125, -0.0927734375, 0.05059814453125, -0.0274658203125, -0.0316162109375, -0.061248779296875, 0.0016069412231445312, -0.0252838134765625, 0.07952880859375, -0.013397216796875, -0.01360321044921875, -0.006519317626953125, 0.056854248046875, 0.022125244140625, 0.032440185546875, -0.039093017578125, 0.057769775390625, 0.0039825439453125, 0.06256103515625, 0.04571533203125, -0.01096343994140625, 0.02972412109375, 0.01192474365234375, 0.03387451171875, 0.059722900390625, -0.020050048828125, 0.04705810546875, -0.0179290771484375, -0.06866455078125, -0.0161590576171875, -0.006923675537109375, -0.019561767578125, -0.0360107421875, 0.04339599609375, 0.047698974609375, 0.00942230224609375, 0.00011152029037475586, -0.07879638671875, -0.04620361328125, 0.0235595703125, -0.03076171875, 0.0186309814453125, -0.10406494140625, -0.00799560546875, 0.04351806640625, -0.005344390869140625, 0.039642333984375, 0.01505279541015625, -0.0027618408203125, 0.038055419921875, 0.06390380859375, -0.0177154541015625, -0.044525146484375, 0.00579071044921875, 0.068603515625, -0.055694580078125, -0.01995849609375, 0.0017490386962890625, 0.01534271240234375, 0.01328277587890625, -0.031494140625, 0.005352020263671875, 0.0107269287109375, -0.0379638671875, 0.015045166015625, 0.01197052001953125, 0.0230560302734375, -0.048553466796875, -0.0268096923828125, -0.0251617431640625, 0.0167694091796875, 0.01934814453125, 0.029205322265625, -0.00872039794921875, 0.009246826171875, 0.0181884765625, -0.0012426376342773438, -0.00449371337890625, -0.003780364990234375, -0.0292816162109375, 0.037872314453125, -0.021942138671875, -0.01605224609375, 0.00684356689453125, -0.0145721435546875, 0.005359649658203125, 0.01457977294921875, 0.019317626953125, -0.0272979736328125, -0.00321197509765625, -0.0007023811340332031, 0.031402587890625, 0.009307861328125 ]
f0078d2d04eb4b6d6560883810764d267ab66008
Wordpress Stackexchange Q: Using update_option() and get_option() is echoing escaped strings I'm using the Option API for my theme settings page. I use the $_POST data to update the options when the changes are saved. My issue is that the strings I send get escaped and when I use this code: <?php echo get_option('myOption'); ?> it echoes the escaped string. So for example, say 'myOption' = Bob's Diner Using the above statement, it echoes Bob\'s Diner, which is definitely not what I want. How exactly do I go about removing that backslash when I call the option on the site? A: You can use PHP's stripslashes() command: <?php echo stripslashes( get_option( 'myOption' ) );
Q: Using update_option() and get_option() is echoing escaped strings I'm using the Option API for my theme settings page. I use the $_POST data to update the options when the changes are saved. My issue is that the strings I send get escaped and when I use this code: <?php echo get_option('myOption'); ?> it echoes the escaped string. So for example, say 'myOption' = Bob's Diner Using the above statement, it echoes Bob\'s Diner, which is definitely not what I want. How exactly do I go about removing that backslash when I call the option on the site? A: You can use PHP's stripslashes() command: <?php echo stripslashes( get_option( 'myOption' ) );
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:446848", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/153099" }
[ 0.06207275390625, -0.00411224365234375, 0.0218963623046875, -0.01015472412109375, 0.0199737548828125, -0.0182647705078125, 0.07025146484375, -0.0255279541015625, -0.008941650390625, 0.0238800048828125, 0.039764404296875, -0.0179290771484375, -0.03948974609375, -0.048126220703125, -0.029510498046875, -0.01395416259765625, 0.0204620361328125, 0.00524139404296875, -0.019195556640625, -0.0203094482421875, -0.0288238525390625, 0.002471923828125, -0.04180908203125, 0.045501708984375, 0.03369140625, -0.0435791015625, 0.0804443359375, -0.034423828125, 0.012664794921875, -0.02520751953125, 0.00772857666015625, -0.0121002197265625, 0.024505615234375, 0.041290283203125, -0.038299560546875, 0.0634765625, 0.019683837890625, 0.007266998291015625, -0.003612518310546875, 0.0433349609375, -0.02093505859375, 0.0166473388671875, -0.00943756103515625, 0.00881195068359375, -0.032684326171875, -0.033355712890625, -0.0061798095703125, -0.018951416015625, -0.004222869873046875, 0.0433349609375, 0.0460205078125, -0.00856781005859375, 0.034759521484375, 0.04534912109375, 0.0030040740966796875, 0.033416748046875, -0.0225830078125, 0.045623779296875, 0.0267333984375, 0.0094146728515625, -0.028045654296875, 0.00321197509765625, -0.0058441162109375, -0.040771484375, 0.050018310546875, -0.000025987625122070312, 0.049957275390625, 0.03546142578125, -0.045989990234375, 0.047515869140625, 0.0307769775390625, -0.033843994140625, 0.0283355712890625, -0.060821533203125, 0.02276611328125, 0.01331329345703125, -0.0214996337890625, -0.01326751708984375, 0.0182342529296875, -0.0247802734375, 0.0184326171875, -0.01715087890625, -0.0679931640625, -0.00365447998046875, 0.03765869140625, 0.0345458984375, -0.003093719482421875, -0.032470703125, -0.01371002197265625, 0.0015621185302734375, -0.02490234375, -0.0611572265625, 0.035888671875, 0.006099700927734375, 0.0002551078796386719, -0.02423095703125, -0.0243988037109375, -0.01104736328125, -0.0102386474609375, 0.0321044921875, -0.0035247802734375, -0.039947509765625, 0.08184814453125, -0.038421630859375, 0.002246856689453125, 0.02520751953125, 0.0262451171875, 0.034637451171875, 0.0309295654296875, 0.006317138671875, 0.0014162063598632812, 0.030975341796875, -0.04229736328125, -0.040557861328125, -0.016876220703125, 0.032684326171875, -0.04205322265625, 0.00661468505859375, 0.0117950439453125, -0.016143798828125, 0.0108489990234375, 0.03167724609375, -0.00478363037109375, -0.0237274169921875, -0.005794525146484375, -0.004306793212890625, -0.0206146240234375, -0.03466796875, -0.0242767333984375, 0.05706787109375, -0.03411865234375, -0.01276397705078125, 0.033203125, 0.014892578125, -0.005336761474609375, -0.04034423828125, -0.023468017578125, -0.02899169921875, -0.03546142578125, 0.0155181884765625, 0.01186370849609375, -0.045501708984375, -0.01287078857421875, -0.010467529296875, -0.0029773712158203125, -0.0005512237548828125, 0.01800537109375, 0.0236358642578125, -0.013336181640625, -0.006412506103515625, 0.00603485107421875, -0.00970458984375, 0.024566650390625, 0.006809234619140625, -0.042877197265625, -0.01537322998046875, -0.006809234619140625, -0.026885986328125, 0.00553131103515625, -0.026458740234375, -0.024658203125, -0.01479339599609375, 0.0335693359375, -0.00981903076171875, -0.0196380615234375, 0.0127410888671875, -0.01331329345703125, -0.00982666015625, 0.0127716064453125, 0.042510986328125, -0.01806640625, -0.0002002716064453125, -0.0300750732421875, 0.00296783447265625, -0.0159149169921875, -0.0054779052734375, -0.0130157470703125, 0.004909515380859375, 0.041961669921875, -0.01727294921875, -0.0304718017578125, -0.04425048828125, 0.049560546875, -0.031890869140625, -0.06646728515625, 0.035430908203125, 0.025360107421875, 0.108154296875, 0.01513671875, 0.0250396728515625, 0.01537322998046875, -0.0042877197265625, 0.002933502197265625, 0.024688720703125, -0.016448974609375, -0.0188140869140625, 0.016937255859375, 0.02197265625, -0.01378631591796875, -0.01506805419921875, 0.0147552490234375, 0.0012903213500976562, 0.00534820556640625, -0.006801605224609375, -0.057159423828125, -0.0007877349853515625, -0.026214599609375, 0.032745361328125, -0.01316070556640625, 0.036712646484375, 0.016693115234375, 0.019989013671875, -0.06549072265625, 0.055450439453125, -0.01218414306640625, 0.019744873046875, -0.004512786865234375, 0.0771484375, -0.01593017578125, 0.0694580078125, 0.025482177734375, -0.067138671875, 0.03363037109375, 0.0384521484375, 0.04595947265625, -0.0262298583984375, -0.0012807846069335938, -0.036895751953125, 0.0251312255859375, -0.03594970703125, 0.0215911865234375, 0.06060791015625, 0.0267486572265625, 0.02569580078125, -0.03985595703125, -0.0211029052734375, -0.038421630859375, -0.068603515625, -0.003963470458984375, 0.07373046875, 0.041107177734375, 0.0404052734375, -0.00537109375, -0.042266845703125, 0.01464080810546875, -0.054443359375, 0.025146484375, -0.05767822265625, 0.02099609375, 0.01137542724609375, -0.007770538330078125, -0.05889892578125, 0.0273895263671875, -0.04827880859375, 0.00954437255859375, 0.022613525390625, -0.040435791015625, -0.017303466796875, 0.0526123046875, -0.0191650390625, -0.01995849609375, -0.056610107421875, 0.00966644287109375, -0.045379638671875, 0.0239105224609375, -0.019683837890625, -0.00797271728515625, -0.0180206298828125, -0.0183868408203125, -0.004062652587890625, 0.026397705078125, -0.0138702392578125, -0.005702972412109375, 0.03192138671875, -0.019287109375, -0.00453948974609375, -0.011444091796875, -0.006084442138671875, -0.0169525146484375, 0.00457000732421875, -0.00555419921875, 0.01328277587890625, 0.0209197998046875, -0.0096893310546875, 0.0321044921875, 0.018524169921875, 0.01074981689453125, -0.033843994140625, 0.0177459716796875, 0.032135009765625, 0.039764404296875, 0.025726318359375, -0.007415771484375, 0.0198516845703125, 0.006580352783203125, -0.004047393798828125, 0.07861328125, 0.01251983642578125, -0.0011472702026367188, 0.028717041015625, 0.03192138671875, 0.0361328125, 0.02960205078125, -0.038482666015625, 0.0016078948974609375, 0.0019283294677734375, -0.005039215087890625, 0.02001953125, -0.006664276123046875, -0.023712158203125, -0.042999267578125, 0.01392364501953125, 0.0163116455078125, 0.0185546875, -0.022247314453125, -0.037353515625, -0.039093017578125, 0.00220489501953125, -0.1007080078125, -0.045074462890625, 0.033416748046875, -0.050201416015625, -0.0264129638671875, 0.0006899833679199219, -0.031768798828125, -0.00032019615173339844, -0.00438690185546875, -0.003612518310546875, 0.043731689453125, -0.00981903076171875, -0.032135009765625, -0.0145111083984375, -0.06646728515625, -0.045501708984375, 0.0023517608642578125, 0.0091094970703125, 0.0011615753173828125, 0.0496826171875, 0.004547119140625, -0.04632568359375, -0.0005717277526855469, -0.016204833984375, -0.006366729736328125, 0.0267486572265625, 0.026123046875, -0.01277923583984375, -0.0285797119140625, -0.01509857177734375, 0.0220184326171875, 0.0247955322265625, -0.039764404296875, 0.0023517608642578125, -0.0228424072265625, 0.01210784912109375, 0.0055694580078125, 0.012298583984375, 0.039337158203125, 0.027801513671875, 0.007282257080078125, -0.035888671875, -0.0308990478515625, 0.00037026405334472656, -0.0323486328125, 0.00646209716796875, 0.005054473876953125, 0.0022983551025390625, -0.02471923828125, 0.051910400390625, -0.022674560546875, 0.0019931793212890625, 0.0452880859375, -0.0535888671875, 0.04400634765625, -0.0088348388671875, -0.0259246826171875, -0.0333251953125, -0.0171356201171875, -0.049041748046875, 0.01511383056640625, -0.0218658447265625, -0.0262908935546875, -0.03570556640625, 0.0184326171875, -0.0234375, -0.0838623046875, 0.0313720703125, -0.08453369140625, -0.0280914306640625, -0.0594482421875, -0.0023136138916015625, -0.022857666015625, 0.0799560546875, 0.01111602783203125, -0.022308349609375, -0.0027980804443359375, 0.01044464111328125, -0.0177154541015625, -0.01375579833984375, 0.01200103759765625, -0.0104522705078125, -0.063232421875, -0.007465362548828125, -0.025604248046875, -0.0222625732421875, 0.01299285888671875, -0.06402587890625, -0.010833740234375, -0.034423828125, 0.041839599609375, -0.041748046875, 0.046844482421875, -0.04180908203125, 0.03326416015625, -0.052642822265625, -0.0100555419921875, -0.0296173095703125, -0.048919677734375, -0.02838134765625, 0.0545654296875, 0.0345458984375, -0.005222320556640625, -0.03399658203125, -0.0015211105346679688, 0.05908203125, -0.004669189453125, -0.00799560546875, 0.016510009765625, 0.01230621337890625, -0.00487518310546875, 0.0255889892578125, 0.02435302734375, -0.006931304931640625, -0.01434326171875, 0.02935791015625, -0.0018100738525390625, 0.053253173828125, -0.0075531005859375, -0.0007228851318359375, 0.0457763671875, -0.024932861328125, -0.077392578125, -0.0286865234375, -0.022705078125, -0.020172119140625, 0.007579803466796875, -0.028350830078125, -0.00962066650390625, -0.07635498046875, 0.0755615234375, -0.040863037109375, 0.00261688232421875, -0.01123046875, 0.132568359375, 0.00952911376953125, -0.00811004638671875, -0.00033664703369140625, -0.04998779296875, 0.0086212158203125, 0.0205230712890625, 0.033905029296875, 0.00966644287109375, -0.01019287109375, 0.044647216796875, -0.00848388671875, 0.0265045166015625, -0.07177734375, 0.0823974609375, -0.0028934478759765625, 0.0312042236328125, -0.006771087646484375, -0.01557159423828125, 0.0230560302734375, 0.005893707275390625, -0.00997161865234375, 0.0124969482421875, 0.0017242431640625, 0.007396697998046875, -0.0101318359375, -0.005161285400390625, -0.019256591796875, -0.028900146484375, 0.01169586181640625, -0.0102996826171875, -0.0060882568359375, 0.042205810546875, -0.0176849365234375, 0.01123046875, 0.0013227462768554688, -0.0125885009765625, -0.029693603515625, 0.00640106201171875, -0.037017822265625, 0.037506103515625, -0.05902099609375, -0.0372314453125, -0.02581787109375, -0.007312774658203125, 0.00982666015625, -0.0238800048828125, -0.032073974609375, -0.03472900390625, -0.0007171630859375, 0.01324462890625, 0.0178375244140625, 0.04998779296875, -0.0189971923828125, -0.004547119140625, 0.007030487060546875, 0.0042877197265625, 0.06884765625, 0.006977081298828125, 0.005519866943359375, 0.033447265625, 0.0151214599609375, -0.0018186569213867188, 0.039520263671875, 0.0166168212890625, 0.02032470703125, 0.0227813720703125, -0.02142333984375, 0.01090240478515625, 0.003063201904296875, 0.01549530029296875, 0.0085601806640625, -0.005268096923828125, 0.01038360595703125, -0.012451171875, 0.0187530517578125, -0.0171966552734375, -0.0216064453125, 0.007152557373046875, 0.004421234130859375, -0.008331298828125, 0.00913238525390625, 0.0030002593994140625, 0.01073455810546875, -0.031982421875, 0.03375244140625, -0.01959228515625, -0.06414794921875, -0.032073974609375, -0.006092071533203125, 0.0159759521484375, -0.0107269287109375, -0.017059326171875, 0.036834716796875, -0.00028324127197265625, 0.01227569580078125, 0.004520416259765625, -0.03131103515625, -0.019317626953125, 0.0045318603515625, 0.0236053466796875, -0.0130767822265625, -0.01654052734375, -0.042633056640625, -0.0229644775390625, -0.0200347900390625, 0.00646209716796875, 0.0667724609375, -0.02752685546875, 0.022735595703125, -0.010009765625, -0.01873779296875, 0.01548004150390625, -0.0089569091796875, 0.07489013671875, 0.046722412109375, -0.0662841796875, 0.0021209716796875, -0.049102783203125, 0.015655517578125, 0.024139404296875, -0.036651611328125, -0.0380859375, -0.0307769775390625, 0.007526397705078125, 0.0175323486328125, 0.024810791015625, -0.002780914306640625, -0.03436279296875, 0.01751708984375, 0.0341796875, 0.047119140625, -0.00860595703125, 0.0430908203125, -0.0008988380432128906, -0.005901336669921875, 0.004852294921875, 0.01183319091796875, -0.031768798828125, 0.005908966064453125, -0.01456451416015625, -0.0313720703125, 0.0162506103515625, -0.009002685546875, 0.06512451171875, 0.011962890625, 0.01097869873046875, 0.0185546875, 0.01383209228515625, -0.040740966796875, 0.0013513565063476562, -0.0246124267578125, 0.052337646484375, -0.05352783203125, -0.030242919921875, 0.03656005859375, -0.050506591796875, -0.00513458251953125, 0.03668212890625, 0.0259246826171875, 0.0113983154296875, -0.03631591796875, 0.004138946533203125, 0.047576904296875, -0.0406494140625, 0.040618896484375, 0.08807373046875, 0.003414154052734375, 0.04949951171875, 0.0048065185546875, 0.0027637481689453125, 0.0465087890625, 0.005786895751953125, 0.0048980712890625, 0.0523681640625, 0.005748748779296875, -0.0228118896484375, 0.0205841064453125, -0.024627685546875, -0.007328033447265625, 0.04998779296875, 0.06683349609375, 0.09515380859375, -0.07958984375, 0.0092926025390625, 0.02117919921875, -0.0196380615234375, 0.07025146484375, 0.03662109375, -0.018829345703125, -0.032196044921875, 0.040191650390625, -0.05389404296875, 0.0096893310546875, 0.034881591796875, -0.010833740234375, -0.0106353759765625, -0.0235137939453125, 0.0404052734375, 0.01071929931640625, -0.007587432861328125, 0.0230255126953125, 0.00392913818359375, 0.0216827392578125, 0.0224609375, -0.004070281982421875, 0.01898193359375, -0.045989990234375, -0.0679931640625, -0.0217437744140625, -0.041473388671875, -0.0531005859375, -0.00839996337890625, 0.0161895751953125, 0.0131072998046875, 0.06365966796875, -0.02154541015625, -0.0031032562255859375, 0.03411865234375, -0.00867462158203125, 0.033416748046875, -0.0270538330078125, 0.001651763916015625, 0.051605224609375, -0.04638671875, 0.006763458251953125, 0.0168609619140625, 0.0074310302734375, -0.02056884765625, -0.019561767578125, 0.0650634765625, -0.0330810546875, -0.0145416259765625, 0.029571533203125, 0.030731201171875, -0.0193328857421875, 0.01959228515625, -0.01116180419921875, -0.048583984375, -0.032623291015625, -0.0008111000061035156, -0.0516357421875, 0.0032253265380859375, 0.0013132095336914062, -0.040985107421875, 0.06298828125, 0.00833892822265625, -0.0110321044921875, 0.0198822021484375, 0.03240966796875, -0.06805419921875, -0.014007568359375, -0.0277862548828125, 0.01032257080078125, -0.0169525146484375, 0.009521484375, -0.08148193359375, -0.01105499267578125, -0.04351806640625, 0.0491943359375, -0.03662109375, -0.00386810302734375, 0.027130126953125, 0.01163482666015625, 0.01192474365234375, 0.01751708984375, -0.0069122314453125, -0.01175689697265625, 0.051055908203125, 0.030731201171875, 0.0723876953125, -0.040985107421875, 0.021697998046875, -0.0137481689453125, 0.050445556640625, 0.055877685546875, 0.0140380859375, 0.0205535888671875, -0.0157623291015625, -0.0135498046875, 0.0014848709106445312, -0.0204925537109375, -0.0005502700805664062, -0.0174713134765625, -0.01258087158203125, 0.05938720703125, 0.037322998046875, -0.0439453125, -0.0117950439453125, -0.0328369140625, 0.043182373046875, 0.01412200927734375, -0.0126495361328125, -0.00153350830078125, 0.006988525390625, -0.00691986083984375, 0.0179290771484375, -0.0182037353515625, 0.0224761962890625, 0.0203857421875, 0.0115814208984375, 0.023956298828125, 0.019927978515625, -0.00395965576171875, 0.0496826171875, 0.042816162109375, 0.01401519775390625, -0.022430419921875, -0.008026123046875, 0.017059326171875, 0.0189208984375, -0.007678985595703125, -0.02203369140625, -0.0017786026000976562, -0.01334381103515625, 0.0135040283203125, -0.0053253173828125, -0.004184722900390625, 0.02545166015625, 0.024139404296875, 0.007167816162109375, 0.010894775390625, -0.03521728515625, -0.0023899078369140625, -0.0301666259765625, 0.0003590583801269531, -0.00403594970703125, 0.0465087890625, 0.005336761474609375, 0.043426513671875, -0.034027099609375, -0.0190277099609375, -0.01415252685546875, 0.055999755859375, 0.01385498046875, 0.01294708251953125, -0.0121917724609375, -0.00875091552734375, -0.0267181396484375, 0.0153961181640625, -0.0066680908203125, 0.0043182373046875, 0.02264404296875, 0.055145263671875, -0.0033054351806640625, -0.013336181640625, 0.06964111328125, 0.00560760498046875, -0.01219940185546875, -0.01500701904296875, 0.01751708984375, -0.0015249252319335938, 0.001064300537109375, -0.035858154296875, 0.04473876953125, 0.0048675537109375, -0.0185699462890625, 0.043731689453125, -0.01198577880859375, 0.016448974609375, 0.0218963623046875, -0.0229949951171875, 0.01317596435546875, 0.0102691650390625, 0.0310211181640625, 0.0151214599609375, -0.024505615234375, -0.0308685302734375, -0.007350921630859375, 0.0294952392578125, 0.00432586669921875, 0.0328369140625, -0.059112548828125, 0.008026123046875, 0.018157958984375, -0.0254974365234375, -0.017852783203125, 0.03033447265625, 0.03521728515625, -0.008270263671875, -0.01474761962890625, -0.026275634765625, -0.01050567626953125, 0.061279296875, -0.0005221366882324219, 0.02587890625, -0.012542724609375, 0.01494598388671875, 0.0249786376953125, 0.016448974609375, -0.0252838134765625, 0.0021190643310546875, 0.048370361328125, -0.037078857421875, -0.01146697998046875, -0.013580322265625, -0.04498291015625, 0.04046630859375, 0.0238494873046875, -0.01145172119140625, 0.051788330078125, 0.0175628662109375, -0.0030879974365234375, -0.03607177734375, 0.049102783203125, -0.002941131591796875, -0.0263214111328125, -0.001514434814453125, 0.007045745849609375, 0.020416259765625, 0.0799560546875, 0.051300048828125, 0.0232391357421875, 0.05377197265625, 0.033203125, 0.0117645263671875, -0.0015010833740234375, 0.0474853515625, 0.042388916015625, -0.058502197265625, 0.0177764892578125, -0.01181793212890625, -0.024444580078125, 0.00923919677734375, 0.0192413330078125, -0.004940032958984375, 0.01128387451171875, 0.050079345703125, -0.03936767578125, -0.00974273681640625, 0.0325927734375, 0.02239990234375, 0.0179290771484375, -0.045806884765625, -0.0007996559143066406, 0.0178985595703125, -0.006740570068359375, -0.023956298828125, -0.036529541015625, 0.01215362548828125, 0.0141754150390625, 0.01139068603515625, -0.0179901123046875, -0.0287017822265625, -0.01629638671875, 0.00762176513671875, -0.0017213821411132812, -0.01161956787109375, -0.040679931640625, 0.00678253173828125, 0.0272064208984375, -0.01983642578125, 0.0120086669921875, 0.01378631591796875, 0.07049560546875, -0.027923583984375, -0.0411376953125, 0.01082611083984375, 0.0394287109375, -0.023895263671875, 0.0023975372314453125, 0.037322998046875, 0.0105133056640625, -0.036529541015625, -0.0107879638671875, -0.0175323486328125, 0.028350830078125, -0.046661376953125, -0.021942138671875, -0.0025997161865234375, 0.032440185546875, -0.03472900390625, -0.036895751953125, 0.00579071044921875, 0.0018177032470703125, 0.024261474609375, 0.0192413330078125, 0.00640869140625, 0.029296875, -0.01837158203125, -0.0323486328125, 0.034515380859375, 0.01000213623046875, -0.029296875, 0.01983642578125, -0.01306915283203125, -0.00281524658203125, 0.04962158203125, 0.0220184326171875, -0.061737060546875, -0.05291748046875, -0.00957489013671875, 0.02459716796875, 0.042510986328125, 0.0266265869140625, -0.0041046142578125, -0.0260772705078125, 0.0037746429443359375, -0.01386260986328125, 0.033203125, -0.0148773193359375, -0.00841522216796875, 0.0255889892578125, 0.045928955078125, 0.0118255615234375, -0.0180511474609375, 0.0140380859375, -0.06658935546875, -0.0184326171875, -0.027557373046875, -0.04229736328125, -0.018646240234375, 0.078369140625, 0.059478759765625, 0.0188140869140625, -0.02374267578125, -0.0631103515625, -0.01163482666015625, 0.015106201171875, -0.006259918212890625, 0.03155517578125, -0.10064697265625, -0.024261474609375, 0.043731689453125, -0.00272369384765625, 0.014739990234375, 0.025054931640625, 0.0127105712890625, -0.0170135498046875, 0.032073974609375, -0.04254150390625, -0.005268096923828125, -0.05242919921875, 0.0791015625, -0.04180908203125, -0.0171051025390625, -0.0008168220520019531, 0.038330078125, 0.0287933349609375, 0.00574493408203125, -0.01149749755859375, -0.0039825439453125, -0.02166748046875, 0.01078033447265625, -0.0053253173828125, 0.04632568359375, -0.01288604736328125, -0.01715087890625, -0.0172271728515625, 0.0120391845703125, 0.0093536376953125, 0.00255584716796875, -0.031951904296875, 0.04742431640625, 0.010406494140625, 0.04736328125, -0.051239013671875, 0.02783203125, -0.042694091796875, 0.0169219970703125, -0.0025310516357421875, 0.0234527587890625, 0.055450439453125, -0.006534576416015625, 0.0189666748046875, -0.057830810546875, 0.01259613037109375, -0.033477783203125, -0.0006685256958007812, -0.0124053955078125, -0.031982421875, 0.03314208984375 ]
10a200f01f1dfbedb929d74354fd18d4992a6a31
Wordpress Stackexchange Q: Wordpress: How to use post_class() in an echo I am working on a foreach loop in Wordpress and want to add 'post_class()' to a div within it. Currently the code looks like this: if ( is_array( $posts ) && !empty( $posts ) ) { echo '<ul class="tribe-related-events tribe-clearfix hfeed vcalendar">'; foreach ( $posts as $post ) { echo '<li>'; echo '<div class="overlay">'; echo '<div '. post_class() .'>'; echo '<h3>'. tribe_get_event_taxonomy() .'</h3>'; echo '</div>'; echo '</div>'; echo '</li>'; } echo '</ul>'; } The 'post_class()' function is breaking the div it is in and calling the classes as if they were content in the page. Any ideas? A: The solution has actually been less complicated than I initially thought. The post_class() function does not return a string, but instead it "echoes" the string. Therefore, when you write. echo '<div ' . post_class() . '>'; The effect is the following: First, the system execute post_class(), generating an "echo ...." with the class attribute second, the system makes the requested concatenation and echoes the text "". The right way to use it is: echo "<div "; post_class(); echo ">"; or else: echo '<div class="'. join( ' ', get_post_class() ) .'">';
Q: Wordpress: How to use post_class() in an echo I am working on a foreach loop in Wordpress and want to add 'post_class()' to a div within it. Currently the code looks like this: if ( is_array( $posts ) && !empty( $posts ) ) { echo '<ul class="tribe-related-events tribe-clearfix hfeed vcalendar">'; foreach ( $posts as $post ) { echo '<li>'; echo '<div class="overlay">'; echo '<div '. post_class() .'>'; echo '<h3>'. tribe_get_event_taxonomy() .'</h3>'; echo '</div>'; echo '</div>'; echo '</li>'; } echo '</ul>'; } The 'post_class()' function is breaking the div it is in and calling the classes as if they were content in the page. Any ideas? A: The solution has actually been less complicated than I initially thought. The post_class() function does not return a string, but instead it "echoes" the string. Therefore, when you write. echo '<div ' . post_class() . '>'; The effect is the following: First, the system execute post_class(), generating an "echo ...." with the class attribute second, the system makes the requested concatenation and echoes the text "". The right way to use it is: echo "<div "; post_class(); echo ">"; or else: echo '<div class="'. join( ' ', get_post_class() ) .'">'; A: The post_class() function just is a wrapper for get_post_class(). Keep in mind that the latter does not echo, but returns an Array so you have to do something like what post_class() does: $classes = join( ' ', get_post_class() ); Your code (could) would look like the following. I changed the if check as well to first check if $posts is empty and then check if it is an array - which is more fail safe. if ( ! empty( $posts ) AND is_array( $posts ) ) { $items = array(); foreach ( $posts as $post ) $items[] = sprintf( '<li><div class="overlay"><div class="%s"></div><h3>%s</h3></div></div></li>', join( ' ', post_class() ), tribe_get_event_taxonomy() ); ! empty( $items ) AND printf( '<ul class="tribe-related-events tribe-clearfix hfeed vcalendar">%s</ul>', join( '', $items ) ); }
wordpress
{ "language": "en", "length": 324, "provenance": "stackexchange_00019.jsonl.gz:446950", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/154509" }
[ 0.08251953125, 0.0031032562255859375, 0.023834228515625, -0.032989501953125, 0.03314208984375, -0.038116455078125, 0.0567626953125, -0.046844482421875, 0.037445068359375, -0.005340576171875, -0.050537109375, 0.00603485107421875, -0.03326416015625, -0.024444580078125, -0.007568359375, -0.03582763671875, 0.03302001953125, -0.034820556640625, 0.013824462890625, 0.0109710693359375, -0.00948333740234375, 0.048431396484375, 0.01361846923828125, -0.0138397216796875, 0.01139068603515625, -0.02044677734375, 0.08551025390625, -0.04144287109375, 0.017730712890625, -0.002880096435546875, 0.00943756103515625, -0.0222015380859375, 0.038543701171875, 0.041107177734375, -0.053253173828125, 0.04901123046875, 0.005779266357421875, 0.0022144317626953125, -0.0032634735107421875, 0.03875732421875, 0.038421630859375, -0.00019741058349609375, 0.03936767578125, 0.00867462158203125, -0.016998291015625, 0.02996826171875, -0.00887298583984375, -0.018524169921875, 0.0229339599609375, -0.051910400390625, 0.0186920166015625, -0.003971099853515625, 0.0203857421875, -0.0191192626953125, -0.00911712646484375, 0.04730224609375, -0.02667236328125, 0.0196990966796875, 0.032318115234375, 0.005863189697265625, -0.0203857421875, -0.0220947265625, 0.029327392578125, -0.031951904296875, -0.007411956787109375, 0.01421356201171875, 0.0287017822265625, -0.00009149312973022461, -0.05218505859375, -0.0130767822265625, 0.045013427734375, -0.005359649658203125, -0.024810791015625, -0.0396728515625, -0.017578125, 0.037445068359375, 0.0009412765502929688, -0.025543212890625, -0.02740478515625, 0.01910400390625, 0.00959014892578125, 0.06549072265625, -0.0252227783203125, 0.00787353515625, -0.037384033203125, -0.01580810546875, -0.0171356201171875, -0.02325439453125, -0.0207977294921875, -0.042816162109375, -0.02764892578125, -0.0253753662109375, -0.0159149169921875, -0.02008056640625, -0.0204620361328125, -0.051361083984375, -0.0198974609375, 0.043914794921875, -0.0149078369140625, 0.0256805419921875, -0.0023059844970703125, -0.033966064453125, 0.03387451171875, -0.048431396484375, 0.01386260986328125, 0.034942626953125, -0.0271453857421875, 0.04400634765625, 0.0570068359375, 0.04638671875, 0.0111541748046875, 0.0001919269561767578, -0.01537322998046875, -0.00806427001953125, -0.01154327392578125, -0.0236358642578125, -0.07318115234375, 0.020294189453125, 0.00356292724609375, -0.0107269287109375, 0.03863525390625, 0.052215576171875, 0.01873779296875, -0.0230560302734375, 0.005809783935546875, 0.031646728515625, -0.0113067626953125, -0.0888671875, 0.0703125, 0.0004329681396484375, -0.0156707763671875, 0.0145416259765625, -0.006328582763671875, -0.00859832763671875, -0.010467529296875, -0.0032520294189453125, 0.036468505859375, -0.048126220703125, -0.017120361328125, -0.002864837646484375, 0.0154876708984375, 0.0093994140625, 0.0103759765625, -0.029937744140625, -0.008026123046875, 0.0286865234375, 0.01546478271484375, 0.0017805099487304688, -0.003856658935546875, -0.055084228515625, 0.01824951171875, -0.04864501953125, 0.02001953125, 0.00606536865234375, 0.033172607421875, -0.00921630859375, 0.042694091796875, -0.0247344970703125, -0.00010454654693603516, -0.0258636474609375, 0.01491546630859375, 0.00785064697265625, 0.017730712890625, -0.01154327392578125, -0.005290985107421875, -0.0258026123046875, -0.030548095703125, 0.005069732666015625, 0.0175018310546875, -0.0197601318359375, 0.026519775390625, -0.029052734375, 0.03363037109375, 0.00661468505859375, -0.017425537109375, 0.026947021484375, 0.032379150390625, -0.0489501953125, 0.059051513671875, -0.01806640625, -0.05596923828125, -0.0258331298828125, 0.0268096923828125, -0.039581298828125, -0.05645751953125, 0.016326904296875, 0.004100799560546875, 0.0323486328125, 0.0131072998046875, 0.0192718505859375, 0.041473388671875, 0.0186004638671875, -0.0782470703125, 0.00991058349609375, 0.006763458251953125, -0.0142669677734375, 0.0135345458984375, -0.016448974609375, 0.007411956787109375, 0.00579071044921875, 0.04229736328125, 0.03375244140625, -0.030120849609375, -0.0151214599609375, -0.04791259765625, -0.0123748779296875, -0.000926971435546875, 0.04486083984375, -0.0264739990234375, 0.01070404052734375, 0.0128936767578125, -0.008331298828125, 0.0312347412109375, -0.1209716796875, -0.0254364013671875, 0.023162841796875, 0.0135498046875, 0.0084381103515625, -0.005496978759765625, 0.012542724609375, -0.0234527587890625, -0.01435089111328125, -0.04302978515625, 0.00911712646484375, 0.06854248046875, -0.003963470458984375, -0.00548553466796875, -0.04412841796875, 0.03155517578125, 0.004467010498046875, -0.046630859375, 0.02630615234375, 0.0305938720703125, 0.040252685546875, -0.048858642578125, -0.0438232421875, -0.024993896484375, -0.051849365234375, 0.01139068603515625, 0.06195068359375, 0.030487060546875, 0.03729248046875, -0.04217529296875, -0.047332763671875, 0.0455322265625, -0.016876220703125, 0.00461578369140625, -0.03460693359375, -0.0106201171875, 0.0166473388671875, 0.012451171875, 0.011627197265625, 0.017303466796875, 0.00616455078125, -0.0011701583862304688, 0.045501708984375, 0.012298583984375, -0.0087890625, -0.0261383056640625, 0.0186920166015625, -0.0013074874877929688, -0.03460693359375, -0.0281219482421875, -0.0128173828125, 0.019439697265625, -0.0178375244140625, 0.006481170654296875, -0.00726318359375, -0.0044097900390625, -0.00626373291015625, 0.01215362548828125, -0.037933349609375, -0.004520416259765625, 0.021331787109375, -0.053466796875, 0.003448486328125, -0.059112548828125, 0.0309600830078125, 0.004276275634765625, 0.002666473388671875, -0.0217437744140625, 0.0606689453125, -0.0270233154296875, -0.01995849609375, -0.01953125, -0.0217132568359375, -0.014404296875, -0.0232391357421875, -0.0328369140625, -0.036407470703125, 0.0022068023681640625, 0.0499267578125, -0.01483154296875, 0.035430908203125, -0.0016164779663085938, 0.000690460205078125, -0.0058441162109375, 0.0126953125, -0.0013580322265625, -0.004360198974609375, 0.040008544921875, 0.035003662109375, -0.0260772705078125, 0.031097412109375, 0.0062255859375, -0.003444671630859375, -0.0017910003662109375, 0.0112152099609375, -0.0034427642822265625, -0.024505615234375, 0.0007004737854003906, 0.0550537109375, 0.034576416015625, 0.0723876953125, 0.01068878173828125, -0.047027587890625, 0.027984619140625, 0.04278564453125, -0.043487548828125, -0.07232666015625, 0.043121337890625, -0.08038330078125, -0.010498046875, -0.0036869049072265625, -0.05340576171875, -0.0027561187744140625, 0.0212554931640625, -0.0072479248046875, 0.0124969482421875, 0.00992584228515625, -0.00847625732421875, -0.032684326171875, -0.053070068359375, -0.0662841796875, -0.0026569366455078125, -0.0018072128295898438, -0.00394439697265625, 0.033538818359375, 0.008697509765625, 0.0025272369384765625, 0.01079559326171875, 0.059295654296875, -0.0031585693359375, -0.0234222412109375, -0.015655517578125, -0.01023101806640625, -0.01849365234375, -0.007678985595703125, -0.01386260986328125, -0.0305938720703125, 0.0115966796875, -0.004955291748046875, -0.0025997161865234375, 0.013031005859375, 0.011138916015625, 0.029022216796875, 0.0163116455078125, 0.030426025390625, 0.0222625732421875, -0.0224151611328125, 0.0304718017578125, -0.016265869140625, -0.0215301513671875, -0.047454833984375, -0.0064239501953125, -0.0016889572143554688, -0.0080108642578125, -0.03643798828125, -0.0478515625, -0.0097198486328125, -0.008880615234375, -0.042724609375, 0.045989990234375, -0.005428314208984375, -0.00008404254913330078, 0.0225372314453125, -0.01458740234375, -0.019287109375, 0.0396728515625, -0.013946533203125, 0.01427459716796875, -0.022308349609375, 0.018157958984375, -0.061614990234375, -0.060272216796875, 0.04119873046875, -0.032012939453125, -0.012908935546875, -0.01158905029296875, -0.0195159912109375, 0.037994384765625, 0.08978271484375, -0.08453369140625, -0.007354736328125, -0.0223236083984375, 0.001903533935546875, -0.02288818359375, -0.05859375, -0.058502197265625, -0.0015935897827148438, -0.052825927734375, 0.0100555419921875, 0.005756378173828125, -0.0276947021484375, -0.036834716796875, 0.0182952880859375, -0.0667724609375, -0.008514404296875, 0.0011844635009765625, -0.0243682861328125, 0.00408172607421875, 0.0168304443359375, -0.0335693359375, 0.017303466796875, 0.00888824462890625, -0.049407958984375, -0.07928466796875, -0.0144500732421875, 0.004322052001953125, 0.056060791015625, 0.006381988525390625, -0.01285552978515625, -0.01399993896484375, 0.046142578125, 0.0243988037109375, 0.0192413330078125, 0.0242462158203125, -0.0008611679077148438, 0.01340484619140625, 0.006656646728515625, 0.03338623046875, -0.00931549072265625, -0.0100860595703125, -0.0009646415710449219, -0.006649017333984375, 0.02777099609375, -0.039459228515625, -0.0294189453125, -0.00962066650390625, -0.0173492431640625, -0.016143798828125, -0.0352783203125, 0.01009368896484375, 0.01806640625, -0.0255126953125, 0.03729248046875, -0.0249481201171875, -0.02117919921875, 0.0052490234375, 0.015106201171875, -0.0300445556640625, 0.0153045654296875, 0.035186767578125, 0.0241241455078125, -0.024139404296875, -0.05340576171875, 0.050689697265625, 0.010345458984375, -0.0249481201171875, 0.06890869140625, 0.0123748779296875, 0.00457000732421875, 0.04217529296875, -0.026947021484375, -0.0073089599609375, -0.022735595703125, 0.06439208984375, 0.005084991455078125, -0.01116943359375, 0.0102691650390625, -0.0186767578125, 0.01409912109375, 0.0219879150390625, -0.01239013671875, 0.0014896392822265625, 0.0130615234375, 0.011383056640625, 0.00469970703125, -0.007198333740234375, -0.0206756591796875, -0.031280517578125, 0.0049591064453125, -0.04315185546875, 0.0618896484375, 0.04229736328125, -0.0110931396484375, 0.047393798828125, 0.03399658203125, -0.037078857421875, 0.0254974365234375, 0.00014495849609375, 0.0205841064453125, 0.0093536376953125, 0.007549285888671875, -0.015716552734375, -0.00925445556640625, -0.006298065185546875, 0.0237579345703125, 0.0140380859375, -0.03485107421875, -0.0158538818359375, 0.0179595947265625, 0.0474853515625, -0.004241943359375, -0.0157470703125, 0.023590087890625, 0.0182037353515625, 0.00952911376953125, -0.01251983642578125, -0.0277557373046875, 0.028045654296875, -0.0161285400390625, 0.0242767333984375, 0.0233917236328125, -0.011871337890625, -0.0185699462890625, 0.022125244140625, 0.0035247802734375, -0.0164031982421875, -0.0064239501953125, 0.044403076171875, 0.005794525146484375, 0.060455322265625, 0.034515380859375, -0.057586669921875, -0.01432037353515625, 0.03448486328125, -0.0594482421875, -0.045562744140625, -0.03759765625, 0.031951904296875, 0.0625, -0.02008056640625, -0.0013027191162109375, -0.0058135986328125, 0.0106048583984375, -0.0287628173828125, 0.027099609375, 0.056915283203125, 0.01325225830078125, -0.02435302734375, -0.016510009765625, 0.0257720947265625, 0.033935546875, -0.015716552734375, 0.041107177734375, 0.018218994140625, 0.046722412109375, 0.00008398294448852539, -0.0007505416870117188, 0.0109710693359375, 0.01898193359375, -0.0313720703125, 0.00244140625, 0.005603790283203125, -0.0303955078125, -0.042388916015625, -0.0035572052001953125, -0.01233673095703125, 0.02069091796875, -0.04400634765625, 0.050140380859375, -0.037567138671875, -0.01959228515625, -0.057281494140625, -0.00008094310760498047, 0.07867431640625, 0.0780029296875, -0.06927490234375, -0.00838470458984375, -0.0743408203125, -0.00959014892578125, -0.0227508544921875, -0.02264404296875, -0.0186309814453125, 0.00998687744140625, 0.006175994873046875, 0.00530242919921875, 0.007686614990234375, 0.00405120849609375, -0.0194091796875, 0.01318359375, 0.0128173828125, 0.01593017578125, -0.03204345703125, 0.0679931640625, 0.005802154541015625, 0.032318115234375, -0.0014848709106445312, 0.0305328369140625, 0.02001953125, -0.01093292236328125, 0.009368896484375, -0.0806884765625, -0.037109375, 0.005947113037109375, -0.037872314453125, -0.0042572021484375, -0.011688232421875, -0.007747650146484375, 0.008880615234375, 0.007419586181640625, -0.00008976459503173828, -0.018035888671875, 0.01358795166015625, -0.00603485107421875, -0.0012264251708984375, 0.05364990234375, 0.01041412353515625, 0.038909912109375, -0.03369140625, -0.00032329559326171875, -0.0062713623046875, -0.02069091796875, 0.0140380859375, -0.0062103271484375, -0.0099639892578125, 0.0283966064453125, 0.0333251953125, -0.017669677734375, 0.038665771484375, 0.018402099609375, 0.0163726806640625, 0.0191802978515625, 0.010986328125, 0.002071380615234375, 0.03106689453125, 0.10711669921875, -0.0022335052490234375, -0.04937744140625, 0.038116455078125, -0.058502197265625, 0.0259246826171875, 0.050140380859375, 0.07745361328125, -0.05706787109375, 0.0018091201782226562, 0.00621795654296875, -0.0230712890625, 0.054901123046875, 0.0287628173828125, 0.00722503662109375, 0.0257720947265625, 0.0215911865234375, -0.0229644775390625, -0.00478363037109375, 0.019287109375, -0.00472259521484375, 0.00021982192993164062, -0.0176544189453125, 0.054901123046875, 0.01137542724609375, -0.06829833984375, 0.006927490234375, 0.044281005859375, 0.00004017353057861328, -0.01374053955078125, -0.00418853759765625, 0.01251220703125, -0.0299224853515625, -0.0684814453125, -0.0128326416015625, -0.03704833984375, -0.0091094970703125, 0.0198822021484375, -0.00919342041015625, -0.038299560546875, 0.0280303955078125, -0.04205322265625, 0.0382080078125, 0.004062652587890625, -0.054656982421875, -0.0494384765625, -0.02490234375, 0.01236724853515625, 0.043701171875, -0.045654296875, 0.0443115234375, -0.027191162109375, -0.0169830322265625, -0.01922607421875, -0.0352783203125, 0.07769775390625, -0.0540771484375, -0.0018949508666992188, 0.018157958984375, 0.0019207000732421875, -0.0169525146484375, 0.0007419586181640625, 0.04022216796875, -0.04327392578125, -0.0011730194091796875, 0.017181396484375, 0.0012025833129882812, -0.027557373046875, -0.0295257568359375, -0.054840087890625, 0.0970458984375, 0.005718231201171875, 0.0047607421875, 0.01418304443359375, 0.0516357421875, -0.053436279296875, 0.005401611328125, -0.0267333984375, 0.025543212890625, -0.01751708984375, 0.054290771484375, -0.04296875, -0.018157958984375, 0.022430419921875, 0.051177978515625, -0.021728515625, -0.0067291259765625, -0.00473785400390625, -0.0006961822509765625, 0.03753662109375, 0.048248291015625, 0.0196380615234375, -0.006103515625, 0.01136016845703125, 0.01641845703125, 0.023193359375, -0.029754638671875, 0.019317626953125, -0.01739501953125, -0.004405975341796875, 0.051910400390625, -0.00372314453125, -0.0218048095703125, 0.03033447265625, -0.006671905517578125, -0.052459716796875, 0.0235595703125, 0.0182647705078125, -0.0006632804870605469, -0.00537872314453125, 0.042510986328125, 0.01080322265625, -0.0037631988525390625, -0.026153564453125, -0.0163726806640625, 0.0255889892578125, -0.01392364501953125, 0.033843994140625, 0.0189666748046875, 0.00457000732421875, 0.0249176025390625, 0.03466796875, 0.0141143798828125, 0.03125, 0.01025390625, 0.0208587646484375, 0.039306640625, 0.0254974365234375, -0.012359619140625, -0.0008363723754882812, 0.08355712890625, 0.054779052734375, -0.024078369140625, 0.0170745849609375, 0.007297515869140625, 0.00018739700317382812, 0.0056610107421875, -0.04254150390625, 0.02947998046875, -0.01197052001953125, -0.0225372314453125, -0.01788330078125, -0.031524658203125, 0.0110626220703125, -0.0006289482116699219, 0.01361083984375, 0.0078582763671875, 0.027862548828125, -0.028472900390625, -0.04449462890625, 0.005916595458984375, 0.015655517578125, 0.07080078125, 0.006557464599609375, 0.053680419921875, -0.0277557373046875, -0.027984619140625, 0.01050567626953125, -0.0204620361328125, 0.035400390625, -0.01007080078125, 0.0017261505126953125, 0.017425537109375, 0.015869140625, 0.023956298828125, 0.01206207275390625, 0.023193359375, 0.04522705078125, 0.061004638671875, 0.00600433349609375, -0.00583648681640625, 0.0196380615234375, -0.015594482421875, -0.032928466796875, -0.0023479461669921875, -0.019989013671875, 0.0144500732421875, -0.0206146240234375, 0.01898193359375, 0.036895751953125, 0.01114654541015625, -0.049835205078125, 0.037841796875, -0.013824462890625, 0.0010995864868164062, 0.027435302734375, 0.002666473388671875, 0.045928955078125, -0.0019588470458984375, -0.07196044921875, -0.0084228515625, -0.01708984375, -0.023468017578125, 0.003688812255859375, 0.03173828125, -0.02349853515625, 0.0258331298828125, 0.0037899017333984375, -0.016143798828125, 0.022735595703125, 0.0074310302734375, -0.023284912109375, 0.0022220611572265625, 0.0307159423828125, -0.0166778564453125, -0.026092529296875, -0.014404296875, -0.027252197265625, 0.048187255859375, 0.0256500244140625, 0.03125, -0.00786590576171875, 0.03436279296875, -0.0216827392578125, -0.01922607421875, -0.018463134765625, -0.0272674560546875, 0.0350341796875, -0.036773681640625, -0.0182342529296875, 0.006439208984375, -0.0224151611328125, 0.016448974609375, 0.052001953125, -0.0208740234375, 0.0172271728515625, -0.0006527900695800781, 0.0252685546875, -0.036956787109375, 0.0182952880859375, -0.023529052734375, 0.0034923553466796875, -0.03497314453125, -0.03009033203125, 0.042327880859375, 0.037933349609375, 0.036224365234375, 0.007167816162109375, 0.05340576171875, -0.0149688720703125, 0.0266571044921875, 0.00005608797073364258, 0.039886474609375, 0.03521728515625, 0.01218414306640625, -0.033660888671875, 0.003223419189453125, -0.01338958740234375, -0.01861572265625, 0.0283203125, 0.00710296630859375, 0.00862884521484375, -0.05029296875, 0.0110931396484375, 0.051055908203125, 0.054229736328125, -0.00738525390625, 0.032318115234375, 0.01446533203125, -0.0325927734375, 0.0015773773193359375, 0.034912109375, -0.0166168212890625, -0.0699462890625, -0.0079498291015625, 0.006931304931640625, -0.050262451171875, 0.00847625732421875, -0.052825927734375, -0.05169677734375, 0.0299072265625, 0.0091552734375, -0.019195556640625, -0.048553466796875, 0.035247802734375, 0.0100860595703125, -0.01123809814453125, -0.02862548828125, 0.0082550048828125, 0.061370849609375, -0.0089569091796875, -0.0102081298828125, -0.02313232421875, -0.0036907196044921875, -0.048370361328125, 0.028564453125, 0.037506103515625, -0.0355224609375, -0.0258941650390625, 0.01052093505859375, 0.00286865234375, 0.0504150390625, 0.0118865966796875, -0.021270751953125, 0.00841522216796875, 0.004669189453125, 0.0013837814331054688, -0.03759765625, 0.0188140869140625, -0.041290283203125, -0.028961181640625, 0.0194091796875, -0.0012903213500976562, 0.03558349609375, -0.0288238525390625, -0.0858154296875, 0.0826416015625, -0.01514434814453125, -0.03515625, -0.0341796875, 0.0031681060791015625, -0.0032825469970703125, 0.00807952880859375, -0.0156402587890625, -0.0098876953125, -0.04327392578125, 0.00411224365234375, -0.0025234222412109375, 0.051300048828125, 0.0141448974609375, 0.00290679931640625, -0.060211181640625, -0.028564453125, -0.07171630859375, 0.021209716796875, -0.0285491943359375, -0.020721435546875, 0.0430908203125, 0.013702392578125, -0.018035888671875, 0.00301361083984375, 0.0345458984375, 0.0498046875, 0.0095672607421875, -0.042022705078125, -0.0487060546875, -0.030181884765625, 0.0611572265625, -0.0036869049072265625, 0.032073974609375, -0.001018524169921875, -0.05224609375, -0.025115966796875, -0.059539794921875, -0.02398681640625, 0.05517578125, -0.1143798828125, -0.0299224853515625, 0.0230560302734375, 0.0020294189453125, 0.0111541748046875, -0.0021457672119140625, -0.0172882080078125, -0.03167724609375, -0.0309600830078125, -0.01293182373046875, -0.032623291015625, -0.031890869140625, 0.047454833984375, -0.00409698486328125, 0.0275115966796875, -0.0097503662109375, 0.020233154296875, 0.03375244140625, 0.03997802734375, -0.0103912353515625, -0.0496826171875, -0.00940704345703125, 0.012176513671875, -0.01580810546875, 0.0799560546875, -0.01222991943359375, -0.0298004150390625, -0.0182037353515625, 0.005504608154296875, -0.01061248779296875, -0.0074920654296875, -0.0104522705078125, 0.035980224609375, 0.01076507568359375, 0.0533447265625, -0.0247802734375, 0.0472412109375, 0.00759124755859375, 0.0222015380859375, 0.01078033447265625, 0.00800323486328125, 0.0706787109375, -0.060150146484375, 0.00211334228515625, -0.0307464599609375, 0.00998687744140625, -0.056732177734375, 0.02581787109375, 0.00991058349609375, -0.00681304931640625, 0.04046630859375 ]
bc326f96b43232ee7f7f5a3fdfe8fdcef7322d7d
Wordpress Stackexchange Q: Orders being sent to wrong admin email in WooCommerce I set up an admin User for myself to create the site, then another for my client to use. I changed the emails in WooCommerce to her address wherever I can find them, but the orders are still coming to me. I don't want to remove my admin account (see: clients touching stuff). Where do I set this to make sure those orders come to her and not me? Thanks! A: You should check WooCommerce -> Settings -> Emails (tab) and On the "New Order" sub-link you'll need to add your clients email there, otherwise Woo will use the default admin email address.
Q: Orders being sent to wrong admin email in WooCommerce I set up an admin User for myself to create the site, then another for my client to use. I changed the emails in WooCommerce to her address wherever I can find them, but the orders are still coming to me. I don't want to remove my admin account (see: clients touching stuff). Where do I set this to make sure those orders come to her and not me? Thanks! A: You should check WooCommerce -> Settings -> Emails (tab) and On the "New Order" sub-link you'll need to add your clients email there, otherwise Woo will use the default admin email address.
wordpress
{ "language": "en", "length": 113, "provenance": "stackexchange_00019.jsonl.gz:446951", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/154515" }
[ 0.052734375, -0.0169677734375, 0.0253143310546875, -0.005825042724609375, -0.02398681640625, -0.0231170654296875, 0.010650634765625, -0.057098388671875, 0.0015172958374023438, 0.0277099609375, 0.0089569091796875, -0.026092529296875, 0.0158538818359375, -0.03277587890625, -0.0177154541015625, -0.018585205078125, -0.001995086669921875, 0.032562255859375, 0.00582122802734375, -0.010498046875, -0.001056671142578125, -0.001338958740234375, -0.01910400390625, 0.01495361328125, 0.0005292892456054688, 0.0189361572265625, 0.0919189453125, -0.0197601318359375, 0.0266571044921875, 0.0004398822784423828, 0.015045166015625, -0.06671142578125, 0.0248260498046875, 0.01067352294921875, -0.030914306640625, -0.051605224609375, -0.01629638671875, 0.0093841552734375, -0.00215911865234375, 0.0022296905517578125, 0.052490234375, -0.0237274169921875, 0.03692626953125, 0.004413604736328125, 0.00888824462890625, -0.056060791015625, 0.07440185546875, -0.04058837890625, 0.04461669921875, 0.007495880126953125, -0.00524139404296875, 0.0200347900390625, -0.01053619384765625, -0.00894927978515625, -0.0255584716796875, -0.03314208984375, -0.0124359130859375, 0.0289459228515625, 0.0006608963012695312, -0.016845703125, -0.01245880126953125, 0.049224853515625, 0.01050567626953125, 0.032501220703125, 0.01129150390625, -0.003452301025390625, 0.0092926025390625, 0.0309906005859375, -0.0423583984375, -0.0007781982421875, 0.026580810546875, -0.021575927734375, 0.0006427764892578125, 0.00003415346145629883, -0.018402099609375, -0.0124053955078125, 0.0230865478515625, -0.01788330078125, 0.01206207275390625, 0.0041961669921875, 0.044830322265625, -0.019439697265625, -0.02288818359375, 0.0185546875, -0.0104522705078125, 0.0172576904296875, 0.00762939453125, -0.016021728515625, -0.0236053466796875, -0.013031005859375, -0.02496337890625, -0.031829833984375, -0.01125335693359375, 0.00742340087890625, -0.0300750732421875, 0.00484466552734375, 0.03253173828125, 0.041748046875, -0.0152587890625, -0.0157012939453125, -0.004375457763671875, -0.01434326171875, -0.028472900390625, 0.006893157958984375, -0.0072021484375, -0.008392333984375, -0.00768280029296875, 0.005458831787109375, 0.032257080078125, 0.0266876220703125, -0.01226806640625, 0.040863037109375, 0.01666259765625, -0.045928955078125, 0.0186004638671875, -0.0025424957275390625, -0.0184326171875, 0.037261962890625, 0.023406982421875, 0.006072998046875, -0.0135345458984375, 0.026153564453125, -0.0108795166015625, -0.02044677734375, -0.004528045654296875, -0.0031719207763671875, -0.007781982421875, -0.027740478515625, 0.0229339599609375, -0.0272979736328125, -0.03167724609375, 0.0252685546875, 0.078369140625, 0.055633544921875, 0.0428466796875, 0.000812530517578125, 0.01129150390625, 0.029205322265625, 0.00677490234375, -0.0027332305908203125, 0.039825439453125, -0.0081329345703125, -0.034088134765625, 0.0187835693359375, 0.0116424560546875, 0.0303802490234375, -0.00807952880859375, -0.0038166046142578125, 0.015960693359375, 0.004756927490234375, -0.04315185546875, -0.0312042236328125, -0.00554656982421875, 0.033355712890625, 0.054351806640625, 0.055084228515625, 0.08123779296875, 0.01259613037109375, -0.0557861328125, -0.0014238357543945312, -0.0236053466796875, -0.0184478759765625, 0.03289794921875, -0.050323486328125, -0.064453125, 0.03955078125, -0.0712890625, -0.018310546875, 0.0199737548828125, -0.04156494140625, 0.03643798828125, -0.030059814453125, -0.0038852691650390625, -0.0177001953125, -0.00244903564453125, 0.008544921875, -0.00977325439453125, 0.0023784637451171875, 0.0209197998046875, 0.0146026611328125, -0.004291534423828125, -0.03472900390625, 0.01369476318359375, -0.0096588134765625, -0.03460693359375, -0.01442718505859375, 0.0035400390625, -0.015716552734375, 0.03179931640625, 0.007251739501953125, 0.0450439453125, 0.020843505859375, -0.0261688232421875, 0.0048828125, -0.0197601318359375, 0.005950927734375, -0.01453399658203125, 0.01470184326171875, -0.0234527587890625, -0.0087890625, -0.0274505615234375, -0.039947509765625, 0.0282135009765625, -0.01241302490234375, 0.0006647109985351562, -0.0148162841796875, -0.01392364501953125, 0.0255126953125, -0.0074615478515625, -0.003704071044921875, 0.0089263916015625, 0.00048470497131347656, -0.0150146484375, -0.055084228515625, -0.03192138671875, -0.02337646484375, -0.04339599609375, 0.085693359375, -0.02545166015625, 0.09771728515625, -0.03900146484375, -0.08892822265625, -0.0172882080078125, -0.0249481201171875, -0.00197601318359375, 0.0367431640625, -0.035552978515625, 0.013702392578125, -0.0008482933044433594, 0.01519775390625, -0.00815582275390625, 0.034423828125, 0.04486083984375, 0.0222320556640625, -0.044830322265625, -0.00644683837890625, -0.0128936767578125, -0.0560302734375, -0.0014324188232421875, 0.056640625, 0.00998687744140625, 0.0030059814453125, 0.002948760986328125, 0.045257568359375, 0.004772186279296875, -0.04095458984375, 0.0165863037109375, 0.0175323486328125, -0.010589599609375, 0.017425537109375, 0.01148223876953125, 0.004283905029296875, 0.0196685791015625, -0.05340576171875, 0.00008022785186767578, 0.04095458984375, -0.00836944580078125, -0.0156707763671875, 0.0015506744384765625, 0.01812744140625, 0.005706787109375, 0.00601959228515625, -0.007450103759765625, 0.0009326934814453125, 0.0158233642578125, -0.02313232421875, 0.025665283203125, 0.012115478515625, -0.01413726806640625, -0.0261993408203125, 0.012298583984375, 0.007671356201171875, -0.0030956268310546875, 0.0097198486328125, 0.031707763671875, -0.006542205810546875, -0.050323486328125, 0.0028629302978515625, 0.03131103515625, 0.00695037841796875, -0.031219482421875, -0.037200927734375, -0.017578125, 0.0017042160034179688, -0.006793975830078125, -0.028106689453125, 0.042877197265625, 0.008514404296875, 0.021759033203125, -0.004894256591796875, 0.022674560546875, 0.0111846923828125, -0.033203125, 0.05462646484375, -0.0199432373046875, -0.046722412109375, -0.0262298583984375, -0.0014104843139648438, 0.0151519775390625, -0.035400390625, 0.01090240478515625, 0.04718017578125, 0.004634857177734375, -0.01357269287109375, 0.0156402587890625, -0.014617919921875, 0.0024585723876953125, 0.0223541259765625, 0.008697509765625, 0.00959014892578125, -0.05438232421875, 0.0205078125, 0.0164642333984375, 0.06494140625, -0.0275421142578125, -0.05108642578125, -0.004207611083984375, 0.0170135498046875, -0.04254150390625, -0.05035400390625, -0.049896240234375, 0.003139495849609375, -0.05303955078125, -0.0048370361328125, 0.0084075927734375, 0.050567626953125, -0.032073974609375, 0.0006399154663085938, 0.052032470703125, -0.030670166015625, -0.0172576904296875, -0.0003228187561035156, -0.0262908935546875, -0.016265869140625, -0.0013866424560546875, -0.0170135498046875, -0.0087127685546875, 0.0496826171875, -0.0113372802734375, -0.052642822265625, -0.0200958251953125, 0.0098419189453125, 0.005340576171875, -0.005184173583984375, -0.0377197265625, -0.04107666015625, 0.038482666015625, -0.01025390625, 0.0711669921875, -0.0037937164306640625, 0.021026611328125, 0.0080413818359375, 0.0168304443359375, 0.0209808349609375, 0.0286712646484375, -0.040863037109375, -0.031280517578125, -0.00879669189453125, -0.04046630859375, -0.051422119140625, -0.008575439453125, 0.009246826171875, -0.01361846923828125, 0.0374755859375, -0.0203857421875, -0.0231475830078125, 0.0321044921875, 0.00632476806640625, 0.054534912109375, 0.0279083251953125, 0.04327392578125, -0.007404327392578125, -0.028076171875, 0.0061187744140625, 0.0117950439453125, -0.047393798828125, 0.031585693359375, -0.0013103485107421875, -0.0251312255859375, -0.0019893646240234375, 0.0235443115234375, 0.01348114013671875, 0.006526947021484375, -0.00855255126953125, -0.07855224609375, 0.062469482421875, -0.035369873046875, 0.00727081298828125, -0.0501708984375, -0.037506103515625, 0.0028514862060546875, 0.127685546875, 0.0406494140625, -0.022308349609375, 0.036163330078125, 0.016387939453125, -0.053802490234375, 0.0187530517578125, -0.04156494140625, 0.0018415451049804688, -0.0021991729736328125, -0.019317626953125, -0.019683837890625, -0.01043701171875, 0.01442718505859375, -0.032501220703125, 0.0184326171875, -0.031097412109375, 0.047149658203125, -0.05670166015625, 0.023101806640625, 0.01544952392578125, 0.020477294921875, -0.0377197265625, -0.029388427734375, -0.02569580078125, -0.03961181640625, -0.00732421875, 0.025848388671875, 0.0243072509765625, -0.0347900390625, 0.053924560546875, -0.050201416015625, 0.00800323486328125, -0.03887939453125, 0.038360595703125, 0.0012655258178710938, 0.039276123046875, 0.0185546875, -0.02154541015625, -0.0022258758544921875, -0.02777099609375, -0.01174163818359375, -0.00836181640625, -0.06829833984375, -0.017364501953125, 0.002414703369140625, 0.0194091796875, 0.0618896484375, -0.03985595703125, -0.10662841796875, -0.06378173828125, -0.0215606689453125, -0.018402099609375, -0.0194091796875, -0.001628875732421875, -0.0389404296875, -0.08160400390625, 0.01250457763671875, -0.06036376953125, -0.0229034423828125, 0.01446533203125, 0.01513671875, 0.0191650390625, 0.00733184814453125, 0.04534912109375, 0.0030384063720703125, 0.038543701171875, 0.02252197265625, -0.003124237060546875, 0.0186004638671875, -0.0146026611328125, -0.0030994415283203125, 0.0271453857421875, -0.0239105224609375, -0.0176849365234375, 0.06982421875, -0.013031005859375, -0.0207366943359375, 0.0206298828125, -0.053863525390625, 0.033416748046875, 0.0015840530395507812, -0.007495880126953125, -0.0171051025390625, 0.00933837890625, 0.03472900390625, -0.0226898193359375, 0.033111572265625, -0.029876708984375, -0.04425048828125, 0.0160064697265625, -0.00873565673828125, 0.01178741455078125, 0.0047760009765625, -0.0029735565185546875, 0.00493621826171875, 0.00052642822265625, 0.0148773193359375, -0.035888671875, -0.0270233154296875, -0.0014591217041015625, 0.0189208984375, -0.01483154296875, 0.01459503173828125, -0.021514892578125, -0.006008148193359375, 0.06512451171875, 0.022125244140625, -0.043609619140625, 0.01064300537109375, -0.01421356201171875, -0.032440185546875, 0.014404296875, -0.0728759765625, 0.05242919921875, 0.029632568359375, -0.022491455078125, 0.0054168701171875, -0.07000732421875, -0.0206451416015625, -0.0626220703125, 0.030609130859375, 0.0035114288330078125, 0.00751495361328125, 0.02203369140625, 0.0821533203125, 0.0148773193359375, 0.04779052734375, -0.0162506103515625, 0.00885009765625, 0.00814056396484375, 0.015777587890625, 0.027740478515625, 0.0057830810546875, 0.003856658935546875, -0.004322052001953125, 0.01375579833984375, -0.005268096923828125, -0.004650115966796875, -0.0019664764404296875, 0.004589080810546875, 0.0161285400390625, 0.01151275634765625, 0.00897216796875, -0.0166778564453125, -0.0161590576171875, 0.0220794677734375, -0.041015625, -0.039337158203125, -0.044464111328125, -0.0164642333984375, 0.03912353515625, -0.02056884765625, -0.005565643310546875, 0.012939453125, -0.023040771484375, 0.005153656005859375, 0.0051422119140625, -0.017608642578125, 0.0004165172576904297, 0.002532958984375, 0.0262298583984375, 0.005580902099609375, -0.017120361328125, -0.045257568359375, -0.03228759765625, -0.010955810546875, 0.0182342529296875, 0.063232421875, -0.0162200927734375, 0.0184326171875, -0.0261077880859375, -0.0143890380859375, -0.096435546875, 0.02716064453125, 0.0198211669921875, 0.0265960693359375, -0.056976318359375, 0.0023899078369140625, -0.06402587890625, -0.01528167724609375, -0.0330810546875, -0.040802001953125, -0.02880859375, 0.0088043212890625, 0.0110321044921875, 0.0103607177734375, -0.029754638671875, -0.070556640625, -0.031768798828125, -0.018218994140625, 0.039703369140625, -0.04034423828125, -0.0222015380859375, 0.0229644775390625, -0.0037174224853515625, 0.0517578125, -0.01708984375, -0.0399169921875, -0.0321044921875, 0.0090179443359375, 0.009246826171875, -0.0255279541015625, -0.0166473388671875, -0.01494598388671875, -0.020233154296875, 0.006561279296875, 0.04229736328125, -0.011688232421875, 0.0229644775390625, -0.029632568359375, -0.00492095947265625, -0.028350830078125, 0.01447296142578125, -0.05584716796875, -0.0035686492919921875, -0.01087188720703125, -0.0194549560546875, 0.042266845703125, -0.0008473396301269531, -0.00978851318359375, -0.004070281982421875, -0.023162841796875, 0.00989532470703125, 0.038299560546875, -0.00499725341796875, 0.033050537109375, 0.0316162109375, -0.010284423828125, 0.036163330078125, 0.007610321044921875, 0.0189971923828125, 0.0218048095703125, 0.023162841796875, 0.0200653076171875, -0.0322265625, 0.04901123046875, 0.00150299072265625, -0.01514434814453125, 0.04443359375, -0.0269012451171875, 0.042877197265625, 0.1083984375, 0.11187744140625, -0.159912109375, 0.0203704833984375, 0.01052093505859375, 0.004245758056640625, 0.040008544921875, -0.01045989990234375, -0.01230621337890625, -0.0418701171875, 0.060546875, -0.0054931640625, -0.00507354736328125, 0.004177093505859375, -0.0173187255859375, -0.0034313201904296875, 0.0232086181640625, 0.040740966796875, -0.002376556396484375, 0.0098876953125, -0.055511474609375, 0.00627899169921875, -0.02532958984375, -0.0222320556640625, -0.00986480712890625, 0.019805908203125, -0.0021839141845703125, -0.046295166015625, 0.005962371826171875, -0.044464111328125, 0.038177490234375, -0.00020706653594970703, -0.00045800209045410156, 0.039794921875, 0.03155517578125, 0.0014858245849609375, -0.011810302734375, 0.005741119384765625, -0.017059326171875, 0.050872802734375, -0.040771484375, 0.007358551025390625, 0.05816650390625, -0.0848388671875, 0.00653839111328125, -0.0087738037109375, 0.004695892333984375, 0.010986328125, -0.0136871337890625, -0.016998291015625, -0.0171661376953125, -0.00920867919921875, 0.0401611328125, 0.0232086181640625, -0.002155303955078125, 0.01068115234375, -0.0037784576416015625, 0.0103759765625, 0.03802490234375, 0.0007433891296386719, -0.0005593299865722656, 0.00921630859375, 0.00928497314453125, -0.06256103515625, 0.04595947265625, 0.0027637481689453125, 0.022674560546875, 0.01096343994140625, 0.011505126953125, -0.00045871734619140625, -0.007038116455078125, -0.03814697265625, 0.0435791015625, 0.0116729736328125, 0.059722900390625, -0.038055419921875, -0.01479339599609375, 0.0193023681640625, 0.034149169921875, 0.06854248046875, 0.018463134765625, -0.021270751953125, 0.02423095703125, 0.082763671875, -0.0295867919921875, -0.02581787109375, 0.06719970703125, 0.018402099609375, -0.0257568359375, 0.031646728515625, 0.00675201416015625, 0.034210205078125, -0.0143280029296875, 0.010223388671875, 0.030731201171875, -0.0184173583984375, -0.0400390625, -0.037353515625, 0.041748046875, -0.0322265625, -0.020660400390625, 0.0177001953125, -0.06878662109375, -0.0008840560913085938, -0.02630615234375, -0.0031452178955078125, -0.01116943359375, 0.001190185546875, -0.013580322265625, 0.03515625, 0.01113128662109375, 0.00890350341796875, 0.0209197998046875, 0.025482177734375, 0.07415771484375, -0.0499267578125, 0.0023975372314453125, -0.00957489013671875, -0.023590087890625, 0.01331329345703125, 0.00725555419921875, 0.0258331298828125, -0.041900634765625, -0.0260772705078125, 0.017608642578125, 0.0293426513671875, -0.01412200927734375, 0.03717041015625, 0.00848388671875, -0.0193634033203125, 0.0037822723388671875, -0.047454833984375, 0.0255584716796875, -0.04315185546875, -0.08935546875, -0.05120849609375, -0.0006265640258789062, 0.040557861328125, 0.039093017578125, -0.006778717041015625, -0.001678466796875, -0.051116943359375, -0.035736083984375, -0.02447509765625, 0.0579833984375, 0.0219879150390625, 0.00989532470703125, -0.056640625, 0.060150146484375, -0.039825439453125, 0.0158233642578125, -0.0125885009765625, -0.004665374755859375, 0.00685882568359375, -0.01824951171875, -0.036224365234375, -0.00855255126953125, 0.01030731201171875, 0.04302978515625, -0.05377197265625, 0.035919189453125, 0.01953125, 0.033843994140625, -0.01021575927734375, -0.0283660888671875, 0.00702667236328125, -0.032745361328125, 0.0292510986328125, -0.03668212890625, 0.0224151611328125, -0.01033782958984375, 0.001495361328125, -0.008392333984375, 0.022186279296875, 0.011810302734375, -0.0089111328125, 0.00550079345703125, 0.007656097412109375, -0.042327880859375, 0.03997802734375, -0.01401519775390625, 0.058868408203125, 0.016632080078125, -0.032012939453125, -0.03204345703125, -0.0003845691680908203, 0.0469970703125, -0.01239013671875, 0.016815185546875, -0.0005645751953125, 0.048431396484375, 0.0034580230712890625, -0.031982421875, 0.01467132568359375, -0.0054168701171875, 0.00814056396484375, -0.03961181640625, -0.0136260986328125, -0.032806396484375, -0.01116943359375, -0.0235748291015625, -0.00629425048828125, 0.0418701171875, 0.0272369384765625, 0.038177490234375, 0.006191253662109375, 0.03228759765625, -0.035003662109375, 0.016815185546875, -0.04144287109375, -0.05828857421875, 0.08294677734375, -0.022796630859375, -0.05621337890625, 0.006153106689453125, -0.03814697265625, -0.019500732421875, 0.041107177734375, -0.040618896484375, -0.021484375, -0.004978179931640625, 0.021392822265625, -0.00838470458984375, 0.076171875, -0.0198974609375, -0.07623291015625, -0.0650634765625, 0.01541900634765625, -0.01409149169921875, 0.0191650390625, -0.0033168792724609375, 0.0206756591796875, 0.004909515380859375, -0.0019550323486328125, 0.04058837890625, -0.021697998046875, 0.057830810546875, 0.036285400390625, -0.05084228515625, -0.01419830322265625, 0.0222015380859375, -0.00788116455078125, 0.0071563720703125, 0.0173492431640625, 0.04248046875, 0.01556396484375, -0.036407470703125, -0.0133209228515625, 0.0271453857421875, 0.00969696044921875, -0.0286865234375, -0.00011587142944335938, 0.00409698486328125, -0.035675048828125, 0.02215576171875, 0.01177215576171875, -0.0241546630859375, -0.0262908935546875, 0.0242919921875, 0.00649261474609375, 0.04010009765625, 0.0186614990234375, 0.00576019287109375, 0.012603759765625, 0.039306640625, -0.00018334388732910156, -0.0297088623046875, 0.0015230178833007812, -0.01209259033203125, 0.051300048828125, 0.01253509521484375, -0.03900146484375, 0.007526397705078125, 0.015106201171875, -0.0228424072265625, -0.05010986328125, -0.07281494140625, 0.01389312744140625, -0.08697509765625, 0.0024890899658203125, 0.0204620361328125, -0.006168365478515625, -0.02459716796875, -0.0103607177734375, -0.028778076171875, 0.038482666015625, -0.0134429931640625, -0.0019702911376953125, 0.00572967529296875, 0.02691650390625, -0.0262603759765625, -0.06903076171875, -0.004528045654296875, -0.046783447265625, -0.0079498291015625, -0.0158843994140625, 0.0023174285888671875, 0.021331787109375, -0.027587890625, -0.05474853515625, 0.045501708984375, -0.00872802734375, -0.0196990966796875, -0.0252532958984375, -0.02386474609375, -0.0157012939453125, 0.01477813720703125, -0.0160675048828125, -0.0291290283203125, -0.030731201171875, 0.0372314453125, -0.0088958740234375, 0.007671356201171875, 0.00392913818359375, -0.009765625, 0.018310546875, 0.023162841796875, 0.040191650390625, -0.0291900634765625, 0.030914306640625, -0.0196533203125, 0.048065185546875, 0.06011962890625, -0.005992889404296875, -0.024078369140625, 0.0120697021484375, -0.060302734375, -0.020721435546875, -0.0089874267578125, 0.007415771484375, -0.0007281303405761719, 0.05029296875, 0.051300048828125, 0.012847900390625, -0.038360595703125, -0.0270843505859375, -0.0195770263671875, -0.00563812255859375, -0.005832672119140625, 0.002094268798828125, -0.03106689453125, 0.0208587646484375, -0.01296234130859375, -0.02685546875, -0.00257110595703125, 0.038299560546875, -0.042755126953125, -0.0003921985626220703, 0.0193328857421875, -0.019866943359375, -0.056060791015625, -0.0357666015625, 0.0032787322998046875, -0.01457977294921875, -0.0024204254150390625, -0.00542449951171875, 0.024810791015625, -0.020294189453125, 0.025909423828125, 0.0027008056640625, -0.0457763671875, -0.0555419921875, 0.016357421875, -0.0288238525390625, 0.033599853515625, -0.060455322265625, -0.04156494140625, -0.005985260009765625, 0.029388427734375, -0.01363372802734375, 0.00498199462890625, 0.0230865478515625, 0.054779052734375, -0.0002543926239013672, 0.07037353515625, 0.01218414306640625, -0.0133209228515625, -0.028076171875, 0.0626220703125, 0.01187896728515625, -0.027313232421875, 0.01496124267578125, -0.0079193115234375, 0.01108551025390625, 0.022247314453125, 0.04144287109375, -0.0245361328125, 0.0020999908447265625, 0.0204315185546875, 0.037017822265625, 0.006023406982421875 ]
c9ee7cf45bb04a4c9df3979d22bbc2ce851fd2c7
Wordpress Stackexchange Q: How to set twenty fourteen header image at 100% width? if function wpse_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'wpse_header_args', array( 'width' => 1460, 'height' => 220, ) ) ); } add_action( 'after_setup_theme', 'wpse_custom_header_setup' ); can help define the width of the header in px, how I can set up a header image at 100% to get something similar like http://braidingfreedom.com/? A: The header image is already set to 100% width by default. Check lines 571-578 in style.css of the twenty fourteen theme #site-header img { max-width: 100%; } If you need a bigger header, you'll need to set the sizes accordingly in the code in your question, which I suppose you got from one of my previous answers :-) Just another note here, you can play around with the max width of site-header found in lines 847 to 853. .site-header { background-color: #000; max-width: 1260px; position: relative; width: 100%; z-index: 4; } You need to set max-width: 1260px; to your set width in your function
Q: How to set twenty fourteen header image at 100% width? if function wpse_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'wpse_header_args', array( 'width' => 1460, 'height' => 220, ) ) ); } add_action( 'after_setup_theme', 'wpse_custom_header_setup' ); can help define the width of the header in px, how I can set up a header image at 100% to get something similar like http://braidingfreedom.com/? A: The header image is already set to 100% width by default. Check lines 571-578 in style.css of the twenty fourteen theme #site-header img { max-width: 100%; } If you need a bigger header, you'll need to set the sizes accordingly in the code in your question, which I suppose you got from one of my previous answers :-) Just another note here, you can play around with the max width of site-header found in lines 847 to 853. .site-header { background-color: #000; max-width: 1260px; position: relative; width: 100%; z-index: 4; } You need to set max-width: 1260px; to your set width in your function A: You cannot override the header image width as far as I can tell (I've been working on this myself just now) since it's a hard-wired maximum of 1260 in the image upload/selection for the header - Wordpress will insist that you crop it no matter what you do with the CSS (I couldn't find where to change this in functions.php either, I don't think you can without messing with WP core files). The best answer I have is to set this: #site-header { position: relative; z-index: 3; background: url(https://example.com/path/to/img.jpg); } in your style.css, where you simply set the url to your desired header image obviously. You will have to also get rid of your existing image somehow, I simply set a transparent image of the same height as the header image. Unfortunately this image wont resize with the rest of your site but it does mean you get a banner that actually matches for example in my case a 1920 width based site. Hope that helps. I would have added this as a comment but I don't have the rep yet. *edit - Actually I just read your OP properly and noticed you ARE messing with WP php, so this post probably not much help sorry :-/ however I am interested in how you reset the max width px since that would suit what I've been trying to do perfectly... I could ditch my current solution.
wordpress
{ "language": "en", "length": 402, "provenance": "stackexchange_00019.jsonl.gz:446969", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/154570" }
[ 0.0055389404296875, 0.00008970499038696289, -0.016571044921875, 0.0038242340087890625, 0.0166015625, -0.0237884521484375, 0.040191650390625, -0.0264739990234375, 0.0043487548828125, -0.00414276123046875, -0.045257568359375, 0.0204620361328125, -0.034393310546875, -0.00925445556640625, 0.0128631591796875, -0.051055908203125, 0.051422119140625, -0.07220458984375, 0.01123046875, 0.00627899169921875, 0.02496337890625, 0.0285797119140625, 0.007762908935546875, 0.0330810546875, 0.021697998046875, -0.053497314453125, 0.10009765625, -0.00665283203125, -0.00531768798828125, -0.03973388671875, 0.027801513671875, 0.017578125, 0.038482666015625, 0.0236968994140625, -0.059783935546875, 0.0416259765625, 0.025909423828125, -0.013946533203125, -0.034088134765625, 0.051513671875, 0.006893157958984375, 0.020477294921875, -0.0078277587890625, 0.0242462158203125, -0.023529052734375, -0.062225341796875, 0.037445068359375, -0.034454345703125, -0.004138946533203125, -0.0011539459228515625, 0.025482177734375, -0.0111236572265625, 0.04571533203125, -0.041259765625, -0.01247406005859375, 0.0020618438720703125, -0.05853271484375, 0.013427734375, 0.039276123046875, 0.01125335693359375, 0.005405426025390625, -0.03424072265625, 0.00997161865234375, -0.013427734375, 0.0239410400390625, 0.0014638900756835938, -0.0074462890625, 0.0280914306640625, -0.006557464599609375, 0.0131683349609375, 0.00115203857421875, -0.041168212890625, 0.01300811767578125, -0.0111846923828125, -0.059326171875, -0.0132293701171875, -0.0135955810546875, -0.0322265625, 0.054412841796875, -0.04119873046875, 0.01557159423828125, -0.04345703125, -0.01541900634765625, -0.01409149169921875, 0.03912353515625, 0.0281524658203125, -0.01149749755859375, -0.00737762451171875, -0.016510009765625, -0.0003924369812011719, -0.01049041748046875, -0.029388427734375, -0.04144287109375, 0.0301666259765625, -0.007110595703125, -0.0160369873046875, -0.0188751220703125, -0.00838470458984375, -0.0027332305908203125, 0.030242919921875, 0.023712158203125, -0.04718017578125, 0.06915283203125, -0.0235748291015625, -0.014923095703125, 0.0004367828369140625, -0.0037517547607421875, 0.0264129638671875, 0.0308685302734375, 0.034759521484375, -0.004940032958984375, 0.01111602783203125, -0.03363037109375, -0.0089569091796875, -0.044189453125, 0.0178680419921875, -0.038177490234375, -0.045196533203125, -0.01171875, -0.006053924560546875, -0.0012521743774414062, 0.01155853271484375, 0.04779052734375, -0.0091400146484375, -0.01332855224609375, 0.00543212890625, -0.01230621337890625, -0.0777587890625, -0.015045166015625, -0.0004367828369140625, -0.03863525390625, 0.01409149169921875, 0.038360595703125, 0.0196685791015625, 0.0084075927734375, -0.0069580078125, 0.0188446044921875, -0.029571533203125, -0.03924560546875, 0.051239013671875, -0.031463623046875, -0.0188446044921875, 0.0217742919921875, -0.050079345703125, 0.00372314453125, -0.01081085205078125, 0.0165863037109375, 0.02978515625, 0.01751708984375, -0.04443359375, 0.01244354248046875, 0.0136260986328125, 0.0416259765625, 0.0029850006103515625, -0.042724609375, -0.0148468017578125, -0.02325439453125, -0.0012273788452148438, -0.024017333984375, -0.00945281982421875, -0.02105712890625, 0.01369476318359375, 0.07781982421875, -0.040191650390625, -0.0270233154296875, 0.0018644332885742188, -0.076904296875, -0.0217742919921875, 0.0211944580078125, -0.0145111083984375, 0.0035266876220703125, 0.007740020751953125, 0.02081298828125, 0.0178680419921875, 0.0106964111328125, 0.027099609375, 0.02105712890625, -0.01543426513671875, 0.00933837890625, 0.037933349609375, -0.0043487548828125, -0.01861572265625, 0.016082763671875, -0.007720947265625, -0.0119171142578125, -0.01727294921875, 0.01067352294921875, 0.007396697998046875, 0.022674560546875, 0.0164947509765625, 0.004932403564453125, -0.0259857177734375, -0.02874755859375, -0.007266998291015625, 0.00516510009765625, -0.0183868408203125, -0.0194244384765625, -0.0311126708984375, -0.0007219314575195312, 0.039764404296875, -0.003490447998046875, -0.01010894775390625, 0.0228271484375, 0.0250701904296875, -0.01090240478515625, 0.0249481201171875, -0.019805908203125, 0.0272979736328125, 0.01244354248046875, 0.0250244140625, -0.0082855224609375, -0.0135345458984375, 0.0253143310546875, -0.06622314453125, -0.0083160400390625, 0.0093231201171875, 0.0229034423828125, 0.06915283203125, -0.0082550048828125, 0.0236663818359375, 0.00460052490234375, -0.0726318359375, 0.0197296142578125, 0.05438232421875, 0.0380859375, 0.004230499267578125, -0.038848876953125, -0.01044464111328125, 0.023681640625, 0.0025634765625, -0.020416259765625, 0.058990478515625, -0.01058197021484375, 0.004718780517578125, -0.018798828125, -0.00946807861328125, 0.0187225341796875, -0.049163818359375, 0.01097869873046875, 0.034759521484375, 0.0272369384765625, -0.0017223358154296875, -0.01282501220703125, 0.006702423095703125, 0.04888916015625, 0.0174560546875, 0.0226593017578125, -0.0140838623046875, 0.0289154052734375, -0.0018463134765625, 0.0266571044921875, -0.05035400390625, 0.046722412109375, -0.0286712646484375, 0.0186004638671875, 0.0276641845703125, -0.0247650146484375, -0.02197265625, 0.01445770263671875, 0.0159149169921875, -0.00299072265625, 0.025299072265625, 0.01238250732421875, 0.0016126632690429688, 0.0170440673828125, -0.00588226318359375, 0.03631591796875, 0.0160675048828125, -0.020172119140625, 0.000037789344787597656, 0.025360107421875, -0.006008148193359375, 0.00872039794921875, 0.0185699462890625, 0.01708984375, -0.00395965576171875, -0.0239715576171875, 0.003055572509765625, 0.02099609375, -0.0007510185241699219, -0.00708770751953125, 0.01377105712890625, -0.03533935546875, 0.01049041748046875, -0.0001036524772644043, -0.067626953125, 0.0183563232421875, 0.06610107421875, 0.0176544189453125, 0.0036830902099609375, 0.0183868408203125, 0.040863037109375, 0.01306915283203125, 0.0228729248046875, -0.00344085693359375, -0.00069427490234375, -0.0031375885009765625, -0.06298828125, 0.0787353515625, -0.054534912109375, 0.06390380859375, 0.087646484375, -0.047149658203125, 0.060760498046875, -0.0160675048828125, 0.00884246826171875, -0.01378631591796875, 0.03448486328125, -0.0102691650390625, -0.07012939453125, 0.004688262939453125, -0.0458984375, 0.0256195068359375, 0.04095458984375, -0.035797119140625, -0.037811279296875, -0.03387451171875, 0.01007080078125, -0.038543701171875, -0.0028247833251953125, 0.007022857666015625, -0.058990478515625, -0.026702880859375, -0.016998291015625, -0.0254669189453125, 0.00498199462890625, -0.0205841064453125, -0.01050567626953125, -0.0030460357666015625, -0.0440673828125, -0.0035762786865234375, -0.049041748046875, -0.039276123046875, -0.030792236328125, 0.01459503173828125, -0.014312744140625, 0.0002689361572265625, 0.0214691162109375, 0.0020599365234375, -0.0298919677734375, -0.0272216796875, 0.0504150390625, -0.0123138427734375, -0.055908203125, 0.00044536590576171875, -0.006778717041015625, 0.0247802734375, 0.0083465576171875, -0.01163482666015625, 0.01264190673828125, -0.00861358642578125, -0.021148681640625, -0.023712158203125, -0.05560302734375, -0.052276611328125, 0.050323486328125, 0.043426513671875, -0.09405517578125, -0.041168212890625, -0.10076904296875, -0.03656005859375, -0.03277587890625, -0.0682373046875, 0.0127716064453125, 0.04522705078125, 0.0108184814453125, -0.0122222900390625, 0.0007615089416503906, -0.0085601806640625, -0.0033321380615234375, 0.02471923828125, -0.04522705078125, 0.073974609375, 0.0017251968383789062, 0.006008148193359375, -0.0430908203125, 0.005451202392578125, -0.032958984375, 0.0697021484375, 0.01995849609375, 0.0023441314697265625, -0.036712646484375, 0.026397705078125, -0.053863525390625, -0.06591796875, 0.050994873046875, 0.0264129638671875, 0.026580810546875, -0.0159454345703125, -0.052642822265625, 0.0102996826171875, 0.08575439453125, -0.0172882080078125, -0.036376953125, -0.00795745849609375, 0.018218994140625, -0.03289794921875, 0.00007206201553344727, -0.007053375244140625, 0.0021648406982421875, -0.11114501953125, 0.0433349609375, 0.019775390625, -0.043212890625, -0.022003173828125, -0.004032135009765625, -0.06396484375, -0.0340576171875, -0.006496429443359375, 0.050201416015625, -0.03863525390625, 0.046844482421875, -0.0748291015625, 0.067138671875, 0.017669677734375, -0.0255126953125, -0.0810546875, -0.0167388916015625, -0.02301025390625, 0.059234619140625, -0.0012941360473632812, 0.01543426513671875, -0.0189208984375, 0.0379638671875, 0.0240631103515625, 0.000012576580047607422, 0.029815673828125, 0.00031304359436035156, 0.04608154296875, 0.0114288330078125, 0.0209503173828125, -0.021240234375, -0.0050811767578125, -0.00846099853515625, -0.0648193359375, 0.007617950439453125, 0.01128387451171875, 0.039947509765625, 0.049041748046875, -0.034698486328125, -0.0435791015625, -0.0401611328125, 0.00566864013671875, 0.029876708984375, -0.02947998046875, 0.03594970703125, -0.04266357421875, -0.026123046875, 0.0625, 0.028533935546875, -0.0025463104248046875, -0.0213623046875, 0.031890869140625, 0.005878448486328125, -0.039794921875, 0.01462554931640625, -0.0299530029296875, 0.04052734375, 0.00909423828125, 0.0202789306640625, -0.009002685546875, -0.035736083984375, 0.1044921875, 0.006908416748046875, -0.00923919677734375, 0.0249481201171875, 0.0238800048828125, 0.0185546875, -0.02557373046875, 0.01343536376953125, 0.007350921630859375, -0.025604248046875, 0.00910186767578125, 0.0306549072265625, -0.013946533203125, 0.020660400390625, 0.0135040283203125, 0.03143310546875, -0.05548095703125, -0.029998779296875, -0.015777587890625, -0.00923919677734375, 0.0155181884765625, 0.06683349609375, -0.003631591796875, 0.0268096923828125, 0.01557159423828125, 0.0219573974609375, -0.0020694732666015625, -0.00934600830078125, -0.0204315185546875, -0.033111572265625, 0.004878997802734375, -0.0002677440643310547, -0.03466796875, 0.0194244384765625, 0.0005602836608886719, 0.01428985595703125, 0.041290283203125, 0.018585205078125, -0.04742431640625, 0.0091552734375, 0.0340576171875, -0.0302734375, -0.01546478271484375, 0.060699462890625, -0.0004189014434814453, -0.0170135498046875, -0.0259857177734375, -0.074462890625, -0.0151519775390625, -0.064453125, -0.0020351409912109375, 0.056732177734375, -0.032867431640625, 0.033843994140625, 0.00794219970703125, 0.06640625, -0.009490966796875, -0.0269927978515625, 0.0106964111328125, 0.0113372802734375, -0.0003635883331298828, 0.004955291748046875, 0.05419921875, -0.0267181396484375, -0.006244659423828125, 0.0208740234375, -0.0107421875, 0.01036834716796875, -0.00589752197265625, 0.0019464492797851562, 0.018341064453125, 0.0017766952514648438, 0.0215301513671875, -0.008941650390625, -0.00247955322265625, 0.00487518310546875, -0.039337158203125, -0.084228515625, 0.006931304931640625, 0.06475830078125, 0.0286865234375, -0.04638671875, -0.030853271484375, 0.005802154541015625, -0.00849151611328125, 0.03973388671875, 0.00981903076171875, -0.0199432373046875, 0.058563232421875, 0.05108642578125, -0.0716552734375, -0.0189361572265625, -0.01015472412109375, 0.0159149169921875, -0.0047149658203125, -0.00475311279296875, -0.045074462890625, 0.014617919921875, -0.044769287109375, -0.006374359130859375, -0.02606201171875, 0.0191802978515625, -0.044403076171875, 0.0178680419921875, 0.046661376953125, 0.04376220703125, -0.05242919921875, -0.01690673828125, -0.0240936279296875, 0.0181732177734375, 0.01512908935546875, -0.0546875, 0.02960205078125, -0.01259613037109375, 0.036529541015625, -0.0054779052734375, 0.01329803466796875, -0.02490234375, 0.007305145263671875, 0.05780029296875, 0.047515869140625, 0.036102294921875, -0.0667724609375, 0.042083740234375, 0.03704833984375, -0.0201263427734375, -0.0198974609375, 0.017608642578125, 0.045501708984375, 0.005985260009765625, 0.0029621124267578125, 0.01470184326171875, -0.014312744140625, -0.0162811279296875, -0.01552581787109375, -0.00836181640625, 0.07421875, 0.0030536651611328125, 0.0014801025390625, -0.03155517578125, -0.00519561767578125, -0.0239410400390625, 0.031890869140625, -0.042694091796875, 0.001514434814453125, 0.003307342529296875, 0.0234375, 0.0523681640625, -0.0254974365234375, -0.031829833984375, 0.01021575927734375, 0.005748748779296875, 0.016876220703125, 0.019622802734375, -0.0712890625, 0.049224853515625, 0.08428955078125, 0.00400543212890625, 0.031463623046875, -0.0006690025329589844, 0.00397491455078125, 0.010101318359375, 0.024169921875, -0.0285797119140625, -0.04150390625, -0.006317138671875, 0.0019893646240234375, -0.00946807861328125, 0.004558563232421875, -0.0164337158203125, 0.0274200439453125, -0.016143798828125, 0.060089111328125, 0.00888824462890625, 0.0269012451171875, 0.029083251953125, -0.022064208984375, 0.058563232421875, 0.0002987384796142578, -0.012908935546875, -0.00527191162109375, 0.01540374755859375, 0.035491943359375, 0.00865936279296875, 0.028656005859375, 0.03265380859375, -0.0047454833984375, -0.005725860595703125, 0.049407958984375, 0.00917816162109375, -0.0252685546875, -0.01788330078125, 0.02642822265625, -0.01434326171875, 0.01361846923828125, 0.046478271484375, -0.0254669189453125, -0.005157470703125, 0.0050506591796875, 0.0235443115234375, -0.009033203125, -0.03045654296875, 0.05419921875, 0.019378662109375, -0.007190704345703125, 0.048583984375, -0.0213775634765625, 0.059051513671875, 0.0021877288818359375, -0.00008445978164672852, 0.01776123046875, -0.00969696044921875, 0.06317138671875, 0.0234222412109375, -0.057281494140625, 0.02239990234375, -0.021209716796875, -0.0225830078125, -0.005901336669921875, -0.0218658447265625, 0.1077880859375, -0.0447998046875, -0.00870513916015625, 0.019500732421875, 0.030609130859375, -0.022796630859375, 0.0074310302734375, 0.050018310546875, -0.0279693603515625, -0.047119140625, 0.0190277099609375, -0.0794677734375, -0.0183258056640625, -0.02496337890625, -0.00960540771484375, 0.0487060546875, -0.0360107421875, 0.0038814544677734375, 0.023162841796875, 0.0176544189453125, 0.01311492919921875, 0.020904541015625, -0.0070953369140625, 0.035186767578125, -0.0256500244140625, -0.0164642333984375, -0.03375244140625, 0.007381439208984375, -0.041229248046875, 0.01355743408203125, -0.00466156005859375, 0.0010471343994140625, 0.0146942138671875, 0.004039764404296875, 0.0662841796875, 0.03253173828125, 0.006381988525390625, 0.007518768310546875, -0.0369873046875, 0.003803253173828125, -0.04132080078125, -0.00360107421875, 0.039459228515625, -0.07049560546875, -0.0853271484375, -0.01454925537109375, 0.005626678466796875, -0.0016326904296875, 0.006168365478515625, 0.0157928466796875, -0.0738525390625, -0.001453399658203125, 0.035308837890625, -0.005374908447265625, 0.006931304931640625, 0.0162811279296875, 0.036773681640625, 0.00518798828125, 0.00916290283203125, -0.0126190185546875, 0.051513671875, 0.0238037109375, 0.006134033203125, -0.002010345458984375, 0.0004935264587402344, 0.0260772705078125, 0.0010957717895507812, -0.01239776611328125, 0.031951904296875, 0.0178985595703125, 0.029296875, 0.0168304443359375, 0.0026683807373046875, -0.03619384765625, -0.01415252685546875, 0.0252838134765625, 0.035675048828125, -0.0214385986328125, -0.003513336181640625, 0.007297515869140625, 0.01471710205078125, 0.0175018310546875, -0.00789642333984375, 0.03900146484375, -0.0177154541015625, 0.015716552734375, -0.013824462890625, 0.0245361328125, 0.033935546875, 0.0170135498046875, 0.0130462646484375, 0.041229248046875, -0.0614013671875, 0.020477294921875, -0.054656982421875, 0.015838623046875, -0.003284454345703125, 0.04547119140625, 0.038787841796875, 0.007061004638671875, 0.00666046142578125, -0.0198974609375, -0.01369476318359375, 0.007541656494140625, 0.0272216796875, -0.0030612945556640625, -0.01343536376953125, 0.015625, -0.0029239654541015625, 0.03033447265625, -0.01425933837890625, -0.0552978515625, -0.0145416259765625, 0.012786865234375, -0.04046630859375, -0.02862548828125, 0.00797271728515625, -0.005443572998046875, 0.040496826171875, -0.0253753662109375, 0.0225982666015625, 0.0133209228515625, -0.012847900390625, -0.00492095947265625, -0.007289886474609375, 0.06048583984375, 0.00010567903518676758, -0.03125, 0.03265380859375, -0.0301971435546875, -0.034027099609375, 0.0175018310546875, -0.0288238525390625, 0.029052734375, -0.061859130859375, -0.0278472900390625, -0.00809478759765625, -0.025787353515625, 0.032257080078125, 0.03704833984375, -0.018035888671875, 0.026641845703125, -0.036895751953125, -0.01751708984375, 0.01508331298828125, -0.00920867919921875, -0.0006098747253417969, 0.01482391357421875, 0.00913238525390625, -0.00806427001953125, -0.03765869140625, -0.01001739501953125, -0.0221405029296875, 0.02783203125, -0.0011091232299804688, 0.025848388671875, -0.0054473876953125, 0.0191802978515625, 0.0286712646484375, -0.01226806640625, 0.0426025390625, 0.01025390625, 0.030914306640625, 0.0173492431640625, 0.01041412353515625, -0.043731689453125, -0.030731201171875, -0.0173492431640625, 0.031585693359375, -0.047027587890625, 0.005290985107421875, -0.00823211669921875, 0.0209503173828125, -0.0087738037109375, -0.0166015625, -0.041473388671875, -0.053436279296875, -0.052154541015625, 0.0069732666015625, 0.0009551048278808594, -0.0230560302734375, -0.030364990234375, 0.08392333984375, 0.0018901824951171875, 0.0185699462890625, 0.02679443359375, -0.05810546875, 0.04913330078125, 0.047088623046875, -0.035400390625, -0.02587890625, -0.020294189453125, -0.0224151611328125, -0.010894775390625, -0.01027679443359375, -0.004779815673828125, -0.0163421630859375, -0.07269287109375, 0.0250244140625, 0.032928466796875, 0.0274200439453125, -0.058380126953125, 0.0048065185546875, 0.04534912109375, -0.0073089599609375, 0.0143890380859375, 0.0310211181640625, -0.0010166168212890625, 0.009765625, -0.035003662109375, -0.000598907470703125, 0.01093292236328125, -0.0181121826171875, -0.01372528076171875, -0.0361328125, 0.0499267578125, 0.00762176513671875, -0.007427215576171875, -0.027862548828125, -0.0035419464111328125, 0.017364501953125, 0.015777587890625, 0.0053863525390625, -0.01031494140625, 0.01486968994140625, -0.035247802734375, -0.06298828125, -0.039947509765625, 0.053314208984375, -0.04461669921875, -0.024078369140625, 0.03302001953125, -0.0008883476257324219, -0.0021915435791015625, -0.0245361328125, -0.02337646484375, 0.02069091796875, -0.032135009765625, -0.00861358642578125, 0.043853759765625, 0.0022754669189453125, -0.024078369140625, -0.0489501953125, -0.0115203857421875, -0.01116180419921875, 0.02459716796875, -0.01306915283203125, -0.0188140869140625, -0.0117034912109375, -0.0457763671875, -0.04498291015625, 0.026519775390625, 0.00634002685546875, -0.0257415771484375, -0.044464111328125, -0.0068511962890625, -0.0117950439453125, -0.007198333740234375, -0.0160980224609375, -0.01299285888671875, -0.001438140869140625, 0.05401611328125, 0.01910400390625, 0.03936767578125, 0.01419830322265625, 0.0184326171875, 0.0036373138427734375, 0.038421630859375, 0.033416748046875, 0.006500244140625, -0.02777099609375, -0.0026226043701171875, -0.0088653564453125, 0.0201416015625, -0.0250701904296875, -0.058868408203125, 0.004215240478515625, 0.0018100738525390625, -0.03485107421875, -0.0159912109375, 0.036407470703125, 0.028076171875, 0.041168212890625, 0.03912353515625, -0.0132598876953125, -0.056488037109375, 0.02178955078125, 0.036163330078125, 0.0075531005859375, 0.027679443359375, -0.006519317626953125, -0.00551605224609375, -0.01107025146484375, -0.0025386810302734375, -0.0214080810546875, -0.006855010986328125, -0.016204833984375, -0.034271240234375, -0.01025390625, -0.033599853515625, -0.00637054443359375, -0.03912353515625, 0.01190185546875, 0.031158447265625, -0.04754638671875, -0.0491943359375, -0.0101165771484375, 0.01331329345703125, -0.0243682861328125, -0.06756591796875, -0.0276641845703125, 0.06475830078125, -0.055877685546875, -0.0034008026123046875, -0.003803253173828125, 0.037017822265625, -0.042205810546875, 0.040069580078125, -0.010284423828125, 0.00460052490234375, 0.0030517578125, 0.00229644775390625, 0.00806427001953125, -0.029510498046875, -0.0184326171875, 0.034912109375, 0.0006113052368164062, -0.0175628662109375, -0.022216796875, 0.040069580078125, -0.0095977783203125, -0.036834716796875, 0.0158843994140625, -0.046539306640625, 0.00402069091796875, 0.020751953125, 0.01245880126953125, -0.048431396484375, 0.05108642578125, 0.01020050048828125, 0.035064697265625, 0.0225677490234375 ]
1f84edc40405e435001a8f38b2ec5a6d60b47705
Wordpress Stackexchange Q: Most commented post should be the first post in the blog WordPress default setting is, most recent post is the first post of the blog. But, I need to "Most commented post should be the first post in the blog". ( Categories page as well as home page) A: Alex, the codex is your friend. You have a parameter orderby which you can set to order posts by comment_count. You can get the complete list of parameters accepted by orderby in the codex page about WP_Query There is no need for any custom query, you can simply just alter the main query with the use of the action hook pre_get_posts. To order posts by comment count on the home and category pages, you can use the conditional tags is_home and is_category to target the homepage and category pages respectively. add_action ( 'pre_get_posts', function ( $query ) { if ( !is_admin() && $query->is_main_query() && ( $query->is_home() || $query->is_category() ) ) { $query->set( 'orderby', 'comment_count' ); } }); EDIT This code should be placed in your functions.php or any file that is related to functions.php, ie, any file used for rendering functionalities like functions.php does
Q: Most commented post should be the first post in the blog WordPress default setting is, most recent post is the first post of the blog. But, I need to "Most commented post should be the first post in the blog". ( Categories page as well as home page) A: Alex, the codex is your friend. You have a parameter orderby which you can set to order posts by comment_count. You can get the complete list of parameters accepted by orderby in the codex page about WP_Query There is no need for any custom query, you can simply just alter the main query with the use of the action hook pre_get_posts. To order posts by comment count on the home and category pages, you can use the conditional tags is_home and is_category to target the homepage and category pages respectively. add_action ( 'pre_get_posts', function ( $query ) { if ( !is_admin() && $query->is_main_query() && ( $query->is_home() || $query->is_category() ) ) { $query->set( 'orderby', 'comment_count' ); } }); EDIT This code should be placed in your functions.php or any file that is related to functions.php, ie, any file used for rendering functionalities like functions.php does A: WP Query has a comment_count parameter since 2.9. You can use 'orderby' => 'comment_count' in your query with other parameters, which list by number of comment count of post $args=array( ....... 'orderby' => 'comment_count', ..... ); $my_query = new WP_Query($args);
wordpress
{ "language": "en", "length": 235, "provenance": "stackexchange_00019.jsonl.gz:446974", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/154579" }
[ 0.043548583984375, -0.00811004638671875, 0.030517578125, -0.0297088623046875, -0.0016613006591796875, -0.012359619140625, 0.0158843994140625, -0.047210693359375, 0.00817108154296875, 0.005786895751953125, -0.0274200439453125, -0.00046324729919433594, -0.04522705078125, -0.0257415771484375, -0.0083465576171875, -0.046661376953125, 0.046142578125, -0.00707244873046875, 0.0290679931640625, -0.008575439453125, -0.00457000732421875, 0.0238037109375, 0.03076171875, 0.0777587890625, 0.01058197021484375, -0.0389404296875, 0.09228515625, -0.0215911865234375, 0.0172271728515625, -0.0142059326171875, 0.0185394287109375, 0.0020771026611328125, 0.0037593841552734375, 0.0012044906616210938, 0.00333404541015625, -0.037261962890625, 0.02325439453125, -0.01009368896484375, 0.003997802734375, 0.0379638671875, 0.006366729736328125, 0.006565093994140625, 0.0021724700927734375, 0.028076171875, -0.01287841796875, -0.04681396484375, 0.0186004638671875, -0.0292205810546875, 0.0390625, -0.07080078125, -0.01690673828125, 0.0274200439453125, 0.032073974609375, -0.071044921875, -0.03594970703125, 0.0010404586791992188, 0.002407073974609375, -0.007045745849609375, 0.027740478515625, -0.022979736328125, -0.01812744140625, -0.006130218505859375, 0.031463623046875, 0.001567840576171875, -0.0236968994140625, 0.00040721893310546875, 0.03851318359375, 0.017822265625, -0.0291748046875, -0.049224853515625, 0.01158905029296875, 0.00363922119140625, 0.00586700439453125, -0.024139404296875, 0.017547607421875, 0.0008401870727539062, -0.0279388427734375, -0.0233154296875, 0.036590576171875, 0.0126953125, 0.004039764404296875, 0.006450653076171875, 0.0169525146484375, -0.04071044921875, 0.012481689453125, -0.0290069580078125, -0.0154876708984375, -0.00823211669921875, -0.03582763671875, -0.025482177734375, -0.023834228515625, -0.019195556640625, -0.0256805419921875, 0.021392822265625, -0.02374267578125, 0.0196685791015625, 0.015411376953125, 0.04315185546875, -0.033355712890625, -0.02734375, -0.03778076171875, -0.0009655952453613281, -0.046142578125, -0.01458740234375, 0.030426025390625, 0.00501251220703125, -0.05859375, -0.0531005859375, 0.053497314453125, 0.059234619140625, 0.003238677978515625, 0.006298065185546875, -0.0071258544921875, -0.01340484619140625, 0.0063629150390625, 0.0235748291015625, -0.037628173828125, 0.0345458984375, -0.0012531280517578125, 0.0120697021484375, -0.005222320556640625, 0.01447296142578125, 0.01175689697265625, -0.0309295654296875, 0.0272064208984375, -0.00919342041015625, -0.01739501953125, -0.0163421630859375, -0.0156707763671875, 0.036773681640625, -0.0267181396484375, 0.0221099853515625, 0.04486083984375, -0.0139312744140625, -0.03118896484375, -0.0213623046875, 0.0257110595703125, 0.01531219482421875, -0.01678466796875, 0.005931854248046875, 0.0204315185546875, -0.0229339599609375, -0.01277923583984375, -0.0001138448715209961, -0.003208160400390625, 0.0416259765625, 0.0185089111328125, 0.0037136077880859375, 0.0030803680419921875, -0.053314208984375, 0.013702392578125, -0.01326751708984375, 0.030914306640625, -0.02044677734375, -0.0174102783203125, -0.040191650390625, -0.0229034423828125, -0.0186309814453125, 0.0118865966796875, -0.0151214599609375, 0.050811767578125, 0.0166168212890625, -0.0248870849609375, -0.037628173828125, -0.06085205078125, -0.03326416015625, -0.0142364501953125, -0.007106781005859375, 0.02227783203125, 0.03631591796875, -0.0280303955078125, 0.001983642578125, 0.03924560546875, -0.015411376953125, -0.03424072265625, -0.00798797607421875, -0.01495361328125, -0.0478515625, 0.007724761962890625, 0.053802490234375, -0.008758544921875, -0.0273895263671875, -0.040191650390625, 0.01812744140625, -0.0249786376953125, 0.0360107421875, 0.0308837890625, 0.06195068359375, -0.0274505615234375, 0.0237274169921875, 0.01161956787109375, 0.05682373046875, -0.052520751953125, 0.0144805908203125, -0.01947021484375, -0.006072998046875, -0.01186370849609375, 0.0033397674560546875, -0.0047454833984375, 0.0215911865234375, 0.02020263671875, -0.01012420654296875, -0.0017414093017578125, 0.0007266998291015625, -0.03399658203125, -0.006160736083984375, -0.0104827880859375, 0.0211334228515625, -0.002124786376953125, 0.023834228515625, 0.0301666259765625, 0.0172576904296875, -0.037017822265625, -0.0338134765625, -0.052001953125, -0.002197265625, -0.0277252197265625, 0.02264404296875, -0.04150390625, 0.0229339599609375, -0.06768798828125, -0.031524658203125, -0.051055908203125, 0.0276641845703125, 0.0753173828125, -0.01910400390625, -0.01690673828125, -0.0362548828125, 0.0443115234375, 0.0086669921875, -0.06787109375, 0.016571044921875, -0.0034332275390625, -0.00540924072265625, -0.047332763671875, 0.00634765625, 0.00769805908203125, 0.035980224609375, -0.01092529296875, 0.0187835693359375, 0.0282135009765625, -0.018798828125, 0.031585693359375, 0.0792236328125, 0.01024627685546875, -0.0214080810546875, 0.0264129638671875, 0.00560760498046875, 0.0222625732421875, 0.056671142578125, -0.003955841064453125, 0.00848388671875, 0.0091705322265625, -0.031829833984375, 0.0292816162109375, 0.0171356201171875, 0.0018129348754882812, -0.024322509765625, 0.00036716461181640625, 0.01317596435546875, 0.02850341796875, -0.0341796875, -0.059539794921875, 0.003147125244140625, 0.01580810546875, -0.009033203125, -0.01013946533203125, -0.0083770751953125, -0.037353515625, 0.0021114349365234375, 0.03363037109375, 0.01166534423828125, 0.007221221923828125, 0.04901123046875, 0.026458740234375, -0.02056884765625, -0.01558685302734375, -0.0210113525390625, -0.034088134765625, 0.0107574462890625, -0.00110626220703125, 0.0478515625, 0.00820159912109375, -0.01548004150390625, -0.033905029296875, -0.05096435546875, 0.0237579345703125, 0.044158935546875, -0.0482177734375, -0.048583984375, -0.0008955001831054688, 0.0174102783203125, -0.050811767578125, 0.0292205810546875, -0.002323150634765625, -0.02313232421875, -0.0234375, -0.08428955078125, 0.062164306640625, -0.046173095703125, 0.04840087890625, 0.09014892578125, -0.00017011165618896484, 0.0184478759765625, -0.01141357421875, 0.0312347412109375, 0.01727294921875, -0.01146697998046875, -0.037353515625, -0.0184478759765625, -0.0179901123046875, 0.0016689300537109375, 0.026580810546875, 0.08355712890625, -0.004241943359375, -0.039215087890625, 0.03314208984375, 0.04193115234375, -0.009185791015625, -0.040283203125, -0.0204620361328125, -0.0318603515625, 0.01123046875, -0.009796142578125, -0.0107574462890625, -0.0192108154296875, -0.00991058349609375, 0.01068878173828125, -0.00279998779296875, -0.019012451171875, -0.029327392578125, -0.03399658203125, -0.025146484375, 0.00508880615234375, 0.007640838623046875, -0.0182952880859375, 0.00501251220703125, 0.10980224609375, 0.01224517822265625, -0.060699462890625, -0.005832672119140625, -0.031341552734375, -0.019134521484375, 0.025848388671875, 0.01226043701171875, -0.022216796875, -0.006679534912109375, 0.0010623931884765625, -0.0047454833984375, 0.0261993408203125, -0.0200653076171875, 0.0005674362182617188, -0.0362548828125, 0.0255584716796875, -0.032073974609375, 0.0849609375, 0.05694580078125, 0.0027332305908203125, 0.0117645263671875, -0.0249176025390625, 0.0253143310546875, -0.02899169921875, -0.030487060546875, -0.04071044921875, 0.036468505859375, 0.0002532005310058594, -0.034881591796875, -0.0300750732421875, -0.016082763671875, -0.0030670166015625, 0.0618896484375, -0.0257568359375, 0.0123138427734375, -0.0091094970703125, -0.041473388671875, -0.042266845703125, 0.0408935546875, 0.004497528076171875, -0.0129241943359375, 0.0069732666015625, 0.0086669921875, -0.01540374755859375, 0.0208587646484375, -0.040191650390625, -0.0036945343017578125, 0.034698486328125, 0.00616455078125, 0.0171661376953125, -0.0156097412109375, -0.02783203125, -0.0206451416015625, 0.035400390625, -0.07281494140625, -0.032196044921875, 0.0164642333984375, 0.0203094482421875, -0.0191192626953125, 0.0034923553466796875, -0.034423828125, -0.0335693359375, -0.033721923828125, 0.03399658203125, 0.01763916015625, -0.00907135009765625, -0.046051025390625, 0.03680419921875, -0.04638671875, 0.0055084228515625, 0.02410888671875, -0.032318115234375, -0.0253143310546875, 0.041778564453125, -0.048095703125, 0.0229339599609375, -0.0269927978515625, -0.025543212890625, -0.0251922607421875, -0.004764556884765625, -0.01251983642578125, 0.0218505859375, 0.0184173583984375, -0.0154876708984375, -0.016143798828125, 0.0291748046875, -0.02191162109375, -0.01097869873046875, 0.01279449462890625, 0.03289794921875, 0.01263427734375, -0.005092620849609375, -0.0159759521484375, -0.029541015625, -0.0027408599853515625, -0.0134124755859375, -0.023712158203125, 0.02484130859375, -0.048675537109375, 0.0192413330078125, -0.0226593017578125, -0.0030994415283203125, -0.033782958984375, -0.075439453125, -0.0364990234375, 0.0284423828125, -0.028472900390625, 0.01445770263671875, -0.0804443359375, -0.05810546875, 0.00107574462890625, -0.050079345703125, -0.0145263671875, 0.01207733154296875, 0.08465576171875, 0.0173187255859375, 0.0196380615234375, -0.010345458984375, 0.0001220703125, 0.0311431884765625, 0.01482391357421875, 0.03436279296875, 0.0031986236572265625, -0.0302276611328125, 0.047607421875, 0.010894775390625, -0.0009241104125976562, -0.005069732666015625, 0.033599853515625, 0.0114898681640625, -0.01267242431640625, 0.01274871826171875, 0.01360321044921875, 0.00940704345703125, -0.005615234375, -0.02911376953125, 0.0124053955078125, -0.0294952392578125, 0.01303863525390625, -0.01265716552734375, 0.03973388671875, 0.004009246826171875, -0.01446533203125, 0.008636474609375, 0.00482177734375, 0.02447509765625, 0.0100555419921875, 0.01561737060546875, 0.0213165283203125, 0.036407470703125, -0.004093170166015625, 0.0367431640625, 0.03289794921875, 0.01114654541015625, 0.01486968994140625, 0.045257568359375, -0.006378173828125, 0.0080413818359375, -0.01401519775390625, 0.056396484375, -0.01242828369140625, -0.051177978515625, -0.01546478271484375, -0.017730712890625, 0.052947998046875, 0.018157958984375, 0.0073394775390625, 0.03936767578125, -0.0290679931640625, -0.0188140869140625, -0.0160675048828125, -0.0474853515625, -0.033294677734375, -0.051422119140625, 0.032958984375, 0.01462554931640625, -0.0042877197265625, 0.039215087890625, 0.0323486328125, 0.0107421875, 0.032958984375, -0.033721923828125, 0.0146331787109375, -0.0007090568542480469, 0.018798828125, 0.01528167724609375, 0.0182647705078125, -0.01358795166015625, 0.01322174072265625, 0.016693115234375, 0.014495849609375, 0.0158233642578125, -0.0025386810302734375, -0.018402099609375, -0.020782470703125, -0.00370025634765625, 0.0254058837890625, -0.009521484375, 0.00829315185546875, 0.006496429443359375, 0.0347900390625, -0.0031909942626953125, 0.0254669189453125, -0.004123687744140625, -0.0198211669921875, -0.006793975830078125, 0.000823974609375, 0.0220794677734375, -0.0008139610290527344, 0.0533447265625, -0.042205810546875, 0.04840087890625, -0.0015621185302734375, -0.01386260986328125, -0.0037174224853515625, 0.006229400634765625, -0.001522064208984375, 0.01068115234375, -0.0231781005859375, -0.01232147216796875, -0.0172882080078125, 0.03521728515625, 0.005893707275390625, 0.054840087890625, -0.040496826171875, -0.02581787109375, -0.0211029052734375, 0.00719451904296875, 0.01727294921875, 0.008392333984375, -0.0301513671875, -0.0175933837890625, -0.035919189453125, -0.0234222412109375, 0.02154541015625, -0.00942230224609375, -0.022857666015625, -0.020843505859375, 0.01361846923828125, 0.0289306640625, 0.0195770263671875, -0.0300140380859375, -0.0640869140625, -0.01904296875, 0.0355224609375, 0.0172119140625, -0.04071044921875, 0.09014892578125, 0.0216217041015625, 0.006160736083984375, 0.01055908203125, 0.059173583984375, 0.00921630859375, -0.0016126632690429688, 0.033111572265625, -0.00923919677734375, -0.04193115234375, -0.01532745361328125, -0.055450439453125, -0.0115203857421875, 0.058990478515625, -0.01885986328125, 0.039703369140625, 0.006870269775390625, 0.0279998779296875, -0.00112152099609375, -0.09259033203125, -0.006938934326171875, 0.01229095458984375, 0.04339599609375, 0.0218658447265625, 0.0322265625, -0.036529541015625, -0.03125, 0.00010728836059570312, 0.00933837890625, 0.0096588134765625, -0.0024547576904296875, -0.03900146484375, 0.046905517578125, 0.02984619140625, 0.040924072265625, 0.04510498046875, 0.0106353759765625, 0.044281005859375, -0.02032470703125, 0.01351165771484375, -0.012725830078125, -0.05010986328125, 0.0195465087890625, -0.00330352783203125, 0.005413055419921875, 0.01898193359375, -0.0057373046875, 0.014923095703125, 0.0030059814453125, 0.041534423828125, -0.010711669921875, 0.006481170654296875, 0.0006794929504394531, -0.024261474609375, 0.06170654296875, -0.0055084228515625, -0.0021648406982421875, -0.0173492431640625, 0.09539794921875, -0.047393798828125, -0.02056884765625, 0.037811279296875, -0.0411376953125, -0.00930023193359375, -0.013275146484375, 0.0220947265625, -0.00028228759765625, -0.05072021484375, 0.0046234130859375, 0.0231781005859375, -0.01122283935546875, -0.043243408203125, -0.016082763671875, 0.00853729248046875, -0.028900146484375, -0.108642578125, -0.0082244873046875, 0.0026302337646484375, 0.0013523101806640625, 0.040557861328125, -0.0552978515625, -0.0103302001953125, 0.023529052734375, -0.036590576171875, 0.0240325927734375, 0.003162384033203125, -0.07391357421875, -0.060333251953125, -0.0190887451171875, 0.043365478515625, 0.004512786865234375, -0.001323699951171875, 0.038970947265625, -0.004657745361328125, -0.06561279296875, -0.020751953125, -0.062347412109375, 0.06591796875, -0.030975341796875, -0.0012502670288085938, 0.0056915283203125, 0.02203369140625, 0.00034880638122558594, -0.022125244140625, 0.0208892822265625, -0.005401611328125, 0.040771484375, -0.005184173583984375, 0.02215576171875, -0.0231781005859375, -0.043914794921875, -0.04815673828125, 0.033935546875, -0.031890869140625, 0.0156707763671875, -0.0090179443359375, 0.01258087158203125, 0.0272369384765625, 0.018035888671875, -0.022918701171875, 0.06549072265625, -0.0189361572265625, 0.085205078125, -0.05499267578125, -0.017303466796875, 0.039154052734375, 0.0694580078125, 0.08941650390625, 0.0201263427734375, -0.04962158203125, -0.0035762786865234375, 0.053131103515625, 0.033111572265625, -0.003520965576171875, 0.069580078125, -0.0183868408203125, -0.0032291412353515625, 0.03533935546875, -0.01055145263671875, 0.03759765625, 0.013427734375, -0.031524658203125, -0.01165771484375, 0.018310546875, 0.015228271484375, -0.0186004638671875, 0.04180908203125, -0.04986572265625, -0.00522613525390625, 0.05059814453125, -0.007049560546875, -0.0179901123046875, 0.0980224609375, 0.0889892578125, -0.057220458984375, -0.0228271484375, -0.048065185546875, 0.072998046875, 0.025848388671875, 0.048065185546875, 0.0750732421875, 0.04083251953125, 0.05084228515625, -0.01654052734375, 0.0325927734375, -0.01053619384765625, -0.043243408203125, 0.0635986328125, 0.03411865234375, 0.057373046875, -0.0150909423828125, -0.03045654296875, 0.0101165771484375, 0.07342529296875, -0.034393310546875, -0.0006952285766601562, 0.015625, 0.004039764404296875, 0.01456451416015625, -0.03558349609375, 0.028594970703125, 0.023529052734375, 0.01389312744140625, -0.06048583984375, -0.0259857177734375, -0.0022563934326171875, 0.035400390625, -0.006252288818359375, -0.00666046142578125, 0.02923583984375, -0.04095458984375, 0.008209228515625, -0.0032215118408203125, 0.017669677734375, -0.002010345458984375, -0.0443115234375, 0.048309326171875, -0.038848876953125, 0.038848876953125, 0.0023555755615234375, 0.0137786865234375, -0.016815185546875, -0.00608062744140625, -0.007488250732421875, -0.0089263916015625, -0.040802001953125, 0.033660888671875, 0.01666259765625, 0.0211334228515625, 0.01256561279296875, -0.002605438232421875, -0.0157623291015625, -0.002902984619140625, 0.05145263671875, -0.03753662109375, -0.031768798828125, -0.037841796875, -0.020904541015625, 0.0097503662109375, -0.006343841552734375, 0.02349853515625, 0.013763427734375, 0.01052093505859375, 0.01454925537109375, 0.0030536651611328125, 0.02044677734375, -0.0126800537109375, 0.042327880859375, 0.0478515625, 0.0241241455078125, 0.04095458984375, -0.0203704833984375, 0.0231781005859375, -0.0250244140625, -0.08050537109375, 0.01189422607421875, 0.0250701904296875, -0.0263824462890625, 0.01554107666015625, -0.0144195556640625, -0.030242919921875, 0.035400390625, -0.0262908935546875, 0.0205230712890625, 0.0259857177734375, -0.0031299591064453125, -0.0022373199462890625, -0.030029296875, -0.03155517578125, -0.0025539398193359375, 0.0282440185546875, 0.0307769775390625, 0.053985595703125, 0.0167694091796875, 0.023468017578125, -0.03460693359375, 0.03997802734375, -0.056671142578125, -0.031036376953125, 0.052886962890625, -0.00951385498046875, -0.0248870849609375, -0.004039764404296875, -0.040771484375, -0.017303466796875, 0.05169677734375, -0.0469970703125, 0.03411865234375, -0.0215301513671875, 0.0048370361328125, -0.0654296875, 0.0170745849609375, -0.03546142578125, 0.0173797607421875, -0.01345062255859375, -0.032379150390625, 0.0289154052734375, -0.0238494873046875, -0.0163421630859375, 0.05767822265625, -0.0188140869140625, 0.0184478759765625, 0.0005030632019042969, -0.0185546875, -0.0151824951171875, 0.022125244140625, -0.032379150390625, 0.0200042724609375, -0.00426483154296875, -0.01003265380859375, 0.018829345703125, 0.0196533203125, -0.0258941650390625, 0.017303466796875, -0.03350830078125, -0.004032135009765625, 0.03314208984375, 0.066650390625, 0.0032405853271484375, 0.025360107421875, -0.00702667236328125, -0.016204833984375, 0.046875, 0.003437042236328125, -0.016876220703125, -0.0166015625, -0.0206298828125, 0.00225830078125, -0.0182647705078125, -0.0491943359375, -0.042144775390625, -0.0186614990234375, -0.01165771484375, -0.036468505859375, 0.021392822265625, 0.0027904510498046875, -0.03546142578125, 0.0013332366943359375, -0.053802490234375, -0.007373809814453125, -0.005298614501953125, -0.0100555419921875, -0.038848876953125, 0.005336761474609375, -0.055908203125, -0.0078887939453125, -0.0391845703125, 0.03472900390625, 0.054412841796875, -0.0185089111328125, -0.007083892822265625, -0.004119873046875, 0.0135345458984375, 0.046630859375, -0.0499267578125, -0.00008809566497802734, 0.055755615234375, -0.022979736328125, -0.047149658203125, -0.08123779296875, 0.0245819091796875, -0.09600830078125, 0.009307861328125, -0.0289154052734375, 0.053680419921875, 0.055145263671875, -0.00844573974609375, -0.035369873046875, 0.06463623046875, -0.031280517578125, -0.015594482421875, -0.0518798828125, -0.003757476806640625, -0.01267242431640625, 0.062286376953125, 0.016571044921875, -0.03741455078125, -0.0188446044921875, 0.0286407470703125, -0.01552581787109375, 0.021392822265625, 0.0216522216796875, -0.0251617431640625, -0.0264892578125, 0.00597381591796875, 0.0135650634765625, -0.0016450881958007812, -0.01433563232421875, 0.00833892822265625, 0.028045654296875, 0.039886474609375, -0.0202178955078125, 0.0548095703125, 0.02020263671875, 0.00006586313247680664, -0.0006074905395507812, -0.039337158203125, -0.044158935546875, -0.025054931640625, 0.0179595947265625, 0.075439453125, 0.0147857666015625, -0.03533935546875, -0.0140380859375, -0.037933349609375, -0.01348114013671875, -0.048797607421875, 0.0010900497436523438, -0.07012939453125, -0.019775390625, -0.0013513565063476562, -0.0117034912109375, -0.0056304931640625, -0.03955078125, -0.03814697265625, -0.0014801025390625, -0.0478515625, 0.01079559326171875, -0.0210113525390625, 0.0178375244140625, -0.00508880615234375, -0.0036525726318359375, -0.0009655952453613281, -0.00951385498046875, -0.0048675537109375, 0.0005812644958496094, 0.03582763671875, 0.01934814453125, 0.0204315185546875, 0.001255035400390625, 0.004367828369140625, 0.049102783203125, 0.01552581787109375, 0.0194244384765625, -0.021820068359375, 0.00025725364685058594, 0.007381439208984375, 0.0282440185546875, 0.01375579833984375, 0.01727294921875, -0.053466796875, -0.0152435302734375, -0.01776123046875, -0.00959014892578125, 0.0267181396484375, -0.00728607177734375, 0.01806640625, 0.0224761962890625, -0.01357269287109375, 0.05206298828125, -0.0144805908203125, -0.0085906982421875, 0.008087158203125, 0.0010986328125, -0.040863037109375, 0.0258941650390625, 0.0280609130859375, 0.0091094970703125, 0.0186614990234375 ]
76c4227841a613e08fac9455f891ad230df8d9db
Wordpress Stackexchange Q: Programmatically log in a wordpress user I am trying to programmatically log in a wordpress user, using the following function for that. public function auto_login( $user ) { $username = $user; if ( !is_user_logged_in() ) { $user = get_user_by( 'login', $username ); wp_set_current_user( $user->ID, $user->user_login ); wp_set_auth_cookie( $user->ID ); do_action( 'wp_login', $user->user_login ); } } Unfortunately it seems not to be working. That function is called from within a shortcode. Could this be the explanation ? Should I rather hook my function to some filter, before any content is output ? Also I would like to redirect the newly logged in user to a specific post based on a $_GET parameter, can I simply add a header redirect at the end of the function ? Thank you in advance for your help ! A: You can try this function as it is working for me function custom_login() { $creds = array(); $creds['user_login'] = 'example'; $creds['user_password'] = 'plaintextpw'; $creds['remember'] = true; $user = wp_signon( $creds, false ); if ( is_wp_error($user) ) echo $user->get_error_message(); } // run it before the headers and cookies are sent add_action( 'after_setup_theme', 'custom_login' ); For details please visit the official site here
Q: Programmatically log in a wordpress user I am trying to programmatically log in a wordpress user, using the following function for that. public function auto_login( $user ) { $username = $user; if ( !is_user_logged_in() ) { $user = get_user_by( 'login', $username ); wp_set_current_user( $user->ID, $user->user_login ); wp_set_auth_cookie( $user->ID ); do_action( 'wp_login', $user->user_login ); } } Unfortunately it seems not to be working. That function is called from within a shortcode. Could this be the explanation ? Should I rather hook my function to some filter, before any content is output ? Also I would like to redirect the newly logged in user to a specific post based on a $_GET parameter, can I simply add a header redirect at the end of the function ? Thank you in advance for your help ! A: You can try this function as it is working for me function custom_login() { $creds = array(); $creds['user_login'] = 'example'; $creds['user_password'] = 'plaintextpw'; $creds['remember'] = true; $user = wp_signon( $creds, false ); if ( is_wp_error($user) ) echo $user->get_error_message(); } // run it before the headers and cookies are sent add_action( 'after_setup_theme', 'custom_login' ); For details please visit the official site here A: Do this on template_redirect hook. You can use wp_safe_redirect to redirect to different page in the blog. I can't give you the code because I don't from where you are getting the $user
wordpress
{ "language": "en", "length": 230, "provenance": "stackexchange_00019.jsonl.gz:447076", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/154938" }
[ 0.06475830078125, 0.0010404586791992188, 0.00884246826171875, -0.058441162109375, 0.0172576904296875, -0.032928466796875, 0.045135498046875, -0.01369476318359375, -0.03814697265625, 0.0218505859375, -0.006275177001953125, 0.00586700439453125, 0.01309967041015625, -0.0175628662109375, 0.0306549072265625, -0.033355712890625, 0.025177001953125, -0.02227783203125, 0.014617919921875, -0.01837158203125, 0.01012420654296875, -0.0007038116455078125, 0.025726318359375, -0.00975799560546875, 0.005390167236328125, 0.0173187255859375, 0.08599853515625, -0.03228759765625, 0.036865234375, 0.0017852783203125, 0.01556396484375, -0.0546875, -0.0004897117614746094, 0.0633544921875, -0.04833984375, -0.027435302734375, -0.006748199462890625, 0.0246124267578125, 0.01201629638671875, 0.004131317138671875, 0.0074005126953125, 0.01251220703125, 0.00421142578125, -0.00749969482421875, -0.03143310546875, -0.0286407470703125, 0.0136566162109375, -0.002716064453125, 0.0103607177734375, 0.009429931640625, 0.02056884765625, -0.00156402587890625, 0.03265380859375, -0.0144195556640625, 0.0002677440643310547, 0.0152587890625, -0.0399169921875, 0.018280029296875, 0.040374755859375, 0.0222930908203125, -0.00389862060546875, -0.045806884765625, 0.01056671142578125, -0.03533935546875, 0.006053924560546875, -0.0186004638671875, -0.0108642578125, 0.0249786376953125, 0.009063720703125, -0.01324462890625, -0.003597259521484375, 0.0164031982421875, -0.015869140625, 0.036834716796875, -0.03363037109375, -0.0200042724609375, 0.01812744140625, -0.006855010986328125, 0.017669677734375, 0.029388427734375, 0.006084442138671875, 0.0262451171875, 0.0023250579833984375, -0.0043487548828125, 0.004085540771484375, 0.0250701904296875, -0.0217742919921875, -0.041473388671875, -0.01407623291015625, 0.0020503997802734375, -0.0218658447265625, -0.002857208251953125, 0.0223388671875, -0.01531982421875, -0.0257720947265625, -0.031585693359375, 0.0006747245788574219, 0.06292724609375, -0.00846099853515625, 0.007442474365234375, -0.029296875, -0.00860595703125, 0.0041961669921875, -0.03778076171875, -0.01227569580078125, 0.06524658203125, 0.0078582763671875, 0.01328277587890625, -0.01995849609375, 0.007007598876953125, 0.022308349609375, -0.080078125, -0.01502227783203125, -0.056488037109375, 0.0029582977294921875, 0.0628662109375, 0.002605438232421875, -0.01500701904296875, 0.00396728515625, 0.01369476318359375, -0.030059814453125, -0.0020904541015625, -0.00347137451171875, 0.02471923828125, -0.0166015625, -0.033782958984375, 0.0179901123046875, 0.003570556640625, -0.00710296630859375, 0.044677734375, -0.04022216796875, 0.01410675048828125, 0.0638427734375, 0.0077056884765625, -0.006816864013671875, -0.0300445556640625, 0.021881103515625, -0.0212249755859375, -0.0127716064453125, 0.038909912109375, 0.00246429443359375, -0.060577392578125, -0.03765869140625, 0.0021514892578125, 0.01280975341796875, 0.038360595703125, 0.03192138671875, 0.004100799560546875, -0.0269927978515625, -0.07745361328125, 0.0218963623046875, -0.00547027587890625, -0.05462646484375, 0.036346435546875, 0.07110595703125, 0.054107666015625, 0.031890869140625, 0.005062103271484375, 0.0206298828125, 0.037567138671875, 0.0230865478515625, -0.0170745849609375, -0.00849151611328125, -0.0037631988525390625, -0.034210205078125, 0.0167388916015625, -0.038177490234375, -0.0018053054809570312, 0.0261383056640625, 0.0186614990234375, -0.01190948486328125, 0.033447265625, 0.041290283203125, 0.0228118896484375, 0.01727294921875, -0.0025997161865234375, -0.034759521484375, 0.0635986328125, 0.04345703125, -0.0101776123046875, 0.00643157958984375, -0.01551055908203125, 0.0975341796875, 0.0010547637939453125, -0.0494384765625, 0.02471923828125, 0.0216064453125, 0.0712890625, 0.01238250732421875, 0.022491455078125, -0.0046539306640625, 0.0250396728515625, -0.0216522216796875, 0.01349639892578125, -0.0054931640625, -0.045928955078125, 0.019622802734375, -0.0275726318359375, -0.007656097412109375, 0.043365478515625, 0.0262298583984375, -0.0273895263671875, 0.0133056640625, -0.0257720947265625, -0.0806884765625, -0.004268646240234375, -0.02886962890625, 0.022979736328125, 0.01056671142578125, -0.0019702911376953125, -0.0025615692138671875, -0.0194091796875, 0.012451171875, -0.044952392578125, -0.044647216796875, 0.005352020263671875, -0.0211029052734375, 0.06634521484375, -0.0155487060546875, 0.096435546875, -0.00989532470703125, -0.03521728515625, -0.0005502700805664062, -0.02740478515625, 0.03472900390625, -0.01708984375, -0.0104522705078125, -0.01181793212890625, 0.02825927734375, -0.0110015869140625, -0.0004622936248779297, 0.0224609375, 0.00496673583984375, 0.0243988037109375, -0.03936767578125, -0.01345062255859375, -0.0261688232421875, -0.02740478515625, 0.0036869049072265625, 0.042724609375, 0.046478271484375, 0.02935791015625, -0.00958251953125, 0.006801605224609375, 0.042510986328125, -0.0311279296875, 0.0169677734375, -0.011199951171875, 0.0136566162109375, 0.04254150390625, -0.0080718994140625, 0.01038360595703125, 0.006626129150390625, -0.038665771484375, 0.0211181640625, 0.039154052734375, -0.0049896240234375, -0.002513885498046875, 0.00481414794921875, -0.005802154541015625, -0.01020050048828125, -0.060333251953125, -0.0186309814453125, -0.0275421142578125, -0.029541015625, -0.038665771484375, -0.02606201171875, -0.0380859375, -0.0084381103515625, -0.03594970703125, 0.032989501953125, -0.0281219482421875, -0.00403594970703125, -0.01293182373046875, 0.035003662109375, -0.03973388671875, -0.0584716796875, 0.01421356201171875, 0.0556640625, -0.0212860107421875, -0.0070648193359375, -0.01047515869140625, -0.02947998046875, -0.00034499168395996094, 0.034149169921875, -0.0242919921875, 0.00336456298828125, 0.029693603515625, 0.0098419189453125, -0.0002567768096923828, 0.04266357421875, 0.0029144287109375, -0.021392822265625, 0.024658203125, -0.017425537109375, -0.0277099609375, 0.0104827880859375, -0.03179931640625, 0.040679931640625, -0.053863525390625, 0.0218048095703125, 0.04632568359375, -0.01251983642578125, 0.0155487060546875, -0.006008148193359375, -0.02484130859375, -0.053314208984375, 0.04132080078125, 0.0145416259765625, -0.049530029296875, 0.0091094970703125, 0.058807373046875, 0.0264892578125, 0.10150146484375, -0.019622802734375, -0.053924560546875, -0.007129669189453125, 0.044891357421875, -0.036834716796875, -0.0543212890625, -0.04852294921875, -0.1070556640625, 0.041168212890625, -0.03656005859375, -0.036407470703125, 0.01317596435546875, -0.01416015625, 0.0269622802734375, 0.014190673828125, -0.0243377685546875, -0.029754638671875, -0.033355712890625, -0.048614501953125, 0.00008356571197509766, -0.0029277801513671875, -0.005611419677734375, -0.0004444122314453125, 0.01384735107421875, -0.0103759765625, -0.0229339599609375, -0.021240234375, 0.050323486328125, 0.00971221923828125, -0.033599853515625, -0.033447265625, 0.010955810546875, 0.05474853515625, -0.017852783203125, -0.00832366943359375, 0.0162506103515625, 0.005970001220703125, -0.0129852294921875, -0.021148681640625, -0.051177978515625, 0.01152801513671875, -0.0218658447265625, 0.00881195068359375, -0.004093170166015625, 0.0310211181640625, -0.032440185546875, 0.0157928466796875, 0.0124664306640625, -0.0287933349609375, 0.0126190185546875, 0.004962921142578125, -0.0225982666015625, 0.03326416015625, -0.0457763671875, -0.006320953369140625, 0.011566162109375, -0.0050201416015625, 0.001880645751953125, -0.007427215576171875, -0.00843048095703125, -0.004741668701171875, 0.0151214599609375, 0.0301971435546875, -0.01392364501953125, -0.0138702392578125, 0.00026416778564453125, 0.01453399658203125, -0.0128936767578125, -0.0236358642578125, -0.07012939453125, -0.045013427734375, 0.060333251953125, -0.036712646484375, 0.00003337860107421875, -0.050384521484375, -0.0261993408203125, -0.0094757080078125, 0.087646484375, 0.000774383544921875, 0.00254058837890625, 0.0052032470703125, -0.0059051513671875, -0.07904052734375, -0.0015668869018554688, -0.09820556640625, 0.043304443359375, -0.059722900390625, -0.01873779296875, -0.0167694091796875, -0.0195770263671875, -0.0109710693359375, -0.0017099380493164062, -0.036712646484375, -0.046661376953125, 0.0172119140625, 0.0303955078125, 0.041015625, -0.039642333984375, 0.02410888671875, -0.038238525390625, 0.033294677734375, -0.015655517578125, -0.09033203125, -0.0015611648559570312, -0.0533447265625, 0.0660400390625, 0.042694091796875, -0.033355712890625, -0.030517578125, 0.03582763671875, -0.0016050338745117188, 0.01129913330078125, 0.0284271240234375, 0.01091766357421875, 0.0308380126953125, 0.004375457763671875, 0.01459503173828125, -0.0144805908203125, -0.0039825439453125, 0.00116729736328125, -0.01525115966796875, 0.01396942138671875, -0.0377197265625, -0.023223876953125, 0.01419830322265625, -0.02972412109375, -0.0169830322265625, -0.032135009765625, 0.0031833648681640625, 0.00860595703125, -0.005840301513671875, 0.0010290145874023438, -0.0406494140625, -0.00026607513427734375, 0.03802490234375, 0.002643585205078125, -0.0177764892578125, -0.01541900634765625, 0.072021484375, 0.0231781005859375, -0.02752685546875, 0.0175323486328125, 0.04925537109375, 0.042236328125, -0.039581298828125, 0.0261383056640625, 0.004604339599609375, -0.037628173828125, 0.091064453125, -0.01435089111328125, 0.008697509765625, -0.0017747879028320312, 0.021820068359375, -0.0192718505859375, -0.037139892578125, 0.02020263671875, -0.022918701171875, -0.01715087890625, -0.02874755859375, -0.00041103363037109375, 0.0143585205078125, 0.0389404296875, -0.00893402099609375, 0.0017032623291015625, 0.0027637481689453125, 0.0126190185546875, -0.0521240234375, 0.0196533203125, -0.034210205078125, -0.0183563232421875, -0.0207061767578125, 0.007671356201171875, -0.0031070709228515625, -0.0111846923828125, -0.0181427001953125, 0.0007753372192382812, -0.0279541015625, 0.045440673828125, 0.02362060546875, -0.007434844970703125, 0.01611328125, -0.0276947021484375, -0.026397705078125, 0.07757568359375, 0.013336181640625, -0.053192138671875, 0.0116119384765625, -0.0350341796875, 0.077880859375, 0.020050048828125, -0.01406097412109375, 0.0645751953125, 0.01377105712890625, -0.02398681640625, -0.00074005126953125, -0.060455322265625, -0.001102447509765625, -0.0621337890625, 0.0004887580871582031, -0.018951416015625, 0.005153656005859375, -0.00009864568710327148, 0.0533447265625, 0.00783538818359375, 0.0291748046875, -0.01129150390625, 0.0233154296875, 0.035736083984375, 0.04052734375, 0.021209716796875, 0.0005145072937011719, -0.0168304443359375, 0.018310546875, 0.0124969482421875, -0.01678466796875, -0.0399169921875, 0.01424407958984375, 0.053466796875, -0.00783538818359375, 0.01503753662109375, -0.004489898681640625, -0.0208282470703125, -0.00827789306640625, 0.0297393798828125, -0.019195556640625, -0.051605224609375, -0.01983642578125, 0.0211944580078125, 0.038543701171875, -0.038330078125, 0.0111846923828125, -0.01253509521484375, -0.02886962890625, -0.0014286041259765625, 0.0419921875, 0.00875091552734375, -0.03338623046875, -0.049957275390625, -0.05511474609375, -0.0129852294921875, 0.0218048095703125, -0.011016845703125, -0.0007910728454589844, -0.0225372314453125, -0.058624267578125, 0.0232696533203125, -0.036468505859375, 0.0301361083984375, -0.0263671875, 0.004421234130859375, -0.01457977294921875, 0.004802703857421875, 0.052490234375, 0.044830322265625, -0.0391845703125, 0.01465606689453125, -0.0285186767578125, 0.003589630126953125, 0.013671875, -0.036163330078125, -0.0296783447265625, -0.032470703125, 0.01361846923828125, 0.0234832763671875, -0.006870269775390625, -0.007114410400390625, 0.0012798309326171875, 0.01110076904296875, -0.006702423095703125, 0.032867431640625, -0.00923919677734375, 0.04742431640625, -0.0036487579345703125, 0.017608642578125, 0.01078033447265625, 0.04766845703125, 0.0278167724609375, -0.03265380859375, -0.0012979507446289062, 0.01067352294921875, -0.0119781494140625, -0.0305938720703125, -0.0001634359359741211, 0.009521484375, 0.09912109375, -0.0163726806640625, -0.0170440673828125, 0.00991058349609375, 0.0029888153076171875, -0.023590087890625, 0.0003955364227294922, 0.04217529296875, -0.01238250732421875, 0.005794525146484375, 0.00970458984375, 0.0174102783203125, 0.00342559814453125, 0.01348876953125, -0.013458251953125, 0.00461578369140625, -0.0056915283203125, -0.021392822265625, -0.0579833984375, 0.05596923828125, 0.0714111328125, -0.006076812744140625, 0.03680419921875, 0.005832672119140625, 0.005950927734375, 0.0452880859375, -0.0200958251953125, 0.0158538818359375, -0.0216217041015625, 0.03155517578125, -0.00980377197265625, -0.023406982421875, 0.035125732421875, -0.035003662109375, 0.0135955810546875, 0.09124755859375, 0.0802001953125, -0.110595703125, -0.0133514404296875, 0.01715087890625, -0.001735687255859375, 0.031585693359375, -0.01248931884765625, -0.01103973388671875, -0.003719329833984375, 0.0594482421875, -0.013092041015625, -0.00968170166015625, 0.021026611328125, 0.0035037994384765625, 0.0128326416015625, 0.034820556640625, 0.01312255859375, 0.004642486572265625, -0.022674560546875, -0.0010814666748046875, 0.006366729736328125, 0.0531005859375, -0.009735107421875, -0.006023406982421875, 0.01544952392578125, -0.02203369140625, -0.07470703125, 0.001544952392578125, -0.052032470703125, -0.0293121337890625, 0.029510498046875, -0.00988006591796875, 0.06866455078125, 0.03759765625, 0.005306243896484375, 0.0091705322265625, -0.00022971630096435547, 0.01049041748046875, 0.0321044921875, -0.034027099609375, -0.0017347335815429688, 0.02069091796875, -0.062744140625, 0.006893157958984375, -0.0157012939453125, 0.004436492919921875, -0.00464630126953125, -0.040924072265625, 0.05218505859375, -0.0216827392578125, -0.01267242431640625, 0.0243377685546875, -0.001049041748046875, -0.0128936767578125, -0.03338623046875, 0.06396484375, -0.0828857421875, -0.047821044921875, 0.0012722015380859375, -0.0535888671875, -0.026214599609375, -0.050537109375, -0.037628173828125, 0.0682373046875, -0.0012912750244140625, 0.004650115966796875, -0.01387786865234375, 0.022125244140625, 0.00954437255859375, 0.03204345703125, -0.0369873046875, 0.065185546875, 0.0309295654296875, 0.06024169921875, -0.0294647216796875, -0.00606536865234375, 0.040283203125, 0.0249176025390625, 0.064453125, 0.023468017578125, -0.062225341796875, -0.0662841796875, -0.04534912109375, 0.03106689453125, -0.0085296630859375, 0.042572021484375, -0.0009222030639648438, 0.04022216796875, 0.0174560546875, -0.057647705078125, 0.02862548828125, -0.040496826171875, -0.025146484375, 0.003448486328125, -0.0036067962646484375, -0.0364990234375, -0.017578125, 0.03717041015625, -0.0848388671875, 0.006343841552734375, 0.034515380859375, 0.040802001953125, -0.005451202392578125, 0.031158447265625, 0.0179443359375, 0.01114654541015625, -0.0023784637451171875, -0.0279693603515625, 0.029754638671875, 0.0022945404052734375, 0.01259613037109375, 0.0296478271484375, 0.0220947265625, -0.00841522216796875, 0.00800323486328125, 0.0009608268737792969, 0.0299835205078125, -0.00991058349609375, 0.0643310546875, 0.015960693359375, 0.02691650390625, -0.0195159912109375, 0.0101776123046875, 0.007183074951171875, 0.051971435546875, -0.037811279296875, 0.0006642341613769531, 0.0014801025390625, 0.01309967041015625, 0.0404052734375, -0.00020694732666015625, 0.0836181640625, 0.007801055908203125, -0.01204681396484375, -0.0279388427734375, 0.0251312255859375, 0.0091094970703125, -0.010162353515625, 0.0016422271728515625, 0.018035888671875, -0.0199737548828125, 0.038177490234375, -0.003368377685546875, -0.00580596923828125, -0.00815582275390625, -0.003437042236328125, 0.0014476776123046875, 0.01245880126953125, 0.02508544921875, 0.004947662353515625, -0.006988525390625, 0.0067291259765625, 0.0286102294921875, -0.0008826255798339844, -0.00862884521484375, 0.0049896240234375, -0.0064544677734375, 0.0274658203125, 0.0029582977294921875, -0.058319091796875, 0.01049041748046875, 0.01403045654296875, -0.033721923828125, -0.04071044921875, -0.01413726806640625, -0.0168609619140625, -0.00946044921875, 0.0093841552734375, -0.01149749755859375, 0.0241851806640625, -0.0082550048828125, -0.0168914794921875, 0.0469970703125, 0.01666259765625, -0.0118408203125, 0.059967041015625, -0.00287628173828125, -0.003078460693359375, 0.01419830322265625, -0.030059814453125, 0.06927490234375, 0.00304412841796875, -0.0380859375, 0.0150299072265625, -0.02410888671875, -0.05792236328125, 0.0024509429931640625, 0.0220947265625, -0.02093505859375, 0.0213470458984375, 0.019744873046875, -0.0019817352294921875, 0.0177154541015625, 0.00606536865234375, -0.0073394775390625, -0.047027587890625, 0.03955078125, -0.0284423828125, -0.05712890625, -0.01251983642578125, -0.036895751953125, 0.0115203857421875, 0.03369140625, 0.042572021484375, 0.01248931884765625, 0.0310516357421875, -0.032318115234375, 0.01215362548828125, -0.048736572265625, -0.0302581787109375, 0.0204010009765625, -0.028106689453125, -0.0281524658203125, 0.01690673828125, -0.037445068359375, 0.0712890625, -0.01212310791015625, 0.04962158203125, 0.06024169921875, -0.0491943359375, 0.009674072265625, 0.0152587890625, -0.00015628337860107422, -0.03375244140625, -0.053802490234375, -0.04974365234375, 0.00972747802734375, 0.01248931884765625, 0.0198822021484375, -0.02008056640625, 0.06170654296875, -0.030609130859375, -0.00852203369140625, 0.001007080078125, -0.020904541015625, -0.0292510986328125, 0.01558685302734375, -0.00038313865661621094, 0.0294647216796875, -0.03631591796875, -0.0263824462890625, 0.001102447509765625, 0.007366180419921875, -0.036529541015625, -0.0247802734375, 0.0101165771484375, 0.0311279296875, 0.062042236328125, 0.06451416015625, -0.0159149169921875, 0.0220184326171875, 0.045806884765625, -0.022613525390625, 0.02349853515625, -0.072265625, -0.04156494140625, -0.0211029052734375, -0.0093536376953125, 0.0190887451171875, -0.001209259033203125, -0.05511474609375, -0.033111572265625, -0.01100921630859375, -0.0012121200561523438, -0.01470184326171875, -0.0289764404296875, -0.004505157470703125, 0.0029125213623046875, 0.0382080078125, -0.045440673828125, -0.035400390625, 0.0124969482421875, -0.000053048133850097656, -0.017913818359375, 0.00518798828125, -0.034698486328125, -0.01551055908203125, 0.002017974853515625, -0.024932861328125, 0.0185699462890625, 0.0179443359375, -0.052215576171875, -0.021759033203125, -0.04620361328125, 0.01433563232421875, -0.048919677734375, -0.016204833984375, 0.0229034423828125, -0.0182037353515625, 0.0220489501953125, -0.044891357421875, -0.020751953125, -0.038818359375, 0.00435638427734375, 0.0290679931640625, -0.0048828125, 0.030731201171875, -0.0201873779296875, -0.054443359375, 0.0186309814453125, 0.007717132568359375, -0.04241943359375, -0.053924560546875, 0.041015625, -0.00579833984375, -0.0159149169921875, -0.0162811279296875, -0.0210113525390625, 0.0084381103515625, 0.033233642578125, -0.0018262863159179688, -0.034881591796875, 0.0350341796875, 0.041748046875, -0.07061767578125, 0.008087158203125, -0.005767822265625, -0.042236328125, 0.033050537109375, -0.0136871337890625, 0.043304443359375, 0.039276123046875, -0.0159454345703125, 0.0576171875, -0.0176849365234375, -0.036468505859375, -0.011260986328125, -0.0169219970703125, 0.0083465576171875, -0.01293182373046875, 0.042877197265625, -0.004352569580078125, 0.0009427070617675781, -0.004596710205078125, -0.06756591796875, -0.0126800537109375, -0.009429931640625, -0.006229400634765625, 0.018524169921875, -0.07000732421875, 0.0078277587890625, -0.020050048828125, -0.00989532470703125, -0.01268768310546875, 0.0030193328857421875, -0.0228424072265625, -0.007396697998046875, 0.01235198974609375, -0.0096588134765625, 0.005916595458984375, 0.0010595321655273438, 0.08746337890625, -0.05767822265625, -0.030364990234375, 0.0267181396484375, -0.001922607421875, 0.0255126953125, 0.01165771484375, 0.057220458984375, 0.0285797119140625, -0.048858642578125, 0.0014562606811523438, 0.0184478759765625, 0.03155517578125, -0.024993896484375, -0.052886962890625, -0.0178070068359375, 0.012451171875, -0.01593017578125, 0.018035888671875, 0.03704833984375, 0.0025959014892578125, 0.0157470703125, 0.0438232421875, -0.017181396484375, -0.0184783935546875, -0.0214385986328125, 0.0230712890625, -0.0018310546875, -0.01459503173828125, 0.0190582275390625, -0.02978515625, -0.0012197494506835938, -0.01495361328125, 0.0242462158203125, -0.04437255859375, 0.0200042724609375, 0.005741119384765625, 0.0043792724609375, 0.0265350341796875 ]
27508de7b8080835cabef7f3db7ad91a7141c262
Wordpress Stackexchange Q: Is it alright for two people to simultaneously be logged into a WP site as administrator? I have given the admin log-in details of my site to a friend who is helping me sort out a problem. If I log in at the same time she is logged in, will it cause a problem? Or can we both be logged in at the same time? A: If you are using a newer version of WordPress, you'll see that you can't both edit the same page/post because it will show that as locked (you can take over though). I agree that a separate admin account would be good. WordPress is designed to support many users logged in and active. The only issue becomes if you are doing administration such as settings/tools/widget/theme modifications where actions can be overridden by the other person. I would suggest an open line of communication as you work. In a development environment, the same applies if you have multiple hands on the same project and can't resolve in a local environment with SVN/Git control.
Q: Is it alright for two people to simultaneously be logged into a WP site as administrator? I have given the admin log-in details of my site to a friend who is helping me sort out a problem. If I log in at the same time she is logged in, will it cause a problem? Or can we both be logged in at the same time? A: If you are using a newer version of WordPress, you'll see that you can't both edit the same page/post because it will show that as locked (you can take over though). I agree that a separate admin account would be good. WordPress is designed to support many users logged in and active. The only issue becomes if you are doing administration such as settings/tools/widget/theme modifications where actions can be overridden by the other person. I would suggest an open line of communication as you work. In a development environment, the same applies if you have multiple hands on the same project and can't resolve in a local environment with SVN/Git control. A: It will be fine - just the same as if you log in using two tabs. Be aware that if the other user does something, you will need to refresh to see it, but that's no different from if they have their own login. A: My two admins, we save the new edits as page Drafts while every admin is working. After every admin is complete, either one admin publishes all the draft pages or ends their posting session and allows the other admins to publish their work one at a time. That way we don't override one another.
wordpress
{ "language": "en", "length": 278, "provenance": "stackexchange_00019.jsonl.gz:447101", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155034" }
[ 0.040191650390625, -0.0184783935546875, -0.001190185546875, -0.0092620849609375, 0.004970550537109375, -0.04217529296875, 0.03460693359375, -0.02630615234375, -0.03564453125, 0.015899658203125, 0.0029659271240234375, -0.025604248046875, -0.0399169921875, -0.032684326171875, -0.01177978515625, -0.0631103515625, -0.000568389892578125, 0.04595947265625, 0.0225982666015625, -0.005950927734375, -0.01174163818359375, 0.01041412353515625, -0.02703857421875, -0.01291656494140625, 0.041900634765625, -0.0131378173828125, 0.007472991943359375, -0.02130126953125, 0.0411376953125, 0.00617218017578125, 0.03070068359375, -0.048736572265625, -0.006023406982421875, 0.032470703125, -0.00010156631469726562, -0.051849365234375, -0.0196380615234375, 0.0266571044921875, 0.01983642578125, -0.005802154541015625, 0.01390838623046875, 0.00733184814453125, 0.0219879150390625, 0.05010986328125, -0.0185089111328125, -0.051666259765625, 0.0216522216796875, -0.039459228515625, 0.0212249755859375, -0.0146026611328125, 0.0181884765625, 0.0159912109375, 0.0202484130859375, -0.0018167495727539062, -0.0148468017578125, 0.0021953582763671875, 0.0361328125, -0.0083465576171875, 0.045074462890625, -0.05963134765625, -0.07708740234375, -0.035797119140625, 0.052978515625, -0.023834228515625, 0.0019626617431640625, -0.0125274658203125, -0.004444122314453125, 0.01837158203125, -0.040374755859375, -0.0131072998046875, 0.0272216796875, -0.03369140625, 0.006153106689453125, 0.0061798095703125, 0.002300262451171875, -0.0147552490234375, -0.022857666015625, -0.017486572265625, 0.03607177734375, 0.0217742919921875, -0.0243682861328125, 0.0146942138671875, -0.043365478515625, -0.0267791748046875, 0.0105133056640625, 0.006984710693359375, -0.0237884521484375, -0.01715087890625, -0.005107879638671875, 0.00115966796875, -0.018707275390625, -0.04071044921875, 0.00513458251953125, 0.039031982421875, -0.01263427734375, -0.0261993408203125, 0.0345458984375, 0.06646728515625, -0.02386474609375, -0.00879669189453125, -0.034820556640625, -0.01270294189453125, -0.0302276611328125, -0.0190887451171875, -0.0001550912857055664, -0.007419586181640625, 0.003643035888671875, 0.0307769775390625, 0.0257415771484375, 0.01983642578125, -0.024169921875, 0.006595611572265625, 0.0207672119140625, -0.08251953125, 0.040283203125, 0.036041259765625, 0.0206146240234375, 0.04339599609375, 0.0361328125, -0.0158538818359375, -0.0219879150390625, 0.004180908203125, -0.0266876220703125, 0.0263671875, -0.022369384765625, -0.02008056640625, 0.006465911865234375, 0.00855255126953125, 0.00402069091796875, -0.01297760009765625, -0.0291748046875, 0.00901031494140625, 0.053314208984375, 0.031890869140625, 0.006137847900390625, -0.007572174072265625, 0.00771331787109375, 0.0255584716796875, 0.01148223876953125, -0.00800323486328125, 0.006618499755859375, -0.0278778076171875, -0.005352020263671875, 0.0006966590881347656, -0.01995849609375, 0.037139892578125, 0.0212860107421875, 0.002262115478515625, -0.019317626953125, -0.0550537109375, 0.006809234619140625, -0.03900146484375, -0.0301361083984375, 0.015228271484375, 0.074951171875, -0.00606536865234375, 0.0135955810546875, -0.0061492919921875, 0.058746337890625, 0.04583740234375, 0.00670623779296875, -0.006740570068359375, 0.03167724609375, -0.00576019287109375, -0.00946807861328125, 0.004192352294921875, -0.051422119140625, -0.0024700164794921875, 0.012786865234375, -0.07147216796875, 0.00814056396484375, -0.0157623291015625, 0.056915283203125, -0.01477813720703125, 0.0038127899169921875, 0.030914306640625, -0.008941650390625, 0.0106048583984375, 0.0167236328125, 0.0196685791015625, -0.0010700225830078125, -0.029144287109375, 0.039581298828125, -0.0221405029296875, -0.0125274658203125, 0.0102386474609375, -0.0283660888671875, -0.008941650390625, 0.020263671875, 0.0057220458984375, -0.016998291015625, 0.023681640625, -0.029510498046875, 0.034271240234375, -0.0146484375, -0.0230865478515625, -0.01091766357421875, 0.012420654296875, -0.019439697265625, -0.0033206939697265625, 0.037994384765625, 0.0005674362182617188, -0.0391845703125, -0.01119232177734375, -0.0721435546875, -0.0196075439453125, -0.00962066650390625, 0.0023345947265625, -0.0028324127197265625, 0.0025234222412109375, 0.0021877288818359375, -0.025726318359375, 0.0255279541015625, -0.050048828125, -0.04150390625, -0.017181396484375, -0.03399658203125, 0.054962158203125, 0.0050048828125, 0.03387451171875, 0.01204681396484375, -0.038726806640625, 0.017181396484375, -0.0192413330078125, 0.0235595703125, -0.00244140625, -0.01548004150390625, -0.0095062255859375, -0.0034313201904296875, 0.00850677490234375, -0.028472900390625, 0.03253173828125, 0.016998291015625, 0.0491943359375, -0.0063934326171875, -0.01439666748046875, -0.0145263671875, -0.07611083984375, 0.01218414306640625, 0.04864501953125, 0.01284027099609375, -0.004116058349609375, -0.023956298828125, 0.028900146484375, -0.022674560546875, -0.0848388671875, -0.0232696533203125, 0.026458740234375, 0.0117340087890625, 0.051055908203125, -0.0074310302734375, -0.007568359375, 0.0145111083984375, -0.03411865234375, -0.0198974609375, 0.038787841796875, -0.0384521484375, -0.04638671875, 0.0439453125, -0.0137481689453125, 0.006134033203125, -0.0889892578125, -0.0148162841796875, -0.036956787109375, -0.0189208984375, -0.03289794921875, -0.007785797119140625, -0.02850341796875, -0.0012731552124023438, -0.0194091796875, 0.029083251953125, -0.020050048828125, -0.004665374755859375, 0.019256591796875, 0.02496337890625, -0.0294036865234375, -0.0193023681640625, 0.0118408203125, 0.00965118408203125, -0.0021266937255859375, -0.0198516845703125, -0.016632080078125, -0.048980712890625, -0.01360321044921875, 0.010833740234375, -0.00966644287109375, 0.0018529891967773438, 0.00028634071350097656, 0.01548004150390625, -0.0224761962890625, 0.0018186569213867188, -0.0237884521484375, -0.059478759765625, 0.058837890625, 0.00431060791015625, -0.058990478515625, 0.003978729248046875, -0.03387451171875, 0.035858154296875, -0.035675048828125, 0.01544952392578125, 0.06378173828125, 0.0057373046875, 0.015899658203125, -0.0116729736328125, 0.0022220611572265625, -0.0006246566772460938, 0.0007748603820800781, 0.0035247802734375, -0.0141143798828125, 0.00003838539123535156, 0.0753173828125, 0.026031494140625, 0.0662841796875, -0.013427734375, -0.02508544921875, -0.004650115966796875, 0.047821044921875, -0.00888824462890625, -0.0175018310546875, -0.09112548828125, -0.06793212890625, 0.01270294189453125, 0.01122283935546875, -0.018524169921875, 0.0278778076171875, 0.0328369140625, 0.0242156982421875, 0.00899505615234375, -0.029754638671875, -0.033447265625, -0.049102783203125, -0.059051513671875, -0.01092529296875, 0.0006947517395019531, 0.00725555419921875, 0.003673553466796875, 0.03704833984375, -0.007965087890625, -0.06292724609375, -0.020416259765625, 0.00251007080078125, -0.003604888916015625, -0.0036067962646484375, -0.04736328125, 0.0009441375732421875, 0.0002980232238769531, -0.0092010498046875, 0.0131683349609375, -0.03009033203125, 0.0280609130859375, -0.0083465576171875, 0.02899169921875, 0.019256591796875, 0.05670166015625, -0.0364990234375, -0.057525634765625, 0.035491943359375, 0.01137542724609375, -0.03143310546875, 0.0269012451171875, -0.029754638671875, -0.03472900390625, -0.04376220703125, 0.044708251953125, -0.0173492431640625, -0.01611328125, -0.056121826171875, -0.004833221435546875, -0.014251708984375, 0.0040130615234375, -0.022613525390625, 0.027801513671875, -0.005519866943359375, 0.0027179718017578125, 0.0022716522216796875, -0.03204345703125, -0.053070068359375, 0.006885528564453125, -0.050262451171875, -0.01800537109375, -0.027923583984375, 0.040771484375, 0.0035800933837890625, -0.056182861328125, 0.05718994140625, 0.0080108642578125, 0.021240234375, -0.045013427734375, -0.034332275390625, -0.0215606689453125, 0.10333251953125, -0.0838623046875, 0.01605224609375, 0.032440185546875, 0.032989501953125, -0.041290283203125, -0.09344482421875, -0.08892822265625, -0.0250396728515625, 0.00759124755859375, 0.025787353515625, 0.0039520263671875, 0.0150146484375, -0.041046142578125, 0.032196044921875, -0.0090179443359375, -0.00443267822265625, 0.01280975341796875, -0.006427764892578125, 0.007648468017578125, -0.006923675537109375, -0.003021240234375, -0.01221466064453125, 0.00989532470703125, -0.021575927734375, -0.0809326171875, -0.01352691650390625, -0.030181884765625, 0.08319091796875, -0.0011157989501953125, -0.00007444620132446289, -0.030242919921875, 0.032012939453125, -0.0301666259765625, 0.0286712646484375, -0.0104217529296875, 0.01519012451171875, 0.0249176025390625, 0.039337158203125, -0.000774383544921875, 0.0028171539306640625, 0.016754150390625, -0.0394287109375, -0.0299530029296875, -0.08642578125, -0.08258056640625, -0.060699462890625, -0.03802490234375, -0.0220947265625, -0.0253448486328125, -0.01824951171875, -0.030426025390625, -0.00934600830078125, -0.017333984375, 0.0013837814331054688, -0.00879669189453125, -0.017303466796875, 0.0335693359375, 0.0007181167602539062, -0.020477294921875, 0.0082855224609375, 0.0657958984375, 0.02117919921875, -0.0202789306640625, -0.03704833984375, -0.00836181640625, 0.006130218505859375, -0.00768280029296875, 0.04443359375, 0.0294952392578125, 0.0015459060668945312, 0.015289306640625, -0.0012598037719726562, -0.0140838623046875, 0.0031108856201171875, 0.027618408203125, 0.00887298583984375, -0.016815185546875, -0.006954193115234375, -0.01522064208984375, 0.01413726806640625, -0.015838623046875, 0.01085662841796875, 0.00183868408203125, -0.0003561973571777344, 0.002986907958984375, 0.0018682479858398438, -0.0012407302856445312, 0.001842498779296875, -0.04254150390625, 0.01187896728515625, -0.0697021484375, 0.03363037109375, 0.01456451416015625, -0.00569915771484375, 0.0340576171875, 0.0207061767578125, -0.0237579345703125, -0.0186614990234375, 0.0014104843139648438, -0.0296630859375, -0.0018205642700195312, 0.0019073486328125, -0.035125732421875, -0.00579071044921875, -0.0250701904296875, 0.09844970703125, 0.031402587890625, -0.052215576171875, 0.05450439453125, -0.01520538330078125, 0.0245208740234375, 0.027069091796875, -0.002197265625, 0.0248870849609375, -0.001667022705078125, -0.05322265625, -0.009002685546875, 0.023712158203125, -0.066650390625, -0.055877685546875, -0.036773681640625, -0.0303192138671875, -0.0008974075317382812, 0.018402099609375, 0.0184326171875, -0.0197906494140625, 0.0164337158203125, -0.01027679443359375, 0.061065673828125, 0.0413818359375, 0.020721435546875, 0.000965118408203125, 0.0261383056640625, -0.0267333984375, 0.0171966552734375, -0.0236663818359375, -0.03204345703125, -0.01392364501953125, 0.01983642578125, 0.048614501953125, 0.039398193359375, 0.005619049072265625, -0.01447296142578125, -0.01413726806640625, -0.0013990402221679688, 0.0180511474609375, 0.0052947998046875, -0.055206298828125, 0.0198974609375, 0.048797607421875, 0.0199737548828125, -0.0323486328125, 0.00432586669921875, 0.01494598388671875, -0.01419830322265625, 0.0173187255859375, 0.0022125244140625, 0.003631591796875, -0.0234527587890625, -0.024078369140625, 0.02508544921875, -0.035400390625, -0.01678466796875, -0.050201416015625, 0.0190887451171875, -0.03094482421875, -0.00005447864532470703, 0.06109619140625, -0.0120697021484375, -0.00962066650390625, -0.003978729248046875, -0.0017347335815429688, -0.019073486328125, -0.0099639892578125, 0.0693359375, 0.03448486328125, -0.061492919921875, 0.00652313232421875, -0.05303955078125, -0.0157318115234375, -0.032928466796875, -0.04083251953125, -0.0496826171875, -0.01195526123046875, 0.0193023681640625, 0.021453857421875, -0.0202789306640625, -0.041595458984375, -0.0027637481689453125, 0.0156402587890625, 0.01021575927734375, 0.039459228515625, -0.0282440185546875, 0.057464599609375, 0.00243377685546875, 0.0228271484375, 0.0003886222839355469, 0.0263214111328125, 0.00022649765014648438, -0.0017004013061523438, 0.038330078125, -0.0155487060546875, -0.03448486328125, -0.038482666015625, -0.014678955078125, -0.0156402587890625, 0.0307769775390625, -0.02276611328125, -0.00044226646423339844, -0.0330810546875, -0.00832366943359375, -0.01561737060546875, 0.06488037109375, -0.025634765625, -0.028564453125, 0.02239990234375, -0.0193634033203125, 0.0303955078125, 0.00041365623474121094, -0.04376220703125, 0.058380126953125, -0.00489044189453125, 0.0455322265625, 0.036834716796875, 0.003086090087890625, -0.0162506103515625, 0.03399658203125, 0.023590087890625, 0.0419921875, 0.032745361328125, 0.045928955078125, 0.022735595703125, -0.00018346309661865234, -0.0198211669921875, -0.00489044189453125, -0.034942626953125, -0.029296875, 0.0212860107421875, -0.047698974609375, -0.002719879150390625, 0.0389404296875, 0.0791015625, 0.0797119140625, -0.11529541015625, 0.007488250732421875, -0.0027103424072265625, -0.027130126953125, 0.0185699462890625, -0.01458740234375, -0.0102081298828125, -0.022979736328125, 0.040924072265625, -0.0037326812744140625, -0.0184326171875, 0.0155181884765625, -0.009063720703125, -0.026397705078125, -0.03460693359375, -0.007808685302734375, 0.00473785400390625, -0.0026531219482421875, 0.041900634765625, 0.001941680908203125, 0.040283203125, -0.0218658447265625, -0.0060272216796875, 0.020721435546875, -0.0638427734375, -0.07855224609375, -0.01335906982421875, 0.002471923828125, -0.02435302734375, -0.00922393798828125, -0.00563812255859375, 0.051116943359375, 0.0360107421875, -0.002559661865234375, -0.0076141357421875, 0.002544403076171875, 0.03900146484375, -0.0065765380859375, -0.006710052490234375, 0.00933837890625, 0.036895751953125, -0.0286865234375, 0.005764007568359375, -0.00919342041015625, 0.0079193115234375, -0.007015228271484375, -0.0223541259765625, 0.0552978515625, -0.0212554931640625, -0.01690673828125, 0.031463623046875, 0.00682830810546875, -0.01012420654296875, 0.0170440673828125, -0.0187530517578125, -0.1044921875, -0.08447265625, 0.0100555419921875, -0.086181640625, 0.048370361328125, 0.041290283203125, -0.059814453125, 0.071533203125, 0.0242919921875, 0.0452880859375, 0.005523681640625, 0.01131439208984375, -0.017364501953125, -0.0012865066528320312, -0.051116943359375, 0.05584716796875, 0.0095977783203125, 0.0252227783203125, -0.02862548828125, 0.00872039794921875, -0.0014820098876953125, -0.0177764892578125, 0.041290283203125, 0.01416778564453125, -0.04736328125, -0.010711669921875, 0.0171661376953125, -0.0227508544921875, -0.0274505615234375, 0.08343505859375, 0.01236724853515625, -0.004871368408203125, -0.0012636184692382812, 0.02862548828125, 0.039794921875, -0.041595458984375, -0.04815673828125, 0.02703857421875, -0.0140838623046875, -0.056121826171875, -0.0228271484375, 0.060516357421875, -0.06854248046875, 0.0087890625, 0.0200042724609375, 0.03485107421875, 0.0085296630859375, -0.0111083984375, -0.021881103515625, 0.01265716552734375, 0.0255889892578125, -0.0236968994140625, 0.025665283203125, -0.0104217529296875, -0.0186614990234375, 0.01502227783203125, 0.0157928466796875, -0.032745361328125, 0.01287078857421875, -0.017547607421875, 0.03399658203125, -0.01004791259765625, 0.007411956787109375, -0.0113677978515625, 0.0224151611328125, -0.052154541015625, -0.0157318115234375, 0.0307769775390625, 0.0325927734375, -0.00537109375, 0.01389312744140625, 0.01398468017578125, 0.0130462646484375, 0.0030574798583984375, -0.0159454345703125, 0.0230560302734375, 0.048553466796875, 0.048675537109375, -0.006702423095703125, 0.02532958984375, 0.0149078369140625, -0.0182647705078125, -0.004913330078125, 0.0212554931640625, -0.01290130615234375, 0.049957275390625, 0.001224517822265625, 0.0007233619689941406, 0.015228271484375, -0.004550933837890625, -0.00897216796875, 0.01045989990234375, 0.01071929931640625, 0.01229095458984375, -0.0113525390625, 0.050689697265625, 0.005245208740234375, 0.0025959014892578125, -0.05029296875, -0.08026123046875, 0.0205078125, 0.048248291015625, 0.023834228515625, 0.030792236328125, 0.039215087890625, 0.033111572265625, -0.001995086669921875, -0.0032634735107421875, -0.0064544677734375, -0.0169525146484375, 0.0137939453125, -0.0181427001953125, 0.0023288726806640625, -0.005634307861328125, -0.019775390625, -0.0264434814453125, 0.0243988037109375, 0.00711822509765625, -0.002758026123046875, -0.032501220703125, 0.0107879638671875, -0.059539794921875, -0.005474090576171875, -0.0017251968383789062, 0.007289886474609375, 0.0115509033203125, -0.08056640625, -0.021270751953125, -0.01959228515625, -0.029876708984375, 0.0185699462890625, 0.039031982421875, 0.006343841552734375, 0.0022830963134765625, 0.06402587890625, -0.01043701171875, -0.01145172119140625, 0.0227813720703125, 0.0232696533203125, -0.0165252685546875, 0.0279083251953125, 0.017364501953125, -0.04644775390625, -0.0185699462890625, -0.033447265625, 0.031341552734375, 0.034515380859375, 0.056976318359375, 0.0028362274169921875, 0.04095458984375, 0.00913238525390625, 0.01436614990234375, -0.034820556640625, -0.01165008544921875, 0.048309326171875, -0.0443115234375, -0.025238037109375, 0.0193023681640625, -0.0299224853515625, 0.08056640625, -0.0164642333984375, 0.0252532958984375, 0.07440185546875, -0.0256195068359375, -0.007328033447265625, 0.01099395751953125, -0.005649566650390625, -0.037109375, -0.0465087890625, -0.039031982421875, 0.0238494873046875, -0.00899505615234375, -0.0120086669921875, -0.04095458984375, 0.01419830322265625, -0.0655517578125, -0.0034961700439453125, -0.0201568603515625, 0.01250457763671875, -0.0693359375, 0.01739501953125, -0.038421630859375, -0.0322265625, 0.00640869140625, -0.0137939453125, -0.022552490234375, 0.02294921875, 0.0220184326171875, -0.00591278076171875, -0.0269317626953125, 0.010009765625, 0.045806884765625, 0.05462646484375, 0.005359649658203125, 0.017364501953125, 0.00499725341796875, -0.00899505615234375, 0.0018587112426757812, -0.00930023193359375, -0.0340576171875, -0.036956787109375, -0.00495147705078125, 0.01702880859375, -0.0291595458984375, -0.045379638671875, -0.07269287109375, 0.0118408203125, 0.032135009765625, -0.0072784423828125, -0.0056304931640625, 0.01508331298828125, -0.03887939453125, 0.01076507568359375, -0.003963470458984375, -0.047576904296875, 0.0214996337890625, 0.0176544189453125, -0.009490966796875, -0.0197296142578125, -0.033294677734375, 0.007167816162109375, -0.018341064453125, 0.004032135009765625, 0.007511138916015625, 0.00823211669921875, 0.02313232421875, 0.005161285400390625, -0.01415252685546875, 0.041778564453125, -0.051055908203125, -0.01055145263671875, -0.0012874603271484375, 0.00875091552734375, -0.0014696121215820312, -0.0200958251953125, -0.00811004638671875, 0.0236053466796875, -0.0246124267578125, -0.018218994140625, 0.039642333984375, 0.052215576171875, -0.0258026123046875, -0.077880859375, 0.06243896484375, -0.0169677734375, -0.031494140625, -0.060302734375, -0.00147247314453125, -0.00811767578125, -0.011505126953125, -0.0298309326171875, -0.0024967193603515625, -0.0142364501953125, 0.0517578125, 0.00664520263671875, -0.040374755859375, 0.0175933837890625, 0.0233306884765625, -0.05047607421875, 0.03131103515625, 0.0201568603515625, -0.0377197265625, 0.0142974853515625, 0.020233154296875, 0.038818359375, 0.05999755859375, -0.01523590087890625, 0.07275390625, -0.0104217529296875, -0.01125335693359375, -0.00007933378219604492, -0.00038933753967285156, -0.0071868896484375, -0.00519561767578125, 0.0236053466796875, 0.04656982421875, -0.005550384521484375, -0.017181396484375, -0.037139892578125, -0.0653076171875, -0.00647735595703125, 0.003368377685546875, 0.019683837890625, -0.0811767578125, 0.0281219482421875, 0.039093017578125, 0.0002142190933227539, -0.00798797607421875, 0.044921875, -0.00872039794921875, -0.0127105712890625, 0.058135986328125, -0.00962066650390625, -0.0604248046875, 0.0260772705078125, 0.035919189453125, -0.036376953125, -0.042877197265625, 0.005504608154296875, -0.00875091552734375, -0.00738525390625, 0.00299835205078125, 0.008209228515625, 0.031158447265625, -0.056060791015625, 0.005077362060546875, 0.003185272216796875, 0.0416259765625, -0.056854248046875, -0.01439666748046875, 0.006267547607421875, 0.025604248046875, -0.02496337890625, 0.0418701171875, 0.037628173828125, 0.00457000732421875, -0.0028553009033203125, 0.0026569366455078125, -0.0059051513671875, -0.01296234130859375, -0.036285400390625, 0.050445556640625, -0.00017464160919189453, -0.0284423828125, 0.018280029296875, -0.0221099853515625, -0.00525665283203125, 0.007495880126953125, 0.0384521484375, -0.059600830078125, 0.048553466796875, -0.0015697479248046875, 0.04473876953125, 0.0223388671875 ]
48cf4f19e692c9b1719c957882bdf5760d628537
Wordpress Stackexchange Q: Remove nav menu or menu item I try to remove a nav menu programmatically but I didn't find the way to do it. I knwo how to create it but I don't know how to delete it... I've got the menu name and I wan't to delete it like in wp admin panel but programmatically. Or I want to delete all the menu item inside it. A: Finally the answer is simple: $menu_name = 'your menu';//name,id,slug wp_delete_nav_menu($menu_name);
Q: Remove nav menu or menu item I try to remove a nav menu programmatically but I didn't find the way to do it. I knwo how to create it but I don't know how to delete it... I've got the menu name and I wan't to delete it like in wp admin panel but programmatically. Or I want to delete all the menu item inside it. A: Finally the answer is simple: $menu_name = 'your menu';//name,id,slug wp_delete_nav_menu($menu_name); A: As the question was "Remove nav menu or menu item -programmatically-?" Since WordPress 3.0, there is native dedicated function to do so: wp_delete_nav_menu(). It deletes the menu nav and all related menu items, no need to use wp_delete_post anymore. So, depending on the context: * *A. in pure code in php, use wp_delete_nav_menu(); *B. in WP Cli, there is the wp menu delete command, which call wp_delete_nav_menu; So to conclude, in both cases, all menu items and the menu will be deleted. A: This is an old question but I just found the solution for myself. In order to delete all (or some) menu items from a menu you could first get the menu items and then use wp_delete_post(). From: https://developer.wordpress.org/reference/functions/wp_delete_nav_menu/ (line 271) $menu_objects = get_objects_in_term( $menu->term_id, 'nav_menu' ); if ( ! empty( $menu_objects ) ) { foreach ( $menu_objects as $item ) { wp_delete_post( $item ); } }
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:447146", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155205" }
[ 0.0242919921875, 0.016632080078125, 0.01175689697265625, 0.060455322265625, 0.016082763671875, -0.037933349609375, 0.08367919921875, -0.0699462890625, 0.017974853515625, 0.0076904296875, -0.02679443359375, -0.01364898681640625, -0.0249176025390625, -0.0169677734375, -0.0181121826171875, -0.04962158203125, 0.033721923828125, -0.004749298095703125, 0.0147857666015625, -0.017303466796875, -0.01390838623046875, 0.00882720947265625, 0.043304443359375, 0.05523681640625, 0.020751953125, -0.024017333984375, -0.02496337890625, -0.01306915283203125, -0.01428985595703125, -0.027191162109375, 0.00732421875, 0.047698974609375, -0.0419921875, 0.039764404296875, 0.051300048828125, -0.00724029541015625, -0.0362548828125, 0.04791259765625, 0.0657958984375, -0.04315185546875, 0.024627685546875, -0.0089569091796875, -0.0115814208984375, 0.0188751220703125, -0.01421356201171875, -0.042327880859375, -0.0006403923034667969, -0.05224609375, 0.01153564453125, -0.023529052734375, 0.041839599609375, 0.01271820068359375, 0.047821044921875, -0.02154541015625, -0.0291290283203125, -0.01331329345703125, 0.017547607421875, -0.032958984375, 0.035888671875, 0.01560211181640625, -0.027130126953125, -0.00817108154296875, 0.026702880859375, -0.044830322265625, 0.008514404296875, 0.0079345703125, 0.02197265625, 0.0123443603515625, -0.054046630859375, 0.021484375, 0.035980224609375, -0.037628173828125, -0.024749755859375, 0.01366424560546875, -0.0233001708984375, -0.039886474609375, 0.0252227783203125, -0.04461669921875, 0.01502227783203125, 0.0265655517578125, 0.050567626953125, 0.0166473388671875, -0.048980712890625, 0.02496337890625, 0.01016998291015625, 0.036590576171875, 0.0034160614013671875, -0.042755126953125, -0.01629638671875, -0.042449951171875, -0.0184478759765625, -0.00902557373046875, -0.0070648193359375, -0.0153045654296875, -0.039093017578125, -0.0204010009765625, 0.00830841064453125, 0.08416748046875, -0.01424407958984375, 0.02923583984375, -0.01451873779296875, -0.02630615234375, 0.0274810791015625, -0.060028076171875, -0.01221466064453125, 0.041015625, 0.00876617431640625, 0.0133819580078125, 0.0099334716796875, 0.0257568359375, -0.0097503662109375, -0.020263671875, -0.0261077880859375, -0.02972412109375, -0.0189971923828125, 0.041412353515625, -0.0222015380859375, -0.00232696533203125, 0.0041961669921875, 0.006439208984375, -0.0296783447265625, -0.0186309814453125, -0.040191650390625, 0.044525146484375, 0.00568389892578125, 0.01390838623046875, 0.00666046142578125, 0.0194244384765625, -0.005916595458984375, 0.013153076171875, -0.0312347412109375, -0.00405120849609375, 0.06427001953125, 0.06585693359375, 0.035980224609375, -0.019866943359375, -0.0047760009765625, -0.0149688720703125, 0.017303466796875, -0.0017766952514648438, 0.040069580078125, 0.004573822021484375, -0.0004870891571044922, 0.023193359375, 0.0103302001953125, -0.005649566650390625, 0.004669189453125, 0.01020050048828125, 0.0136566162109375, -0.0112152099609375, 0.0034160614013671875, -0.02435302734375, 0.0284271240234375, 0.018096923828125, 0.0210723876953125, -0.0011587142944335938, 0.05865478515625, -0.040069580078125, -0.0174102783203125, -0.03497314453125, -0.026763916015625, -0.02337646484375, 0.0126953125, -0.046875, -0.04620361328125, 0.029144287109375, -0.041168212890625, -0.0030727386474609375, 0.0175018310546875, -0.0090179443359375, -0.014129638671875, -0.048858642578125, -0.0041961669921875, 0.00965118408203125, 0.0019083023071289062, 0.057830810546875, 0.0055694580078125, -0.01739501953125, 0.00615692138671875, 0.052001953125, -0.0007901191711425781, -0.043060302734375, -0.02825927734375, 0.004619598388671875, -0.08056640625, -0.003326416015625, 0.018585205078125, 0.0809326171875, 0.032623291015625, 0.0272369384765625, 0.09002685546875, -0.0273284912109375, 0.0075836181640625, -0.0267181396484375, 0.03594970703125, -0.0240325927734375, -0.008514404296875, -0.017791748046875, 0.0036334991455078125, -0.0228271484375, -0.0018529891967773438, 0.0251617431640625, -0.0165557861328125, 0.0074005126953125, -0.08477783203125, 0.032745361328125, -0.044097900390625, 0.050567626953125, -0.017608642578125, 0.00568389892578125, 0.0123748779296875, -0.0148162841796875, 0.0170135498046875, -0.0701904296875, -0.027313232421875, 0.020721435546875, -0.0209503173828125, -0.00649261474609375, -0.020751953125, -0.00273895263671875, -0.0172119140625, 0.0096282958984375, -0.020263671875, 0.008209228515625, 0.039337158203125, -0.0190277099609375, -0.0302581787109375, -0.03485107421875, 0.02392578125, -0.0209503173828125, -0.020233154296875, 0.053741455078125, 0.043731689453125, 0.0262451171875, 0.010528564453125, 0.006038665771484375, 0.0159149169921875, -0.10784912109375, -0.00954437255859375, 0.048675537109375, 0.033660888671875, 0.027435302734375, -0.023773193359375, -0.015838623046875, 0.04522705078125, -0.048370361328125, -0.00020933151245117188, 0.00302886962890625, -0.029937744140625, 0.0020904541015625, 0.04962158203125, 0.022857666015625, 0.0135955810546875, 0.007785797119140625, 0.020660400390625, 0.030426025390625, 0.00033283233642578125, -0.0149688720703125, 0.007694244384765625, 0.02142333984375, 0.00469207763671875, 0.0279083251953125, -0.00711822509765625, 0.0135345458984375, 0.02349853515625, -0.0098419189453125, 0.01328277587890625, 0.0008378028869628906, -0.02630615234375, -0.0033626556396484375, 0.035675048828125, -0.0037670135498046875, -0.0006914138793945312, 0.0222930908203125, 0.018402099609375, -0.009613037109375, -0.05517578125, 0.01366424560546875, 0.0177154541015625, 0.01495361328125, -0.0228271484375, 0.029510498046875, 0.059356689453125, -0.01171875, -0.006610870361328125, -0.03265380859375, 0.034027099609375, -0.03466796875, -0.0102081298828125, 0.01125335693359375, 0.04205322265625, 0.0153350830078125, -0.024078369140625, 0.02069091796875, -0.01331329345703125, -0.003978729248046875, 0.06939697265625, 0.0382080078125, -0.0190582275390625, 0.0218353271484375, 0.01363372802734375, 0.03240966796875, 0.006824493408203125, -0.01015472412109375, 0.0201263427734375, 0.0012531280517578125, 0.020477294921875, -0.0010786056518554688, 0.005840301513671875, 0.03717041015625, -0.04736328125, 0.054473876953125, -0.005146026611328125, -0.0153045654296875, 0.006191253662109375, -0.03790283203125, -0.0188751220703125, -0.0130462646484375, -0.09228515625, -0.0751953125, 0.0322265625, -0.01373291015625, 0.045654296875, 0.029571533203125, -0.008209228515625, -0.044830322265625, 0.07257080078125, 0.00626373291015625, 0.046356201171875, -0.035186767578125, -0.0272674560546875, -0.00701141357421875, -0.040557861328125, 0.0389404296875, 0.005435943603515625, 0.0082550048828125, 0.013153076171875, 0.04852294921875, 0.0019779205322265625, -0.04949951171875, 0.0117645263671875, -0.046142578125, -0.0136871337890625, 0.034271240234375, 0.046539306640625, -0.0262603759765625, -0.00109100341796875, 0.0017719268798828125, 0.00875091552734375, 0.0347900390625, -0.0294952392578125, -0.0138092041015625, -0.008819580078125, 0.02276611328125, 0.0143280029296875, -0.0011272430419921875, 0.01708984375, 0.026397705078125, 0.0007367134094238281, -0.033294677734375, -0.026611328125, -0.02886962890625, -0.035247802734375, 0.052886962890625, 0.004055023193359375, 0.0204620361328125, -0.0020351409912109375, 0.039154052734375, 0.0122833251953125, 0.0167999267578125, -0.0027675628662109375, 0.0099334716796875, 0.019287109375, -0.0181732177734375, -0.005428314208984375, -0.01544189453125, 0.07562255859375, -0.0111541748046875, -0.0256195068359375, 0.033172607421875, 0.0134429931640625, 0.0301513671875, -0.033905029296875, -0.01824951171875, -0.01070404052734375, 0.043731689453125, 0.009490966796875, 0.033203125, -0.007568359375, -0.03485107421875, 0.002471923828125, 0.07568359375, -0.016357421875, -0.042633056640625, -0.02447509765625, -0.0123443603515625, 0.031890869140625, 0.0023593902587890625, 0.0164642333984375, -0.04193115234375, -0.11907958984375, 0.0323486328125, 0.00463104248046875, -0.030364990234375, -0.04986572265625, 0.02703857421875, -0.101806640625, -0.03753662109375, 0.04632568359375, -0.0762939453125, 0.01158905029296875, -0.0165863037109375, 0.0080413818359375, -0.082763671875, -0.032623291015625, -0.024261474609375, -0.053863525390625, 0.00974273681640625, -0.06597900390625, 0.04510498046875, 0.032958984375, 0.0305023193359375, -0.01934814453125, 0.01262664794921875, 0.0268402099609375, 0.0214080810546875, 0.0005631446838378906, -0.020660400390625, -0.00020265579223632812, 0.018463134765625, 0.0032329559326171875, -0.00392913818359375, 0.00847625732421875, -0.0189971923828125, -0.02325439453125, 0.012542724609375, -0.00634765625, 0.0257720947265625, 0.0119476318359375, -0.01702880859375, -0.050201416015625, -0.0255126953125, -0.016571044921875, 0.00742340087890625, 0.001758575439453125, 0.0053863525390625, -0.0169830322265625, -0.05560302734375, 0.0182342529296875, -0.01025390625, -0.0179443359375, 0.011322021484375, 0.04168701171875, 0.0191650390625, -0.023040771484375, -0.0302581787109375, 0.027862548828125, 0.015960693359375, 0.00342559814453125, 0.05291748046875, -0.01300048828125, -0.003223419189453125, 0.066162109375, -0.0099945068359375, 0.00756072998046875, -0.01360321044921875, 0.045318603515625, 0.0093841552734375, -0.00975799560546875, 0.0169525146484375, 0.012939453125, -0.0290069580078125, -0.013427734375, -0.01041412353515625, -0.0196075439453125, -0.008056640625, 0.04742431640625, 0.011932373046875, -0.0104827880859375, -0.059417724609375, -0.0163421630859375, 0.00437164306640625, -0.004962921142578125, 0.02008056640625, 0.038543701171875, -0.0193328857421875, -0.005374908447265625, -0.003963470458984375, -0.00010019540786743164, -0.0428466796875, -0.026611328125, -0.040374755859375, 0.0242156982421875, -0.06109619140625, -0.01403045654296875, -0.000013828277587890625, -0.006114959716796875, 0.06817626953125, 0.030609130859375, -0.006908416748046875, -0.045562744140625, 0.0121307373046875, 0.034423828125, -0.02899169921875, 0.00502777099609375, 0.0236663818359375, 0.0106048583984375, 0.0130615234375, -0.00634765625, -0.01265716552734375, -0.00795745849609375, -0.0316162109375, 0.017852783203125, 0.0168304443359375, -0.008880615234375, 0.0238189697265625, 0.03936767578125, -0.0015239715576171875, 0.0262603759765625, -0.0136260986328125, 0.005710601806640625, -0.005706787109375, 0.036407470703125, 0.00829315185546875, -0.017578125, 0.0198822021484375, -0.00884246826171875, 0.0157012939453125, -0.011871337890625, -0.0197296142578125, 0.02783203125, 0.0150146484375, 0.00762939453125, -0.0042877197265625, -0.0034618377685546875, 0.002925872802734375, -0.005016326904296875, 0.03704833984375, -0.0689697265625, -0.0821533203125, -0.03240966796875, 0.0150146484375, 0.041229248046875, -0.068603515625, 0.01090240478515625, -0.01458740234375, 0.0167694091796875, -0.005908966064453125, 0.004566192626953125, -0.0246734619140625, -0.0014562606811523438, 0.006778717041015625, 0.001064300537109375, -0.003520965576171875, 0.01084136962890625, -0.0924072265625, -0.0135955810546875, -0.031341552734375, -0.0175933837890625, 0.084716796875, 0.0007395744323730469, 0.03204345703125, -0.0277862548828125, -0.00604248046875, -0.0015096664428710938, -0.006427764892578125, 0.04425048828125, 0.009613037109375, -0.031585693359375, -0.017822265625, -0.01971435546875, -0.005405426025390625, -0.01390838623046875, -0.02642822265625, -0.01520538330078125, -0.009735107421875, -0.016876220703125, -0.01209259033203125, 0.0157318115234375, 0.05120849609375, 0.01024627685546875, 0.023529052734375, -0.0193939208984375, -0.0281982421875, -0.01047515869140625, 0.0517578125, 0.0176849365234375, 0.007663726806640625, 0.0170135498046875, 0.034698486328125, -0.00003331899642944336, -0.0198974609375, 0.0178070068359375, 0.01318359375, -0.0298004150390625, -0.0291900634765625, -0.0179290771484375, -0.00940704345703125, 0.063720703125, -0.01494598388671875, 0.01384735107421875, -0.03668212890625, -0.0030078887939453125, -0.0303802490234375, 0.02545166015625, -0.047821044921875, 0.004405975341796875, -0.007904052734375, -0.0233154296875, 0.004791259765625, 0.01172637939453125, 0.026885986328125, -0.00830078125, -0.010345458984375, 0.015594482421875, -0.00873565673828125, -0.04693603515625, 0.06829833984375, 0.0618896484375, -0.0050048828125, 0.0284881591796875, 0.0020847320556640625, -0.0017900466918945312, 0.00870513916015625, -0.020599365234375, 0.004589080810546875, 0.035247802734375, 0.041046142578125, -0.00420379638671875, 0.02606201171875, 0.03692626953125, -0.02264404296875, -0.0004591941833496094, 0.087890625, 0.0760498046875, -0.12646484375, 0.01543426513671875, 0.0299530029296875, 0.017059326171875, 0.047760009765625, 0.0266571044921875, -0.006984710693359375, 0.0045928955078125, -0.0306396484375, -0.0228271484375, -0.030364990234375, -0.0124664306640625, 0.021270751953125, 0.013427734375, -0.00409698486328125, 0.04107666015625, -0.0070648193359375, -0.0217742919921875, -0.027862548828125, 0.005035400390625, 0.005817413330078125, -0.041961669921875, -0.0021190643310546875, 0.05224609375, -0.023345947265625, -0.039031982421875, 0.08087158203125, -0.0200042724609375, 0.0108489990234375, 0.040679931640625, 0.016265869140625, -0.0340576171875, 0.043212890625, -0.0379638671875, 0.0589599609375, -0.0043182373046875, -0.016357421875, -0.0067138671875, -0.0027408599853515625, 0.03472900390625, -0.01947021484375, -0.045745849609375, 0.007587432861328125, -0.058685302734375, -0.004566192626953125, -0.0136871337890625, 0.0104522705078125, 0.1185302734375, -0.032318115234375, -0.0281982421875, -0.01139068603515625, 0.0167236328125, 0.007724761962890625, -0.007755279541015625, 0.0268707275390625, -0.0335693359375, 0.004314422607421875, 0.00201416015625, 0.0171661376953125, -0.01151275634765625, -0.01538848876953125, -0.0374755859375, 0.0848388671875, 0.006229400634765625, -0.006862640380859375, -0.00557708740234375, 0.052764892578125, -0.021636962890625, 0.0293731689453125, -0.043731689453125, 0.057861328125, 0.0662841796875, 0.0209197998046875, -0.02435302734375, -0.00640106201171875, -0.0021533966064453125, 0.01094818115234375, -0.0170135498046875, -0.01666259765625, 0.0163421630859375, 0.0033111572265625, 0.051971435546875, 0.045867919921875, 0.023193359375, -0.0204315185546875, -0.0265960693359375, -0.036376953125, -0.0130462646484375, -0.0257110595703125, 0.00852203369140625, -0.036163330078125, -0.019561767578125, -0.023681640625, 0.01507568359375, 0.03125, 0.006984710693359375, 0.009490966796875, -0.0045013427734375, 0.0014476776123046875, -0.00341033935546875, 0.00389862060546875, -0.0176239013671875, 0.0106201171875, 0.004364013671875, -0.029510498046875, -0.0182952880859375, -0.0276641845703125, 0.0343017578125, 0.03314208984375, 0.0103302001953125, 0.027801513671875, 0.02655029296875, -0.0128173828125, -0.0143585205078125, 0.007015228271484375, 0.0287322998046875, -0.044952392578125, 0.044952392578125, 0.01126861572265625, 0.024169921875, -0.05035400390625, -0.0308380126953125, 0.0450439453125, 0.07330322265625, -0.0242767333984375, -0.03558349609375, 0.005542755126953125, 0.01245880126953125, 0.0167236328125, 0.0152587890625, 0.048065185546875, -0.0003566741943359375, 0.00989532470703125, -0.02490234375, 0.0122528076171875, 0.0311737060546875, 0.01248931884765625, 0.007404327392578125, 0.0310821533203125, -0.049713134765625, 0.0164947509765625, -0.049163818359375, 0.032806396484375, 0.01421356201171875, 0.0272369384765625, 0.006771087646484375, 0.05633544921875, 0.014862060546875, -0.01551055908203125, 0.0007214546203613281, 0.05364990234375, -0.004039764404296875, -0.0020904541015625, -0.031890869140625, -0.06549072265625, 0.00905609130859375, 0.01611328125, 0.00946807861328125, 0.038360595703125, 0.0653076171875, 0.00644683837890625, -0.050048828125, -0.017303466796875, -0.00423431396484375, -0.052398681640625, -0.043670654296875, -0.026611328125, -0.0012426376342773438, 0.0230255126953125, 0.00939178466796875, 0.0141754150390625, 0.03289794921875, 0.0111236572265625, -0.0191802978515625, 0.0021152496337890625, -0.00205230712890625, -0.01788330078125, 0.03826904296875, 0.0011835098266601562, -0.002620697021484375, 0.0037212371826171875, -0.09844970703125, -0.0259246826171875, -0.0210418701171875, 0.01328277587890625, 0.033721923828125, 0.0286102294921875, -0.0043792724609375, 0.035003662109375, 0.015960693359375, -0.01204681396484375, 0.0142974853515625, 0.0045318603515625, -0.002323150634765625, 0.0211029052734375, 0.02886962890625, 0.00806427001953125, -0.05450439453125, -0.03436279296875, -0.028900146484375, 0.02691650390625, 0.04107666015625, 0.00229644775390625, 0.042205810546875, 0.03411865234375, -0.0291748046875, 0.0007448196411132812, -0.0169830322265625, -0.0310516357421875, 0.007312774658203125, 0.0200042724609375, 0.0010881423950195312, -0.0166778564453125, -0.049468994140625, 0.018035888671875, 0.0540771484375, -0.0240631103515625, 0.021148681640625, 0.0162506103515625, 0.01248931884765625, -0.04229736328125, 0.00421905517578125, -0.01274871826171875, 0.0136260986328125, 0.01560211181640625, -0.014739990234375, 0.0277099609375, 0.04534912109375, 0.03131103515625, 0.0204010009765625, 0.004596710205078125, -0.0200042724609375, 0.01568603515625, -0.003269195556640625, 0.00418853759765625, 0.0309295654296875, 0.0157623291015625, -0.01187896728515625, -0.01531219482421875, -0.0110321044921875, -0.0149688720703125, 0.0159454345703125, -0.0126953125, 0.0005331039428710938, -0.01471710205078125, 0.022705078125, -0.0289764404296875, 0.033966064453125, -0.0255889892578125, -0.0018301010131835938, -0.0195465087890625, 0.03271484375, 0.0033740997314453125, -0.039764404296875, -0.033172607421875, -0.06768798828125, -0.0113677978515625, 0.0230865478515625, -0.049652099609375, -0.0401611328125, -0.07977294921875, 0.005878448486328125, 0.01824951171875, 0.0091400146484375, -0.06048583984375, 0.03277587890625, -0.0113525390625, 0.02276611328125, -0.012359619140625, 0.01366424560546875, -0.02642822265625, -0.0208740234375, -0.030242919921875, -0.02703857421875, -0.046539306640625, 0.0491943359375, -0.0299224853515625, 0.0004229545593261719, 0.0280609130859375, -0.034515380859375, -0.01287078857421875, -0.0019521713256835938, 0.037689208984375, 0.050048828125, 0.03704833984375, -0.03961181640625, -0.004482269287109375, -0.008544921875, 0.0136260986328125, -0.016754150390625, -0.00714874267578125, -0.033477783203125, -0.0102691650390625, 0.0133209228515625, 0.0113525390625, 0.0279083251953125, -0.0272064208984375, -0.07781982421875, 0.00922393798828125, 0.00954437255859375, -0.04638671875, 0.029327392578125, 0.00789642333984375, -0.0101318359375, -0.05426025390625, -0.00848388671875, -0.00782012939453125, 0.00949859619140625, -0.0041046142578125, 0.0087738037109375, 0.095947265625, -0.03387451171875, 0.0165557861328125, -0.004718780517578125, 0.045013427734375, 0.0182037353515625, 0.03814697265625, 0.01409912109375, -0.0188446044921875, 0.04144287109375, 0.046661376953125, -0.022216796875, -0.032958984375, -0.0009899139404296875, -0.04290771484375, -0.008544921875, -0.01502227783203125, -0.01448822021484375, 0.0186309814453125, 0.035125732421875, 0.036895751953125, 0.021392822265625, -0.038299560546875, -0.0447998046875, -0.01380157470703125, 0.010711669921875, -0.02984619140625, 0.01190185546875, -0.07244873046875, -0.0285797119140625, 0.00595855712890625, -0.03839111328125, -0.0226287841796875, -0.00862884521484375, -0.066650390625, 0.01366424560546875, -0.004940032958984375, 0.0081024169921875, -0.0280303955078125, -0.0218658447265625, 0.0309906005859375, -0.0188751220703125, -0.004734039306640625, -0.01471710205078125, 0.0304107666015625, 0.002658843994140625, -0.00765228271484375, -0.0010290145874023438, 0.003387451171875, -0.060516357421875, 0.01568603515625, -0.016632080078125, 0.0282135009765625, -0.057342529296875, -0.0135345458984375, -0.018402099609375, 0.0297393798828125, 0.0229644775390625, 0.045806884765625, -0.03887939453125, 0.038421630859375, 0.035858154296875, -0.0283050537109375, -0.00199127197265625, 0.0225067138671875, -0.007282257080078125, 0.07012939453125, -0.00464630126953125, -0.047607421875, 0.0301055908203125, -0.062469482421875, -0.0186767578125, -0.00612640380859375, -0.02154541015625, -0.1060791015625, 0.0703125, 0.033935546875, 0.0197906494140625, 0.06256103515625 ]
386cdcc4763c9a111c89ed12f275d2cfe58a57b9
Wordpress Stackexchange Q: How to add a class to the attachment images When I'm in the Wordpress editor and I add an external image with the 'img' button, my html result wil be like this: <img src="http://example.com/image.jpg" alt="image" /> How can automatically have a class being added to the img tag? Like this: <img class="my-img-class" src="http://example.com/image.jpg" alt="image" /> I would like to apply the same principle to the 'Add Media' option. This output is like this: <a href="mywordpressdomain/image.jpg"><img src="mywordpressdomain/image.jpg" alt="image" width="872" height="867" class="alignnone size-full wp-image-59" /></a> And I want the output to be like this: <a href="mywordpressdomain/image.jpg"><img src="mywordpressdomain/image.jpg" alt="image" width="872" height="867" class="alignnone size-full my-img-class" /></a> I'm new with PHP, so I'm not sure how to this via a filter. I'm started like this, but I don't know what to do next: function image_tag_class($class, $id, $align, $size) { return $align; } add_filter('get_image_tag_class', 'image_tag_class', 0, 4); A: You could do like this: function image_tag_class($class) { $class .= ' my-custom-class'; return $class; } add_filter('get_image_tag_class', 'image_tag_class' ); in case you wanna know more about actions and hooks. Difference Between Filter and Action Hooks? add_filter add_action
Q: How to add a class to the attachment images When I'm in the Wordpress editor and I add an external image with the 'img' button, my html result wil be like this: <img src="http://example.com/image.jpg" alt="image" /> How can automatically have a class being added to the img tag? Like this: <img class="my-img-class" src="http://example.com/image.jpg" alt="image" /> I would like to apply the same principle to the 'Add Media' option. This output is like this: <a href="mywordpressdomain/image.jpg"><img src="mywordpressdomain/image.jpg" alt="image" width="872" height="867" class="alignnone size-full wp-image-59" /></a> And I want the output to be like this: <a href="mywordpressdomain/image.jpg"><img src="mywordpressdomain/image.jpg" alt="image" width="872" height="867" class="alignnone size-full my-img-class" /></a> I'm new with PHP, so I'm not sure how to this via a filter. I'm started like this, but I don't know what to do next: function image_tag_class($class, $id, $align, $size) { return $align; } add_filter('get_image_tag_class', 'image_tag_class', 0, 4); A: You could do like this: function image_tag_class($class) { $class .= ' my-custom-class'; return $class; } add_filter('get_image_tag_class', 'image_tag_class' ); in case you wanna know more about actions and hooks. Difference Between Filter and Action Hooks? add_filter add_action
wordpress
{ "language": "en", "length": 179, "provenance": "stackexchange_00019.jsonl.gz:447213", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155438" }
[ 0.08453369140625, -0.006031036376953125, 0.047393798828125, 0.0016756057739257812, 0.0296173095703125, -0.031707763671875, 0.10223388671875, -0.04815673828125, -0.02142333984375, 0.01061248779296875, -0.053192138671875, 0.033416748046875, -0.022613525390625, -0.00917816162109375, 0.01288604736328125, -0.046966552734375, 0.0223236083984375, -0.0096282958984375, 0.051300048828125, 0.007732391357421875, 0.02227783203125, 0.0179595947265625, 0.0265960693359375, -0.0270538330078125, -0.009918212890625, 0.0126190185546875, 0.11566162109375, -0.035369873046875, 0.021697998046875, 0.01001739501953125, 0.0164794921875, -0.050506591796875, 0.0308990478515625, 0.018646240234375, -0.02581787109375, 0.0122833251953125, 0.0251007080078125, -0.010498046875, -0.01264190673828125, 0.0296173095703125, 0.0384521484375, -0.00627899169921875, 0.0343017578125, 0.028717041015625, -0.0016622543334960938, -0.0305328369140625, 0.02728271484375, -0.043212890625, 0.03582763671875, -0.027923583984375, 0.033905029296875, 0.024078369140625, 0.03680419921875, -0.0258941650390625, -0.01541900634765625, 0.0292205810546875, -0.047393798828125, 0.04290771484375, 0.0005135536193847656, 0.028656005859375, -0.00643157958984375, 0.0250701904296875, -0.00444793701171875, -0.01306915283203125, -0.004241943359375, -0.019287109375, 0.020416259765625, 0.01438140869140625, -0.0404052734375, -0.04107666015625, 0.03619384765625, -0.0026302337646484375, -0.03216552734375, -0.04840087890625, -0.015655517578125, 0.050537109375, 0.002597808837890625, -0.034912109375, -0.01059722900390625, -0.0013418197631835938, 0.045684814453125, -0.0111083984375, -0.0009794235229492188, 0.00727081298828125, 0.01200103759765625, 0.0355224609375, -0.004428863525390625, -0.0233917236328125, 0.004695892333984375, -0.003360748291015625, -0.01129150390625, -0.0548095703125, 0.037261962890625, 0.007411956787109375, -0.021270751953125, -0.04241943359375, -0.0209503173828125, 0.0211639404296875, 0.0093536376953125, 0.0667724609375, 0.003147125244140625, -0.0555419921875, 0.08056640625, -0.07244873046875, -0.00820159912109375, 0.0147247314453125, -0.004627227783203125, 0.020660400390625, 0.0182037353515625, 0.0281829833984375, 0.0023651123046875, -0.02081298828125, -0.00803375244140625, 0.0029277801513671875, -0.041351318359375, -0.01302337646484375, -0.045318603515625, -0.02447509765625, -0.0165252685546875, -0.031494140625, -0.00843048095703125, 0.0181121826171875, 0.01763916015625, -0.0150909423828125, -0.0023555755615234375, 0.006092071533203125, -0.0084075927734375, -0.041595458984375, 0.01526641845703125, -0.04290771484375, -0.0256195068359375, 0.057098388671875, 0.0382080078125, -0.00011414289474487305, -0.0050506591796875, 0.0167236328125, 0.0165863037109375, -0.0343017578125, -0.01467132568359375, 0.025848388671875, 0.00951385498046875, -0.0301513671875, -0.00664520263671875, 0.0008897781372070312, 0.003597259521484375, 0.0251007080078125, -0.0034389495849609375, 0.0026721954345703125, 0.00395965576171875, -0.0653076171875, 0.0538330078125, -0.052642822265625, 0.03448486328125, 0.01532745361328125, -0.0241851806640625, 0.017120361328125, 0.037567138671875, -0.020965576171875, -0.03253173828125, -0.0494384765625, 0.01336669921875, 0.018768310546875, 0.0384521484375, -0.0195770263671875, -0.006969451904296875, -0.030029296875, -0.062225341796875, -0.00891876220703125, 0.023223876953125, -0.0217742919921875, -0.0018510818481445312, 0.0263214111328125, 0.047698974609375, 0.0304107666015625, 0.0062255859375, 0.0236968994140625, 0.0213470458984375, 0.0167236328125, 0.0189208984375, 0.0230865478515625, -0.0027637481689453125, -0.02459716796875, 0.0758056640625, -0.038177490234375, -0.0296783447265625, -0.007350921630859375, 0.0078887939453125, 0.03192138671875, 0.019775390625, 0.0238189697265625, 0.002384185791015625, 0.0008454322814941406, -0.050628662109375, 0.03271484375, -0.02313232421875, -0.01003265380859375, -0.0206756591796875, 0.0103302001953125, -0.0263519287109375, 0.0153961181640625, 0.024627685546875, -0.0037899017333984375, 0.0243377685546875, -0.0235595703125, -0.0313720703125, 0.00856781005859375, -0.01168060302734375, 0.031341552734375, -0.0340576171875, -0.0145263671875, 0.01067352294921875, -0.0274810791015625, 0.0031909942626953125, -0.0273590087890625, 0.0047454833984375, 0.020416259765625, -0.01473236083984375, 0.031890869140625, -0.0222930908203125, 0.040740966796875, -0.03826904296875, -0.0278167724609375, -0.03265380859375, -0.005580902099609375, 0.0318603515625, 0.005260467529296875, -0.035003662109375, -0.014862060546875, -0.022430419921875, 0.019378662109375, -0.06903076171875, 0.03619384765625, 0.004405975341796875, 0.012298583984375, -0.048675537109375, -0.034759521484375, -0.049652099609375, -0.0733642578125, 0.017578125, 0.06768798828125, 0.034149169921875, 0.04638671875, 0.0035228729248046875, 0.00792694091796875, 0.0662841796875, 0.033355712890625, 0.04571533203125, -0.03692626953125, -0.030120849609375, -0.030731201171875, 0.011444091796875, -0.01110076904296875, 0.044586181640625, -0.044525146484375, 0.00027370452880859375, 0.05328369140625, -0.00255584716796875, -0.02008056640625, -0.0164642333984375, 0.00992584228515625, 0.01517486572265625, -0.01065826416015625, -0.0450439453125, -0.00916290283203125, 0.0147705078125, 0.03265380859375, 0.0297698974609375, 0.0258636474609375, -0.027496337890625, 0.027618408203125, 0.0121612548828125, -0.0159759521484375, 0.0037689208984375, 0.023681640625, -0.0260772705078125, 0.00873565673828125, -0.0010156631469726562, 0.0063018798828125, -0.030303955078125, -0.0104827880859375, -0.020965576171875, 0.0310821533203125, 0.010650634765625, -0.017547607421875, -0.027313232421875, -0.034820556640625, 0.03564453125, -0.00458526611328125, -0.04443359375, -0.041839599609375, -0.00975799560546875, 0.0265655517578125, -0.020355224609375, 0.0181427001953125, 0.00777435302734375, -0.0113677978515625, -0.009613037109375, -0.015838623046875, 0.042236328125, -0.0292205810546875, 0.057464599609375, 0.06561279296875, -0.059051513671875, 0.049041748046875, -0.0029125213623046875, -0.00922393798828125, -0.0099639892578125, -0.001163482666015625, -0.015960693359375, -0.01461029052734375, -0.0284576416015625, 0.03277587890625, 0.007801055908203125, 0.0239105224609375, -0.05279541015625, -0.061614990234375, -0.0297088623046875, -0.0219268798828125, -0.07843017578125, -0.025177001953125, 0.0160675048828125, -0.06195068359375, -0.030975341796875, 0.009857177734375, -0.047119140625, -0.0007376670837402344, 0.046844482421875, -0.005832672119140625, -0.023895263671875, -0.011199951171875, 0.016845703125, -0.02783203125, -0.0294342041015625, -0.002056121826171875, 0.017578125, 0.00771331787109375, 0.007720947265625, 0.0221099853515625, 0.008575439453125, -0.004852294921875, 0.052520751953125, 0.005809783935546875, 0.00612640380859375, 0.0222015380859375, 0.004146575927734375, -0.032684326171875, 0.006145477294921875, -0.00646209716796875, 0.04901123046875, 0.02154541015625, -0.02789306640625, 0.0032520294189453125, -0.0294189453125, -0.01483154296875, -0.0155029296875, 0.02606201171875, 0.0379638671875, 0.0010538101196289062, 0.021484375, -0.0379638671875, 0.0249481201171875, -0.01462554931640625, 0.002960205078125, 0.005615234375, -0.0224761962890625, -0.0265045166015625, 0.003902435302734375, 0.0113677978515625, -0.0156402587890625, -0.0009374618530273438, 0.013824462890625, -0.03472900390625, 0.035614013671875, -0.01399993896484375, -0.01092529296875, -0.005466461181640625, 0.0203094482421875, -0.01116180419921875, 0.033782958984375, 0.011688232421875, 0.0184173583984375, -0.0132293701171875, -0.001247406005859375, -0.06707763671875, -0.05169677734375, 0.061187744140625, 0.0101470947265625, 0.01152801513671875, -0.037994384765625, -0.038787841796875, -0.01116180419921875, 0.0831298828125, -0.04376220703125, -0.0285491943359375, -0.0015535354614257812, 0.0247650146484375, -0.01016998291015625, -0.035430908203125, -0.0208282470703125, -0.0200347900390625, -0.07415771484375, 0.002376556396484375, 0.0016679763793945312, -0.043731689453125, -0.007434844970703125, -0.024261474609375, -0.056640625, -0.022674560546875, 0.0286712646484375, -0.0233612060546875, 0.0119781494140625, 0.0264739990234375, -0.01404571533203125, 0.0217132568359375, -0.006206512451171875, -0.0281524658203125, -0.11712646484375, -0.003910064697265625, -0.04730224609375, 0.08056640625, -0.021240234375, 0.05572509765625, -0.053253173828125, 0.040008544921875, 0.027557373046875, 0.01084136962890625, 0.010406494140625, 0.00301361083984375, 0.004467010498046875, -0.038482666015625, 0.0141448974609375, -0.050201416015625, -0.006900787353515625, -0.030517578125, -0.051849365234375, -0.0138702392578125, -0.0257415771484375, 0.0197296142578125, 0.00835418701171875, -0.028411865234375, -0.0158843994140625, -0.03582763671875, 0.0027313232421875, 0.0027484893798828125, -0.006622314453125, -0.00666046142578125, -0.0234375, -0.00460052490234375, 0.01739501953125, -0.004100799560546875, 0.0059051513671875, 0.027496337890625, 0.06988525390625, 0.0111541748046875, -0.00724029541015625, -0.07659912109375, 0.03582763671875, 0.0230560302734375, -0.0118408203125, 0.04364013671875, 0.014556884765625, -0.0031032562255859375, 0.008697509765625, -0.00902557373046875, 0.0301971435546875, -0.04571533203125, 0.10662841796875, -0.01450347900390625, -0.006984710693359375, 0.0298309326171875, -0.0176239013671875, -0.005504608154296875, -0.00688934326171875, -0.0299530029296875, -0.0168304443359375, 0.01629638671875, 0.0240325927734375, -0.0328369140625, 0.055816650390625, 0.006923675537109375, -0.024688720703125, -0.0008106231689453125, -0.020843505859375, 0.03424072265625, 0.027587890625, -0.00841522216796875, 0.00234222412109375, -0.0011205673217773438, 0.0200958251953125, -0.0038299560546875, 0.00540924072265625, -0.024810791015625, 0.04736328125, -0.004421234130859375, -0.001201629638671875, 0.012237548828125, 0.0014295578002929688, 0.0236663818359375, 0.0045623779296875, -0.0238800048828125, -0.046661376953125, 0.006610870361328125, 0.00904083251953125, 0.00969696044921875, -0.03790283203125, 0.0430908203125, 0.018951416015625, -0.0231170654296875, -0.0173797607421875, -0.0760498046875, 0.00923919677734375, -0.060699462890625, 0.019256591796875, 0.0050506591796875, -0.0026149749755859375, 0.03326416015625, -0.0187225341796875, -0.0012617111206054688, -0.005702972412109375, -0.0010290145874023438, 0.00873565673828125, 0.025299072265625, 0.02960205078125, 0.028106689453125, -0.032806396484375, -0.010833740234375, 0.020599365234375, -0.00141143798828125, -0.02703857421875, 0.0007190704345703125, 0.01287841796875, 0.043853759765625, -0.03167724609375, -0.0310211181640625, 0.0243988037109375, -0.03887939453125, -0.02569580078125, 0.04327392578125, 0.0295562744140625, -0.0193023681640625, -0.044525146484375, 0.0027065277099609375, 0.05780029296875, 0.01552581787109375, -0.026153564453125, 0.0267181396484375, 0.01396942138671875, 0.0540771484375, 0.0175323486328125, -0.0185546875, 0.032958984375, 0.0234832763671875, -0.01099395751953125, -0.0030574798583984375, -0.035186767578125, -0.0101470947265625, -0.01861572265625, -0.0079193115234375, -0.028411865234375, 0.03265380859375, -0.037506103515625, 0.01523590087890625, -0.00959014892578125, -0.00637054443359375, -0.0716552734375, 0.01480865478515625, 0.0238494873046875, 0.026031494140625, -0.015472412109375, -0.026092529296875, -0.0267486572265625, -0.0190887451171875, 0.01422882080078125, 0.0222320556640625, 0.001678466796875, 0.0117950439453125, -0.00467681884765625, 0.02581787109375, 0.016082763671875, 0.01568603515625, -0.039337158203125, 0.0008425712585449219, 0.0023708343505859375, 0.022613525390625, 0.00818634033203125, 0.0369873046875, -0.0244293212890625, 0.044708251953125, 0.0027904510498046875, 0.0169830322265625, -0.01055908203125, -0.0112762451171875, -0.00888824462890625, -0.054168701171875, 0.00909423828125, 0.0261993408203125, -0.04461669921875, 0.017364501953125, 0.0325927734375, 0.012664794921875, 0.0006561279296875, -0.014068603515625, -0.016693115234375, -0.0186920166015625, 0.03973388671875, 0.01255035400390625, 0.0011882781982421875, 0.0232086181640625, -0.0163726806640625, 0.059417724609375, -0.021270751953125, 0.02557373046875, -0.0142974853515625, -0.042633056640625, 0.0087127685546875, 0.0312347412109375, -0.00420379638671875, 0.003765106201171875, 0.033203125, -0.006793975830078125, 0.04248046875, 0.01617431640625, 0.006618499755859375, 0.0255584716796875, 0.0181884765625, -0.007568359375, 0.0204010009765625, 0.08819580078125, 0.01544189453125, -0.0311737060546875, 0.056915283203125, -0.0313720703125, 0.024322509765625, -0.00534820556640625, 0.044219970703125, 0.00826263427734375, 0.01514434814453125, -0.01007080078125, -0.037078857421875, 0.057373046875, 0.0236968994140625, -0.01496124267578125, 0.018402099609375, 0.02899169921875, -0.05902099609375, -0.01464080810546875, 0.0182342529296875, 0.022705078125, 0.01751708984375, 0.0244598388671875, 0.029144287109375, 0.0017118453979492188, -0.0390625, -0.039886474609375, 0.046234130859375, -0.01371002197265625, 0.01116180419921875, 0.024627685546875, -0.0145416259765625, -0.0014047622680664062, -0.0169830322265625, -0.0024623870849609375, -0.039276123046875, -0.00897979736328125, -0.004436492919921875, -0.034576416015625, 0.048797607421875, -0.002391815185546875, -0.0093994140625, -0.002468109130859375, -0.025634765625, -0.036773681640625, -0.01141357421875, -0.0048828125, 0.0166473388671875, 0.0322265625, -0.0439453125, 0.0089111328125, -0.0285491943359375, 0.020599365234375, -0.007076263427734375, -0.038238525390625, 0.012420654296875, -0.0236968994140625, -0.00597381591796875, 0.034423828125, 0.01446533203125, -0.008331298828125, 0.011566162109375, 0.01512908935546875, -0.039581298828125, -0.0237579345703125, 0.0008363723754882812, -0.053863525390625, 0.00634002685546875, -0.0247955322265625, -0.055999755859375, 0.08599853515625, -0.0293426513671875, 0.0225830078125, -0.0101776123046875, 0.046295166015625, 0.01715087890625, 0.0252532958984375, -0.01544189453125, -0.00971221923828125, -0.041046142578125, -0.00919342041015625, -0.041656494140625, 0.01261138916015625, -0.02716064453125, 0.028045654296875, 0.05120849609375, 0.01678466796875, -0.06494140625, -0.0228118896484375, 0.0230712890625, 0.0291900634765625, -0.0000616312026977539, 0.060516357421875, -0.010589599609375, -0.0190887451171875, -0.0149078369140625, -0.016937255859375, 0.0093994140625, -0.043060302734375, -0.00893402099609375, 0.0357666015625, 0.00717926025390625, 0.01345062255859375, 0.0115509033203125, 0.043487548828125, -0.0333251953125, 0.0094451904296875, 0.04443359375, -0.04364013671875, 0.010894775390625, 0.0364990234375, 0.0254058837890625, -0.03167724609375, -0.049102783203125, -0.0126495361328125, 0.0279541015625, -0.003482818603515625, 0.033843994140625, 0.046630859375, 0.0142059326171875, 0.0190887451171875, 0.03326416015625, 0.0230255126953125, 0.025054931640625, 0.0008192062377929688, 0.0267791748046875, 0.01082611083984375, 0.0223236083984375, -0.038726806640625, 0.003330230712890625, 0.05303955078125, 0.055938720703125, -0.0224456787109375, 0.0011348724365234375, -0.0017728805541992188, -0.01189422607421875, 0.0167083740234375, -0.04168701171875, 0.01364898681640625, -0.0648193359375, -0.068359375, -0.043792724609375, 0.0291748046875, 0.050750732421875, 0.0228424072265625, -0.0004322528839111328, 0.01247406005859375, -0.0693359375, 0.0192718505859375, -0.053924560546875, 0.0157623291015625, 0.0222320556640625, 0.041473388671875, -0.00046372413635253906, 0.042938232421875, 0.018341064453125, -0.0124969482421875, -0.03564453125, 0.041015625, 0.0177154541015625, 0.03948974609375, -0.041961669921875, 0.0004181861877441406, 0.0033321380615234375, 0.0312042236328125, 0.013763427734375, -0.0188751220703125, 0.023468017578125, 0.014984130859375, -0.044647216796875, -0.002796173095703125, -0.002033233642578125, -0.02630615234375, 0.032135009765625, -0.0120086669921875, 0.036346435546875, 0.05120849609375, 0.00006473064422607422, 0.01421356201171875, -0.0016832351684570312, 0.073486328125, -0.0555419921875, 0.01556396484375, -0.0213623046875, -0.037689208984375, 0.03350830078125, -0.0213623046875, 0.0635986328125, -0.03143310546875, -0.07623291015625, 0.0009341239929199219, -0.045684814453125, -0.08270263671875, 0.042724609375, 0.05322265625, -0.039306640625, 0.024261474609375, 0.038848876953125, -0.0264434814453125, 0.0016641616821289062, 0.00267791748046875, 0.0035552978515625, -0.0162811279296875, 0.016754150390625, -0.00862884521484375, -0.02142333984375, 0.001453399658203125, -0.016571044921875, 0.026275634765625, 0.0390625, 0.0709228515625, -0.01418304443359375, 0.033843994140625, -0.0290069580078125, -0.01922607421875, -0.01104736328125, -0.032867431640625, 0.028228759765625, -0.0259552001953125, -0.034912109375, -0.0031890869140625, 0.0263671875, 0.01274871826171875, 0.04400634765625, -0.041839599609375, -0.023223876953125, 0.01898193359375, 0.0161285400390625, 0.006450653076171875, 0.04254150390625, -0.014678955078125, -0.021148681640625, -0.0753173828125, -0.033477783203125, 0.045013427734375, 0.03033447265625, 0.01171112060546875, 0.019378662109375, 0.020843505859375, 0.032440185546875, 0.0284423828125, 0.00441741943359375, 0.0556640625, 0.03216552734375, -0.076416015625, -0.053680419921875, 0.02130126953125, -0.007274627685546875, -0.00025463104248046875, 0.00913238525390625, 0.0548095703125, 0.0079193115234375, -0.07342529296875, 0.018280029296875, 0.044219970703125, 0.055267333984375, -0.01214599609375, 0.027740478515625, 0.0217742919921875, -0.01457977294921875, 0.0162506103515625, 0.0160980224609375, -0.036346435546875, -0.048248291015625, -0.005512237548828125, 0.0189971923828125, -0.0273284912109375, -0.0303497314453125, -0.07891845703125, -0.01043701171875, 0.047515869140625, 0.0313720703125, -0.08270263671875, 0.0263214111328125, -0.0006809234619140625, 0.0311126708984375, 0.01355743408203125, -0.0033664703369140625, -0.007274627685546875, 0.002155303955078125, -0.0321044921875, -0.08612060546875, -0.049468994140625, 0.0653076171875, -0.06585693359375, 0.0377197265625, 0.0396728515625, -0.03839111328125, 0.04412841796875, 0.02178955078125, 0.0266571044921875, 0.06787109375, -0.06573486328125, -0.0307769775390625, -0.01080322265625, 0.0008993148803710938, -0.0002894401550292969, -0.0019207000732421875, 0.03424072265625, -0.05279541015625, -0.029571533203125, -0.0018987655639648438, 0.007549285888671875, 0.0192108154296875, -0.039459228515625, -0.093994140625, 0.057586669921875, -0.0217132568359375, -0.038726806640625, -0.064208984375, 0.0301361083984375, -0.01041412353515625, 0.0291748046875, -0.0192413330078125, -0.0302276611328125, 0.0310211181640625, 0.052886962890625, 0.00931549072265625, 0.0126800537109375, 0.0194549560546875, 0.01534271240234375, -0.0235443115234375, 0.005527496337890625, -0.0059356689453125, -0.007904052734375, 0.025634765625, -0.046844482421875, 0.0582275390625, 0.037628173828125, -0.020599365234375, -0.002155303955078125, 0.029052734375, -0.036407470703125, -0.0023746490478515625, -0.030120849609375, -0.0285491943359375, -0.042236328125, 0.054595947265625, 0.01158905029296875, 0.012481689453125, 0.006961822509765625, 0.02081298828125, 0.01421356201171875, -0.042938232421875, 0.006793975830078125, 0.019012451171875, -0.040771484375, -0.0269775390625, 0.01349639892578125, 0.02197265625, 0.0170135498046875, -0.0104217529296875, -0.0108642578125, -0.02618408203125, 0.001522064208984375, 0.0188751220703125, -0.0784912109375, -0.004878997802734375, 0.06427001953125, -0.034912109375, 0.0230255126953125, 0.004192352294921875, 0.0008168220520019531, 0.04815673828125, 0.0129241943359375, -0.0014429092407226562, 0.005809783935546875, -0.004302978515625, 0.01529693603515625, 0.01611328125, -0.009552001953125, 0.00977325439453125, 0.00458526611328125, -0.0234375, 0.01529693603515625, 0.021087646484375, 0.01554107666015625, -0.022003173828125, -0.000492095947265625, 0.01332855224609375, 0.010284423828125, -0.01546478271484375, 0.019134521484375, -0.0030498504638671875, 0.0175323486328125, -0.0078277587890625, -0.0083160400390625, 0.038787841796875, -0.052459716796875, -0.00482940673828125, -0.017059326171875, -0.02215576171875, -0.07861328125, 0.0238494873046875, -0.04132080078125, -0.00217437744140625, 0.040008544921875 ]
93d127d814666439b7429b837794f4162418d647
Wordpress Stackexchange Q: Can you have a blog in a subdirectory hosted on a different server? I am interested in having a blog on my site which will be in a subdirectory of the main wordpress homepage e.g. website.com/blog however, I am interested to know if there is a way to host the blog on a separate server - primarily because I don't want to overload the server for the rest of the site if there is a lot of traffic going to the blog. I am keen on the idea of it being a subdirectory though. Anyway - just thought there would be someone smarter than me who might have a bright idea :) A: A reverse proxy could work, such as varnish or nginx. Using varnish as an example: backend blog { .host = "blog-server-ip"; } backend default { .host = "current-domain-ip"; } sub vcl_recv { if (req.rul ~ "^/blog/") { req.backend = blog; } }
Q: Can you have a blog in a subdirectory hosted on a different server? I am interested in having a blog on my site which will be in a subdirectory of the main wordpress homepage e.g. website.com/blog however, I am interested to know if there is a way to host the blog on a separate server - primarily because I don't want to overload the server for the rest of the site if there is a lot of traffic going to the blog. I am keen on the idea of it being a subdirectory though. Anyway - just thought there would be someone smarter than me who might have a bright idea :) A: A reverse proxy could work, such as varnish or nginx. Using varnish as an example: backend blog { .host = "blog-server-ip"; } backend default { .host = "current-domain-ip"; } sub vcl_recv { if (req.rul ~ "^/blog/") { req.backend = blog; } } A: A better way to to do this is to instead of a subdirectory, use a subdomain like blog.website.com. The reason for this is that a DNS record can be made to the other server for the subdomain, which is not possible with subdirectories. A subdirectory is possible, but you would have to use frames, a .htaccess redirect or another way which is totally not stable in a production environment. If you want to use a subdirectory like example.com/blog, the best way (and it's not a good way...) is to use an .htaccess file. You can make a redirect like this: Redirect 301 <server IP> where server IP stands for the IP address of the server you want to host your blog on. Note that the user will see the IP address in the address bar which is not recommendable. Therefore, you might also want to give frames a try. Use iFrames, frames are outdated and no-one will recommend to use them. Note that iFrames or frames aren't a good solution either, but if you really want to use a subdirectory this is what you'll have to do... create an index file (e.g. website.com/blog), and place <iframe src="<server IP>"></iframe> there. Note that also this is no good solution and I really recommend using a subdomain. If you want to use a subdomain like blog.website.com, go to a place where you can manage your domain's DNS and add a an A record which points to the IP of the server you are going to host your blog on. Edit: this is off-topic, but worth mentioning: if you don't want an overload on your server, instead of having multiple servers, you can set up cluster hosting. This is a very handy technique, especially for websites that have many traffic. The concept is to spread the load of hosting across multiple servers. Here's the Wikipedia article about clustered hosting - I recommend reading it. There are multiple hosting providers that offer cluster hosting. Unfortunately I only know Dutch hosting providers that offer clustered hosting, so I can't recommend one. The cheapest I know in The Netherlands is about €100,- per year, so clustered hosting is quite affordable. Good luck! A: Does it have to be website.com/blog? A faster solution and less complex would be to just host the blog as blog.website.com For website.com/blog, your best solution is to employ URL Redirects.. see: https://serverfault.com/questions/567476/permanently-redirect-subfolder-blog-to-subdomain-on-another-server
wordpress
{ "language": "en", "length": 556, "provenance": "stackexchange_00019.jsonl.gz:447236", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155562" }
[ -0.004695892333984375, -0.034912109375, 0.01262664794921875, 0.0180511474609375, -0.034698486328125, -0.0198822021484375, 0.03948974609375, -0.0291595458984375, 0.00104522705078125, 0.0004897117614746094, -0.0318603515625, 0.0190582275390625, -0.007534027099609375, -0.0227813720703125, 0.0325927734375, -0.033599853515625, 0.035736083984375, -0.005397796630859375, 0.043304443359375, 0.0101776123046875, -0.00183868408203125, 0.0380859375, 0.02630615234375, -0.0025653839111328125, 0.01137542724609375, 0.00201416015625, 0.07275390625, -0.005031585693359375, 0.0093231201171875, -0.00533294677734375, 0.020599365234375, -0.016387939453125, 0.035369873046875, 0.02484130859375, -0.04736328125, -0.03082275390625, -0.00750732421875, 0.01093292236328125, -0.01450347900390625, 0.0214385986328125, -0.00011086463928222656, 0.00852203369140625, 0.043243408203125, 0.0258636474609375, 0.0098419189453125, -0.051055908203125, 0.021331787109375, -0.06805419921875, 0.023529052734375, -0.0052032470703125, -0.005779266357421875, 0.038177490234375, 0.01153564453125, -0.0157012939453125, -0.0318603515625, -0.0263671875, 0.03472900390625, 0.025360107421875, 0.04150390625, -0.086181640625, -0.07012939453125, 0.0111846923828125, 0.040130615234375, 0.037933349609375, 0.0173187255859375, -0.001590728759765625, 0.0362548828125, 0.0289306640625, -0.0830078125, 0.01280975341796875, 0.050384521484375, -0.038330078125, 0.01477813720703125, -0.02496337890625, -0.004497528076171875, 0.006473541259765625, 0.0010890960693359375, -0.0152435302734375, 0.0178985595703125, -0.0162811279296875, -0.0267791748046875, 0.0008406639099121094, -0.0121002197265625, -0.07318115234375, 0.0196380615234375, -0.0234832763671875, -0.0235595703125, 0.00640106201171875, -0.026336669921875, 0.006084442138671875, -0.029205322265625, -0.044647216796875, -0.0211639404296875, 0.054290771484375, 0.004177093505859375, 0.0199737548828125, -0.006389617919921875, 0.015106201171875, -0.006580352783203125, 0.018798828125, -0.0197601318359375, -0.019256591796875, 0.0107879638671875, -0.022247314453125, 0.01461029052734375, 0.03485107421875, -0.0022869110107421875, 0.00016796588897705078, 0.056549072265625, 0.0187530517578125, -0.00057220458984375, 0.042724609375, -0.0086212158203125, -0.019989013671875, -0.03753662109375, 0.02911376953125, -0.0006003379821777344, -0.014312744140625, 0.005519866943359375, -0.01032257080078125, 0.0206756591796875, 0.060028076171875, -0.01496124267578125, -0.0108795166015625, -0.001800537109375, -0.004138946533203125, 0.023345947265625, -0.04278564453125, -0.001087188720703125, 0.017333984375, -0.0211944580078125, 0.01507568359375, 0.040771484375, 0.007579803466796875, -0.0212860107421875, -0.01165771484375, 0.03338623046875, 0.01335906982421875, 0.023284912109375, -0.03173828125, 0.07086181640625, -0.043548583984375, -0.05633544921875, 0.03814697265625, -0.004436492919921875, 0.0208282470703125, 0.0279541015625, 0.01045989990234375, -0.0174560546875, -0.03729248046875, 0.0016803741455078125, -0.0027179718017578125, 0.0330810546875, -0.0033054351806640625, 0.03607177734375, -0.07220458984375, 0.027618408203125, -0.057891845703125, 0.033203125, -0.05120849609375, 0.0206451416015625, 0.02239990234375, 0.0660400390625, -0.0247344970703125, -0.03472900390625, -0.050811767578125, -0.039825439453125, -0.032989501953125, 0.0311737060546875, -0.003932952880859375, 0.01476287841796875, -0.021484375, -0.01430511474609375, 0.01251983642578125, 0.0091094970703125, 0.01397705078125, 0.0306549072265625, 0.0134124755859375, -0.0190582275390625, 0.09967041015625, 0.038543701171875, -0.023284912109375, 0.0022411346435546875, 0.0048065185546875, -0.017242431640625, 0.020294189453125, -0.0016851425170898438, 0.054473876953125, -0.0035343170166015625, 0.026397705078125, -0.032012939453125, 0.0122222900390625, -0.039764404296875, 0.06292724609375, -0.035614013671875, -0.0338134765625, -0.005504608154296875, 0.020904541015625, -0.024566650390625, -0.01165008544921875, -0.055694580078125, 0.01003265380859375, -0.0107269287109375, 0.04022216796875, 0.0406494140625, -0.0045013427734375, -0.0003428459167480469, 0.0203857421875, 0.0114288330078125, 0.0262451171875, -0.0107421875, -0.0115203857421875, 0.02740478515625, -0.08966064453125, -0.031463623046875, 0.0126800537109375, -0.02447509765625, 0.0159149169921875, 0.005645751953125, 0.0274810791015625, -0.02197265625, -0.0021533966064453125, -0.036773681640625, -0.028594970703125, 0.0261993408203125, -0.03546142578125, -0.0095367431640625, -0.036285400390625, -0.036773681640625, 0.0252838134765625, -0.1270751953125, 0.025634765625, 0.0252532958984375, 0.033721923828125, -0.022491455078125, -0.00018072128295898438, -0.00429534912109375, -0.040130615234375, 0.00811767578125, 0.041778564453125, 0.0191192626953125, -0.0098724365234375, -0.02130126953125, 0.01059722900390625, -0.0302886962890625, -0.0382080078125, 0.0123748779296875, 0.01145172119140625, -0.0201568603515625, 0.0243988037109375, -0.03375244140625, 0.006984710693359375, 0.0279998779296875, -0.050140380859375, -0.029327392578125, 0.07275390625, 0.033721923828125, 0.018157958984375, -0.003948211669921875, -0.0034275054931640625, 0.0204315185546875, 0.07562255859375, -0.05194091796875, 0.049835205078125, 0.0299530029296875, 0.009002685546875, 0.027374267578125, 0.0181427001953125, -0.01184844970703125, -0.006381988525390625, 0.004940032958984375, -0.005275726318359375, 0.00896453857421875, 0.034576416015625, 0.048004150390625, 0.0243682861328125, -0.041900634765625, -0.02069091796875, 0.034271240234375, 0.034637451171875, -0.004604339599609375, 0.05047607421875, -0.01291656494140625, -0.01233673095703125, -0.034393310546875, -0.0677490234375, -0.00733184814453125, 0.01495361328125, -0.0082244873046875, -0.01071929931640625, 0.00540924072265625, 0.0253448486328125, -0.017242431640625, 0.01910400390625, 0.0156402587890625, -0.0158843994140625, 0.060638427734375, -0.048095703125, 0.060699462890625, -0.0224151611328125, 0.044921875, 0.057373046875, -0.0155029296875, 0.02459716796875, 0.0022125244140625, 0.0005664825439453125, 0.00820159912109375, -0.006969451904296875, -0.0129547119140625, 0.004791259765625, -0.07086181640625, -0.0078277587890625, 0.01114654541015625, -0.0183868408203125, -0.0037555694580078125, -0.0079193115234375, -0.01274871826171875, -0.004947662353515625, -0.046661376953125, -0.03228759765625, 0.0308990478515625, -0.033660888671875, 0.01419830322265625, 0.0064544677734375, -0.0184326171875, -0.04095458984375, 0.05426025390625, 0.01227569580078125, -0.0136566162109375, -0.04425048828125, -0.043914794921875, -0.0833740234375, -0.07611083984375, -0.040069580078125, 0.01171875, -0.0012140274047851562, -0.001293182373046875, 0.0156402587890625, -0.01445770263671875, -0.07135009765625, -0.0263214111328125, 0.0634765625, 0.0244903564453125, -0.01062774658203125, -0.00862884521484375, -0.06109619140625, -0.03802490234375, -0.01557159423828125, 0.03704833984375, -0.004245758056640625, 0.007091522216796875, 0.03863525390625, -0.034271240234375, -0.0271759033203125, -0.0194854736328125, -0.0300445556640625, 0.035430908203125, -0.005634307861328125, -0.0229949951171875, -0.05450439453125, -0.0262451171875, -0.0220184326171875, -0.05963134765625, -0.02685546875, 0.050872802734375, -0.0023441314697265625, -0.037445068359375, -0.01373291015625, -0.0006365776062011719, -0.0019426345825195312, 0.031341552734375, -0.01556396484375, 0.0190277099609375, 0.007221221923828125, -0.0002086162567138672, -0.032501220703125, 0.029754638671875, -0.0255126953125, -0.007373809814453125, -0.003299713134765625, -0.0278472900390625, -0.049102783203125, 0.03363037109375, -0.048553466796875, -0.052520751953125, 0.054351806640625, -0.0190582275390625, -0.0015163421630859375, -0.0287322998046875, -0.028045654296875, -0.00817108154296875, 0.08380126953125, -0.053863525390625, -0.01959228515625, 0.0182342529296875, 0.0261383056640625, -0.0202484130859375, -0.0283050537109375, -0.0465087890625, -0.00743865966796875, -0.034942626953125, -0.0102081298828125, -0.052734375, 0.017303466796875, 0.00843048095703125, -0.04412841796875, 0.0296173095703125, -0.0589599609375, 0.0193634033203125, -0.022918701171875, 0.00946044921875, -0.03125, 0.026611328125, -0.037506103515625, 0.01378631591796875, -0.045562744140625, -0.031402587890625, -0.004070281982421875, 0.038818359375, -0.01232147216796875, -0.021820068359375, -0.0200958251953125, 0.0129547119140625, 0.03900146484375, -0.0271148681640625, -0.01247406005859375, 0.0133209228515625, 0.023193359375, 0.00865936279296875, 0.01361846923828125, -0.00797271728515625, -0.0248260498046875, 0.02032470703125, 0.0017871856689453125, -0.0254669189453125, 0.00252532958984375, -0.034393310546875, -0.006404876708984375, 0.0035724639892578125, -0.0369873046875, -0.0170440673828125, -0.03619384765625, -0.0250396728515625, 0.01293182373046875, -0.01157379150390625, -0.006855010986328125, -0.03009033203125, -0.0225067138671875, 0.0305633544921875, -0.006961822509765625, 0.003131866455078125, 0.004184722900390625, 0.040069580078125, 0.002460479736328125, -0.0267181396484375, 0.0067138671875, 0.028839111328125, 0.032379150390625, -0.008544921875, 0.06768798828125, 0.041412353515625, 0.0010700225830078125, 0.035614013671875, 0.0144195556640625, 0.0189056396484375, 0.01102447509765625, -0.0241241455078125, 0.0104827880859375, -0.002689361572265625, 0.007389068603515625, 0.01995849609375, -0.00608062744140625, -0.01230621337890625, -0.00010591745376586914, -0.01947021484375, -0.035369873046875, 0.0182342529296875, 0.005100250244140625, 0.03912353515625, -0.02325439453125, -0.072509765625, 0.0345458984375, -0.0792236328125, 0.044586181640625, -0.004070281982421875, 0.0094146728515625, 0.07379150390625, 0.0537109375, -0.0204315185546875, 0.041778564453125, 0.0013103485107421875, 0.035491943359375, 0.01059722900390625, 0.021575927734375, -0.02545166015625, 0.017578125, 0.0005803108215332031, 0.06927490234375, 0.0016756057739257812, -0.047607421875, -0.014007568359375, 0.0017366409301757812, -0.058258056640625, 0.0181121826171875, -0.03399658203125, 0.0236968994140625, -0.006290435791015625, -0.0208587646484375, 0.0058441162109375, -0.03155517578125, -0.052520751953125, -0.0457763671875, 0.0068511962890625, -0.0111846923828125, 0.00250244140625, -0.007579803466796875, 0.06939697265625, 0.0030231475830078125, 0.0258636474609375, -0.0230255126953125, 0.021759033203125, 0.0540771484375, 0.007282257080078125, 0.0190582275390625, 0.020355224609375, 0.0033111572265625, -0.01004791259765625, 0.025909423828125, -0.0252227783203125, -0.006717681884765625, 0.0233001708984375, 0.04815673828125, 0.00872039794921875, -0.01091766357421875, -0.0224609375, -0.05224609375, -0.0113677978515625, 0.0092010498046875, -0.01336669921875, -0.013458251953125, -0.016693115234375, -0.029388427734375, 0.007595062255859375, -0.01215362548828125, -0.0000959634780883789, -0.048980712890625, -0.03057861328125, -0.002582550048828125, 0.0016832351684570312, -0.0094451904296875, -0.0110015869140625, -0.018707275390625, -0.0227508544921875, 0.005062103271484375, 0.0570068359375, -0.034149169921875, -0.023590087890625, -0.030792236328125, -0.0290679931640625, 0.0465087890625, -0.0274200439453125, 0.012969970703125, -0.018768310546875, 0.005340576171875, -0.029998779296875, 0.02294921875, 0.0253143310546875, 0.020355224609375, -0.0885009765625, 0.059906005859375, -0.036224365234375, 0.002246856689453125, 0.0280609130859375, -0.0247802734375, -0.0723876953125, -0.059051513671875, 0.0166778564453125, -0.01495361328125, 0.007694244384765625, -0.032501220703125, -0.00502777099609375, 0.01079559326171875, 0.004703521728515625, -0.0321044921875, -0.0157318115234375, 0.039306640625, 0.01251983642578125, 0.034210205078125, 0.03460693359375, 0.042388916015625, 0.0026569366455078125, -0.039093017578125, -0.01425933837890625, -0.0643310546875, 0.01471710205078125, -0.0017671585083007812, 0.0073699951171875, 0.03302001953125, 0.041961669921875, 0.0201873779296875, 0.0157012939453125, 0.006618499755859375, 0.01314544677734375, -0.0279083251953125, -0.0416259765625, -0.0211334228515625, 0.052215576171875, -0.045440673828125, 0.032623291015625, 0.061553955078125, -0.052764892578125, -0.0312042236328125, -0.005767822265625, 0.01218414306640625, -0.0037841796875, -0.00646209716796875, -0.010986328125, 0.04620361328125, 0.1083984375, 0.0222015380859375, 0.0621337890625, 0.04278564453125, 0.0162811279296875, 0.01336669921875, -0.023834228515625, -0.0003910064697265625, -0.026092529296875, -0.00948333740234375, 0.00899505615234375, 0.0142059326171875, 0.025665283203125, 0.0036830902099609375, -0.0098724365234375, 0.0447998046875, 0.02215576171875, -0.061614990234375, 0.007785797119140625, -0.01197052001953125, -0.0075531005859375, 0.01235198974609375, -0.00560760498046875, -0.0004520416259765625, 0.0011272430419921875, 0.0182342529296875, 0.0355224609375, -0.0161285400390625, 0.015869140625, 0.0296783447265625, -0.0140228271484375, -0.0152130126953125, 0.02960205078125, 0.02459716796875, -0.00971221923828125, 0.006793975830078125, 0.02960205078125, -0.003078460693359375, 0.00201416015625, -0.003940582275390625, 0.0179595947265625, -0.035858154296875, -0.035675048828125, 0.0011224746704101562, -0.0128631591796875, -0.020660400390625, -0.032196044921875, -0.03466796875, 0.0221099853515625, 0.04150390625, -0.039031982421875, -0.0101776123046875, 0.0189666748046875, -0.00882720947265625, 0.051239013671875, -0.01300048828125, 0.0241851806640625, -0.0193939208984375, -0.054779052734375, -0.0077972412109375, -0.0361328125, -0.005245208740234375, -0.0001277923583984375, -0.0046539306640625, 0.08770751953125, -0.00553131103515625, -0.050811767578125, 0.0165557861328125, -0.01361083984375, -0.004688262939453125, 0.005306243896484375, 0.01377105712890625, -0.0220947265625, -0.0186004638671875, 0.018157958984375, -0.0221710205078125, -0.003387451171875, -0.00508880615234375, -0.046875, 0.06610107421875, -0.031982421875, 0.0340576171875, 0.0276031494140625, 0.01128387451171875, -0.009613037109375, 0.01177215576171875, -0.0104522705078125, 0.02020263671875, -0.0295257568359375, 0.01453399658203125, -0.05328369140625, -0.02081298828125, 0.0002486705780029297, 0.048858642578125, 0.039886474609375, 0.0142822265625, -0.02764892578125, -0.0187835693359375, -0.0307159423828125, -0.02227783203125, -0.0273590087890625, 0.071533203125, -0.04254150390625, -0.00348663330078125, 0.0095367431640625, -0.0306549072265625, 0.005344390869140625, 0.0166473388671875, -0.06298828125, -0.0214996337890625, -0.006938934326171875, -0.03851318359375, 0.025604248046875, 0.0062713623046875, -0.01399993896484375, 0.00817108154296875, 0.01030731201171875, -0.036834716796875, 0.03326416015625, 0.003692626953125, 0.0174560546875, -0.03192138671875, -0.0080413818359375, -0.01096343994140625, 0.035491943359375, -0.023193359375, 0.00148773193359375, 0.00008553266525268555, 0.02288818359375, 0.0310211181640625, -0.0084075927734375, -0.003459930419921875, 0.04974365234375, -0.049957275390625, 0.031402587890625, 0.056060791015625, 0.040252685546875, -0.0002582073211669922, -0.0322265625, 0.04559326171875, 0.046142578125, -0.017822265625, 0.003322601318359375, 0.018707275390625, -0.01451873779296875, -0.01427459716796875, -0.06231689453125, -0.05108642578125, -0.003398895263671875, -0.00958251953125, -0.01206207275390625, -0.01210784912109375, -0.0036602020263671875, 0.0048065185546875, 0.0011386871337890625, 0.019927978515625, 0.01413726806640625, 0.0028476715087890625, -0.0115814208984375, -0.0109100341796875, 0.00502777099609375, 0.056854248046875, 0.01369476318359375, 0.06939697265625, -0.04400634765625, -0.02325439453125, -0.0018377304077148438, 0.04473876953125, -0.0025806427001953125, 0.00200653076171875, -0.029327392578125, -0.049407958984375, 0.03778076171875, 0.03955078125, 0.0235748291015625, 0.045196533203125, 0.054901123046875, 0.031463623046875, -0.01328277587890625, 0.0033512115478515625, 0.0117340087890625, -0.01418304443359375, 0.060699462890625, -0.011260986328125, -0.006130218505859375, -0.02813720703125, -0.036773681640625, -0.030242919921875, 0.00659942626953125, 0.0291595458984375, -0.0198822021484375, 0.0175628662109375, -0.006534576416015625, -0.0245819091796875, 0.0019664764404296875, -0.0190582275390625, -0.01116180419921875, -0.0057830810546875, 0.0215911865234375, 0.0019817352294921875, 0.00577545166015625, -0.010009765625, -0.0184478759765625, 0.028839111328125, -0.018218994140625, 0.0469970703125, 0.053070068359375, -0.0172882080078125, 0.0161285400390625, 0.0027828216552734375, 0.0055694580078125, 0.001316070556640625, 0.0251007080078125, -0.00005936622619628906, -0.072021484375, -0.06695556640625, -0.06640625, 0.052337646484375, 0.041015625, 0.10015869140625, -0.0228729248046875, 0.0478515625, -0.01279449462890625, -0.00884246826171875, 0.0019664764404296875, 0.003936767578125, -0.038909912109375, -0.00011068582534790039, 0.0082550048828125, -0.004734039306640625, -0.043212890625, -0.0098419189453125, -0.0015039443969726562, -0.06402587890625, 0.029876708984375, -0.052734375, 0.0012359619140625, -0.03173828125, 0.017913818359375, -0.02911376953125, -0.07293701171875, -0.047454833984375, 0.01274871826171875, -0.0027027130126953125, 0.0236663818359375, -0.005405426025390625, 0.046600341796875, -0.021392822265625, -0.047760009765625, 0.034088134765625, -0.080810546875, 0.058258056640625, 0.0280303955078125, -0.0020809173583984375, -0.049591064453125, 0.016937255859375, -0.0036640167236328125, 0.0185089111328125, -0.00737762451171875, 0.061614990234375, 0.0167236328125, -0.051025390625, -0.0172576904296875, -0.01378631591796875, 0.02557373046875, -0.00440216064453125, 0.0072021484375, -0.0194091796875, -0.005931854248046875, -0.0221405029296875, 0.0292510986328125, -0.0052337646484375, 0.019500732421875, -0.02032470703125, -0.00606536865234375, 0.00031566619873046875, -0.052398681640625, -0.0301513671875, -0.03436279296875, 0.061767578125, 0.014801025390625, -0.032958984375, -0.032379150390625, -0.0030422210693359375, 0.06256103515625, 0.01806640625, 0.033050537109375, -0.027313232421875, -0.0302581787109375, -0.0286102294921875, -0.01222991943359375, -0.043609619140625, 0.0357666015625, -0.006816864013671875, 0.0173187255859375, 0.0202789306640625, -0.004039764404296875, 0.0341796875, 0.0084228515625, -0.003490447998046875, 0.062255859375, -0.03936767578125, -0.00508880615234375, -0.0007619857788085938, 0.0106658935546875, -0.041259765625, -0.0540771484375, 0.028564453125, -0.059844970703125, -0.02459716796875, -0.0162506103515625, 0.0257568359375, 0.026519775390625, -0.0206298828125, -0.050140380859375, 0.042938232421875, -0.01045989990234375, -0.0309295654296875, -0.059356689453125, 0.0273590087890625, -0.010009765625, 0.053955078125, 0.0001863241195678711, -0.052001953125, -0.0022716522216796875, 0.031707763671875, 0.01007080078125, 0.0352783203125, -0.036163330078125, 0.0252838134765625, -0.0035686492919921875, 0.06732177734375, 0.06463623046875, -0.009979248046875, -0.0097503662109375, 0.0133514404296875, 0.01551055908203125, 0.055572509765625, -0.0223388671875, 0.061614990234375, 0.015167236328125, -0.02392578125, -0.0022449493408203125, -0.0251617431640625, -0.0292205810546875, -0.0145263671875, 0.0489501953125, 0.0165252685546875, 0.02044677734375, -0.0153045654296875, -0.0704345703125, -0.064453125, 0.0038089752197265625, -0.0201568603515625, 0.0230560302734375, -0.0826416015625, 0.039337158203125, 0.0280609130859375, 0.0014009475708007812, -0.00289154052734375, 0.00409698486328125, -0.0088043212890625, -0.00788116455078125, 0.0259857177734375, -0.01364898681640625, -0.0192108154296875, -0.0019855499267578125, 0.052490234375, -0.0215911865234375, 0.032684326171875, 0.0028209686279296875, 0.00568389892578125, 0.047119140625, 0.03778076171875, 0.00627899169921875, -0.013031005859375, -0.01439666748046875, 0.040252685546875, 0.012664794921875, 0.0078277587890625, -0.0212860107421875, -0.0203704833984375, -0.00661468505859375, 0.0037326812744140625, 0.008941650390625, -0.0133209228515625, 0.003963470458984375, -0.001476287841796875, -0.01386260986328125, 0.029388427734375, 0.01364898681640625, -0.039306640625, -0.013458251953125, 0.037261962890625, -0.02392578125, -0.01019287109375, -0.0154266357421875, -0.0223846435546875, -0.00963592529296875, 0.005428314208984375, -0.0234832763671875, -0.057373046875, 0.04949951171875, 0.016082763671875, 0.0058746337890625, 0.035491943359375 ]
978e25a47c18ff7fa705bfc09b48b16c9ccf23ff
Wordpress Stackexchange Q: How to get URL param to shortcode? I can't find solution for this ... URL: www.foo.com/some_page/?name=John Page content: Hi [Name]! Worpress still redirects back to www.foo.com/some_page/ I tried everything ... I need something like the following in functions.php function name_shortcode() { return $_GET['name']; } add_shortcode( 'Name', 'name_shortcode' ); And on another page: Click here www.foo.com/some-page/?name=John A: If I understand your question correctly, you want to be able to get the parameter from the url, add it to the shortcode so you can add the parameter to the content. See if this works: add_shortcode('name', 'get_name'); function get_name() { return $_GET['name']; } In the wordpress backend editor you would have something like: Hello [name], Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Q: How to get URL param to shortcode? I can't find solution for this ... URL: www.foo.com/some_page/?name=John Page content: Hi [Name]! Worpress still redirects back to www.foo.com/some_page/ I tried everything ... I need something like the following in functions.php function name_shortcode() { return $_GET['name']; } add_shortcode( 'Name', 'name_shortcode' ); And on another page: Click here www.foo.com/some-page/?name=John A: If I understand your question correctly, you want to be able to get the parameter from the url, add it to the shortcode so you can add the parameter to the content. See if this works: add_shortcode('name', 'get_name'); function get_name() { return $_GET['name']; } In the wordpress backend editor you would have something like: Hello [name], Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. A: We built a plugin that will do this for you https://wordpress.org/plugins/display-url-params/ - It uses a simple shortcode to get URL parameters from the Query String and display them as dynamic content on pages and posts.
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:447245", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155588" }
[ 0.01558685302734375, 0.0065460205078125, 0.007389068603515625, -0.00879669189453125, -0.00754547119140625, 0.0036067962646484375, 0.004253387451171875, -0.051727294921875, 0.0028362274169921875, 0.0098114013671875, -0.0119476318359375, 0.0103759765625, -0.0088958740234375, -0.02850341796875, 0.0235137939453125, -0.01100921630859375, 0.018890380859375, 0.00897216796875, 0.005794525146484375, -0.01165008544921875, -0.03436279296875, -0.004421234130859375, 0.0038394927978515625, 0.015625, 0.034515380859375, -0.0163421630859375, 0.046539306640625, 0.0009398460388183594, 0.001972198486328125, -0.020050048828125, 0.028656005859375, -0.0270843505859375, 0.06353759765625, 0.0092315673828125, -0.06005859375, 0.056182861328125, -0.03570556640625, 0.00783538818359375, 0.0017480850219726562, 0.006168365478515625, 0.03460693359375, -0.02349853515625, -0.015777587890625, 0.0021877288818359375, -0.01055145263671875, -0.048828125, 0.05035400390625, -0.0181121826171875, -0.01090240478515625, 0.03887939453125, 0.06219482421875, 0.017547607421875, 0.043304443359375, 0.040191650390625, 0.0023136138916015625, 0.01507568359375, -0.00577545166015625, -0.04925537109375, 0.0039215087890625, -0.024505615234375, -0.0051116943359375, -0.02032470703125, 0.04718017578125, 0.040679931640625, 0.00952911376953125, 0.02642822265625, 0.0303802490234375, 0.012298583984375, -0.0160064697265625, 0.044952392578125, 0.0247955322265625, -0.042083740234375, -0.0262451171875, 0.0182647705078125, 0.01290130615234375, -0.0030517578125, 0.00740814208984375, 0.01873779296875, 0.0033283233642578125, 0.040283203125, 0.0084686279296875, -0.0537109375, -0.0265045166015625, 0.005649566650390625, 0.025360107421875, 0.0438232421875, -0.00466156005859375, -0.012969970703125, -0.02154541015625, -0.040771484375, -0.031768798828125, 0.0103912353515625, -0.034149169921875, 0.01033782958984375, -0.0347900390625, 0.01318359375, -0.030059814453125, 0.039215087890625, 0.01036834716796875, 0.0306396484375, -0.019317626953125, -0.0313720703125, 0.053619384765625, -0.068359375, -0.0052337646484375, 0.036712646484375, 0.0169677734375, 0.0491943359375, 0.04058837890625, 0.006641387939453125, -0.0027904510498046875, 0.01441192626953125, -0.020965576171875, 0.0207977294921875, -0.0126495361328125, 0.0479736328125, -0.041595458984375, -0.0009508132934570312, -0.03192138671875, 0.0194549560546875, -0.0091705322265625, 0.0218505859375, 0.0009160041809082031, -0.0001761913299560547, -0.037139892578125, -0.018768310546875, 0.0157623291015625, -0.05657958984375, 0.0213623046875, -0.0221099853515625, -0.032073974609375, 0.0231781005859375, 0.0170440673828125, 0.00867462158203125, 0.01397705078125, -0.001495361328125, 0.01386260986328125, -0.01107025146484375, -0.01001739501953125, -0.0037670135498046875, -0.007205963134765625, 0.0205078125, 0.033416748046875, -0.033538818359375, 0.02618408203125, 0.01384735107421875, 0.0112457275390625, 0.017364501953125, -0.00860595703125, -0.0302734375, 0.032684326171875, -0.006183624267578125, 0.06378173828125, -0.0081939697265625, -0.042572021484375, 0.01546478271484375, 0.01239776611328125, -0.00533294677734375, -0.06597900390625, -0.020111083984375, 0.029693603515625, -0.00475311279296875, 0.005504608154296875, -0.051483154296875, -0.0367431640625, -0.04766845703125, -0.062225341796875, -0.004055023193359375, 0.0015687942504882812, 0.07855224609375, -0.03558349609375, 0.036407470703125, -0.03533935546875, 0.00756072998046875, -0.007099151611328125, -0.01953125, -0.0164794921875, 0.0178985595703125, 0.032684326171875, 0.019927978515625, 0.00019562244415283203, -0.021270751953125, 0.0810546875, -0.018585205078125, -0.041839599609375, 0.055694580078125, 0.0041046142578125, 0.09295654296875, -0.01544952392578125, 0.005931854248046875, 0.017486572265625, 0.012451171875, -0.03887939453125, -0.01111602783203125, -0.01058197021484375, -0.0155792236328125, 0.016357421875, -0.030609130859375, 0.00882720947265625, 0.023345947265625, -0.004894256591796875, -0.01148223876953125, 0.01461029052734375, -0.01168060302734375, 0.0212554931640625, -0.01953125, -0.0098114013671875, 0.022186279296875, 0.0092010498046875, -0.0027751922607421875, 0.0166015625, -0.01273345947265625, -0.04901123046875, 0.0228424072265625, -0.0193939208984375, 0.04376220703125, -0.0178985595703125, 0.02899169921875, -0.0148162841796875, 0.056640625, -0.00496673583984375, -0.0282440185546875, -0.0239105224609375, 0.006168365478515625, 0.0294342041015625, -0.004878997802734375, -0.02215576171875, -0.01922607421875, -0.01273345947265625, 0.01274871826171875, -0.055908203125, 0.030975341796875, -0.0208282470703125, 0.0011348724365234375, -0.015716552734375, 0.01509857177734375, -0.007022857666015625, -0.005718231201171875, 0.00469207763671875, 0.03009033203125, 0.06329345703125, 0.040496826171875, 0.0294189453125, -0.0252838134765625, 0.0838623046875, -0.006282806396484375, 0.03021240234375, -0.059661865234375, -0.0083465576171875, 0.0279693603515625, 0.0257110595703125, 0.005985260009765625, -0.0121917724609375, -0.06024169921875, 0.01375579833984375, 0.018218994140625, -0.0162811279296875, 0.03155517578125, -0.006198883056640625, 0.00616455078125, -0.027435302734375, 0.00698089599609375, 0.035919189453125, -0.032073974609375, 0.006946563720703125, 0.03106689453125, 0.0213470458984375, 0.038818359375, -0.026702880859375, 0.0209197998046875, 0.003490447998046875, -0.01079559326171875, -0.013275146484375, 0.039306640625, 0.054412841796875, -0.0513916015625, -0.022979736328125, -0.014251708984375, -0.021484375, -0.0003249645233154297, 0.0096282958984375, 0.0156097412109375, -0.0100250244140625, -0.006389617919921875, 0.013092041015625, -0.017242431640625, 0.006626129150390625, 0.0145416259765625, 0.01351165771484375, 0.0190277099609375, 0.0219268798828125, 0.0242156982421875, -0.00861358642578125, 0.036376953125, 0.01549530029296875, -0.0147552490234375, 0.04742431640625, -0.022918701171875, 0.0265960693359375, -0.024444580078125, 0.007495880126953125, 0.0526123046875, -0.00970458984375, -0.01149749755859375, -0.00469207763671875, -0.01104736328125, -0.0226287841796875, 0.004634857177734375, 0.00966644287109375, -0.00927734375, -0.0333251953125, 0.039093017578125, 0.01300048828125, 0.022857666015625, 0.011505126953125, -0.026275634765625, -0.0034160614013671875, 0.03216552734375, -0.0731201171875, -0.065673828125, 0.00693511962890625, -0.03546142578125, -0.0162506103515625, 0.0174560546875, -0.04791259765625, -0.00482940673828125, 0.037017822265625, 0.0009508132934570312, 0.0137786865234375, -0.01849365234375, -0.0723876953125, -0.05413818359375, -0.090576171875, -0.0147705078125, -0.028106689453125, 0.0093231201171875, 0.0185699462890625, 0.0236358642578125, 0.003910064697265625, -0.010986328125, 0.0017156600952148438, 0.0216522216796875, -0.0229949951171875, -0.0384521484375, 0.00330352783203125, -0.00974273681640625, -0.004566192626953125, -0.01110076904296875, 0.031890869140625, 0.04132080078125, -0.031402587890625, 0.01178741455078125, -0.016571044921875, 0.00917816162109375, 0.0148468017578125, 0.005023956298828125, 0.0259552001953125, 0.0032520294189453125, 0.05810546875, -0.0474853515625, -0.015777587890625, -0.01702880859375, -0.04473876953125, -0.0234832763671875, 0.0295867919921875, 0.003963470458984375, -0.03326416015625, 0.0201873779296875, 0.003299713134765625, 0.024017333984375, 0.00562286376953125, 0.02056884765625, -0.0002713203430175781, -0.0228729248046875, -0.004489898681640625, -0.006282806396484375, 0.0352783203125, -0.004547119140625, 0.006374359130859375, 0.02716064453125, 0.010772705078125, 0.025360107421875, -0.01528167724609375, 0.01309967041015625, -0.028167724609375, 0.058685302734375, 0.0005435943603515625, 0.047149658203125, -0.062469482421875, -0.050750732421875, -0.0482177734375, 0.0806884765625, 0.00994873046875, 0.00904083251953125, -0.0132598876953125, -0.01087188720703125, -0.047027587890625, -0.042816162109375, -0.0650634765625, 0.00437164306640625, -0.05194091796875, 0.006740570068359375, -0.015472412109375, -0.005962371826171875, -0.030731201171875, -0.007640838623046875, -0.038665771484375, -0.03619384765625, 0.0260772705078125, -0.06072998046875, 0.02783203125, -0.0121612548828125, 0.0007066726684570312, -0.038238525390625, -0.037078857421875, -0.030120849609375, -0.01898193359375, -0.0301361083984375, 0.059844970703125, 0.034454345703125, 0.00545501708984375, -0.06292724609375, -0.015869140625, 0.03887939453125, 0.00795745849609375, 0.0262603759765625, 0.023162841796875, -0.00891876220703125, 0.052337646484375, 0.0250396728515625, 0.0211334228515625, -0.01611328125, 0.0197906494140625, 0.01806640625, -0.02032470703125, 0.033355712890625, -0.024322509765625, -0.0256805419921875, 0.0296173095703125, -0.046142578125, -0.06414794921875, -0.0325927734375, 0.043243408203125, 0.036651611328125, -0.019989013671875, 0.0340576171875, -0.0491943359375, -0.060089111328125, 0.03118896484375, -0.02081298828125, -0.020751953125, -0.00923919677734375, 0.0276641845703125, 0.0226593017578125, -0.0255889892578125, 0.028228759765625, -0.005062103271484375, 0.04583740234375, -0.0108795166015625, 0.0294952392578125, 0.004711151123046875, -0.037017822265625, 0.0443115234375, 0.0099029541015625, 0.031219482421875, -0.003818511962890625, 0.0302734375, -0.0011281967163085938, -0.0184783935546875, 0.0162353515625, 0.0186004638671875, -0.058502197265625, 0.0345458984375, -0.045623779296875, 0.0279083251953125, -0.031524658203125, -0.0037784576416015625, -0.0216217041015625, 0.031219482421875, 0.005199432373046875, -0.039276123046875, 0.01580810546875, -0.01157379150390625, 0.01849365234375, 0.00962066650390625, 0.00501251220703125, -0.0008335113525390625, -0.01064300537109375, -0.0225372314453125, 0.04449462890625, 0.0023174285888671875, 0.00969696044921875, 0.0181732177734375, -0.032501220703125, -0.0506591796875, 0.0308380126953125, -0.0118560791015625, 0.08404541015625, 0.005176544189453125, -0.030792236328125, 0.0210113525390625, -0.040679931640625, -0.042449951171875, -0.01174163818359375, 0.0148773193359375, 0.0233306884765625, 0.06866455078125, 0.00550079345703125, -0.01739501953125, 0.049285888671875, 0.055328369140625, -0.035980224609375, 0.0474853515625, -0.0240478515625, 0.024566650390625, -0.0033779144287109375, 0.07672119140625, 0.004131317138671875, 0.0313720703125, -0.031829833984375, 0.0090179443359375, 0.01288604736328125, 0.0133819580078125, 0.02490234375, 0.0206298828125, -0.01027679443359375, -0.011474609375, -0.01395416259765625, -0.03369140625, 0.01495361328125, 0.04437255859375, 0.05767822265625, 0.025054931640625, -0.037872314453125, -0.0250701904296875, -0.0504150390625, -0.0217437744140625, -0.0185546875, 0.027923583984375, 0.0200042724609375, -0.0275421142578125, -0.02667236328125, 0.01313018798828125, 0.06256103515625, -0.006626129150390625, -0.0261993408203125, -0.01331329345703125, 0.0175323486328125, 0.007076263427734375, -0.0063018798828125, 0.002513885498046875, -0.01103973388671875, 0.0241241455078125, 0.0015783309936523438, 0.01059722900390625, -0.0279541015625, 0.010833740234375, -0.035308837890625, -0.0231781005859375, 0.06561279296875, -0.023651123046875, 0.01239776611328125, -0.027496337890625, 0.0138092041015625, -0.00881195068359375, -0.0000909566879272461, 0.04571533203125, 0.010406494140625, -0.0313720703125, 0.02081298828125, -0.02362060546875, -0.013916015625, 0.035858154296875, -0.0190887451171875, -0.03704833984375, -0.040374755859375, -0.01140594482421875, 0.04010009765625, -0.0124969482421875, 0.020233154296875, 0.0006532669067382812, -0.0090789794921875, -0.027984619140625, 0.042755126953125, 0.0282745361328125, 0.0229034423828125, -0.0229339599609375, 0.042755126953125, 0.00948333740234375, 0.0178070068359375, -0.02398681640625, -0.047698974609375, 0.035369873046875, -0.013885498046875, -0.04095458984375, -0.01800537109375, -0.033111572265625, -0.0134429931640625, 0.01248931884765625, -0.007686614990234375, -0.005489349365234375, -0.00701904296875, 0.0094451904296875, -0.01812744140625, 0.018798828125, 0.0037994384765625, -0.045166015625, 0.00652313232421875, -0.03753662109375, -0.0457763671875, 0.007610321044921875, -0.0001304149627685547, 0.05322265625, -0.007568359375, 0.03924560546875, -0.0166168212890625, -0.0156402587890625, 0.0188446044921875, 0.150146484375, 0.015716552734375, 0.061553955078125, 0.0609130859375, 0.0006814002990722656, 0.0418701171875, 0.05078125, -0.01849365234375, -0.022247314453125, 0.0204620361328125, -0.00644683837890625, -0.0131683349609375, -0.00902557373046875, -0.0127410888671875, 0.026214599609375, -0.004756927490234375, 0.08575439453125, -0.049285888671875, 0.0291595458984375, 0.0472412109375, -0.016326904296875, 0.003314971923828125, 0.006927490234375, -0.025115966796875, -0.023040771484375, 0.0300140380859375, -0.0111083984375, -0.0126190185546875, 0.018341064453125, 0.020721435546875, -0.02801513671875, -0.021728515625, 0.01959228515625, 0.0030956268310546875, 0.0206756591796875, -0.0157623291015625, -0.0244903564453125, -0.00878143310546875, -0.028900146484375, -0.005275726318359375, 0.0310821533203125, -0.03851318359375, -0.05377197265625, 0.0071258544921875, 0.007778167724609375, -0.003208160400390625, -0.01104736328125, 0.01393890380859375, 0.02545166015625, 0.05499267578125, -0.015380859375, 0.017974853515625, 0.041351318359375, -0.032958984375, 0.0948486328125, -0.01236724853515625, -0.00884246826171875, -0.012176513671875, -0.058990478515625, -0.0194244384765625, -0.0323486328125, 0.0243072509765625, -0.017333984375, 0.037994384765625, 0.09014892578125, -0.03997802734375, -0.0245208740234375, 0.0276641845703125, 0.0059814453125, -0.019073486328125, -0.0185546875, -0.027679443359375, -0.052886962890625, -0.016510009765625, -0.020233154296875, -0.047149658203125, 0.0226898193359375, -0.0172119140625, -0.08050537109375, 0.0989990234375, 0.0269622802734375, 0.02996826171875, 0.007236480712890625, 0.04290771484375, -0.04046630859375, -0.006145477294921875, -0.045684814453125, 0.029632568359375, 0.0562744140625, 0.05010986328125, -0.061859130859375, -0.035980224609375, 0.00759124755859375, 0.06951904296875, 0.054840087890625, -0.004741668701171875, -0.004230499267578125, 0.005123138427734375, 0.0711669921875, 0.020782470703125, -0.0128021240234375, 0.0156402587890625, 0.049285888671875, -0.0165252685546875, 0.07037353515625, -0.0110931396484375, 0.02191162109375, -0.01468658447265625, 0.0665283203125, 0.060394287109375, -0.024261474609375, -0.032196044921875, 0.0164031982421875, 0.0140228271484375, -0.04949951171875, 0.012603759765625, 0.02508544921875, -0.041717529296875, -0.01224517822265625, 0.06463623046875, 0.037261962890625, 0.005756378173828125, -0.040985107421875, -0.0107574462890625, 0.04010009765625, 0.013885498046875, 0.02166748046875, 0.037139892578125, 0.02703857421875, 0.033599853515625, -0.007843017578125, 0.007030487060546875, 0.012054443359375, 0.00341796875, 0.08990478515625, 0.031768798828125, 0.0235748291015625, -0.0506591796875, -0.0207366943359375, 0.059722900390625, 0.11224365234375, -0.0506591796875, -0.0390625, -0.00446319580078125, -0.00801849365234375, 0.0172271728515625, -0.0176544189453125, 0.00016295909881591797, -0.0073089599609375, 0.0206756591796875, -0.06683349609375, 0.006610870361328125, 0.036468505859375, 0.030731201171875, -0.024505615234375, -0.002895355224609375, -0.04608154296875, -0.0035724639892578125, -0.028656005859375, -0.004955291748046875, 0.019256591796875, 0.058807373046875, 0.019439697265625, 0.0275726318359375, -0.013824462890625, -0.0170440673828125, 0.02325439453125, 0.0238037109375, -0.0120391845703125, -0.0008435249328613281, -0.0011730194091796875, -0.0256805419921875, -0.0222625732421875, 0.017425537109375, 0.046051025390625, 0.047760009765625, 0.029266357421875, 0.006832122802734375, 0.0190277099609375, 0.0180206298828125, 0.051300048828125, -0.01079559326171875, 0.0654296875, -0.050048828125, 0.011322021484375, -0.045989990234375, -0.034088134765625, -0.052459716796875, -0.0107269287109375, 0.0182342529296875, -0.019073486328125, 0.0401611328125, -0.00556182861328125, -0.0226593017578125, 0.024505615234375, -0.043731689453125, 0.045440673828125, -0.00836944580078125, -0.04937744140625, 0.004734039306640625, -0.013092041015625, -0.054290771484375, 0.0174407958984375, 0.047393798828125, -0.0037975311279296875, 0.01397705078125, -0.018768310546875, -0.02838134765625, -0.0040283203125, 0.038482666015625, 0.0107269287109375, 0.031280517578125, 0.0010213851928710938, -0.0133514404296875, -0.0421142578125, -0.018341064453125, 0.00046896934509277344, 0.0222625732421875, 0.002880096435546875, 0.04425048828125, 0.001369476318359375, 0.01232147216796875, -0.0104522705078125, -0.0029621124267578125, 0.004749298095703125, -0.048370361328125, 0.0576171875, 0.025848388671875, -0.0010232925415039062, -0.0318603515625, -0.0195465087890625, 0.05889892578125, 0.0175628662109375, 0.002780914306640625, 0.048095703125, -0.0182037353515625, -0.00817108154296875, 0.005008697509765625, 0.033966064453125, -0.0276336669921875, -0.032257080078125, -0.037841796875, -0.0249176025390625, 0.01163482666015625, 0.024658203125, -0.0002732276916503906, 0.049896240234375, 0.038421630859375, 0.00307464599609375, 0.046539306640625, -0.04681396484375, 0.060791015625, 0.02252197265625, 0.01494598388671875, -0.01541900634765625, -0.0128936767578125, -0.018280029296875, -0.0006036758422851562, 0.009521484375, -0.0189361572265625, -0.00033593177795410156, 0.001300811767578125, 0.007312774658203125, -0.021575927734375, 0.0271453857421875, -0.004886627197265625, 0.01157379150390625, 0.0109405517578125, 0.01129150390625, -0.037139892578125, -0.01016998291015625, -0.006816864013671875, -0.049285888671875, -0.008697509765625, 0.023956298828125, -0.0284576416015625, 0.0175018310546875, -0.035858154296875, -0.0163726806640625, 0.0022487640380859375, -0.006290435791015625, -0.0302886962890625, -0.01329803466796875, -0.001605987548828125, 0.023040771484375, -0.0251312255859375, 0.007022857666015625, -0.0016231536865234375, 0.02764892578125, -0.04119873046875, -0.0259552001953125, -0.022430419921875, 0.0036945343017578125, -0.02825927734375, 0.0181427001953125, 0.0447998046875, 0.00286102294921875, 0.002048492431640625, 0.024200439453125, -0.00862884521484375, 0.07269287109375, -0.083740234375, -0.041900634765625, 0.00968170166015625, 0.0091705322265625, -0.0029048919677734375, -0.059173583984375, -0.001300811767578125, -0.036376953125, 0.048370361328125, 0.008209228515625, -0.0062713623046875, -0.0016069412231445312, -0.04791259765625, -0.0484619140625, -0.006591796875, 0.0226593017578125, -0.054168701171875, -0.01546478271484375, -0.023040771484375, 0.002155303955078125, -0.012603759765625, -0.0111236572265625, -0.0088958740234375, -0.04034423828125, 0.017486572265625, 0.027099609375, 0.0701904296875, -0.0147857666015625, 0.037200927734375, -0.039947509765625, 0.036956787109375, -0.0131378173828125, 0.0092010498046875, 0.04046630859375, -0.033966064453125, 0.049407958984375, 0.05267333984375, -0.039886474609375, -0.0242156982421875, -0.00972747802734375, -0.044952392578125, -0.0099639892578125, -0.06317138671875, -0.01532745361328125, -0.009735107421875, 0.01461029052734375, 0.050933837890625, -0.0030345916748046875, -0.03131103515625, -0.0283355712890625, 0.0423583984375, -0.0019178390502929688, 0.0055389404296875, 0.021484375, -0.0517578125, -0.0146484375, -0.032562255859375, -0.01171875, -0.0237579345703125, 0.010040283203125, -0.0579833984375, -0.0010690689086914062, -0.029327392578125, 0.007598876953125, -0.0445556640625, -0.0445556640625, 0.052154541015625, -0.0218353271484375, 0.03326416015625, -0.01154327392578125, 0.046600341796875, 0.023101806640625, 0.0228729248046875, 0.00542449951171875, 0.051849365234375, -0.016876220703125, -0.0027637481689453125, 0.0237579345703125, 0.00762176513671875, -0.0033206939697265625, 0.0238037109375, -0.002742767333984375, 0.039031982421875, -0.0050811767578125, 0.03375244140625, -0.0181427001953125, 0.07623291015625, 0.027923583984375, 0.01537322998046875, -0.037353515625, 0.043731689453125, 0.0067291259765625, 0.0394287109375, -0.01142120361328125, 0.0099029541015625, 0.06414794921875, -0.07281494140625, -0.00789642333984375, 0.00737762451171875, 0.0146026611328125, -0.024749755859375, -0.0005741119384765625, -0.01264190673828125, 0.04150390625, -0.0017137527465820312 ]
0b03a5f34793a959611b49498ae3f84bf5906500
Wordpress Stackexchange Q: Change label of title field for posts in the backend I am trying to add some HTML to the title label in the backend of WordPress. Attempt 1: I am using the following (simplified) function: function change_post_titles() { global $post, $title, $action, $current_screen; $title = 'foo<br>bar'; } add_action('admin_head', 'change_post_titles'); This works in the way that the label of the title field is indeed changed, however the HTML tags get encoded afterwards. This mean that the label looks like: foo<br>bar Instead of: foo bar Attempt 2: I also tried using a gettext filter, but that just completely filters (removes) the HTML. add_filter('gettext', 'change_post_titles'); function change_post_titles( $translated_text, $text, $domain ) { return $translated_text = 'foo<br>bar'; } Is there any way to change the title label (programmatically) in a way I can add HTML? A: It is not possible to add HTML to it. For example, wp-admin/edit.php uses the following code: <h1 class="wp-heading-inline"> <?php echo esc_html( $post_type_object->labels->name ); ?> </h1> As you can see, this uses the esc_html() function. This prevents you from adding html code. This works this way for security reasons.
Q: Change label of title field for posts in the backend I am trying to add some HTML to the title label in the backend of WordPress. Attempt 1: I am using the following (simplified) function: function change_post_titles() { global $post, $title, $action, $current_screen; $title = 'foo<br>bar'; } add_action('admin_head', 'change_post_titles'); This works in the way that the label of the title field is indeed changed, however the HTML tags get encoded afterwards. This mean that the label looks like: foo<br>bar Instead of: foo bar Attempt 2: I also tried using a gettext filter, but that just completely filters (removes) the HTML. add_filter('gettext', 'change_post_titles'); function change_post_titles( $translated_text, $text, $domain ) { return $translated_text = 'foo<br>bar'; } Is there any way to change the title label (programmatically) in a way I can add HTML? A: It is not possible to add HTML to it. For example, wp-admin/edit.php uses the following code: <h1 class="wp-heading-inline"> <?php echo esc_html( $post_type_object->labels->name ); ?> </h1> As you can see, this uses the esc_html() function. This prevents you from adding html code. This works this way for security reasons. A: function change_post_titles() { global $post, $title, $action, $current_screen; $title = "foo<br>bar"; $title = str_replace('<br>', ' ', $title); } add_action('admin_head', 'change_post_titles'); Use this this will give the result you want. Please check it let me know for any doubts.
wordpress
{ "language": "en", "length": 220, "provenance": "stackexchange_00019.jsonl.gz:447296", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155771" }
[ 0.01482391357421875, -0.023681640625, -0.01033782958984375, 0.039825439453125, -0.00928497314453125, -0.03143310546875, 0.043701171875, -0.03179931640625, -0.01788330078125, 0.0164337158203125, 0.01354217529296875, -0.0010471343994140625, -0.0155181884765625, -0.0367431640625, 0.009918212890625, -0.013885498046875, 0.021270751953125, 0.02264404296875, 0.0499267578125, -0.0044097900390625, -0.0281982421875, 0.0035800933837890625, 0.046142578125, -0.0013027191162109375, 0.01320648193359375, -0.06768798828125, 0.105712890625, -0.044586181640625, 0.0202484130859375, -0.03173828125, 0.0289306640625, 0.0034008026123046875, 0.034332275390625, 0.013946533203125, -0.03277587890625, 0.04010009765625, 0.007434844970703125, 0.0024051666259765625, -0.004261016845703125, 0.025787353515625, 0.0290985107421875, -0.01049041748046875, 0.030059814453125, 0.01444244384765625, 0.0022754669189453125, -0.049652099609375, 0.06500244140625, -0.017181396484375, 0.01052093505859375, -0.0406494140625, 0.01360321044921875, 0.02349853515625, 0.0287017822265625, -0.0380859375, 0.005580902099609375, 0.044677734375, -0.007305145263671875, -0.03411865234375, 0.0238494873046875, -0.0014896392822265625, 0.004497528076171875, -0.037017822265625, 0.0187530517578125, -0.0139007568359375, 0.010833740234375, 0.015380859375, 0.0223541259765625, 0.018096923828125, -0.023040771484375, 0.00417327880859375, 0.01739501953125, -0.03240966796875, 0.00400543212890625, -0.04534912109375, 0.031890869140625, 0.039215087890625, -0.0272216796875, -0.013153076171875, 0.0181732177734375, 0.003955841064453125, 0.06878662109375, 0.0263671875, 0.011749267578125, -0.0219573974609375, 0.0266265869140625, -0.00211334228515625, 0.004856109619140625, -0.028839111328125, -0.0178375244140625, -0.028564453125, -0.0253448486328125, 0.002574920654296875, -0.043121337890625, 0.01279449462890625, -0.00292205810546875, -0.0145416259765625, 0.024017333984375, 0.022064208984375, -0.00386810302734375, -0.003780364990234375, -0.00408935546875, -0.032806396484375, 0.01078033447265625, -0.007526397705078125, 0.0090179443359375, 0.0212860107421875, -0.0377197265625, -0.0007543563842773438, 0.050140380859375, 0.05474853515625, 0.01140594482421875, 0.016845703125, -0.017425537109375, 0.0008935928344726562, -0.04083251953125, 0.038543701171875, -0.0262908935546875, 0.003498077392578125, -0.00433349609375, 0.023040771484375, -0.0135955810546875, -0.01067352294921875, 0.0009374618530273438, 0.0014848709106445312, 0.028411865234375, 0.02349853515625, -0.018646240234375, -0.0033893585205078125, -0.016815185546875, -0.0180206298828125, -0.017669677734375, 0.025146484375, 0.0836181640625, 0.04693603515625, 0.0092620849609375, -0.0021514892578125, -0.0265655517578125, -0.0228424072265625, -0.01209259033203125, 0.005268096923828125, -0.0028057098388671875, -0.00838470458984375, 0.033447265625, -0.0217742919921875, -0.0167999267578125, 0.0170745849609375, 0.00044155120849609375, 0.0213623046875, 0.0011510848999023438, -0.0596923828125, 0.054595947265625, -0.05401611328125, 0.033905029296875, 0.017181396484375, -0.0219573974609375, -0.00640869140625, 0.058624267578125, -0.034149169921875, -0.041778564453125, -0.05010986328125, 0.025115966796875, -0.01654052734375, 0.0160980224609375, -0.00958251953125, -0.040496826171875, 0.0311431884765625, -0.046112060546875, -0.0085601806640625, 0.0118865966796875, 0.0019521713256835938, 0.039031982421875, 0.0194244384765625, 0.0016956329345703125, -0.027679443359375, -0.006000518798828125, -0.021240234375, -0.018768310546875, 0.02569580078125, 0.0275421142578125, -0.0014028549194335938, -0.016204833984375, -0.031707763671875, 0.047698974609375, -0.00574493408203125, -0.057647705078125, -0.011810302734375, 0.0172576904296875, 0.058135986328125, 0.043060302734375, 0.026336669921875, 0.018768310546875, -0.023529052734375, -0.00848388671875, -0.03759765625, -0.0150299072265625, -0.021820068359375, -0.0233917236328125, -0.01149749755859375, -0.021270751953125, 0.054229736328125, 0.034149169921875, -0.0167388916015625, 0.023712158203125, 0.02532958984375, 0.022216796875, -0.01549530029296875, 0.01018524169921875, -0.0008692741394042969, 0.004474639892578125, 0.0088348388671875, 0.01445770263671875, -0.0032825469970703125, -0.0212249755859375, 0.0007891654968261719, -0.0345458984375, 0.0152587890625, -0.0146026611328125, 0.03125, -0.00836944580078125, -0.00493621826171875, 0.0219879150390625, -0.02691650390625, 0.022979736328125, 0.048858642578125, 0.06353759765625, -0.022735595703125, 0.01052093505859375, -0.034423828125, 0.056640625, 0.00439453125, -0.024200439453125, 0.0297088623046875, 0.039703369140625, 0.006988525390625, -0.03839111328125, -0.01482391357421875, -0.03253173828125, -0.0885009765625, 0.00377655029296875, 0.0872802734375, 0.05755615234375, 0.0296478271484375, 0.0562744140625, 0.021514892578125, 0.03521728515625, 0.017364501953125, 0.0699462890625, -0.0648193359375, -0.0158233642578125, -0.0014925003051757812, -0.021728515625, -0.00347900390625, 0.039031982421875, -0.0836181640625, -0.004985809326171875, 0.060577392578125, -0.005306243896484375, -0.01474761962890625, -0.0115966796875, -0.0094757080078125, 0.010955810546875, -0.062744140625, -0.05462646484375, -0.01922607421875, 0.06292724609375, 0.00323486328125, 0.038055419921875, 0.02630615234375, -0.042633056640625, 0.0162811279296875, 0.01067352294921875, -0.01509857177734375, 0.002437591552734375, 0.01384735107421875, -0.031829833984375, 0.01189422607421875, -0.0631103515625, 0.020904541015625, 0.0152130126953125, -0.018402099609375, -0.01078033447265625, 0.0017681121826171875, -0.03704833984375, -0.0281829833984375, 0.01934814453125, -0.041351318359375, -0.0085601806640625, -0.002197265625, 0.00038909912109375, 0.00994110107421875, 0.005596160888671875, 0.042388916015625, -0.004901885986328125, 0.039764404296875, 0.00923919677734375, -0.00611114501953125, 0.014984130859375, -0.050262451171875, 0.03521728515625, -0.0191650390625, 0.06524658203125, 0.0614013671875, 0.015869140625, -0.0023670196533203125, -0.003307342529296875, -0.023162841796875, -0.01525115966796875, 0.00047779083251953125, -0.0255889892578125, -0.01277923583984375, -0.09228515625, -0.0031719207763671875, 0.0197906494140625, 0.019622802734375, -0.015594482421875, -0.046356201171875, -0.02655029296875, 0.0254974365234375, -0.064453125, -0.042999267578125, -0.018280029296875, -0.02276611328125, -0.0279693603515625, 0.023651123046875, -0.01024627685546875, 0.015869140625, 0.031341552734375, 0.0010585784912109375, 0.028778076171875, 0.0019168853759765625, -0.042572021484375, -0.00507354736328125, -0.06536865234375, -0.02581787109375, -0.0113525390625, 0.009368896484375, 0.0097503662109375, 0.030609130859375, 0.005092620849609375, -0.042327880859375, 0.006351470947265625, 0.047088623046875, -0.0050506591796875, 0.0142669677734375, 0.036529541015625, -0.0560302734375, -0.00034427642822265625, 0.00018846988677978516, -0.053070068359375, -0.00856781005859375, 0.0185699462890625, -0.036102294921875, -0.039154052734375, 0.03167724609375, -0.005390167236328125, -0.0217742919921875, 0.037933349609375, 0.053375244140625, -0.00705718994140625, -0.01800537109375, -0.0271453857421875, -0.0018930435180664062, -0.03216552734375, 0.0015010833740234375, -0.01253509521484375, 0.0223846435546875, -0.00762176513671875, 0.046783447265625, 0.034820556640625, 0.014434814453125, 0.045928955078125, 0.01678466796875, -0.0540771484375, -0.0138397216796875, -0.01444244384765625, -0.0322265625, -0.0205841064453125, -0.01171875, 0.00838470458984375, -0.0205841064453125, 0.05169677734375, 0.00450897216796875, 0.032745361328125, -0.01294708251953125, -0.046966552734375, 0.03375244140625, -0.060699462890625, 0.008026123046875, -0.0133209228515625, -0.0298004150390625, 0.006938934326171875, 0.08746337890625, -0.038421630859375, -0.020111083984375, -0.0036640167236328125, 0.01959228515625, -0.041778564453125, -0.04302978515625, -0.03619384765625, -0.002674102783203125, -0.05462646484375, 0.001766204833984375, -0.00321197509765625, -0.02008056640625, -0.036163330078125, 0.07794189453125, -0.04595947265625, -0.002628326416015625, 0.032623291015625, -0.0254669189453125, 0.0064697265625, 0.02178955078125, 0.003131866455078125, -0.005527496337890625, -0.0147552490234375, -0.020751953125, -0.08465576171875, -0.01331329345703125, -0.004657745361328125, 0.04022216796875, -0.01129913330078125, 0.00548553466796875, -0.035369873046875, 0.037261962890625, 0.0158233642578125, -0.00518798828125, 0.038909912109375, 0.01004791259765625, 0.035430908203125, -0.007747650146484375, 0.007442474365234375, -0.025848388671875, 0.003177642822265625, 0.0254669189453125, -0.04278564453125, 0.06982421875, 0.012908935546875, -0.004131317138671875, 0.045257568359375, -0.05279541015625, -0.07891845703125, -0.0625, -0.0266876220703125, -0.0168304443359375, 0.007770538330078125, -0.028472900390625, -0.0579833984375, -0.076416015625, 0.07421875, 0.0262298583984375, -0.006267547607421875, -0.013885498046875, 0.06512451171875, 0.0068206787109375, -0.0406494140625, -0.0227203369140625, 0.002719879150390625, 0.0245819091796875, -0.0278472900390625, 0.05218505859375, -0.00048732757568359375, -0.0240325927734375, 0.1094970703125, -0.0220947265625, 0.01528167724609375, -0.00908660888671875, 0.0150299072265625, 0.011749267578125, 0.00199127197265625, -0.006023406982421875, 0.017730712890625, -0.00004565715789794922, 0.03912353515625, 0.0033111572265625, 0.00313568115234375, 0.012603759765625, 0.0014286041259765625, -0.01409912109375, -0.013824462890625, -0.0015697479248046875, -0.03271484375, 0.0198516845703125, 0.041748046875, -0.042694091796875, 0.0157928466796875, 0.017608642578125, -0.031646728515625, -0.05352783203125, -0.0023746490478515625, -0.037872314453125, -0.041748046875, -0.032806396484375, -0.00943756103515625, 0.006313323974609375, -0.030548095703125, 0.01812744140625, -0.009246826171875, 0.06365966796875, 0.005550384521484375, -0.032257080078125, -0.01270294189453125, -0.0209808349609375, 0.048126220703125, -0.007732391357421875, 0.03515625, 0.0259857177734375, 0.0254058837890625, 0.035736083984375, 0.00846099853515625, 0.007671356201171875, 0.024810791015625, -0.01534271240234375, 0.015380859375, 0.04132080078125, -0.0184326171875, 0.01456451416015625, 0.05804443359375, 0.03912353515625, 0.01242828369140625, -0.0399169921875, 0.046234130859375, 0.0210113525390625, 0.0221099853515625, -0.0104827880859375, 0.0087890625, 0.008148193359375, 0.0107879638671875, 0.005352020263671875, -0.042449951171875, 0.0024127960205078125, 0.02374267578125, 0.043701171875, 0.044677734375, -0.00986480712890625, -0.01210784912109375, -0.03240966796875, -0.01025390625, 0.06036376953125, -0.01020050048828125, -0.05963134765625, -0.041595458984375, -0.0080108642578125, 0.048797607421875, -0.035003662109375, -0.00913238525390625, -0.00797271728515625, -0.0372314453125, -0.00028777122497558594, 0.0008530616760253906, -0.004550933837890625, -0.027191162109375, -0.02008056640625, -0.072265625, -0.027130126953125, 0.00007849931716918945, 0.0261383056640625, 0.000995635986328125, -0.0061492919921875, -0.034454345703125, 0.0179443359375, -0.01396942138671875, 0.06695556640625, -0.0406494140625, -0.025634765625, -0.0270538330078125, 0.00010842084884643555, 0.068359375, 0.051422119140625, -0.049774169921875, 0.012939453125, -0.043701171875, -0.0096282958984375, -0.06048583984375, -0.059295654296875, -0.040985107421875, -0.01137542724609375, 0.004425048828125, 0.032318115234375, -0.01910400390625, 0.002719879150390625, 0.0008282661437988281, 0.01763916015625, -0.0013599395751953125, 0.08526611328125, -0.0287017822265625, 0.05291748046875, 0.0146331787109375, 0.046356201171875, -0.01248931884765625, 0.01180267333984375, -0.0289306640625, -0.0102081298828125, 0.0024261474609375, -0.043609619140625, -0.01531982421875, -0.006732940673828125, -0.00048041343688964844, 0.034027099609375, 0.040679931640625, 0.00231170654296875, 0.029296875, 0.005107879638671875, 0.00975799560546875, -0.005474090576171875, -0.034454345703125, -0.007720947265625, -0.0119781494140625, 0.06890869140625, -0.0135345458984375, 0.0092315673828125, -0.0166015625, 0.00948333740234375, 0.018096923828125, -0.0197906494140625, 0.0175628662109375, 0.002849578857421875, -0.0382080078125, 0.00707244873046875, 0.03729248046875, 0.01953125, 0.03485107421875, -0.0075836181640625, 0.020904541015625, 0.0141754150390625, -0.0140228271484375, 0.0078277587890625, 0.041412353515625, 0.050140380859375, -0.01244354248046875, 0.0126190185546875, 0.027069091796875, -0.032562255859375, 0.0240478515625, 0.029998779296875, 0.0609130859375, -0.03167724609375, 0.00682830810546875, 0.03009033203125, -0.037384033203125, 0.004505157470703125, -0.0027370452880859375, 0.0008206367492675781, -0.002685546875, 0.0261383056640625, -0.02880859375, -0.01128387451171875, 0.012725830078125, -0.0056915283203125, -0.004543304443359375, -0.0027256011962890625, 0.032989501953125, 0.005390167236328125, -0.057830810546875, -0.01261138916015625, 0.035614013671875, -0.0286102294921875, -0.04241943359375, 0.0197601318359375, 0.031219482421875, -0.034881591796875, -0.1263427734375, 0.0136260986328125, 0.046356201171875, -0.05126953125, -0.02972412109375, 0.035888671875, 0.0433349609375, 0.09552001953125, -0.0012912750244140625, -0.01392364501953125, 0.0665283203125, 0.0110321044921875, 0.006885528564453125, -0.0184173583984375, -0.02789306640625, 0.0297088623046875, -0.031646728515625, -0.00347137451171875, -0.02685546875, 0.027130126953125, -0.0034389495849609375, -0.0204010009765625, 0.0253143310546875, 0.023345947265625, -0.040985107421875, -0.005718231201171875, -0.008880615234375, 0.0218353271484375, -0.0177459716796875, -0.0186920166015625, -0.040252685546875, -0.025482177734375, -0.043121337890625, -0.07635498046875, 0.0221405029296875, -0.035980224609375, -0.080810546875, 0.11700439453125, 0.039215087890625, 0.057403564453125, -0.0034809112548828125, 0.037872314453125, -0.051361083984375, -0.004070281982421875, -0.03790283203125, 0.002498626708984375, -0.0012111663818359375, 0.0237274169921875, -0.0465087890625, -0.0133514404296875, 0.0005273818969726562, 0.04754638671875, -0.0290069580078125, -0.01702880859375, 0.033599853515625, -0.0121612548828125, 0.0160980224609375, 0.0355224609375, 0.003505706787109375, -0.0155792236328125, -0.00814056396484375, 0.003543853759765625, -0.004611968994140625, -0.0195465087890625, 0.022430419921875, -0.04681396484375, -0.0316162109375, 0.0164947509765625, 0.0265960693359375, 0.0233154296875, 0.006801605224609375, 0.007518768310546875, -0.0225372314453125, 0.0078125, 0.0186767578125, -0.01538848876953125, -0.02984619140625, 0.0165557861328125, 0.02313232421875, -0.0655517578125, 0.021087646484375, -0.04534912109375, 0.04315185546875, 0.0249176025390625, -0.0015611648559570312, 0.01517486572265625, -0.0004215240478515625, 0.027374267578125, -0.013458251953125, -0.00670623779296875, -0.00006765127182006836, 0.02447509765625, 0.023345947265625, -0.006671905517578125, 0.0144500732421875, -0.04290771484375, 0.006549835205078125, 0.045257568359375, 0.024505615234375, -0.0276031494140625, -0.003910064697265625, 0.0125885009765625, 0.0137481689453125, 0.005489349365234375, -0.04241943359375, 0.0002532005310058594, -0.02398681640625, 0.00704193115234375, -0.0168304443359375, -0.003589630126953125, 0.0230255126953125, 0.0251312255859375, 0.01535797119140625, 0.01395416259765625, -0.041168212890625, -0.01006317138671875, -0.058074951171875, 0.00904083251953125, 0.0046844482421875, 0.072998046875, 0.040008544921875, 0.052276611328125, -0.0300445556640625, -0.042816162109375, -0.01739501953125, 0.03472900390625, 0.006542205810546875, 0.007965087890625, -0.0216217041015625, -0.0226898193359375, 0.003662109375, 0.012725830078125, 0.039154052734375, -0.008544921875, 0.03851318359375, 0.039154052734375, -0.01335906982421875, -0.0081634521484375, 0.0119171142578125, 0.002544403076171875, 0.00791168212890625, -0.0251617431640625, 0.00601959228515625, -0.004734039306640625, -0.00868988037109375, 0.004833221435546875, 0.034942626953125, -0.0074920654296875, -0.0272674560546875, 0.032196044921875, -0.01113128662109375, -0.0264434814453125, 0.032135009765625, -0.006500244140625, 0.058502197265625, 0.0006442070007324219, -0.064697265625, -0.0221099853515625, 0.0251007080078125, -0.051055908203125, 0.0251922607421875, 0.040863037109375, -0.03570556640625, 0.0106658935546875, 0.005397796630859375, -0.0175018310546875, 0.025390625, 0.005306243896484375, -0.00033855438232421875, 0.0802001953125, 0.0167388916015625, 0.0268402099609375, -0.0132904052734375, -0.01922607421875, 0.01268768310546875, 0.029266357421875, 0.0214691162109375, -0.0243377685546875, 0.012908935546875, 0.036468505859375, -0.031219482421875, 0.0433349609375, -0.046051025390625, -0.03192138671875, 0.038604736328125, -0.0089874267578125, 0.0020771026611328125, -0.01033782958984375, 0.001949310302734375, 0.0208740234375, 0.038604736328125, -0.034423828125, 0.01183319091796875, 0.0035839080810546875, 0.0084228515625, -0.03857421875, -0.005828857421875, -0.023162841796875, -0.0252227783203125, -0.0144805908203125, -0.00909423828125, 0.012481689453125, 0.0116729736328125, 0.0123291015625, 0.0264434814453125, 0.017578125, 0.004833221435546875, 0.01922607421875, -0.0229034423828125, 0.0345458984375, 0.038543701171875, -0.0312347412109375, 0.00290679931640625, 0.0325927734375, -0.0063629150390625, 0.0117340087890625, 0.037200927734375, 0.007251739501953125, 0.01123809814453125, -0.027557373046875, -0.01666259765625, 0.00693511962890625, 0.019500732421875, -0.0175018310546875, 0.014739990234375, 0.01555633544921875, -0.0135650634765625, -0.0390625, 0.0211029052734375, -0.023681640625, -0.04522705078125, -0.0128173828125, 0.00025177001953125, -0.0196990966796875, -0.0521240234375, -0.044158935546875, -0.0166778564453125, -0.00917816162109375, -0.01416778564453125, 0.013763427734375, -0.0217132568359375, -0.0016756057739257812, -0.0015897750854492188, -0.0030193328857421875, -0.0257415771484375, -0.0044097900390625, 0.03289794921875, -0.045166015625, -0.03802490234375, -0.05706787109375, 0.0015668869018554688, -0.08538818359375, -0.005779266357421875, 0.0322265625, -0.00621795654296875, -0.0226287841796875, -0.0145416259765625, -0.0091705322265625, 0.026397705078125, 0.01039886474609375, -0.017913818359375, -0.01270294189453125, 0.0208587646484375, -0.0172119140625, -0.0819091796875, 0.00531768798828125, -0.0872802734375, 0.0051422119140625, -0.0199432373046875, -0.011444091796875, -0.00598907470703125, -0.0523681640625, -0.057403564453125, 0.00476837158203125, 0.0043792724609375, -0.027496337890625, 0.0017442703247070312, 0.005126953125, -0.0322265625, 0.0704345703125, 0.0210418701171875, -0.0298614501953125, 0.0085601806640625, 0.01568603515625, 0.0328369140625, 0.0310821533203125, 0.032440185546875, -0.01528167724609375, -0.03643798828125, -0.002895355224609375, -0.00937652587890625, 0.0357666015625, -0.0000171661376953125, -0.02105712890625, -0.01509857177734375, -0.00384521484375, -0.09027099609375, -0.059906005859375, -0.03497314453125, 0.07098388671875, 0.0128021240234375, -0.08465576171875, -0.021453857421875, -0.0321044921875, 0.0457763671875, 0.00365447998046875, 0.01160430908203125, -0.0185394287109375, -0.018035888671875, -0.0135498046875, 0.0094757080078125, -0.01776123046875, 0.0037078857421875, -0.051239013671875, -0.017120361328125, 0.01340484619140625, -0.0208892822265625, -0.02081298828125, -0.003078460693359375, -0.0479736328125, -0.0028896331787109375, -0.004962921142578125, 0.0032367706298828125, -0.0408935546875, -0.028045654296875, 0.10894775390625, -0.064208984375, -0.01629638671875, 0.0285491943359375, 0.015960693359375, 0.036102294921875, -0.007049560546875, -0.018310546875, -0.0230865478515625, 0.00530242919921875, 0.0212249755859375, -0.00989532470703125, 0.0259857177734375, -0.0173797607421875, -0.0017385482788085938, 0.0019350051879882812, 0.0196533203125, -0.01148223876953125, 0.000652313232421875, -0.02484130859375, 0.0699462890625, 0.005214691162109375, 0.08172607421875, -0.01422882080078125, -0.007320404052734375, -0.008636474609375, -0.01059722900390625, -0.0238494873046875, 0.0229034423828125, 0.005794525146484375, -0.00740814208984375, 0.01104736328125, -0.0301361083984375, 0.0233154296875, -0.036285400390625, 0.012939453125, -0.044677734375, 0.0001748800277709961, 0.0316162109375 ]
4ea522f26136cc22e3f710354b99d19583fb4175
Wordpress Stackexchange Q: How to keep   non-breaking spaces in the visual editor? I often add &nbsp; between connecting words so they break down together to a new line in important text. Switching to visual tab then back to text tab removes these. What can I do to keep them and avoid TinyMCE removing them? I found this but not sure how to apply it to WordPress: https://www.abeautifulsite.net/tinymce-removes-non-breaking-spaces My ugly solutions would be using a different custom string between words__like__this then later replacing them to &nbsp; in PHP, before display. Or just typing it on the visual tab, which translates to &amp;nbsp; but then converting them with PHP. A: This seems to do it: function allow_nbsp_in_tinymce( $mceInit ) { $mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt'; $mceInit['entity_encoding'] = 'named'; return $mceInit; } add_filter( 'tiny_mce_before_init', 'allow_nbsp_in_tinymce' ); Also see: https://www.tinymce.com/docs/configure/content-filtering/#entities Any improvement suggestions?
Q: How to keep   non-breaking spaces in the visual editor? I often add &nbsp; between connecting words so they break down together to a new line in important text. Switching to visual tab then back to text tab removes these. What can I do to keep them and avoid TinyMCE removing them? I found this but not sure how to apply it to WordPress: https://www.abeautifulsite.net/tinymce-removes-non-breaking-spaces My ugly solutions would be using a different custom string between words__like__this then later replacing them to &nbsp; in PHP, before display. Or just typing it on the visual tab, which translates to &amp;nbsp; but then converting them with PHP. A: This seems to do it: function allow_nbsp_in_tinymce( $mceInit ) { $mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt'; $mceInit['entity_encoding'] = 'named'; return $mceInit; } add_filter( 'tiny_mce_before_init', 'allow_nbsp_in_tinymce' ); Also see: https://www.tinymce.com/docs/configure/content-filtering/#entities Any improvement suggestions?
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:447314", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155856" }
[ 0.0399169921875, -0.0033969879150390625, 0.00799560546875, 0.0037021636962890625, 0.0104522705078125, -0.030364990234375, 0.0601806640625, -0.01485443115234375, 0.044464111328125, 0.0242919921875, -0.0137939453125, -0.0204010009765625, 0.043121337890625, -0.032440185546875, -0.0038318634033203125, 0.01715087890625, 0.0020542144775390625, -0.048309326171875, -0.01554107666015625, -0.0199127197265625, -0.0036411285400390625, -0.01508331298828125, 0.01593017578125, -0.056671142578125, 0.00519561767578125, -0.0081024169921875, 0.1348876953125, -0.052520751953125, -0.00908660888671875, -0.045623779296875, 0.0186309814453125, -0.0204925537109375, 0.009307861328125, 0.0938720703125, -0.07147216796875, 0.06451416015625, -0.0052642822265625, 0.047119140625, 0.0243988037109375, 0.01062774658203125, 0.00597381591796875, 0.0062408447265625, 0.00994873046875, 0.003528594970703125, -0.021453857421875, -0.0191497802734375, -0.002124786376953125, -0.0277862548828125, -0.002361297607421875, -0.01001739501953125, 0.0091705322265625, 0.03515625, 0.02886962890625, -0.038726806640625, -0.01557159423828125, -0.00957489013671875, -0.039886474609375, -0.02825927734375, -0.004093170166015625, 0.0760498046875, 0.033447265625, 0.0033893585205078125, -0.004199981689453125, -0.0347900390625, -0.007320404052734375, -0.0122528076171875, -0.056640625, 0.00982666015625, -0.002864837646484375, 0.00021648406982421875, 0.01800537109375, -0.042999267578125, -0.00148773193359375, -0.06494140625, 0.0125885009765625, 0.02783203125, -0.0726318359375, -0.045166015625, 0.0305633544921875, -0.017578125, -0.00881195068359375, 0.0091094970703125, -0.0251922607421875, -0.00933074951171875, -0.037261962890625, -0.02569580078125, -0.0262908935546875, 0.01409149169921875, -0.0225372314453125, -0.0103759765625, -0.0131378173828125, -0.043853759765625, -0.001659393310546875, 0.0247802734375, 0.0016880035400390625, -0.018829345703125, 0.0167236328125, 0.0055694580078125, -0.0296478271484375, 0.01345062255859375, 0.0213470458984375, -0.045623779296875, 0.062164306640625, -0.030548095703125, 0.03167724609375, 0.023040771484375, -0.02056884765625, 0.02862548828125, 0.0770263671875, 0.0151519775390625, 0.0126953125, 0.05047607421875, -0.02667236328125, -0.06292724609375, 0.001445770263671875, 0.051422119140625, -0.0158538818359375, 0.0032749176025390625, 0.0129852294921875, -0.0017518997192382812, -0.00885009765625, 0.007472991943359375, -0.044219970703125, 0.0262298583984375, -0.00864410400390625, -0.01363372802734375, 0.004581451416015625, 0.0221710205078125, -0.04144287109375, 0.0278167724609375, -0.023956298828125, 0.0098876953125, 0.0389404296875, 0.043304443359375, 0.0138397216796875, -0.01183319091796875, 0.0296173095703125, -0.0210418701171875, -0.0005288124084472656, 0.0217437744140625, -0.0021419525146484375, -0.00543975830078125, 0.01258087158203125, -0.009002685546875, 0.0008087158203125, 0.0404052734375, 0.0277862548828125, -0.00946807861328125, -0.018096923828125, -0.08697509765625, 0.012420654296875, -0.03369140625, 0.0836181640625, -0.005748748779296875, -0.06878662109375, -0.0316162109375, 0.01012420654296875, -0.03533935546875, -0.0260772705078125, -0.07952880859375, -0.0008611679077148438, -0.006603240966796875, 0.0338134765625, -0.048187255859375, -0.029937744140625, -0.0102691650390625, -0.07989501953125, 0.0004839897155761719, 0.0310821533203125, 0.058197021484375, -0.0286865234375, 0.0218658447265625, 0.0239715576171875, -0.007122039794921875, -0.011688232421875, -0.0074462890625, 0.00760650634765625, 0.030975341796875, 0.020355224609375, 0.029693603515625, 0.002368927001953125, -0.04345703125, 0.05487060546875, -0.0174407958984375, -0.041168212890625, 0.021331787109375, 0.003658294677734375, 0.059051513671875, 0.0165557861328125, 0.0216217041015625, 0.0086212158203125, -0.0168914794921875, -0.0224609375, -0.007350921630859375, 0.00662994384765625, -0.042144775390625, 0.00510406494140625, -0.02880859375, 0.0089569091796875, 0.0185546875, 0.05181884765625, -0.00002771615982055664, 0.01401519775390625, -0.03472900390625, -0.033599853515625, -0.0171966552734375, 0.003147125244140625, 0.0259552001953125, -0.0364990234375, -0.01357269287109375, 0.0010776519775390625, -0.0743408203125, 0.0123291015625, 0.044708251953125, 0.03106689453125, 0.0059967041015625, 0.038421630859375, 0.0197906494140625, 0.0168914794921875, -0.023590087890625, 0.063720703125, 0.0084991455078125, 0.05096435546875, 0.049591064453125, -0.00777435302734375, -0.054595947265625, -0.0016279220581054688, -0.029144287109375, -0.0374755859375, -0.02783203125, 0.0149383544921875, 0.063720703125, 0.046142578125, 0.08538818359375, -0.01202392578125, -0.0279998779296875, -0.00995635986328125, -0.05657958984375, 0.0189208984375, 0.04180908203125, 0.04937744140625, 0.0184173583984375, -0.0216064453125, -0.0364990234375, 0.038177490234375, -0.060394287109375, -0.0085601806640625, -0.02362060546875, 0.0026702880859375, 0.050994873046875, -0.025482177734375, -0.0018148422241210938, 0.01151275634765625, -0.0023059844970703125, -0.044525146484375, 0.04150390625, -0.059173583984375, -0.0386962890625, 0.0090484619140625, 0.006717681884765625, 0.005329132080078125, -0.0059356689453125, 0.0279083251953125, -0.02508544921875, -0.02618408203125, 0.031280517578125, 0.0009918212890625, 0.02398681640625, -0.032196044921875, 0.0162200927734375, 0.017547607421875, 0.0301055908203125, 0.001827239990234375, 0.047088623046875, -0.00203704833984375, -0.01953125, -0.061126708984375, 0.0250701904296875, -0.0033855438232421875, 0.00738525390625, -0.034881591796875, 0.0241241455078125, 0.06549072265625, -0.0256805419921875, -0.0177154541015625, -0.020477294921875, 0.044921875, -0.06427001953125, 0.004619598388671875, -0.036590576171875, -0.0202484130859375, 0.040374755859375, -0.0231781005859375, 0.06146240234375, -0.005016326904296875, -0.0160980224609375, 0.061279296875, -0.01302337646484375, 0.0183258056640625, -0.0246734619140625, 0.0609130859375, 0.036529541015625, -0.0228271484375, -0.01111602783203125, 0.0167694091796875, 0.00273895263671875, 0.01465606689453125, 0.0104217529296875, -0.0024890899658203125, 0.0396728515625, -0.0743408203125, -0.004604339599609375, 0.0022125244140625, 0.01446533203125, -0.032745361328125, -0.044952392578125, -0.0300445556640625, -0.00499725341796875, -0.04913330078125, 0.005130767822265625, 0.0289764404296875, -0.01171112060546875, -0.060394287109375, 0.0419921875, -0.03570556640625, 0.019134521484375, 0.054046630859375, -0.022552490234375, 0.03472900390625, -0.0235595703125, -0.0279083251953125, 0.00017726421356201172, -0.036468505859375, 0.0260162353515625, -0.0022430419921875, -0.0081329345703125, 0.01169586181640625, 0.044342041015625, 0.013397216796875, -0.0234527587890625, 0.0226898193359375, -0.0357666015625, -0.0206451416015625, 0.028411865234375, -0.0269927978515625, -0.01546478271484375, 0.03790283203125, -0.0175018310546875, -0.0179901123046875, 0.0275726318359375, 0.00743865966796875, 0.006984710693359375, -0.005615234375, 0.051513671875, 0.0557861328125, 0.01361083984375, -0.00701904296875, 0.06805419921875, 0.06732177734375, 0.0029144287109375, -0.0120391845703125, -0.0009436607360839844, -0.0095977783203125, 0.050811767578125, 0.005161285400390625, -0.015899658203125, -0.0254669189453125, 0.0550537109375, 0.0238800048828125, 0.0034275054931640625, 0.036468505859375, -0.01050567626953125, 0.031829833984375, -0.0240631103515625, -0.009002685546875, -0.058746337890625, 0.041656494140625, 0.0096893310546875, 0.015380859375, 0.017547607421875, 0.013397216796875, -0.00789642333984375, 0.0035247802734375, -0.0224456787109375, 0.0309295654296875, 0.00836181640625, 0.0037212371826171875, 0.05615234375, -0.01666259765625, -0.01324462890625, -0.05511474609375, 0.0241546630859375, -0.06854248046875, -0.024810791015625, 0.01290130615234375, 0.03533935546875, -0.02001953125, -0.0313720703125, -0.0208892822265625, -0.032440185546875, -0.0265045166015625, -0.0136566162109375, -0.01123809814453125, -0.0180511474609375, -0.0282440185546875, 0.042724609375, -0.042877197265625, -0.024078369140625, 0.022796630859375, 0.01386260986328125, -0.0106353759765625, 0.010101318359375, -0.006908416748046875, -0.0180816650390625, 0.00786590576171875, -0.026763916015625, -0.0833740234375, -0.0042724609375, -0.046844482421875, 0.0543212890625, 0.00530242919921875, 0.00823974609375, -0.004817962646484375, 0.0635986328125, -0.002696990966796875, 0.01232147216796875, 0.0188140869140625, 0.028594970703125, -0.0230712890625, 0.007266998291015625, 0.0225067138671875, -0.03472900390625, -0.016571044921875, 0.03863525390625, 0.0019989013671875, 0.056915283203125, -0.0116424560546875, -0.04144287109375, 0.049957275390625, -0.042022705078125, -0.053619384765625, -0.01132965087890625, -0.00417327880859375, 0.01345062255859375, -0.0067138671875, -0.00213623046875, -0.01155853271484375, -0.050994873046875, 0.03271484375, 0.054718017578125, -0.00370025634765625, 0.0076904296875, 0.01113128662109375, -0.004337310791015625, -0.045257568359375, -0.02899169921875, 0.0023021697998046875, 0.046630859375, 0.0186767578125, -0.01512908935546875, -0.007007598876953125, -0.032501220703125, 0.0265960693359375, 0.0118408203125, 0.01800537109375, -0.060211181640625, 0.07086181640625, -0.01055145263671875, -0.0022792816162109375, 0.0184173583984375, -0.03369140625, 0.0323486328125, -0.003734588623046875, 0.00023615360260009766, 0.01352691650390625, 0.00592803955078125, 0.01328277587890625, 0.023956298828125, -0.046051025390625, -0.0309600830078125, -0.038177490234375, 0.004528045654296875, 0.0367431640625, 0.05218505859375, 0.04278564453125, 0.0008821487426757812, 0.034210205078125, 0.03265380859375, -0.033905029296875, -0.033721923828125, -0.01302337646484375, -0.01171112060546875, 0.03271484375, -0.074462890625, -0.047607421875, -0.013702392578125, -0.0070037841796875, 0.037689208984375, -0.01141357421875, -0.01216888427734375, -0.032501220703125, -0.0193939208984375, 0.06475830078125, 0.011199951171875, 0.0660400390625, -0.0008845329284667969, -0.00958251953125, -0.00431060791015625, 0.00716400146484375, 0.07562255859375, -0.0294647216796875, -0.0095672607421875, 0.01486968994140625, 0.0027008056640625, 0.0015897750854492188, -0.0011396408081054688, 0.057342529296875, -0.0230712890625, 0.0372314453125, -0.006626129150390625, 0.00969696044921875, -0.001522064208984375, 0.043731689453125, 0.020111083984375, -0.005702972412109375, -0.0333251953125, 0.050506591796875, -0.015533447265625, -0.0469970703125, -0.0216827392578125, 0.0011949539184570312, 0.0193023681640625, -0.002033233642578125, -0.006420135498046875, 0.0245819091796875, 0.0011959075927734375, -0.006439208984375, 0.003635406494140625, 0.0110015869140625, -0.01032257080078125, -0.0068359375, 0.004543304443359375, 0.0182037353515625, -0.005859375, 0.000469207763671875, -0.0261077880859375, -0.035125732421875, 0.005710601806640625, 0.0081939697265625, -0.013946533203125, -0.022613525390625, -0.0135650634765625, 0.03643798828125, -0.0168609619140625, -0.020782470703125, -0.016845703125, 0.0240936279296875, -0.047760009765625, -0.01654052734375, 0.0458984375, -0.040191650390625, -0.01384735107421875, -0.01287078857421875, 0.03363037109375, 0.01247406005859375, 0.0218353271484375, 0.0146942138671875, -0.0043182373046875, -0.00942230224609375, -0.027557373046875, -0.04644775390625, -0.03173828125, -0.01378631591796875, -0.0015010833740234375, -0.024932861328125, 0.010833740234375, 0.049713134765625, 0.03253173828125, 0.0271148681640625, -0.020751953125, 0.03619384765625, 0.0074615478515625, 0.015045166015625, 0.06597900390625, -0.032257080078125, 0.01340484619140625, 0.00885772705078125, 0.05157470703125, -0.0245819091796875, -0.007556915283203125, 0.0202484130859375, -0.0179901123046875, -0.0018939971923828125, -0.0177459716796875, 0.00991058349609375, -0.003662109375, 0.0120697021484375, -0.01342010498046875, 0.022369384765625, 0.0102081298828125, 0.0285797119140625, -0.0062713623046875, -0.007541656494140625, 0.0023651123046875, 0.0189056396484375, 0.00482940673828125, 0.023223876953125, 0.0183258056640625, 0.002178192138671875, 0.015655517578125, -0.01312255859375, -0.00484466552734375, 0.018280029296875, 0.0021820068359375, 0.01715087890625, -0.0037136077880859375, 0.0124053955078125, -0.004451751708984375, -0.0055389404296875, -0.004364013671875, 0.0174102783203125, 0.0277862548828125, 0.0266265869140625, 0.0003445148468017578, -0.036773681640625, 0.0309600830078125, 0.0141754150390625, 0.01247406005859375, -0.01369476318359375, 0.048126220703125, 0.044097900390625, 0.0034503936767578125, 0.0121307373046875, 0.05072021484375, 0.06890869140625, -0.05633544921875, -0.00295257568359375, 0.01512908935546875, -0.0312042236328125, 0.017333984375, 0.01116943359375, -0.029937744140625, -0.032623291015625, 0.025848388671875, -0.015411376953125, -0.006610870361328125, 0.006717681884765625, 0.0291595458984375, -0.01282501220703125, -0.037841796875, 0.0260162353515625, 0.01593017578125, -0.00444793701171875, 0.0159759521484375, 0.017181396484375, 0.01727294921875, -0.0113983154296875, 0.0243377685546875, 0.007320404052734375, -0.0209808349609375, -0.05633544921875, 0.0020008087158203125, 0.01122283935546875, -0.041015625, -0.0235443115234375, -0.0028972625732421875, -0.040496826171875, 0.044677734375, -0.05633544921875, 0.01025390625, 0.052093505859375, -0.08984375, 0.040771484375, -0.0026073455810546875, 0.004825592041015625, 0.0217132568359375, -0.03021240234375, -0.00439453125, -0.0019626617431640625, 0.0118865966796875, -0.001285552978515625, -0.003082275390625, 0.03240966796875, -0.00039005279541015625, -0.030242919921875, 0.0264739990234375, -0.01275634765625, -0.01220703125, -0.006542205810546875, -0.027801513671875, -0.0712890625, -0.041473388671875, -0.0173492431640625, -0.0897216796875, 0.0154266357421875, -0.03436279296875, -0.08734130859375, 0.046356201171875, 0.06292724609375, 0.01043701171875, -0.0005941390991210938, 0.0122833251953125, -0.0982666015625, -0.039459228515625, -0.00484466552734375, 0.00829315185546875, -0.022705078125, 0.0005822181701660156, -0.007442474365234375, 0.00196075439453125, 0.017608642578125, 0.031463623046875, 0.0035572052001953125, -0.00519561767578125, -0.01137542724609375, -0.01386260986328125, 0.03265380859375, 0.06634521484375, 0.013336181640625, -0.00606536865234375, 0.03839111328125, -0.05059814453125, -0.01061248779296875, 0.020782470703125, 0.0535888671875, -0.08636474609375, 0.0043792724609375, 0.039947509765625, 0.021820068359375, 0.0212554931640625, 0.012115478515625, -0.034423828125, 0.0121002197265625, 0.0035648345947265625, -0.0186309814453125, -0.0328369140625, -0.01477813720703125, 0.037261962890625, 0.00873565673828125, -0.10760498046875, -0.076171875, -0.0291748046875, 0.0180816650390625, -0.0216827392578125, 0.049896240234375, 0.072509765625, 0.0179901123046875, 0.0830078125, -0.0185546875, 0.035430908203125, -0.01160430908203125, -0.00612640380859375, -0.01374053955078125, -0.01103973388671875, 0.011566162109375, -0.03515625, -0.00937652587890625, 0.0299530029296875, 0.0208892822265625, -0.00980377197265625, -0.0272979736328125, -0.01201629638671875, -0.028472900390625, 0.0020904541015625, -0.0287322998046875, -0.0214385986328125, 0.0247344970703125, 0.03729248046875, 0.01335906982421875, -0.017425537109375, -0.0063323974609375, -0.00406646728515625, 0.0204315185546875, 0.06805419921875, 0.002819061279296875, -0.0188140869140625, -0.06341552734375, -0.0009984970092773438, 0.016387939453125, 0.0662841796875, 0.049957275390625, 0.041778564453125, 0.039398193359375, -0.037017822265625, 0.003513336181640625, -0.01003265380859375, 0.0021190643310546875, -0.0034923553466796875, 0.0111083984375, 0.019378662109375, -0.0190277099609375, 0.0233306884765625, 0.0019407272338867188, -0.020538330078125, 0.02459716796875, 0.017974853515625, -0.046142578125, -0.007442474365234375, 0.00566864013671875, -0.021881103515625, -0.005016326904296875, -0.059051513671875, -0.0157012939453125, 0.01434326171875, -0.006298065185546875, 0.03289794921875, -0.04937744140625, 0.053955078125, 0.033416748046875, -0.0108489990234375, 0.01145172119140625, 0.000023245811462402344, 0.004756927490234375, -0.022552490234375, -0.037750244140625, 0.042266845703125, 0.019500732421875, -0.0222320556640625, 0.0439453125, 0.005157470703125, -0.0288543701171875, 0.0220794677734375, 0.018951416015625, 0.017791748046875, 0.0018682479858398438, -0.0258331298828125, -0.0031585693359375, 0.007175445556640625, 0.021026611328125, 0.0208282470703125, 0.021453857421875, 0.00534820556640625, -0.0006761550903320312, -0.0188446044921875, 0.0022983551025390625, 0.053924560546875, 0.0121307373046875, 0.031768798828125, -0.00872802734375, 0.035003662109375, -0.04510498046875, 0.0132293701171875, -0.0150604248046875, -0.02630615234375, 0.0010242462158203125, 0.058013916015625, 0.0183258056640625, -0.03387451171875, 0.0200958251953125, 0.0396728515625, 0.0136871337890625, -0.0271453857421875, 0.006381988525390625, 0.0175628662109375, -0.0092010498046875, -0.006343841552734375, 0.012664794921875, -0.021881103515625, -0.050445556640625, -0.0259857177734375, 0.0148162841796875, -0.0008215904235839844, -0.00594329833984375, -0.019622802734375, 0.037445068359375, 0.0242156982421875, -0.01067352294921875, 0.038421630859375, -0.06768798828125, 0.047943115234375, 0.035064697265625, -0.01546478271484375, 0.0013456344604492188, -0.016204833984375, -0.031829833984375, -0.00261688232421875, 0.0027828216552734375, -0.0290679931640625, 0.0096435546875, -0.08270263671875, 0.04132080078125, 0.03009033203125, 0.05401611328125, -0.0196685791015625, 0.007320404052734375, 0.03594970703125, 0.025665283203125, -0.01496124267578125, 0.003398895263671875, -0.016937255859375, -0.0215301513671875, 0.003749847412109375, 0.020965576171875, -0.0165557861328125, 0.000972747802734375, -0.050079345703125, -0.035308837890625, 0.043487548828125, 0.02520751953125, -0.054718017578125, 0.01531982421875, 0.00498199462890625, -0.0011720657348632812, 0.02117919921875, 0.03558349609375, -0.0302581787109375, 0.0125732421875, -0.05279541015625, -0.054046630859375, -0.054290771484375, 0.0635986328125, -0.057861328125, -0.0150299072265625, 0.023040771484375, 0.000051856040954589844, -0.01708984375, -0.027923583984375, -0.0015630722045898438, 0.0139923095703125, -0.0183563232421875, -0.043487548828125, 0.0235748291015625, -0.024658203125, 0.018585205078125, -0.0190277099609375, -0.0018138885498046875, -0.055572509765625, 0.00301361083984375, -0.0036792755126953125, -0.0154571533203125, -0.0006704330444335938, -0.054840087890625, -0.0828857421875, 0.01812744140625, 0.0020313262939453125, -0.033905029296875, 0.024444580078125, -0.03277587890625, -0.014556884765625, 0.024017333984375, 0.01136016845703125, 0.01605224609375, -0.0258026123046875, -0.006565093994140625, 0.0279388427734375, 0.06890869140625, 0.007389068603515625, 0.0187530517578125, 0.01302337646484375, 0.037200927734375, 0.017578125, 0.0276947021484375, 0.042572021484375, -0.01806640625, 0.0142974853515625, 0.043914794921875, -0.007732391357421875, -0.070068359375, -0.037841796875, -0.11334228515625, -0.00960540771484375, -0.02777099609375, 0.0035457611083984375, -0.00081634521484375, 0.01100921630859375, 0.0276031494140625, -0.006542205810546875, -0.01259613037109375, 0.0103607177734375, 0.01247406005859375, -0.01525115966796875, -0.00969696044921875, 0.02740478515625, -0.08074951171875, -0.04498291015625, 0.0128021240234375, 0.010101318359375, 0.00738525390625, -0.034423828125, -0.0230560302734375, -0.01505279541015625, 0.005359649658203125, 0.019378662109375, -0.041290283203125, -0.012786865234375, -0.0036067962646484375, -0.0163116455078125, -0.04022216796875, -0.0005035400390625, 0.0016040802001953125, -0.042144775390625, 0.01496124267578125, -0.068115234375, -0.031341552734375, -0.0017108917236328125, 0.0204315185546875, -0.0248565673828125, 0.0135498046875, -0.005970001220703125, 0.031494140625, 0.004459381103515625, 0.0152587890625, 0.0009207725524902344, 0.018646240234375, -0.018890380859375, -0.00878143310546875, -0.006748199462890625, -0.031036376953125, -0.043487548828125, -0.01349639892578125, -0.03594970703125, 0.0247802734375, 0.0005459785461425781, 0.018035888671875, 0.037322998046875, -0.0022029876708984375, 0.02880859375, -0.01351165771484375, -0.0177154541015625, -0.017181396484375, -0.0170440673828125, -0.0175323486328125, -0.01519012451171875, 0.002841949462890625 ]
1e651992f1f7342e3d8cf59d12862c8f6467d18e
Wordpress Stackexchange Q: Get entered value of customiser field for live preview As per the codex, this question an probably any tutorial on the theme customiser out there, you get the value of a customiser field with the following code: ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { $('body').css('background-color', newval ); } ); } ); } )( jQuery ); The problem is you can get that value, when its changed. My question, is how (in a sane way) can you retrieve the value of another field in that same callback. E.g. ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { //Get value of field 'text_colour' //var text_colour = ?? $('body').css('background-color', newval ); } ); } ); } )( jQuery ); A: Yes. wp.customize( 'header_textcolor' )(): ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { $('body').css('background-color', newval ); var text_colour = wp.customize( 'header_textcolor' )(); // ... now do something with text_colour } ); } ); } )( jQuery );
Q: Get entered value of customiser field for live preview As per the codex, this question an probably any tutorial on the theme customiser out there, you get the value of a customiser field with the following code: ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { $('body').css('background-color', newval ); } ); } ); } )( jQuery ); The problem is you can get that value, when its changed. My question, is how (in a sane way) can you retrieve the value of another field in that same callback. E.g. ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { //Get value of field 'text_colour' //var text_colour = ?? $('body').css('background-color', newval ); } ); } ); } )( jQuery ); A: Yes. wp.customize( 'header_textcolor' )(): ( function( $ ) { //Update site background color... wp.customize( 'background_color', function( value ) { value.bind( function( newval ) { $('body').css('background-color', newval ); var text_colour = wp.customize( 'header_textcolor' )(); // ... now do something with text_colour } ); } ); } )( jQuery );
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:447318", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/155867" }
[ 0.01302337646484375, -0.003696441650390625, 0.0034999847412109375, -0.061126708984375, -0.0092315673828125, 0.01186370849609375, -0.033355712890625, -0.004241943359375, -0.036285400390625, 0.0136566162109375, -0.040069580078125, 0.019317626953125, -0.054840087890625, -0.005420684814453125, -0.010467529296875, -0.05810546875, 0.044219970703125, -0.034454345703125, 0.038421630859375, -0.0020599365234375, -0.0025920867919921875, 0.03564453125, 0.053466796875, 0.0252685546875, 0.047760009765625, -0.046661376953125, 0.01873779296875, 0.01018524169921875, 0.0340576171875, 0.0040740966796875, 0.03338623046875, -0.0259552001953125, 0.03302001953125, -0.00572967529296875, -0.00318145751953125, 0.011260986328125, 0.0179901123046875, -0.01428985595703125, 0.00542449951171875, 0.031707763671875, 0.061920166015625, -0.0246429443359375, -0.0306854248046875, 0.04461669921875, -0.0302734375, -0.057159423828125, 0.07720947265625, -0.0017566680908203125, -0.006244659423828125, -0.00231170654296875, -0.002109527587890625, 0.0160980224609375, 0.00917816162109375, 0.0224456787109375, -0.00814056396484375, -0.0003571510314941406, -0.044891357421875, -0.004215240478515625, 0.03692626953125, 0.046905517578125, 0.0124053955078125, -0.0234832763671875, -0.00010162591934204102, -0.039886474609375, -0.0186614990234375, 0.0252532958984375, 0.0213470458984375, -0.0019588470458984375, -0.0272064208984375, -0.0248260498046875, 0.01149749755859375, -0.01021575927734375, -0.025421142578125, -0.029754638671875, 0.005035400390625, 0.003963470458984375, -0.0207061767578125, -0.034210205078125, 0.002010345458984375, 0.03240966796875, 0.07159423828125, -0.01251220703125, 0.038787841796875, -0.0010204315185546875, 0.017303466796875, -0.0039215087890625, 0.0108184814453125, -0.0254669189453125, -0.0165252685546875, -0.0328369140625, -0.010040283203125, 0.0190887451171875, -0.040679931640625, 0.007534027099609375, -0.0171661376953125, -0.019683837890625, -0.01010894775390625, 0.039520263671875, -0.031768798828125, 0.053802490234375, -0.0006747245788574219, -0.02960205078125, 0.0811767578125, -0.06854248046875, 0.0164337158203125, 0.0102081298828125, -0.00571441650390625, -0.006740570068359375, 0.0399169921875, 0.023345947265625, -0.027679443359375, 0.00698089599609375, 0.00844573974609375, 0.00998687744140625, -0.031097412109375, -0.01201629638671875, -0.0250396728515625, -0.00980377197265625, -0.0241241455078125, -0.0107421875, -0.0020008087158203125, 0.0106964111328125, 0.039947509765625, -0.04986572265625, 0.005718231201171875, -0.02581787109375, -0.0440673828125, -0.00891876220703125, 0.0220794677734375, -0.007526397705078125, -0.035003662109375, 0.0172882080078125, 0.0999755859375, 0.061767578125, 0.034149169921875, -0.0074005126953125, 0.04327392578125, 0.0015888214111328125, 0.032745361328125, 0.03509521484375, -0.00966644287109375, -0.042144775390625, 0.00827789306640625, 0.01171875, 0.00579071044921875, -0.006977081298828125, 0.0009694099426269531, 0.022064208984375, 0.00896453857421875, -0.0229949951171875, 0.02374267578125, -0.00679779052734375, -0.0036602020263671875, 0.041534423828125, -0.006412506103515625, 0.004302978515625, 0.0022258758544921875, 0.001934051513671875, 0.0217132568359375, -0.013092041015625, 0.0263824462890625, -0.00373077392578125, -0.0006337165832519531, 0.01201629638671875, 0.00920867919921875, -0.01239013671875, -0.01181793212890625, 0.003910064697265625, 0.0178070068359375, 0.015838623046875, 0.006984710693359375, 0.004528045654296875, 0.0128326416015625, 0.005870819091796875, -0.01247406005859375, -0.00666046142578125, -0.01090240478515625, 0.035491943359375, 0.018585205078125, -0.0159454345703125, -0.0379638671875, -0.0518798828125, 0.057891845703125, -0.03594970703125, -0.01265716552734375, 0.01079559326171875, -0.0223846435546875, 0.041900634765625, 0.03948974609375, 0.01259613037109375, -0.01174163818359375, -0.0321044921875, -0.048980712890625, 0.0014400482177734375, -0.0239105224609375, 0.0247344970703125, -0.034576416015625, 0.03253173828125, -0.0273590087890625, -0.00434112548828125, 0.007129669189453125, 0.006916046142578125, 0.004756927490234375, -0.0001385211944580078, -0.043975830078125, 0.0214385986328125, -0.03167724609375, 0.045745849609375, -0.006885528564453125, 0.0013484954833984375, 0.01073455810546875, -0.00695037841796875, 0.004955291748046875, -0.033447265625, -0.0235137939453125, 0.021270751953125, -0.0194091796875, 0.008514404296875, -0.01552581787109375, 0.01983642578125, -0.0034236907958984375, -0.03070068359375, 0.0007519721984863281, 0.03021240234375, -0.017303466796875, 0.01885986328125, -0.0228729248046875, -0.0010585784912109375, 0.0203094482421875, 0.00008594989776611328, 0.07867431640625, 0.0146331787109375, 0.054443359375, 0.007472991943359375, -0.019073486328125, 0.0140533447265625, 0.0157318115234375, -0.10107421875, -0.019500732421875, 0.059661865234375, 0.035614013671875, 0.031280517578125, -0.0088043212890625, -0.0312347412109375, 0.1163330078125, 0.055908203125, 0.0323486328125, -0.052154541015625, 0.0679931640625, 0.101318359375, -0.0197296142578125, -0.03509521484375, 0.0038166046142578125, -0.052764892578125, 0.0182342529296875, 0.024658203125, -0.020965576171875, 0.00609588623046875, -0.04522705078125, 0.03765869140625, -0.0153961181640625, 0.03192138671875, 0.042510986328125, -0.013458251953125, 0.066650390625, -0.004802703857421875, 0.0489501953125, 0.0239715576171875, -0.021453857421875, 0.01215362548828125, 0.007457733154296875, -0.04364013671875, 0.00974273681640625, 0.02752685546875, -0.0271148681640625, -0.0022487640380859375, 0.0007815361022949219, -0.005084991455078125, -0.022216796875, 0.0056610107421875, -0.0088958740234375, 0.00035881996154785156, -0.05426025390625, -0.01064300537109375, 0.0261077880859375, -0.046630859375, -0.03387451171875, -0.016326904296875, 0.00965118408203125, -0.003192901611328125, -0.00519561767578125, 0.054229736328125, -0.0154571533203125, 0.051727294921875, 0.050323486328125, -0.0098114013671875, -0.005779266357421875, -0.005802154541015625, -0.0010671615600585938, -0.00557708740234375, 0.024505615234375, 0.034393310546875, 0.00823974609375, 0.003795623779296875, -0.007747650146484375, 0.00856781005859375, 0.008331298828125, -0.0142669677734375, -0.01105499267578125, -0.0114593505859375, -0.044952392578125, 0.01153564453125, 0.025115966796875, 0.0287628173828125, -0.0098419189453125, -0.05059814453125, -0.0110931396484375, -0.0016155242919921875, -0.09344482421875, -0.1080322265625, -0.007015228271484375, -0.05694580078125, -0.0089569091796875, -0.036834716796875, -0.038177490234375, 0.0195465087890625, -0.036376953125, -0.0016956329345703125, 0.001811981201171875, -0.038818359375, -0.0199737548828125, -0.059112548828125, -0.049285888671875, -0.04632568359375, 0.004245758056640625, -0.02081298828125, -0.00923919677734375, 0.06964111328125, 0.0095367431640625, -0.0258636474609375, -0.0035266876220703125, -0.0039825439453125, 0.00704193115234375, 0.0134735107421875, 0.02020263671875, -0.0197601318359375, 0.01395416259765625, 0.006114959716796875, -0.000965118408203125, 0.023193359375, -0.023834228515625, -0.0246124267578125, -0.006031036376953125, 0.01654052734375, -0.038238525390625, 0.0908203125, 0.054290771484375, -0.029510498046875, -0.01458740234375, -0.059814453125, -0.044219970703125, 0.000965118408203125, -0.04974365234375, 0.057403564453125, 0.02655029296875, 0.005504608154296875, 0.0140228271484375, 0.0204925537109375, 0.008056640625, -0.0223541259765625, 0.0083465576171875, -0.03289794921875, 0.078857421875, 0.01195526123046875, 0.00423431396484375, -0.0198211669921875, 0.0036067962646484375, -0.0325927734375, 0.06787109375, 0.01038360595703125, -0.00391387939453125, -0.00963592529296875, -0.01229095458984375, -0.0411376953125, -0.0298004150390625, 0.04620361328125, 0.0225982666015625, 0.034515380859375, -0.031524658203125, -0.0423583984375, 0.0025463104248046875, 0.08453369140625, -0.059112548828125, -0.01348114013671875, -0.003520965576171875, 0.032196044921875, -0.068359375, -0.0592041015625, -0.03759765625, 0.0102386474609375, -0.1396484375, 0.014129638671875, -0.0196533203125, -0.0197601318359375, -0.037994384765625, 0.085693359375, -0.07421875, -0.04632568359375, 0.01329803466796875, 0.041839599609375, -0.004146575927734375, 0.018402099609375, 0.00019037723541259766, 0.02081298828125, 0.00702667236328125, -0.004337310791015625, -0.04302978515625, -0.01055908203125, 0.007587432861328125, 0.0237274169921875, 0.01641845703125, -0.052825927734375, -0.01122283935546875, 0.025360107421875, 0.0177154541015625, 0.020263671875, 0.0076751708984375, 0.00423431396484375, 0.0015726089477539062, -0.02777099609375, -0.0033473968505859375, -0.0384521484375, 0.0307159423828125, -0.01175689697265625, -0.0494384765625, -0.01363372802734375, -0.032135009765625, 0.007373809814453125, 0.007282257080078125, -0.03045654296875, -0.0241546630859375, 0.0308837890625, -0.04547119140625, 0.004695892333984375, -0.045745849609375, 0.025726318359375, 0.034027099609375, -0.03961181640625, 0.036407470703125, -0.00586700439453125, 0.002079010009765625, -0.01105499267578125, 0.033111572265625, 0.01094818115234375, -0.0168609619140625, 0.0523681640625, 0.008270263671875, 0.059600830078125, 0.0279541015625, -0.01678466796875, -0.01380157470703125, -0.07879638671875, 0.09503173828125, 0.04010009765625, 0.0028667449951171875, 0.0126495361328125, 0.059295654296875, 0.004665374755859375, -0.03472900390625, 0.0289154052734375, 0.00688934326171875, -0.051055908203125, 0.0255279541015625, -0.0191497802734375, 0.02264404296875, 0.0037841796875, 0.0034694671630859375, -0.02935791015625, -0.0017995834350585938, -0.01342010498046875, -0.04205322265625, 0.01409149169921875, -0.010040283203125, 0.049835205078125, 0.02459716796875, -0.006946563720703125, 0.03839111328125, 0.00963592529296875, 0.0048675537109375, -0.00305938720703125, -0.035614013671875, 0.0180206298828125, 0.0080108642578125, -0.0037136077880859375, 0.011749267578125, 0.005218505859375, -0.0178375244140625, 0.0736083984375, -0.0164642333984375, -0.0487060546875, 0.002887725830078125, -0.0211029052734375, 0.004039764404296875, 0.0032215118408203125, -0.0261383056640625, 0.0236663818359375, 0.0174713134765625, 0.005062103271484375, 0.011016845703125, -0.0016574859619140625, -0.010101318359375, -0.01377105712890625, 0.0404052734375, 0.020782470703125, -0.01100921630859375, -0.0175323486328125, 0.049835205078125, 0.02972412109375, -0.0182037353515625, -0.01490020751953125, 0.037353515625, -0.0031757354736328125, 0.03887939453125, 0.00604248046875, -0.0016870498657226562, 0.0184478759765625, -0.010101318359375, 0.01397705078125, -0.030731201171875, -0.000732421875, 0.0338134765625, 0.03778076171875, 0.01415252685546875, 0.0011816024780273438, -0.010528564453125, 0.008575439453125, -0.021453857421875, 0.005344390869140625, 0.013092041015625, -0.02362060546875, -0.00685882568359375, 0.049102783203125, 0.0217132568359375, 0.028717041015625, 0.0362548828125, -0.034088134765625, 0.0029506683349609375, -0.0112457275390625, -0.00606536865234375, 0.0147705078125, -0.048797607421875, -0.040557861328125, -0.02398681640625, 0.00946044921875, -0.0079193115234375, -0.034515380859375, -0.04339599609375, 0.0003814697265625, -0.0125885009765625, 0.0240325927734375, 0.0222930908203125, 0.036834716796875, -0.0751953125, -0.00679779052734375, -0.059326171875, -0.0340576171875, 0.0777587890625, 0.0196990966796875, 0.04351806640625, -0.0235443115234375, -0.0145416259765625, -0.03204345703125, -0.024993896484375, -0.02386474609375, -0.0248565673828125, -0.01459503173828125, 0.0136871337890625, 0.01288604736328125, 0.0145721435546875, -0.02197265625, -0.01503753662109375, 0.032806396484375, 0.0364990234375, 0.05389404296875, -0.030792236328125, 0.0275115966796875, 0.0301361083984375, 0.039886474609375, 0.0171966552734375, -0.0011072158813476562, -0.00304412841796875, -0.0155792236328125, -0.00925445556640625, -0.0084686279296875, 0.0208892822265625, -0.046356201171875, 0.061248779296875, 0.001720428466796875, 0.036041259765625, 0.0067901611328125, 0.029449462890625, -0.030303955078125, 0.003200531005859375, -0.024566650390625, -0.0016689300537109375, -0.0640869140625, -0.0193634033203125, 0.0169830322265625, -0.01256561279296875, -0.03411865234375, -0.0259246826171875, -0.03314208984375, 0.01629638671875, 0.016571044921875, 0.0038738250732421875, 0.01416015625, -0.044097900390625, 0.00909423828125, 0.03326416015625, 0.00630950927734375, 0.0252838134765625, -0.0141143798828125, 0.012786865234375, 0.0289306640625, 0.025115966796875, -0.0245361328125, -0.0023651123046875, 0.04010009765625, 0.01280975341796875, -0.01514434814453125, 0.0055084228515625, -0.01407623291015625, 0.0143585205078125, 0.0269317626953125, 0.08966064453125, -0.049468994140625, 0.01415252685546875, 0.042144775390625, 0.0016908645629882812, 0.03558349609375, 0.017669677734375, -0.014862060546875, -0.005710601806640625, 0.0192413330078125, -0.0200347900390625, -0.00762176513671875, 0.019134521484375, -0.00899505615234375, 0.00705718994140625, -0.01337432861328125, 0.0207672119140625, -0.0276031494140625, -0.020721435546875, -0.031402587890625, -0.007801055908203125, -0.030303955078125, -0.01019287109375, -0.024078369140625, -0.00974273681640625, -0.053436279296875, -0.0780029296875, -0.049346923828125, -0.0027217864990234375, -0.03466796875, -0.0220794677734375, 0.01336669921875, 0.03912353515625, 0.05511474609375, -0.015777587890625, 0.0001112818717956543, 0.01165008544921875, 0.046356201171875, 0.040771484375, -0.02508544921875, 0.0220794677734375, 0.04730224609375, -0.08599853515625, 0.01433563232421875, -0.004970550537109375, 0.02081298828125, -0.0167999267578125, 0.0164031982421875, 0.05682373046875, -0.045989990234375, -0.01027679443359375, 0.059967041015625, 0.031097412109375, -0.037078857421875, -0.019073486328125, 0.0220947265625, -0.06390380859375, -0.02947998046875, 0.005893707275390625, -0.04620361328125, -0.01123809814453125, -0.009063720703125, -0.050872802734375, 0.07977294921875, 0.0270843505859375, 0.0178375244140625, 0.009124755859375, 0.033172607421875, -0.037933349609375, 0.01319122314453125, -0.0206146240234375, 0.0282135009765625, 0.0009145736694335938, 0.006633758544921875, -0.024261474609375, 0.0026683807373046875, -0.016387939453125, 0.0203857421875, 0.0259246826171875, -0.01309967041015625, 0.0426025390625, -0.001377105712890625, 0.025604248046875, 0.013458251953125, -0.04412841796875, -0.005016326904296875, 0.0146331787109375, 0.0203857421875, 0.0258331298828125, -0.035491943359375, 0.00980377197265625, -0.01380157470703125, -0.01059722900390625, 0.0543212890625, -0.001583099365234375, -0.00734710693359375, 0.0305938720703125, 0.006282806396484375, -0.046112060546875, 0.018951416015625, 0.038482666015625, -0.03814697265625, -0.05352783203125, 0.049560546875, -0.0014743804931640625, -0.023712158203125, 0.003147125244140625, -0.046966552734375, 0.0389404296875, 0.00589752197265625, 0.004886627197265625, -0.0164642333984375, -0.0084381103515625, 0.0101165771484375, 0.0017328262329101562, -0.032440185546875, 0.02520751953125, 0.0099639892578125, 0.029754638671875, 0.0293426513671875, 0.0307769775390625, -0.0038509368896484375, -0.01433563232421875, 0.022064208984375, 0.032867431640625, -0.0273590087890625, 0.01029205322265625, 0.0240936279296875, -0.0032367706298828125, 0.00847625732421875, -0.033538818359375, 0.04632568359375, -0.039215087890625, -0.052581787109375, -0.03485107421875, -0.00775146484375, 0.0545654296875, 0.027496337890625, 0.004550933837890625, 0.0063323974609375, -0.04730224609375, -0.0131072998046875, -0.04412841796875, 0.0215606689453125, 0.02435302734375, 0.0255584716796875, -0.0023517608642578125, 0.0498046875, 0.05194091796875, -0.004711151123046875, -0.032012939453125, -0.00084686279296875, 0.059112548828125, 0.0303802490234375, 0.019317626953125, 0.06439208984375, 0.0183868408203125, 0.008392333984375, 0.0063629150390625, -0.0121002197265625, 0.030303955078125, 0.0252685546875, -0.02301025390625, -0.00391387939453125, 0.04345703125, -0.01153564453125, 0.0001347064971923828, -0.037078857421875, 0.0189666748046875, 0.01544189453125, -0.00217437744140625, 0.01285552978515625, -0.0015687942504882812, 0.031463623046875, -0.01346588134765625, 0.00244903564453125, 0.00348663330078125, 0.0129547119140625, 0.023529052734375, 0.0188140869140625, 0.00159454345703125, 0.01525115966796875, -0.0304107666015625, 0.0121917724609375, -0.018341064453125, -0.0699462890625, 0.0291900634765625, 0.0350341796875, -0.0262908935546875, 0.0168914794921875, -0.0295257568359375, -0.049957275390625, 0.01540374755859375, 0.047698974609375, -0.02947998046875, -0.0020389556884765625, 0.0011148452758789062, -0.031707763671875, -0.07501220703125, -0.052337646484375, -0.0235443115234375, 0.025604248046875, 0.00753021240234375, -0.0311126708984375, 0.042083740234375, 0.036590576171875, 0.048583984375, 0.041473388671875, -0.00004673004150390625, 0.01055145263671875, 0.0184326171875, 0.005603790283203125, 0.0269775390625, -0.0258636474609375, -0.008270263671875, 0.033416748046875, -0.0008568763732910156, 0.0034332275390625, 0.0271453857421875, -0.0293121337890625, 0.01110076904296875, 0.01139068603515625, 0.0289306640625, -0.02301025390625, -0.003787994384765625, -0.0228118896484375, -0.03228759765625, 0.041351318359375, 0.01044464111328125, 0.0166778564453125, 0.0095062255859375, 0.0211944580078125, 0.0122528076171875, 0.01959228515625, 0.00543212890625, 0.04742431640625, 0.035430908203125, -0.056549072265625, -0.0031337738037109375, 0.03570556640625, 0.019775390625, 0.01067352294921875, 0.035064697265625, -0.0138092041015625, 0.045745849609375, -0.02593994140625, 0.0162506103515625, 0.0272674560546875, 0.0364990234375, 0.00022661685943603516, -0.0045318603515625, 0.021270751953125, -0.0220489501953125, -0.03228759765625, -0.0518798828125, -0.01898193359375, -0.047210693359375, 0.0005946159362792969, 0.0230255126953125, -0.00818634033203125, 0.0015649795532226562, -0.006500244140625, 0.017578125, 0.005664825439453125, -0.0216064453125, -0.0284271240234375, 0.0168914794921875, -0.0472412109375, 0.03533935546875, -0.029876708984375, -0.005096435546875, 0.0008459091186523438, 0.02740478515625, 0.0024051666259765625, -0.0084686279296875, -0.03143310546875, 0.024993896484375, 0.01158905029296875, 0.0010843276977539062, 0.036376953125, 0.00644683837890625, -0.01410675048828125, 0.0087127685546875, -0.00007963180541992188, 0.060638427734375, -0.0645751953125, -0.0008263587951660156, 0.0665283203125, -0.004886627197265625, -0.0203399658203125, -0.10076904296875, -0.029571533203125, -0.03155517578125, 0.06256103515625, -0.02996826171875, 0.00281524658203125, -0.0037822723388671875, -0.06036376953125, -0.055694580078125, -0.021697998046875, 0.00894927978515625, -0.03741455078125, -0.021881103515625, 0.0085601806640625, 0.0178985595703125, -0.03955078125, -0.0178070068359375, -0.0157470703125, -0.04010009765625, -0.0160064697265625, 0.0154571533203125, 0.005580902099609375, 0.01328277587890625, -0.0130767822265625, -0.09625244140625, -0.004425048828125, -0.0121917724609375, 0.022735595703125, -0.035186767578125, 0.002338409423828125, -0.022125244140625, 0.0117950439453125, -0.04376220703125, -0.111083984375, 0.00521087646484375, 0.02789306640625, 0.0105133056640625, -0.0260009765625, -0.01910400390625, -0.01364898681640625, 0.052459716796875, -0.0237884521484375, 0.01434326171875, -0.007617950439453125, -0.00887298583984375, -0.01137542724609375, -0.0015974044799804688, -0.0164794921875, 0.01540374755859375, -0.05364990234375, -0.01363372802734375, 0.00836181640625, -0.005863189697265625, -0.052734375, 0.0191497802734375, -0.03173828125, -0.024566650390625, 0.01471710205078125, -0.0000362396240234375, -0.035858154296875, -0.060821533203125, 0.057891845703125, -0.0275115966796875, 0.006259918212890625, 0.0298309326171875, 0.032135009765625, 0.03594970703125, 0.07269287109375, -0.0203399658203125, -0.036102294921875, -0.00818634033203125, 0.032073974609375, -0.019256591796875, 0.060302734375, -0.0285186767578125, -0.0211181640625, 0.00666046142578125, -0.0250244140625, -0.0163726806640625, -0.047943115234375, 0.0036449432373046875, -0.0009126663208007812, -0.029266357421875, 0.0097198486328125, -0.028167724609375, 0.01006317138671875, -0.005329132080078125, 0.0170135498046875, -0.0099639892578125, 0.0220184326171875, 0.0295257568359375, -0.0222625732421875, -0.0008325576782226562, 0.05078125, -0.002765655517578125, -0.04766845703125, 0.05401611328125, -0.0090789794921875, 0.034759521484375, 0.0185394287109375 ]
d3b95bca7704af3db34aa721dc3ceda7222456fc
Wordpress Stackexchange Q: Add custom classes to anchor in wp_nav_menu I want to add a custom class to anchors in wp_nav_menu outputs. Default for example is: <li id="menu-item" class="menu-item menu-item-type-custom"> <a href="http://example.com">example</a> </li> I want this : <li id="menu-item" class="menu-item menu-item-type-custom "> <a href="http://example.com" class="class">example</a> </li> A: I have solution to add class to anchor tag. 1: Step: add this in functions.php function add_additional_class_on_a($classes, $item, $args) { if (isset($args->add_a_class)) { $classes['class'] = $args->add_a_class; } return $classes; } add_filter('nav_menu_link_attributes', 'add_additional_class_on_a', 1, 3); 2: Then use it like this in your theme <?php // Show Menu here wp_nav_menu(array( 'theme_location' => 'my-footer-menu', 'menu_class' => 'footer-top list-unstyled', 'add_a_class' => 'box-link text-dark', )); ?>
Q: Add custom classes to anchor in wp_nav_menu I want to add a custom class to anchors in wp_nav_menu outputs. Default for example is: <li id="menu-item" class="menu-item menu-item-type-custom"> <a href="http://example.com">example</a> </li> I want this : <li id="menu-item" class="menu-item menu-item-type-custom "> <a href="http://example.com" class="class">example</a> </li> A: I have solution to add class to anchor tag. 1: Step: add this in functions.php function add_additional_class_on_a($classes, $item, $args) { if (isset($args->add_a_class)) { $classes['class'] = $args->add_a_class; } return $classes; } add_filter('nav_menu_link_attributes', 'add_additional_class_on_a', 1, 3); 2: Then use it like this in your theme <?php // Show Menu here wp_nav_menu(array( 'theme_location' => 'my-footer-menu', 'menu_class' => 'footer-top list-unstyled', 'add_a_class' => 'box-link text-dark', )); ?> A: You can add classes natively via interface in admin. Open Screen Options (top right of the screen) and check CSS Classes. I don't remember if class applies to link itself, but you can always target link inside container with CSS (.class a). A: You can do this with the nav_menu_link_attributes filter. add_filter( 'nav_menu_link_attributes', 'wpse156165_menu_add_class', 10, 3 ); function wpse156165_menu_add_class( $atts, $item, $args ) { $class = 'class'; // or something based on $item $atts['class'] = $class; return $atts; } A: add_filter( 'nav_menu_link_attributes', 'wpse156165_menu_add_class', 10, 3 ); function wpse156165_menu_add_class( $classes, $item, $args ) { if(isset($args->add_link_class)) { $classes['class'] = $args->add_link_class; } return $classes; } Now you can use add_link_class as an array in menus.
wordpress
{ "language": "en", "length": 220, "provenance": "stackexchange_00019.jsonl.gz:447406", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/156165" }
[ 0.07525634765625, 0.011810302734375, 0.0218963623046875, 0.01001739501953125, 0.03680419921875, -0.053375244140625, 0.10516357421875, -0.052825927734375, -0.057525634765625, -0.0052337646484375, -0.0299224853515625, 0.040802001953125, -0.028778076171875, -0.0275421142578125, 0.052215576171875, -0.055145263671875, 0.031494140625, 0.0035991668701171875, 0.039947509765625, -0.01031494140625, 0.01611328125, 0.0181427001953125, 0.03375244140625, 0.05120849609375, 0.034271240234375, -0.05755615234375, 0.057525634765625, -0.001850128173828125, 0.021636962890625, 0.00543975830078125, 0.0241546630859375, -0.0207672119140625, 0.014862060546875, 0.01326751708984375, 0.027008056640625, -0.0001819133758544922, 0.00543212890625, -0.0023193359375, 0.0105133056640625, 0.0194244384765625, 0.053924560546875, -0.034088134765625, -0.002285003662109375, 0.020751953125, -0.01123046875, -0.03619384765625, 0.037261962890625, -0.032958984375, 0.0160064697265625, -0.053741455078125, 0.003936767578125, 0.006702423095703125, 0.01666259765625, -0.0343017578125, -0.027801513671875, -0.0082550048828125, -0.0101165771484375, -0.004856109619140625, 0.01219940185546875, 0.0282745361328125, -0.003993988037109375, 0.01401519775390625, 0.004512786865234375, -0.025390625, -0.020477294921875, -0.007175445556640625, 0.03472900390625, 0.0015163421630859375, -0.03265380859375, -0.020416259765625, 0.0297698974609375, 0.007640838623046875, -0.0256805419921875, 0.011199951171875, -0.01861572265625, -0.035858154296875, 0.038818359375, -0.026397705078125, -0.013885498046875, 0.049713134765625, 0.0328369140625, 0.01580810546875, -0.01543426513671875, -0.01477813720703125, -0.000023424625396728516, -0.01441192626953125, -0.0129241943359375, -0.024993896484375, 0.01666259765625, -0.0221405029296875, -0.0011167526245117188, -0.0033893585205078125, 0.0178985595703125, -0.003032684326171875, -0.0261688232421875, -0.037322998046875, -0.0024509429931640625, 0.07305908203125, -0.026214599609375, 0.04266357421875, -0.005962371826171875, -0.0258941650390625, 0.08343505859375, -0.09100341796875, -0.011016845703125, 0.044677734375, 0.0243988037109375, 0.0377197265625, 0.0118255615234375, 0.01513671875, -0.01207733154296875, 0.0008802413940429688, 0.01336669921875, -0.02069091796875, -0.01490020751953125, -0.0044708251953125, -0.0238494873046875, 0.01166534423828125, 0.005474090576171875, -0.02252197265625, 0.01219940185546875, 0.038116455078125, 0.0167999267578125, -0.004352569580078125, -0.0247955322265625, -0.0052032470703125, 0.0009131431579589844, -0.05145263671875, 0.0018520355224609375, 0.0044403076171875, -0.022674560546875, 0.01560211181640625, 0.045135498046875, 0.05267333984375, 0.01727294921875, -0.01470947265625, 0.0352783203125, -0.037933349609375, -0.01143646240234375, 0.01849365234375, 0.0147552490234375, -0.01708984375, -0.0194549560546875, -0.0138397216796875, 0.005390167236328125, 0.0212249755859375, 0.0011453628540039062, 0.00337982177734375, 0.0027256011962890625, -0.05560302734375, 0.04754638671875, -0.08392333984375, 0.055389404296875, 0.0074462890625, -0.0504150390625, -0.00687408447265625, -0.008209228515625, -0.006336212158203125, -0.0341796875, -0.031463623046875, -0.031951904296875, -0.0059356689453125, 0.00045561790466308594, -0.064208984375, -0.04901123046875, 0.005924224853515625, -0.016021728515625, -0.000293731689453125, 0.0174560546875, -0.00006008148193359375, 0.01068115234375, -0.0158843994140625, 0.00934600830078125, 0.01690673828125, 0.0011386871337890625, 0.026519775390625, 0.01476287841796875, 0.044189453125, 0.018280029296875, 0.005115509033203125, -0.0184173583984375, -0.053863525390625, 0.06060791015625, -0.0254669189453125, -0.031036376953125, 0.021728515625, 0.004772186279296875, 0.06549072265625, 0.024627685546875, 0.0238800048828125, -0.00628662109375, -0.00838470458984375, -0.060150146484375, 0.000980377197265625, -0.01036834716796875, -0.0131378173828125, -0.01461029052734375, -0.004878997802734375, -0.010589599609375, 0.0308380126953125, -0.024444580078125, -0.002674102783203125, 0.001880645751953125, 0.01296234130859375, -0.02642822265625, 0.0159759521484375, -0.0137939453125, 0.042877197265625, -0.0033473968505859375, -0.0281829833984375, 0.003570556640625, -0.020965576171875, 0.0216064453125, -0.07861328125, -0.04241943359375, 0.02203369140625, -0.00015056133270263672, -0.009796142578125, -0.021148681640625, -0.0184173583984375, -0.0181732177734375, -0.003971099853515625, -0.027313232421875, 0.022674560546875, 0.01215362548828125, -0.00768280029296875, -0.031951904296875, -0.019256591796875, -0.0234222412109375, 0.012054443359375, -0.037078857421875, 0.03564453125, 0.03985595703125, 0.01486968994140625, -0.046600341796875, -0.01270294189453125, -0.00418853759765625, -0.047210693359375, -0.0068817138671875, 0.047943115234375, 0.038604736328125, 0.0177001953125, -0.0247955322265625, -0.05078125, 0.0226898193359375, 0.0005192756652832031, 0.033294677734375, -0.046630859375, -0.0419921875, 0.0155029296875, 0.04345703125, 0.031463623046875, 0.01288604736328125, 0.04156494140625, -0.02593994140625, 0.037689208984375, -0.00392913818359375, -0.0034942626953125, -0.01531982421875, 0.0205078125, 0.00807952880859375, 0.03082275390625, -0.01032257080078125, 0.01189422607421875, 0.0189361572265625, 0.01482391357421875, 0.0228729248046875, 0.00806427001953125, -0.037628173828125, 0.01184844970703125, 0.0250701904296875, -0.002063751220703125, 0.00708770751953125, -0.0006947517395019531, -0.01470947265625, 0.01202392578125, 0.001018524169921875, -0.0031185150146484375, 0.032806396484375, 0.0012226104736328125, -0.01340484619140625, 0.0325927734375, 0.02984619140625, -0.0138397216796875, -0.004421234130859375, -0.06597900390625, 0.0285491943359375, -0.0128631591796875, -0.035308837890625, -0.03179931640625, 0.0196990966796875, -0.004856109619140625, -0.03515625, 0.003482818603515625, -0.018310546875, -0.0286102294921875, 0.0267181396484375, 0.0168914794921875, 0.0162506103515625, -0.004047393798828125, 0.006481170654296875, 0.038818359375, -0.02001953125, 0.00933837890625, -0.006183624267578125, -0.0113677978515625, -0.01641845703125, -0.00007736682891845703, -0.01312255859375, -0.033538818359375, -0.0012950897216796875, 0.0626220703125, 0.007221221923828125, 0.0157012939453125, -0.038482666015625, -0.040802001953125, -0.034271240234375, -0.0244293212890625, -0.055419921875, -0.012664794921875, 0.075927734375, -0.06573486328125, 0.0234832763671875, 0.0274658203125, -0.046356201171875, -0.046112060546875, 0.0975341796875, 0.00000768899917602539, -0.002071380615234375, -0.00899505615234375, -0.031890869140625, -0.0093536376953125, -0.058258056640625, 0.00041604042053222656, 0.003131866455078125, 0.018341064453125, 0.005992889404296875, 0.0254974365234375, 0.0055694580078125, -0.007793426513671875, 0.031829833984375, -0.012420654296875, -0.005680084228515625, 0.0010433197021484375, 0.0187530517578125, -0.0208892822265625, 0.00318145751953125, -0.005615234375, 0.024169921875, 0.02716064453125, -0.01953125, -0.01137542724609375, -0.0350341796875, 0.0090484619140625, 0.00879669189453125, 0.01548004150390625, 0.038604736328125, 0.03790283203125, 0.0297088623046875, -0.01727294921875, -0.019256591796875, -0.0115966796875, -0.017974853515625, 0.004619598388671875, 0.01476287841796875, -0.0057373046875, -0.033477783203125, 0.03070068359375, -0.012725830078125, 0.0015010833740234375, 0.032806396484375, -0.031341552734375, 0.020538330078125, -0.00811004638671875, -0.00699615478515625, -0.0184173583984375, 0.049560546875, 0.002964019775390625, 0.0074615478515625, 0.022003173828125, 0.007678985595703125, -0.004978179931640625, 0.010406494140625, -0.05926513671875, -0.08270263671875, 0.051788330078125, -0.04034423828125, 0.0243072509765625, -0.045440673828125, -0.027099609375, 0.0121002197265625, 0.124755859375, -0.07818603515625, -0.0295257568359375, -0.01122283935546875, 0.0265350341796875, 0.021942138671875, -0.038360595703125, 0.005565643310546875, -0.043365478515625, -0.1060791015625, 0.03656005859375, 0.00662994384765625, -0.025726318359375, -0.046051025390625, 0.0265960693359375, -0.08837890625, -0.032135009765625, 0.033843994140625, -0.031524658203125, 0.0008692741394042969, 0.060211181640625, -0.029449462890625, 0.0234222412109375, -0.0274505615234375, -0.008026123046875, -0.0693359375, -0.01290130615234375, -0.0416259765625, 0.0777587890625, 0.02056884765625, 0.002105712890625, -0.006183624267578125, 0.05572509765625, 0.04876708984375, 0.0288848876953125, 0.0350341796875, -0.0024566650390625, 0.022613525390625, -0.00588226318359375, 0.036102294921875, -0.03277587890625, 0.016754150390625, 0.0181121826171875, -0.06121826171875, 0.026153564453125, -0.01114654541015625, -0.006275177001953125, 0.04974365234375, -0.061676025390625, -0.0237579345703125, -0.04296875, 0.0023651123046875, 0.007335662841796875, 0.020233154296875, -0.00771331787109375, -0.030975341796875, -0.02886962890625, 0.0014972686767578125, -0.0219268798828125, -0.015350341796875, 0.019256591796875, 0.0307159423828125, 0.0307769775390625, -0.0134735107421875, -0.0089569091796875, 0.033050537109375, 0.0265960693359375, -0.0303802490234375, 0.06378173828125, 0.018035888671875, -0.004337310791015625, 0.047607421875, -0.014129638671875, 0.0166473388671875, 0.0247802734375, 0.031097412109375, 0.0207366943359375, -0.020599365234375, 0.015899658203125, 0.0157012939453125, -0.0408935546875, -0.003162384033203125, -0.0094146728515625, -0.03302001953125, 0.0141143798828125, 0.047882080078125, 0.00023686885833740234, 0.0164337158203125, -0.03448486328125, 0.00943756103515625, -0.01428985595703125, -0.0143585205078125, 0.07928466796875, 0.048126220703125, -0.015777587890625, 0.01641845703125, 0.0264434814453125, -0.00606536865234375, -0.006038665771484375, -0.02410888671875, -0.013153076171875, 0.0238037109375, -0.02777099609375, -0.01702880859375, 0.0081329345703125, -0.01419830322265625, 0.1160888671875, 0.0374755859375, -0.01126861572265625, -0.0197296142578125, -0.01155853271484375, 0.0254669189453125, -0.01482391357421875, -0.01380157470703125, 0.050811767578125, 0.006622314453125, -0.005615234375, -0.02203369140625, -0.0784912109375, -0.0020580291748046875, -0.04779052734375, 0.04241943359375, 0.041107177734375, -0.0240325927734375, -0.00875091552734375, -0.00370025634765625, 0.030792236328125, -0.033721923828125, -0.0007624626159667969, -0.0195159912109375, -0.01873779296875, 0.06671142578125, 0.033538818359375, -0.0347900390625, -0.0203399658203125, 0.06158447265625, 0.00540924072265625, -0.01471710205078125, 0.00778961181640625, 0.01433563232421875, 0.0284881591796875, 0.012786865234375, -0.0032901763916015625, -0.0053253173828125, -0.035247802734375, -0.022674560546875, 0.029815673828125, -0.01049041748046875, -0.041961669921875, -0.040863037109375, -0.0258026123046875, 0.0292510986328125, -0.0066070556640625, -0.0200958251953125, 0.0234832763671875, -0.00188446044921875, 0.025848388671875, -0.016693115234375, -0.0197906494140625, 0.0177001953125, 0.025848388671875, -0.00675201416015625, 0.0166473388671875, 0.0214080810546875, -0.0657958984375, -0.040802001953125, -0.0237884521484375, -0.01983642578125, 0.0377197265625, -0.047515869140625, 0.039947509765625, -0.0265960693359375, -0.006134033203125, -0.04052734375, 0.025482177734375, 0.0008921623229980469, 0.0149993896484375, -0.0022945404052734375, -0.025604248046875, -0.032379150390625, -0.01027679443359375, -0.0176544189453125, -0.0426025390625, 0.0008425712585449219, 0.00029659271240234375, 0.0129241943359375, 0.0143585205078125, -0.0035495758056640625, -0.034637451171875, -0.0421142578125, 0.01092529296875, 0.03857421875, -0.00688934326171875, -0.0168914794921875, 0.0736083984375, -0.00714111328125, 0.0305023193359375, 0.0139923095703125, 0.03466796875, 0.006320953369140625, -0.020172119140625, 0.0158843994140625, -0.0258026123046875, -0.017303466796875, -0.0210113525390625, -0.031463623046875, 0.0149993896484375, 0.066650390625, -0.0093536376953125, 0.02630615234375, -0.0186614990234375, -0.0008883476257324219, -0.03173828125, 0.02105712890625, -0.0268707275390625, 0.0239410400390625, 0.002529144287109375, 0.0184478759765625, 0.06915283203125, -0.01275634765625, 0.006969451904296875, -0.012237548828125, -0.00928497314453125, 0.031341552734375, -0.0242767333984375, -0.071533203125, 0.08404541015625, 0.0926513671875, 0.020843505859375, 0.052490234375, -0.0012731552124023438, 0.0218048095703125, 0.02166748046875, -0.0240020751953125, 0.043060302734375, 0.03851318359375, 0.0882568359375, -0.012847900390625, -0.0078125, 0.04644775390625, -0.03436279296875, 0.0146026611328125, 0.0279998779296875, 0.053253173828125, -0.055511474609375, 0.0229339599609375, 0.017425537109375, -0.0027675628662109375, 0.076904296875, 0.04205322265625, -0.0100860595703125, 0.01441192626953125, -0.00372314453125, -0.0699462890625, -0.0189971923828125, 0.019378662109375, 0.00737762451171875, -0.0034732818603515625, -0.01226806640625, -0.018524169921875, -0.0025177001953125, 0.0012464523315429688, -0.0251007080078125, 0.0009288787841796875, -0.005840301513671875, -0.017181396484375, -0.019073486328125, 0.02166748046875, -0.0078125, -0.036224365234375, 0.046173095703125, -0.0672607421875, 0.03717041015625, 0.036102294921875, -0.013275146484375, 0.0011844635009765625, 0.0185394287109375, -0.0171661376953125, 0.0230255126953125, -0.0214080810546875, -0.008697509765625, -0.0181884765625, -0.010589599609375, 0.016632080078125, -0.0005068778991699219, -0.03338623046875, 0.0193023681640625, -0.019500732421875, -0.03033447265625, -0.0013570785522460938, 0.0015048980712890625, 0.06585693359375, -0.0443115234375, -0.014190673828125, 0.017364501953125, -0.00521087646484375, 0.00084686279296875, -0.030181884765625, 0.06109619140625, -0.0556640625, -0.00698089599609375, -0.00679779052734375, 0.007007598876953125, -0.011810302734375, -0.039703369140625, 0.0036602020263671875, 0.06793212890625, -0.03436279296875, -0.041839599609375, 0.0192108154296875, 0.057769775390625, -0.0003917217254638672, 0.0694580078125, -0.022857666015625, 0.0239410400390625, 0.005054473876953125, 0.0195159912109375, -0.01016998291015625, -0.0014009475708007812, 0.01239776611328125, 0.0213165283203125, -0.027069091796875, 0.002246856689453125, -0.025177001953125, 0.0196990966796875, 0.058837890625, 0.041412353515625, 0.043182373046875, 0.0124969482421875, -0.0439453125, -0.00949859619140625, 0.002857208251953125, -0.0119476318359375, 0.01214599609375, 0.00848388671875, -0.056488037109375, -0.00799560546875, 0.01412200927734375, 0.017242431640625, 0.015960693359375, 0.0153961181640625, -0.034454345703125, 0.0183868408203125, 0.007457733154296875, 0.0004267692565917969, -0.0118255615234375, 0.044464111328125, 0.005840301513671875, -0.026092529296875, -0.0594482421875, -0.02593994140625, 0.0254058837890625, -0.0056915283203125, 0.00506591796875, -0.0050811767578125, -0.0002627372741699219, -0.01012420654296875, 0.0189361572265625, -0.00017333030700683594, 0.0404052734375, -0.00768280029296875, 0.05426025390625, 0.0247802734375, 0.034576416015625, -0.038604736328125, -0.03680419921875, 0.04022216796875, 0.07275390625, -0.034820556640625, -0.0122222900390625, 0.00421905517578125, 0.0006427764892578125, 0.0250701904296875, -0.023712158203125, 0.047454833984375, -0.02996826171875, -0.0322265625, -0.03863525390625, 0.01268768310546875, 0.0237274169921875, 0.0254364013671875, -0.01210784912109375, -0.01467132568359375, -0.0270233154296875, 0.01495361328125, -0.06817626953125, 0.0259246826171875, 0.00818634033203125, 0.0450439453125, 0.0236968994140625, 0.048980712890625, 0.0419921875, -0.0189666748046875, 0.0029773712158203125, 0.048187255859375, 0.0017080307006835938, -0.0019140243530273438, 0.0009016990661621094, -0.041107177734375, -0.0037631988525390625, 0.021148681640625, -0.0020198822021484375, 0.01456451416015625, 0.015350341796875, 0.0005202293395996094, -0.00014543533325195312, -0.0103302001953125, 0.0023746490478515625, -0.02838134765625, -0.0411376953125, -0.01107025146484375, -0.0081787109375, 0.044647216796875, 0.0038700103759765625, 0.0181884765625, 0.0034809112548828125, 0.054107666015625, 0.0016078948974609375, 0.0023136138916015625, 0.006298065185546875, -0.0198822021484375, -0.0211029052734375, -0.00942230224609375, 0.006793975830078125, 0.0215911865234375, -0.10772705078125, -0.0292510986328125, -0.017486572265625, -0.0721435546875, 0.06494140625, 0.065185546875, -0.02923583984375, -0.006114959716796875, 0.0218048095703125, -0.0238189697265625, 0.016998291015625, 0.0195770263671875, 0.0007767677307128906, 0.035003662109375, 0.0268096923828125, 0.018951416015625, -0.06500244140625, -0.021728515625, -0.01512908935546875, 0.0169830322265625, 0.0204010009765625, -0.00945281982421875, 0.0310211181640625, 0.0184326171875, -0.03570556640625, 0.037933349609375, -0.048675537109375, -0.0340576171875, 0.003696441650390625, 0.006008148193359375, 0.0110015869140625, 0.0015773773193359375, -0.048919677734375, 0.01073455810546875, 0.052032470703125, -0.040374755859375, 0.010986328125, 0.004604339599609375, 0.0173492431640625, -0.0455322265625, 0.01904296875, -0.0260772705078125, -0.01383209228515625, -0.027984619140625, -0.0242767333984375, 0.02392578125, 0.0145263671875, 0.00928497314453125, 0.035919189453125, 0.0024662017822265625, 0.00865936279296875, 0.01308441162109375, -0.00872039794921875, 0.033172607421875, 0.04052734375, -0.0394287109375, -0.0113372802734375, 0.008880615234375, -0.011566162109375, 0.023773193359375, 0.0025634765625, 0.0137481689453125, 0.016754150390625, -0.058807373046875, 0.056304931640625, 0.0498046875, 0.05804443359375, -0.031951904296875, 0.01953125, 0.05731201171875, 0.0007238388061523438, 0.01264190673828125, -0.027374267578125, -0.054656982421875, -0.07025146484375, 0.0180511474609375, 0.041107177734375, -0.036102294921875, 0.0015802383422851562, -0.1009521484375, 0.017578125, 0.0235443115234375, 0.0115203857421875, -0.06884765625, 0.03704833984375, -0.0086212158203125, 0.0711669921875, -0.03369140625, -0.0084991455078125, -0.010833740234375, 0.00667572021484375, -0.01030731201171875, -0.019866943359375, -0.04248046875, 0.0372314453125, -0.0335693359375, -0.0009765625, 0.02117919921875, -0.0138397216796875, -0.008026123046875, 0.005767822265625, 0.01358795166015625, 0.054351806640625, 0.0012664794921875, -0.040130615234375, -0.0234832763671875, 0.007965087890625, 0.01219940185546875, -0.04376220703125, 0.0118408203125, -0.06561279296875, -0.0157012939453125, 0.0648193359375, -0.0251922607421875, 0.0175018310546875, -0.0224151611328125, -0.06707763671875, 0.08843994140625, 0.00904083251953125, -0.03656005859375, -0.023162841796875, 0.0400390625, -0.018402099609375, -0.007167816162109375, -0.0052642822265625, -0.009124755859375, 0.0287628173828125, 0.0176544189453125, -0.01039886474609375, 0.050933837890625, -0.006435394287109375, 0.0100555419921875, -0.04180908203125, 0.0014696121215820312, -0.0266571044921875, -0.00325775146484375, 0.007762908935546875, -0.0216827392578125, 0.037200927734375, 0.037567138671875, -0.032501220703125, -0.00966644287109375, -0.0031681060791015625, -0.0009441375732421875, 0.0223846435546875, -0.024658203125, -0.043121337890625, -0.056793212890625, 0.026885986328125, -0.022674560546875, 0.01280975341796875, 0.02734375, -0.015625, -0.02984619140625, -0.00611114501953125, -0.0025787353515625, 0.00555419921875, -0.06390380859375, -0.019805908203125, 0.0288848876953125, 0.0024890899658203125, -0.00936126708984375, 0.033966064453125, -0.01338958740234375, -0.00862884521484375, 0.047271728515625, 0.0080108642578125, -0.07012939453125, -0.01308441162109375, 0.06195068359375, -0.0345458984375, 0.033538818359375, -0.0022296905517578125, 0.021148681640625, 0.053192138671875, 0.01273345947265625, -0.01543426513671875, -0.036346435546875, -0.014801025390625, 0.022979736328125, -0.021514892578125, 0.00855255126953125, -0.028961181640625, -0.0159759521484375, -0.0264129638671875, 0.02508544921875, 0.018310546875, 0.037017822265625, -0.02117919921875, 0.0030498504638671875, 0.00800323486328125, 0.0186767578125, -0.00969696044921875, 0.01470947265625, 0.0037250518798828125, 0.0307769775390625, -0.005279541015625, -0.011260986328125, 0.024169921875, -0.04095458984375, -0.001506805419921875, 0.004878997802734375, -0.01392364501953125, -0.051727294921875, 0.0265350341796875, 0.0193634033203125, -0.00484466552734375, 0.025115966796875 ]
1a606f79593f17b82c1658bf7a71f88b2c42ff96
Wordpress Stackexchange Q: "wp_editor" not displaying TinyMCE correctly when square brackets used in name I'm creating a custom options page and I have a textarea that I've turned into a TinyMCE editor using wp_editor. TinyMCE displays correctly, however it breaks when I include square brackets in the $id. Here's the code I'm using for the add_settings_field function callback: function px_wp_editor($args){ $options = get_option('theme_options'); $value = $options['px_wp_editor']; $id = 'theme_options[px_wp_editor]'; extract( $args ); $class = (!empty($class))?$class:''; $settings = array( 'textarea_rows' => 12, 'textarea_name' => $id, 'editor_class' => $class, 'media_buttons' => true, 'tinymce' => true ); wp_editor($value, $id, $settings ); } If I removed the square brackets from the $id value then it displays fine. However, because of the way I'm retrieving the values using get_option, I need to call "textarea_name" as it currently is, with square brackets. The first pic below is how it looks when using square brackets for the name (full icons don't display correctly and there are no Visual/Text buttons. The second pic is how it should display. A: You cannot put square brackets as editor id. but you can change textarea name by. wp_editor('','px_wp_editor',array('textarea_name' => 'theme_options[px_wp_editor]')); the important part is, "id" and "textarea_name" are different.
Q: "wp_editor" not displaying TinyMCE correctly when square brackets used in name I'm creating a custom options page and I have a textarea that I've turned into a TinyMCE editor using wp_editor. TinyMCE displays correctly, however it breaks when I include square brackets in the $id. Here's the code I'm using for the add_settings_field function callback: function px_wp_editor($args){ $options = get_option('theme_options'); $value = $options['px_wp_editor']; $id = 'theme_options[px_wp_editor]'; extract( $args ); $class = (!empty($class))?$class:''; $settings = array( 'textarea_rows' => 12, 'textarea_name' => $id, 'editor_class' => $class, 'media_buttons' => true, 'tinymce' => true ); wp_editor($value, $id, $settings ); } If I removed the square brackets from the $id value then it displays fine. However, because of the way I'm retrieving the values using get_option, I need to call "textarea_name" as it currently is, with square brackets. The first pic below is how it looks when using square brackets for the name (full icons don't display correctly and there are no Visual/Text buttons. The second pic is how it should display. A: You cannot put square brackets as editor id. but you can change textarea name by. wp_editor('','px_wp_editor',array('textarea_name' => 'theme_options[px_wp_editor]')); the important part is, "id" and "textarea_name" are different. A: I'm not able to test this right now, but try this: $id = htmlentities('theme_options[px_wp_editor]');
wordpress
{ "language": "en", "length": 211, "provenance": "stackexchange_00019.jsonl.gz:447446", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/156309" }
[ -0.01132965087890625, -0.0253448486328125, -0.0202178955078125, 0.01363372802734375, -0.0197906494140625, -0.0210723876953125, 0.0267486572265625, -0.0008115768432617188, 0.019073486328125, 0.0258331298828125, 0.017669677734375, -0.0193328857421875, -0.01654052734375, -0.038421630859375, -0.0206451416015625, -0.014404296875, 0.0309600830078125, -0.049285888671875, -0.027191162109375, -0.022552490234375, -0.03155517578125, -0.0004968643188476562, 0.0054473876953125, -0.01317596435546875, 0.013427734375, -0.07733154296875, 0.11712646484375, -0.060089111328125, 0.0173187255859375, -0.059661865234375, 0.0124664306640625, 0.029815673828125, 0.0218963623046875, 0.05731201171875, -0.038421630859375, 0.07757568359375, 0.0010738372802734375, 0.0323486328125, 0.026824951171875, 0.0026702880859375, 0.02001953125, -0.01117706298828125, 0.0038890838623046875, -0.003017425537109375, -0.027099609375, -0.0262451171875, 0.044891357421875, -0.004062652587890625, 0.01525115966796875, -0.026580810546875, 0.00518035888671875, 0.002391815185546875, 0.0257110595703125, -0.0224456787109375, -0.0291748046875, -0.01116943359375, -0.040557861328125, 0.0250396728515625, -0.005615234375, 0.0703125, 0.0276947021484375, 0.040191650390625, -0.034759521484375, -0.03887939453125, 0.002040863037109375, -0.0302581787109375, -0.006633758544921875, 0.031951904296875, 0.0020771026611328125, -0.018707275390625, -0.002429962158203125, 0.01001739501953125, 0.021697998046875, -0.049468994140625, 0.0284423828125, 0.00812530517578125, 0.006526947021484375, -0.00617218017578125, -0.0006899833679199219, -0.005100250244140625, 0.0174407958984375, -0.0060882568359375, -0.044036865234375, 0.0189971923828125, 0.0178680419921875, 0.049560546875, -0.0026988983154296875, -0.04034423828125, -0.006664276123046875, -0.0204620361328125, -0.0024051666259765625, -0.06365966796875, -0.0345458984375, 0.04986572265625, 0.031280517578125, -0.04205322265625, 0.007587432861328125, -0.019927978515625, 0.0001785755157470703, 0.004978179931640625, 0.04931640625, -0.061553955078125, 0.08245849609375, -0.0175323486328125, -0.0173492431640625, 0.006153106689453125, 0.015960693359375, 0.01073455810546875, 0.005279541015625, 0.034423828125, -0.0345458984375, -0.014007568359375, 0.006282806396484375, -0.0149993896484375, -0.0031566619873046875, 0.007495880126953125, -0.03143310546875, 0.04241943359375, -0.005603790283203125, 0.03094482421875, -0.0164337158203125, -0.001178741455078125, 0.01555633544921875, -0.01203155517578125, -0.01511383056640625, -0.017913818359375, -0.005245208740234375, -0.007659912109375, 0.0011434555053710938, 0.030975341796875, -0.0391845703125, -0.01523590087890625, 0.0531005859375, 0.048065185546875, 0.0290679931640625, -0.028076171875, 0.032562255859375, -0.00345611572265625, -0.026458740234375, 0.013153076171875, 0.0154571533203125, 0.00954437255859375, -0.00457763671875, -0.0242919921875, -0.0083465576171875, 0.0139007568359375, 0.025390625, 0.017181396484375, -0.028411865234375, -0.07989501953125, 0.0457763671875, -0.038665771484375, 0.056671142578125, 0.01349639892578125, -0.040130615234375, -0.0259246826171875, 0.040679931640625, -0.050384521484375, -0.02386474609375, -0.0675048828125, 0.02069091796875, -0.0004687309265136719, 0.0499267578125, -0.01490020751953125, -0.016448974609375, 0.0063323974609375, -0.0823974609375, -0.0172882080078125, 0.0290374755859375, 0.04296875, 0.003948211669921875, -0.0283355712890625, 0.005031585693359375, 0.01438140869140625, -0.01120758056640625, 0.025665283203125, -0.0220184326171875, 0.01464080810546875, 0.01751708984375, -0.0265960693359375, -0.0078125, -0.043609619140625, 0.0043487548828125, 0.01091766357421875, -0.0523681640625, 0.020172119140625, 0.0049285888671875, 0.06622314453125, 0.019989013671875, 0.0213623046875, 0.01306915283203125, -0.0006494522094726562, 0.005756378173828125, 0.0109405517578125, 0.00650787353515625, -0.0423583984375, -0.031005859375, -0.01467132568359375, -0.01145172119140625, 0.0032958984375, 0.009613037109375, 0.00765228271484375, -0.00420379638671875, -0.0038299560546875, -0.1031494140625, 0.034912109375, -0.041259765625, 0.048919677734375, -0.000751495361328125, -0.0095367431640625, 0.006816864013671875, -0.0016384124755859375, -0.01387786865234375, 0.0105438232421875, -0.01483917236328125, 0.049774169921875, -0.005794525146484375, 0.038482666015625, -0.007617950439453125, 0.033355712890625, 0.0014057159423828125, -0.0169525146484375, 0.021820068359375, 0.033172607421875, -0.01229095458984375, -0.023345947265625, -0.0203399658203125, -0.0097808837890625, 0.00325775146484375, -0.024749755859375, 0.0509033203125, 0.0384521484375, 0.03045654296875, 0.06488037109375, -0.040374755859375, -0.037872314453125, -0.06884765625, -0.052154541015625, 0.01480865478515625, 0.06524658203125, 0.0227508544921875, 0.0275726318359375, -0.0222015380859375, -0.008697509765625, 0.06365966796875, 0.0248870849609375, 0.031494140625, -0.0228729248046875, 0.00550079345703125, 0.04400634765625, -0.005401611328125, -0.006504058837890625, 0.005893707275390625, -0.0295562744140625, -0.00033354759216308594, 0.0167083740234375, -0.0004436969757080078, 0.0244903564453125, 0.070556640625, -0.0233917236328125, -0.02813720703125, 0.01352691650390625, 0.0343017578125, -0.0151519775390625, 0.01474761962890625, 0.0709228515625, 0.02508544921875, 0.0230560302734375, -0.038665771484375, 0.084716796875, -0.004947662353515625, -0.0625, -0.002262115478515625, 0.01453399658203125, 0.0141448974609375, -0.00901031494140625, -0.0225372314453125, 0.00366973876953125, -0.0037078857421875, -0.0025501251220703125, -0.0004684925079345703, 0.045501708984375, -0.005329132080078125, -0.014862060546875, -0.0017995834350585938, -0.037933349609375, -0.0046844482421875, 0.0009646415710449219, -0.0352783203125, -0.03179931640625, -0.00506591796875, 0.0419921875, -0.0233917236328125, 0.031494140625, -0.036041259765625, -0.00336456298828125, 0.0750732421875, 0.035308837890625, -0.0111541748046875, 0.0235748291015625, 0.035552978515625, 0.039459228515625, -0.00521087646484375, -0.01476287841796875, 0.013763427734375, 0.00400543212890625, 0.00542449951171875, 0.04339599609375, 0.0210418701171875, -0.021026611328125, -0.0287017822265625, -0.0022335052490234375, 0.016845703125, 0.061004638671875, -0.01161956787109375, -0.05010986328125, 0.004253387451171875, 0.047271728515625, -0.00846099853515625, -0.004791259765625, 0.056304931640625, -0.052764892578125, -0.0269012451171875, -0.01251983642578125, -0.04644775390625, 0.012481689453125, -0.0119781494140625, -0.0089263916015625, -0.041778564453125, -0.012664794921875, -0.0292510986328125, -0.05023193359375, -0.0289764404296875, -0.0030612945556640625, -0.00420379638671875, -0.00511932373046875, 0.033447265625, 0.00383758544921875, 0.045623779296875, -0.0004398822784423828, 0.07611083984375, 0.00811767578125, -0.0255584716796875, 0.03271484375, 0.044189453125, -0.043792724609375, 0.0150299072265625, 0.0016021728515625, -0.019378662109375, 0.0275726318359375, -0.01488494873046875, -0.024810791015625, 0.0257415771484375, 0.0064849853515625, 0.063720703125, 0.0232696533203125, -0.054931640625, 0.040374755859375, 0.0682373046875, -0.02734375, -0.0172576904296875, 0.01413726806640625, -0.0048065185546875, 0.0360107421875, -0.0174713134765625, -0.034271240234375, 0.005794525146484375, 0.05487060546875, -0.0273895263671875, -0.0024166107177734375, 0.0406494140625, -0.0274505615234375, 0.0122528076171875, -0.01306915283203125, -0.0114593505859375, -0.006443023681640625, -0.0110321044921875, -0.0197296142578125, -0.00827789306640625, -0.0183868408203125, -0.0077667236328125, -0.0166473388671875, 0.0212249755859375, -0.0003113746643066406, -0.0310516357421875, 0.017822265625, -0.09326171875, -0.0102691650390625, -0.0311431884765625, 0.017425537109375, -0.0098114013671875, 0.055908203125, -0.031951904296875, -0.005279541015625, 0.0285186767578125, 0.01548004150390625, -0.0259246826171875, -0.00864410400390625, -0.0665283203125, 0.0005631446838378906, -0.05902099609375, 0.0139312744140625, 0.0024166107177734375, -0.0257110595703125, -0.01446533203125, 0.037689208984375, -0.04376220703125, -0.03485107421875, 0.01873779296875, -0.032958984375, -0.0126800537109375, 0.03564453125, -0.0310516357421875, 0.01219940185546875, -0.022705078125, -0.033843994140625, -0.10107421875, -0.0264892578125, -0.0003790855407714844, 0.0848388671875, 0.003566741943359375, -0.029449462890625, -0.033111572265625, 0.06744384765625, -0.03424072265625, 0.0181884765625, 0.004222869873046875, 0.055633544921875, -0.043914794921875, -0.020416259765625, -0.008056640625, -0.042999267578125, 0.0206451416015625, 0.0082550048828125, -0.05224609375, -0.022857666015625, -0.04595947265625, -0.011077880859375, 0.0243988037109375, -0.050933837890625, -0.053955078125, -0.02008056640625, -0.018280029296875, 0.01477813720703125, -0.0212249755859375, -0.0009732246398925781, -0.01398468017578125, -0.0653076171875, 0.02728271484375, -0.03533935546875, 0.0068359375, 0.01367950439453125, 0.065185546875, 0.0170135498046875, 0.00003230571746826172, -0.01116943359375, -0.019775390625, 0.032470703125, 0.01004791259765625, -0.0181427001953125, -0.01438140869140625, -0.031494140625, 0.00841522216796875, -0.006622314453125, 0.027618408203125, -0.052093505859375, 0.07073974609375, 0.0184783935546875, 0.034393310546875, -0.00861358642578125, 0.019744873046875, -0.0296173095703125, 0.00006896257400512695, -0.024627685546875, 0.0213165283203125, 0.00521087646484375, 0.019622802734375, -0.025726318359375, 0.01580810546875, -0.032623291015625, -0.021087646484375, -0.01151275634765625, 0.0267791748046875, 0.054046630859375, 0.0489501953125, -0.004711151123046875, 0.01242828369140625, 0.0200958251953125, -0.0239410400390625, 0.03948974609375, -0.005786895751953125, 0.018524169921875, 0.0241851806640625, 0.0029449462890625, -0.031005859375, 0.00994873046875, -0.0123291015625, 0.00963592529296875, 0.02630615234375, -0.01305389404296875, -0.015838623046875, 0.0005397796630859375, 0.030853271484375, -0.02752685546875, 0.00785064697265625, -0.017822265625, 0.00005221366882324219, -0.029937744140625, 0.022613525390625, 0.03399658203125, -0.0075531005859375, 0.0027217864990234375, 0.005023956298828125, 0.031646728515625, -0.01251220703125, -0.0014820098876953125, 0.0643310546875, 0.036529541015625, 0.004550933837890625, -0.03057861328125, 0.0214691162109375, -0.00856781005859375, 0.0243988037109375, 0.010040283203125, 0.014373779296875, -0.0004563331604003906, 0.0037937164306640625, -0.01103973388671875, -0.041656494140625, 0.0316162109375, 0.03302001953125, 0.036712646484375, 0.01861572265625, -0.045989990234375, 0.008056640625, -0.0460205078125, -0.012786865234375, 0.0121917724609375, -0.01528167724609375, -0.056732177734375, -0.0017518997192382812, 0.031463623046875, -0.00261688232421875, -0.016571044921875, 0.005340576171875, -0.0014543533325195312, -0.046234130859375, -0.021484375, 0.036529541015625, -0.032989501953125, -0.03076171875, -0.0312042236328125, -0.0003561973571777344, -0.00547027587890625, -0.0306243896484375, -0.06451416015625, -0.07147216796875, 0.0091705322265625, 0.01348876953125, 0.0482177734375, -0.027008056640625, 0.0177459716796875, -0.0259857177734375, -0.0009045600891113281, -0.06951904296875, 0.0130157470703125, 0.0289459228515625, 0.03387451171875, -0.0631103515625, 0.00786590576171875, -0.0172271728515625, -0.000995635986328125, 0.009185791015625, -0.028167724609375, -0.0225677490234375, -0.03271484375, 0.0164642333984375, 0.023529052734375, 0.0229339599609375, -0.01453399658203125, -0.035919189453125, 0.01690673828125, 0.036651611328125, 0.059844970703125, -0.00577545166015625, 0.006114959716796875, 0.006504058837890625, 0.0672607421875, 0.002227783203125, -0.0119171142578125, 0.007396697998046875, -0.040740966796875, 0.0167388916015625, -0.050262451171875, 0.00287628173828125, -0.0117034912109375, -0.0061492919921875, -0.031768798828125, -0.029815673828125, -0.0077362060546875, 0.025054931640625, -0.0038299560546875, 0.0016851425170898438, -0.0154876708984375, -0.022308349609375, -0.00920867919921875, -0.0030651092529296875, 0.0362548828125, -0.05462646484375, -0.022857666015625, 0.01268768310546875, -0.0009670257568359375, 0.031097412109375, -0.035064697265625, 0.004146575927734375, 0.036773681640625, -0.02081298828125, 0.06549072265625, 0.05035400390625, 0.0071563720703125, 0.006259918212890625, 0.0070037841796875, -0.024261474609375, -0.05126953125, -0.0032482147216796875, -0.04803466796875, 0.040252685546875, 0.028167724609375, 0.0003037452697753906, -0.002193450927734375, 0.0277099609375, -0.008056640625, 0.032623291015625, 0.04193115234375, 0.06683349609375, -0.079833984375, 0.0208282470703125, 0.0367431640625, -0.0126495361328125, 0.029998779296875, 0.004924774169921875, -0.007640838623046875, -0.032562255859375, 0.08447265625, -0.015380859375, -0.0015077590942382812, 0.048248291015625, -0.0182342529296875, -0.0004241466522216797, -0.03289794921875, 0.07086181640625, 0.0036411285400390625, -0.0279541015625, 0.006435394287109375, 0.00629425048828125, 0.00981903076171875, 0.017303466796875, 0.0187225341796875, -0.01503753662109375, -0.0124664306640625, -0.034454345703125, -0.00345611572265625, -0.0226898193359375, -0.04559326171875, 0.0229949951171875, 0.030059814453125, -0.01361846923828125, 0.03424072265625, -0.01708984375, 0.0261383056640625, 0.0157623291015625, -0.061004638671875, 0.06439208984375, 0.006374359130859375, -0.012542724609375, 0.013580322265625, -0.0305633544921875, -0.01389312744140625, -0.01434326171875, 0.036407470703125, -0.00528717041015625, 0.046173095703125, 0.06134033203125, 0.0215911865234375, -0.037384033203125, 0.04962158203125, 0.0099029541015625, -0.034149169921875, -0.0118560791015625, -0.038970947265625, -0.06256103515625, -0.031341552734375, -0.0372314453125, -0.059326171875, 0.0162200927734375, -0.0291290283203125, -0.036041259765625, 0.1016845703125, 0.0011806488037109375, -0.0166778564453125, -0.004558563232421875, 0.054046630859375, -0.04052734375, 0.035888671875, -0.0016956329345703125, -0.006496429443359375, 0.0127410888671875, -0.031097412109375, -0.01129150390625, 0.002582550048828125, -0.0216064453125, 0.050811767578125, -0.020477294921875, -0.0072021484375, -0.0220184326171875, -0.0151824951171875, 0.0216827392578125, 0.038543701171875, 0.017059326171875, 0.0179595947265625, 0.016998291015625, -0.03045654296875, -0.01444244384765625, 0.04534912109375, 0.047027587890625, -0.028564453125, -0.039337158203125, 0.042816162109375, 0.02880859375, 0.052764892578125, -0.01398468017578125, -0.0140838623046875, 0.0286102294921875, -0.021942138671875, -0.00731658935546875, -0.07098388671875, -0.0141754150390625, 0.042266845703125, 0.03765869140625, -0.07904052734375, -0.05133056640625, -0.0391845703125, 0.040985107421875, 0.00811004638671875, -0.03424072265625, 0.01522064208984375, -0.005176544189453125, -0.006103515625, -0.0032501220703125, -0.034820556640625, 0.006565093994140625, 0.033203125, 0.02734375, -0.0071258544921875, 0.01169586181640625, -0.03759765625, 0.0200958251953125, 0.03076171875, 0.0311279296875, -0.031707763671875, 0.0038547515869140625, 0.00946044921875, -0.0008592605590820312, -0.0234375, -0.03887939453125, -0.0184478759765625, 0.005466461181640625, 0.0271453857421875, 0.0016460418701171875, 0.017852783203125, 0.017822265625, -0.0080108642578125, 0.0110931396484375, 0.0266265869140625, -0.023223876953125, 0.037689208984375, -0.0755615234375, 0.01326751708984375, -0.0027027130126953125, 0.07470703125, 0.04022216796875, 0.058013916015625, 0.02239990234375, -0.04669189453125, -0.050750732421875, 0.047576904296875, 0.03765869140625, 0.040985107421875, -0.03851318359375, 0.0236053466796875, 0.00926971435546875, 0.0252532958984375, 0.005840301513671875, 0.05047607421875, 0.01062774658203125, -0.01413726806640625, 0.005481719970703125, 0.01074981689453125, 0.005046844482421875, -0.029998779296875, -0.0172271728515625, -0.0247344970703125, -0.02545166015625, -0.0012826919555664062, -0.0235443115234375, 0.0111846923828125, -0.005283355712890625, 0.0189361572265625, -0.0064697265625, 0.0278778076171875, -0.0017557144165039062, 0.004367828369140625, 0.00978851318359375, -0.0150146484375, 0.0091400146484375, 0.0234222412109375, -0.039764404296875, -0.0024585723876953125, -0.023406982421875, -0.015838623046875, -0.0019817352294921875, 0.025726318359375, 0.00713348388671875, 0.0181884765625, -0.038299560546875, -0.03302001953125, 0.0040130615234375, 0.01023101806640625, 0.0225982666015625, 0.0122833251953125, -0.00972747802734375, -0.0158233642578125, -0.004756927490234375, -0.007266998291015625, 0.01654052734375, 0.041412353515625, 0.0340576171875, -0.016632080078125, 0.01508331298828125, 0.032257080078125, -0.039520263671875, 0.0325927734375, -0.03802490234375, -0.0531005859375, 0.0706787109375, 0.0305633544921875, 0.004207611083984375, -0.019378662109375, -0.008819580078125, 0.07940673828125, 0.007633209228515625, -0.00738525390625, 0.0295867919921875, 0.0213470458984375, -0.002735137939453125, -0.00858306884765625, 0.07061767578125, -0.01103973388671875, -0.04296875, -0.04888916015625, 0.00021457672119140625, 0.027923583984375, 0.033538818359375, 0.004062652587890625, 0.013458251953125, 0.01293182373046875, -0.03997802734375, 0.0257568359375, -0.0288238525390625, 0.0242767333984375, 0.0258941650390625, 0.0447998046875, -0.019195556640625, -0.01172637939453125, -0.0194549560546875, -0.017059326171875, 0.0216217041015625, -0.005519866943359375, -0.006565093994140625, -0.049041748046875, 0.05645751953125, 0.04296875, 0.04925537109375, -0.0086212158203125, 0.0108489990234375, 0.056640625, 0.00527191162109375, 0.0006270408630371094, 0.0130767822265625, -0.0181121826171875, -0.00220489501953125, 0.00406646728515625, 0.02154541015625, -0.0007410049438476562, -0.007740020751953125, -0.07086181640625, -0.045074462890625, 0.007701873779296875, 0.0034656524658203125, -0.0305938720703125, 0.00418853759765625, 0.00262451171875, 0.005390167236328125, -0.0165863037109375, 0.00936126708984375, -0.005344390869140625, 0.0098876953125, -0.043121337890625, -0.01678466796875, -0.040435791015625, -0.0027103424072265625, -0.03076171875, 0.0067291259765625, 0.035736083984375, -0.005680084228515625, -0.06134033203125, 0.0220184326171875, -0.007793426513671875, 0.046539306640625, -0.03839111328125, -0.0112762451171875, 0.038818359375, 0.00021982192993164062, -0.052947998046875, -0.04052734375, 0.00213623046875, -0.0227203369140625, -0.004734039306640625, 0.0002484321594238281, -0.004241943359375, 0.005352020263671875, -0.05987548828125, -0.0867919921875, 0.019927978515625, -0.00215911865234375, -0.02972412109375, 0.0325927734375, -0.02667236328125, -0.050079345703125, 0.048980712890625, 0.024383544921875, -0.008026123046875, 0.03778076171875, 0.03753662109375, -0.01261138916015625, 0.047576904296875, 0.0272369384765625, -0.044464111328125, -0.0307769775390625, -0.03277587890625, -0.0338134765625, 0.00015497207641601562, 0.0104217529296875, -0.0233306884765625, 0.0243682861328125, 0.0206146240234375, -0.0248260498046875, -0.0692138671875, -0.00011521577835083008, -0.040924072265625, -0.01184844970703125, -0.055450439453125, -0.0472412109375, -0.0281524658203125, 0.078857421875, 0.063720703125, 0.02239990234375, -0.02166748046875, -0.00897979736328125, -0.01812744140625, -0.07049560546875, -0.01169586181640625, 0.0421142578125, -0.06365966796875, 0.006061553955078125, 0.01247406005859375, -0.01751708984375, 0.024444580078125, -0.0057830810546875, -0.017242431640625, 0.01275634765625, 0.0193939208984375, -0.031463623046875, 0.0020465850830078125, -0.03375244140625, 0.05657958984375, -0.036102294921875, -0.05718994140625, 0.028533935546875, 0.01485443115234375, -0.0159912109375, 0.037322998046875, -0.04193115234375, -0.0009489059448242188, -0.01519012451171875, 0.0131988525390625, -0.004642486572265625, 0.02313232421875, -0.0199432373046875, 0.0139617919921875, 0.002353668212890625, 0.02227783203125, -0.01486968994140625, 0.009246826171875, -0.01297760009765625, 0.0271453857421875, -0.01038360595703125, 0.08013916015625, -0.027130126953125, 0.01244354248046875, -0.0298004150390625, 0.0244598388671875, 0.0017299652099609375, 0.00518798828125, 0.0247344970703125, -0.004421234130859375, 0.025177001953125, -0.002445220947265625, 0.0171051025390625, 0.01445770263671875, -0.0164794921875, 0.0089569091796875, -0.01464080810546875, -0.002674102783203125 ]
33351d9b892793cf6a8a647aa3153217d23ee656
Wordpress Stackexchange Q: Is there a way for a plugin to add an attribute to the tag of a theme? I'm currently working on an appcache plugin for WordPress. One thing that it should do is add a manifest reference in the <html> tag of the site. It has to resemble something like this: <html manifest="manifest.appcache"> Is there any way of doing this programmatically within a plugin? My current idea would be to identify the <html part of a theme's header file and inject the manifest using something like str_replace(). However, I can't see a way of filtering the output of the get_header() function either via the get_header() action or load_template() function. If anyone has any ideas I'd appreciate help. A: You can probably use the language_attributes filter (from the language_attributes() function) to add it. It should receive an output like lang="en" and you can add to it before printing to the <html> tag: add_filter( 'language_attributes', function( $attr ) { return "{$attr} manifest=\"manifest.appcache\""; } ); or without a anonymous function add_filter( 'language_attributes', 'wpse140730_add_manifest_to_language_attributes' ); function wpse140730_add_manifest_to_language_attributes($output) { return $output . ' manifest="manifest.appcache"'; }
Q: Is there a way for a plugin to add an attribute to the tag of a theme? I'm currently working on an appcache plugin for WordPress. One thing that it should do is add a manifest reference in the <html> tag of the site. It has to resemble something like this: <html manifest="manifest.appcache"> Is there any way of doing this programmatically within a plugin? My current idea would be to identify the <html part of a theme's header file and inject the manifest using something like str_replace(). However, I can't see a way of filtering the output of the get_header() function either via the get_header() action or load_template() function. If anyone has any ideas I'd appreciate help. A: You can probably use the language_attributes filter (from the language_attributes() function) to add it. It should receive an output like lang="en" and you can add to it before printing to the <html> tag: add_filter( 'language_attributes', function( $attr ) { return "{$attr} manifest=\"manifest.appcache\""; } ); or without a anonymous function add_filter( 'language_attributes', 'wpse140730_add_manifest_to_language_attributes' ); function wpse140730_add_manifest_to_language_attributes($output) { return $output . ' manifest="manifest.appcache"'; }
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:447448", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/156312" }
[ 0.011749267578125, -0.01003265380859375, -0.02593994140625, -0.042388916015625, 0.004299163818359375, -0.01505279541015625, -0.0024585723876953125, 0.0037441253662109375, -0.02886962890625, 0.01885986328125, 0.057586669921875, -0.024078369140625, -0.0252532958984375, -0.054779052734375, 0.0108489990234375, -0.003910064697265625, 0.0277862548828125, -0.0024738311767578125, 0.0355224609375, -0.0041046142578125, 0.005458831787109375, -0.0025196075439453125, 0.027313232421875, 0.02471923828125, 0.0313720703125, -0.038299560546875, 0.0227203369140625, -0.0205535888671875, 0.004405975341796875, -0.017333984375, 0.019287109375, 0.031097412109375, 0.04864501953125, 0.01222991943359375, -0.06488037109375, 0.0008225440979003906, 0.007083892822265625, -0.0172119140625, -0.0550537109375, 0.0518798828125, 0.0396728515625, -0.01263427734375, -0.033233642578125, 0.0689697265625, -0.031524658203125, -0.034515380859375, 0.027496337890625, -0.032379150390625, 0.0014123916625976562, -0.007781982421875, 0.0010652542114257812, 0.006717681884765625, 0.005786895751953125, -0.053375244140625, -0.002315521240234375, 0.0160980224609375, -0.06121826171875, 0.033905029296875, -0.01113128662109375, 0.051971435546875, 0.01806640625, 0.0256195068359375, -0.02276611328125, -0.0028896331787109375, 0.00473785400390625, 0.01503753662109375, 0.01409912109375, -0.01172637939453125, -0.00855255126953125, 0.0104827880859375, 0.0235595703125, -0.0291748046875, -0.0005259513854980469, 0.0255126953125, -0.0013055801391601562, -0.052398681640625, 0.0164337158203125, -0.01535797119140625, 0.01556396484375, 0.034210205078125, 0.0124359130859375, -0.02020263671875, -0.054412841796875, -0.018829345703125, 0.01374053955078125, -0.01153564453125, -0.004474639892578125, -0.0089569091796875, -0.0189666748046875, -0.01383209228515625, -0.0200958251953125, -0.007030487060546875, -0.01513671875, -0.003070831298828125, -0.026123046875, -0.01026153564453125, 0.0185546875, 0.038421630859375, -0.026641845703125, 0.007579803466796875, 0.0237274169921875, -0.06005859375, 0.05682373046875, -0.048553466796875, -0.0251312255859375, 0.041015625, -0.0024890899658203125, 0.034881591796875, 0.00214385986328125, 0.0268402099609375, 0.01038360595703125, -0.0614013671875, -0.00983428955078125, -0.038299560546875, -0.020904541015625, 0.0224609375, -0.022125244140625, 0.01568603515625, 0.01947021484375, 0.0245819091796875, -0.0199127197265625, 0.0078582763671875, -0.05615234375, 0.0181427001953125, -0.004825592041015625, -0.027374267578125, 0.023773193359375, 0.02728271484375, 0.0166168212890625, -0.003040313720703125, -0.01032257080078125, 0.046630859375, 0.0013666152954101562, -0.026336669921875, -0.03857421875, -0.000141143798828125, 0.03619384765625, -0.033355712890625, -0.037017822265625, 0.02105712890625, -0.0083770751953125, 0.0029468536376953125, 0.01220703125, -0.0311737060546875, -0.048248291015625, -0.03985595703125, -0.0009450912475585938, 0.0548095703125, -0.0167236328125, -0.05511474609375, 0.07672119140625, -0.05364990234375, 0.0269012451171875, -0.039154052734375, -0.0025196075439453125, -0.035919189453125, -0.0391845703125, -0.0145111083984375, 0.031158447265625, 0.01418304443359375, -0.033447265625, -0.051025390625, -0.026031494140625, -0.044342041015625, -0.051544189453125, 0.061920166015625, 0.0133819580078125, 0.01263427734375, 0.03265380859375, 0.032318115234375, 0.0284881591796875, 0.00046944618225097656, 0.043212890625, 0.0014028549194335938, -0.017181396484375, -0.01448822021484375, 0.01446533203125, 0.043182373046875, 0.0289306640625, -0.033294677734375, -0.0037479400634765625, -0.0232696533203125, 0.125732421875, -0.0294189453125, -0.07672119140625, 0.04974365234375, 0.00865936279296875, 0.055755615234375, 0.00222015380859375, -0.0111541748046875, 0.052154541015625, 0.031402587890625, -0.024932861328125, -0.00122833251953125, -0.0200347900390625, 0.0244293212890625, -0.0264129638671875, 0.040802001953125, -0.032073974609375, -0.0205535888671875, 0.06402587890625, -0.00794219970703125, 0.0179443359375, -0.025970458984375, -0.0229034423828125, -0.004238128662109375, -0.006908416748046875, 0.006504058837890625, -0.00426483154296875, -0.035400390625, 0.0146331787109375, -0.0214385986328125, 0.0013475418090820312, -0.03045654296875, -0.03680419921875, -0.005603790283203125, -0.0160980224609375, 0.025543212890625, 0.03814697265625, 0.02105712890625, 0.06842041015625, -0.007404327392578125, 0.0433349609375, 0.0019273757934570312, 0.01393890380859375, 0.014434814453125, 0.0010986328125, 0.0136871337890625, 0.048583984375, 0.01216888427734375, 0.039154052734375, 0.00920867919921875, 0.06622314453125, 0.04241943359375, -0.0008687973022460938, -0.00559234619140625, -0.0011777877807617188, -0.09210205078125, -0.00989532470703125, 0.06256103515625, 0.0197601318359375, 0.07159423828125, 0.008331298828125, 0.0171051025390625, 0.071044921875, 0.0245361328125, 0.035675048828125, -0.022979736328125, -0.0033111572265625, 0.0186004638671875, 0.005046844482421875, -0.00745391845703125, 0.0091705322265625, -0.03564453125, 0.00518798828125, 0.003055572509765625, 0.0028209686279296875, -0.01079559326171875, -0.00820159912109375, -0.00710296630859375, 0.03021240234375, 0.017425537109375, -0.036285400390625, 0.016876220703125, -0.005092620849609375, -0.006961822509765625, -0.022705078125, -0.02099609375, -0.053497314453125, 0.0106048583984375, 0.047454833984375, 0.035064697265625, -0.004238128662109375, -0.004703521728515625, -0.024322509765625, 0.0232086181640625, -0.0185394287109375, 0.0238494873046875, 0.006282806396484375, -0.01099395751953125, 0.0045166015625, 0.042999267578125, -0.0002237558364868164, -0.018707275390625, -0.00028324127197265625, -0.04095458984375, -0.0205841064453125, -0.027496337890625, -0.0088348388671875, 0.018829345703125, 0.035186767578125, 0.03125, -0.024139404296875, 0.02490234375, -0.04034423828125, 0.002498626708984375, 0.034149169921875, -0.0215606689453125, 0.0260162353515625, -0.017547607421875, 0.03265380859375, 0.053558349609375, 0.0017499923706054688, -0.0222320556640625, 0.003997802734375, -0.0200347900390625, -0.030853271484375, -0.0052490234375, -0.0281982421875, -0.0010862350463867188, -0.061981201171875, 0.039642333984375, 0.0311737060546875, -0.0188446044921875, 0.019775390625, -0.03143310546875, -0.0280303955078125, 0.01250457763671875, -0.07763671875, -0.0772705078125, 0.015533447265625, -0.04693603515625, 0.0294647216796875, 0.0289306640625, -0.0188446044921875, -0.039764404296875, 0.0738525390625, -0.003803253173828125, -0.038177490234375, -0.0033550262451171875, 0.0025081634521484375, -0.0382080078125, -0.03582763671875, -0.0166473388671875, -0.0057525634765625, -0.0032634735107421875, 0.01346588134765625, 0.020355224609375, 0.01422119140625, -0.01103973388671875, 0.0318603515625, 0.0355224609375, -0.01312255859375, -0.00041294097900390625, 0.01364898681640625, -0.037811279296875, 0.01177215576171875, 0.0006012916564941406, -0.0130767822265625, 0.012054443359375, -0.00470733642578125, -0.02862548828125, -0.0258636474609375, -0.0016069412231445312, 0.0228118896484375, 0.0202178955078125, 0.0165557861328125, 0.0237274169921875, 0.058929443359375, -0.01462554931640625, -0.032135009765625, 0.00508880615234375, -0.045196533203125, -0.041534423828125, 0.026123046875, -0.00600433349609375, -0.00786590576171875, -0.0195465087890625, -0.0018768310546875, 0.00704193115234375, 0.0667724609375, -0.02783203125, -0.005359649658203125, -0.024566650390625, -0.0239105224609375, -0.039337158203125, 0.06298828125, 0.0079498291015625, 0.00748443603515625, 0.034698486328125, 0.0173797607421875, 0.0129547119140625, -0.0016384124755859375, -0.0266265869140625, -0.006221771240234375, 0.01861572265625, -0.02056884765625, 0.052734375, -0.018646240234375, -0.01184844970703125, -0.01264190673828125, 0.06585693359375, -0.059417724609375, -0.00791168212890625, 0.006710052490234375, 0.0396728515625, -0.0479736328125, -0.059356689453125, -0.0205078125, -0.01137542724609375, -0.0830078125, 0.0211029052734375, 0.0108489990234375, -0.0361328125, -0.01386260986328125, 0.0025787353515625, -0.04541015625, -0.039642333984375, 0.034210205078125, -0.024627685546875, -0.0180511474609375, 0.031005859375, -0.0269927978515625, -0.00028395652770996094, -0.03564453125, 0.00656890869140625, -0.0755615234375, -0.00725555419921875, -0.048614501953125, 0.07672119140625, 0.0411376953125, -0.036834716796875, -0.0081329345703125, 0.052886962890625, 0.01041412353515625, 0.03778076171875, -0.00859832763671875, 0.0263519287109375, -0.0340576171875, -0.041656494140625, -0.0009102821350097656, -0.0457763671875, -0.004505157470703125, 0.0145416259765625, -0.041107177734375, 0.0200347900390625, 0.01947021484375, -0.029510498046875, 0.06365966796875, -0.0660400390625, -0.036102294921875, -0.035308837890625, 0.01297760009765625, 0.03131103515625, -0.0174713134765625, 0.0289459228515625, -0.041900634765625, -0.007709503173828125, 0.06134033203125, -0.0107879638671875, 0.041229248046875, 0.0029506683349609375, 0.08599853515625, 0.00045418739318847656, -0.02935791015625, -0.01348114013671875, 0.024139404296875, 0.01088714599609375, -0.01390838623046875, 0.065185546875, 0.01052093505859375, -0.0016546249389648438, 0.0662841796875, -0.03155517578125, 0.0202178955078125, -0.0219268798828125, 0.03753662109375, 0.0338134765625, 0.0122528076171875, -0.00246429443359375, 0.051971435546875, -0.0169830322265625, 0.0128631591796875, 0.01953125, -0.0178070068359375, 0.0125885009765625, -0.0035114288330078125, 0.0000966191291809082, 0.0155181884765625, 0.00403594970703125, -0.050201416015625, 0.027435302734375, 0.0241546630859375, -0.0211944580078125, 0.00922393798828125, 0.003696441650390625, -0.0162811279296875, -0.051055908203125, 0.016876220703125, -0.035858154296875, 0.0013437271118164062, -0.04010009765625, 0.03692626953125, -0.03350830078125, -0.003955841064453125, -0.018310546875, 0.00330352783203125, 0.01322174072265625, 0.0001678466796875, -0.040985107421875, 0.0289764404296875, -0.0012483596801757812, -0.002170562744140625, 0.02801513671875, 0.0125885009765625, 0.046783447265625, -0.01291656494140625, -0.017303466796875, 0.0011043548583984375, -0.041015625, 0.0135650634765625, -0.0614013671875, -0.035491943359375, -0.0134429931640625, -0.015380859375, 0.005237579345703125, 0.0204315185546875, -0.071533203125, 0.038177490234375, 0.007781982421875, -0.007595062255859375, 0.02349853515625, 0.046173095703125, 0.030853271484375, -0.037200927734375, -0.018157958984375, 0.0301513671875, 0.00930023193359375, -0.010345458984375, 0.0408935546875, 0.049224853515625, 0.00567626953125, -0.02093505859375, -0.053619384765625, 0.0207366943359375, -0.0232696533203125, 0.01390838623046875, 0.0289764404296875, -0.01194000244140625, -0.05487060546875, -0.028717041015625, -0.006313323974609375, 0.0367431640625, -0.026702880859375, -0.0028362274169921875, 0.053863525390625, 0.012603759765625, 0.02655029296875, 0.0295867919921875, -0.0389404296875, 0.016998291015625, 0.034576416015625, -0.056365966796875, -0.0246734619140625, 0.0130462646484375, -0.052490234375, -0.0025691986083984375, -0.0165863037109375, -0.02886962890625, 0.019195556640625, -0.00763702392578125, 0.01983642578125, -0.004573822021484375, -0.02056884765625, 0.02996826171875, 0.00142669677734375, 0.04534912109375, -0.00646209716796875, -0.0229949951171875, -0.0301513671875, -0.04095458984375, -0.059417724609375, -0.052978515625, -0.0023670196533203125, -0.062469482421875, 0.037445068359375, 0.039825439453125, 0.049285888671875, -0.023590087890625, -0.0355224609375, 0.0024261474609375, 0.0099029541015625, 0.0176239013671875, 0.11578369140625, 0.0005850791931152344, 0.05145263671875, 0.0015821456909179688, 0.01461029052734375, 0.019866943359375, 0.0174407958984375, -0.032196044921875, -0.00785064697265625, 0.01318359375, -0.04840087890625, -0.026123046875, 0.00357818603515625, -0.05706787109375, -0.00689697265625, 0.0277557373046875, -0.014068603515625, 0.01727294921875, -0.015960693359375, 0.0008192062377929688, -0.01434326171875, 0.01520538330078125, -0.01715087890625, -0.01247406005859375, 0.05224609375, -0.03369140625, -0.03924560546875, 0.007633209228515625, 0.034820556640625, -0.0205078125, 0.00641632080078125, -0.0135345458984375, -0.02862548828125, -0.036956787109375, 0.038665771484375, 0.07562255859375, 0.03521728515625, 0.044219970703125, 0.006214141845703125, 0.0176544189453125, 0.003948211669921875, -0.0019330978393554688, 0.0323486328125, 0.0179290771484375, 0.0687255859375, -0.010467529296875, -0.0467529296875, 0.0147247314453125, -0.0467529296875, -0.00530242919921875, -0.01305389404296875, -0.0084381103515625, -0.0419921875, 0.0255584716796875, -0.02606201171875, 0.005687713623046875, 0.015899658203125, 0.006801605224609375, -0.040435791015625, -0.038909912109375, 0.037811279296875, -0.040679931640625, -0.0135040283203125, 0.0134429931640625, 0.00836181640625, -0.0181732177734375, 0.00785064697265625, -0.0303802490234375, -0.00414276123046875, -0.00984954833984375, -0.01293182373046875, 0.0028362274169921875, -0.0230255126953125, -0.00606536865234375, 0.0252838134765625, 0.02008056640625, -0.0234832763671875, -0.06011962890625, 0.005207061767578125, -0.01885986328125, -0.032806396484375, 0.0229949951171875, 0.00222015380859375, 0.06805419921875, 0.053558349609375, 0.0178375244140625, -0.0467529296875, 0.016815185546875, 0.04876708984375, -0.0080718994140625, 0.00827789306640625, 0.0140533447265625, 0.005680084228515625, 0.00811004638671875, 0.007534027099609375, -0.0260009765625, -0.0129241943359375, -0.01459503173828125, -0.002773284912109375, 0.0287017822265625, 0.03759765625, -0.035430908203125, 0.031646728515625, 0.030517578125, -0.02032470703125, 0.01313018798828125, 0.064453125, -0.046630859375, -0.039886474609375, 0.033966064453125, -0.01354217529296875, -0.0309295654296875, 0.011474609375, -0.08270263671875, 0.1031494140625, 0.0310821533203125, 0.036590576171875, -0.03857421875, 0.046783447265625, -0.01555633544921875, 0.0144195556640625, -0.0227813720703125, 0.067138671875, 0.020294189453125, 0.0233001708984375, -0.0552978515625, -0.00801849365234375, 0.007171630859375, 0.048065185546875, 0.0352783203125, 0.0195159912109375, -0.02166748046875, -0.011566162109375, 0.032440185546875, -0.007534027099609375, -0.0247039794921875, 0.052276611328125, -0.022064208984375, 0.0240936279296875, 0.001556396484375, -0.02642822265625, 0.044891357421875, -0.07244873046875, -0.039825439453125, 0.0042724609375, -0.0115814208984375, -0.0254364013671875, 0.0043487548828125, 0.01500701904296875, -0.025054931640625, -0.003284454345703125, 0.004566192626953125, -0.022064208984375, 0.01605224609375, -0.0248565673828125, -0.0241241455078125, -0.020294189453125, -0.02703857421875, -0.01044464111328125, 0.00896453857421875, -0.0038051605224609375, 0.04656982421875, -0.0263519287109375, 0.010467529296875, -0.0002810955047607422, 0.003299713134765625, 0.01080322265625, 0.052276611328125, -0.0360107421875, -0.002666473388671875, 0.001613616943359375, 0.0277252197265625, 0.0034084320068359375, 0.0518798828125, -0.005306243896484375, -0.0033740997314453125, -0.027069091796875, -0.047332763671875, 0.002872467041015625, -0.0028553009033203125, 0.01155853271484375, 0.02069091796875, 0.031768798828125, -0.08270263671875, -0.0197601318359375, 0.041717529296875, 0.0016603469848632812, -0.0009813308715820312, 0.030731201171875, 0.021331787109375, 0.028594970703125, -0.058441162109375, 0.003368377685546875, -0.0284271240234375, -0.032989501953125, 0.0186920166015625, 0.040069580078125, 0.0276031494140625, 0.052734375, 0.0478515625, -0.0072021484375, -0.0269317626953125, 0.0284423828125, 0.038177490234375, 0.0030841827392578125, -0.00833892822265625, 0.003215789794921875, 0.0208587646484375, 0.01776123046875, 0.0309906005859375, -0.045501708984375, 0.039459228515625, 0.001438140869140625, -0.08526611328125, -0.0165863037109375, -0.00003463029861450195, -0.030059814453125, 0.00839996337890625, -0.04412841796875, 0.0501708984375, 0.00830841064453125, 0.00940704345703125, 0.01727294921875, 0.018035888671875, 0.01088714599609375, -0.027099609375, 0.01457977294921875, -0.01385498046875, -0.043487548828125, -0.0018873214721679688, -0.0159454345703125, 0.038818359375, -0.011077880859375, -0.0836181640625, -0.0030918121337890625, -0.02545166015625, -0.06378173828125, 0.056304931640625, 0.056396484375, -0.0270843505859375, 0.0198211669921875, 0.0111846923828125, 0.0017108917236328125, 0.0189971923828125, -0.01593017578125, -0.007171630859375, 0.01186370849609375, 0.030303955078125, 0.004375457763671875, -0.049957275390625, -0.0166473388671875, -0.00377655029296875, 0.0300445556640625, -0.037139892578125, 0.0361328125, 0.0000940561294555664, 0.001766204833984375, -0.01491546630859375, 0.01163482666015625, 0.0061492919921875, -0.00565338134765625, 0.0180511474609375, 0.04632568359375, 0.025787353515625, -0.01861572265625, -0.06304931640625, -0.057220458984375, 0.035552978515625, -0.0225677490234375, -0.0137176513671875, -0.045166015625, 0.051483154296875, -0.0180816650390625, 0.04193115234375, -0.0203399658203125, -0.085693359375, -0.07305908203125, 0.042755126953125, -0.0014543533325195312, 0.04608154296875, -0.041259765625, 0.0287017822265625, 0.032012939453125, 0.01148223876953125, 0.023162841796875, 0.004302978515625, 0.0305633544921875, 0.0194549560546875, -0.00872802734375, -0.034088134765625, 0.022918701171875, -0.0224761962890625, 0.018829345703125, -0.001529693603515625, 0.08154296875, -0.004207611083984375, -0.0015077590942382812, 0.0205841064453125, 0.0234222412109375, 0.04644775390625, -0.0016241073608398438, 0.03265380859375, 0.000568389892578125, 0.00907135009765625, -0.0265655517578125, 0.0017261505126953125, -0.031463623046875, -0.031463623046875, 0.0259552001953125, 0.01070404052734375, 0.0243682861328125, -0.044464111328125, -0.042449951171875, 0.0021991729736328125, 0.01212310791015625, -0.0026454925537109375, -0.0244140625, -0.005008697509765625, -0.00933074951171875, 0.043060302734375, -0.01751708984375, 0.015655517578125, -0.00482177734375, 0.01300048828125, -0.05560302734375, -0.0399169921875, -0.0257110595703125, 0.022674560546875, -0.0270843505859375, 0.004261016845703125, 0.0280303955078125, -0.007755279541015625, -0.0010051727294921875, 0.0162353515625, -0.00968170166015625, 0.06494140625, -0.023895263671875, -0.020233154296875, 0.03265380859375, -0.01006317138671875, -0.0305023193359375, -0.063720703125, 0.0164337158203125, -0.07879638671875, -0.01093292236328125, -0.0230560302734375, -0.0097503662109375, -0.00945281982421875, -0.04962158203125, -0.08721923828125, 0.04083251953125, -0.0081939697265625, -0.0306854248046875, -0.01261138916015625, 0.017913818359375, -0.00325775146484375, -0.0095367431640625, -0.0006785392761230469, -0.0267791748046875, -0.021087646484375, 0.0023174285888671875, 0.0005230903625488281, 0.01151275634765625, 0.03326416015625, -0.0187835693359375, -0.00894927978515625, 0.005443572998046875, 0.0280609130859375, 0.00421142578125, -0.0032291412353515625, -0.0076446533203125, 0.0132904052734375, 0.031890869140625, -0.016021728515625, -0.034881591796875, 0.012298583984375, -0.028594970703125, -0.0040130615234375, -0.05743408203125, -0.01039886474609375, -0.023651123046875, 0.051422119140625, -0.0017709732055664062, 0.0122222900390625, -0.01934814453125, -0.026153564453125, 0.02923583984375, 0.00644683837890625, -0.0008025169372558594, 0.019317626953125, -0.044952392578125, -0.0021209716796875, -0.031829833984375, 0.0173797607421875, 0.0005769729614257812, 0.0001747608184814453, 0.005950927734375, -0.031982421875, 0.028167724609375, -0.004146575927734375, -0.04168701171875, -0.0203857421875, 0.0770263671875, -0.047943115234375, 0.01123809814453125, 0.004703521728515625, 0.0157012939453125, 0.043609619140625, -0.0152435302734375, 0.0256805419921875, 0.00901031494140625, -0.01447296142578125, 0.033843994140625, 0.01485443115234375, 0.002033233642578125, -0.03546142578125, -0.0295562744140625, -0.033172607421875, 0.006275177001953125, 0.0075836181640625, 0.00926971435546875, -0.049591064453125, 0.034210205078125, 0.004364013671875, 0.00823974609375, -0.05010986328125, -0.04803466796875, -0.01500701904296875, -0.0236053466796875, -0.0404052734375, 0.042633056640625, 0.0277557373046875, -0.050537109375, 0.0145263671875, -0.00887298583984375, -0.00014603137969970703, -0.02490234375, 0.01027679443359375, -0.051300048828125, -0.01502227783203125, 0.0221710205078125 ]
dc1451e95d947f113da994e77cf29e3087130c37
Wordpress Stackexchange Q: Editor access to menu: custom post type missing I have used this code; $roleObject = get_role( 'editor' ); if (!$roleObject->has_cap( 'edit_theme_options' ) ) { $roleObject->add_cap( 'edit_theme_options' ); } to add menu access for editors. I have a custom post type 'Masterclasses". That appears correctly in the Administrator's Menu editing page but doesn't appear in the Editor's Menu editing page. How do I add this? A: As ever, when you know the answer it's maddeningly simple. The custom post types were there all along, together with their taxonomy. All posts are absent from the menu editor and have to be turned on in Screen Options. I pressed the button and lo, there they were.
Q: Editor access to menu: custom post type missing I have used this code; $roleObject = get_role( 'editor' ); if (!$roleObject->has_cap( 'edit_theme_options' ) ) { $roleObject->add_cap( 'edit_theme_options' ); } to add menu access for editors. I have a custom post type 'Masterclasses". That appears correctly in the Administrator's Menu editing page but doesn't appear in the Editor's Menu editing page. How do I add this? A: As ever, when you know the answer it's maddeningly simple. The custom post types were there all along, together with their taxonomy. All posts are absent from the menu editor and have to be turned on in Screen Options. I pressed the button and lo, there they were. A: You can try giving capabilities for something like add_cap( 'edit_Masterclasses' ) For more you can refer to this documentation http://codex.wordpress.org/Roles_and_Capabilities#Editor
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:447595", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/156861" }
[ 0.05767822265625, -0.027130126953125, 0.06243896484375, 0.033050537109375, -0.013031005859375, -0.0211639404296875, 0.0904541015625, -0.05047607421875, -0.024932861328125, 0.0308837890625, -0.0030117034912109375, -0.00641632080078125, -0.0268707275390625, -0.03387451171875, -0.00860595703125, -0.0322265625, 0.00415802001953125, 0.004364013671875, 0.01959228515625, -0.0416259765625, 0.0164337158203125, -0.034454345703125, 0.037933349609375, -0.007663726806640625, 0.01477813720703125, 0.0102691650390625, -0.0214080810546875, -0.0224151611328125, 0.006229400634765625, 0.005519866943359375, 0.00957489013671875, -0.0011396408081054688, 0.017486572265625, 0.00937652587890625, -0.007625579833984375, 0.002201080322265625, 0.0193634033203125, -0.0011625289916992188, 0.001132965087890625, 0.0147857666015625, 0.0092315673828125, 0.0164794921875, 0.018463134765625, -0.0030879974365234375, -0.0134429931640625, -0.036041259765625, 0.01287841796875, -0.01261138916015625, 0.037322998046875, -0.048065185546875, 0.00347137451171875, 0.0299835205078125, 0.027008056640625, -0.053497314453125, -0.0246734619140625, -0.0153045654296875, 0.0054473876953125, -0.037200927734375, 0.01384735107421875, 0.0258636474609375, 0.0007495880126953125, -0.00629425048828125, 0.006282806396484375, -0.0196990966796875, -0.016082763671875, 0.040618896484375, 0.0289459228515625, -0.0108795166015625, -0.04541015625, -0.0012369155883789062, 0.016937255859375, -0.04022216796875, 0.0274200439453125, 0.01166534423828125, 0.0018177032470703125, -0.0540771484375, 0.0019216537475585938, -0.03302001953125, 0.029998779296875, 0.0153961181640625, 0.02044677734375, -0.0029430389404296875, -0.0311126708984375, 0.0055084228515625, -0.0173797607421875, 0.0114898681640625, -0.001888275146484375, -0.0240020751953125, 0.0036602020263671875, -0.006107330322265625, -0.0038013458251953125, -0.03436279296875, -0.0184326171875, 0.0762939453125, 0.0287017822265625, -0.0174560546875, 0.0391845703125, 0.05078125, 0.0010404586791992188, 0.0283966064453125, 0.0173797607421875, -0.05877685546875, 0.0694580078125, -0.06317138671875, 0.0107269287109375, 0.035308837890625, -0.0016260147094726562, -0.01494598388671875, 0.034881591796875, 0.0152130126953125, 0.005336761474609375, 0.00716400146484375, 0.014129638671875, -0.02020263671875, -0.01386260986328125, -0.01094818115234375, -0.0146331787109375, 0.01116943359375, 0.007038116455078125, -0.0195159912109375, -0.005474090576171875, 0.021881103515625, -0.0018768310546875, -0.048553466796875, -0.0084686279296875, -0.03643798828125, -0.040313720703125, 0.00859832763671875, 0.06463623046875, 0.04388427734375, -0.044403076171875, -0.033721923828125, 0.04351806640625, 0.023101806640625, 0.0259857177734375, -0.044219970703125, -0.012939453125, -0.0450439453125, -0.04132080078125, 0.0225982666015625, -0.005710601806640625, 0.0095672607421875, 0.0276031494140625, -0.03729248046875, -0.0037937164306640625, 0.02667236328125, 0.0163421630859375, 0.0092620849609375, -0.005344390869140625, -0.04638671875, -0.01056671142578125, -0.0006241798400878906, 0.038665771484375, 0.00792694091796875, -0.02520751953125, -0.018035888671875, 0.038055419921875, -0.0242919921875, -0.038177490234375, -0.027252197265625, -0.0037441253662109375, -0.0264129638671875, 0.006771087646484375, -0.0301666259765625, -0.043182373046875, 0.020416259765625, -0.0229949951171875, -0.01033782958984375, 0.026824951171875, -0.014617919921875, 0.02655029296875, -0.049102783203125, 0.048583984375, 0.0159149169921875, -0.005893707275390625, 0.047882080078125, 0.019256591796875, -0.008636474609375, 0.00949859619140625, 0.02008056640625, -0.000637054443359375, -0.0302734375, 0.01296234130859375, -0.0150299072265625, -0.048736572265625, 0.0119781494140625, -0.00611114501953125, 0.04388427734375, 0.042877197265625, 0.02294921875, -0.01317596435546875, -0.0070343017578125, -0.0227203369140625, -0.02142333984375, 0.005733489990234375, 0.0213470458984375, -0.0242156982421875, -0.0031871795654296875, -0.00829315185546875, 0.0189971923828125, -0.0285186767578125, 0.0090484619140625, 0.008026123046875, -0.028656005859375, -0.042083740234375, 0.0030612945556640625, -0.0102691650390625, 0.0545654296875, 0.03143310546875, -0.0147857666015625, -0.0135498046875, -0.0289459228515625, 0.015533447265625, -0.05389404296875, -0.044525146484375, 0.07080078125, -0.0245208740234375, 0.056976318359375, -0.005306243896484375, 0.0233612060546875, 0.0035610198974609375, -0.07135009765625, 0.01194000244140625, 0.00508880615234375, 0.025909423828125, 0.01190948486328125, -0.004268646240234375, 0.0188140869140625, 0.03961181640625, 0.046295166015625, 0.01306915283203125, -0.021881103515625, 0.0193328857421875, -0.0517578125, -0.061065673828125, -0.0010776519775390625, -0.018707275390625, -0.07574462890625, -0.004421234130859375, 0.08056640625, 0.0312042236328125, 0.01505279541015625, -0.0152435302734375, -0.0138397216796875, 0.051544189453125, -0.033355712890625, 0.005184173583984375, -0.01424407958984375, -0.03033447265625, 0.0379638671875, 0.036773681640625, 0.04119873046875, 0.0050048828125, 0.02362060546875, -0.00864410400390625, 0.0246124267578125, 0.003631591796875, -0.0003223419189453125, 0.0201416015625, -0.0134429931640625, -0.003330230712890625, -0.0372314453125, -0.0246429443359375, -0.0176544189453125, 0.062255859375, 0.027069091796875, 0.052825927734375, 0.05120849609375, -0.054046630859375, 0.0224761962890625, 0.0048370361328125, 0.050048828125, -0.00543212890625, 0.014556884765625, 0.0121307373046875, -0.0030651092529296875, -0.0227813720703125, -0.01184844970703125, 0.0014047622680664062, 0.006771087646484375, -0.038482666015625, 0.020294189453125, -0.0457763671875, -0.01549530029296875, -0.0053253173828125, -0.0391845703125, -0.0100860595703125, -0.02740478515625, 0.0272216796875, -0.00942230224609375, 0.019317626953125, -0.0311431884765625, -0.038055419921875, 0.02923583984375, 0.0220794677734375, -0.045318603515625, 0.048309326171875, -0.0286712646484375, 0.0221710205078125, -0.0106201171875, 0.0183258056640625, 0.04296875, -0.0121612548828125, 0.0014438629150390625, 0.026153564453125, -0.0246124267578125, 0.00455474853515625, 0.06768798828125, 0.0330810546875, -0.04150390625, 0.0208740234375, 0.0438232421875, 0.01352691650390625, -0.014404296875, -0.0020046234130859375, -0.0218048095703125, -0.026153564453125, 0.0031032562255859375, -0.06414794921875, -0.0181121826171875, 0.050079345703125, -0.0615234375, 0.0092620849609375, -0.01270294189453125, -0.04058837890625, -0.0211181640625, 0.016815185546875, -0.01116943359375, 0.0261688232421875, -0.02069091796875, -0.01593017578125, -0.010833740234375, -0.05963134765625, -0.0537109375, 0.0176239013671875, -0.0006418228149414062, 0.003955841064453125, 0.06695556640625, 0.002414703369140625, -0.052398681640625, 0.01470947265625, -0.0338134765625, -0.0244903564453125, 0.02581787109375, 0.05377197265625, -0.016571044921875, 0.0220794677734375, 0.0158538818359375, -0.004100799560546875, 0.054168701171875, -0.05682373046875, -0.0220794677734375, -0.020538330078125, -0.0017719268798828125, -0.004665374755859375, 0.020172119140625, 0.045074462890625, 0.0357666015625, 0.036834716796875, -0.01031494140625, 0.0185089111328125, -0.00379180908203125, -0.00716400146484375, 0.0287628173828125, -0.009185791015625, -0.01959228515625, -0.02154541015625, 0.05548095703125, -0.01433563232421875, -0.004245758056640625, 0.015899658203125, -0.0218505859375, 0.0137939453125, -0.005672454833984375, 0.00606536865234375, 0.01103973388671875, -0.0099639892578125, -0.0251617431640625, 0.05804443359375, 0.0034465789794921875, 0.004573822021484375, -0.00444793701171875, 0.03240966796875, -0.025115966796875, -0.038726806640625, 0.053558349609375, -0.05029296875, 0.00970458984375, -0.05999755859375, -0.01544189453125, -0.029632568359375, 0.0587158203125, -0.034912109375, -0.01474761962890625, 0.005657196044921875, 0.004314422607421875, -0.0218658447265625, -0.010345458984375, -0.032379150390625, -0.002216339111328125, -0.0738525390625, 0.0247802734375, 0.0154571533203125, -0.034912109375, -0.0274200439453125, 0.0179901123046875, -0.057830810546875, -0.017578125, 0.061309814453125, -0.0792236328125, 0.029693603515625, 0.037994384765625, 0.01126861572265625, -0.009735107421875, -0.056854248046875, -0.0222625732421875, -0.1129150390625, -0.01496124267578125, -0.037261962890625, 0.072998046875, 0.01366424560546875, 0.0090179443359375, -0.03582763671875, 0.0310821533203125, 0.04095458984375, 0.0198822021484375, 0.0227508544921875, -0.0164031982421875, -0.0118408203125, -0.02410888671875, 0.0282135009765625, -0.04022216796875, 0.0060882568359375, -0.0006718635559082031, -0.031341552734375, 0.00249481201171875, -0.011749267578125, -0.027587890625, 0.03387451171875, -0.04803466796875, -0.0447998046875, -0.043243408203125, -0.040008544921875, 0.0143890380859375, -0.0021800994873046875, -0.0024471282958984375, -0.050750732421875, -0.06317138671875, 0.02294921875, -0.053741455078125, -0.00946044921875, 0.007904052734375, 0.06927490234375, 0.0117950439453125, 0.00589752197265625, -0.00678253173828125, 0.01151275634765625, 0.0153350830078125, -0.008697509765625, 0.0322265625, 0.0202178955078125, 0.00760650634765625, -0.0028324127197265625, -0.0212554931640625, 0.0030422210693359375, -0.035247802734375, 0.06634521484375, -0.00609588623046875, -0.0010738372802734375, 0.0030155181884765625, -0.022491455078125, 0.03082275390625, 0.017578125, -0.00084686279296875, -0.04229736328125, 0.0101318359375, 0.05517578125, -0.03155517578125, 0.0540771484375, -0.027801513671875, 0.0248565673828125, -0.009796142578125, 0.0281982421875, 0.048095703125, 0.04986572265625, -0.008941650390625, -0.0023708343505859375, -0.008941650390625, 0.0028171539306640625, 0.022003173828125, 0.00048542022705078125, -0.001346588134765625, 0.032501220703125, 0.0010166168212890625, -0.0039825439453125, 0.022308349609375, -0.004207611083984375, 0.0438232421875, 0.0033206939697265625, -0.041473388671875, -0.0258941650390625, 0.007503509521484375, 0.0546875, 0.0126953125, -0.02593994140625, 0.0161285400390625, 0.053070068359375, -0.0047149658203125, 0.017425537109375, 0.005382537841796875, 0.044586181640625, -0.01538848876953125, 0.0199127197265625, 0.002948760986328125, -0.01413726806640625, -0.0074310302734375, 0.03533935546875, -0.0009284019470214844, 0.00925445556640625, -0.005435943603515625, -0.00843048095703125, -0.0084075927734375, 0.01203155517578125, 0.0269317626953125, 0.0006151199340820312, 0.0007643699645996094, -0.005252838134765625, 0.024627685546875, -0.027069091796875, -0.051300048828125, 0.0187530517578125, 0.031982421875, -0.0218963623046875, 0.004680633544921875, 0.025543212890625, 0.0259552001953125, -0.0124969482421875, 0.0271453857421875, -0.0100860595703125, -0.06756591796875, -0.01486968994140625, 0.0105133056640625, 0.0196075439453125, -0.0242156982421875, -0.0482177734375, 0.038665771484375, -0.008270263671875, 0.02313232421875, -0.004497528076171875, -0.06884765625, 0.04412841796875, 0.051513671875, -0.025421142578125, -0.00713348388671875, 0.0076904296875, -0.08123779296875, -0.051300048828125, 0.0033855438232421875, 0.0032482147216796875, 0.03057861328125, -0.0306396484375, 0.019134521484375, -0.03045654296875, 0.01160430908203125, -0.031585693359375, 0.007137298583984375, 0.047698974609375, 0.039337158203125, -0.006931304931640625, 0.01186370849609375, -0.0299072265625, -0.0255584716796875, -0.0291290283203125, -0.048736572265625, -0.03253173828125, -0.02410888671875, 0.0084381103515625, 0.012847900390625, -0.0078277587890625, -0.0447998046875, -0.01532745361328125, 0.0302886962890625, 0.0341796875, 0.057403564453125, 0.0003695487976074219, 0.06744384765625, -0.0252227783203125, 0.077392578125, 0.0047149658203125, 0.0157470703125, -0.035552978515625, -0.014068603515625, -0.010528564453125, -0.01470947265625, 0.0031681060791015625, -0.02081298828125, 0.037353515625, 0.041748046875, 0.058929443359375, 0.00206756591796875, 0.021148681640625, -0.01297760009765625, -0.0059814453125, -0.02508544921875, 0.020111083984375, -0.03863525390625, -0.0014219284057617188, 0.01026153564453125, -0.03143310546875, 0.06298828125, 0.01291656494140625, -0.03668212890625, 0.046875, -0.045623779296875, 0.0517578125, 0.05902099609375, -0.016815185546875, 0.053253173828125, 0.0855712890625, -0.022857666015625, 0.030548095703125, 0.03826904296875, -0.006381988525390625, -0.001018524169921875, -0.0171356201171875, -0.02081298828125, 0.016021728515625, 0.0255584716796875, -0.0032501220703125, -0.00870513916015625, 0.01806640625, -0.0129852294921875, 0.028656005859375, 0.048370361328125, 0.06805419921875, -0.06671142578125, 0.001720428466796875, 0.0195770263671875, -0.00696563720703125, 0.038177490234375, -0.01323699951171875, 0.006664276123046875, 0.0037937164306640625, 0.0164794921875, -0.060150146484375, -0.044097900390625, -0.00135040283203125, -0.024078369140625, -0.0189056396484375, -0.0310516357421875, 0.02935791015625, 0.017364501953125, 0.050079345703125, 0.0136566162109375, -0.0404052734375, 0.040191650390625, -0.021636962890625, 0.0189971923828125, -0.0186614990234375, 0.0128326416015625, -0.04571533203125, -0.0037288665771484375, -0.051727294921875, 0.014678955078125, 0.0235443115234375, 0.0012788772583007812, 0.0158843994140625, 0.03564453125, -0.0261688232421875, 0.0186004638671875, -0.004360198974609375, -0.0126495361328125, 0.003795623779296875, -0.04736328125, 0.01378631591796875, 0.0233001708984375, -0.028839111328125, 0.037841796875, 0.029937744140625, -0.0697021484375, -0.002948760986328125, -0.0021648406982421875, 0.0491943359375, -0.02191162109375, -0.027496337890625, 0.036407470703125, 0.00275421142578125, -0.0121002197265625, 0.0218353271484375, -0.02978515625, -0.00046896934509277344, 0.03717041015625, -0.0203094482421875, 0.005275726318359375, 0.0288238525390625, 0.0231170654296875, -0.04541015625, 0.0968017578125, -0.0126495361328125, 0.00003451108932495117, 0.0189208984375, 0.044891357421875, -0.036376953125, 0.028228759765625, -0.005474090576171875, 0.043243408203125, 0.00135040283203125, 0.0276336669921875, -0.04937744140625, -0.0106353759765625, 0.0013980865478515625, 0.057586669921875, 0.07379150390625, 0.02239990234375, -0.0472412109375, 0.006649017333984375, 0.057861328125, 0.044281005859375, -0.0077362060546875, 0.036895751953125, -0.00809478759765625, -0.004364013671875, 0.02349853515625, -0.0091094970703125, 0.042236328125, -0.036163330078125, -0.0211639404296875, -0.0031185150146484375, -0.01496124267578125, -0.03326416015625, -0.000022411346435546875, -0.0157318115234375, -0.0252838134765625, -0.00504302978515625, 0.0025424957275390625, -0.0274200439453125, -0.0303955078125, 0.0250244140625, 0.004848480224609375, -0.027313232421875, -0.028411865234375, -0.017669677734375, 0.026214599609375, 0.01499176025390625, -0.0054473876953125, 0.01345062255859375, 0.0211334228515625, -0.01326751708984375, -0.0557861328125, -0.01508331298828125, -0.0027027130126953125, -0.02142333984375, 0.0303802490234375, 0.032440185546875, 0.0078887939453125, -0.032470703125, 0.03228759765625, 0.057464599609375, 0.043060302734375, -0.049224853515625, -0.01044464111328125, 0.004444122314453125, 0.017791748046875, -0.00389862060546875, 0.0014982223510742188, 0.017547607421875, 0.04705810546875, 0.051849365234375, -0.0350341796875, 0.00817108154296875, 0.01409149169921875, 0.0093536376953125, -0.0255279541015625, -0.025848388671875, 0.004848480224609375, 0.019927978515625, -0.05706787109375, 0.017303466796875, 0.02099609375, 0.03350830078125, 0.023101806640625, 0.0721435546875, 0.045745849609375, -0.00502777099609375, -0.036346435546875, 0.046478271484375, -0.006622314453125, 0.04095458984375, -0.08203125, -0.056854248046875, 0.00801849365234375, 0.05047607421875, -0.0164337158203125, -0.00032782554626464844, -0.01241302490234375, -0.0144195556640625, -0.0004162788391113281, -0.006107330322265625, 0.0030155181884765625, -0.0267791748046875, -0.056854248046875, -0.00960540771484375, 0.0197296142578125, 0.033660888671875, 0.010284423828125, -0.0101776123046875, 0.03350830078125, 0.04315185546875, 0.0074920654296875, 0.01934814453125, 0.006427764892578125, 0.003253936767578125, 0.033355712890625, -0.0226898193359375, 0.02618408203125, 0.02532958984375, -0.09063720703125, -0.01540374755859375, -0.054046630859375, -0.0538330078125, 0.0526123046875, 0.055999755859375, -0.0197296142578125, -0.00600433349609375, 0.0276641845703125, -0.002552032470703125, 0.0008640289306640625, 0.0140533447265625, -0.0011014938354492188, 0.0179290771484375, 0.04302978515625, 0.01248931884765625, -0.053680419921875, -0.0177764892578125, -0.022918701171875, 0.029052734375, 0.032989501953125, 0.00682830810546875, 0.0157012939453125, 0.0396728515625, -0.034881591796875, 0.05224609375, -0.08038330078125, -0.01971435546875, -0.002552032470703125, -0.00395965576171875, 0.0195465087890625, 0.0146636962890625, -0.035980224609375, 0.020477294921875, 0.033294677734375, -0.002132415771484375, 0.005496978759765625, 0.0035400390625, 0.0236968994140625, -0.006587982177734375, 0.0203399658203125, -0.005596160888671875, -0.0236968994140625, -0.028045654296875, -0.0300750732421875, 0.0343017578125, 0.0574951171875, 0.026214599609375, -0.0028095245361328125, 0.01271820068359375, -0.01139068603515625, 0.0006833076477050781, 0.0275726318359375, 0.0053253173828125, 0.0187835693359375, -0.0279998779296875, 0.003276824951171875, 0.035308837890625, 0.0010461807250976562, 0.014556884765625, 0.0384521484375, -0.0157470703125, 0.030548095703125, -0.034423828125, 0.063720703125, 0.0168304443359375, 0.06158447265625, -0.007110595703125, -0.0156402587890625, 0.052001953125, -0.0133514404296875, -0.024078369140625, -0.033477783203125, -0.034759521484375, -0.03570556640625, 0.00481414794921875, 0.027862548828125, -0.01715087890625, -0.031402587890625, -0.09014892578125, -0.006206512451171875, 0.01369476318359375, 0.0160675048828125, -0.0738525390625, 0.045745849609375, 0.007595062255859375, 0.02392578125, -0.0165252685546875, -0.048828125, 0.046051025390625, 0.0570068359375, -0.00553131103515625, 0.017791748046875, 0.0146636962890625, -0.032958984375, 0.0265350341796875, 0.01122283935546875, 0.0272369384765625, -0.0291900634765625, -0.0156707763671875, 0.0279693603515625, -0.004749298095703125, 0.05975341796875, 0.0035247802734375, -0.032379150390625, -0.0267181396484375, 0.0008287429809570312, -0.0031261444091796875, -0.0246734619140625, 0.0254974365234375, -0.059661865234375, -0.03155517578125, -0.00780487060546875, 0.0135650634765625, 0.04791259765625, -0.0285797119140625, -0.08123779296875, 0.01019287109375, -0.007442474365234375, -0.048248291015625, -0.047607421875, -0.0031299591064453125, -0.016143798828125, 0.051910400390625, -0.01549530029296875, -0.035430908203125, 0.00888824462890625, 0.047119140625, 0.0096588134765625, 0.0008969306945800781, 0.0170440673828125, -0.007686614990234375, -0.07275390625, -0.0169219970703125, -0.0294189453125, -0.00011032819747924805, 0.031585693359375, -0.0268096923828125, 0.0094451904296875, 0.024993896484375, -0.058685302734375, -0.10400390625, -0.038848876953125, -0.00048422813415527344, 0.0122833251953125, -0.00798797607421875, -0.055328369140625, -0.039520263671875, 0.01678466796875, 0.06793212890625, 0.01424407958984375, -0.0034084320068359375, 0.02276611328125, -0.0293426513671875, -0.06451416015625, 0.0028228759765625, 0.01435089111328125, -0.033172607421875, 0.0064239501953125, 0.005107879638671875, -0.0224761962890625, 0.027557373046875, 0.0023784637451171875, -0.0301971435546875, 0.0134735107421875, -0.0018301010131835938, -0.005046844482421875, -0.08184814453125, -0.0004532337188720703, 0.033172607421875, -0.0231170654296875, -0.0010471343994140625, -0.00041294097900390625, 0.00965118408203125, 0.005641937255859375, 0.0237274169921875, -0.038909912109375, -0.0232086181640625, -0.022003173828125, 0.0257415771484375, -0.037322998046875, 0.050567626953125, -0.044647216796875, 0.0086669921875, 0.00008803606033325195, 0.045745849609375, -0.01568603515625, 0.06451416015625, -0.0093994140625, 0.04888916015625, 0.0076141357421875, 0.01995849609375, -0.0191802978515625, 0.012298583984375, -0.0007762908935546875, 0.009429931640625, 0.00942230224609375, 0.003002166748046875, 0.0482177734375, -0.023468017578125, 0.002620697021484375, -0.0245208740234375, -0.03515625, -0.044921875, -0.010162353515625, 0.0297698974609375, -0.0275726318359375, 0.0169830322265625 ]
f7ea72ec4441864a9d6d997723793561218e7553
Wordpress Stackexchange Q: Set default link type to "file" for image galleries Whenever you add a image gallery to a post, the images automatically link to the image attachment pages. This is not ideal, because I want to use Fancybox so the user can cycle through the images. I tried the following code to let the images link to the files by default, but this doesn't seem to work for galleries. Any suggestions on how to set the default link type to "file" for image galleries? I would be even happier if the image attachment page wouldn't be available at all (on galleries an regular images). I don't really like this feature. /** * Set default image link type to file */ function tp_set_default_link_type() { update_option( 'image_default_link_type', 'file' ); } add_action( 'after_switch_theme', 'tp_set_default_link_type' ); Thanks in advance! A: You can override the gallery shortcode link attribute with: add_filter( 'shortcode_atts_gallery', function( $out ){ $out['link'] = 'file'; return $out; } ); This means that even if your shortcodes are: [gallery ids="1,2,3"] [gallery ids="1,2,3" link="none"] the gallery output will always be generated as if you used link="file".
Q: Set default link type to "file" for image galleries Whenever you add a image gallery to a post, the images automatically link to the image attachment pages. This is not ideal, because I want to use Fancybox so the user can cycle through the images. I tried the following code to let the images link to the files by default, but this doesn't seem to work for galleries. Any suggestions on how to set the default link type to "file" for image galleries? I would be even happier if the image attachment page wouldn't be available at all (on galleries an regular images). I don't really like this feature. /** * Set default image link type to file */ function tp_set_default_link_type() { update_option( 'image_default_link_type', 'file' ); } add_action( 'after_switch_theme', 'tp_set_default_link_type' ); Thanks in advance! A: You can override the gallery shortcode link attribute with: add_filter( 'shortcode_atts_gallery', function( $out ){ $out['link'] = 'file'; return $out; } ); This means that even if your shortcodes are: [gallery ids="1,2,3"] [gallery ids="1,2,3" link="none"] the gallery output will always be generated as if you used link="file". A: There is now (from version 4.0) much better solution which actually sets the default option: function my_gallery_default_type_set_link( $settings ) { $settings['galleryDefaults']['link'] = 'file'; return $settings; } add_filter( 'media_view_settings', 'my_gallery_default_type_set_link'); view: Overide Gallery Default Link to Settings A: Based on birgire answer but more flexible and fix the gallery output will always be generated as if you used link="file" and still be able to use link="none" for exemple /** * Set default link type to “file” for image galleries when link isn't set */ add_filter( 'shortcode_atts_gallery', function( $out ){ if( !array_key_exists('link', $out) || empty($out['link']) ) $out['link'] = 'file'; return $out; } );
wordpress
{ "language": "en", "length": 284, "provenance": "stackexchange_00019.jsonl.gz:447675", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157191" }
[ 0.03753662109375, -0.00965118408203125, 0.00920867919921875, -0.0194244384765625, -0.005817413330078125, -0.015411376953125, 0.0645751953125, -0.0167236328125, 0.02008056640625, -0.003849029541015625, -0.01824951171875, -0.0092620849609375, -0.042205810546875, -0.022003173828125, -0.00897979736328125, -0.0330810546875, 0.0225677490234375, 0.002292633056640625, 0.03302001953125, -0.0090179443359375, 0.01068878173828125, 0.01012420654296875, 0.032867431640625, -0.0111541748046875, -0.0008726119995117188, 0.03411865234375, 0.043426513671875, -0.0039215087890625, -0.0121002197265625, -0.007404327392578125, 0.00547027587890625, -0.0172119140625, 0.048248291015625, -0.0041961669921875, -0.054107666015625, 0.0172119140625, -0.01324462890625, -0.00884246826171875, -0.040924072265625, 0.03692626953125, -0.000015914440155029297, -0.004730224609375, 0.017852783203125, -0.031494140625, -0.030364990234375, 0.004337310791015625, -0.0233306884765625, -0.0251007080078125, 0.0295562744140625, 0.0018930435180664062, 0.004589080810546875, 0.049591064453125, 0.020172119140625, -0.041229248046875, -0.0109405517578125, -0.01068878173828125, -0.0169677734375, -0.03857421875, 0.030975341796875, -0.042022705078125, -0.01454925537109375, -0.0438232421875, 0.04498291015625, 0.0096282958984375, -0.01293182373046875, -0.01605224609375, -0.014801025390625, 0.023956298828125, 0.00482940673828125, -0.01486968994140625, 0.01174163818359375, -0.01248931884765625, 0.0034885406494140625, -0.033477783203125, -0.00493621826171875, 0.05963134765625, -0.031707763671875, 0.0178070068359375, 0.031585693359375, -0.0257415771484375, 0.0242767333984375, -0.034423828125, 0.01061248779296875, 0.01212310791015625, 0.016571044921875, 0.0384521484375, 0.001239776611328125, -0.0305328369140625, -0.01317596435546875, -0.024871826171875, -0.01248931884765625, 0.019866943359375, 0.0186920166015625, -0.0287322998046875, -0.046844482421875, -0.035980224609375, -0.0343017578125, -0.007450103759765625, 0.028106689453125, 0.055206298828125, -0.0277099609375, -0.0153961181640625, 0.03045654296875, -0.051361083984375, -0.0074005126953125, 0.0290374755859375, -0.00626373291015625, -0.02764892578125, 0.006725311279296875, 0.035980224609375, -0.0030975341796875, 0.005840301513671875, -0.0144805908203125, 0.034149169921875, -0.026153564453125, -0.0084228515625, -0.07672119140625, 0.043670654296875, -0.03411865234375, 0.05096435546875, 0.004978179931640625, 0.01361083984375, 0.029632568359375, -0.006313323974609375, -0.0039825439453125, 0.01070404052734375, -0.035919189453125, -0.041656494140625, 0.048065185546875, 0.00914764404296875, -0.047576904296875, 0.0107269287109375, 0.09576416015625, 0.0318603515625, 0.042724609375, -0.0096893310546875, -0.01120758056640625, -0.04620361328125, -0.00920867919921875, 0.02410888671875, 0.007747650146484375, -0.0377197265625, 0.0160369873046875, 0.0185699462890625, 0.01113128662109375, 0.039093017578125, 0.0203094482421875, 0.005359649658203125, -0.01526641845703125, -0.06268310546875, 0.025115966796875, -0.032196044921875, 0.04901123046875, 0.0258026123046875, -0.041778564453125, -0.03350830078125, 0.047210693359375, -0.043304443359375, -0.0124053955078125, -0.0887451171875, 0.01215362548828125, 0.00798797607421875, -0.00679779052734375, -0.046112060546875, -0.041900634765625, -0.0198516845703125, -0.0210418701171875, -0.0045166015625, 0.01517486572265625, 0.0203857421875, 0.0021266937255859375, -0.05743408203125, -0.0728759765625, 0.0123138427734375, 0.006122589111328125, 0.038177490234375, 0.012969970703125, 0.0079193115234375, 0.024322509765625, 0.00711822509765625, -0.0019702911376953125, -0.02239990234375, 0.05401611328125, -0.007076263427734375, -0.03961181640625, 0.032501220703125, 0.00568389892578125, 0.045379638671875, 0.0147705078125, 0.0119781494140625, -0.0017452239990234375, 0.03143310546875, -0.052825927734375, -0.0011653900146484375, 0.0084228515625, -0.00202178955078125, -0.0164031982421875, -0.017333984375, -0.0013875961303710938, 0.006103515625, -0.0218353271484375, -0.024383544921875, 0.007205963134765625, 0.0206146240234375, 0.0202484130859375, -0.014678955078125, -0.0017709732055664062, 0.01050567626953125, -0.05438232421875, -0.01508331298828125, 0.0357666015625, -0.0225830078125, -0.0296478271484375, 0.029754638671875, 0.0274200439453125, 0.044525146484375, -0.0149383544921875, 0.028564453125, -0.0241241455078125, 0.041778564453125, -0.042572021484375, -0.03900146484375, -0.019622802734375, 0.0209808349609375, 0.0167083740234375, 0.016357421875, -0.052825927734375, -0.01055145263671875, -0.036163330078125, 0.0133209228515625, -0.06103515625, 0.05377197265625, -0.035919189453125, -0.057098388671875, -0.04962158203125, -0.0159149169921875, -0.00662994384765625, -0.04150390625, 0.025909423828125, 0.052459716796875, 0.0277862548828125, -0.006061553955078125, -0.0097503662109375, -0.0005521774291992188, 0.052398681640625, 0.05670166015625, 0.044891357421875, -0.0291748046875, -0.020050048828125, -0.0199127197265625, -0.004894256591796875, 0.01221466064453125, 0.03851318359375, 0.00252532958984375, -0.00027370452880859375, 0.033782958984375, 0.0025005340576171875, -0.028900146484375, 0.0207672119140625, 0.012176513671875, 0.00559234619140625, 0.01232147216796875, -0.013336181640625, 0.004810333251953125, 0.0273895263671875, 0.0384521484375, 0.03857421875, 0.03155517578125, -0.057220458984375, 0.058074951171875, -0.0015039443969726562, -0.01209259033203125, -0.0106353759765625, 0.051300048828125, 0.07818603515625, -0.035369873046875, -0.01264190673828125, -0.0311126708984375, -0.0013217926025390625, 0.02996826171875, -0.02716064453125, -0.0016946792602539062, 0.006053924560546875, -0.00202178955078125, -0.0063323974609375, -0.04510498046875, 0.03961181640625, -0.0092620849609375, -0.007007598876953125, -0.0128326416015625, 0.0207061767578125, 0.0149078369140625, -0.0143585205078125, 0.024810791015625, -0.0175018310546875, -0.017425537109375, 0.021728515625, -0.0535888671875, 0.07196044921875, -0.0897216796875, 0.0506591796875, 0.06280517578125, -0.09033203125, 0.07049560546875, -0.0243682861328125, 0.055694580078125, -0.0235748291015625, -0.00496673583984375, -0.0181884765625, -0.049346923828125, 0.0007448196411132812, -0.0267181396484375, 0.0036907196044921875, 0.016448974609375, -0.057647705078125, -0.03936767578125, -0.041534423828125, -0.008056640625, -0.0538330078125, 0.0030727386474609375, 0.0396728515625, -0.050811767578125, 0.0100860595703125, 0.004146575927734375, -0.0296783447265625, -0.023712158203125, 0.039947509765625, -0.005001068115234375, 0.022796630859375, 0.0034694671630859375, -0.0038738250732421875, 0.01119232177734375, 0.0009489059448242188, -0.00496673583984375, -0.01129150390625, -0.0283966064453125, 0.0153045654296875, 0.03594970703125, 0.01158905029296875, -0.0328369140625, 0.0175628662109375, 0.0171051025390625, -0.00821685791015625, 0.00934600830078125, 0.02899169921875, -0.052337646484375, 0.01378631591796875, -0.0132904052734375, 0.034820556640625, 0.034332275390625, -0.006900787353515625, 0.002529144287109375, -0.01904296875, -0.004695892333984375, 0.0131072998046875, 0.021148681640625, -0.0009093284606933594, 0.017608642578125, 0.03729248046875, -0.02642822265625, 0.00039887428283691406, -0.025146484375, -0.037628173828125, -0.0166473388671875, 0.0290069580078125, -0.0127410888671875, -0.04248046875, 0.02105712890625, -0.0265960693359375, -0.020965576171875, 0.044342041015625, -0.0550537109375, 0.0067901611328125, -0.020599365234375, -0.03009033203125, -0.019500732421875, 0.0814208984375, 0.0184478759765625, 0.0133209228515625, 0.04168701171875, 0.0283966064453125, 0.01406097412109375, 0.01036834716796875, -0.01641845703125, -0.038604736328125, 0.039459228515625, -0.07147216796875, 0.032928466796875, -0.0858154296875, -0.001049041748046875, -0.0521240234375, 0.05242919921875, -0.0218353271484375, -0.011322021484375, 0.002918243408203125, 0.0158843994140625, 0.004329681396484375, -0.0546875, -0.0243988037109375, -0.01543426513671875, -0.0240631103515625, 0.01540374755859375, 0.021270751953125, -0.0291290283203125, -0.0022792816162109375, -0.045257568359375, -0.0063323974609375, -0.03228759765625, 0.0254058837890625, 0.040679931640625, -0.023406982421875, 0.055694580078125, -0.0263214111328125, 0.03436279296875, -0.0213165283203125, 0.006893157958984375, -0.10894775390625, -0.0256195068359375, 0.0216217041015625, 0.06634521484375, -0.0238494873046875, -0.029022216796875, -0.0296783447265625, 0.058349609375, 0.0137176513671875, -0.04534912109375, 0.0234375, -0.01055145263671875, -0.01399993896484375, 0.027557373046875, -0.003231048583984375, -0.0222930908203125, 0.018524169921875, -0.0120849609375, -0.06304931640625, 0.01099395751953125, -0.017730712890625, 0.032623291015625, 0.021636962890625, -0.0377197265625, -0.042572021484375, -0.057891845703125, 0.0222930908203125, 0.0290679931640625, 0.023895263671875, -0.01178741455078125, -0.078125, -0.040557861328125, -0.01264190673828125, -0.06353759765625, -0.0220184326171875, 0.0203094482421875, 0.04034423828125, 0.0218353271484375, 0.0224609375, -0.031982421875, 0.037261962890625, 0.037994384765625, 0.01806640625, 0.0269775390625, 0.0159149169921875, -0.00970458984375, 0.0157318115234375, 0.0218048095703125, 0.0158538818359375, -0.058868408203125, 0.07794189453125, -0.0180511474609375, -0.0036144256591796875, 0.026336669921875, -0.037750244140625, 0.0098114013671875, 0.011993408203125, -0.01024627685546875, 0.007205963134765625, -0.0016880035400390625, 0.023895263671875, 0.00479888916015625, -0.0210113525390625, -0.041473388671875, 0.041717529296875, -0.03857421875, 0.095703125, 0.0390625, 0.03961181640625, 0.0078887939453125, -0.0155181884765625, 0.03643798828125, -0.005634307861328125, 0.036773681640625, 0.0438232421875, 0.0152587890625, 0.051177978515625, 0.002410888671875, -0.0013208389282226562, -0.01104736328125, 0.0046234130859375, -0.022308349609375, 0.01654052734375, 0.0007376670837402344, -0.04876708984375, 0.0202789306640625, 0.0247802734375, -0.0258636474609375, 0.0205535888671875, 0.048126220703125, -0.0079803466796875, -0.0261993408203125, -0.02911376953125, -0.045989990234375, -0.0015106201171875, -0.06390380859375, 0.053131103515625, 0.0198516845703125, -0.00878143310546875, 0.028289794921875, -0.007785797119140625, 0.006511688232421875, -0.01042938232421875, 0.00522613525390625, -0.0286712646484375, -0.00789642333984375, 0.01287841796875, 0.028533935546875, 0.008697509765625, -0.006092071533203125, 0.003498077392578125, 0.04498291015625, -0.03326416015625, 0.005023956298828125, 0.037689208984375, 0.048828125, -0.0166473388671875, -0.04888916015625, 0.004993438720703125, -0.057647705078125, 0.01078033447265625, -0.0171661376953125, -0.054901123046875, -0.0284271240234375, -0.0223846435546875, 0.004375457763671875, 0.043609619140625, -0.025543212890625, -0.043182373046875, 0.041107177734375, 0.00812530517578125, 0.04290771484375, -0.007213592529296875, -0.049835205078125, 0.051971435546875, 0.0552978515625, 0.015594482421875, -0.037384033203125, -0.0298309326171875, -0.0290679931640625, 0.041412353515625, -0.03240966796875, -0.0193023681640625, 0.041656494140625, -0.0264434814453125, 0.017578125, -0.03387451171875, 0.003047943115234375, -0.033721923828125, 0.01560211181640625, 0.0237274169921875, 0.00762176513671875, -0.0025844573974609375, 0.0041656494140625, -0.037933349609375, -0.019561767578125, 0.036590576171875, -0.0203857421875, -0.0247955322265625, -0.041961669921875, 0.006237030029296875, 0.044189453125, -0.00689697265625, -0.01039886474609375, 0.002716064453125, -0.0158233642578125, -0.00630950927734375, 0.046234130859375, 0.01480865478515625, -0.030242919921875, 0.0170745849609375, 0.016937255859375, -0.0027217864990234375, -0.058013916015625, -0.0518798828125, -0.01267242431640625, -0.0176849365234375, -0.02301025390625, 0.004642486572265625, 0.023956298828125, -0.025848388671875, 0.00998687744140625, 0.04547119140625, 0.015380859375, -0.017059326171875, 0.008514404296875, -0.016326904296875, -0.02294921875, 0.03271484375, 0.03656005859375, 0.039459228515625, -0.03717041015625, 0.00904083251953125, 0.04449462890625, -0.0263824462890625, -0.0361328125, 0.00022923946380615234, -0.01265716552734375, 0.01236724853515625, 0.019134521484375, -0.0146636962890625, 0.044403076171875, 0.060394287109375, -0.046875, 0.031036376953125, 0.024139404296875, -0.019866943359375, 0.0352783203125, 0.0472412109375, 0.048553466796875, -0.030303955078125, 0.05889892578125, 0.01030731201171875, -0.011871337890625, 0.011810302734375, -0.0288238525390625, 0.019317626953125, 0.01337432861328125, 0.037689208984375, -0.0443115234375, 0.01470184326171875, -0.0023670196533203125, -0.00872802734375, 0.039581298828125, -0.0250396728515625, -0.0119476318359375, -0.00691986083984375, 0.039093017578125, -0.033538818359375, -0.049560546875, -0.004123687744140625, 0.006931304931640625, 0.01293182373046875, 0.0340576171875, 0.033538818359375, -0.010772705078125, -0.0254364013671875, -0.09033203125, 0.0202789306640625, -0.045867919921875, 0.0257720947265625, 0.00717926025390625, -0.0286407470703125, -0.024566650390625, -0.03350830078125, -0.0364990234375, -0.044921875, -0.012237548828125, 0.005374908447265625, -0.0252227783203125, 0.06134033203125, 0.0275115966796875, -0.0084686279296875, 0.00176239013671875, -0.0085601806640625, 0.01409149169921875, -0.01284027099609375, -0.031463623046875, 0.01148223876953125, 0.03338623046875, -0.0285491943359375, 0.021697998046875, -0.006175994873046875, -0.01366424560546875, -0.0229034423828125, -0.03253173828125, 0.09088134765625, -0.0794677734375, 0.0055389404296875, 0.022216796875, 0.032684326171875, -0.0246429443359375, -0.005809783935546875, -0.00022351741790771484, -0.05340576171875, -0.0477294921875, -0.007213592529296875, -0.067626953125, -0.01181793212890625, -0.0243377685546875, -0.0310821533203125, 0.0253448486328125, -0.053955078125, 0.01526641845703125, 0.003879547119140625, 0.00533294677734375, 0.0215606689453125, 0.0140228271484375, -0.01430511474609375, 0.0149383544921875, 0.0298919677734375, 0.01262664794921875, 0.0216217041015625, -0.0019512176513671875, 0.0236053466796875, 0.0115814208984375, 0.0262451171875, 0.008819580078125, -0.01036834716796875, 0.0187835693359375, 0.06396484375, 0.0278167724609375, -0.005706787109375, 0.025634765625, -0.0161895751953125, -0.0328369140625, 0.0233917236328125, 0.0037517547607421875, 0.00994110107421875, 0.01187896728515625, -0.03289794921875, 0.0073699951171875, 0.0173492431640625, 0.007556915283203125, 0.0022373199462890625, 0.036224365234375, -0.05084228515625, 0.000728607177734375, 0.044952392578125, -0.01263427734375, -0.006832122802734375, 0.056732177734375, 0.0589599609375, -0.03253173828125, -0.035736083984375, -0.021728515625, 0.055816650390625, 0.01399993896484375, -0.01198577880859375, 0.0301361083984375, 0.008056640625, 0.03302001953125, -0.0469970703125, -0.0157470703125, -0.0132598876953125, 0.0042266845703125, 0.0278472900390625, -0.006610870361328125, 0.01329803466796875, -0.042877197265625, 0.00897979736328125, 0.0290374755859375, 0.0312347412109375, -0.0285491943359375, -0.040130615234375, 0.01519012451171875, -0.009246826171875, 0.0124664306640625, -0.0017518997192382812, 0.0132904052734375, -0.06536865234375, -0.022308349609375, -0.048126220703125, 0.004180908203125, 0.021514892578125, 0.0209503173828125, -0.0154876708984375, -0.011260986328125, -0.0251922607421875, -0.00629425048828125, -0.022674560546875, 0.0262908935546875, 0.02032470703125, -0.00472259521484375, -0.049407958984375, 0.0401611328125, 0.0155792236328125, 0.03155517578125, -0.0199127197265625, 0.0245819091796875, -0.06072998046875, 0.053497314453125, -0.06842041015625, -0.052978515625, -0.03387451171875, 0.070068359375, 0.0408935546875, 0.0031108856201171875, 0.0462646484375, 0.01593017578125, -0.02850341796875, 0.0031147003173828125, -0.00495147705078125, -0.0211181640625, 0.0322265625, -0.0230560302734375, 0.0308074951171875, 0.0367431640625, -0.015838623046875, 0.00543975830078125, -0.0277099609375, 0.0814208984375, -0.0704345703125, 0.057403564453125, -0.020660400390625, -0.0232086181640625, 0.044189453125, -0.026031494140625, 0.08612060546875, -0.025299072265625, -0.04754638671875, -0.0194854736328125, 0.0228271484375, -0.0750732421875, 0.029144287109375, 0.046478271484375, -0.027984619140625, 0.0018110275268554688, -0.0195465087890625, 0.01070404052734375, 0.011322021484375, -0.023040771484375, -0.017120361328125, -0.01483154296875, 0.02667236328125, -0.018646240234375, -0.016876220703125, -0.00463104248046875, -0.01806640625, 0.0291748046875, 0.0232391357421875, 0.067626953125, -0.0160675048828125, 0.0287322998046875, 0.00960540771484375, 0.032440185546875, -0.0271148681640625, 0.01317596435546875, 0.008331298828125, -0.0016756057739257812, 0.01251983642578125, -0.013671875, 0.019500732421875, 0.004581451416015625, 0.028411865234375, -0.03179931640625, -0.0114898681640625, -0.03057861328125, 0.029693603515625, 0.0172882080078125, 0.040130615234375, -0.0323486328125, -0.049591064453125, -0.079833984375, -0.0180511474609375, 0.020416259765625, -0.0011310577392578125, -0.044769287109375, 0.053802490234375, 0.023529052734375, 0.0265350341796875, 0.021514892578125, -0.035919189453125, 0.0302886962890625, 0.0269012451171875, -0.0049591064453125, -0.029571533203125, -0.039703369140625, -0.0223541259765625, 0.01180267333984375, -0.00473785400390625, 0.005279541015625, -0.0157470703125, -0.036468505859375, 0.005218505859375, 0.030670166015625, 0.032318115234375, -0.029541015625, -0.0032444000244140625, 0.02783203125, -0.006587982177734375, 0.00446319580078125, 0.0213165283203125, 0.004962921142578125, -0.022613525390625, -0.0080108642578125, 0.016357421875, 0.006061553955078125, 0.01320648193359375, -0.008209228515625, 0.0182037353515625, 0.033355712890625, 0.03582763671875, -0.09185791015625, 0.06988525390625, -0.00881195068359375, 0.017822265625, 0.0122222900390625, -0.028594970703125, -0.00966644287109375, -0.0262451171875, -0.039764404296875, -0.03753662109375, -0.06256103515625, 0.02325439453125, -0.039764404296875, 0.03192138671875, 0.03912353515625, -0.0216064453125, 0.0039520263671875, 0.03125, 0.017730712890625, 0.07373046875, -0.0195465087890625, -0.04864501953125, -0.001499176025390625, -0.0089874267578125, 0.01824951171875, -0.01202392578125, -0.0008497238159179688, -0.040496826171875, -0.00389862060546875, 0.015838623046875, -0.016357421875, 0.01537322998046875, -0.0401611328125, -0.08843994140625, 0.053863525390625, -0.005199432373046875, -0.040771484375, -0.032470703125, 0.037872314453125, -0.01499176025390625, 0.0396728515625, 0.004093170166015625, -0.006465911865234375, 0.0260467529296875, 0.003314971923828125, 0.00012362003326416016, 0.01983642578125, 0.01422882080078125, -0.00756072998046875, 0.0242462158203125, 0.01212310791015625, 0.01493072509765625, -0.020782470703125, 0.03759765625, -0.0304718017578125, 0.049224853515625, 0.039642333984375, -0.039337158203125, 0.0166778564453125, -0.008056640625, -0.017791748046875, 0.0180511474609375, -0.0242767333984375, -0.036773681640625, -0.029266357421875, 0.022003173828125, 0.0159454345703125, 0.004123687744140625, 0.0070648193359375, -0.0111236572265625, -0.0202178955078125, -0.00870513916015625, -0.0247344970703125, 0.007648468017578125, -0.0516357421875, -0.01110076904296875, -0.0199432373046875, -0.007770538330078125, -0.052001953125, -0.005950927734375, -0.041290283203125, -0.00485992431640625, 0.00011295080184936523, 0.009307861328125, -0.003932952880859375, 0.04541015625, 0.0457763671875, -0.01503753662109375, 0.049041748046875, -0.029388427734375, -0.01335906982421875, 0.059417724609375, -0.0191497802734375, 0.0091094970703125, 0.052276611328125, -0.040374755859375, -0.004974365234375, 0.0289764404296875, -0.0290985107421875, -0.00525665283203125, 0.012664794921875, 0.01026153564453125, 0.01132965087890625, -0.00592803955078125, 0.0202789306640625, 0.007633209228515625, 0.0231781005859375, -0.00011873245239257812, 0.0086212158203125, -0.0306854248046875, -0.016693115234375, -0.0002338886260986328, 0.00791168212890625, -0.055145263671875, 0.0251312255859375, 0.006954193115234375, -0.0413818359375, 0.00795745849609375, 0.0084075927734375, -0.006397247314453125, -0.0209503173828125, -0.0084075927734375, -0.050262451171875, 0.0033969879150390625, 0.0036163330078125 ]
46950264c5633c4692e9d8c53a2d216cfc65ffbf
Wordpress Stackexchange Q: How to use wp_terms_checklist() on front end Getting a Fatal Error using wp_terms_checklist() in one of my advanced search form in Front End. Fatal error: Call to undefined function wp_terms_checklist() With search I got that it's creating problem because the function is for admin panel use only, BTW not deprecated. <?php $args = array( 'descendants_and_self' => 0, 'selected_cats' => false, 'popular_cats' => false, 'walker' => null, 'taxonomy' => 'mytaxonomy', 'checked_ontop' => true ); wp_terms_checklist( 0, $args ); ?> But if I need a similar thing in my front end. How can I achieve that? Is that possible in current flow? A: You could just include it in your functions.php: if ( ! is_admin() ) { include ABSPATH . 'wp-admin/includes/template.php'; } Or better (as suggested by @Lance Cleveland in the comments): if ( ! function_exists( 'wp_terms_checklist' ) ) { include ABSPATH . 'wp-admin/includes/template.php'; }
Q: How to use wp_terms_checklist() on front end Getting a Fatal Error using wp_terms_checklist() in one of my advanced search form in Front End. Fatal error: Call to undefined function wp_terms_checklist() With search I got that it's creating problem because the function is for admin panel use only, BTW not deprecated. <?php $args = array( 'descendants_and_self' => 0, 'selected_cats' => false, 'popular_cats' => false, 'walker' => null, 'taxonomy' => 'mytaxonomy', 'checked_ontop' => true ); wp_terms_checklist( 0, $args ); ?> But if I need a similar thing in my front end. How can I achieve that? Is that possible in current flow? A: You could just include it in your functions.php: if ( ! is_admin() ) { include ABSPATH . 'wp-admin/includes/template.php'; } Or better (as suggested by @Lance Cleveland in the comments): if ( ! function_exists( 'wp_terms_checklist' ) ) { include ABSPATH . 'wp-admin/includes/template.php'; }
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:447705", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157300" }
[ 0.08734130859375, 0.004009246826171875, -0.01143646240234375, -0.06585693359375, 0.0447998046875, -0.0384521484375, 0.025604248046875, -0.0264739990234375, 0.05810546875, 0.02618408203125, -0.0638427734375, -0.013214111328125, -0.028961181640625, 0.0037689208984375, -0.07391357421875, -0.03497314453125, 0.0208892822265625, -0.013031005859375, 0.03515625, -0.005741119384765625, 0.0156707763671875, 0.008636474609375, 0.0291290283203125, -0.01806640625, -0.003765106201171875, -0.01326751708984375, 0.044036865234375, -0.0255584716796875, -0.004764556884765625, -0.037567138671875, 0.008392333984375, 0.04400634765625, 0.012664794921875, 0.00739288330078125, -0.0146942138671875, 0.00042366981506347656, 0.0086822509765625, -0.0007238388061523438, 0.015289306640625, 0.0217742919921875, 0.01904296875, -0.01349639892578125, -0.0265960693359375, 0.0258026123046875, -0.0139617919921875, -0.03863525390625, 0.0184326171875, -0.03912353515625, -0.003910064697265625, 0.0059661865234375, 0.02783203125, -0.034088134765625, 0.03289794921875, -0.07049560546875, -0.0077972412109375, -0.013031005859375, 0.03564453125, -0.048919677734375, 0.039825439453125, 0.007762908935546875, -0.0266876220703125, -0.03448486328125, 0.02020263671875, -0.033599853515625, -0.0012979507446289062, 0.024139404296875, -0.00872802734375, 0.01910400390625, -0.052734375, -0.0229339599609375, 0.01450347900390625, -0.0389404296875, 0.01003265380859375, 0.01380157470703125, 0.00577545166015625, -0.033416748046875, 0.0119476318359375, 0.01274871826171875, -0.007045745849609375, 0.05023193359375, -0.007602691650390625, 0.026519775390625, -0.0509033203125, 0.003040313720703125, 0.00482940673828125, 0.046478271484375, -0.01078033447265625, -0.0379638671875, -0.031951904296875, -0.03594970703125, -0.0156707763671875, -0.0270538330078125, -0.059814453125, -0.0191650390625, -0.0012578964233398438, -0.046630859375, 0.04388427734375, 0.09149169921875, -0.0157012939453125, 0.01160430908203125, -0.035003662109375, -0.027099609375, 0.004207611083984375, -0.034271240234375, 0.01238250732421875, 0.055816650390625, -0.022613525390625, 0.038848876953125, 0.039459228515625, 0.0283966064453125, 0.018096923828125, -0.0180511474609375, -0.0227203369140625, -0.043914794921875, -0.00910186767578125, 0.01474761962890625, -0.0275421142578125, 0.02667236328125, 0.028289794921875, 0.0148773193359375, 0.0183868408203125, 0.035247802734375, 0.015960693359375, -0.038543701171875, -0.01678466796875, -0.0280914306640625, -0.025146484375, -0.02685546875, -0.0270538330078125, 0.0235443115234375, -0.0240325927734375, 0.016448974609375, 0.05035400390625, 0.017578125, -0.00817108154296875, -0.0166015625, 0.0211334228515625, 0.0235748291015625, 0.01222991943359375, -0.00432586669921875, 0.04620361328125, -0.022125244140625, -0.0284423828125, 0.0183868408203125, 0.0296478271484375, -0.00514984130859375, 0.03271484375, 0.037322998046875, -0.00859832763671875, -0.02142333984375, 0.048095703125, 0.00632476806640625, 0.052490234375, 0.00969696044921875, -0.052490234375, -0.0045013427734375, 0.02508544921875, -0.035614013671875, -0.050048828125, -0.06744384765625, -0.004180908203125, -0.0203704833984375, 0.006320953369140625, -0.0673828125, -0.0682373046875, -0.00027441978454589844, -0.040924072265625, -0.01145172119140625, 0.020721435546875, -0.023345947265625, -0.00421905517578125, -0.04998779296875, 0.01108551025390625, 0.013580322265625, 0.002689361572265625, 0.03704833984375, 0.0184478759765625, 0.023651123046875, 0.004669189453125, 0.01308441162109375, -0.0137786865234375, -0.036163330078125, 0.06182861328125, -0.016815185546875, -0.059478759765625, 0.011383056640625, 0.0093841552734375, 0.0088653564453125, 0.03509521484375, -0.0014696121215820312, 0.06671142578125, 0.0094757080078125, -0.027008056640625, 0.07110595703125, -0.0369873046875, -0.03778076171875, -0.0307769775390625, 0.01232147216796875, -0.050048828125, -0.0031299591064453125, 0.05078125, 0.013275146484375, 0.00405120849609375, -0.033721923828125, -0.0731201171875, 0.002155303955078125, -0.0164031982421875, 0.0276031494140625, 0.021270751953125, 0.0330810546875, 0.00295257568359375, -0.01398468017578125, -0.0296173095703125, 0.006015777587890625, -0.0165863037109375, 0.000032782554626464844, -0.007171630859375, 0.0300445556640625, 0.0265960693359375, -0.0149078369140625, 0.04473876953125, -0.0179595947265625, 0.03228759765625, 0.0010862350463867188, -0.0024871826171875, 0.038116455078125, -0.035797119140625, 0.018951416015625, -0.0316162109375, 0.01776123046875, 0.0108489990234375, 0.0372314453125, 0.01580810546875, 0.036834716796875, 0.008087158203125, -0.002376556396484375, 0.0239105224609375, -0.0655517578125, 0.00965118408203125, 0.032440185546875, 0.04962158203125, 0.023956298828125, -0.0198211669921875, -0.049957275390625, 0.0755615234375, -0.06768798828125, -0.004581451416015625, -0.0236053466796875, -0.007354736328125, 0.021636962890625, 0.01229095458984375, 0.01210784912109375, 0.0173797607421875, 0.015594482421875, -0.006664276123046875, 0.03857421875, -0.034454345703125, -0.010498046875, -0.018768310546875, -0.0255584716796875, 0.01209259033203125, -0.10858154296875, -0.04364013671875, -0.03131103515625, 0.01666259765625, -0.0125579833984375, 0.023284912109375, 0.011016845703125, -0.0082244873046875, -0.0018463134765625, 0.012908935546875, -0.01454925537109375, 0.002323150634765625, 0.0262908935546875, 0.010528564453125, 0.017333984375, -0.0228271484375, 0.0001647472381591797, 0.0149078369140625, 0.01087188720703125, 0.00452423095703125, 0.058135986328125, -0.01403045654296875, -0.00695037841796875, -0.04278564453125, -0.03155517578125, 0.01331329345703125, 0.049163818359375, 0.009368896484375, -0.01953125, 0.0253753662109375, -0.0017633438110351562, -0.025604248046875, 0.0158843994140625, -0.0226593017578125, -0.0297698974609375, 0.006999969482421875, 0.01244354248046875, -0.0115509033203125, 0.00418853759765625, 0.0296173095703125, 0.03900146484375, -0.0003075599670410156, -0.0176544189453125, -0.004459381103515625, 0.0132598876953125, -0.0004482269287109375, 0.0134429931640625, -0.005107879638671875, -0.0189361572265625, -0.033966064453125, -0.00489044189453125, 0.0303497314453125, 0.04437255859375, 0.01412200927734375, -0.0374755859375, 0.004245758056640625, 0.0304718017578125, -0.048553466796875, -0.053009033203125, -0.006061553955078125, -0.05682373046875, -0.01374053955078125, 0.007297515869140625, -0.0274505615234375, -0.004863739013671875, 0.0296173095703125, -0.0003705024719238281, -0.01114654541015625, -0.05322265625, -0.042083740234375, -0.06500244140625, -0.06982421875, 0.0127716064453125, -0.0016574859619140625, 0.0103912353515625, -0.0038204193115234375, 0.0826416015625, 0.01031494140625, -0.05108642578125, 0.00595855712890625, 0.0235137939453125, -0.014190673828125, 0.02655029296875, 0.006443023681640625, -0.0267181396484375, 0.00881195068359375, -0.0063629150390625, 0.00656890869140625, 0.00424957275390625, -0.0040283203125, -0.0208587646484375, -0.01140594482421875, 0.008544921875, 0.0194549560546875, -0.038482666015625, -0.021087646484375, 0.01068115234375, 0.01342010498046875, -0.032257080078125, -0.010650634765625, 0.05157470703125, -0.01306915283203125, 0.0172271728515625, -0.0027523040771484375, -0.0491943359375, 0.047454833984375, -0.02801513671875, 0.020416259765625, 0.0223388671875, -0.0152435302734375, 0.007061004638671875, -0.00504302978515625, 0.0034275054931640625, 0.01371002197265625, 0.00908660888671875, 0.037628173828125, -0.0059661865234375, 0.003131866455078125, 0.010986328125, 0.0244140625, 0.00959014892578125, -0.004665374755859375, -0.03143310546875, -0.07421875, 0.057373046875, -0.04193115234375, -0.002918243408203125, -0.04962158203125, -0.01035308837890625, -0.0229339599609375, 0.07806396484375, -0.0203399658203125, -0.019439697265625, -0.02374267578125, -0.0006251335144042969, 0.0006346702575683594, -0.04766845703125, 0.0207977294921875, -0.0200958251953125, -0.06072998046875, -0.029754638671875, -0.01107025146484375, -0.05401611328125, -0.01250457763671875, -0.0005121231079101562, -0.054962158203125, -0.029998779296875, 0.048187255859375, -0.07501220703125, 0.048797607421875, 0.058746337890625, -0.0033969879150390625, 0.0160675048828125, -0.04107666015625, -0.0345458984375, -0.053253173828125, 0.00656890869140625, -0.032135009765625, 0.024871826171875, 0.0199127197265625, -0.0211944580078125, 0.0054168701171875, 0.0374755859375, 0.019134521484375, 0.0014104843139648438, -0.012237548828125, -0.01517486572265625, -0.01580810546875, 0.007137298583984375, -0.002536773681640625, -0.003322601318359375, -0.017578125, 0.01531219482421875, -0.01885986328125, 0.0426025390625, -0.000255584716796875, -0.0276031494140625, 0.03961181640625, -0.037933349609375, -0.053955078125, -0.0386962890625, -0.01812744140625, 0.00676727294921875, -0.028045654296875, 0.015899658203125, -0.0233154296875, -0.04412841796875, 0.051849365234375, -0.01397705078125, -0.035614013671875, 0.0091552734375, 0.06585693359375, 0.0234222412109375, -0.020660400390625, -0.02789306640625, -0.022064208984375, 0.033721923828125, -0.02825927734375, 0.0137481689453125, 0.0008921623229980469, -0.039886474609375, 0.0948486328125, -0.01342010498046875, -0.01959228515625, 0.006084442138671875, 0.00310516357421875, 0.012725830078125, -0.04412841796875, 0.01342010498046875, 0.0105133056640625, 0.00832366943359375, 0.02374267578125, -0.0142059326171875, -0.02349853515625, 0.005706787109375, 0.040191650390625, -0.0085906982421875, 0.02593994140625, -0.0261383056640625, -0.03924560546875, 0.0011577606201171875, -0.004581451416015625, 0.043701171875, 0.0540771484375, -0.0135955810546875, 0.031982421875, 0.0032901763916015625, -0.00615692138671875, -0.0019025802612304688, 0.0020389556884765625, 0.00933837890625, 0.0169830322265625, -0.01082611083984375, -0.006565093994140625, -0.0101776123046875, -0.0159454345703125, 0.07904052734375, -0.004779815673828125, -0.060333251953125, 0.039703369140625, -0.0193023681640625, -0.04510498046875, 0.040557861328125, 0.02276611328125, 0.06170654296875, 0.0272216796875, -0.005157470703125, -0.00579833984375, -0.02557373046875, 0.0026645660400390625, -0.049072265625, 0.0338134765625, 0.0015192031860351562, -0.0104217529296875, 0.00870513916015625, 0.040313720703125, -0.031829833984375, 0.0364990234375, -0.00612640380859375, -0.0074920654296875, -0.0115814208984375, 0.0450439453125, 0.0077972412109375, -0.02069091796875, 0.0101318359375, 0.0135040283203125, 0.03826904296875, -0.02618408203125, -0.047882080078125, -0.0186004638671875, 0.0237274169921875, -0.01473236083984375, 0.017852783203125, 0.031524658203125, 0.0208587646484375, -0.01267242431640625, -0.005214691162109375, -0.01861572265625, -0.01629638671875, -0.031646728515625, -0.007671356201171875, 0.0199737548828125, -0.0010976791381835938, -0.03485107421875, 0.0267486572265625, -0.04388427734375, 0.0272369384765625, 0.01062774658203125, -0.0166015625, 0.0240325927734375, 0.0232391357421875, -0.042938232421875, -0.011871337890625, 0.0099334716796875, -0.01050567626953125, -0.005901336669921875, -0.0269622802734375, -0.040313720703125, 0.031005859375, -0.01085662841796875, -0.0070343017578125, 0.003673553466796875, -0.01435089111328125, 0.053131103515625, -0.002841949462890625, 0.07452392578125, 0.01128387451171875, -0.02581787109375, -0.016082763671875, -0.06683349609375, -0.0350341796875, -0.032623291015625, -0.002666473388671875, -0.032867431640625, 0.023681640625, -0.0028934478759765625, 0.0095062255859375, -0.00420379638671875, 0.0084686279296875, 0.0224609375, 0.032440185546875, -0.00958251953125, 0.020355224609375, -0.0239715576171875, 0.027587890625, -0.0102996826171875, -0.0016756057739257812, -0.01654052734375, -0.00553131103515625, 0.005878448486328125, -0.00492095947265625, -0.00681304931640625, -0.06365966796875, -0.016326904296875, -0.00157928466796875, -0.05804443359375, 0.039337158203125, 0.05401611328125, -0.002307891845703125, 0.0078125, 0.0128021240234375, 0.009033203125, -0.0082855224609375, 0.01058197021484375, 0.022705078125, -0.0007948875427246094, 0.04534912109375, -0.01361083984375, 0.017974853515625, -0.0233306884765625, -0.029052734375, 0.0213470458984375, -0.00457000732421875, 0.0091400146484375, 0.00548553466796875, -0.00887298583984375, 0.0455322265625, 0.048828125, -0.0036220550537109375, 0.0343017578125, 0.03179931640625, 0.01035308837890625, -0.004985809326171875, 0.04144287109375, -0.0180511474609375, -0.052001953125, 0.04962158203125, 0.027618408203125, 0.0028820037841796875, 0.04583740234375, -0.0198516845703125, -0.01522064208984375, 0.0292816162109375, 0.0275726318359375, -0.046295166015625, -0.0020294189453125, 0.01788330078125, -0.006557464599609375, -0.005527496337890625, 0.0084228515625, -0.048583984375, -0.066650390625, 0.041015625, -0.035797119140625, -0.00792694091796875, 0.01299285888671875, 0.0041961669921875, 0.0002841949462890625, 0.007389068603515625, 0.10272216796875, 0.01134490966796875, -0.039306640625, -0.017974853515625, 0.0143280029296875, -0.00829315185546875, -0.01788330078125, 0.056121826171875, -0.036773681640625, 0.010498046875, -0.0232391357421875, 0.020538330078125, 0.021392822265625, -0.0247344970703125, 0.0039215087890625, -0.00946044921875, 0.0031681060791015625, 0.034820556640625, -0.0110321044921875, 0.0061798095703125, 0.007106781005859375, 0.006961822509765625, 0.040130615234375, -0.0086517333984375, 0.0028514862060546875, 0.01500701904296875, -0.06732177734375, 0.008819580078125, -0.04229736328125, 0.004360198974609375, -0.00567626953125, 0.0008759498596191406, 0.060791015625, -0.0183258056640625, -0.0157928466796875, 0.0153045654296875, 0.045745849609375, 0.021240234375, -0.01947021484375, 0.025909423828125, -0.06988525390625, -0.060516357421875, 0.0030040740966796875, -0.06121826171875, -0.03692626953125, -0.041046142578125, -0.0214996337890625, 0.1011962890625, -0.006656646728515625, 0.0037250518798828125, 0.047393798828125, 0.04095458984375, -0.04473876953125, 0.03314208984375, -0.056732177734375, 0.02056884765625, -0.0013027191162109375, 0.030914306640625, -0.0704345703125, 0.0011758804321289062, -0.02508544921875, 0.02264404296875, -0.010650634765625, 0.0008678436279296875, 0.0149688720703125, -0.0123443603515625, 0.028656005859375, 0.012603759765625, -0.005199432373046875, 0.01461029052734375, 0.013153076171875, -0.033721923828125, -0.0052642822265625, 0.006763458251953125, 0.034698486328125, -0.0689697265625, -0.004817962646484375, 0.02728271484375, 0.029052734375, 0.0277099609375, -0.003398895263671875, -0.005954742431640625, -0.051025390625, -0.00820159912109375, 0.04852294921875, -0.055328369140625, -0.001995086669921875, -0.006084442138671875, -0.03436279296875, -0.039794921875, 0.007663726806640625, -0.0252532958984375, 0.015411376953125, -0.019317626953125, 0.01230621337890625, 0.033843994140625, 0.018341064453125, 0.09033203125, -0.044708251953125, 0.0007467269897460938, -0.0173187255859375, 0.01016998291015625, 0.02545166015625, -0.005466461181640625, 0.01479339599609375, -0.03515625, 0.037994384765625, 0.016845703125, 0.01611328125, -0.034759521484375, -0.0870361328125, -0.0027923583984375, -0.0004546642303466797, 0.0212860107421875, 0.043731689453125, 0.03204345703125, 0.06365966796875, 0.113037109375, -0.029876708984375, 0.00972747802734375, 0.019256591796875, -0.0200042724609375, -0.005096435546875, 0.0206451416015625, -0.01078033447265625, 0.031280517578125, -0.034088134765625, 0.0019092559814453125, 0.0135955810546875, 0.0228729248046875, 0.012786865234375, -0.005649566650390625, 0.0263824462890625, -0.002445220947265625, -0.035736083984375, 0.051239013671875, 0.011474609375, 0.019073486328125, -0.0224761962890625, -0.01373291015625, 0.01020050048828125, 0.0099334716796875, -0.022369384765625, 0.02252197265625, 0.00565338134765625, 0.0005025863647460938, -0.01438140869140625, -0.0203704833984375, 0.05712890625, -0.0249481201171875, -0.05615234375, -0.00611114501953125, 0.0240325927734375, 0.0787353515625, 0.041290283203125, 0.015655517578125, 0.0374755859375, 0.050140380859375, -0.0205230712890625, 0.058502197265625, -0.0060882568359375, -0.0218658447265625, -0.0080718994140625, -0.0176849365234375, 0.055084228515625, 0.01324462890625, -0.082275390625, 0.002292633056640625, -0.0313720703125, -0.049407958984375, 0.012939453125, 0.0282745361328125, -0.029083251953125, 0.031494140625, -0.01270294189453125, -0.0021114349365234375, -0.00292205810546875, 0.0107879638671875, 0.0033779144287109375, -0.0389404296875, 0.01456451416015625, -0.04052734375, 0.0050506591796875, 0.006679534912109375, 0.024078369140625, 0.01442718505859375, 0.003265380859375, 0.08111572265625, -0.0369873046875, -0.007083892822265625, 0.0077972412109375, 0.0173492431640625, -0.032623291015625, -0.0198974609375, 0.038421630859375, -0.031982421875, -0.00341033935546875, 0.00643157958984375, -0.040313720703125, 0.031280517578125, 0.0221710205078125, -0.02362060546875, 0.0273590087890625, -0.0019702911376953125, -0.00742340087890625, -0.0311737060546875, 0.065673828125, 0.001636505126953125, -0.0299835205078125, -0.0222320556640625, 0.011138916015625, 0.042449951171875, 0.05767822265625, -0.020751953125, -0.00592803955078125, 0.0367431640625, -0.039886474609375, 0.0218658447265625, -0.01331329345703125, 0.035125732421875, 0.03802490234375, 0.0291748046875, -0.00732421875, -0.01337432861328125, -0.01617431640625, -0.01258087158203125, 0.0183258056640625, 0.0167999267578125, -0.0307159423828125, 0.0223388671875, 0.00914764404296875, -0.0204925537109375, -0.00472259521484375, -0.046875, -0.02166748046875, 0.01442718505859375, 0.005168914794921875, -0.004779815673828125, -0.04937744140625, -0.0239715576171875, -0.0154876708984375, -0.01953125, 0.01519775390625, 0.00928497314453125, -0.0233306884765625, -0.0032501220703125, 0.039154052734375, 0.0552978515625, -0.0049285888671875, -0.033599853515625, 0.0227203369140625, -0.045196533203125, 0.07135009765625, 0.00936126708984375, -0.00771331787109375, 0.024993896484375, 0.038360595703125, -0.0249176025390625, 0.024017333984375, 0.0032901763916015625, -0.0269012451171875, 0.0162811279296875, 0.0263519287109375, 0.0389404296875, -0.0178985595703125, -0.05792236328125, 0.029693603515625, -0.00011664628982543945, 0.07958984375, 0.0240325927734375, -0.013916015625, 0.017852783203125, 0.01105499267578125, -0.037841796875, -0.0628662109375, 0.00004750490188598633, -0.0367431640625, 0.00295257568359375, -0.038482666015625, 0.0286712646484375, 0.03765869140625, -0.044158935546875, -0.1441650390625, -0.006622314453125, -0.041107177734375, -0.04974365234375, -0.055572509765625, -0.020721435546875, 0.00037384033203125, 0.0003294944763183594, -0.0290069580078125, -0.0015201568603515625, -0.038787841796875, 0.046783447265625, 0.01230621337890625, 0.036712646484375, 0.0199432373046875, 0.0272064208984375, -0.05926513671875, 0.0007491111755371094, -0.033477783203125, 0.006427764892578125, 0.0318603515625, -0.028839111328125, 0.0191192626953125, 0.061920166015625, -0.0227203369140625, -0.0574951171875, -0.019256591796875, -0.049163818359375, 0.0009260177612304688, -0.0020236968994140625, -0.0009746551513671875, -0.0005936622619628906, 0.0301055908203125, 0.0270233154296875, 0.006145477294921875, -0.01284027099609375, -0.03350830078125, -0.016021728515625, -0.0211181640625, -0.0029659271240234375, 0.0092620849609375, -0.056121826171875, 0.01806640625, 0.01548004150390625, -0.0430908203125, 0.02679443359375, -0.0106658935546875, -0.040557861328125, 0.032470703125, 0.017608642578125, -0.0219879150390625, -0.009735107421875, -0.004638671875, 0.030609130859375, -0.029327392578125, -0.04998779296875, 0.00106048583984375, 0.01654052734375, -0.032012939453125, -0.032440185546875, -0.0012111663818359375, 0.0195465087890625, -0.0097198486328125, -0.010528564453125, 0.0205535888671875, -0.002117156982421875, 0.02972412109375, -0.00444793701171875, -0.0141448974609375, -0.0047454833984375, -0.0163116455078125, -0.0266876220703125, -0.01666259765625, 0.0693359375, -0.00768280029296875, 0.0823974609375, -0.0035266876220703125, 0.064697265625, -0.033477783203125, 0.06781005859375, 0.0242767333984375, -0.0265655517578125, 0.04754638671875, -0.0057373046875, 0.0026397705078125, 0.0129852294921875, -0.04351806640625, 0.0204925537109375, -0.04180908203125, 0.00968170166015625, -0.016143798828125, -0.0240020751953125 ]
29d8fe7e566320603e4762879611596e90354204
Wordpress Stackexchange Q: Hide Front-End Admin Bar Including 32 px Spacing I have a custom template and I inserted the following snippet to get rid of the admin bar for the page: function hide_admin_bar(){ return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); The problem is this still leaves a blank white empty bar at the top of the page with a height of 32px. Looking at core, I see this function but there is no way to disable it. I also tried overriding html { margin-top: 0 !important; } in my theme stylesheet to no avail since this is output on the page directly. function _admin_bar_bump_cb() { ?> <style type="text/css" media="screen"> html { margin-top: 32px !important; } * html body { margin-top: 32px !important; } @media screen and ( max-width: 782px ) { html { margin-top: 46px !important; } * html body { margin-top: 46px !important; } } </style> Does anyone have a clean way to completely remove the admin bar from the top of a specific template page (plus the white space)? A: You can set the display status with show_admin_bar function <?php show_admin_bar( false ); ?>
Q: Hide Front-End Admin Bar Including 32 px Spacing I have a custom template and I inserted the following snippet to get rid of the admin bar for the page: function hide_admin_bar(){ return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); The problem is this still leaves a blank white empty bar at the top of the page with a height of 32px. Looking at core, I see this function but there is no way to disable it. I also tried overriding html { margin-top: 0 !important; } in my theme stylesheet to no avail since this is output on the page directly. function _admin_bar_bump_cb() { ?> <style type="text/css" media="screen"> html { margin-top: 32px !important; } * html body { margin-top: 32px !important; } @media screen and ( max-width: 782px ) { html { margin-top: 46px !important; } * html body { margin-top: 46px !important; } } </style> Does anyone have a clean way to completely remove the admin bar from the top of a specific template page (plus the white space)? A: You can set the display status with show_admin_bar function <?php show_admin_bar( false ); ?> A: Amit Mishra's answer resolves my problem, I have put my codes in the below, thanks a lot Admin can see the admin-bar, other user can not. This solution will not leave a top blank band with 32px in height. Other answers which only remove _admin_bar_bump_cb will leave a ugly blank band on top add_action('after_setup_theme', 'remove_admin_bar_user'); function remove_admin_bar_user() { if (current_user_can('administrator') || is_admin() ) { show_admin_bar(true); }else{ show_admin_bar(false); } } A: It is kind of hackish but I found adding the below snippet inline just like WordPress core did the trick. I hate inline styles but life doesn't always produce lemonade :-S /** * Hides the admin bar on a template page. */ function hide_admin_bar() { wp_add_inline_style('admin-bar', '<style> html { margin-top: 0 !important; } </style>'); return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); A: Add This to your function.php it hide the admin bar from frontEnd add_action('after_setup_theme', 'remove_admin_bar_user'); function remove_admin_bar_user() { if (current_user_can('administrator') || is_admin() ) { show_admin_bar(false); } } A: From version 3.1.0, WordPress decided to add a toolbar for logged in users on the display side that's about the site's theme. And add default admin bar callback before </head>: <style type="text/css" media="screen"> html { margin-top: 32px !important; } * html body { margin-top: 32px !important; } @media screen and ( max-width: 782px ) { html { margin-top: 46px !important; } * html body { margin-top: 46px !important; } } </style> To remove it, you can try: add_action('get_header', 'remove_admin_login_header'); function remove_admin_login_header() { remove_action('wp_head', '_admin_bar_bump_cb'); } A: I found this function which gets rid of the 32px 'bump' left over after using "show_admin_bar(false)" remove_action('wp_head', '_admin_bar_bump_cb'); That seems to do the job!
wordpress
{ "language": "en", "length": 455, "provenance": "stackexchange_00019.jsonl.gz:447721", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157360" }
[ 0.03167724609375, -0.0033016204833984375, 0.007701873779296875, -0.0223541259765625, -0.0013780593872070312, -0.018463134765625, 0.0110015869140625, -0.0333251953125, 0.0007419586181640625, 0.0192413330078125, 0.003208160400390625, -0.039398193359375, 0.01385498046875, -0.046600341796875, -0.01177215576171875, -0.0225067138671875, 0.0361328125, 0.01531982421875, 0.043365478515625, 0.010345458984375, 0.00901031494140625, 0.0292510986328125, -0.01076507568359375, 0.07305908203125, -0.02813720703125, -0.04803466796875, 0.1221923828125, 0.0018968582153320312, -0.0192413330078125, -0.034423828125, 0.00583648681640625, 0.002643585205078125, -0.0096588134765625, 0.00926971435546875, 0.0312347412109375, 0.01678466796875, -0.033233642578125, 0.04119873046875, 0.047760009765625, -0.035675048828125, 0.005340576171875, 0.0151824951171875, -0.00975799560546875, 0.0133819580078125, -0.0164642333984375, -0.048492431640625, -0.000007450580596923828, -0.03228759765625, 0.0143280029296875, -0.0460205078125, 0.01432037353515625, -0.020843505859375, 0.040802001953125, -0.034332275390625, -0.0248565673828125, 0.006134033203125, 0.0014591217041015625, -0.0299224853515625, 0.02801513671875, 0.06866455078125, -0.00919342041015625, -0.0022830963134765625, -0.01145172119140625, -0.0933837890625, -0.00963592529296875, 0.008453369140625, 0.0103759765625, 0.01476287841796875, -0.059356689453125, -0.031707763671875, 0.0175018310546875, -0.032470703125, 0.0173187255859375, 0.01364898681640625, -0.04437255859375, -0.04107666015625, 0.0028533935546875, 0.00811004638671875, 0.0423583984375, -0.028717041015625, 0.0237884521484375, 0.036590576171875, -0.036895751953125, -0.03399658203125, 0.0292205810546875, -0.0075531005859375, -0.01120758056640625, -0.023345947265625, -0.0091552734375, -0.0144805908203125, -0.01641845703125, -0.0341796875, 0.0008902549743652344, 0.001068115234375, -0.0037841796875, -0.0406494140625, 0.038726806640625, 0.0140380859375, 0.00011557340621948242, -0.055755615234375, 0.0053558349609375, -0.032745361328125, -0.062408447265625, 0.0191650390625, -0.019195556640625, 0.0791015625, 0.0165863037109375, -0.0131378173828125, 0.0030498504638671875, -0.0067596435546875, 0.02374267578125, -0.01427459716796875, -0.05926513671875, -0.0101470947265625, -0.04327392578125, 0.026214599609375, -0.0721435546875, -0.0248565673828125, -0.007030487060546875, 0.0008153915405273438, -0.003917694091796875, 0.0017299652099609375, 0.03204345703125, 0.01099395751953125, 0.01312255859375, 0.022918701171875, -0.0411376953125, -0.0294342041015625, -0.0258636474609375, 0.01207733154296875, -0.042938232421875, 0.0160369873046875, 0.06951904296875, 0.03302001953125, 0.0271148681640625, -0.01514434814453125, -0.00027251243591308594, -0.0110321044921875, 0.01666259765625, 0.0007300376892089844, 0.01082611083984375, -0.0140228271484375, 0.0257568359375, 0.01229095458984375, -0.01983642578125, 0.00768280029296875, 0.016937255859375, 0.0095977783203125, -0.001132965087890625, -0.058868408203125, 0.004467010498046875, -0.02490234375, 0.048492431640625, 0.0175323486328125, -0.0270233154296875, 0.058563232421875, 0.029144287109375, 0.0167388916015625, -0.09149169921875, 0.0011243820190429688, 0.0082550048828125, 0.0063934326171875, 0.0110931396484375, -0.033660888671875, -0.036529541015625, -0.0114288330078125, -0.0237884521484375, 0.0018062591552734375, 0.0258941650390625, 0.01296234130859375, 0.007724761962890625, -0.00551605224609375, -0.01309967041015625, 0.0188140869140625, 0.0033512115478515625, 0.0169525146484375, 0.0227508544921875, 0.021026611328125, 0.0199432373046875, 0.0169219970703125, -0.0179290771484375, -0.036651611328125, 0.049835205078125, -0.0224151611328125, -0.041961669921875, 0.03839111328125, 0.01263427734375, 0.038116455078125, -0.007419586181640625, 0.0013456344604492188, 0.047271728515625, 0.0222015380859375, -0.00797271728515625, -0.016143798828125, -0.0095672607421875, -0.013763427734375, -0.032867431640625, -0.005828857421875, -0.015625, 0.0289306640625, -0.01004791259765625, -0.003467559814453125, 0.0157012939453125, 0.0185546875, -0.0012025833129882812, 0.006763458251953125, -0.00875091552734375, 0.0250091552734375, -0.00934600830078125, 0.01373291015625, 0.00042891502380371094, -0.011444091796875, -0.019683837890625, 0.0012369155883789062, -0.00926971435546875, -0.0177764892578125, 0.00341033935546875, 0.05596923828125, -0.0113983154296875, 0.06463623046875, -0.01459503173828125, -0.0168304443359375, -0.003215789794921875, 0.00323486328125, 0.028472900390625, -0.003162384033203125, -0.0262451171875, -0.0166015625, 0.020355224609375, -0.02703857421875, -0.00013768672943115234, 0.07489013671875, 0.030426025390625, 0.03973388671875, -0.0338134765625, -0.0228424072265625, -0.01116943359375, -0.04534912109375, -0.004314422607421875, 0.048187255859375, 0.0262908935546875, 0.042327880859375, -0.004413604736328125, 0.025634765625, 0.056488037109375, -0.060760498046875, -0.021636962890625, 0.0259857177734375, -0.021697998046875, -0.0206146240234375, -0.0198516845703125, -0.0275115966796875, 0.040435791015625, -0.06610107421875, -0.004573822021484375, 0.048492431640625, -0.0236968994140625, -0.027374267578125, -0.0250396728515625, 0.031585693359375, 0.004093170166015625, 0.0181427001953125, 0.00444793701171875, -0.004070281982421875, -0.0187225341796875, 0.0252685546875, 0.01393890380859375, 0.028167724609375, -0.035369873046875, -0.00286865234375, 0.03912353515625, 0.0802001953125, -0.0018291473388671875, -0.015167236328125, -0.01140594482421875, -0.06390380859375, -0.0372314453125, 0.0179901123046875, 0.0023975372314453125, -0.042083740234375, 0.01065826416015625, 0.0282135009765625, -0.0167999267578125, -0.01090240478515625, 0.02227783203125, -0.002490997314453125, -0.006664276123046875, 0.0266876220703125, 0.0179595947265625, -0.005237579345703125, -0.007022857666015625, 0.03118896484375, -0.030670166015625, 0.0654296875, -0.022705078125, -0.0185089111328125, 0.00927734375, -0.035614013671875, 0.056793212890625, -0.015960693359375, 0.08892822265625, 0.0814208984375, -0.025970458984375, 0.049774169921875, 0.004863739013671875, 0.017822265625, -0.0031757354736328125, 0.0198211669921875, 0.0166015625, -0.0201873779296875, 0.025726318359375, 0.036376953125, 0.036224365234375, 0.004566192626953125, 0.0175323486328125, -0.027099609375, -0.019989013671875, 0.033050537109375, -0.0290679931640625, 0.0180206298828125, -0.026031494140625, -0.044464111328125, -0.034698486328125, 0.031707763671875, -0.032745361328125, 0.0189971923828125, 0.04852294921875, 0.0036773681640625, 0.014678955078125, 0.0046539306640625, -0.043365478515625, -0.01434326171875, -0.03839111328125, -0.045928955078125, -0.01873779296875, -0.0189361572265625, -0.005023956298828125, 0.0927734375, -0.0119781494140625, -0.0731201171875, -0.0302734375, -0.027496337890625, 0.01505279541015625, 0.03955078125, 0.004543304443359375, -0.01490020751953125, -0.0225067138671875, 0.0159759521484375, -0.062744140625, -0.0303192138671875, 0.038116455078125, -0.033721923828125, -0.0221710205078125, -0.053497314453125, -0.0250396728515625, 0.05804443359375, 0.0239105224609375, -0.0506591796875, 0.01904296875, -0.059417724609375, -0.036834716796875, -0.004535675048828125, -0.04229736328125, 0.022125244140625, 0.041900634765625, -0.0161285400390625, 0.0019683837890625, -0.0038890838623046875, 0.0211639404296875, 0.008453369140625, 0.0267791748046875, -0.012786865234375, -0.0252532958984375, -0.0060272216796875, 0.028778076171875, -0.0212860107421875, 0.008514404296875, -0.04620361328125, 0.041595458984375, 0.01727294921875, -0.0186309814453125, 0.0230865478515625, -0.03814697265625, 0.032501220703125, -0.03131103515625, 0.046295166015625, 0.040069580078125, 0.048553466796875, -0.016448974609375, -0.041473388671875, -0.0006718635559082031, 0.09375, -0.0321044921875, -0.0187530517578125, 0.00013828277587890625, 0.012725830078125, -0.041290283203125, -0.0004107952117919922, -0.056182861328125, 0.005680084228515625, -0.12322998046875, -0.0003380775451660156, -0.0193328857421875, -0.03607177734375, -0.01885986328125, 0.0269317626953125, -0.068603515625, -0.04736328125, 0.0260772705078125, 0.0171051025390625, 0.005016326904296875, 0.010162353515625, 0.0019588470458984375, -0.01215362548828125, -0.005352020263671875, -0.005481719970703125, -0.0114898681640625, -0.007720947265625, -0.0031070709228515625, -0.0002065896987915039, -0.0095062255859375, 0.0165252685546875, -0.03131103515625, 0.00406646728515625, -0.0198822021484375, -0.0168609619140625, -0.01079559326171875, 0.038543701171875, -0.017791748046875, -0.03955078125, -0.0272064208984375, -0.03564453125, -0.02886962890625, -0.016082763671875, -0.032135009765625, -0.0210418701171875, -0.003749847412109375, -0.043487548828125, 0.04791259765625, -0.0277557373046875, -0.06219482421875, -0.037506103515625, -0.02288818359375, -0.00835418701171875, -0.00933074951171875, 0.00688934326171875, -0.019500732421875, -0.05426025390625, -0.00447845458984375, -0.006664276123046875, -0.03363037109375, 0.0240478515625, 0.0146942138671875, 0.0267791748046875, -0.0129852294921875, -0.0141448974609375, -0.0097808837890625, 0.049896240234375, 0.01483917236328125, 0.0130767822265625, -0.00031113624572753906, -0.062347412109375, 0.07275390625, 0.030120849609375, 0.01422119140625, 0.00960540771484375, 0.054412841796875, 0.0107269287109375, -0.01300811767578125, 0.02545166015625, 0.016204833984375, -0.061737060546875, 0.00911712646484375, -0.01334381103515625, 0.0024662017822265625, -0.046356201171875, -0.0012502670288085938, 0.02691650390625, -0.0195770263671875, -0.0155487060546875, -0.0010223388671875, -0.008392333984375, -0.005382537841796875, 0.03778076171875, 0.0255889892578125, -0.00560760498046875, -0.00510406494140625, 0.0161285400390625, -0.0070648193359375, 0.018768310546875, 0.03277587890625, -0.03326416015625, 0.044525146484375, -0.00563812255859375, -0.03363037109375, 0.00807952880859375, 0.0005764961242675781, 0.0517578125, 0.01361083984375, -0.025970458984375, -0.0245361328125, -0.0024089813232421875, 0.037384033203125, -0.0153045654296875, 0.0267181396484375, 0.03759765625, -0.003124237060546875, 0.0016841888427734375, -0.0125885009765625, 0.0234527587890625, -0.0288543701171875, -0.0294036865234375, 0.028839111328125, 0.03857421875, -0.013916015625, 0.0103912353515625, 0.053070068359375, 0.0273284912109375, 0.0190277099609375, -0.01611328125, 0.01617431640625, -0.02545166015625, 0.032745361328125, 0.0017995834350585938, -0.008758544921875, 0.041290283203125, -0.016754150390625, 0.014404296875, -0.01519012451171875, -0.017547607421875, 0.00897216796875, 0.03350830078125, 0.0316162109375, 0.0187835693359375, -0.0181121826171875, -0.013458251953125, 0.0011310577392578125, 0.0804443359375, 0.0246429443359375, -0.053466796875, -0.016754150390625, 0.002590179443359375, 0.03021240234375, -0.052978515625, -0.01824951171875, 0.01470184326171875, -0.056304931640625, 0.005584716796875, 0.0164031982421875, -0.0250244140625, 0.002956390380859375, 0.0003292560577392578, -0.027862548828125, -0.0246429443359375, -0.0249481201171875, -0.06494140625, -0.0216827392578125, -0.00997161865234375, -0.0032291412353515625, 0.0262908935546875, -0.03106689453125, 0.022003173828125, -0.031219482421875, 0.01541900634765625, -0.0211639404296875, 0.00991058349609375, 0.04510498046875, 0.02471923828125, -0.08587646484375, 0.02398681640625, -0.07940673828125, -0.00792694091796875, -0.0916748046875, -0.01751708984375, -0.0621337890625, 0.02532958984375, 0.0255889892578125, 0.03173828125, -0.00554656982421875, -0.03753662109375, -0.032073974609375, 0.025054931640625, 0.045013427734375, 0.1046142578125, -0.0186309814453125, 0.037872314453125, -0.0240325927734375, 0.00022399425506591797, -0.0142822265625, 0.01332855224609375, 0.0152587890625, -0.00992584228515625, 0.0294036865234375, 0.02838134765625, -0.021240234375, -0.023651123046875, -0.004596710205078125, -0.061553955078125, 0.01409912109375, -0.0183563232421875, 0.040771484375, 0.01433563232421875, 0.0117645263671875, -0.0301971435546875, -0.015045166015625, -0.035858154296875, 0.03302001953125, -0.03643798828125, 0.0137939453125, 0.0416259765625, -0.0147705078125, -0.0186004638671875, 0.003673553466796875, 0.00157928466796875, 0.0347900390625, -0.018890380859375, -0.041656494140625, 0.037567138671875, 0.07659912109375, 0.0108795166015625, 0.047027587890625, 0.0249176025390625, 0.007228851318359375, 0.01367950439453125, 0.00769805908203125, -0.01361846923828125, -0.012359619140625, 0.046722412109375, 0.0214080810546875, 0.0242919921875, 0.05670166015625, -0.010955810546875, 0.0236358642578125, 0.0836181640625, 0.07196044921875, -0.09759521484375, 0.00965118408203125, 0.02008056640625, -0.010589599609375, 0.0548095703125, -0.017242431640625, -0.0279998779296875, -0.0928955078125, 0.06427001953125, -0.020965576171875, 0.0013151168823242188, 0.0096282958984375, -0.028228759765625, -0.0269317626953125, -0.01336669921875, 0.004810333251953125, 0.017242431640625, 0.006565093994140625, -0.006351470947265625, 0.0003135204315185547, 0.0010042190551757812, 0.0031070709228515625, 0.02685546875, -0.0214691162109375, -0.016571044921875, -0.0389404296875, -0.007442474365234375, -0.00995635986328125, -0.028076171875, 0.0146484375, -0.01087188720703125, -0.017669677734375, 0.056121826171875, -0.03509521484375, 0.028076171875, 0.01212310791015625, -0.0199127197265625, -0.0050048828125, -0.0222015380859375, 0.00994873046875, -0.020111083984375, -0.0216217041015625, 0.0186309814453125, -0.0091705322265625, -0.0389404296875, -0.00302886962890625, 0.0246734619140625, 0.09454345703125, -0.01485443115234375, -0.03076171875, 0.02606201171875, 0.0215301513671875, -0.0185546875, -0.01006317138671875, 0.058380126953125, -0.047515869140625, 0.019622802734375, 0.00545501708984375, 0.015960693359375, -0.0136871337890625, -0.0080413818359375, -0.03680419921875, 0.059600830078125, -0.029815673828125, 0.023040771484375, 0.049774169921875, 0.01027679443359375, -0.04156494140625, -0.0193634033203125, -0.012786865234375, 0.03375244140625, 0.02203369140625, -0.005084991455078125, -0.02392578125, -0.01038360595703125, -0.01513671875, 0.01514434814453125, 0.006511688232421875, -0.01239776611328125, 0.00955963134765625, 0.0045013427734375, 0.0362548828125, 0.01416778564453125, 0.0013265609741210938, 0.0276031494140625, -0.0201568603515625, 0.026275634765625, -0.0162353515625, -0.055450439453125, 0.0217132568359375, -0.065185546875, -0.05206298828125, 0.00545501708984375, 0.01555633544921875, 0.023193359375, 0.042572021484375, 0.0015840530395507812, -0.0287017822265625, 0.0135955810546875, 0.043426513671875, -0.08526611328125, 0.0014104843139648438, 0.0194091796875, 0.0110931396484375, -0.018707275390625, 0.01227569580078125, -0.03265380859375, 0.038848876953125, -0.0030345916748046875, -0.004192352294921875, -0.0140380859375, 0.01470947265625, -0.023101806640625, -0.0233306884765625, -0.004177093505859375, 0.031982421875, -0.0467529296875, 0.023406982421875, 0.0005092620849609375, 0.03436279296875, -0.030548095703125, -0.0193939208984375, -0.00010383129119873047, 0.01085662841796875, -0.00966644287109375, -0.03387451171875, 0.00860595703125, -0.0130157470703125, -0.019073486328125, -0.005214691162109375, -0.028289794921875, 0.01328277587890625, 0.033477783203125, -0.0229949951171875, -0.0271453857421875, 0.00787353515625, 0.01313018798828125, -0.0012769699096679688, 0.00750732421875, 0.02044677734375, -0.0186920166015625, -0.027313232421875, -0.0261383056640625, 0.0021572113037109375, 0.050872802734375, 0.06103515625, 0.0006165504455566406, -0.0009570121765136719, -0.02935791015625, -0.02862548828125, 0.0278167724609375, 0.002056121826171875, 0.02764892578125, -0.04595947265625, 0.0196075439453125, -0.0343017578125, 0.0259857177734375, -0.00783538818359375, -0.0003528594970703125, 0.0218353271484375, 0.0216522216796875, -0.021820068359375, -0.0234375, 0.0298614501953125, -0.018463134765625, 0.0092010498046875, -0.0296630859375, 0.0138702392578125, 0.004940032958984375, 0.004791259765625, 0.0036830902099609375, 0.040130615234375, 0.01148223876953125, 0.01202392578125, 0.01079559326171875, 0.0159454345703125, -0.0158233642578125, -0.01318359375, -0.01465606689453125, -0.00653839111328125, 0.03558349609375, -0.036376953125, -0.039886474609375, 0.0182037353515625, -0.02392578125, 0.01389312744140625, 0.039215087890625, -0.005634307861328125, 0.0087738037109375, -0.005588531494140625, 0.0287933349609375, -0.037841796875, -0.035247802734375, 0.030181884765625, -0.00766754150390625, 0.0017185211181640625, 0.030548095703125, -0.028411865234375, -0.0283203125, -0.0310516357421875, 0.04296875, 0.0100250244140625, 0.04754638671875, -0.007080078125, 0.029449462890625, -0.033050537109375, 0.0167694091796875, -0.04345703125, -0.00914764404296875, -0.0243072509765625, -0.003997802734375, 0.005031585693359375, 0.00830078125, -0.049072265625, 0.0159149169921875, 0.061004638671875, -0.0390625, 0.045928955078125, 0.031524658203125, -0.01490020751953125, -0.07843017578125, 0.01715087890625, -0.006183624267578125, -0.024322509765625, 0.00859832763671875, 0.034698486328125, 0.01039886474609375, 0.0295562744140625, -0.0303955078125, 0.026458740234375, 0.031951904296875, -0.0118255615234375, 0.026824951171875, -0.0284576416015625, 0.06298828125, 0.045013427734375, -0.026031494140625, 0.018829345703125, -0.0171356201171875, -0.017669677734375, 0.0144500732421875, 0.0121307373046875, -0.0116424560546875, 0.0006613731384277344, 0.029510498046875, 0.0005249977111816406, 0.007495880126953125, -0.00621795654296875, -0.041107177734375, -0.009490966796875, 0.052886962890625, -0.0110931396484375, -0.03985595703125, 0.00368499755859375, -0.019744873046875, 0.004924774169921875, -0.021697998046875, 0.03375244140625, -0.0032215118408203125, -0.07000732421875, -0.132568359375, 0.05609130859375, 0.037078857421875, 0.006542205810546875, -0.052886962890625, 0.0391845703125, -0.048187255859375, 0.0733642578125, 0.00833892822265625, 0.06378173828125, -0.007061004638671875, 0.0264739990234375, -0.037109375, -0.00489044189453125, -0.016387939453125, 0.00885772705078125, -0.018585205078125, -0.0293121337890625, -0.007534027099609375, 0.0168914794921875, 0.0268402099609375, -0.049530029296875, -0.034332275390625, 0.003627777099609375, -0.040863037109375, -0.0160064697265625, -0.01190948486328125, 0.027923583984375, 0.00890350341796875, -0.023162841796875, -0.001102447509765625, -0.00946044921875, 0.00868988037109375, -0.05108642578125, 0.0087127685546875, 0.01215362548828125, -0.028167724609375, -0.00789642333984375, -0.048797607421875, 0.0239105224609375, -0.020263671875, 0.0236968994140625, 0.0068359375, -0.03057861328125, 0.0567626953125, 0.03326416015625, -0.042266845703125, 0.020751953125, 0.0150146484375, 0.006473541259765625, -0.0059051513671875, 0.04998779296875, -0.0181427001953125, -0.014190673828125, -0.01071929931640625, -0.005970001220703125, -0.0236053466796875, -0.027679443359375, 0.006206512451171875, 0.0091094970703125, 0.030120849609375, -0.0098419189453125, -0.0067138671875, 0.02947998046875, -0.025054931640625, -0.0178375244140625, 0.00937652587890625, -0.021209716796875, -0.009765625, 0.056365966796875, 0.06280517578125, 0.02337646484375, -0.021728515625, -0.033050537109375, -0.07330322265625, 0.00733184814453125, -0.045379638671875, 0.01294708251953125, -0.10980224609375, -0.0306854248046875, 0.055389404296875, -0.012939453125, 0.019317626953125, -0.00377655029296875, -0.0078582763671875, -0.005184173583984375, 0.0018987655639648438, -0.00273895263671875, -0.031890869140625, -0.00417327880859375, 0.0301361083984375, -0.030303955078125, -0.04193115234375, -0.017791748046875, 0.01287078857421875, -0.018890380859375, -0.055999755859375, 0.002384185791015625, 0.01006317138671875, -0.050323486328125, 0.01433563232421875, -0.00759124755859375, 0.0211639404296875, -0.035369873046875, -0.013458251953125, 0.01342010498046875, 0.008941650390625, -0.0085601806640625, 0.006168365478515625, -0.0234222412109375, 0.05633544921875, 0.000797271728515625, 0.005565643310546875, -0.0175323486328125, 0.07293701171875, -0.008056640625, 0.0557861328125, 0.0113677978515625, -0.0223541259765625, 0.044708251953125, -0.035888671875, 0.01018524169921875, 0.016632080078125, 0.04901123046875, -0.050018310546875, 0.042877197265625, -0.034820556640625, 0.052032470703125, 0.0295867919921875 ]
bf291d881253534f8a22eacfe5933020c4c0e98f
Wordpress Stackexchange Q: Share same domain for wp-admin but for different website I have site like * *http://www.foo.com *http://www.bar.com And I've a wildcard SSL cert *.example.com, instead of buying two SSL certs for the above two domains, can I re-use my existing wildcard SSL cert for wp-admin? e.g. * *http://foo.example.com *http://bar.example.com Only for wp-admin for better security, is it possible? A: Yes, you can do this and it does not matter if plugins are different for the two sites, as you are not not using the same tables or anything. Still, if you use plugins that are badly written and build resource urls on top the home url, these will have issues (404 errors mostly).
Q: Share same domain for wp-admin but for different website I have site like * *http://www.foo.com *http://www.bar.com And I've a wildcard SSL cert *.example.com, instead of buying two SSL certs for the above two domains, can I re-use my existing wildcard SSL cert for wp-admin? e.g. * *http://foo.example.com *http://bar.example.com Only for wp-admin for better security, is it possible? A: Yes, you can do this and it does not matter if plugins are different for the two sites, as you are not not using the same tables or anything. Still, if you use plugins that are badly written and build resource urls on top the home url, these will have issues (404 errors mostly). A: You don't say if is a multisite installation or two separate stand-alone ones. I'm going to suppose it isn't multisite because if so, the answer is trivial. In the other case, there isn't any problem. You have to configure ssl as usual in your apache vhost or nginx for each domain with your wilcard certificate. Aditionally, you can use the Wordpress HTTPS plugin to enable SSL only for wp-admin in each site (note that this plugin works in multisite also) You'll have to use the HTTPS domain alias plugin, if you don't want to install multisite. A: if they use the same plugins I see no problem. you can use up even as symbolic link, getting simpler to maintain and update A: Try the beauty of multisite feature of wordpress. Here are some tutorial links: * *Create a Network *Wordpress Multisite *Wordpress Multisite Guide *Wordpress MU and Multisite *Beginner Guide Wordpress Multisite So, guess your main site is http://example.com. Create two subsites: * *http://foo.example.com *http://bar.example.com As you have wildcard SSL so both subsites should be accessed with https:// Now, use a domain mapping plugin. WPMU DEV has a popular one. With that, you can map http://foo.example.com to http://foo.com and http://bar.example.com to http://bar.com And you can access their admin by https://example.com/wp-admin or https://foo.example.com/wp-admin etc. A: Setting up MultiSite in one main domain, that you have SSL, and then use the other domain as custom sunrise domain settings. You have to setup the .htaccess or vhost(for NGiNX) though. But both site will need to have almost same type domain or plugin. Its one way. Other will be a bit complex one. I would setup two separate WordPress in two separate subdomain. Then from the vhost file I will point other root domain also to that same sub domain's root folder. You will need some tweaking in vhost or .htaccess to dynamically rewriting domain, and also hardcode home and home directory url from wp-config.php. Its far more complex process, might need some trial and error testing. BTW I hope you know you could even buy a SSL certificate as low at just $10 USD, and if you use service like CloudFlare, now even in their free package they provide free SSL support. Though its not actually true SSL, but might serve purpose for normal low-end need. A: To enable the Network Setup menu item, you must first define multisite in the wp-config.php file. Open up wp-config.php and add this line above where it says /* That's all, stop editing! Happy blogging. */. If it doesn't say that anywhere, then add the line somewhere above the first line that begins with require or include: /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); You will need to refresh your browser to continue.
wordpress
{ "language": "en", "length": 570, "provenance": "stackexchange_00019.jsonl.gz:447726", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157385" }
[ 0.0276336669921875, -0.00504302978515625, -0.0116729736328125, -0.031494140625, 0.004268646240234375, -0.028564453125, 0.023284912109375, -0.004215240478515625, -0.03515625, 0.004161834716796875, 0.037078857421875, 0.0013208389282226562, -0.0107421875, -0.045745849609375, 0.0244293212890625, -0.01221466064453125, -0.0157318115234375, 0.01409912109375, 0.007442474365234375, -0.02716064453125, 0.0089263916015625, -0.0295257568359375, -0.03057861328125, -0.01491546630859375, 0.032012939453125, -0.04205322265625, 0.057464599609375, 0.00832366943359375, 0.00917816162109375, 0.005603790283203125, 0.0245208740234375, -0.0421142578125, 0.018585205078125, 0.0283660888671875, -0.031951904296875, -0.03021240234375, -0.004703521728515625, 0.0151824951171875, -0.00595855712890625, 0.01471710205078125, 0.01558685302734375, 0.0012454986572265625, 0.07745361328125, 0.060821533203125, 0.0272064208984375, -0.056732177734375, 0.034332275390625, -0.0687255859375, 0.028106689453125, -0.0032901763916015625, 0.008270263671875, -0.020843505859375, 0.0207061767578125, -0.0005054473876953125, -0.02813720703125, -0.017547607421875, 0.006603240966796875, -0.03887939453125, 0.029571533203125, -0.0039825439453125, -0.0294647216796875, -0.0186767578125, 0.0225372314453125, -0.015899658203125, -0.02410888671875, 0.004177093505859375, 0.0045928955078125, -0.00949859619140625, -0.030059814453125, -0.020355224609375, 0.0258636474609375, -0.0151824951171875, -0.005748748779296875, -0.0016870498657226562, 0.005939483642578125, -0.019073486328125, 0.01349639892578125, 0.0026302337646484375, -0.00637054443359375, 0.023345947265625, -0.0004930496215820312, -0.018768310546875, -0.0222320556640625, -0.039581298828125, 0.0181884765625, 0.0016393661499023438, -0.012786865234375, -0.006694793701171875, 0.00031113624572753906, -0.015167236328125, -0.016021728515625, -0.0217437744140625, 0.0009293556213378906, 0.01358795166015625, -0.0018024444580078125, -0.036041259765625, 0.01800537109375, 0.035003662109375, -0.0009546279907226562, -0.0086822509765625, -0.034759521484375, -0.02093505859375, -0.054229736328125, -0.0190582275390625, -0.0219268798828125, 0.0333251953125, 0.0224761962890625, 0.049560546875, 0.024810791015625, 0.0171356201171875, 0.002109527587890625, 0.0029582977294921875, -0.0047760009765625, -0.055084228515625, 0.00927734375, 0.037567138671875, -0.0027561187744140625, 0.0230255126953125, 0.0005822181701660156, 0.019012451171875, -0.01508331298828125, 0.013946533203125, 0.00998687744140625, 0.01308441162109375, 0.004375457763671875, 0.007320404052734375, 0.004039764404296875, -0.0309600830078125, -0.00396728515625, 0.01230621337890625, -0.016204833984375, -0.0005650520324707031, 0.0289459228515625, 0.042022705078125, 0.01430511474609375, -0.008636474609375, 0.043548583984375, 0.02703857421875, 0.0006403923034667969, -0.0275421142578125, 0.01125335693359375, 0.0104827880859375, 0.0047760009765625, -0.027130126953125, 0.0017290115356445312, 0.025634765625, 0.0016002655029296875, 0.0006465911865234375, 0.001369476318359375, -0.02239990234375, -0.0037384033203125, -0.028076171875, 0.0445556640625, 0.013092041015625, 0.0015621185302734375, 0.0033893585205078125, 0.02880859375, -0.016937255859375, -0.0210723876953125, -0.033447265625, -0.018280029296875, -0.003986358642578125, 0.025848388671875, -0.0283660888671875, -0.0309906005859375, 0.004955291748046875, -0.01207733154296875, -0.004261016845703125, 0.02490234375, -0.0228424072265625, 0.0460205078125, -0.0158843994140625, -0.01629638671875, 0.0161895751953125, 0.019561767578125, 0.0264129638671875, 0.0081329345703125, 0.0185394287109375, 0.0164031982421875, 0.02490234375, -0.0123138427734375, -0.024505615234375, 0.0653076171875, -0.0275421142578125, -0.0247039794921875, -0.03857421875, -0.0084991455078125, 0.01242828369140625, 0.035888671875, 0.0090179443359375, 0.014404296875, -0.00868988037109375, 0.0187225341796875, 0.0032176971435546875, -0.0361328125, -0.0170135498046875, -0.0293426513671875, 0.0266265869140625, -0.037353515625, -0.0005745887756347656, -0.003631591796875, -0.01861572265625, 0.004245758056640625, 0.028656005859375, 0.05548095703125, -0.020751953125, 0.01318359375, -0.00991058349609375, 0.0240478515625, 0.02911376953125, -0.01422882080078125, 0.0016450881958007812, 0.0054168701171875, -0.0274658203125, -0.02618408203125, 0.0027217864990234375, 0.00899505615234375, 0.027923583984375, 0.01947021484375, 0.03411865234375, 0.040985107421875, -0.029022216796875, 0.0044097900390625, -0.015869140625, -0.002819061279296875, 0.0178375244140625, -0.029205322265625, 0.0112457275390625, 0.002838134765625, 0.0026073455810546875, -0.0081634521484375, 0.0377197265625, 0.0218658447265625, 0.0555419921875, -0.01654052734375, -0.0014162063598632812, -0.00014412403106689453, -0.03570556640625, 0.0141448974609375, 0.0171051025390625, 0.053619384765625, -0.0117645263671875, -0.010650634765625, -0.036041259765625, 0.029937744140625, -0.08050537109375, 0.0107879638671875, -0.0302734375, -0.00449371337890625, 0.0037441253662109375, -0.00476837158203125, -0.0177154541015625, 0.03533935546875, -0.06829833984375, -0.0032291412353515625, 0.054718017578125, -0.0127105712890625, 0.0067291259765625, -0.042510986328125, -0.00223541259765625, 0.0129241943359375, -0.029571533203125, -0.0157928466796875, -0.01023101806640625, -0.005519866943359375, -0.0198822021484375, 0.030731201171875, 0.0247802734375, 0.0163726806640625, -0.0390625, -0.000980377197265625, 0.00142669677734375, 0.0035533905029296875, 0.0302276611328125, 0.04486083984375, -0.00524139404296875, -0.045196533203125, -0.0159912109375, 0.040924072265625, 0.032073974609375, -0.01425933837890625, 0.0196380615234375, -0.0711669921875, -0.0208587646484375, -0.02734375, -0.039764404296875, 0.012298583984375, 0.040985107421875, 0.054107666015625, -0.0183563232421875, 0.003978729248046875, -0.005489349365234375, -0.0286865234375, 0.06671142578125, 0.00876617431640625, -0.05657958984375, 0.013427734375, -0.03582763671875, 0.0321044921875, -0.005413055419921875, 0.056732177734375, 0.0679931640625, 0.022735595703125, -0.002635955810546875, -0.003772735595703125, 0.01218414306640625, -0.00341796875, -0.0201416015625, -0.034454345703125, 0.003078460693359375, -0.0810546875, -0.022064208984375, 0.03839111328125, -0.0000661611557006836, 0.0438232421875, 0.0026760101318359375, 0.00691986083984375, 0.030670166015625, -0.03314208984375, -0.056976318359375, -0.043670654296875, 0.0160064697265625, 0.02838134765625, 0.0175628662109375, 0.03094482421875, -0.01410675048828125, 0.0170440673828125, 0.0258026123046875, 0.045074462890625, -0.01494598388671875, -0.060150146484375, -0.048553466796875, -0.091064453125, -0.0716552734375, -0.0199127197265625, -0.0022525787353515625, 0.0144500732421875, -0.0008535385131835938, -0.005157470703125, -0.0193023681640625, -0.0064239501953125, 0.047637939453125, 0.00786590576171875, -0.0228271484375, 0.00936126708984375, -0.040313720703125, -0.021331787109375, 0.012603759765625, 0.04180908203125, 0.014739990234375, -0.0032596588134765625, 0.0032482147216796875, -0.0006856918334960938, -0.01375579833984375, 0.03369140625, -0.08197021484375, -0.027374267578125, 0.022369384765625, -0.00420379638671875, -0.03533935546875, -0.01378631591796875, 0.0007224082946777344, -0.03228759765625, -0.00601959228515625, 0.0191192626953125, -0.02294921875, 0.0155181884765625, -0.021820068359375, -0.004009246826171875, -0.00614166259765625, 0.01087188720703125, -0.035125732421875, 0.0626220703125, -0.00045037269592285156, 0.01531982421875, -0.0187225341796875, -0.033233642578125, -0.0367431640625, -0.01140594482421875, -0.039764404296875, -0.0084991455078125, -0.01003265380859375, 0.02593994140625, 0.01171112060546875, -0.0799560546875, 0.044158935546875, -0.0435791015625, 0.01267242431640625, -0.06689453125, -0.033172607421875, -0.008392333984375, 0.1324462890625, -0.0791015625, -0.0131683349609375, 0.0001538991928100586, 0.0465087890625, -0.026397705078125, -0.05670166015625, -0.0301361083984375, -0.0288238525390625, -0.0787353515625, -0.018798828125, -0.0261383056640625, -0.037384033203125, 0.0015707015991210938, -0.030609130859375, -0.042724609375, -0.03759765625, 0.049407958984375, -0.034637451171875, 0.00815582275390625, 0.01325225830078125, 0.03253173828125, -0.0618896484375, -0.015350341796875, -0.011566162109375, -0.065185546875, -0.00943756103515625, -0.008880615234375, 0.051666259765625, -0.0162506103515625, 0.0276947021484375, -0.0286407470703125, 0.023834228515625, -0.018646240234375, 0.020263671875, 0.0050201416015625, -0.003528594970703125, 0.035919189453125, 0.039764404296875, 0.02252197265625, 0.00634765625, 0.0124969482421875, -0.0240936279296875, -0.06298828125, -0.052947998046875, -0.041839599609375, -0.032257080078125, 0.007259368896484375, -0.046783447265625, -0.0635986328125, -0.0021915435791015625, -0.0203857421875, -0.0008025169372558594, 0.0016813278198242188, -0.0236663818359375, -0.00013053417205810547, -0.052490234375, 0.020294189453125, 0.0014009475708007812, -0.028900146484375, 0.02008056640625, 0.014373779296875, 0.004512786865234375, -0.0222320556640625, -0.051544189453125, -0.007808685302734375, 0.00977325439453125, -0.00167083740234375, 0.04876708984375, 0.0296478271484375, 0.00728607177734375, 0.047607421875, 0.0037937164306640625, 0.0289154052734375, 0.003429412841796875, -0.01313018798828125, 0.0305633544921875, -0.01212310791015625, 0.00004202127456665039, 0.044830322265625, -0.0248260498046875, 0.050567626953125, 0.0120086669921875, -0.004150390625, -0.0233917236328125, 0.0010528564453125, 0.0020427703857421875, -0.0178985595703125, -0.0213165283203125, -0.00392913818359375, 0.0161895751953125, -0.03912353515625, 0.058685302734375, 0.0265655517578125, -0.00188446044921875, 0.00667572021484375, 0.006195068359375, -0.0160980224609375, 0.01227569580078125, 0.05615234375, -0.005931854248046875, 0.035400390625, -0.031341552734375, -0.04681396484375, -0.0195159912109375, -0.0323486328125, 0.09521484375, 0.02398681640625, -0.07763671875, 0.055999755859375, -0.01067352294921875, 0.01471710205078125, 0.0211181640625, -0.00844573974609375, 0.037322998046875, -0.0095977783203125, -0.0198516845703125, -0.01629638671875, -0.0139617919921875, -0.056549072265625, -0.05096435546875, 0.036773681640625, 0.006938934326171875, 0.00524139404296875, 0.0333251953125, 0.059295654296875, -0.0008521080017089844, 0.056976318359375, -0.0224151611328125, 0.049530029296875, 0.060638427734375, 0.01441192626953125, -0.0006074905395507812, 0.00864410400390625, 0.00469970703125, 0.00963592529296875, 0.003932952880859375, -0.01922607421875, -0.0017452239990234375, 0.0274810791015625, 0.0439453125, 0.07513427734375, 0.011444091796875, -0.031951904296875, -0.00844573974609375, -0.01806640625, 0.01143646240234375, -0.019317626953125, -0.0074310302734375, -0.019134521484375, 0.0071563720703125, 0.043121337890625, 0.01230621337890625, -0.0257110595703125, 0.0031948089599609375, -0.0235748291015625, 0.0184478759765625, -0.0172271728515625, -0.036376953125, 0.0270843505859375, 0.0205078125, 0.043975830078125, -0.003681182861328125, -0.0147857666015625, 0.0165252685546875, 0.01543426513671875, -0.040740966796875, -0.0004775524139404297, 0.07196044921875, -0.0205230712890625, 0.041046142578125, -0.01959228515625, -0.0119171142578125, 0.00968170166015625, 0.01446533203125, 0.0281829833984375, 0.0184326171875, -0.043121337890625, 0.00820159912109375, -0.045135498046875, -0.0001150369644165039, 0.025787353515625, -0.006137847900390625, -0.0287933349609375, -0.0249481201171875, 0.02874755859375, 0.01953125, 0.006031036376953125, -0.045318603515625, 0.0014810562133789062, -0.023162841796875, 0.0278167724609375, -0.0104522705078125, -0.041534423828125, 0.06561279296875, 0.0006580352783203125, 0.0233306884765625, -0.02667236328125, 0.00757598876953125, 0.00458526611328125, 0.00605010986328125, 0.002819061279296875, -0.06610107421875, -0.02899169921875, -0.02642822265625, -0.019805908203125, 0.08575439453125, 0.07781982421875, 0.0013532638549804688, 0.0413818359375, -0.033355712890625, 0.01082611083984375, -0.013427734375, -0.00226593017578125, -0.06109619140625, -0.0157470703125, 0.040618896484375, 0.0034770965576171875, 0.029296875, -0.0160064697265625, -0.036041259765625, 0.01450347900390625, 0.0179901123046875, 0.005107879638671875, 0.02886962890625, -0.0164642333984375, 0.004016876220703125, 0.07379150390625, 0.042999267578125, 0.05267333984375, 0.01334381103515625, 0.0243377685546875, 0.0208892822265625, -0.01806640625, -0.032379150390625, -0.0175323486328125, 0.021209716796875, 0.00391387939453125, -0.00839996337890625, 0.0439453125, -0.0171356201171875, 0.0285491943359375, 0.0821533203125, 0.0740966796875, -0.09320068359375, -0.015594482421875, 0.00743865966796875, -0.0291900634765625, -0.00543212890625, 0.019561767578125, -0.0210113525390625, -0.033599853515625, -0.0024127960205078125, -0.0158843994140625, -0.0109100341796875, 0.0005021095275878906, 0.014617919921875, -0.00582122802734375, 0.00027060508728027344, -0.015777587890625, -0.0157318115234375, -0.00397491455078125, -0.02655029296875, -0.006694793701171875, -0.00469207763671875, 0.0176239013671875, 0.00501251220703125, 0.01364898681640625, -0.037139892578125, -0.058746337890625, -0.0106964111328125, -0.0249786376953125, -0.04205322265625, -0.042572021484375, 0.048797607421875, 0.057769775390625, 0.041412353515625, 0.0172576904296875, -0.02215576171875, 0.0135345458984375, 0.057525634765625, 0.0537109375, -0.02935791015625, -0.0241851806640625, 0.0278778076171875, 0.004695892333984375, 0.0002942085266113281, 0.024749755859375, -0.0113525390625, -0.00860595703125, 0.01291656494140625, 0.0936279296875, -0.05084228515625, -0.0196533203125, 0.0015897750854492188, 0.035003662109375, 0.0084991455078125, 0.0260009765625, 0.0168914794921875, -0.05340576171875, -0.0546875, 0.00695037841796875, -0.06610107421875, 0.02410888671875, 0.024810791015625, -0.04998779296875, 0.0941162109375, 0.006626129150390625, 0.0360107421875, 0.041168212890625, 0.025604248046875, -0.041259765625, 0.01226806640625, -0.01502227783203125, 0.028472900390625, 0.0242767333984375, -0.060516357421875, -0.0218963623046875, -0.0040130615234375, -0.041290283203125, 0.01471710205078125, 0.06744384765625, 0.0352783203125, -0.08770751953125, 0.004001617431640625, 0.0278472900390625, 0.0025730133056640625, -0.00333404541015625, 0.0970458984375, -0.0033245086669921875, 0.0234527587890625, 0.019500732421875, -0.029449462890625, 0.01043701171875, -0.0027923583984375, -0.02178955078125, 0.01275634765625, 0.016693115234375, 0.003910064697265625, 0.033599853515625, 0.01416015625, -0.042938232421875, 0.02996826171875, 0.0305938720703125, -0.031494140625, 0.008331298828125, -0.005489349365234375, -0.01015472412109375, 0.0186309814453125, 0.0303497314453125, -0.026123046875, 0.0275726318359375, 0.001251220703125, -0.032257080078125, 0.021575927734375, 0.0108795166015625, 0.01271820068359375, -0.01432037353515625, -0.0099639892578125, 0.0257720947265625, -0.0181732177734375, 0.0251617431640625, -0.001983642578125, 0.022979736328125, -0.0221405029296875, 0.044769287109375, -0.01343536376953125, 0.0172119140625, -0.033843994140625, -0.0638427734375, 0.004375457763671875, -0.0155181884765625, 0.031646728515625, 0.02215576171875, 0.03173828125, -0.06292724609375, -0.0408935546875, 0.0185546875, 0.025909423828125, 0.0164794921875, -0.039276123046875, 0.00428009033203125, 0.043975830078125, -0.006679534912109375, 0.06591796875, -0.035400390625, -0.006778717041015625, 0.00873565673828125, 0.047210693359375, 0.0418701171875, 0.0296478271484375, -0.01593017578125, -0.034332275390625, -0.0143280029296875, 0.04901123046875, 0.005596160888671875, -0.0087738037109375, -0.04327392578125, -0.066162109375, 0.03460693359375, 0.049835205078125, -0.01361083984375, 0.01136016845703125, 0.022857666015625, 0.050872802734375, -0.01514434814453125, -0.023773193359375, 0.034271240234375, -0.013397216796875, 0.08343505859375, -0.050323486328125, 0.065185546875, -0.0190887451171875, -0.01018524169921875, -0.02801513671875, -0.02777099609375, 0.052001953125, 0.016693115234375, 0.05731201171875, -0.0038661956787109375, -0.004619598388671875, -0.0316162109375, -0.039276123046875, 0.0172576904296875, 0.00118255615234375, -0.04766845703125, -0.031982421875, 0.00928497314453125, 0.006061553955078125, 0.02325439453125, 0.0294189453125, -0.00989532470703125, 0.0276641845703125, 0.0193328857421875, -0.0276336669921875, 0.00922393798828125, 0.02044677734375, -0.004322052001953125, -0.04632568359375, 0.01424407958984375, -0.0305938720703125, -0.005886077880859375, -0.01132965087890625, 0.004848480224609375, 0.032470703125, 0.011444091796875, 0.046295166015625, -0.0252838134765625, 0.031890869140625, -0.00600433349609375, 0.01666259765625, -0.007114410400390625, -0.007427215576171875, 0.00817108154296875, -0.00010162591934204102, 0.01166534423828125, -0.005275726318359375, -0.0300140380859375, 0.0304107666015625, 0.017425537109375, -0.036468505859375, 0.04901123046875, -0.02178955078125, -0.00591278076171875, -0.059356689453125, 0.0283660888671875, -0.036224365234375, -0.063720703125, -0.056365966796875, 0.030670166015625, -0.0019016265869140625, 0.0272216796875, -0.0243988037109375, 0.035247802734375, -0.025543212890625, 0.0113372802734375, -0.015167236328125, -0.023162841796875, -0.043182373046875, 0.019378662109375, -0.032562255859375, -0.037994384765625, 0.001880645751953125, -0.01165008544921875, 0.02093505859375, -0.006000518798828125, 0.0772705078125, -0.0041351318359375, -0.009063720703125, -0.0302581787109375, 0.010528564453125, 0.0216522216796875, -0.01465606689453125, 0.00969696044921875, 0.0059967041015625, -0.029388427734375, -0.02117919921875, -0.00864410400390625, -0.0338134765625, -0.0102691650390625, 0.00658416748046875, 0.0226593017578125, -0.003482818603515625, -0.051666259765625, -0.10186767578125, 0.01047515869140625, 0.031707763671875, -0.0026187896728515625, -0.02239990234375, 0.03363037109375, -0.048553466796875, 0.004779815673828125, 0.0183868408203125, 0.046875, 0.0013933181762695312, 0.0162506103515625, -0.078857421875, -0.06866455078125, -0.0341796875, 0.035552978515625, -0.0760498046875, 0.01187896728515625, 0.0265655517578125, -0.0091705322265625, 0.0037708282470703125, 0.00609588623046875, -0.023223876953125, 0.06787109375, -0.035369873046875, 0.01549530029296875, -0.0036869049072265625, -0.0084686279296875, -0.047882080078125, -0.03509521484375, 0.0374755859375, -0.056610107421875, -0.05975341796875, -0.0246734619140625, 0.032958984375, 0.032470703125, -0.0264892578125, -0.0672607421875, 0.0193023681640625, -0.01076507568359375, -0.0247802734375, -0.048370361328125, -0.0139312744140625, -0.006031036376953125, 0.04656982421875, -0.00218963623046875, -0.018646240234375, -0.036651611328125, 0.03424072265625, 0.02593994140625, 0.0209197998046875, -0.00547027587890625, 0.04351806640625, 0.03729248046875, 0.0560302734375, 0.04437255859375, -0.0039043426513671875, 0.0151214599609375, 0.0113525390625, 0.0203399658203125, 0.0509033203125, -0.01192474365234375, -0.0203094482421875, -0.01467132568359375, -0.060302734375, 0.0007605552673339844, -0.00763702392578125, -0.0406494140625, -0.0291748046875, 0.0235595703125, 0.0699462890625, 0.0071868896484375, -0.0058135986328125, -0.0277252197265625, -0.036712646484375, 0.006076812744140625, -0.0022220611572265625, 0.006099700927734375, -0.049957275390625, 0.01401519775390625, 0.028656005859375, -0.00040078163146972656, -0.01378631591796875, 0.06085205078125, -0.0179901123046875, 0.007328033447265625, 0.0517578125, -0.041534423828125, -0.031005859375, 0.0313720703125, 0.08172607421875, -0.052001953125, 0.0288543701171875, 0.0001844167709350586, 0.001110076904296875, 0.047882080078125, -0.010955810546875, 0.01399993896484375, 0.016754150390625, -0.0338134765625, -0.003269195556640625, 0.0176239013671875, 0.0225677490234375, -0.027435302734375, -0.0286865234375, -0.0167999267578125, 0.01165008544921875, 0.023193359375, 0.01474761962890625, -0.0236663818359375, -0.01042938232421875, 0.009796142578125, -0.015777587890625, 0.030059814453125, -0.0082550048828125, -0.0126190185546875, 0.06439208984375, 0.012481689453125, -0.052703857421875, 0.00791168212890625, -0.032745361328125, 0.003509521484375, 0.021942138671875, -0.0022716522216796875, -0.04144287109375, 0.03179931640625, -0.054168701171875, 0.0191497802734375, 0.0204010009765625 ]
f54771eaa581a233bf3ab0be0f1a35ef68fb403d
Wordpress Stackexchange Q: Will A WordPress automatic update harm my website? Recently I got to know that my Wordpress site is automatically updating itself when a new version of Wordpress is available. I know that this automatic feature is available in Wordpress since sometimes back. But I have some questions about this: * *Can this be risky in any case? *Does it matter how we have installed Wordpress? (e.g plugins and security settings) *Does Wordpress have a way to recover our website if anything goes wrong? *Does WordPress keep any backup when doing the update? A: These are minor version number updates that are mostly due to security. WordPress does not auto-update major version releases. You should be safe.
Q: Will A WordPress automatic update harm my website? Recently I got to know that my Wordpress site is automatically updating itself when a new version of Wordpress is available. I know that this automatic feature is available in Wordpress since sometimes back. But I have some questions about this: * *Can this be risky in any case? *Does it matter how we have installed Wordpress? (e.g plugins and security settings) *Does Wordpress have a way to recover our website if anything goes wrong? *Does WordPress keep any backup when doing the update? A: These are minor version number updates that are mostly due to security. WordPress does not auto-update major version releases. You should be safe. A: Let me first answer your questions before giving some more info on the update process. * *There is always some risk. But with the default of only doing minor core release you are pretty safe. (E.g. 3.8.1 had close to 100% update success rate) Also you should think of how while being some risk itself the update also protects you from other risks by e.g. fixing security issues. *You can't really answer this question generally. But WordPress does its best to check as much as possible before doing an update to be e.g. sure that file permissions make an update possible. But of course you could imagine situations like a security system that watches for file changes to cause an alarm on auto-update. But this is something specific to your install then. Default WordPress should be fine. *Generally while WordPress does try to roll back a failed update of WordPress itself, there isn't a rollback mechanism for the whole site if anything is broken after the update. At least nothing automatic. But you're backing up your site in regular intervals anyway, right? *WordPress doesn't do any backups on its own, so as already said in 3, your are doing backups, right? Continuing from here there is some more info plus links on that topic: Automatic Background Updates have been introduced in WordPress 3.7. By default only minor updates (3.9 to 3.9.1) but not major updates (3.8 to 3.9) are performed automatically. As these updates usually only fix small bugs or security issues stuff is way less likely to break on those. Anyway you can configure WordPress Updates any way you like. Always update (also major version) or never update. Just the way you like it. Just have a look at this question or the Codex for more info on how to do that: http://codex.wordpress.org/Configuring_Automatic_Background_Updates If you decide not to use automatic update you can still do it manually. Again you can find more info at the Codex: https://codex.wordpress.org/Updating_WordPress And as already said before please do regular backups anyway: https://codex.wordpress.org/WordPress_Backups TL;DR:Unless you are a WordPress Pro and really know what you do I'd recommend sticking with the auto update defaults and not worry too much about stuff breaking as I believe that a lot of thought has been put in it and the advantages outmatch the drawbacks for a standard WordPress install.
wordpress
{ "language": "en", "length": 509, "provenance": "stackexchange_00019.jsonl.gz:447731", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157401" }
[ 0.034912109375, -0.0022754669189453125, -0.00392913818359375, 0.00734710693359375, -0.0010519027709960938, -0.019683837890625, 0.048736572265625, -0.026458740234375, -0.00629425048828125, 0.01007080078125, -0.043914794921875, 0.022552490234375, 0.00595855712890625, -0.01464080810546875, 0.0130462646484375, -0.035186767578125, 0.0599365234375, -0.036956787109375, 0.0307464599609375, 0.015106201171875, -0.0152130126953125, 0.061065673828125, 0.04608154296875, 0.0297088623046875, 0.0191192626953125, 0.0132293701171875, 0.04742431640625, -0.01068878173828125, 0.020477294921875, 0.00926971435546875, 0.0345458984375, -0.036285400390625, 0.004016876220703125, 0.036346435546875, -0.032318115234375, 0.0007081031799316406, 0.01337432861328125, 0.0045166015625, -0.0018367767333984375, 0.052825927734375, -0.01001739501953125, 0.0189056396484375, 0.12298583984375, -0.0145263671875, 0.04498291015625, -0.0120391845703125, -0.01412200927734375, -0.08551025390625, -0.006435394287109375, -0.047149658203125, 0.01458740234375, 0.01328277587890625, 0.050933837890625, -0.0282745361328125, -0.0095672607421875, -0.00800323486328125, 0.012237548828125, 0.0716552734375, 0.03765869140625, -0.07666015625, -0.07244873046875, 0.0178985595703125, 0.0321044921875, 0.0084991455078125, -0.0274810791015625, -0.00652313232421875, 0.0145263671875, -0.005565643310546875, -0.071044921875, -0.021240234375, 0.07891845703125, -0.0284423828125, 0.0033397674560546875, 0.0171661376953125, 0.0203399658203125, -0.054779052734375, 0.0007352828979492188, -0.0312042236328125, 0.0303802490234375, 0.033233642578125, 0.0206298828125, 0.040313720703125, -0.0144195556640625, -0.060333251953125, 0.05645751953125, -0.009002685546875, -0.00732421875, -0.02264404296875, -0.0192108154296875, -0.032928466796875, -0.023651123046875, -0.0191192626953125, -0.04376220703125, 0.005489349365234375, -0.006290435791015625, -0.0313720703125, -0.0007872581481933594, 0.06475830078125, -0.02130126953125, 0.0345458984375, -0.03460693359375, -0.0262298583984375, 0.0455322265625, -0.060699462890625, -0.029144287109375, 0.0275115966796875, 0.03472900390625, -0.0016469955444335938, -0.02392578125, 0.007843017578125, -0.0247955322265625, -0.004180908203125, 0.004985809326171875, -0.01763916015625, 0.002391815185546875, 0.0189208984375, -0.030181884765625, 0.0458984375, -0.00508880615234375, 0.0301666259765625, -0.01070404052734375, 0.026763916015625, -0.03466796875, -0.0311737060546875, -0.0116119384765625, -0.0311279296875, -0.0113983154296875, 0.0131072998046875, -0.01071929931640625, 0.0038509368896484375, -0.03826904296875, 0.019927978515625, 0.061370849609375, 0.0238800048828125, 0.0048675537109375, -0.0161895751953125, -0.00173187255859375, -0.0028076171875, 0.00446319580078125, 0.007747650146484375, 0.006153106689453125, -0.0426025390625, -0.011932373046875, 0.0076751708984375, 0.0304107666015625, -0.016082763671875, 0.00446319580078125, 0.046661376953125, 0.034759521484375, 0.0202178955078125, 0.0309906005859375, -0.01169586181640625, 0.02130126953125, -0.00394439697265625, 0.04498291015625, -0.047027587890625, 0.02154541015625, -0.039703369140625, 0.042144775390625, -0.021270751953125, -0.014251708984375, -0.00946044921875, 0.02789306640625, 0.0186004638671875, -0.01363372802734375, 0.035675048828125, -0.0164642333984375, -0.0006070137023925781, 0.03619384765625, 0.0004265308380126953, 0.0186004638671875, -0.0159454345703125, 0.06719970703125, 0.04010009765625, 0.0199737548828125, 0.035430908203125, 0.022491455078125, 0.01727294921875, 0.0228118896484375, 0.01160430908203125, -0.0117340087890625, -0.022369384765625, 0.0595703125, -0.01885986328125, -0.034698486328125, -0.004459381103515625, -0.0190277099609375, 0.040008544921875, 0.0728759765625, 0.0194854736328125, -0.017822265625, -0.06597900390625, -0.0333251953125, 0.04180908203125, -0.00652313232421875, -0.01207733154296875, 0.017852783203125, 0.02935791015625, -0.00701141357421875, -0.051361083984375, 0.00019466876983642578, -0.0019388198852539062, -0.00809478759765625, -0.0196990966796875, -0.07098388671875, -0.01074981689453125, -0.0291595458984375, 0.035186767578125, 0.040313720703125, 0.018798828125, -0.00492095947265625, -0.017333984375, 0.00333404541015625, -0.0168304443359375, -0.049713134765625, -0.00815582275390625, -0.044158935546875, 0.0015687942504882812, -0.0169677734375, 0.034393310546875, -0.0178375244140625, -0.01239013671875, -0.031341552734375, -0.0184478759765625, 0.01390838623046875, -0.03704833984375, -0.01055145263671875, -0.03594970703125, -0.019683837890625, -0.0103759765625, -0.0182037353515625, 0.061279296875, -0.01410675048828125, -0.01554107666015625, -0.0465087890625, -0.04052734375, -0.085693359375, -0.1395263671875, 0.018646240234375, 0.10296630859375, 0.0198211669921875, 0.0036067962646484375, -0.0235137939453125, 0.0088958740234375, 0.055145263671875, -0.0215606689453125, -0.0048370361328125, 0.0210113525390625, -0.0080108642578125, 0.04412841796875, 0.039459228515625, 0.0016469955444335938, 0.0008988380432128906, -0.047576904296875, -0.022430419921875, 0.041259765625, -0.01268768310546875, 0.034698486328125, -0.0482177734375, -0.0270843505859375, -0.00787353515625, -0.08074951171875, -0.023956298828125, -0.047943115234375, 0.01462554931640625, -0.021392822265625, 0.034332275390625, 0.02471923828125, 0.0241546630859375, -0.04290771484375, 0.004154205322265625, -0.007106781005859375, 0.01047515869140625, 0.04864501953125, -0.02630615234375, -0.00782012939453125, 0.0103912353515625, -0.00885009765625, -0.0305023193359375, 0.014617919921875, -0.0249481201171875, -0.01320648193359375, -0.0143280029296875, -0.00917816162109375, 0.00255584716796875, -0.015594482421875, 0.0255584716796875, -0.01129913330078125, -0.0193328857421875, -0.0140838623046875, 0.01067352294921875, -0.0003311634063720703, -0.041717529296875, 0.0225830078125, 0.021942138671875, -0.0264739990234375, 0.0301666259765625, -0.0239105224609375, 0.01142120361328125, -0.01033782958984375, 0.00835418701171875, 0.04913330078125, 0.01080322265625, 0.006076812744140625, 0.00537109375, 0.0247955322265625, 0.0137786865234375, -0.00635528564453125, -0.019195556640625, 0.0479736328125, -0.11279296875, -0.0240020751953125, 0.0310211181640625, 0.06890869140625, -0.026885986328125, -0.03741455078125, -0.0173187255859375, 0.031982421875, -0.07025146484375, -0.0712890625, -0.0660400390625, -0.024871826171875, -0.006572723388671875, 0.0145721435546875, 0.0105438232421875, 0.0085601806640625, 0.002262115478515625, 0.0255889892578125, -0.016387939453125, -0.0379638671875, -0.021087646484375, -0.0802001953125, -0.056671142578125, -0.0150299072265625, 0.01219940185546875, 0.016357421875, -0.00012743473052978516, 0.07049560546875, -0.002315521240234375, -0.0858154296875, -0.0269775390625, 0.0173797607421875, -0.0195159912109375, 0.02947998046875, 0.018646240234375, -0.017059326171875, 0.00736236572265625, 0.01209259033203125, 0.0109100341796875, 0.006137847900390625, -0.020538330078125, -0.0238037109375, -0.0117645263671875, -0.0284271240234375, 0.013031005859375, -0.021881103515625, -0.004886627197265625, 0.010101318359375, -0.0099029541015625, -0.036224365234375, -0.0082550048828125, 0.03668212890625, -0.0022735595703125, -0.0013599395751953125, -0.01392364501953125, -0.05078125, 0.00379180908203125, 0.00832366943359375, -0.01187896728515625, 0.0017042160034179688, 0.005886077880859375, -0.0115814208984375, -0.0003616809844970703, -0.0144805908203125, -0.0166473388671875, -0.0080108642578125, 0.00400543212890625, -0.029388427734375, 0.061004638671875, -0.0018033981323242188, 0.0183868408203125, -0.001468658447265625, 0.022216796875, -0.0275115966796875, 0.0146331787109375, 0.0233001708984375, -0.0247344970703125, 0.0269775390625, -0.0235443115234375, -0.0114288330078125, -0.0248870849609375, 0.055328369140625, -0.0213775634765625, -0.004619598388671875, 0.0243377685546875, 0.0225677490234375, -0.05767822265625, -0.022552490234375, -0.06793212890625, 0.00714874267578125, 0.01210784912109375, -0.002307891845703125, -0.00971221923828125, 0.0128326416015625, -0.04522705078125, 0.07086181640625, -0.005870819091796875, -0.005771636962890625, 0.007476806640625, -0.04266357421875, 0.0251617431640625, -0.017181396484375, 0.0037250518798828125, -0.035247802734375, 0.006977081298828125, -0.0543212890625, -0.0633544921875, -0.003772735595703125, -0.011932373046875, 0.040863037109375, -0.00970458984375, 0.0174560546875, -0.031341552734375, 0.0164337158203125, 0.01047515869140625, 0.0589599609375, -0.039764404296875, -0.0260162353515625, -0.0084228515625, 0.0240936279296875, 0.0196990966796875, -0.0001595020294189453, 0.00470733642578125, -0.048583984375, -0.0611572265625, -0.043670654296875, -0.037445068359375, 0.0172271728515625, -0.001453399658203125, -0.02252197265625, 0.00617218017578125, -0.0230865478515625, -0.0168914794921875, 0.018951416015625, -0.0174560546875, 0.0093994140625, -0.028228759765625, -0.001644134521484375, 0.057586669921875, -0.022705078125, 0.0055084228515625, 0.00231170654296875, 0.081787109375, -0.0009322166442871094, -0.008697509765625, -0.046966552734375, -0.0128326416015625, 0.03326416015625, 0.023193359375, 0.036590576171875, 0.0279998779296875, -0.01418304443359375, 0.00811004638671875, 0.0261993408203125, -0.00018405914306640625, -0.0289459228515625, 0.021759033203125, -0.00281524658203125, -0.00685882568359375, 0.0014963150024414062, -0.0216064453125, 0.060394287109375, 0.0018720626831054688, -0.0081787109375, -0.03448486328125, 0.006496429443359375, 0.034698486328125, -0.029541015625, 0.04840087890625, -0.00896453857421875, -0.0260467529296875, 0.0206756591796875, 0.02630615234375, -0.024871826171875, -0.0048828125, -0.0033321380615234375, -0.0079803466796875, -0.0167999267578125, -0.023468017578125, -0.05413818359375, -0.0304107666015625, -0.030548095703125, 0.0059967041015625, -0.05517578125, -0.0243072509765625, -0.02264404296875, -0.01154327392578125, 0.07696533203125, -0.0263519287109375, -0.07305908203125, 0.0186767578125, -0.030181884765625, 0.007781982421875, 0.05609130859375, 0.006938934326171875, 0.051544189453125, 0.0223236083984375, -0.0289306640625, -0.02862548828125, -0.0023040771484375, -0.02020263671875, -0.064453125, -0.06231689453125, -0.007732391357421875, -0.040191650390625, 0.051422119140625, -0.05535888671875, 0.0267333984375, -0.02410888671875, -0.02508544921875, 0.055023193359375, 0.0611572265625, -0.026153564453125, -0.01032257080078125, 0.06268310546875, 0.017608642578125, -0.059417724609375, 0.034027099609375, -0.02984619140625, -0.0257568359375, 0.0203704833984375, 0.044219970703125, -0.0295867919921875, -0.0177459716796875, 0.023101806640625, -0.0156097412109375, -0.0035991668701171875, 0.046478271484375, 0.01702880859375, -0.037567138671875, -0.0077972412109375, 0.0267486572265625, 0.023895263671875, -0.02520751953125, 0.0020198822021484375, 0.002086639404296875, -0.021392822265625, 0.00627899169921875, -0.01904296875, -0.0273284912109375, -0.0181732177734375, -0.0008959770202636719, 0.0496826171875, -0.0233612060546875, -0.037933349609375, -0.0181121826171875, 0.0189971923828125, -0.031707763671875, 0.0002968311309814453, 0.06231689453125, -0.00855255126953125, -0.006557464599609375, -0.0277862548828125, 0.01178741455078125, -0.0084381103515625, 0.01160430908203125, 0.01690673828125, -0.02301025390625, -0.040313720703125, -0.0099945068359375, -0.050689697265625, -0.02325439453125, -0.03546142578125, -0.0194244384765625, -0.049346923828125, 0.007778167724609375, 0.00437164306640625, 0.007305145263671875, -0.0103607177734375, -0.0182647705078125, -0.0057830810546875, 0.0423583984375, 0.033416748046875, 0.0311279296875, 0.0006394386291503906, 0.00555419921875, 0.0214691162109375, 0.048553466796875, 0.0201416015625, 0.0022869110107421875, -0.01311492919921875, -0.043243408203125, 0.005672454833984375, -0.00727081298828125, -0.008758544921875, -0.0174102783203125, 0.019805908203125, -0.0167236328125, 0.006587982177734375, -0.00769805908203125, 0.0005354881286621094, -0.025054931640625, 0.00966644287109375, -0.021453857421875, 0.034515380859375, -0.0333251953125, -0.0149688720703125, 0.00615692138671875, -0.0204010009765625, -0.00443267822265625, -0.005092620849609375, -0.02294921875, 0.010223388671875, -0.00661468505859375, -0.00414276123046875, 0.031707763671875, -0.011383056640625, 0.06658935546875, 0.058746337890625, -0.037078857421875, 0.0228271484375, 0.037445068359375, -0.007232666015625, 0.0212249755859375, 0.01003265380859375, -0.04547119140625, -0.00885009765625, -0.005096435546875, -0.00408172607421875, -0.0004477500915527344, -0.00382232666015625, 0.0021114349365234375, 0.036773681640625, 0.060943603515625, 0.1082763671875, -0.06988525390625, 0.0080413818359375, 0.0223388671875, -0.040985107421875, 0.022674560546875, -0.01407623291015625, -0.0426025390625, -0.07147216796875, 0.073486328125, -0.053741455078125, -0.007747650146484375, 0.021697998046875, -0.0218048095703125, -0.0179595947265625, 0.010162353515625, 0.0208587646484375, 0.0226593017578125, -0.0184326171875, 0.0043792724609375, 0.01204681396484375, 0.0175323486328125, -0.01094818115234375, -0.01406097412109375, 0.0038604736328125, -0.039276123046875, -0.040313720703125, 0.01409149169921875, -0.01336669921875, 0.0037555694580078125, -0.017425537109375, 0.021270751953125, 0.0222015380859375, 0.0550537109375, -0.01071929931640625, 0.0119171142578125, 0.02752685546875, 0.01470184326171875, 0.0158233642578125, -0.0262603759765625, 0.0382080078125, 0.037139892578125, -0.044921875, 0.011138916015625, 0.0078582763671875, -0.035552978515625, -0.0016603469848632812, -0.004878997802734375, 0.0728759765625, -0.04144287109375, -0.0108642578125, 0.032257080078125, -0.0011262893676757812, -0.01519012451171875, -0.017425537109375, -0.01183319091796875, -0.052764892578125, 0.0165252685546875, -0.0357666015625, 0.01511383056640625, 0.01271820068359375, -0.0165557861328125, -0.0256805419921875, 0.062469482421875, 0.0119781494140625, -0.03900146484375, -0.0096893310546875, 0.041900634765625, -0.0166473388671875, 0.02642822265625, -0.0062408447265625, 0.05743408203125, 0.02459716796875, -0.04119873046875, -0.032745361328125, -0.0018215179443359375, -0.033782958984375, 0.0102996826171875, -0.0185089111328125, -0.00894927978515625, -0.01393890380859375, -0.000009834766387939453, 0.037811279296875, 0.03662109375, 0.0233154296875, 0.018280029296875, -0.01320648193359375, 0.0513916015625, 0.017181396484375, -0.038299560546875, 0.025146484375, -0.0082550048828125, -0.051239013671875, 0.0210113525390625, 0.018707275390625, 0.0193328857421875, -0.04180908203125, 0.01503753662109375, -0.0034999847412109375, -0.0150299072265625, 0.0009393692016601562, 0.051055908203125, 0.03607177734375, -0.00568389892578125, 0.022430419921875, 0.0021495819091796875, 0.037872314453125, -0.0203704833984375, 0.044677734375, 0.004901885986328125, -0.016326904296875, 0.0211029052734375, 0.0051727294921875, -0.0389404296875, 0.035552978515625, -0.002040863037109375, 0.0479736328125, -0.01401519775390625, 0.00910186767578125, 0.00975799560546875, 0.037567138671875, -0.030364990234375, -0.0443115234375, 0.02838134765625, 0.03021240234375, 0.00400543212890625, -0.031951904296875, 0.012908935546875, -0.019012451171875, -0.020599365234375, -0.034393310546875, -0.03411865234375, -0.0113525390625, -0.0022754669189453125, -0.0255889892578125, 0.0012865066528320312, 0.0286102294921875, -0.001178741455078125, -0.0007920265197753906, 0.04229736328125, -0.004276275634765625, 0.0019140243530273438, -0.033538818359375, 0.025665283203125, 0.008087158203125, 0.0240478515625, -0.00670623779296875, 0.057037353515625, 0.01041412353515625, -0.0028591156005859375, -0.01617431640625, 0.0382080078125, -0.011749267578125, 0.034149169921875, -0.05059814453125, -0.060699462890625, 0.01201629638671875, 0.050201416015625, -0.007114410400390625, -0.017333984375, 0.040252685546875, 0.0721435546875, -0.038238525390625, -0.028167724609375, 0.03656005859375, -0.01113128662109375, 0.0147247314453125, -0.032501220703125, 0.05010986328125, 0.037200927734375, 0.00469207763671875, 0.00507354736328125, 0.0253448486328125, 0.04168701171875, -0.00213623046875, 0.01491546630859375, 0.0022430419921875, -0.007312774658203125, 0.0287933349609375, -0.012359619140625, 0.024993896484375, 0.0209197998046875, 0.002349853515625, -0.0020046234130859375, -0.0258026123046875, 0.0102996826171875, -0.004703521728515625, 0.004344940185546875, 0.00803375244140625, 0.02581787109375, -0.00484466552734375, 0.02593994140625, -0.0018911361694335938, -0.0302581787109375, 0.006381988525390625, -0.0201263427734375, 0.034820556640625, 0.007045745849609375, -0.0182647705078125, -0.0254364013671875, -0.01399993896484375, 0.05279541015625, -0.003910064697265625, 0.10284423828125, -0.04901123046875, 0.01082611083984375, 0.014068603515625, -0.01045989990234375, -0.024139404296875, -0.0008025169372558594, -0.004756927490234375, -0.0277252197265625, -0.0014514923095703125, 0.00006496906280517578, -0.04449462890625, 0.037200927734375, 0.0174560546875, 0.008392333984375, 0.0239410400390625, -0.01424407958984375, 0.0171051025390625, 0.00910186767578125, -0.022857666015625, -0.0322265625, -0.042877197265625, -0.00452423095703125, 0.0374755859375, -0.00537872314453125, 0.00044727325439453125, -0.0260162353515625, 0.031158447265625, -0.013153076171875, -0.00429534912109375, 0.0025272369384765625, -0.01885986328125, -0.0225372314453125, 0.0165557861328125, 0.00127410888671875, 0.004276275634765625, -0.007038116455078125, -0.0150146484375, -0.00893402099609375, 0.016021728515625, 0.011260986328125, -0.011077880859375, 0.022125244140625, -0.03460693359375, 0.0206756591796875, 0.037628173828125, -0.01995849609375, 0.026824951171875, -0.030670166015625, 0.004085540771484375, 0.0306854248046875, 0.0171051025390625, -0.006824493408203125, 0.0089569091796875, -0.025543212890625, -0.00010848045349121094, -0.0032196044921875, -0.008514404296875, -0.0083160400390625, 0.01540374755859375, 0.035247802734375, 0.003368377685546875, -0.049224853515625, 0.01256561279296875, -0.014404296875, 0.0689697265625, -0.01183319091796875, -0.02734375, -0.00894927978515625, 0.00673675537109375, 0.00264739990234375, -0.058135986328125, -0.0310821533203125, 0.0704345703125, -0.0179290771484375, -0.00649261474609375, 0.0028667449951171875, -0.02008056640625, 0.0174102783203125, -0.008209228515625, 0.0206298828125, 0.03875732421875, 0.0303802490234375, -0.00072479248046875, 0.0478515625, -0.0239105224609375, -0.0088958740234375, -0.06134033203125, -0.01314544677734375, -0.0224609375, 0.008270263671875, -0.0164031982421875, 0.0155487060546875, 0.0462646484375, -0.0372314453125, -0.09906005859375, 0.034759521484375, -0.0228271484375, -0.051666259765625, -0.01275634765625, -0.010589599609375, -0.02978515625, -0.0008425712585449219, -0.0150604248046875, -0.00844573974609375, -0.0031337738037109375, 0.0452880859375, -0.00543975830078125, 0.080078125, -0.040679931640625, 0.0390625, -0.017669677734375, 0.045135498046875, 0.0209503173828125, -0.01392364501953125, -0.00897979736328125, -0.003360748291015625, 0.018646240234375, 0.0258941650390625, -0.0239105224609375, 0.003131866455078125, 0.004428863525390625, 0.00518035888671875, -0.007686614990234375, -0.01258087158203125, -0.053009033203125, -0.035614013671875, 0.099853515625, 0.05010986328125, 0.03173828125, -0.004520416259765625, -0.01213836669921875, -0.0172271728515625, -0.0087127685546875, -0.0247650146484375, 0.007415771484375, -0.049224853515625, -0.0019626617431640625, -0.0045166015625, -0.0136871337890625, 0.00429534912109375, -0.01117706298828125, -0.0207977294921875, -0.003192901611328125, -0.0191497802734375, -0.01171875, -0.01280975341796875, -0.038177490234375, 0.054779052734375, -0.0116119384765625, 0.037567138671875, 0.0305938720703125, 0.005146026611328125, 0.053436279296875, 0.12127685546875, 0.0528564453125, 0.055084228515625, -0.072509765625, -0.020111083984375, 0.022003173828125, 0.0103607177734375, -0.00433349609375, -0.04559326171875, -0.0151519775390625, 0.0194091796875, 0.0260467529296875, 0.0360107421875, -0.059234619140625, 0.031585693359375, 0.0228118896484375, 0.027679443359375, 0.0257568359375, 0.025177001953125, -0.014984130859375, 0.059051513671875, -0.0251617431640625, -0.02960205078125, -0.01070404052734375, -0.042724609375, 0.0279693603515625, 0.0113677978515625, 0.052734375, 0.016510009765625, 0.00634002685546875, -0.043792724609375, -0.007755279541015625, 0.005016326904296875 ]
6a3efa2b70cd80636f38ee740814d177120197a1
Wordpress Stackexchange Q: WP_query taxonomy + get all posts with two terms from same taxonomy This is a follow up question to Add_query_arg + two times the same argument? I want to get the post count from all posts tagged with 2 different tags from same taxonomy $args2 = array( 'post_type' => 'custom', 'tax_query' => array( 'relation' => 'AND' ) ); $args['tax_query'][0] = array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => 'tag1' ); $args['tax_query'][1] = array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => 'tag-2' ); $query = new WP_Query($args); echo $query->post_count; With this code I only get the post_count for one of these tags. How i do get both? I couldn't find an answer at Wordpress codex. Help is much appreciated. A: You don't need to 2 array for tax query. You can try this scenario: $args2 = array('post_type' => 'custom', 'tax_query' => array( array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => array( 'tag1', 'tag-2') ) ) ); $query = new WP_Query($args); echo $query->post_count; You can see the Codex for better understanding.
Q: WP_query taxonomy + get all posts with two terms from same taxonomy This is a follow up question to Add_query_arg + two times the same argument? I want to get the post count from all posts tagged with 2 different tags from same taxonomy $args2 = array( 'post_type' => 'custom', 'tax_query' => array( 'relation' => 'AND' ) ); $args['tax_query'][0] = array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => 'tag1' ); $args['tax_query'][1] = array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => 'tag-2' ); $query = new WP_Query($args); echo $query->post_count; With this code I only get the post_count for one of these tags. How i do get both? I couldn't find an answer at Wordpress codex. Help is much appreciated. A: You don't need to 2 array for tax query. You can try this scenario: $args2 = array('post_type' => 'custom', 'tax_query' => array( array( 'taxonomy' => 'events', 'field' => 'slug', 'terms' => array( 'tag1', 'tag-2') ) ) ); $query = new WP_Query($args); echo $query->post_count; You can see the Codex for better understanding.
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:447790", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157648" }
[ 0.061187744140625, -0.0010662078857421875, 0.0012102127075195312, -0.053131103515625, 0.03192138671875, -0.0377197265625, 0.035888671875, 0.00006198883056640625, -0.0254058837890625, 0.0221099853515625, -0.0140838623046875, 0.0167388916015625, -0.04193115234375, -0.0220184326171875, -0.0023212432861328125, -0.04327392578125, 0.01125335693359375, -0.041046142578125, -0.028961181640625, -0.034576416015625, 0.0270538330078125, -0.011871337890625, -0.013427734375, 0.0391845703125, 0.0343017578125, -0.010406494140625, 0.04229736328125, -0.02862548828125, 0.0277252197265625, -0.00909423828125, 0.0206146240234375, -0.023590087890625, 0.0190277099609375, 0.016143798828125, -0.0374755859375, -0.012054443359375, -0.00879669189453125, 0.0003085136413574219, 0.0037288665771484375, 0.0120086669921875, 0.0296173095703125, -0.0115814208984375, 0.005329132080078125, 0.031890869140625, -0.0047607421875, -0.0224609375, 0.028045654296875, -0.036163330078125, 0.024658203125, -0.0192108154296875, 0.0019626617431640625, 0.0222015380859375, -0.0055389404296875, -0.01224517822265625, -0.0095062255859375, 0.0190277099609375, 0.0278167724609375, -0.052093505859375, 0.02618408203125, -0.0225982666015625, -0.034027099609375, -0.0265960693359375, 0.051055908203125, -0.00801849365234375, -0.033843994140625, 0.032073974609375, 0.0243682861328125, 0.0013828277587890625, -0.02099609375, -0.04901123046875, -0.0042572021484375, -0.024688720703125, -0.01110076904296875, 0.02215576171875, -0.002368927001953125, -0.071044921875, 0.012603759765625, -0.058624267578125, -0.0048370361328125, 0.06573486328125, 0.0255126953125, -0.01010894775390625, -0.051971435546875, 0.036834716796875, -0.0208587646484375, 0.0294342041015625, -0.01073455810546875, -0.017913818359375, 0.0034637451171875, -0.03253173828125, 0.00658416748046875, -0.041534423828125, -0.0516357421875, 0.034271240234375, 0.03399658203125, -0.05816650390625, -0.0003516674041748047, 0.0484619140625, -0.0509033203125, -0.0111846923828125, -0.01788330078125, -0.0106048583984375, -0.029937744140625, -0.0156097412109375, 0.05755615234375, 0.0604248046875, -0.013153076171875, 0.03131103515625, 0.0828857421875, 0.007320404052734375, 0.02435302734375, 0.07257080078125, -0.0190887451171875, -0.03155517578125, -0.0165252685546875, 0.03118896484375, -0.0268096923828125, -0.0045928955078125, 0.0007967948913574219, -0.011810302734375, -0.00878143310546875, 0.012908935546875, 0.03265380859375, -0.007472991943359375, 0.006519317626953125, 0.0193634033203125, 0.00737762451171875, -0.056243896484375, -0.00969696044921875, 0.0297393798828125, -0.02008056640625, -0.0024204254150390625, 0.03436279296875, 0.02899169921875, -0.0139617919921875, -0.0145263671875, 0.0147552490234375, -0.0321044921875, -0.0200653076171875, 0.00457000732421875, 0.02349853515625, -0.005130767822265625, 0.022796630859375, -0.005794525146484375, 0.01238250732421875, -0.00655364990234375, 0.019287109375, 0.0214080810546875, 0.009246826171875, -0.004077911376953125, -0.00897216796875, 0.017578125, 0.03851318359375, 0.029693603515625, -0.08929443359375, 0.035247802734375, -0.0321044921875, 0.020477294921875, -0.047576904296875, -0.02764892578125, -0.00560760498046875, -0.004886627197265625, 0.0083465576171875, -0.036041259765625, -0.041046142578125, 0.00945281982421875, -0.0494384765625, -0.0177459716796875, 0.006519317626953125, -0.0650634765625, 0.0262451171875, 0.0161895751953125, 0.0552978515625, -0.003246307373046875, 0.002117156982421875, 0.01025390625, -0.019317626953125, -0.00504302978515625, 0.03887939453125, 0.036163330078125, -0.006511688232421875, -0.0283203125, 0.0374755859375, -0.0107269287109375, -0.0447998046875, 0.0280609130859375, -0.016143798828125, -0.006008148193359375, 0.0117645263671875, -0.01251220703125, 0.0390625, 0.0374755859375, -0.032012939453125, 0.0176849365234375, 0.00635528564453125, -0.01507568359375, -0.0240325927734375, -0.005931854248046875, -0.0033397674560546875, -0.021484375, 0.00763702392578125, 0.0252685546875, -0.03985595703125, 0.035614013671875, -0.052520751953125, 0.00994873046875, -0.00551605224609375, 0.013641357421875, -0.03338623046875, 0.0518798828125, 0.0208282470703125, 0.01406097412109375, -0.0582275390625, 0.046356201171875, 0.02276611328125, -0.023681640625, -0.0032978057861328125, 0.003940582275390625, -0.006755828857421875, -0.005512237548828125, -0.007717132568359375, -0.01352691650390625, -0.010498046875, 0.01849365234375, 0.04345703125, -0.033843994140625, 0.00728607177734375, -0.033599853515625, 0.0262908935546875, -0.00445556640625, -0.01525115966796875, 0.01293182373046875, 0.039520263671875, 0.025054931640625, -0.0277557373046875, 0.014129638671875, 0.031768798828125, -0.0227203369140625, -0.00531768798828125, 0.041534423828125, 0.02978515625, 0.005634307861328125, -0.01068878173828125, 0.0069732666015625, 0.064208984375, -0.032501220703125, -0.007236480712890625, -0.0014677047729492188, 0.0180206298828125, 0.042724609375, 0.039886474609375, 0.001430511474609375, 0.0289154052734375, 0.03106689453125, 0.0232391357421875, 0.03082275390625, -0.043304443359375, -0.0026607513427734375, -0.0231475830078125, -0.0017156600952148438, 0.00881195068359375, -0.07080078125, -0.0006318092346191406, -0.04290771484375, 0.004425048828125, 0.00524139404296875, 0.0181732177734375, 0.0097503662109375, -0.0141448974609375, -0.01904296875, 0.013153076171875, 0.01235198974609375, -0.0031414031982421875, 0.00899505615234375, -0.0380859375, 0.026275634765625, -0.03948974609375, 0.0171051025390625, 0.0013322830200195312, -0.005767822265625, -0.00945281982421875, 0.060455322265625, -0.042877197265625, -0.01163482666015625, -0.049468994140625, -0.043243408203125, -0.0099334716796875, 0.027557373046875, -0.039825439453125, -0.03851318359375, -0.0151214599609375, 0.047119140625, -0.0474853515625, 0.057464599609375, -0.022552490234375, 0.0018863677978515625, -0.0198974609375, -0.038665771484375, 0.02569580078125, -0.0322265625, 0.05169677734375, 0.05657958984375, 0.0005054473876953125, -0.007244110107421875, 0.01434326171875, -0.050506591796875, -0.013275146484375, 0.019775390625, -0.002071380615234375, -0.0063323974609375, -0.05853271484375, 0.047882080078125, 0.0280609130859375, 0.030364990234375, -0.00405120849609375, -0.038421630859375, -0.0289764404296875, 0.007488250732421875, -0.1070556640625, -0.091064453125, -0.0038013458251953125, -0.015960693359375, 0.0021820068359375, 0.0008630752563476562, -0.011749267578125, 0.00125885009765625, -0.00005322694778442383, -0.0038509368896484375, -0.01190185546875, -0.018402099609375, -0.047760009765625, -0.055572509765625, -0.04815673828125, 0.042266845703125, 0.0050048828125, 0.01424407958984375, 0.019073486328125, 0.07647705078125, 0.0194091796875, -0.04034423828125, 0.0242767333984375, 0.03375244140625, -0.033660888671875, 0.0090484619140625, -0.0280303955078125, -0.005733489990234375, 0.008880615234375, -0.0015821456909179688, 0.01113128662109375, 0.01241302490234375, 0.0080413818359375, -0.0020294189453125, 0.037353515625, -0.01275634765625, 0.03863525390625, 0.016387939453125, -0.048980712890625, 0.0183563232421875, 0.040863037109375, -0.0263824462890625, -0.005023956298828125, -0.00801849365234375, -0.03131103515625, -0.00801849365234375, 0.0192413330078125, -0.003322601318359375, -0.005664825439453125, -0.0230560302734375, -0.00714111328125, 0.0074005126953125, -0.005390167236328125, -0.0247650146484375, 0.06732177734375, 0.005069732666015625, -0.0019855499267578125, -0.01047515869140625, -0.047149658203125, -0.04180908203125, 0.023529052734375, -0.036773681640625, 0.0038204193115234375, -0.016204833984375, 0.01508331298828125, -0.04327392578125, -0.055419921875, 0.03765869140625, 0.0160980224609375, 0.020050048828125, -0.0245513916015625, -0.040618896484375, -0.0120391845703125, 0.07318115234375, 0.00006031990051269531, -0.046295166015625, -0.0236053466796875, 0.0008363723754882812, 0.0330810546875, -0.00146484375, 0.041107177734375, -0.0249786376953125, -0.05987548828125, -0.0035419464111328125, 0.0130767822265625, -0.038055419921875, -0.023529052734375, 0.005870819091796875, -0.051727294921875, -0.01568603515625, 0.04693603515625, -0.041534423828125, 0.0181884765625, -0.00444793701171875, 0.0141143798828125, -0.0276031494140625, -0.03826904296875, 0.0003490447998046875, -0.004932403564453125, -0.0087127685546875, 0.037750244140625, 0.003955841064453125, -0.0345458984375, 0.0267486572265625, 0.01273345947265625, 0.035491943359375, 0.020263671875, 0.0283050537109375, -0.0082244873046875, -0.0118560791015625, -0.0165863037109375, 0.019134521484375, -0.0007905960083007812, -0.0020885467529296875, -0.0174102783203125, -0.003787994384765625, 0.00830841064453125, 0.04803466796875, -0.02972412109375, 0.0105438232421875, -0.026519775390625, -0.004062652587890625, -0.03460693359375, 0.007717132568359375, -0.0039825439453125, -0.030670166015625, -0.019622802734375, -0.018524169921875, 0.034759521484375, -0.021942138671875, 0.050567626953125, 0.0034942626953125, -0.03851318359375, 0.006923675537109375, 0.09552001953125, 0.0103302001953125, -0.0219573974609375, -0.08941650390625, -0.0026702880859375, 0.0186004638671875, -0.006587982177734375, 0.02740478515625, 0.00830841064453125, -0.00975799560546875, 0.0129852294921875, -0.006450653076171875, 0.01418304443359375, -0.02178955078125, 0.0304412841796875, 0.005321502685546875, -0.01153564453125, 0.00263214111328125, -0.0270233154296875, 0.019744873046875, 0.041534423828125, -0.003101348876953125, -0.024017333984375, -0.008331298828125, 0.0295867919921875, 0.0007219314575195312, -0.005847930908203125, -0.03594970703125, -0.0290985107421875, 0.006988525390625, 0.064697265625, 0.00962066650390625, 0.00885772705078125, -0.007038116455078125, 0.027069091796875, 0.025726318359375, 0.01305389404296875, 0.0252838134765625, 0.051055908203125, -0.036224365234375, 0.03076171875, 0.032623291015625, -0.020843505859375, -0.01210784912109375, 0.00799560546875, -0.00753021240234375, -0.0079803466796875, -0.0518798828125, -0.0003063678741455078, 0.010467529296875, -0.0295867919921875, 0.016204833984375, -0.01290130615234375, 0.0288543701171875, 0.04296875, 0.0009226799011230469, -0.00029349327087402344, -0.0194854736328125, 0.0081329345703125, -0.0159912109375, -0.0175933837890625, -0.0003676414489746094, -0.012176513671875, -0.005733489990234375, 0.058349609375, -0.01593017578125, 0.0391845703125, -0.0192718505859375, -0.001911163330078125, -0.0179290771484375, 0.0714111328125, 0.02752685546875, -0.07012939453125, -0.0079498291015625, 0.045196533203125, 0.000396728515625, -0.047637939453125, -0.0019989013671875, 0.0289154052734375, 0.049530029296875, -0.0017957687377929688, -0.027130126953125, 0.00467681884765625, -0.0168609619140625, -0.007305145263671875, -0.02032470703125, 0.0012197494506835938, 0.0361328125, -0.02978515625, -0.007251739501953125, 0.039642333984375, 0.038970947265625, -0.0257110595703125, 0.044891357421875, -0.027557373046875, 0.0535888671875, -0.022125244140625, 0.0274505615234375, -0.00420379638671875, -0.006481170654296875, -0.0265960693359375, -0.007686614990234375, -0.0011816024780273438, -0.0050811767578125, -0.03619384765625, 0.003574371337890625, -0.02392578125, 0.045623779296875, -0.031890869140625, 0.04779052734375, -0.0504150390625, -0.01142120361328125, -0.01654052734375, -0.01300811767578125, 0.0870361328125, 0.07293701171875, -0.032257080078125, -0.0020294189453125, -0.0360107421875, 0.006450653076171875, 0.056488037109375, -0.019683837890625, -0.0005788803100585938, -0.028106689453125, 0.01398468017578125, 0.047088623046875, -0.0008206367492675781, -0.0272216796875, 0.0010538101196289062, -0.034027099609375, -0.01541900634765625, 0.0289459228515625, 0.0009284019470214844, 0.04022216796875, 0.003223419189453125, 0.0214080810546875, -0.005588531494140625, -0.0114898681640625, -0.0281829833984375, -0.00679779052734375, -0.01934814453125, -0.11083984375, -0.0008716583251953125, 0.0288848876953125, -0.03570556640625, 0.0287322998046875, -0.00891876220703125, 0.01107025146484375, 0.032470703125, -0.0240020751953125, 0.004108428955078125, 0.0108489990234375, -0.01549530029296875, -0.01383209228515625, -0.021514892578125, 0.0919189453125, 0.0110931396484375, 0.03271484375, -0.025177001953125, 0.001560211181640625, 0.0009493827819824219, -0.01104736328125, 0.01251983642578125, -0.004833221435546875, 0.016815185546875, 0.00899505615234375, 0.020294189453125, 0.00007063150405883789, 0.0201416015625, 0.01171112060546875, 0.0199737548828125, 0.008880615234375, 0.00348663330078125, 0.01959228515625, 0.0205841064453125, 0.055023193359375, -0.0218048095703125, 0.00563812255859375, 0.01082611083984375, -0.02587890625, -0.01396942138671875, -0.01776123046875, 0.007534027099609375, 0.01187896728515625, -0.004032135009765625, 0.00177764892578125, -0.0145111083984375, -0.00409698486328125, 0.0230712890625, -0.0179443359375, -0.0294342041015625, -0.019744873046875, 0.0038318634033203125, -0.029998779296875, -0.0139923095703125, 0.017669677734375, -0.01526641845703125, -0.00978851318359375, 0.019622802734375, 0.0089569091796875, -0.0367431640625, 0.032470703125, 0.01519775390625, 0.007076263427734375, -0.0179901123046875, 0.0216522216796875, -0.021636962890625, 0.00223541259765625, -0.089111328125, -0.006679534912109375, -0.017852783203125, -0.017913818359375, -0.0197906494140625, -0.02801513671875, 0.027435302734375, 0.0242462158203125, -0.0193023681640625, -0.0194091796875, 0.00429534912109375, -0.0305938720703125, -0.07843017578125, 0.01215362548828125, 0.00170135498046875, 0.01071929931640625, -0.0211944580078125, 0.0236968994140625, -0.061279296875, 0.00232696533203125, -0.01215362548828125, -0.0065765380859375, 0.040283203125, -0.046783447265625, 0.010467529296875, 0.040771484375, 0.07177734375, -0.0090789794921875, 0.0133209228515625, 0.042388916015625, -0.0596923828125, -0.05169677734375, 0.037689208984375, -0.037750244140625, -0.0509033203125, -0.00792694091796875, -0.07818603515625, 0.15283203125, 0.0228424072265625, 0.03546142578125, 0.0216064453125, 0.06072998046875, -0.067138671875, 0.0179290771484375, -0.06866455078125, 0.05712890625, 0.007068634033203125, 0.04119873046875, -0.04278564453125, 0.0012826919555664062, 0.0014562606811523438, -0.0036296844482421875, 0.07733154296875, 0.00772857666015625, -0.0218658447265625, -0.0127105712890625, 0.06903076171875, 0.0268707275390625, -0.022308349609375, 0.041351318359375, 0.044586181640625, 0.02850341796875, 0.08453369140625, 0.0001239776611328125, 0.05975341796875, -0.012420654296875, 0.0256805419921875, 0.050323486328125, -0.0063629150390625, -0.004169464111328125, -0.0139617919921875, -0.01006317138671875, -0.022796630859375, -0.01125335693359375, 0.01450347900390625, -0.007595062255859375, -0.004299163818359375, 0.05859375, 0.04736328125, -0.06964111328125, -0.0330810546875, -0.0406494140625, 0.046630859375, 0.0110931396484375, 0.008148193359375, 0.007568359375, 0.01035308837890625, 0.058013916015625, -0.02325439453125, 0.0025634765625, 0.023040771484375, -0.03094482421875, 0.038726806640625, -0.0111236572265625, 0.0220489501953125, -0.06982421875, -0.003192901611328125, 0.03289794921875, 0.04803466796875, -0.0350341796875, -0.039764404296875, 0.00983428955078125, 0.01471710205078125, -0.01264190673828125, 0.01026153564453125, -0.004230499267578125, 0.04595947265625, 0.0743408203125, -0.057281494140625, -0.00983428955078125, 0.01444244384765625, -0.006893157958984375, -0.01360321044921875, -0.0097198486328125, 0.0130462646484375, -0.005764007568359375, -0.06005859375, 0.0300750732421875, 0.03143310546875, 0.0821533203125, 0.01324462890625, 0.04742431640625, -0.054168701171875, -0.0445556640625, -0.00009584426879882812, 0.0222930908203125, 0.008056640625, -0.0058441162109375, -0.01287078857421875, -0.032257080078125, -0.0016622543334960938, 0.032470703125, 0.02777099609375, 0.01708984375, 0.0341796875, 0.04656982421875, 0.01580810546875, -0.00980377197265625, 0.035125732421875, -0.01137542724609375, 0.024322509765625, -0.0213775634765625, 0.0116729736328125, 0.0184326171875, -0.0197296142578125, 0.01313018798828125, -0.0071563720703125, 0.053924560546875, 0.00513458251953125, -0.0240325927734375, 0.01280975341796875, -0.034576416015625, 0.0011730194091796875, 0.01100921630859375, 0.0008459091186523438, 0.043487548828125, -0.07684326171875, -0.0011491775512695312, -0.03515625, -0.054046630859375, 0.04278564453125, 0.041656494140625, -0.01461029052734375, 0.0083160400390625, 0.0022029876708984375, -0.04638671875, 0.01312255859375, 0.0272674560546875, 0.0267333984375, 0.02728271484375, -0.0284881591796875, 0.00325775146484375, -0.0231781005859375, -0.0260467529296875, 0.0264739990234375, 0.035919189453125, 0.0023746490478515625, 0.0100555419921875, 0.003650665283203125, 0.004978179931640625, -0.02294921875, 0.0263519287109375, -0.0235137939453125, -0.00679779052734375, 0.030609130859375, 0.00804901123046875, 0.004024505615234375, -0.01371002197265625, 0.004913330078125, -0.00847625732421875, 0.058563232421875, -0.052459716796875, -0.009674072265625, -0.019775390625, 0.0223541259765625, -0.040618896484375, 0.044647216796875, -0.019134521484375, -0.0023746490478515625, -0.056884765625, -0.03717041015625, 0.0531005859375, 0.0172576904296875, -0.01068878173828125, 0.027313232421875, -0.01277923583984375, -0.01488494873046875, 0.0202484130859375, -0.0267791748046875, 0.015899658203125, 0.021331787109375, -0.0206451416015625, 0.00908660888671875, 0.0311431884765625, -0.01476287841796875, 0.0224151611328125, 0.02020263671875, 0.00971221923828125, 0.00527191162109375, -0.0038356781005859375, -0.014892578125, -0.005970001220703125, 0.0246734619140625, -0.00229644775390625, 0.00856781005859375, -0.028350830078125, -0.0130157470703125, 0.006961822509765625, -0.02838134765625, -0.03668212890625, -0.0499267578125, 0.0189056396484375, 0.0140838623046875, 0.0085296630859375, -0.00838470458984375, -0.008880615234375, 0.005401611328125, 0.0172576904296875, -0.0160675048828125, 0.03466796875, -0.01499176025390625, -0.04241943359375, -0.0173187255859375, -0.0030765533447265625, -0.0662841796875, 0.019805908203125, -0.01837158203125, -0.043853759765625, 0.005096435546875, -0.056549072265625, -0.0304107666015625, -0.041473388671875, 0.0159454345703125, 0.02880859375, -0.049163818359375, -0.004467010498046875, 0.0308074951171875, 0.04766845703125, 0.06549072265625, 0.056060791015625, 0.007354736328125, 0.0258636474609375, 0.01546478271484375, -0.05487060546875, -0.037506103515625, 0.0273895263671875, -0.0044708251953125, -0.042572021484375, -0.0009584426879882812, -0.01279449462890625, 0.007785797119140625, -0.0576171875, -0.10406494140625, 0.08172607421875, -0.0222015380859375, -0.032440185546875, -0.1007080078125, 0.0209197998046875, 0.033477783203125, -0.043121337890625, -0.05145263671875, 0.004070281982421875, -0.0419921875, 0.035430908203125, -0.001739501953125, 0.01108551025390625, 0.006633758544921875, -0.01007843017578125, -0.07635498046875, 0.00496673583984375, -0.03338623046875, 0.003162384033203125, 0.0276641845703125, -0.03326416015625, 0.031005859375, 0.0216827392578125, -0.057769775390625, -0.0260772705078125, -0.0214080810546875, 0.0208740234375, -0.0184326171875, -0.054046630859375, -0.0236053466796875, -0.01540374755859375, 0.05157470703125, 0.03704833984375, 0.0184326171875, -0.030120849609375, -0.047210693359375, -0.0272979736328125, -0.0027332305908203125, -0.020050048828125, 0.020965576171875, -0.07244873046875, -0.01239776611328125, 0.0008397102355957031, -0.007488250732421875, 0.007709503173828125, 0.0081329345703125, -0.040283203125, -0.0205841064453125, -0.05035400390625, -0.006748199462890625, -0.09423828125, 0.043182373046875, -0.04608154296875, 0.0041046142578125, -0.0071258544921875, -0.037109375, -0.0008955001831054688, -0.03875732421875, -0.0119476318359375, 0.01007080078125, -0.015777587890625, 0.028472900390625, 0.0042266845703125, 0.0264434814453125, -0.03961181640625, 0.035247802734375, -0.001590728759765625, 0.006710052490234375, 0.01275634765625, -0.007205963134765625, 0.0025787353515625, -0.01340484619140625, 0.00011044740676879883, -0.014068603515625, 0.06744384765625, 0.00899505615234375, 0.03424072265625, -0.0012578964233398438, 0.035888671875, -0.03167724609375, -0.007965087890625, -0.0253448486328125, 0.0006852149963378906, 0.0006155967712402344, 0.0228424072265625, -0.024810791015625, -0.0239105224609375, 0.015777587890625, 0.044952392578125, -0.001987457275390625, 0.00940704345703125 ]
b6a7b0600d736cab7e95e5db9a96650b3cf41276
Wordpress Stackexchange Q: How to get link and title of next and previous post on single page Guys How can I get the link and title of both next and previous post on the single page? Just like in the screenshot below. I try to use this but nothing shows up. $prev = get_previous_post(); $next = get_next_post(); $prev_title = $prev ? get_the_title($prev) : 'Current is First Post'; $next_title = $next ? get_the_title($next) : 'Current is Last Post'; Thank you so much. A: Here's what I did. $previous = get_previous_post(); $next = get_next_post(); if ( get_next_post() ) { ?> <p><?php echo get_the_title($next) ?></p> <?php } if ( get_previous_post() ) { ?> <p><?php echo get_the_title($previous) ?></p> <?php } ?>
Q: How to get link and title of next and previous post on single page Guys How can I get the link and title of both next and previous post on the single page? Just like in the screenshot below. I try to use this but nothing shows up. $prev = get_previous_post(); $next = get_next_post(); $prev_title = $prev ? get_the_title($prev) : 'Current is First Post'; $next_title = $next ? get_the_title($next) : 'Current is Last Post'; Thank you so much. A: Here's what I did. $previous = get_previous_post(); $next = get_next_post(); if ( get_next_post() ) { ?> <p><?php echo get_the_title($next) ?></p> <?php } if ( get_previous_post() ) { ?> <p><?php echo get_the_title($previous) ?></p> <?php } ?> A: I believe what you want are the previous_post_link() and next_post_link() functions. A: I think one guy already said it but this is an extra answer in case you may need, it actually has some bootstrap 3 style: <!-- Previous and Next Post --> <?php if(is_single()) : ?> <!-- Para pantallas grandes --> <div class="btn-group btn-group-justified hidden-sm hidden-xs" role="group" aria-label="..." id="nextpreviouslinks"> <div class="btn-group" role="group"> <button type="button" class="btn btn-default btn-sm"> Previous Post: <?php previous_post_link( '%link', '%title'); ?></button> </div> <div class="btn-group" role="group"> <button type="button" class="btn btn-default btn-sm"><a href="<?php bloginfo('url') ?>"><i class="fa fa-th" aria-hidden="true"></i></a></button> </div> <div class="btn-group" role="group"> <button type="button" class="btn btn-default btn-sm"> Next Post: <?php next_post_link( '%link', '%title' ); ?></button> </div> </div> <?php endif; ?> <!-- /Previous and Next Post --> A: We can achieve this using wp_link_pages function. example: wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Your theme slug' ), 'after' => '</div>', ) );
wordpress
{ "language": "en", "length": 261, "provenance": "stackexchange_00019.jsonl.gz:447814", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157760" }
[ 0.059112548828125, -0.031158447265625, 0.03826904296875, -0.017974853515625, -0.0033931732177734375, -0.0185546875, 0.046630859375, -0.0169830322265625, 0.01271820068359375, 0.0341796875, -0.04034423828125, 0.03558349609375, -0.02667236328125, -0.003421783447265625, -0.016021728515625, -0.03436279296875, 0.05712890625, -0.039825439453125, 0.04742431640625, 0.016845703125, -0.006404876708984375, 0.049652099609375, 0.05419921875, 0.0374755859375, 0.0286712646484375, 0.006755828857421875, 0.06365966796875, -0.0183563232421875, 0.0281524658203125, -0.0267791748046875, 0.0277099609375, -0.0164031982421875, 0.00847625732421875, 0.004383087158203125, 0.00907135009765625, -0.0357666015625, 0.004680633544921875, 0.00046563148498535156, 0.006420135498046875, 0.027130126953125, -0.002079010009765625, 0.01531982421875, 0.0033702850341796875, -0.01555633544921875, -0.0158233642578125, -0.0297698974609375, -0.004146575927734375, -0.0267181396484375, -0.003955841064453125, 0.001728057861328125, 0.02490234375, -0.0248260498046875, 0.027801513671875, 0.005947113037109375, -0.0227203369140625, -0.034759521484375, 0.0169525146484375, -0.050445556640625, 0.04864501953125, -0.0287933349609375, -0.04608154296875, -0.04376220703125, 0.044403076171875, -0.041015625, -0.0231475830078125, 0.0120849609375, 0.046875, 0.01806640625, 0.0008630752563476562, -0.030181884765625, 0.0013065338134765625, 0.00858306884765625, 0.00836181640625, -0.029083251953125, -0.0020503997802734375, 0.00982666015625, -0.020782470703125, -0.025634765625, 0.006511688232421875, -0.002872467041015625, -0.02642822265625, 0.01045989990234375, -0.055023193359375, -0.02783203125, 0.02325439453125, -0.009033203125, -0.0172576904296875, 0.002956390380859375, -0.0312042236328125, -0.04656982421875, -0.0256195068359375, -0.045166015625, -0.01751708984375, -0.0218048095703125, -0.037384033203125, -0.0218505859375, 0.033050537109375, 0.0771484375, -0.030426025390625, -0.019439697265625, -0.038238525390625, -0.005634307861328125, -0.03375244140625, -0.0275421142578125, -0.0025577545166015625, -0.0465087890625, -0.00823974609375, 0.01003265380859375, 0.042816162109375, 0.06591796875, -0.034210205078125, 0.034271240234375, -0.014190673828125, -0.0301513671875, -0.0202484130859375, 0.035491943359375, -0.0195770263671875, 0.0010404586791992188, 0.005550384521484375, 0.027679443359375, 0.008697509765625, 0.01181793212890625, -0.008331298828125, -0.007564544677734375, 0.0196380615234375, 0.0060272216796875, -0.0214080810546875, -0.0133819580078125, -0.0027256011962890625, 0.0390625, -0.0289764404296875, -0.011688232421875, 0.018402099609375, 0.0239410400390625, 0.00876617431640625, -0.043487548828125, 0.0028209686279296875, -0.00574493408203125, -0.0089263916015625, 0.0188140869140625, -0.03948974609375, -0.024932861328125, 0.0183563232421875, -0.026947021484375, -0.00792694091796875, 0.021575927734375, 0.002197265625, 0.00870513916015625, -0.00970458984375, -0.04193115234375, 0.0215301513671875, -0.0261993408203125, 0.0014410018920898438, 0.0031223297119140625, -0.007213592529296875, -0.033111572265625, -0.0177001953125, -0.00836944580078125, 0.047698974609375, -0.0258636474609375, 0.04632568359375, 0.01166534423828125, 0.005706787109375, -0.0028095245361328125, -0.03302001953125, -0.01311492919921875, -0.0712890625, -0.0175628662109375, 0.014617919921875, 0.003299713134765625, 0.033050537109375, -0.021759033203125, 0.0098419189453125, -0.00681304931640625, -0.0132904052734375, -0.011138916015625, -0.0204315185546875, -0.0482177734375, 0.0195770263671875, 0.0504150390625, 0.0006103515625, -0.02001953125, -0.0179290771484375, 0.01264190673828125, -0.03326416015625, 0.0219268798828125, 0.0032901763916015625, 0.044525146484375, 0.020172119140625, 0.0213165283203125, 0.001071929931640625, -0.003688812255859375, -0.0282745361328125, 0.0089569091796875, 0.017913818359375, -0.0182342529296875, 0.007541656494140625, -0.007843017578125, -0.006305694580078125, -0.00830078125, -0.00832366943359375, 0.005222320556640625, -0.0149993896484375, 0.0142059326171875, 0.0013017654418945312, -0.033782958984375, 0.00975799560546875, 0.0143585205078125, -0.02667236328125, 0.0225677490234375, 0.0274505615234375, -0.0196533203125, -0.01143646240234375, -0.035186767578125, 0.0010900497436523438, 0.00799560546875, 0.0011453628540039062, -0.03350830078125, -0.004489898681640625, -0.0231475830078125, -0.002620697021484375, 0.00998687744140625, -0.0261993408203125, 0.0322265625, 0.0772705078125, -0.03009033203125, -0.005405426025390625, -0.04852294921875, 0.0208282470703125, 0.01458740234375, -0.09002685546875, 0.035186767578125, 0.014892578125, 0.006122589111328125, -0.01482391357421875, 0.027099609375, 0.017730712890625, 0.01316070556640625, -0.017608642578125, 0.0205535888671875, 0.0286102294921875, 0.0261688232421875, 0.012786865234375, 0.02044677734375, 0.009185791015625, -0.05987548828125, 0.0262298583984375, -0.0207672119140625, -0.004970550537109375, 0.043182373046875, 0.0264434814453125, 0.0245819091796875, 0.00547027587890625, 0.0228424072265625, 0.0014677047729492188, 0.0357666015625, -0.001506805419921875, 0.0102081298828125, -0.00879669189453125, -0.004795074462890625, 0.0026226043701171875, -0.0225982666015625, -0.027191162109375, -0.0179443359375, 0.007335662841796875, 0.00585174560546875, 0.0287017822265625, 0.029388427734375, -0.010345458984375, -0.0118865966796875, 0.0016345977783203125, 0.0247955322265625, 0.00299835205078125, 0.0154266357421875, 0.0018377304077148438, -0.00762939453125, -0.0014390945434570312, -0.0160675048828125, 0.0011157989501953125, -0.009674072265625, -0.0072784423828125, 0.031097412109375, 0.01678466796875, -0.01209259033203125, -0.0048828125, -0.024383544921875, 0.0186309814453125, 0.016204833984375, 0.026702880859375, 0.031707763671875, 0.0263671875, 0.054290771484375, -0.0244140625, 0.06787109375, -0.005523681640625, 0.00472259521484375, -0.0131988525390625, -0.06353759765625, 0.048828125, -0.0399169921875, 0.0341796875, 0.06591796875, -0.00438690185546875, 0.01346588134765625, 0.00713348388671875, -0.00872802734375, 0.0390625, -0.0099945068359375, -0.0236358642578125, 0.027069091796875, -0.09576416015625, -0.02508544921875, 0.01061248779296875, 0.04931640625, 0.0000489354133605957, -0.05133056640625, 0.021514892578125, 0.01580810546875, -0.06463623046875, -0.059783935546875, -0.007419586181640625, -0.0723876953125, -0.00002288818359375, 0.03973388671875, -0.037628173828125, -0.0134735107421875, 0.08740234375, 0.0016193389892578125, 0.048675537109375, -0.04156494140625, -0.0645751953125, -0.02484130859375, -0.083251953125, -0.004932403564453125, -0.0032444000244140625, 0.003665924072265625, -0.003917694091796875, 0.02630615234375, 0.005359649658203125, -0.043365478515625, -0.012298583984375, 0.0090789794921875, -0.025238037109375, -0.0227203369140625, -0.005626678466796875, 0.028839111328125, -0.01204681396484375, 0.0233612060546875, -0.02911376953125, 0.0170745849609375, -0.0134124755859375, -0.01137542724609375, -0.007476806640625, 0.0207366943359375, 0.038360595703125, 0.022705078125, -0.0205230712890625, 0.05389404296875, 0.051361083984375, -0.00287628173828125, -0.043853759765625, -0.03363037109375, -0.08062744140625, 0.005401611328125, 0.07208251953125, 0.007259368896484375, -0.0399169921875, 0.0085906982421875, -0.0260772705078125, -0.011444091796875, -0.0137176513671875, -0.020721435546875, 0.01404571533203125, 0.00968170166015625, 0.016937255859375, 0.040740966796875, -0.00711822509765625, -0.01311492919921875, 0.04852294921875, 0.0008382797241210938, 0.0220794677734375, -0.00901031494140625, 0.0294189453125, -0.034637451171875, -0.040863037109375, 0.050048828125, -0.0280303955078125, 0.01149749755859375, -0.041961669921875, -0.04388427734375, -0.0055694580078125, 0.0926513671875, -0.08447265625, -0.028106689453125, 0.0174560546875, 0.024169921875, 0.00756072998046875, -0.0682373046875, -0.0231170654296875, -0.035430908203125, -0.082763671875, 0.0210723876953125, -0.0176544189453125, -0.00818634033203125, -0.0162353515625, 0.0295867919921875, -0.027862548828125, -0.021453857421875, 0.0123291015625, -0.0101318359375, -0.01105499267578125, 0.0211029052734375, -0.07000732421875, 0.04473876953125, -0.0355224609375, -0.01708984375, -0.022979736328125, -0.01421356201171875, 0.032623291015625, 0.0135498046875, 0.006740570068359375, -0.0146484375, -0.0218353271484375, 0.015960693359375, 0.017486572265625, 0.02777099609375, 0.028900146484375, -0.00994110107421875, 0.059234619140625, -0.01708984375, 0.005283355712890625, -0.040557861328125, -0.00153350830078125, -0.0164947509765625, -0.0023441314697265625, 0.0154266357421875, -0.0565185546875, -0.00833892822265625, -0.0517578125, -0.01451873779296875, -0.030303955078125, -0.00612640380859375, 0.03277587890625, 0.040740966796875, 0.004817962646484375, 0.01235198974609375, -0.0278472900390625, -0.0482177734375, 0.037994384765625, 0.025177001953125, -0.037078857421875, -0.012481689453125, 0.0274658203125, 0.03192138671875, -0.036468505859375, 0.01529693603515625, 0.00977325439453125, 0.034393310546875, -0.002048492431640625, 0.0090789794921875, -0.019989013671875, -0.03466796875, 0.0626220703125, -0.01084136962890625, -0.01372528076171875, 0.01385498046875, 0.01678466796875, 0.0012464523315429688, -0.035430908203125, 0.0174407958984375, -0.00719451904296875, 0.0011959075927734375, 0.00983428955078125, -0.038238525390625, -0.0159454345703125, -0.0202178955078125, 0.06475830078125, -0.03277587890625, 0.06866455078125, -0.0234527587890625, -0.014923095703125, -0.01216888427734375, 0.061187744140625, 0.047882080078125, 0.052764892578125, -0.007587432861328125, 0.0220489501953125, 0.035491943359375, -0.02325439453125, -0.0136260986328125, 0.007328033447265625, 0.0180511474609375, 0.0259246826171875, -0.052459716796875, -0.023773193359375, -0.01340484619140625, -0.008148193359375, 0.0831298828125, 0.0175933837890625, -0.022186279296875, -0.0118865966796875, -0.0229034423828125, 0.0017518997192382812, -0.00154876708984375, 0.003986358642578125, 0.04034423828125, 0.048553466796875, -0.00516510009765625, -0.003437042236328125, -0.007904052734375, 0.0285186767578125, -0.037445068359375, 0.01641845703125, -0.0017423629760742188, 0.008453369140625, 0.0211029052734375, 0.10064697265625, -0.048675537109375, 0.08673095703125, -0.030029296875, 0.012969970703125, 0.0194244384765625, 0.027923583984375, 0.01629638671875, -0.00531768798828125, -0.00821685791015625, 0.0145721435546875, 0.036956787109375, -0.028167724609375, -0.00203704833984375, 0.02978515625, 0.0301513671875, 0.025665283203125, -0.0109405517578125, 0.0225372314453125, -0.0019626617431640625, -0.0330810546875, 0.049163818359375, 0.1038818359375, -0.01611328125, -0.006862640380859375, 0.02978515625, 0.00807952880859375, 0.0474853515625, -0.0158843994140625, 0.00870513916015625, -0.010498046875, 0.034942626953125, -0.06097412109375, 0.01163482666015625, 0.01210784912109375, 0.016998291015625, 0.0022335052490234375, -0.011444091796875, -0.006534576416015625, 0.01474761962890625, 0.01511383056640625, -0.0277252197265625, -0.0278167724609375, 0.046356201171875, -0.0178680419921875, 0.06597900390625, -0.071044921875, 0.01134490966796875, -0.0400390625, -0.0029087066650390625, 0.055877685546875, 0.042572021484375, -0.0367431640625, 0.0233612060546875, -0.04833984375, -0.0064544677734375, -0.007778167724609375, -0.043304443359375, -0.030181884765625, -0.0261077880859375, 0.0162353515625, 0.0238037109375, 0.006061553955078125, 0.005687713623046875, 0.004177093505859375, 0.0302276611328125, -0.000316619873046875, 0.07684326171875, -0.003520965576171875, 0.09222412109375, 0.0264892578125, 0.1024169921875, 0.0272369384765625, 0.0447998046875, -0.07122802734375, -0.0276641845703125, 0.0264892578125, -0.04931640625, -0.039093017578125, -0.0254669189453125, -0.0225982666015625, -0.0012655258178710938, 0.01222991943359375, -0.005962371826171875, -0.01061248779296875, 0.007472991943359375, 0.0215606689453125, -0.005680084228515625, -0.038818359375, 0.04620361328125, -0.06463623046875, 0.065673828125, -0.0126800537109375, 0.0244903564453125, -0.00522613525390625, -0.017303466796875, -0.01049041748046875, 0.00774383544921875, -0.00965118408203125, 0.0247344970703125, -0.0204315185546875, 0.00011754035949707031, 0.053955078125, 0.005184173583984375, 0.051727294921875, 0.022979736328125, 0.037506103515625, 0.06103515625, -0.0154571533203125, 0.030242919921875, 0.005279541015625, 0.057403564453125, -0.0053863525390625, 0.005992889404296875, 0.045318603515625, -0.0296173095703125, 0.0026149749755859375, -0.033935546875, 0.039398193359375, 0.010345458984375, 0.00968170166015625, 0.028839111328125, -0.021514892578125, 0.0080718994140625, 0.028167724609375, 0.01396942138671875, -0.01093292236328125, 0.0005178451538085938, -0.0182342529296875, -0.002803802490234375, 0.0057373046875, -0.0169219970703125, 0.0126800537109375, -0.035003662109375, 0.0177764892578125, -0.0106964111328125, -0.077880859375, -0.015960693359375, 0.0341796875, -0.0254974365234375, -0.035247802734375, -0.014862060546875, 0.0086669921875, -0.036102294921875, -0.0926513671875, -0.01503753662109375, 0.019256591796875, -0.006702423095703125, 0.0005326271057128906, 0.0179901123046875, 0.0101470947265625, 0.046783447265625, -0.0073089599609375, 0.01401519775390625, 0.00910186767578125, -0.03521728515625, -0.01474761962890625, -0.01446533203125, 0.001171112060546875, -0.0026149749755859375, -0.030792236328125, 0.025665283203125, -0.04547119140625, -0.0243682861328125, -0.0168609619140625, -0.01168060302734375, 0.075439453125, 0.0018224716186523438, -0.03662109375, 0.034149169921875, 0.00628662109375, -0.0209197998046875, -0.0083160400390625, 0.022003173828125, -0.031158447265625, 0.03289794921875, -0.0137481689453125, 0.022857666015625, 0.011993408203125, -0.035003662109375, -0.10369873046875, 0.052947998046875, 0.00736236572265625, 0.05224609375, -0.00347137451171875, 0.0030059814453125, -0.00019252300262451172, -0.02593994140625, -0.044281005859375, 0.057037353515625, -0.0013761520385742188, 0.045867919921875, -0.0411376953125, -0.01113128662109375, 0.012481689453125, 0.046051025390625, 0.048492431640625, 0.0088653564453125, -0.0030918121337890625, -0.01165771484375, 0.05511474609375, 0.06005859375, -0.01032257080078125, 0.01788330078125, 0.01480865478515625, 0.029571533203125, 0.04595947265625, -0.031097412109375, 0.040435791015625, 0.0016450881958007812, 0.0033664703369140625, 0.035797119140625, 0.031524658203125, 0.01239776611328125, 0.0222625732421875, -0.00009495019912719727, -0.04339599609375, 0.0242156982421875, 0.016876220703125, 0.01361083984375, -0.00691986083984375, 0.07171630859375, 0.0506591796875, -0.01255035400390625, 0.026580810546875, -0.046173095703125, 0.056854248046875, 0.001064300537109375, 0.0257415771484375, 0.029449462890625, 0.0192718505859375, 0.0355224609375, -0.01406097412109375, 0.0123291015625, 0.005229949951171875, 0.0102996826171875, 0.0875244140625, 0.018798828125, 0.0276336669921875, -0.0799560546875, -0.034271240234375, 0.044219970703125, 0.10748291015625, -0.052581787109375, 0.0002620220184326172, 0.0115509033203125, -0.014862060546875, -0.01253509521484375, -0.0386962890625, -0.0254058837890625, 0.0255279541015625, 0.02099609375, 0.0019369125366210938, -0.027130126953125, 0.0254364013671875, 0.0230865478515625, 0.026702880859375, 0.017913818359375, -0.025726318359375, -0.0305328369140625, -0.035064697265625, 0.004924774169921875, 0.0185699462890625, 0.031097412109375, 0.0048675537109375, 0.035614013671875, 0.00028324127197265625, 0.00959014892578125, 0.044677734375, 0.0310821533203125, -0.03338623046875, -0.037689208984375, 0.00847625732421875, -0.06317138671875, -0.050933837890625, 0.00577545166015625, 0.048370361328125, 0.025848388671875, 0.0203857421875, -0.01265716552734375, -0.0034618377685546875, 0.010223388671875, 0.0027217864990234375, -0.0219573974609375, 0.01026153564453125, -0.034271240234375, 0.00012087821960449219, 0.006214141845703125, -0.0279541015625, -0.011627197265625, -0.0078125, 0.036468505859375, -0.02459716796875, 0.0430908203125, -0.00644683837890625, -0.01238250732421875, 0.021484375, -0.026458740234375, 0.037506103515625, -0.02069091796875, -0.0743408203125, -0.00025200843811035156, -0.045318603515625, -0.03143310546875, 0.003803253173828125, 0.01922607421875, -0.003368377685546875, 0.003940582275390625, -0.0032367706298828125, -0.00007933378219604492, 0.0126800537109375, -0.01509857177734375, 0.0176544189453125, 0.054718017578125, 0.005748748779296875, 0.0245361328125, -0.054443359375, -0.0247955322265625, -0.014739990234375, 0.015045166015625, 0.0286102294921875, -0.036895751953125, 0.0435791015625, 0.044830322265625, 0.003643035888671875, 0.0653076171875, -0.06427001953125, -0.032257080078125, 0.06695556640625, -0.013824462890625, 0.01739501953125, -0.0255584716796875, -0.042449951171875, 0.052490234375, 0.024993896484375, -0.0026493072509765625, 0.041595458984375, -0.024017333984375, -0.0026397705078125, -0.0173187255859375, 0.02545166015625, -0.0198516845703125, 0.002162933349609375, 0.0034885406494140625, -0.01605224609375, 0.03717041015625, -0.006542205810546875, -0.022674560546875, 0.0235137939453125, 0.0282440185546875, -0.034942626953125, 0.0244293212890625, -0.030548095703125, 0.048675537109375, 0.04278564453125, -0.00836181640625, 0.0029850006103515625, 0.022369384765625, -0.00289154052734375, 0.00023794174194335938, 0.039031982421875, -0.00524139404296875, 0.0036754608154296875, -0.00714874267578125, 0.005680084228515625, -0.0016126632690429688, 0.057220458984375, -0.00847625732421875, 0.0196990966796875, 0.0101318359375, 0.0142822265625, -0.024017333984375, -0.045166015625, -0.01052093505859375, -0.05010986328125, -0.011199951171875, 0.04302978515625, -0.03289794921875, 0.0163726806640625, -0.0440673828125, -0.0295257568359375, 0.013214111328125, -0.016326904296875, 0.006496429443359375, 0.00818634033203125, -0.034942626953125, -0.0266265869140625, -0.02093505859375, -0.0257415771484375, 0.0141143798828125, 0.020538330078125, -0.0006995201110839844, -0.012176513671875, -0.0379638671875, 0.00431060791015625, -0.03082275390625, 0.003299713134765625, -0.0005316734313964844, -0.00982666015625, -0.0073394775390625, 0.0013189315795898438, -0.004802703857421875, 0.049072265625, 0.0264129638671875, 0.0024700164794921875, 0.0172271728515625, 0.0133209228515625, -0.03765869140625, -0.0584716796875, 0.036163330078125, -0.03759765625, -0.03765869140625, -0.011322021484375, -0.01898193359375, -0.006908416748046875, -0.038604736328125, -0.04888916015625, 0.06005859375, -0.01068115234375, -0.0265350341796875, -0.046478271484375, 0.00394439697265625, 0.0018720626831054688, -0.01403045654296875, -0.00417327880859375, -0.0231781005859375, -0.0285797119140625, 0.019927978515625, 0.0230712890625, 0.05218505859375, -0.0078277587890625, 0.03106689453125, -0.0219879150390625, 0.037017822265625, 0.014862060546875, -0.0031299591064453125, 0.016143798828125, -0.0020160675048828125, 0.0031528472900390625, 0.01171112060546875, -0.06304931640625, 0.0162811279296875, -0.026947021484375, 0.040313720703125, -0.005260467529296875, -0.01511383056640625, -0.0073089599609375, -0.0045623779296875, 0.036956787109375, 0.05657958984375, 0.01132965087890625, -0.041229248046875, 0.0289764404296875, 0.022979736328125, -0.07684326171875, 0.0118865966796875, 0.0232391357421875, -0.03143310546875, -0.0167083740234375, 0.005626678466796875, -0.0177764892578125, -0.004058837890625, -0.019927978515625, -0.052703857421875, -0.01325225830078125, -0.062103271484375, 0.0160675048828125, -0.06317138671875, 0.06072998046875, 0.078369140625, -0.060333251953125, 0.00421142578125, -0.00318145751953125, -0.008453369140625, 0.0384521484375, -0.05810546875, 0.0245361328125, 0.037933349609375, -0.019012451171875, -0.021087646484375, 0.043060302734375, -0.00035190582275390625, 0.01320648193359375, -0.02685546875, -0.015289306640625, 0.020843505859375, -0.00006467103958129883, -0.005390167236328125, -0.01136016845703125, 0.01702880859375, -0.004016876220703125, 0.07379150390625, 0.01432037353515625, 0.05694580078125, 0.015106201171875, 0.0570068359375, -0.0224761962890625, -0.0224151611328125, -0.0298614501953125, -0.021636962890625, -0.00177001953125, 0.0038509368896484375, -0.01025390625, -0.0294036865234375, 0.009185791015625, 0.06439208984375, -0.0005903244018554688, 0.01505279541015625 ]
b909656b9371826e865fe515aaaa19cb975b0830
Wordpress Stackexchange Q: How do I Make a custom post type get a custom post template in a plugin I am writing a plugin in which I am adding a custom post type(called 'events') using register_post_type. Additionally I want it to use single-event.php instead of the regular single.php. The current structure of the plugin folder is : * *plugin-main-file.php *single-event.php I know its possible if I place it inside my theme directory, but I want it to be placed inside the plugin and utilize it. How do I do it? Any custom function for that? A: This is what I've always done. Not sure if you need both $wp_query and $post but it's always worked for me. Just put this in plugin-main-file.php /** * Add single template for events post type plugin */ function custom_template_events_post_type_plugin($single) { global $wp_query, $post; if ($post->post_type == "events"){ $template = dirname( __FILE__ ) . '/single-event.php'; if(file_exists( $template )) return $template; } return $single; } add_filter('single_template', 'custom_template_events_post_type_plugin');
Q: How do I Make a custom post type get a custom post template in a plugin I am writing a plugin in which I am adding a custom post type(called 'events') using register_post_type. Additionally I want it to use single-event.php instead of the regular single.php. The current structure of the plugin folder is : * *plugin-main-file.php *single-event.php I know its possible if I place it inside my theme directory, but I want it to be placed inside the plugin and utilize it. How do I do it? Any custom function for that? A: This is what I've always done. Not sure if you need both $wp_query and $post but it's always worked for me. Just put this in plugin-main-file.php /** * Add single template for events post type plugin */ function custom_template_events_post_type_plugin($single) { global $wp_query, $post; if ($post->post_type == "events"){ $template = dirname( __FILE__ ) . '/single-event.php'; if(file_exists( $template )) return $template; } return $single; } add_filter('single_template', 'custom_template_events_post_type_plugin'); A: function get_custom_post_type_template($single_template) { global $post; if ($post->post_type == 'events') { $single_template = dirname( __FILE__ ) . '/single-event.php'; } return $single_template; } add_filter( 'single_template', 'get_custom_post_type_template' ); Source Or you could use: add_filter( 'template_include', 'single_event_template', 99 ); function single_event_template( $template ) { if ( is_singular('event') ) { $new_template = locate_template( array( 'single-event.php' ) ); if ( '' != $new_template ) { return $new_template ; } } return $template; } Source Or you could use locate_template
wordpress
{ "language": "en", "length": 233, "provenance": "stackexchange_00019.jsonl.gz:447888", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/157993" }
[ 0.0614013671875, -0.00860595703125, 0.0295562744140625, -0.061431884765625, 0.01763916015625, -0.00811767578125, 0.0228424072265625, -0.01122283935546875, -0.041107177734375, 0.0213775634765625, 0.0565185546875, 0.0260009765625, -0.0285491943359375, -0.049835205078125, 0.0246124267578125, -0.0001201629638671875, 0.0323486328125, -0.03076171875, 0.001338958740234375, -0.03448486328125, 0.036865234375, -0.0024967193603515625, -0.003009796142578125, 0.0703125, 0.022308349609375, 0.0163726806640625, 0.10400390625, -0.0404052734375, 0.03839111328125, -0.0057830810546875, 0.0271148681640625, -0.034637451171875, 0.022918701171875, 0.00707244873046875, -0.023162841796875, 0.0228729248046875, -0.002735137939453125, 0.00750732421875, 0.00849151611328125, 0.0210418701171875, 0.01556396484375, 0.00824737548828125, 0.00860595703125, 0.031097412109375, -0.01084136962890625, -0.04388427734375, 0.0258331298828125, -0.0295257568359375, 0.01070404052734375, -0.02880859375, 0.0073394775390625, -0.034881591796875, 0.038848876953125, -0.07720947265625, -0.0242156982421875, -0.021697998046875, -0.0240325927734375, -0.02557373046875, 0.025543212890625, 0.0195770263671875, 0.00930023193359375, -0.015869140625, 0.0225372314453125, -0.00728607177734375, -0.01885986328125, 0.0027828216552734375, 0.011993408203125, 0.0142059326171875, -0.0223541259765625, -0.0223846435546875, 0.0191192626953125, -0.0113067626953125, 0.0176544189453125, -0.0015087127685546875, -0.00649261474609375, -0.0195770263671875, 0.0165557861328125, -0.00537872314453125, 0.0059967041015625, -0.00032806396484375, 0.0171966552734375, -0.020599365234375, 0.016265869140625, -0.0462646484375, 0.00989532470703125, -0.023345947265625, -0.0028400421142578125, 0.00919342041015625, -0.00704193115234375, 0.007694244384765625, -0.018463134765625, -0.017486572265625, 0.006977081298828125, 0.0221710205078125, -0.01505279541015625, -0.01502227783203125, 0.013519287109375, 0.034027099609375, -0.023284912109375, 0.0289306640625, 0.00948333740234375, -0.04473876953125, 0.068603515625, -0.050323486328125, 0.01396942138671875, 0.0311279296875, -0.008636474609375, -0.01165771484375, 0.04168701171875, 0.0295562744140625, 0.01346588134765625, 0.0185546875, -0.0200653076171875, -0.008514404296875, -0.040557861328125, 0.022918701171875, -0.021209716796875, -0.00296783447265625, -0.00017881393432617188, 0.026336669921875, 0.0308074951171875, 0.030242919921875, 0.0574951171875, -0.006439208984375, -0.039276123046875, -0.014739990234375, -0.01580810546875, -0.0927734375, -0.01788330078125, -0.0014858245849609375, -0.019927978515625, 0.0113067626953125, 0.05926513671875, 0.04180908203125, 0.00013959407806396484, -0.01076507568359375, 0.0188446044921875, -0.007106781005859375, -0.02581787109375, 0.0016775131225585938, 0.03192138671875, 0.008819580078125, -0.00772857666015625, -0.01349639892578125, 0.0178070068359375, 0.00809478759765625, 0.0160369873046875, 0.01837158203125, -0.005794525146484375, 0.004634857177734375, -0.00527191162109375, 0.007476806640625, 0.0211181640625, 0.00176239013671875, 0.004535675048828125, -0.0467529296875, -0.0029697418212890625, -0.024017333984375, 0.035400390625, -0.031524658203125, 0.0042877197265625, 0.0010633468627929688, 0.0023670196533203125, -0.01099395751953125, -0.0222625732421875, 0.00653076171875, -0.0267181396484375, -0.00022542476654052734, 0.01898193359375, -0.0183563232421875, 0.01230621337890625, 0.0204010009765625, 0.005924224853515625, 0.0154266357421875, 0.005615234375, 0.0015106201171875, -0.0236968994140625, 0.0008282661437988281, 0.02105712890625, 0.060272216796875, 0.00666046142578125, -0.0192413330078125, 0.027130126953125, -0.0015935897827148438, -0.057830810546875, 0.029937744140625, 0.002918243408203125, 0.01308441162109375, 0.00940704345703125, 0.0027294158935546875, 0.036041259765625, 0.053131103515625, -0.032073974609375, -0.024566650390625, -0.007526397705078125, 0.0016088485717773438, -0.0007987022399902344, -0.00537109375, -0.007091522216796875, 0.0285797119140625, -0.0452880859375, -0.0034885406494140625, 0.0028820037841796875, 0.015106201171875, -0.02471923828125, 0.0145263671875, -0.0097808837890625, 0.032684326171875, -0.0036334991455078125, 0.0011758804321289062, 0.007228851318359375, -0.0011844635009765625, 0.00009554624557495117, -0.059722900390625, -0.0205535888671875, 0.03985595703125, 0.036895751953125, 0.0253753662109375, -0.01297760009765625, 0.036285400390625, -0.013336181640625, -0.04052734375, -0.036712646484375, 0.045867919921875, 0.055572509765625, 0.00698089599609375, -0.0233306884765625, -0.01532745361328125, -0.005748748779296875, 0.0267791748046875, -0.08331298828125, 0.040008544921875, -0.01519775390625, -0.0198822021484375, -0.0286865234375, 0.0074462890625, 0.018157958984375, -0.01445770263671875, 0.01242828369140625, 0.0297088623046875, 0.0246734619140625, 0.036834716796875, 0.0183563232421875, 0.050537109375, 0.03558349609375, -0.0189208984375, 0.01849365234375, 0.0118408203125, 0.01259613037109375, 0.01169586181640625, 0.0005726814270019531, -0.01245880126953125, 0.02593994140625, -0.021514892578125, 0.03692626953125, 0.0158843994140625, -0.0052032470703125, -0.0215606689453125, 0.01519012451171875, 0.005092620849609375, 0.0037364959716796875, 0.01248931884765625, -0.006404876708984375, 0.004810333251953125, 0.052947998046875, 0.0104217529296875, 0.04644775390625, 0.0259552001953125, -0.0243072509765625, 0.0150299072265625, 0.007770538330078125, -0.0121307373046875, -0.01242828369140625, -0.00435638427734375, -0.00899505615234375, 0.06103515625, -0.06640625, 0.0176239013671875, 0.02197265625, 0.014190673828125, -0.018463134765625, 0.032745361328125, -0.061279296875, -0.0167236328125, -0.03497314453125, -0.04437255859375, -0.007442474365234375, 0.0236968994140625, 0.0135650634765625, -0.0233612060546875, 0.01654052734375, 0.010589599609375, -0.043914794921875, 0.057037353515625, 0.008087158203125, -0.041351318359375, 0.01117706298828125, -0.057098388671875, 0.04541015625, -0.04962158203125, 0.0604248046875, 0.05914306640625, -0.0294036865234375, 0.0199432373046875, 0.00963592529296875, -0.007274627685546875, 0.016571044921875, -0.0019969940185546875, -0.0261688232421875, -0.0296783447265625, -0.018585205078125, 0.006988525390625, 0.0213470458984375, 0.05584716796875, 0.00778961181640625, -0.04071044921875, 0.01519012451171875, 0.046783447265625, 0.007717132568359375, -0.0022106170654296875, 0.0240936279296875, -0.057861328125, 0.0195465087890625, -0.060546875, -0.0293121337890625, -0.018890380859375, -0.050628662109375, 0.0014028549194335938, -0.0202789306640625, 0.00868988037109375, -0.0426025390625, -0.0244903564453125, -0.05609130859375, 0.0122222900390625, -0.0035572052001953125, 0.01739501953125, 0.0021762847900390625, 0.10577392578125, 0.033599853515625, -0.0662841796875, 0.01012420654296875, 0.03533935546875, -0.040863037109375, 0.0134124755859375, 0.0249176025390625, -0.035308837890625, 0.03131103515625, 0.0006451606750488281, -0.04052734375, 0.053741455078125, -0.033294677734375, -0.033172607421875, -0.0215911865234375, -0.01357269287109375, 0.007411956787109375, 0.035400390625, 0.031280517578125, 0.0096435546875, 0.042816162109375, -0.0374755859375, -0.017303466796875, -0.0192413330078125, -0.03643798828125, 0.010589599609375, 0.0308837890625, -0.0113677978515625, -0.0438232421875, 0.030731201171875, 0.003993988037109375, 0.0190582275390625, 0.0260009765625, -0.01629638671875, 0.0465087890625, 0.00933837890625, -0.01018524169921875, -0.0233306884765625, -0.01549530029296875, -0.0372314453125, 0.0265350341796875, -0.01313018798828125, 0.0004322528839111328, -0.0091552734375, 0.00133514404296875, -0.03717041015625, -0.0819091796875, 0.06158447265625, -0.0200958251953125, -0.00841522216796875, -0.0276641845703125, -0.02978515625, 0.0222930908203125, 0.104736328125, -0.07635498046875, -0.01641845703125, -0.008087158203125, 0.004039764404296875, 0.007160186767578125, -0.032440185546875, -0.0182952880859375, -0.01934814453125, -0.058990478515625, 0.022705078125, 0.0004718303680419922, -0.0150146484375, -0.0271453857421875, 0.0230255126953125, -0.0538330078125, -0.0229644775390625, 0.036529541015625, -0.043548583984375, 0.0205841064453125, 0.0379638671875, -0.0094757080078125, 0.0001596212387084961, -0.0177154541015625, -0.03839111328125, -0.05841064453125, -0.01369476318359375, -0.00345611572265625, 0.055511474609375, 0.01727294921875, -0.007579803466796875, -0.02178955078125, 0.03302001953125, 0.0264434814453125, -0.01418304443359375, -0.0015773773193359375, -0.0185394287109375, -0.0046844482421875, -0.0016736984252929688, -0.01099395751953125, -0.015838623046875, -0.0014257431030273438, 0.018951416015625, -0.0173187255859375, 0.03582763671875, -0.01479339599609375, -0.035614013671875, 0.02685546875, -0.045196533203125, -0.015960693359375, -0.00431060791015625, 0.00954437255859375, 0.0260467529296875, -0.0018157958984375, -0.01204681396484375, 0.00014507770538330078, -0.0274658203125, 0.0240631103515625, 0.0172119140625, -0.017822265625, 0.01715087890625, 0.08563232421875, 0.024139404296875, -0.02191162109375, -0.080810546875, 0.04010009765625, 0.034332275390625, 0.0318603515625, 0.0243988037109375, 0.01003265380859375, -0.014617919921875, 0.0232391357421875, 0.0096588134765625, 0.01175689697265625, -0.031829833984375, 0.060699462890625, 0.00365447998046875, -0.0210723876953125, 0.032928466796875, -0.01165771484375, 0.0003020763397216797, 0.0188140869140625, -0.00008237361907958984, -0.051177978515625, 0.0271148681640625, 0.06060791015625, -0.033294677734375, 0.045745849609375, -0.03350830078125, -0.0299835205078125, 0.01959228515625, 0.013824462890625, 0.0086822509765625, 0.0369873046875, -0.0168304443359375, 0.018310546875, -0.043243408203125, -0.00787353515625, 0.033660888671875, 0.0301055908203125, 0.01436614990234375, 0.00933074951171875, 0.06292724609375, -0.00540924072265625, -0.016387939453125, 0.007259368896484375, 0.0159912109375, -0.0029544830322265625, -0.0211334228515625, -0.033660888671875, -0.0181427001953125, -0.02423095703125, -0.01186370849609375, -0.031005859375, 0.0293731689453125, 0.050506591796875, -0.0129241943359375, 0.007442474365234375, -0.034210205078125, 0.0213623046875, -0.03875732421875, -0.058013916015625, -0.003993988037109375, -0.025726318359375, -0.0043182373046875, 0.006267547607421875, 0.00574493408203125, -0.0086822509765625, -0.011688232421875, 0.0584716796875, 0.04901123046875, 0.043701171875, 0.0258941650390625, -0.052642822265625, -0.025421142578125, 0.01873779296875, -0.058349609375, -0.0538330078125, -0.034576416015625, -0.0183563232421875, 0.048583984375, -0.0260162353515625, 0.0022068023681640625, 0.051605224609375, 0.0173492431640625, -0.01052093505859375, -0.0002923011779785156, 0.0276031494140625, 0.004070281982421875, -0.015777587890625, 0.018707275390625, 0.0350341796875, 0.0242767333984375, -0.0303802490234375, 0.040130615234375, -0.052459716796875, 0.0135498046875, 0.02685546875, -0.0201873779296875, 0.0079498291015625, -0.0084991455078125, -0.018218994140625, -0.021484375, 0.012237548828125, -0.048980712890625, -0.0166015625, -0.01538848876953125, -0.004779815673828125, 0.01305389404296875, -0.0443115234375, 0.026123046875, -0.01922607421875, 0.005168914794921875, -0.02520751953125, 0.018646240234375, 0.036529541015625, 0.023834228515625, -0.04290771484375, -0.01000213623046875, -0.00934600830078125, -0.0221099853515625, -0.0241241455078125, -0.0217132568359375, -0.04248046875, 0.0096282958984375, -0.012054443359375, 0.025115966796875, -0.0199432373046875, 0.00699615478515625, 0.0015115737915039062, -0.00844573974609375, -0.04034423828125, 0.02117919921875, -0.0004968643188476562, 0.0845947265625, 0.01335906982421875, 0.061492919921875, 0.02056884765625, 0.0311737060546875, -0.033782958984375, -0.00849151611328125, -0.005420684814453125, -0.02899169921875, -0.016326904296875, -0.0286865234375, 0.01450347900390625, 0.04742431640625, 0.05328369140625, 0.00542449951171875, -0.0182952880859375, -0.0225830078125, -0.0075225830078125, -0.0268402099609375, 0.050262451171875, -0.0002301931381225586, -0.01215362548828125, 0.00156402587890625, -0.03753662109375, -0.014312744140625, 0.0031528472900390625, 0.00616455078125, 0.02252197265625, -0.020538330078125, 0.004993438720703125, 0.0322265625, -0.0087432861328125, 0.0606689453125, 0.0299224853515625, 0.0016813278198242188, 0.033233642578125, 0.0043182373046875, 0.02386474609375, -0.0241241455078125, 0.0119476318359375, -0.005283355712890625, -0.006744384765625, 0.06744384765625, 0.006923675537109375, -0.05291748046875, 0.02911376953125, -0.049560546875, 0.0169830322265625, 0.02020263671875, 0.0379638671875, -0.0721435546875, 0.022247314453125, -0.00760650634765625, 0.020355224609375, 0.08123779296875, -0.00452423095703125, 0.002941131591796875, 0.00757598876953125, -0.0010204315185546875, 0.0267333984375, -0.02532958984375, -0.0029621124267578125, 0.0206146240234375, 0.0010843276977539062, 0.003215789794921875, 0.0723876953125, 0.009246826171875, -0.03607177734375, -0.0035915374755859375, -0.0013608932495117188, 0.00785064697265625, -0.01334381103515625, 0.0469970703125, -0.0233917236328125, -0.0008401870727539062, -0.043365478515625, 0.01335906982421875, -0.003917694091796875, -0.0192718505859375, 0.04949951171875, -0.0022754669189453125, 0.02667236328125, 0.0380859375, -0.00605010986328125, 0.01312255859375, 0.00873565673828125, -0.0106201171875, -0.048919677734375, -0.021270751953125, -0.000335693359375, 0.035308837890625, -0.04241943359375, 0.025390625, -0.0299530029296875, -0.00484466552734375, -0.0271759033203125, -0.016448974609375, 0.0963134765625, -0.00678253173828125, -0.032623291015625, 0.029083251953125, 0.0227813720703125, -0.024658203125, -0.00466156005859375, 0.01180267333984375, -0.05517578125, -0.0215911865234375, 0.01082611083984375, -0.031585693359375, -0.00940704345703125, 0.00609588623046875, -0.07598876953125, 0.1141357421875, 0.015777587890625, 0.024200439453125, 0.01678466796875, 0.04449462890625, -0.0648193359375, 0.005344390869140625, -0.0198211669921875, 0.035888671875, -0.030792236328125, 0.06292724609375, -0.05682373046875, -0.01053619384765625, 0.01116943359375, 0.056976318359375, 0.10052490234375, 0.01593017578125, -0.007740020751953125, 0.03302001953125, 0.0804443359375, 0.01062774658203125, -0.0299835205078125, 0.03350830078125, 0.0032787322998046875, 0.0080413818359375, 0.036102294921875, 0.033538818359375, 0.0626220703125, -0.00032973289489746094, -0.0360107421875, 0.0225372314453125, 0.00016200542449951172, -0.01200103759765625, -0.010955810546875, -0.053070068359375, -0.01406097412109375, -0.0027618408203125, -0.007541656494140625, 0.00649261474609375, -0.007732391357421875, 0.043060302734375, 0.040802001953125, -0.025054931640625, 0.006603240966796875, -0.037750244140625, 0.052398681640625, 0.00792694091796875, 0.002346038818359375, -0.0003113746643066406, 0.0059051513671875, -0.034698486328125, -0.0360107421875, -0.007053375244140625, 0.0122528076171875, -0.021331787109375, 0.036224365234375, -0.012451171875, 0.00662994384765625, -0.07171630859375, 0.0200653076171875, 0.044403076171875, 0.046600341796875, -0.0457763671875, -0.04107666015625, 0.004917144775390625, 0.01806640625, 0.0021724700927734375, -0.0045166015625, 0.01102447509765625, -0.00925445556640625, 0.038909912109375, -0.030426025390625, -0.01290130615234375, 0.0360107421875, 0.002231597900390625, -0.0019464492797851562, -0.004547119140625, -0.01666259765625, -0.0007014274597167969, -0.048187255859375, 0.024505615234375, 0.04638671875, 0.03570556640625, 0.00013959407806396484, 0.0304107666015625, 0.0306549072265625, -0.00458526611328125, 0.0013113021850585938, -0.0037841796875, -0.0252838134765625, -0.000024318695068359375, -0.0108795166015625, -0.02838134765625, 0.0003764629364013672, 0.0282745361328125, 0.028839111328125, 0.003875732421875, 0.035247802734375, 0.00809478759765625, -0.0194091796875, -0.007579803466796875, 0.01531219482421875, -0.0218963623046875, 0.0179595947265625, -0.0201568603515625, -0.006275177001953125, -0.00560760498046875, -0.04107666015625, -0.0108642578125, -0.002277374267578125, 0.0257110595703125, -0.00475311279296875, 0.0259246826171875, -0.006633758544921875, -0.0261993408203125, 0.03839111328125, -0.02655029296875, 0.06781005859375, 0.0106201171875, -0.08074951171875, -0.01042938232421875, -0.0307769775390625, -0.06439208984375, 0.039398193359375, 0.06365966796875, -0.026153564453125, 0.0027923583984375, 0.01410675048828125, 0.01451873779296875, 0.017974853515625, -0.0562744140625, 0.0309906005859375, 0.0126190185546875, -0.0011911392211914062, 0.023193359375, -0.074462890625, -0.0609130859375, -0.04351806640625, 0.060882568359375, 0.0330810546875, 0.050384521484375, -0.0079803466796875, 0.042510986328125, -0.0005197525024414062, 0.02203369140625, -0.0288238525390625, -0.0012416839599609375, 0.0034389495849609375, -0.003627777099609375, 0.014984130859375, -0.007587432861328125, -0.04998779296875, -0.017486572265625, 0.06292724609375, -0.0447998046875, -0.007106781005859375, 0.00949859619140625, 0.0188140869140625, -0.041595458984375, 0.062225341796875, -0.0124053955078125, 0.01367950439453125, -0.032257080078125, -0.03668212890625, 0.05682373046875, 0.0028820037841796875, -0.004650115966796875, 0.050994873046875, -0.0217437744140625, -0.0302581787109375, 0.01398468017578125, -0.063232421875, -0.0005121231079101562, 0.0273590087890625, -0.0018157958984375, -0.03173828125, 0.040130615234375, -0.01468658447265625, 0.01213836669921875, 0.00997161865234375, 0.06829833984375, 0.0066070556640625, -0.0244140625, 0.00429534912109375, -0.048614501953125, -0.001987457275390625, -0.037200927734375, -0.01763916015625, -0.005523681640625, 0.012786865234375, -0.0114593505859375, 0.0006613731384277344, -0.038604736328125, -0.052978515625, 0.0171661376953125, 0.0008902549743652344, -0.00824737548828125, -0.051025390625, -0.042510986328125, -0.027862548828125, 0.043365478515625, -0.0258941650390625, 0.0017194747924804688, -0.0325927734375, -0.056732177734375, 0.027435302734375, -0.007568359375, -0.06591796875, 0.044281005859375, 0.08099365234375, 0.01520538330078125, -0.0156707763671875, -0.006744384765625, -0.0140380859375, -0.01079559326171875, 0.02337646484375, 0.065673828125, -0.0175933837890625, -0.0552978515625, 0.03302001953125, -0.015594482421875, 0.09149169921875, -0.0504150390625, 0.0016412734985351562, 0.044647216796875, -0.01641845703125, -0.05072021484375, -0.0374755859375, 0.027679443359375, -0.043975830078125, -0.02655029296875, -0.004608154296875, 0.0010442733764648438, 0.01751708984375, -0.034820556640625, -0.0792236328125, 0.057586669921875, -0.0118560791015625, -0.025787353515625, -0.0914306640625, 0.041595458984375, 0.0362548828125, -0.0262451171875, -0.036468505859375, -0.00617218017578125, -0.04217529296875, 0.0198516845703125, -0.0015211105346679688, -0.005542755126953125, 0.04766845703125, -0.024627685546875, -0.04669189453125, -0.031280517578125, -0.0165557861328125, -0.03179931640625, -0.0212860107421875, -0.0185699462890625, 0.0202178955078125, 0.0096435546875, -0.037811279296875, -0.00872039794921875, 0.033935546875, 0.035247802734375, -0.019439697265625, -0.05029296875, -0.01256561279296875, -0.0009360313415527344, 0.06494140625, 0.054595947265625, 0.0208587646484375, -0.054534912109375, 0.00624847412109375, -0.054931640625, -0.07757568359375, -0.0033435821533203125, 0.03369140625, -0.0574951171875, 0.011260986328125, 0.029571533203125, -0.01105499267578125, -0.0017385482788085938, 0.039215087890625, -0.0122222900390625, -0.00766754150390625, -0.0005435943603515625, -0.0282440185546875, -0.064208984375, 0.054290771484375, 0.034759521484375, -0.0310211181640625, 0.01352691650390625, -0.020782470703125, -0.013519287109375, 0.031646728515625, -0.0401611328125, 0.013275146484375, 0.0274658203125, -0.053802490234375, 0.00531768798828125, 0.0078125, 0.0325927734375, -0.03619384765625, -0.01483154296875, -0.0052947998046875, 0.01023101806640625, -0.01434326171875, 0.0049285888671875, -0.023040771484375, 0.04022216796875, -0.00611114501953125, 0.080322265625, 0.0207366943359375, 0.0009622573852539062, -0.01390838623046875, 0.04168701171875, -0.00862884521484375, -0.01702880859375, -0.040191650390625, 0.01605224609375, -0.0000023245811462402344, -0.0019502639770507812, -0.032623291015625, -0.0233154296875, 0.0115509033203125, -0.0180511474609375, -0.018463134765625, 0.0135040283203125 ]
0a5d640c00606f1d00c2b67309a014fce5c944a6
Wordpress Stackexchange Q: Unwanted "crawl delay: 10" line added to my robots.txt I've noticed that when I make a request to my robots.txt page, I get it with a crawl delay: 10 line added to it. I double-checked the file, and it doesn't have that line, so why does it appear? Is it maybe a strange behaviour of some plugins? A: For those who are using WordPress as CMS for their site, you can bypass your web hosting server rules by simply removing your robots.txt file and instead modifying the virtual one generated by WordPress. You just have to add a filter to the functions.php file of your theme. Here's the code snippet: //* Append directives to the virtual robots.txt add_filter( 'robots_txt', 'robots_mod', 10, 2 ); function robots_mod( $output, $public ) { $output .= "Disallow: /wp-content/plugins/\nSitemap: http://www.example.com/sitemap_index.xml"; return $output; } All you have to do is modify the $output with your own directives.
Q: Unwanted "crawl delay: 10" line added to my robots.txt I've noticed that when I make a request to my robots.txt page, I get it with a crawl delay: 10 line added to it. I double-checked the file, and it doesn't have that line, so why does it appear? Is it maybe a strange behaviour of some plugins? A: For those who are using WordPress as CMS for their site, you can bypass your web hosting server rules by simply removing your robots.txt file and instead modifying the virtual one generated by WordPress. You just have to add a filter to the functions.php file of your theme. Here's the code snippet: //* Append directives to the virtual robots.txt add_filter( 'robots_txt', 'robots_mod', 10, 2 ); function robots_mod( $output, $public ) { $output .= "Disallow: /wp-content/plugins/\nSitemap: http://www.example.com/sitemap_index.xml"; return $output; } All you have to do is modify the $output with your own directives. A: For my website, I had the same issue. Here's my robots.txt file (without the ''crawl delay: 10'') sitemap: https://baliradar.com/sitemap.xml User-agent: * Disallow: /cgi-bin/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/ Disallow: /archives/ Disallow: /wp-* Disallow: /author Disallow: /comments/feed/ User-agent: Mediapartners-Google* Allow: / User-agent: Googlebot-Image Allow: /wp-content/uploads/ User-agent: Adsbot-Google Allow: / User-agent: Googlebot-Mobile Allow: / I have contacted my web hosting and they confirm me your answer
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:447894", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158015" }
[ 0.055877685546875, -0.018890380859375, 0.0220794677734375, -0.0003845691680908203, 0.01015472412109375, -0.0257110595703125, 0.06756591796875, -0.01763916015625, -0.00189971923828125, -0.0072784423828125, -0.04876708984375, 0.02978515625, -0.036590576171875, -0.01119232177734375, 0.01174163818359375, -0.036285400390625, 0.0021514892578125, 0.060516357421875, 0.067138671875, -0.0032863616943359375, 0.0091552734375, 0.005710601806640625, 0.020355224609375, -0.032470703125, 0.0171966552734375, -0.0240020751953125, 0.112548828125, -0.014373779296875, 0.046875, -0.0174560546875, 0.015350341796875, -0.0268402099609375, 0.034423828125, -0.01268768310546875, -0.03387451171875, -0.064453125, -0.02142333984375, -0.00333404541015625, -0.04949951171875, 0.0192108154296875, 0.003993988037109375, 0.0029277801513671875, 0.039642333984375, -0.023773193359375, 0.0005826950073242188, -0.01502227783203125, -0.01605224609375, -0.033203125, 0.0026798248291015625, 0.034210205078125, 0.0198974609375, 0.01537322998046875, 0.01381683349609375, -0.003147125244140625, 0.005100250244140625, 0.0290069580078125, -0.0105133056640625, 0.0506591796875, 0.0013437271118164062, -0.0615234375, -0.00007021427154541016, 0.0491943359375, 0.00528717041015625, 0.061798095703125, -0.0291900634765625, -0.0010318756103515625, 0.0171051025390625, 0.0007300376892089844, -0.039642333984375, -0.033538818359375, 0.038909912109375, -0.0255126953125, 0.02679443359375, 0.00930023193359375, 0.00010889768600463867, -0.0416259765625, -0.00920867919921875, -0.031219482421875, 0.02734375, 0.0096435546875, -0.001007080078125, -0.00925445556640625, -0.010467529296875, -0.0199127197265625, 0.03863525390625, 0.03955078125, -0.010467529296875, -0.0166473388671875, -0.03863525390625, -0.03338623046875, -0.04376220703125, -0.0214996337890625, -0.03515625, -0.0273895263671875, -0.038787841796875, -0.0186767578125, 0.0188140869140625, 0.0027751922607421875, 0.0026683807373046875, 0.03704833984375, 0.0174407958984375, -0.053314208984375, 0.044677734375, -0.0241851806640625, 0.00820159912109375, 0.01293182373046875, -0.0119476318359375, 0.017181396484375, 0.042877197265625, 0.0218963623046875, 0.002429962158203125, 0.037384033203125, 0.0044708251953125, -0.0128631591796875, -0.053863525390625, -0.024871826171875, -0.0162811279296875, -0.0268096923828125, 0.00423431396484375, -0.053070068359375, 0.01021575927734375, 0.03533935546875, -0.0009684562683105469, 0.004482269287109375, 0.00933837890625, 0.025634765625, -0.003208160400390625, -0.023712158203125, 0.0270233154296875, 0.006420135498046875, -0.0167083740234375, 0.0119781494140625, 0.01154327392578125, 0.0250091552734375, -0.0033397674560546875, -0.004604339599609375, 0.05670166015625, -0.0174713134765625, -0.0256195068359375, 0.02142333984375, -0.03826904296875, -0.034637451171875, 0.001575469970703125, -0.05010986328125, -0.01027679443359375, -0.014434814453125, 0.013946533203125, 0.0330810546875, 0.005649566650390625, -0.02508544921875, -0.0007848739624023438, 0.006069183349609375, 0.036773681640625, -0.01861572265625, -0.0271759033203125, -0.0390625, -0.0043182373046875, -0.04376220703125, -0.00217437744140625, -0.02874755859375, -0.049041748046875, 0.011505126953125, 0.0628662109375, -0.08251953125, -0.04144287109375, -0.0123291015625, -0.042236328125, 0.002422332763671875, 0.01428985595703125, 0.031341552734375, -0.050628662109375, -0.0023441314697265625, 0.0238494873046875, 0.030853271484375, -0.0112762451171875, 0.032012939453125, -0.0029544830322265625, 0.033660888671875, 0.05377197265625, -0.0079345703125, -0.00827789306640625, -0.0267181396484375, 0.11883544921875, -0.0234832763671875, -0.027496337890625, 0.072998046875, -0.00014412403106689453, 0.06231689453125, -0.00751495361328125, 0.0235443115234375, -0.01433563232421875, 0.0445556640625, -0.07440185546875, 0.028594970703125, -0.01010894775390625, 0.00302886962890625, -0.0288543701171875, 0.00019848346710205078, -0.006618499755859375, -0.00849151611328125, -0.036407470703125, 0.0169525146484375, -0.007274627685546875, -0.01541900634765625, -0.0223236083984375, 0.006866455078125, -0.01464080810546875, 0.04205322265625, -0.005893707275390625, 0.0021762847900390625, -0.003734588623046875, -0.031646728515625, -0.00716400146484375, 0.02215576171875, 0.00258636474609375, -0.001941680908203125, -0.003582000732421875, 0.03900146484375, 0.0267486572265625, 0.0258941650390625, 0.0223388671875, -0.01153564453125, 0.00555419921875, -0.010345458984375, 0.0260772705078125, 0.01432037353515625, -0.024078369140625, 0.00606536865234375, 0.024322509765625, 0.02313232421875, 0.00946807861328125, 0.0147552490234375, 0.0567626953125, 0.039886474609375, -0.003528594970703125, -0.0032062530517578125, 0.00856781005859375, -0.11627197265625, 0.0016527175903320312, 0.060302734375, 0.046661376953125, 0.004177093505859375, 0.016082763671875, 0.01739501953125, 0.01611328125, -0.06060791015625, 0.0255584716796875, -0.00823211669921875, -0.006793975830078125, -0.03070068359375, -0.00708770751953125, -0.044830322265625, 0.059326171875, -0.047149658203125, -0.005191802978515625, 0.04583740234375, -0.005268096923828125, -0.0306549072265625, -0.0056610107421875, 0.00016188621520996094, 0.0287322998046875, -0.04876708984375, -0.057159423828125, 0.0111083984375, -0.003688812255859375, 0.01015472412109375, 0.01398468017578125, 0.0085601806640625, -0.009918212890625, 0.0035724639892578125, 0.0082550048828125, 0.01390838623046875, -0.0106201171875, 0.0062713623046875, -0.02685546875, 0.0206451416015625, -0.0155487060546875, 0.023406982421875, -0.03082275390625, -0.022613525390625, -0.033660888671875, -0.012939453125, 0.036346435546875, -0.0018548965454101562, -0.007904052734375, -0.0017490386962890625, 0.039093017578125, -0.0416259765625, -0.0026683807373046875, -0.011993408203125, 0.01418304443359375, -0.0022335052490234375, -0.046875, 0.037567138671875, -0.01519775390625, -0.015106201171875, 0.04681396484375, -0.06427001953125, 0.03143310546875, -0.0286102294921875, 0.0802001953125, 0.062744140625, -0.012359619140625, 0.01354217529296875, 0.01535797119140625, -0.0242919921875, 0.023193359375, -0.01206207275390625, -0.0181732177734375, 0.03802490234375, -0.10723876953125, -0.001605987548828125, 0.026611328125, -0.01922607421875, 0.0213623046875, -0.03839111328125, -0.004505157470703125, -0.01067352294921875, -0.0902099609375, -0.07269287109375, 0.017669677734375, -0.0236053466796875, -0.037445068359375, -0.0023479461669921875, -0.020172119140625, -0.006053924560546875, 0.012542724609375, 0.001331329345703125, -0.015655517578125, -0.01456451416015625, -0.08148193359375, -0.005710601806640625, -0.055023193359375, 0.08319091796875, -0.01934814453125, 0.00946807861328125, 0.0013980865478515625, 0.057647705078125, 0.0087890625, -0.045867919921875, -0.01335906982421875, -0.035614013671875, -0.0178680419921875, 0.0036792755126953125, -0.0019855499267578125, -0.0270538330078125, 0.0239105224609375, 0.0184173583984375, 0.0193023681640625, 0.01152801513671875, -0.01168060302734375, -0.026031494140625, -0.02099609375, -0.0030975341796875, 0.0011844635009765625, -0.04888916015625, 0.026885986328125, 0.024505615234375, -0.0192108154296875, -0.0280609130859375, 0.01299285888671875, -0.01404571533203125, 0.006084442138671875, 0.054656982421875, -0.00980377197265625, -0.00609588623046875, -0.031982421875, 0.054718017578125, 0.0082244873046875, -0.0032215118408203125, 0.020660400390625, -0.0268707275390625, 0.02264404296875, -0.006336212158203125, 0.0010747909545898438, -0.037261962890625, 0.05218505859375, -0.01175689697265625, -0.023193359375, 0.0092926025390625, -0.00971221923828125, -0.025726318359375, 0.025421142578125, -0.01206207275390625, 0.00437164306640625, 0.018218994140625, -0.031768798828125, 0.015655517578125, -0.03570556640625, -0.00159454345703125, -0.015472412109375, 0.060089111328125, -0.012847900390625, -0.036346435546875, -0.01052093505859375, 0.031402587890625, 0.0161895751953125, -0.036773681640625, 0.03094482421875, -0.033477783203125, -0.04833984375, 0.04046630859375, -0.004886627197265625, -0.004184722900390625, -0.018768310546875, -0.06329345703125, -0.02630615234375, -0.033447265625, 0.0282440185546875, 0.047698974609375, 0.02740478515625, -0.031280517578125, 0.007175445556640625, -0.0200042724609375, -0.01097869873046875, -0.00832366943359375, -0.02056884765625, -0.0152740478515625, 0.012664794921875, 0.0263671875, 0.01485443115234375, -0.0311431884765625, -0.0108489990234375, 0.0299072265625, 0.04229736328125, 0.0047454833984375, 0.0161285400390625, -0.057342529296875, 0.034515380859375, 0.05584716796875, 0.01346588134765625, 0.0139007568359375, -0.018096923828125, 0.00156402587890625, -0.0242767333984375, -0.0158538818359375, 0.006900787353515625, -0.032196044921875, 0.06268310546875, -0.0292816162109375, -0.08013916015625, -0.060791015625, -0.0256195068359375, 0.0023593902587890625, -0.00856781005859375, -0.002346038818359375, -0.046234130859375, -0.070068359375, -0.0069732666015625, -0.050445556640625, -0.01275634765625, 0.021636962890625, 0.0357666015625, 0.0183868408203125, 0.0153045654296875, 0.01026153564453125, 0.018798828125, 0.035552978515625, 0.03955078125, 0.0175933837890625, -0.00510406494140625, -0.015106201171875, 0.017059326171875, 0.0251617431640625, 0.00559234619140625, -0.0007653236389160156, 0.0250701904296875, -0.0031642913818359375, -0.02239990234375, 0.00501251220703125, 0.0102081298828125, -0.012603759765625, 0.0015544891357421875, -0.0143585205078125, -0.0192718505859375, 0.03961181640625, 0.037139892578125, -0.059173583984375, 0.060699462890625, 0.00017583370208740234, -0.052490234375, 0.0244903564453125, -0.001636505126953125, -0.0079803466796875, -0.0141754150390625, 0.018035888671875, -0.002704620361328125, 0.0060882568359375, 0.01213836669921875, -0.035247802734375, -0.0015325546264648438, -0.05633544921875, 0.0242919921875, -0.0097198486328125, -0.0210113525390625, -0.006988525390625, -0.002902984619140625, -0.0030040740966796875, -0.007709503173828125, -0.04833984375, 0.002346038818359375, 0.00502777099609375, 0.0294036865234375, 0.0236358642578125, 0.047760009765625, 0.02813720703125, 0.00833892822265625, -0.01433563232421875, -0.009735107421875, 0.05511474609375, -0.01366424560546875, -0.0186767578125, -0.024566650390625, 0.00800323486328125, -0.0151214599609375, 0.004634857177734375, 0.016815185546875, 0.0289764404296875, -0.01456451416015625, -0.028045654296875, -0.0208892822265625, 0.004337310791015625, 0.00684356689453125, 0.0033397674560546875, -0.00543975830078125, -0.01275634765625, 0.0374755859375, 0.0631103515625, -0.03271484375, -0.00069427490234375, 0.00583648681640625, 0.0297698974609375, 0.0166015625, -0.004180908203125, 0.01200103759765625, -0.01392364501953125, -0.031524658203125, 0.0350341796875, 0.0286712646484375, 0.011688232421875, -0.06365966796875, -0.08251953125, 0.01459503173828125, 0.04022216796875, 0.006153106689453125, 0.004405975341796875, -0.006732940673828125, 0.0012950897216796875, 0.00391387939453125, -0.01641845703125, -0.01385498046875, -0.00939178466796875, 0.0086822509765625, -0.0228424072265625, -0.0220184326171875, -0.0794677734375, -0.021087646484375, 0.00940704345703125, 0.0190887451171875, 0.0184173583984375, -0.044921875, 0.0132904052734375, -0.0142364501953125, 0.0188751220703125, 0.00039315223693847656, 0.041900634765625, 0.005023956298828125, 0.0137939453125, 0.0028133392333984375, 0.00299072265625, -0.0321044921875, -0.049102783203125, -0.034210205078125, -0.02020263671875, -0.05487060546875, 0.00777435302734375, -0.03253173828125, -0.017364501953125, -0.0009179115295410156, 0.02569580078125, -0.0132904052734375, 0.03997802734375, -0.003101348876953125, -0.01605224609375, -0.0311279296875, -0.0177764892578125, 0.0290985107421875, -0.00656890869140625, -0.0241241455078125, -0.0207366943359375, 0.0224609375, -0.008087158203125, 0.01690673828125, -0.01508331298828125, -0.010833740234375, -0.022705078125, 0.0014543533325195312, -0.001590728759765625, 0.038330078125, -0.0193023681640625, 0.0213470458984375, 0.0360107421875, 0.02520751953125, -0.008941650390625, -0.033935546875, 0.051666259765625, -0.0015535354614257812, 0.0308837890625, -0.011566162109375, -0.0217742919921875, -0.00244140625, 0.03143310546875, -0.00231170654296875, -0.0173187255859375, 0.017852783203125, -0.06756591796875, 0.01568603515625, 0.0135345458984375, 0.1005859375, 0.0216217041015625, 0.062255859375, 0.054840087890625, 0.03448486328125, 0.01519775390625, 0.032257080078125, -0.0223236083984375, -0.06024169921875, 0.0259552001953125, 0.00946044921875, -0.039642333984375, 0.008819580078125, -0.03936767578125, -0.0007143020629882812, -0.006870269775390625, 0.038818359375, -0.01058197021484375, 0.0005908012390136719, -0.004116058349609375, -0.0205535888671875, 0.024505615234375, -0.0156097412109375, -0.0219573974609375, -0.0660400390625, 0.06463623046875, 0.0367431640625, -0.00603485107421875, 0.0143585205078125, 0.00090789794921875, -0.0318603515625, -0.0242767333984375, -0.06903076171875, 0.0245819091796875, -0.0026531219482421875, 0.044830322265625, 0.01367950439453125, 0.05438232421875, 0.006496429443359375, -0.006015777587890625, 0.007328033447265625, -0.0148162841796875, 0.003131866455078125, 0.04180908203125, -0.0285491943359375, 0.009429931640625, 0.00823974609375, 0.00354766845703125, 0.0047760009765625, 0.0173492431640625, -0.0040283203125, -0.0323486328125, 0.00469207763671875, -0.045257568359375, 0.078125, -0.0631103515625, -0.037567138671875, 0.0296173095703125, -0.00823211669921875, -0.00775909423828125, 0.08258056640625, -0.0343017578125, -0.015228271484375, -0.034637451171875, 0.06195068359375, -0.058929443359375, 0.005401611328125, 0.044036865234375, -0.0286865234375, -0.017578125, -0.01934814453125, 0.036956787109375, -0.05621337890625, -0.01337432861328125, 0.01313018798828125, 0.004161834716796875, -0.0159912109375, -0.013397216796875, -0.062286376953125, 0.0496826171875, -0.002685546875, 0.0210723876953125, -0.011566162109375, 0.01099395751953125, 0.005069732666015625, 0.0034351348876953125, 0.0007405281066894531, 0.0465087890625, -0.053863525390625, 0.0286712646484375, -0.037017822265625, -0.002197265625, 0.004016876220703125, 0.02349853515625, -0.0078887939453125, 0.005645751953125, -0.04345703125, 0.00968170166015625, 0.0186767578125, -0.00940704345703125, -0.0021038055419921875, 0.056396484375, -0.036163330078125, 0.046417236328125, 0.01690673828125, -0.08697509765625, 0.01526641845703125, -0.033721923828125, -0.0227508544921875, -0.007717132568359375, -0.0130615234375, -0.031463623046875, 0.01442718505859375, 0.0020008087158203125, -0.00901031494140625, 0.0012540817260742188, -0.0085906982421875, 0.03680419921875, 0.01419830322265625, 0.021453857421875, 0.042388916015625, -0.055328369140625, -0.0418701171875, -0.0180206298828125, 0.05133056640625, 0.00522613525390625, 0.03271484375, 0.0194549560546875, 0.01233673095703125, 0.05426025390625, 0.0201416015625, 0.0242462158203125, 0.0445556640625, -0.007129669189453125, 0.0239410400390625, 0.0275115966796875, 0.022369384765625, 0.004276275634765625, 0.0474853515625, 0.022674560546875, 0.02850341796875, -0.044189453125, -0.0182037353515625, 0.004093170166015625, -0.0208740234375, 0.0183868408203125, -0.0175628662109375, 0.0309600830078125, -0.06982421875, -0.07110595703125, 0.031494140625, -0.01242828369140625, -0.0245361328125, -0.00547027587890625, 0.0097198486328125, 0.058563232421875, 0.028167724609375, 0.0215301513671875, -0.0265045166015625, 0.01105499267578125, 0.004932403564453125, 0.0594482421875, 0.0212860107421875, 0.0182037353515625, -0.03790283203125, -0.02386474609375, 0.01145172119140625, 0.0107574462890625, 0.0014286041259765625, -0.04534912109375, 0.009796142578125, -0.0193634033203125, -0.00926971435546875, 0.02728271484375, 0.0283660888671875, 0.007781982421875, 0.052001953125, 0.0535888671875, -0.0080108642578125, -0.00315093994140625, 0.03717041015625, 0.0061798095703125, -0.026885986328125, -0.021820068359375, 0.007518768310546875, 0.031890869140625, 0.01025390625, 0.006763458251953125, 0.0080413818359375, 0.034423828125, -0.0031108856201171875, -0.0119781494140625, -0.00024771690368652344, -0.046875, 0.031280517578125, -0.0016946792602539062, 0.0226593017578125, 0.0181884765625, -0.0296478271484375, 0.0020313262939453125, -0.032257080078125, -0.03607177734375, 0.008209228515625, 0.0316162109375, -0.010101318359375, 0.023956298828125, 0.0206146240234375, -0.010284423828125, -0.00376129150390625, -0.00315093994140625, 0.010040283203125, 0.0106658935546875, 0.01102447509765625, 0.00855255126953125, -0.0197906494140625, -0.0037403106689453125, -0.0076904296875, 0.005096435546875, 0.0106048583984375, 0.0863037109375, -0.0099639892578125, -0.0025539398193359375, 0.031707763671875, -0.017181396484375, 0.0306549072265625, 0.00504302978515625, 0.0132293701171875, 0.0178375244140625, 0.007049560546875, -0.024658203125, -0.034393310546875, 0.005596160888671875, 0.0308990478515625, -0.023406982421875, 0.051361083984375, -0.04437255859375, 0.004962921142578125, -0.05291748046875, 0.00916290283203125, -0.019134521484375, -0.031402587890625, -0.049102783203125, -0.032135009765625, 0.056976318359375, 0.045562744140625, -0.0172119140625, 0.0406494140625, 0.035064697265625, 0.0171356201171875, 0.0009822845458984375, 0.0016689300537109375, 0.004047393798828125, 0.023590087890625, 0.013458251953125, 0.035003662109375, -0.0267181396484375, -0.0299530029296875, 0.0288238525390625, -0.0010595321655273438, -0.014923095703125, -0.005512237548828125, 0.0175933837890625, -0.0086517333984375, -0.00553131103515625, -0.0011844635009765625, -0.029083251953125, -0.00634002685546875, -0.0008654594421386719, -0.007396697998046875, -0.002140045166015625, -0.01129150390625, -0.0188446044921875, -0.0005321502685546875, -0.02044677734375, 0.0160064697265625, -0.022552490234375, -0.04766845703125, -0.05780029296875, 0.0009226799011230469, 0.06512451171875, 0.01361083984375, -0.046630859375, 0.00894927978515625, -0.034881591796875, 0.0513916015625, 0.022369384765625, 0.04443359375, -0.0161285400390625, 0.0211944580078125, -0.056182861328125, -0.04345703125, -0.0172576904296875, 0.0579833984375, -0.02191162109375, -0.0380859375, -0.0020885467529296875, 0.032745361328125, 0.0036754608154296875, -0.07672119140625, -0.04296875, -0.02056884765625, -0.063720703125, -0.00658416748046875, 0.02032470703125, -0.000016570091247558594, -0.040496826171875, -0.0791015625, -0.005832672119140625, -0.04901123046875, -0.004032135009765625, 0.0205230712890625, -0.0072784423828125, 0.01477813720703125, -0.0160369873046875, -0.041229248046875, -0.035491943359375, 0.0230712890625, -0.034942626953125, -0.026153564453125, -0.023773193359375, -0.01122283935546875, 0.011077880859375, -0.00444793701171875, -0.0179443359375, -0.023468017578125, 0.044281005859375, -0.02410888671875, 0.081298828125, -0.029296875, -0.028289794921875, 0.0654296875, 0.030548095703125, 0.049407958984375, -0.035919189453125, -0.0244903564453125, -0.003299713134765625, 0.035797119140625, 0.061248779296875, -0.010223388671875, -0.014190673828125, 0.00843048095703125, -0.031341552734375, -0.0305023193359375, 0.0240020751953125, -0.05133056640625, 0.0233306884765625, 0.11944580078125, 0.10162353515625, 0.02862548828125, -0.06890869140625, -0.0697021484375, -0.007778167724609375, 0.01251220703125, -0.027008056640625, 0.0263519287109375, -0.09112548828125, -0.01366424560546875, -0.006404876708984375, -0.015838623046875, 0.0030670166015625, -0.0181427001953125, -0.0318603515625, 0.01470947265625, 0.0212249755859375, 0.01551055908203125, -0.054168701171875, -0.01605224609375, 0.038116455078125, -0.0296783447265625, -0.0335693359375, -0.0011949539184570312, 0.021270751953125, -0.00394439697265625, -0.0355224609375, -0.0215301513671875, 0.03125, -0.033538818359375, 0.0118865966796875, -0.00254058837890625, -0.0088348388671875, -0.0279388427734375, 0.0257720947265625, 0.00960540771484375, 0.0226287841796875, -0.0267486572265625, 0.0238800048828125, 0.0599365234375, -0.02532958984375, -0.0267791748046875, 0.062164306640625, -0.006183624267578125, 0.0450439453125, -0.00806427001953125, 0.0439453125, -0.04693603515625, 0.005184173583984375, 0.00160980224609375, -0.0242919921875, 0.01385498046875, -0.011810302734375, 0.001972198486328125, -0.0052642822265625, -0.01214599609375, -0.09130859375, -0.0303802490234375, 0.01461029052734375 ]
18b1aac8831797aa5d25e2c3656e2c4d50bc10be
Wordpress Stackexchange Q: Is There a Difference Between Taxonomies and Categories? I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in the description of Taxonomies, but seems used in a manner that hints that it isn't solely limited to a Taxonomy. Both are described as a way to classify and group together posts. I do understand that Taxonomies are a more general form of categories, but how exactly do they relate to each other? Is there a subtle difference I'm just not picking up on? A: Category, Tag, Link Category and Post Formats are built in taxonomies. From Codex Basically, a taxonomy is a way to group things together. The names for the different groupings in a taxonomy are called terms. Using groupings of animals as an example, we might call one group "birds", and another group "fish". "Fish" and "birds" are terms in our taxonomy. As an example from WordPress, a category or tag (see next section) is a term.
Q: Is There a Difference Between Taxonomies and Categories? I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in the description of Taxonomies, but seems used in a manner that hints that it isn't solely limited to a Taxonomy. Both are described as a way to classify and group together posts. I do understand that Taxonomies are a more general form of categories, but how exactly do they relate to each other? Is there a subtle difference I'm just not picking up on? A: Category, Tag, Link Category and Post Formats are built in taxonomies. From Codex Basically, a taxonomy is a way to group things together. The names for the different groupings in a taxonomy are called terms. Using groupings of animals as an example, we might call one group "birds", and another group "fish". "Fish" and "birds" are terms in our taxonomy. As an example from WordPress, a category or tag (see next section) is a term. A: Taxonomies, as previously described are a collective noun for the following * *category *post_tag *post_format *link_category *custom taxonomy The first four are built-in taxonomies, while custom taxonomies are taxonomies that are manually created by the user with register_taxonomy. Custom Taxonomies can be hierarchical (like the build-in taxonomy category) or not (like post tags) The categories and tags that you create in the back end under the 'Posts' screen are in actual fact terms of the taxonomies category and post_tag You cannot create extra terms in post_format. post_format has built-in terms like post_format_video, post_format_gallery etc. See the codex for all post formats included EDIT I have updated the Taxonomies page in the codex to include my diagram and the missing post_format taxonomy A: Category is one of the built-in taxonomy in WordPress. So to clear things: taxonomy is a way to group things together. we can create custom taxonomies in WordPress just like built-in ones. For example Carscould be a taxonomy with terms like Audi Toyota Benz Mazda there are mainly two types of taxonomies available which are hierarchical and non hierarchical Category is best example of hierarchical taxonomy and Tag is an example of non hierarchical taxonomy
wordpress
{ "language": "en", "length": 384, "provenance": "stackexchange_00019.jsonl.gz:447950", "question_score": "54", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158206" }
[ 0.031494140625, 0.0025081634521484375, -0.0286407470703125, -0.0224609375, 0.0297088623046875, -0.037139892578125, 0.034027099609375, 0.0008258819580078125, 0.007396697998046875, -0.005657196044921875, -0.03924560546875, -0.007274627685546875, -0.030487060546875, -0.0245819091796875, -0.003894805908203125, -0.037200927734375, 0.0118408203125, 0.0085601806640625, 0.01654052734375, -0.0158233642578125, 0.0012903213500976562, -0.0047454833984375, 0.0168609619140625, -0.0360107421875, 0.0245819091796875, -0.00971221923828125, 0.0279998779296875, -0.0301361083984375, 0.0173797607421875, -0.021942138671875, 0.0191192626953125, 0.0029277801513671875, 0.0313720703125, 0.0021495819091796875, -0.04296875, -0.021881103515625, -0.02020263671875, 0.005596160888671875, -0.0079498291015625, 0.01215362548828125, 0.0305023193359375, -0.035400390625, 0.033416748046875, 0.0038509368896484375, 0.0208587646484375, -0.00644683837890625, 0.01448822021484375, -0.0635986328125, 0.0158538818359375, -0.07525634765625, 0.0277862548828125, 0.00635528564453125, 0.057464599609375, -0.044677734375, -0.0264434814453125, 0.0350341796875, 0.00980377197265625, -0.00980377197265625, 0.032928466796875, -0.055145263671875, -0.03729248046875, -0.0235748291015625, 0.046356201171875, 0.02728271484375, -0.004764556884765625, 0.0152130126953125, 0.02764892578125, 0.0187225341796875, -0.0244293212890625, -0.0287322998046875, -0.00417327880859375, -0.01337432861328125, -0.0036678314208984375, -0.00818634033203125, -0.005779266357421875, -0.0169219970703125, 0.023345947265625, -0.0189361572265625, 0.0005540847778320312, 0.017303466796875, 0.052001953125, 0.0020809173583984375, -0.0034027099609375, 0.006206512451171875, 0.02685546875, 0.042572021484375, 0.003078460693359375, -0.0340576171875, -0.0255279541015625, -0.01165008544921875, -0.0182952880859375, -0.026641845703125, -0.064453125, 0.040557861328125, 0.02313232421875, -0.01021575927734375, -0.0009632110595703125, 0.039764404296875, -0.022308349609375, 0.016815185546875, -0.03289794921875, -0.004009246826171875, -0.011260986328125, -0.028778076171875, 0.037872314453125, 0.03271484375, -0.004840850830078125, -0.01549530029296875, 0.0518798828125, 0.0005888938903808594, 0.0064239501953125, 0.06182861328125, 0.003238677978515625, -0.07421875, 0.033599853515625, 0.02923583984375, -0.005214691162109375, 0.059417724609375, 0.032806396484375, 0.01043701171875, -0.0048828125, 0.0177764892578125, 0.037689208984375, 0.01136016845703125, -0.01409912109375, 0.01145172119140625, 0.00739288330078125, -0.076904296875, 0.0008063316345214844, 0.022247314453125, -0.0281982421875, 0.00949859619140625, 0.0330810546875, 0.0150299072265625, -0.01097869873046875, -0.0164947509765625, 0.001529693603515625, -0.01187896728515625, -0.00751495361328125, -0.0035953521728515625, 0.0021266937255859375, -0.0128936767578125, 0.0233917236328125, -0.0242156982421875, -0.01214599609375, 0.005695343017578125, 0.0202484130859375, 0.022064208984375, -0.0135955810546875, -0.030517578125, 0.0260772705078125, -0.0401611328125, 0.0645751953125, -0.016571044921875, -0.09564208984375, -0.0186614990234375, -0.025360107421875, -0.025054931640625, -0.04901123046875, -0.057281494140625, 0.01678466796875, 0.003520965576171875, 0.040985107421875, -0.01220703125, -0.00936126708984375, -0.005008697509765625, -0.04949951171875, -0.00916290283203125, 0.01343536376953125, -0.07098388671875, 0.04608154296875, -0.003582000732421875, 0.00824737548828125, -0.0266571044921875, 0.014404296875, -0.0092620849609375, -0.018035888671875, -0.0367431640625, 0.0276641845703125, 0.0222625732421875, -0.0062713623046875, -0.0223236083984375, -0.00171661376953125, -0.002544403076171875, -0.03546142578125, -0.0189971923828125, 0.019989013671875, 0.01898193359375, 0.0202178955078125, 0.01751708984375, 0.046356201171875, -0.0006585121154785156, -0.0248870849609375, 0.0240478515625, 0.0194244384765625, -0.0184173583984375, -0.047027587890625, -0.0030364990234375, -0.00623321533203125, -0.015899658203125, -0.006336212158203125, 0.0283355712890625, -0.037353515625, -0.007434844970703125, -0.049407958984375, -0.01367950439453125, -0.007511138916015625, 0.038665771484375, -0.0390625, 0.001079559326171875, 0.0234832763671875, -0.023468017578125, -0.0032901763916015625, -0.034149169921875, -0.01166534423828125, 0.0013551712036132812, -0.01186370849609375, -0.0531005859375, -0.01430511474609375, -0.03564453125, -0.04022216796875, 0.03363037109375, -0.05810546875, 0.017669677734375, 0.03570556640625, 0.0205841064453125, -0.01971435546875, -0.0026111602783203125, 0.0262603759765625, 0.05133056640625, -0.0692138671875, -0.0139617919921875, 0.05694580078125, 0.06341552734375, 0.00030493736267089844, 0.011383056640625, 0.048980712890625, -0.0482177734375, 0.004161834716796875, 0.0216217041015625, 0.036102294921875, 0.002582550048828125, -0.040191650390625, -0.047027587890625, 0.049560546875, -0.0445556640625, -0.0121307373046875, -0.0291748046875, -0.0105743408203125, 0.0129547119140625, 0.04498291015625, 0.0240936279296875, 0.0153656005859375, 0.02178955078125, 0.0029773712158203125, 0.03594970703125, -0.01511383056640625, -0.0005230903625488281, 0.00907135009765625, 0.0005993843078613281, -0.004604339599609375, -0.0240020751953125, -0.0153045654296875, -0.003063201904296875, -0.00010257959365844727, 0.0216064453125, 0.030303955078125, 0.03631591796875, -0.0144805908203125, -0.009429931640625, 0.01161956787109375, 0.01348114013671875, 0.01197052001953125, 0.038848876953125, 0.044342041015625, 0.01390838623046875, -0.01276397705078125, -0.046356201171875, 0.01187896728515625, 0.0265655517578125, -0.026519775390625, 0.01412200927734375, -0.024322509765625, -0.00921630859375, -0.0411376953125, -0.050323486328125, 0.01354217529296875, 0.01320648193359375, -0.0748291015625, -0.036285400390625, 0.00423431396484375, 0.0121307373046875, -0.0241241455078125, 0.002468109130859375, -0.01519775390625, -0.004238128662109375, -0.01374053955078125, 0.01032257080078125, 0.01061248779296875, -0.0295562744140625, -0.01013946533203125, 0.02783203125, 0.006305694580078125, -0.0230560302734375, 0.0206298828125, -0.033477783203125, 0.037445068359375, 0.005390167236328125, -0.00914764404296875, 0.024627685546875, -0.0716552734375, 0.00615692138671875, 0.00850677490234375, 0.007717132568359375, -0.00695037841796875, -0.035888671875, -0.0150299072265625, -0.0024394989013671875, -0.0435791015625, -0.0012531280517578125, -0.001132965087890625, -0.0322265625, 0.048828125, -0.0198974609375, -0.0029754638671875, -0.048065185546875, 0.00411224365234375, 0.019622802734375, 0.02813720703125, -0.0186920166015625, -0.021240234375, -0.0267791748046875, -0.04736328125, -0.0212554931640625, 0.004169464111328125, -0.0026798248291015625, 0.01212310791015625, 0.06072998046875, 0.0109405517578125, -0.044464111328125, 0.01409149169921875, 0.004108428955078125, -0.0323486328125, 0.01309967041015625, 0.0163726806640625, -0.0162200927734375, -0.00164794921875, -0.0007090568542480469, 0.0230560302734375, 0.0301513671875, -0.02294921875, -0.017547607421875, -0.007198333740234375, 0.02215576171875, 0.01275634765625, -0.0030727386474609375, -0.00506591796875, 0.0229034423828125, -0.003108978271484375, -0.0250396728515625, -0.045928955078125, 0.026611328125, -0.025390625, 0.025665283203125, 0.00206756591796875, -0.0006723403930664062, 0.01003265380859375, 0.03387451171875, -0.04486083984375, -0.0111236572265625, -0.048095703125, -0.03228759765625, 0.0189208984375, -0.0198516845703125, -0.0169677734375, 0.052703857421875, -0.04437255859375, -0.05316162109375, 0.02734375, -0.039031982421875, -0.0203399658203125, -0.0288848876953125, 0.01488494873046875, 0.01419830322265625, -0.10809326171875, 0.0290374755859375, -0.0767822265625, -0.032196044921875, -0.039947509765625, 0.005626678466796875, 0.0214385986328125, 0.07757568359375, -0.0113067626953125, -0.021759033203125, 0.0190582275390625, -0.00594329833984375, -0.034515380859375, 0.021392822265625, -0.068115234375, -0.0117645263671875, -0.0262603759765625, 0.0267486572265625, 0.0117034912109375, 0.00799560546875, -0.060455322265625, 0.07073974609375, -0.04913330078125, 0.0019388198852539062, 0.0208282470703125, -0.01277923583984375, 0.0169830322265625, -0.02117919921875, -0.0232391357421875, 0.00021195411682128906, -0.01361083984375, -0.01885986328125, 0.0462646484375, 0.005588531494140625, 0.014862060546875, -0.05865478515625, 0.002490997314453125, -0.02581787109375, 0.021514892578125, 0.016448974609375, 0.0226287841796875, -0.01102447509765625, 0.03424072265625, -0.0007257461547851562, 0.02783203125, 0.006259918212890625, 0.0146331787109375, -0.0159149169921875, -0.03985595703125, -0.060211181640625, -0.01849365234375, 0.02960205078125, 0.01140594482421875, 0.058319091796875, -0.0091094970703125, 0.01129150390625, -0.0208282470703125, -0.0239410400390625, -0.0443115234375, -0.0312347412109375, -0.04827880859375, -0.000919342041015625, 0.01207733154296875, -0.019012451171875, 0.05670166015625, 0.0202789306640625, -0.004779815673828125, -0.0009794235229492188, 0.0787353515625, -0.008880615234375, -0.0270538330078125, -0.09161376953125, -0.004360198974609375, 0.038360595703125, 0.003772735595703125, 0.0213775634765625, -0.0023174285888671875, -0.0256500244140625, 0.0687255859375, 0.00287628173828125, -0.0186767578125, 0.0012884140014648438, 0.0164031982421875, -0.00205230712890625, -0.00920867919921875, -0.00386810302734375, -0.0138702392578125, 0.031463623046875, -0.0031890869140625, -0.01538848876953125, -0.011444091796875, -0.017333984375, 0.049530029296875, -0.0007376670837402344, 0.01129150390625, -0.04046630859375, 0.006137847900390625, 0.009979248046875, -0.0140380859375, -0.003353118896484375, 0.00533294677734375, 0.00881195068359375, -0.04522705078125, -0.0250091552734375, -0.00023305416107177734, 0.0038509368896484375, -0.02874755859375, 0.0018863677978515625, -0.00525665283203125, 0.0161895751953125, -0.0050506591796875, 0.00930023193359375, 0.0035114288330078125, 0.0144195556640625, -0.0224151611328125, -0.061279296875, -0.00838470458984375, -0.0035305023193359375, -0.000640869140625, 0.04058837890625, 0.03472900390625, 0.01105499267578125, -0.045135498046875, -0.0196533203125, 0.0026493072509765625, 0.01104736328125, -0.04449462890625, -0.0189666748046875, -0.032745361328125, 0.001071929931640625, -0.026885986328125, 0.04815673828125, -0.016448974609375, -0.0272979736328125, 0.0152435302734375, -0.01438140869140625, 0.031402587890625, 0.0250091552734375, 0.038909912109375, 0.00921630859375, -0.0226287841796875, -0.004177093505859375, 0.0198211669921875, -0.0000330805778503418, -0.01171875, -0.01280975341796875, 0.0032176971435546875, 0.004665374755859375, -0.028900146484375, -0.01189422607421875, 0.037445068359375, 0.0103912353515625, -0.03375244140625, -0.01486968994140625, -0.01287841796875, -0.0146331787109375, -0.00972747802734375, 0.005619049072265625, 0.00713348388671875, 0.0321044921875, -0.034912109375, 0.04107666015625, -0.0233917236328125, 0.065185546875, -0.0212554931640625, 0.01422882080078125, 0.0244140625, 0.0143280029296875, -0.0792236328125, -0.006778717041015625, 0.022674560546875, -0.033721923828125, -0.042022705078125, 0.00809478759765625, -0.038421630859375, 0.009857177734375, -0.003204345703125, 0.0384521484375, -0.016693115234375, -0.033782958984375, 0.004604339599609375, 0.0098114013671875, 0.0224609375, 0.0058746337890625, -0.0845947265625, 0.0202178955078125, -0.046600341796875, -0.00748443603515625, -0.0312347412109375, -0.047332763671875, -0.078369140625, -0.0020961761474609375, -0.040802001953125, -0.0033855438232421875, 0.022216796875, 0.08148193359375, -0.0183563232421875, 0.034210205078125, -0.036102294921875, -0.0185089111328125, 0.01154327392578125, -0.038330078125, 0.003917694091796875, 0.0085296630859375, -0.0018253326416015625, -0.036712646484375, -0.00026798248291015625, -0.026031494140625, -0.00658416748046875, -0.116943359375, -0.0139923095703125, 0.022613525390625, -0.06024169921875, 0.033050537109375, -0.00029921531677246094, 0.015869140625, 0.01995849609375, 0.002277374267578125, 0.0179901123046875, -0.007389068603515625, -0.0245208740234375, -0.0164794921875, 0.003414154052734375, 0.01947021484375, -0.0155487060546875, 0.051605224609375, -0.0160980224609375, -0.00200653076171875, 0.0322265625, -0.05963134765625, 0.04119873046875, 0.045989990234375, 0.04205322265625, -0.056121826171875, -0.04998779296875, -0.0037689208984375, 0.0085906982421875, 0.0041961669921875, 0.046722412109375, 0.0160675048828125, 0.0002942085266113281, -0.01448822021484375, -0.0533447265625, 0.03204345703125, 0.01464080810546875, -0.0088043212890625, 0.054595947265625, -0.022430419921875, -0.0244293212890625, 0.03155517578125, 0.033172607421875, -0.036712646484375, -0.00989532470703125, 0.0170745849609375, -0.019805908203125, -0.01708984375, 0.02362060546875, -0.0262603759765625, -0.02764892578125, -0.00826263427734375, -0.0104827880859375, -0.0236358642578125, 0.005565643310546875, 0.0178985595703125, -0.0010271072387695312, -0.0052642822265625, 0.0298919677734375, 0.0172271728515625, -0.0005650520324707031, -0.016693115234375, -0.01406097412109375, 0.01033782958984375, -0.02349853515625, -0.00016582012176513672, -0.00907135009765625, -0.02239990234375, -0.05126953125, 0.02032470703125, -0.0100555419921875, 0.02069091796875, 0.0079193115234375, -0.02581787109375, -0.0091094970703125, 0.0226593017578125, -0.0225372314453125, 0.002124786376953125, -0.0079498291015625, -0.038970947265625, 0.00821685791015625, -0.009979248046875, 0.002105712890625, 0.025390625, -0.02337646484375, 0.01444244384765625, -0.01873779296875, 0.0049285888671875, -0.008209228515625, -0.052490234375, 0.05706787109375, -0.07318115234375, 0.0236358642578125, 0.026580810546875, 0.0217132568359375, 0.0006136894226074219, 0.01006317138671875, -0.00574493408203125, -0.023834228515625, 0.0009641647338867188, 0.00799560546875, -0.0242767333984375, 0.0210113525390625, 0.01467132568359375, -0.0701904296875, 0.036865234375, 0.0260009765625, 0.033660888671875, -0.0293121337890625, 0.00788116455078125, 0.010406494140625, -0.0005650520324707031, -0.0247344970703125, 0.0557861328125, 0.00911712646484375, 0.018829345703125, -0.0213623046875, -0.003536224365234375, 0.0198516845703125, 0.0134429931640625, 0.09783935546875, 0.016510009765625, -0.011322021484375, -0.00807952880859375, 0.055877685546875, 0.039276123046875, -0.013641357421875, 0.0249481201171875, 0.0228729248046875, 0.002651214599609375, 0.036376953125, 0.01299285888671875, 0.040802001953125, -0.0166015625, -0.01279449462890625, 0.035980224609375, 0.009002685546875, 0.0036487579345703125, 0.015228271484375, 0.038177490234375, -0.013519287109375, 0.0167236328125, 0.005260467529296875, 0.0276031494140625, -0.0089874267578125, 0.032440185546875, 0.0190277099609375, -0.01239013671875, 0.03326416015625, -0.021636962890625, 0.05322265625, -0.0032634735107421875, 0.08740234375, 0.0423583984375, 0.0277252197265625, 0.11932373046875, 0.003429412841796875, 0.06146240234375, 0.030853271484375, -0.046356201171875, 0.047149658203125, -0.002239227294921875, 0.008636474609375, -0.06890869140625, -0.011199951171875, 0.055816650390625, 0.07025146484375, -0.04241943359375, -0.043487548828125, 0.01239013671875, 0.005977630615234375, -0.0022029876708984375, 0.00926971435546875, 0.0193634033203125, 0.01153564453125, 0.03948974609375, -0.04681396484375, 0.0015363693237304688, 0.02008056640625, 0.000804901123046875, 0.008270263671875, 0.045135498046875, -0.03167724609375, 0.005992889404296875, -0.035919189453125, 0.047760009765625, 0.026519775390625, 0.045135498046875, -0.04888916015625, 0.09466552734375, -0.0215606689453125, -0.0154571533203125, -0.0131378173828125, 0.0302581787109375, 0.0272369384765625, 0.00640106201171875, -0.02777099609375, -0.0156097412109375, 0.03350830078125, 0.03302001953125, 0.004421234130859375, -0.028656005859375, -0.0161590576171875, 0.0596923828125, 0.059478759765625, -0.0200653076171875, 0.034332275390625, 0.01995849609375, -0.04296875, -0.018951416015625, 0.0135955810546875, 0.056396484375, 0.00899505615234375, 0.0287628173828125, 0.034454345703125, 0.03216552734375, -0.032562255859375, 0.04766845703125, -0.0082244873046875, -0.0170440673828125, 0.05218505859375, -0.046234130859375, 0.06488037109375, -0.02099609375, -0.05029296875, -0.0258941650390625, -0.00827789306640625, -0.0207977294921875, 0.01983642578125, 0.033843994140625, 0.005260467529296875, -0.0036468505859375, 0.0302734375, -0.032012939453125, -0.013702392578125, 0.0204010009765625, 0.02679443359375, -0.0283203125, -0.002658843994140625, -0.003261566162109375, 0.016632080078125, 0.0142974853515625, 0.02044677734375, 0.00962066650390625, -0.020355224609375, 0.112548828125, -0.0369873046875, -0.01038360595703125, -0.055511474609375, 0.0802001953125, -0.10296630859375, -0.07513427734375, 0.11810302734375, -0.01313018798828125, -0.024505615234375, 0.0082244873046875, -0.0012054443359375, -0.00652313232421875, 0.039093017578125, -0.055145263671875, -0.03076171875, 0.0298614501953125, -0.0004787445068359375, -0.0282440185546875, 0.04473876953125, -0.007656097412109375, 0.0018262863159179688, -0.017547607421875, -0.0297393798828125, 0.03460693359375, 0.045318603515625, 0.0125274658203125, 0.0176544189453125, -0.02276611328125, -0.0269775390625, 0.0217742919921875, -0.042144775390625, -0.005950927734375, 0.018341064453125, 0.0166168212890625, -0.06744384765625, 0.0343017578125, -0.011474609375, -0.01145172119140625, 0.00666046142578125, 0.0433349609375, 0.0186767578125, -0.1041259765625, 0.0028171539306640625, 0.03900146484375, 0.0250396728515625, -0.0163726806640625, -0.00046825408935546875, 0.036834716796875, -0.01317596435546875, -0.0208892822265625, -0.01091766357421875, -0.0301055908203125, -0.028167724609375, 0.0059967041015625, 0.0163421630859375, 0.005359649658203125, -0.0202484130859375, -0.03155517578125, -0.01432037353515625, 0.043914794921875, -0.0044708251953125, 0.02301025390625, 0.004878997802734375, -0.04345703125, -0.022186279296875, 0.022369384765625, -0.030731201171875, 0.005573272705078125, 0.01123046875, -0.05853271484375, -0.01099395751953125, -0.044677734375, -0.03350830078125, -0.05047607421875, 0.04083251953125, 0.01239776611328125, -0.0521240234375, 0.00542449951171875, 0.055816650390625, 0.060821533203125, 0.08551025390625, 0.082763671875, -0.04193115234375, -0.009918212890625, 0.016265869140625, -0.009490966796875, 0.0204010009765625, 0.0143890380859375, 0.036407470703125, -0.0191192626953125, 0.01271820068359375, -0.02496337890625, -0.0032901763916015625, -0.042022705078125, -0.06683349609375, 0.032470703125, 0.01074981689453125, -0.037689208984375, -0.041839599609375, -0.0390625, -0.0142669677734375, 0.0288543701171875, -0.0283355712890625, 0.0007829666137695312, -0.03631591796875, 0.06683349609375, 0.0246124267578125, -0.023162841796875, 0.04180908203125, 0.0044403076171875, -0.0440673828125, 0.020111083984375, 0.01763916015625, 0.005298614501953125, 0.0133209228515625, 0.0074920654296875, -0.0096282958984375, 0.0338134765625, -0.044586181640625, -0.0196380615234375, -0.037078857421875, -0.0017271041870117188, 0.01849365234375, -0.034576416015625, -0.019927978515625, -0.02984619140625, 0.00628662109375, -0.0076751708984375, -0.00643157958984375, 0.000606536865234375, -0.047576904296875, -0.0289459228515625, -0.01480865478515625, -0.0162200927734375, 0.020751953125, -0.06939697265625, 0.0063934326171875, 0.00746917724609375, 0.00827789306640625, 0.040435791015625, -0.015625, -0.0163421630859375, -0.00983428955078125, -0.018157958984375, -0.02191162109375, -0.061248779296875, -0.039825439453125, -0.031341552734375, 0.00009465217590332031, -0.0472412109375, 0.01032257080078125, 0.0261383056640625, -0.051239013671875, 0.06488037109375, -0.0234527587890625, -0.002552032470703125, -0.0002486705780029297, 0.01145172119140625, 0.01122283935546875, -0.0102996826171875, 0.01580810546875, 0.020599365234375, -0.0270233154296875, 0.033050537109375, 0.02606201171875, 0.0306243896484375, -0.0635986328125, 0.061431884765625, 0.029754638671875, 0.034820556640625, -0.003940582275390625, -0.0021114349365234375, -0.01611328125, 0.03558349609375, -0.0260467529296875, -0.01334381103515625, -0.0221405029296875, -0.0236968994140625, 0.002468109130859375, -0.0101776123046875, -0.004703521728515625, -0.053741455078125, 0.040069580078125, -0.0364990234375, -0.0051727294921875, 0.037261962890625 ]
e841dcecd1943492f380ab9b9cab27eb1d9384b5
Wordpress Stackexchange Q: Why are passwords exportable as plain text in WordPress? On my WordPress 3.9.2 installation can I extract the users plain text passwords by going to Users, select all users, and choosing Bulk Actions Export. When I look in the mySQL database with phpMyAdmin, the passwords are hashed. Question How come all user passwords can be exported in plain text, and how can I prevent this? Update When I either export one user or "Export All Users" I get output similar to this User ID,Username,Payment Status,First Name,Last Name,Address,Zip,City,Country,Date,Sex,Phone no.,Email,Company,Password,TOS,Website,AIM,Yahoo IM,Jabber/Google Talk,Biographical Info,Registered,IP "31","xxx","paid","Jasmine","Lognnes","xxx","xxx","xxx","","xxx","female","","xxx","xxx","xxx","agree","","","","","","2012-01-26 18:13:19","xxx" A: It is a bug in wp-members plugin. Others have reported the same error. * *http://user-meta.com/forums/topic/able-to-save-plain-text-passwords-as-a-user-meta-value/ *http://wordpress.org/support/topic/wp-member-passwords-are-stored-in-clear-text-in-database-highly-insecure
Q: Why are passwords exportable as plain text in WordPress? On my WordPress 3.9.2 installation can I extract the users plain text passwords by going to Users, select all users, and choosing Bulk Actions Export. When I look in the mySQL database with phpMyAdmin, the passwords are hashed. Question How come all user passwords can be exported in plain text, and how can I prevent this? Update When I either export one user or "Export All Users" I get output similar to this User ID,Username,Payment Status,First Name,Last Name,Address,Zip,City,Country,Date,Sex,Phone no.,Email,Company,Password,TOS,Website,AIM,Yahoo IM,Jabber/Google Talk,Biographical Info,Registered,IP "31","xxx","paid","Jasmine","Lognnes","xxx","xxx","xxx","","xxx","female","","xxx","xxx","xxx","agree","","","","","","2012-01-26 18:13:19","xxx" A: It is a bug in wp-members plugin. Others have reported the same error. * *http://user-meta.com/forums/topic/able-to-save-plain-text-passwords-as-a-user-meta-value/ *http://wordpress.org/support/topic/wp-member-passwords-are-stored-in-clear-text-in-database-highly-insecure A: You cannot export passwords as plaintext in WordPress, because they are not stored in plaintext. What you see here is obviously the result of a very bad plugin. Fields like Payment, Sex or Company are not even part of the regular WordPress tables. For the future: Do not install plugins without prior tests and reviews in a safe environment. Use a local setup to find such security problems. Especially when you are dealing with other peoples data, this is a requirement. What you should do now: Disable all plugins until this export is not possible anymore. The last disabled plugin was probably the problem. Find all the tables that it has created, delete those tables. Uninstall that plugin.
wordpress
{ "language": "en", "length": 230, "provenance": "stackexchange_00019.jsonl.gz:447957", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158248" }
[ 0.006610870361328125, -0.0177764892578125, 0.0221710205078125, 0.0310821533203125, -0.0291595458984375, -0.01271820068359375, 0.0538330078125, -0.0513916015625, 0.032470703125, 0.044952392578125, 0.01226043701171875, 0.00695037841796875, -0.01427459716796875, -0.00518035888671875, -0.054840087890625, -0.01049041748046875, 0.00836944580078125, 0.0234222412109375, -0.0021114349365234375, -0.0171966552734375, -0.0057830810546875, 0.0008549690246582031, -0.00771331787109375, -0.041107177734375, 0.042449951171875, 0.035919189453125, 0.05224609375, -0.014312744140625, 0.060546875, 0.0227203369140625, 0.03851318359375, -0.08770751953125, 0.01178741455078125, 0.017486572265625, -0.01273345947265625, -0.030364990234375, -0.03143310546875, 0.02191162109375, 0.00589752197265625, -0.00860595703125, -0.0033512115478515625, 0.0019664764404296875, 0.0222930908203125, 0.0218658447265625, -0.021484375, -0.041351318359375, 0.022979736328125, -0.0171051025390625, 0.0237579345703125, 0.02886962890625, -0.0011491775512695312, 0.017913818359375, 0.0036468505859375, 0.0292205810546875, -0.0022563934326171875, -0.0214080810546875, -0.08953857421875, 0.03594970703125, 0.04168701171875, 0.0469970703125, 0.01239013671875, -0.0543212890625, 0.00415802001953125, -0.04364013671875, 0.000011444091796875, -0.038909912109375, 0.040496826171875, 0.020538330078125, -0.018829345703125, -0.004123687744140625, 0.0246124267578125, 0.0316162109375, 0.0290985107421875, -0.055816650390625, -0.0168304443359375, 0.07489013671875, -0.0311126708984375, 0.01549530029296875, 0.03948974609375, -0.056396484375, -0.021453857421875, 0.0007028579711914062, -0.0135498046875, 0.0015268325805664062, -0.004901885986328125, 0.0200958251953125, -0.02801513671875, -0.006160736083984375, 0.0237579345703125, 0.0166015625, 0.00897216796875, 0.0092315673828125, 0.013671875, 0.061981201171875, -0.00823211669921875, -0.0086212158203125, -0.016143798828125, 0.0203094482421875, -0.0265350341796875, 0.0290374755859375, -0.020599365234375, -0.01070404052734375, 0.01190185546875, -0.035614013671875, -0.0288238525390625, 0.00566864013671875, -0.0020389556884765625, -0.019744873046875, -0.0238037109375, 0.03802490234375, -0.020660400390625, -0.0750732421875, -0.0472412109375, -0.061187744140625, 0.0052490234375, 0.0623779296875, -0.0202484130859375, -0.00208282470703125, 0.007114410400390625, 0.00193023681640625, -0.002513885498046875, 0.0195770263671875, -0.037994384765625, -0.01554107666015625, -0.02978515625, -0.0540771484375, -0.01525115966796875, 0.0225982666015625, -0.00885772705078125, 0.06243896484375, -0.042999267578125, -0.00884246826171875, 0.0252838134765625, 0.01025390625, -0.0072784423828125, -0.052520751953125, 0.03314208984375, -0.06591796875, -0.029205322265625, 0.060760498046875, -0.0296478271484375, -0.05816650390625, -0.00238037109375, -0.0223388671875, -0.022125244140625, -0.0016880035400390625, 0.004886627197265625, 0.0177001953125, 0.021026611328125, -0.0115509033203125, -0.04254150390625, -0.004703521728515625, 0.017974853515625, 0.023773193359375, -0.0011920928955078125, 0.003978729248046875, 0.028076171875, -0.023223876953125, -0.0213775634765625, -0.022552490234375, 0.033966064453125, -0.0179901123046875, -0.035491943359375, 0.058563232421875, 0.0347900390625, 0.0187530517578125, -0.00003510713577270508, 0.01290130615234375, 0.0141143798828125, -0.0272979736328125, -0.04022216796875, 0.021697998046875, 0.0239715576171875, 0.00925445556640625, 0.0040435791015625, 0.0309600830078125, -0.02301025390625, 0.01424407958984375, 0.007709503173828125, 0.019500732421875, -0.0107879638671875, -0.037628173828125, 0.0249481201171875, -0.0055999755859375, -0.032562255859375, -0.023284912109375, 0.025482177734375, 0.060760498046875, 0.035919189453125, 0.040496826171875, 0.015838623046875, -0.0310821533203125, 0.00531768798828125, 0.00923919677734375, 0.00518035888671875, -0.037445068359375, 0.0369873046875, -0.0142822265625, 0.0012388229370117188, -0.001739501953125, 0.08538818359375, -0.00933074951171875, 0.043212890625, -0.0289154052734375, -0.010345458984375, -0.0052947998046875, -0.0012693405151367188, 0.00977325439453125, -0.038726806640625, 0.011688232421875, 0.03179931640625, -0.01690673828125, -0.0286865234375, 0.0196075439453125, 0.0030364990234375, -0.021514892578125, -0.01085662841796875, 0.07159423828125, 0.005756378173828125, 0.04949951171875, 0.0233612060546875, -0.05645751953125, 0.039703369140625, 0.012664794921875, -0.0235443115234375, -0.002933502197265625, -0.0276031494140625, 0.0012331008911132812, 0.0027942657470703125, -0.01132965087890625, 0.065673828125, 0.023956298828125, 0.006847381591796875, 0.038665771484375, -0.033599853515625, -0.01468658447265625, -0.01296234130859375, 0.01091766357421875, 0.002349853515625, 0.024658203125, 0.039947509765625, 0.060943603515625, -0.003681182861328125, -0.015625, 0.0640869140625, -0.0272674560546875, 0.0183868408203125, -0.033355712890625, -0.01715087890625, -0.0012598037719726562, 0.016143798828125, 0.00537872314453125, 0.01885986328125, -0.07476806640625, 0.0012731552124023438, 0.05218505859375, -0.0250396728515625, 0.0193328857421875, -0.01352691650390625, -0.00664520263671875, -0.014404296875, -0.040740966796875, 0.01421356201171875, -0.0301971435546875, -0.015625, 0.00057220458984375, -0.01506805419921875, -0.00586700439453125, -0.018157958984375, -0.0114288330078125, 0.03485107421875, -0.01092529296875, 0.005107879638671875, 0.0484619140625, 0.052581787109375, 0.0266571044921875, -0.0176239013671875, -0.039520263671875, 0.01108551025390625, 0.0421142578125, 0.021636962890625, -0.00983428955078125, -0.00565338134765625, 0.00966644287109375, 0.032501220703125, -0.0196533203125, 0.016693115234375, 0.046295166015625, -0.050262451171875, -0.007663726806640625, 0.033477783203125, 0.0677490234375, 0.038970947265625, -0.01068878173828125, -0.0430908203125, 0.03729248046875, 0.0174560546875, -0.032958984375, 0.03179931640625, -0.019195556640625, 0.032501220703125, 0.061370849609375, -0.022125244140625, 0.00612640380859375, -0.021636962890625, -0.0020694732666015625, -0.0298004150390625, -0.002574920654296875, -0.03912353515625, -0.059356689453125, -0.041259765625, -0.024566650390625, 0.014617919921875, 0.02984619140625, -0.03228759765625, -0.03424072265625, -0.01495361328125, -0.0018711090087890625, -0.0379638671875, -0.03253173828125, -0.0181732177734375, -0.0760498046875, -0.007442474365234375, -0.0031604766845703125, -0.04388427734375, -0.00165557861328125, 0.0278167724609375, 0.01519012451171875, 0.0626220703125, -0.024139404296875, -0.060272216796875, -0.03118896484375, -0.08795166015625, -0.040740966796875, -0.0020656585693359375, 0.0018568038940429688, -0.00908660888671875, 0.0465087890625, -0.0147705078125, -0.059539794921875, -0.05072021484375, 0.041290283203125, -0.00975799560546875, -0.045440673828125, -0.025634765625, -0.0222930908203125, 0.001575469970703125, -0.0108489990234375, 0.0111083984375, -0.0189361572265625, 0.035980224609375, -0.0138702392578125, 0.026519775390625, -0.042572021484375, 0.0295867919921875, -0.035614013671875, -0.05926513671875, -0.00505828857421875, 0.0156402587890625, -0.053466796875, 0.0037517547607421875, 0.0194549560546875, -0.01025390625, 0.0298004150390625, -0.0207672119140625, -0.0308990478515625, 0.031005859375, 0.010650634765625, 0.01425933837890625, 0.017333984375, 0.01351165771484375, 0.0162200927734375, -0.0474853515625, -0.0195159912109375, -0.006687164306640625, -0.004756927490234375, 0.0187225341796875, -0.0283355712890625, 0.00760650634765625, 0.00359344482421875, -0.021820068359375, -0.00954437255859375, 0.012542724609375, 0.0228118896484375, -0.0948486328125, 0.06256103515625, -0.04730224609375, -0.04351806640625, -0.05975341796875, -0.037139892578125, 0.00112152099609375, 0.1102294921875, -0.07257080078125, -0.0279388427734375, 0.0080413818359375, 0.039031982421875, -0.007965087890625, -0.044586181640625, -0.001682281494140625, -0.0283966064453125, -0.0252685546875, -0.00399017333984375, -0.01568603515625, -0.0038242340087890625, 0.0104827880859375, -0.0994873046875, 0.0237579345703125, -0.03948974609375, -0.0012464523315429688, 0.0653076171875, 0.0156402587890625, -0.04248046875, 0.0287933349609375, -0.06976318359375, 0.04461669921875, -0.00849151611328125, -0.0791015625, -0.0027256011962890625, -0.017333984375, 0.041351318359375, 0.00173187255859375, -0.01788330078125, -0.0303802490234375, 0.027191162109375, -0.0001227855682373047, 0.039520263671875, -0.0051116943359375, -0.0003044605255126953, 0.02435302734375, -0.00009953975677490234, 0.002086639404296875, -0.010498046875, -0.003086090087890625, -0.0248260498046875, -0.05914306640625, -0.041351318359375, -0.03021240234375, -0.0173492431640625, 0.032012939453125, -0.0303955078125, -0.037841796875, -0.042755126953125, -0.00827789306640625, 0.0026912689208984375, 0.00391387939453125, -0.0177459716796875, -0.04443359375, -0.0233154296875, 0.035858154296875, -0.00438690185546875, -0.0272674560546875, 0.016448974609375, 0.04034423828125, 0.0031414031982421875, -0.012969970703125, -0.043914794921875, 0.0272216796875, 0.05194091796875, 0.031036376953125, 0.0176239013671875, 0.01329803466796875, -0.03607177734375, 0.045196533203125, 0.041015625, 0.0272369384765625, -0.0576171875, 0.0236968994140625, -0.0157318115234375, -0.0213623046875, 0.02484130859375, -0.01983642578125, 0.049102783203125, 0.043701171875, 0.04827880859375, -0.041534423828125, 0.0247955322265625, 0.01326751708984375, 0.049346923828125, -0.07843017578125, -0.01329803466796875, -0.0703125, 0.0296173095703125, -0.0447998046875, -0.034942626953125, -0.01922607421875, 0.0038776397705078125, 0.00467681884765625, -0.0098114013671875, -0.0309600830078125, -0.024932861328125, -0.05487060546875, -0.00582122802734375, -0.00021219253540039062, -0.039520263671875, -0.0277099609375, -0.0027637481689453125, -0.0119476318359375, 0.051971435546875, -0.00304412841796875, -0.050445556640625, -0.00013685226440429688, -0.005062103271484375, 0.06475830078125, 0.03961181640625, 0.0114593505859375, 0.050933837890625, -0.01904296875, -0.00371551513671875, 0.007083892822265625, -0.044586181640625, 0.00969696044921875, -0.033599853515625, -0.00251007080078125, -0.00518035888671875, -0.013397216796875, 0.0217742919921875, 0.046722412109375, -0.037384033203125, 0.05499267578125, -0.00485992431640625, -0.016815185546875, 0.031951904296875, -0.0002231597900390625, 0.0298614501953125, 0.0234527587890625, -0.039520263671875, 0.01367950439453125, 0.033294677734375, -0.03338623046875, 0.027435302734375, 0.0267181396484375, 0.00003886222839355469, 0.0277252197265625, -0.025054931640625, -0.000736236572265625, -0.0194091796875, 0.003719329833984375, 0.040863037109375, -0.036895751953125, -0.055511474609375, -0.03179931640625, -0.0254974365234375, 0.01617431640625, -0.03778076171875, 0.0214080810546875, -0.0338134765625, -0.022979736328125, -0.040313720703125, 0.01276397705078125, -0.0179443359375, -0.065673828125, -0.059814453125, -0.008544921875, -0.0265350341796875, -0.0031890869140625, -0.0011959075927734375, 0.026397705078125, -0.0278778076171875, -0.0321044921875, 0.036773681640625, 0.0228424072265625, -0.0113067626953125, -0.0391845703125, -0.003204345703125, -0.026763916015625, -0.01079559326171875, 0.0401611328125, -0.01702880859375, 0.0030364990234375, -0.005664825439453125, 0.019866943359375, -0.00843048095703125, 0.056671142578125, -0.0021038055419921875, -0.003589630126953125, -0.052154541015625, -0.006015777587890625, 0.00913238525390625, -0.0135955810546875, -0.0277557373046875, -0.000020503997802734375, 0.0135345458984375, 0.01526641845703125, 0.020538330078125, -0.048828125, 0.07476806640625, 0.041900634765625, 0.0447998046875, 0.00344085693359375, 0.045623779296875, 0.0133056640625, -0.007061004638671875, 0.022186279296875, -0.00522613525390625, -0.0137176513671875, -0.01129150390625, 0.050445556640625, -0.040863037109375, -0.01412200927734375, -0.01406097412109375, -0.03680419921875, 0.030792236328125, 0.033203125, -0.00832366943359375, 0.01678466796875, 0.059356689453125, -0.042266845703125, 0.02923583984375, -0.01263427734375, 0.0352783203125, -0.026763916015625, -0.01415252685546875, 0.047698974609375, -0.03363037109375, 0.0298309326171875, 0.039581298828125, -0.016510009765625, 0.023681640625, 0.0256195068359375, -0.0293426513671875, 0.0183258056640625, 0.01264190673828125, 0.011505126953125, 0.0127105712890625, -0.0252685546875, -0.013671875, 0.0279541015625, 0.01319122314453125, -0.02239990234375, -0.0318603515625, -0.01361846923828125, -0.0199127197265625, 0.0433349609375, 0.05902099609375, 0.091064453125, -0.08282470703125, 0.0265655517578125, 0.019378662109375, -0.0386962890625, 0.0248260498046875, 0.0251922607421875, -0.02435302734375, -0.03594970703125, 0.0260772705078125, -0.0075225830078125, -0.00818634033203125, 0.019439697265625, 0.0039043426513671875, 0.0146026611328125, -0.005199432373046875, -0.0016202926635742188, -0.01123046875, -0.037322998046875, -0.0205230712890625, 0.042449951171875, -0.0018329620361328125, -0.0152740478515625, -0.00962066650390625, -0.003986358642578125, -0.0160675048828125, -0.061920166015625, -0.0197296142578125, -0.040863037109375, -0.0163421630859375, -0.061492919921875, 0.00152587890625, 0.0736083984375, 0.020965576171875, -0.001354217529296875, -0.016845703125, -0.00975799560546875, 0.023193359375, 0.00791168212890625, -0.011749267578125, -0.0209503173828125, -0.01226043701171875, -0.0203857421875, 0.01444244384765625, -0.04156494140625, 0.0008897781372070312, -0.03973388671875, -0.04730224609375, 0.0894775390625, 0.005645751953125, -0.0262603759765625, 0.0299224853515625, 0.01800537109375, -0.035675048828125, -0.004650115966796875, 0.0438232421875, -0.0219879150390625, 0.01068878173828125, 0.0023555755615234375, -0.01268768310546875, -0.0350341796875, -0.004741668701171875, -0.061981201171875, 0.05572509765625, 0.0097503662109375, 0.0005621910095214844, -0.0249786376953125, 0.0263519287109375, 0.01422882080078125, 0.0178985595703125, -0.020599365234375, 0.039306640625, 0.04473876953125, 0.034576416015625, -0.017852783203125, -0.0186309814453125, 0.019073486328125, 0.04248046875, -0.00543212890625, 0.0071258544921875, -0.013336181640625, -0.0095977783203125, -0.003448486328125, 0.0139007568359375, -0.01354217529296875, 0.0261688232421875, 0.03851318359375, 0.04852294921875, 0.062103271484375, -0.0389404296875, 0.044586181640625, -0.02239990234375, 0.01430511474609375, 0.036651611328125, -0.01084136962890625, -0.033416748046875, 0.00609588623046875, 0.040374755859375, -0.0172271728515625, 0.00637054443359375, -0.0056915283203125, 0.006458282470703125, 0.039825439453125, -0.00150299072265625, 0.042022705078125, -0.0518798828125, -0.0020122528076171875, -0.00963592529296875, 0.044525146484375, -0.0009298324584960938, 0.035186767578125, 0.032470703125, 0.029144287109375, 0.036529541015625, 0.01432037353515625, 0.02496337890625, 0.0198516845703125, 0.00341033935546875, 0.0408935546875, 0.00293731689453125, 0.014129638671875, -0.031890869140625, 0.029022216796875, 0.03375244140625, 0.04144287109375, -0.0399169921875, -0.057647705078125, 0.0005273818969726562, 0.017791748046875, 0.032257080078125, 0.041595458984375, 0.06451416015625, 0.005481719970703125, 0.046600341796875, -0.040283203125, 0.00231170654296875, 0.00989532470703125, -0.01068115234375, -0.012054443359375, 0.0030002593994140625, 0.0201263427734375, 0.0137176513671875, -0.019195556640625, 0.0177764892578125, 0.01800537109375, 0.0118255615234375, -0.01568603515625, 0.031402587890625, 0.022247314453125, -0.0007252693176269531, -0.0193328857421875, 0.018524169921875, 0.0095672607421875, 0.01885986328125, -0.0029926300048828125, 0.0172576904296875, 0.007656097412109375, 0.01409149169921875, -0.00677490234375, 0.0026760101318359375, 0.04754638671875, 0.03985595703125, -0.0565185546875, -0.03778076171875, 0.00769805908203125, -0.019012451171875, -0.0207061767578125, -0.030670166015625, 0.0240936279296875, 0.023162841796875, 0.0238037109375, -0.01549530029296875, 0.057830810546875, 0.01457977294921875, 0.01229095458984375, 0.0445556640625, 0.00080108642578125, 0.02154541015625, -0.012603759765625, -0.008941650390625, -0.044769287109375, 0.025970458984375, -0.01430511474609375, -0.0004115104675292969, -0.00030732154846191406, -0.0212554931640625, -0.0190582275390625, 0.0116119384765625, -0.0223846435546875, 0.044525146484375, 0.00934600830078125, -0.0030765533447265625, 0.04010009765625, -0.0006866455078125, -0.021484375, 0.037689208984375, 0.041229248046875, 0.0009446144104003906, -0.055267333984375, -0.001537322998046875, 0.0009212493896484375, 0.00548553466796875, -0.00823974609375, 0.0892333984375, 0.0054931640625, -0.004932403564453125, 0.00958251953125, 0.011962890625, -0.0391845703125, -0.0208740234375, 0.01404571533203125, -0.034637451171875, 0.02862548828125, 0.01064300537109375, -0.0460205078125, 0.052215576171875, 0.0076141357421875, 0.0180816650390625, 0.024627685546875, -0.00791168212890625, 0.00811004638671875, 0.0200653076171875, 0.00945281982421875, -0.01454925537109375, -0.015167236328125, -0.0255584716796875, -0.0171356201171875, 0.03533935546875, 0.0308990478515625, -0.004344940185546875, 0.0143585205078125, 0.030731201171875, -0.0173492431640625, 0.01059722900390625, -0.002223968505859375, 0.00121307373046875, 0.018768310546875, 0.0241241455078125, -0.0009007453918457031, 0.01390838623046875, -0.0241241455078125, 0.0330810546875, -0.024749755859375, 0.0556640625, -0.0006427764892578125, -0.032135009765625, 0.0156402587890625, 0.055572509765625, 0.059326171875, 0.036376953125, 0.0149383544921875, 0.0175933837890625, -0.039825439453125, 0.008026123046875, -0.02825927734375, -0.03265380859375, -0.038909912109375, -0.0008101463317871094, 0.022064208984375, -0.034149169921875, -0.0538330078125, -0.093505859375, -0.01396942138671875, 0.01195526123046875, -0.0080108642578125, -0.024444580078125, 0.020050048828125, -0.0167694091796875, -0.01214599609375, -0.00969696044921875, -0.029022216796875, -0.00846099853515625, -0.0026607513427734375, 0.0291290283203125, -0.0418701171875, -0.029510498046875, 0.0745849609375, -0.0015974044799804688, -0.0011281967163085938, 0.0171051025390625, 0.005558013916015625, 0.004901885986328125, -0.014617919921875, -0.022613525390625, 0.038330078125, -0.04949951171875, -0.0278167724609375, 0.01531219482421875, 0.01554107666015625, -0.0008153915405273438, -0.04925537109375, -0.020477294921875, -0.01389312744140625, 0.035064697265625, 0.0014429092407226562, 0.0084228515625, 0.0106353759765625, -0.0404052734375, -0.0732421875, 0.04840087890625, -0.004169464111328125, -0.032012939453125, -0.0201416015625, 0.0241241455078125, -0.0059661865234375, -0.0208587646484375, -0.005725860595703125, 0.006885528564453125, 0.00274658203125, 0.01934814453125, 0.045501708984375, -0.022186279296875, 0.0085296630859375, 0.038421630859375, -0.056365966796875, 0.0560302734375, 0.04229736328125, -0.004489898681640625, 0.01349639892578125, 0.0027103424072265625, 0.0523681640625, 0.06378173828125, 0.0002803802490234375, 0.06500244140625, 0.005474090576171875, -0.07196044921875, -0.004795074462890625, 0.0141448974609375, -0.026885986328125, 0.006427764892578125, 0.059661865234375, 0.05157470703125, 0.01849365234375, -0.0447998046875, -0.0548095703125, -0.0240020751953125, 0.04986572265625, -0.0186614990234375, -0.01824951171875, -0.053955078125, -0.01800537109375, -0.007709503173828125, -0.0172882080078125, 0.01285552978515625, -0.0257415771484375, -0.0203704833984375, 0.0009288787841796875, 0.03717041015625, -0.00455474853515625, 0.01279449462890625, -0.035888671875, 0.0203704833984375, -0.027435302734375, -0.0274505615234375, 0.029541015625, 0.015594482421875, -0.00897979736328125, 0.042083740234375, -0.01361846923828125, -0.040191650390625, 0.0277252197265625, 0.036895751953125, -0.0045928955078125, 0.025054931640625, -0.0143280029296875, -0.02398681640625, 0.0148162841796875, 0.01342010498046875, -0.00146484375, 0.0242919921875, -0.0167236328125, 0.03778076171875, 0.00014269351959228516, -0.0008482933044433594, -0.039581298828125, -0.055328369140625, -0.0841064453125, 0.05059814453125, -0.0067291259765625, 0.004913330078125, 0.0198516845703125, 0.026153564453125, 0.0146026611328125, -0.0301513671875, 0.04248046875, -0.01898193359375, 0.01085662841796875, -0.01885986328125, -0.0099639892578125, 0.012451171875 ]
8f1f555d47acd04c878cdf18cc37cae2ed103536
Wordpress Stackexchange Q: Scheduled events disappear from events queue I'm having an issue where events that I have scheduled work for a while then just stop. After looking at the event queue I see that the scheduled events are no longer in the queue. If I deactivate then reactivate the plugin the schedule is back and works for a period of time. I don't know if WordPress has something that removes events if they timeout or anything like that. Here is my code: register_activation_hook(__FILE__, 'k2_section_featured_ads_setup'); function k2_section_featured_ads_setup() { wp_schedule_event('1395871200', 'minutely', 'k2_section_featured_ads_hook'); } register_deactivation_hook(__FILE__, 'k2_section_featured_ads_deactivation'); function k2_section_featured_ads_deactivation() { $featured_next = wp_next_scheduled('k2_section_featured_ads_hook'); wp_unschedule_event($featured_next, 'k2_section_featured_ads_hook'); } add_action('k2_section_featured_ads_hook', 'k2_section_featured_ads_check_time'); function k2_section_featured_ads_check_time() { // function here } Here is the filter for my extra cron schedules function k2_cron_add_schedules( $schedules ) { $schedules['quarterday'] = array( 'interval' => 14400, 'display' => __('Once every 4 hours') ); $schedules['minutely'] = array( 'interval' => 60, 'display' => __('Once every 1 minute') ); return $schedules; } add_filter('cron_schedules', 'k2_cron_add_schedules'); A: My solution for now is check every hour if it is running and if not reschedule it. I also remove this in deactivate etc. wp_schedule_event(time(), 'hourly', 'my_restart_schedule_if_failed'); function my_restart_schedule_if_failed() { if( !wp_next_scheduled( 'my_scheduled_minute_job' ) ) { wp_schedule_event( time(), 'one_minute', 'my_scheduled_minute_job' ); } }
Q: Scheduled events disappear from events queue I'm having an issue where events that I have scheduled work for a while then just stop. After looking at the event queue I see that the scheduled events are no longer in the queue. If I deactivate then reactivate the plugin the schedule is back and works for a period of time. I don't know if WordPress has something that removes events if they timeout or anything like that. Here is my code: register_activation_hook(__FILE__, 'k2_section_featured_ads_setup'); function k2_section_featured_ads_setup() { wp_schedule_event('1395871200', 'minutely', 'k2_section_featured_ads_hook'); } register_deactivation_hook(__FILE__, 'k2_section_featured_ads_deactivation'); function k2_section_featured_ads_deactivation() { $featured_next = wp_next_scheduled('k2_section_featured_ads_hook'); wp_unschedule_event($featured_next, 'k2_section_featured_ads_hook'); } add_action('k2_section_featured_ads_hook', 'k2_section_featured_ads_check_time'); function k2_section_featured_ads_check_time() { // function here } Here is the filter for my extra cron schedules function k2_cron_add_schedules( $schedules ) { $schedules['quarterday'] = array( 'interval' => 14400, 'display' => __('Once every 4 hours') ); $schedules['minutely'] = array( 'interval' => 60, 'display' => __('Once every 1 minute') ); return $schedules; } add_filter('cron_schedules', 'k2_cron_add_schedules'); A: My solution for now is check every hour if it is running and if not reschedule it. I also remove this in deactivate etc. wp_schedule_event(time(), 'hourly', 'my_restart_schedule_if_failed'); function my_restart_schedule_if_failed() { if( !wp_next_scheduled( 'my_scheduled_minute_job' ) ) { wp_schedule_event( time(), 'one_minute', 'my_scheduled_minute_job' ); } } A: After pouring all of my points into this question and trying a few suggested options it seems that WordPress can't handle one minute crons. I have changed it to 5 minutes and haven't had any issues since. A few things that I tried over the course of weeks for testing purposes: * *Change the hook names to not include underscores [BUSTED] *Rewrite the plugin. Was written procedurally originally and now its all OOP [BUSTED] *Changed to 5 minute schedule [BUSTED] EDIT: I originally marked the last as working but after all these months it was unscheduled again. I'm still not sure what's going on with all of this. A: This topic on WP.ORG would help. Long story short - if there is issue or delay or break in the cron-job, it might get delisted by wp.
wordpress
{ "language": "en", "length": 336, "provenance": "stackexchange_00019.jsonl.gz:447973", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158303" }
[ 0.035186767578125, 0.03350830078125, -0.01235198974609375, -0.006694793701171875, 0.03497314453125, -0.033538818359375, 0.020416259765625, -0.05859375, 0.0198516845703125, 0.027191162109375, -0.0159149169921875, 0.00646209716796875, 0.0042724609375, -0.027923583984375, -0.022674560546875, -0.006378173828125, 0.0265655517578125, 0.01113128662109375, -0.0024013519287109375, -0.020111083984375, -0.0140380859375, 0.002925872802734375, -0.006481170654296875, 0.1165771484375, 0.00815582275390625, 0.0185699462890625, 0.0728759765625, -0.01415252685546875, 0.0019855499267578125, -0.0102691650390625, 0.0175628662109375, -0.039947509765625, -0.0222930908203125, 0.051849365234375, -0.00243377685546875, 0.0012350082397460938, 0.00832366943359375, 0.0226898193359375, 0.030975341796875, 0.0107421875, 0.0183258056640625, -0.0006823539733886719, 0.0092620849609375, 0.0012969970703125, -0.021636962890625, -0.0253143310546875, 0.035400390625, -0.0170440673828125, 0.001407623291015625, 0.062164306640625, 0.0408935546875, -0.006633758544921875, 0.031280517578125, 0.0133209228515625, 0.00008821487426757812, -0.0026836395263671875, -0.0236053466796875, 0.045257568359375, 0.00019073486328125, 0.0283660888671875, 0.003925323486328125, 0.056243896484375, -0.00995635986328125, -0.0162506103515625, -0.009307861328125, -0.0257415771484375, -0.0362548828125, 0.00695037841796875, -0.05535888671875, 0.005062103271484375, 0.06884765625, -0.0440673828125, -0.02239990234375, 0.0239715576171875, -0.0194244384765625, -0.030487060546875, -0.00604248046875, -0.038238525390625, 0.0181427001953125, 0.0305328369140625, 0.0262298583984375, 0.019500732421875, -0.02996826171875, 0.006305694580078125, 0.00850677490234375, 0.00551605224609375, -0.01183319091796875, -0.0164031982421875, -0.039276123046875, -0.00826263427734375, -0.027374267578125, 0.0101165771484375, -0.04632568359375, -0.0002541542053222656, -0.0033397674560546875, -0.0266265869140625, 0.061248779296875, 0.0687255859375, -0.0266876220703125, -0.037261962890625, -0.028717041015625, -0.01666259765625, -0.03759765625, -0.0167236328125, -0.01245880126953125, 0.060455322265625, 0.032379150390625, 0.0251007080078125, 0.01377105712890625, -0.003448486328125, -0.0009527206420898438, -0.007457733154296875, 0.032257080078125, 0.014678955078125, -0.041839599609375, -0.051177978515625, -0.0165252685546875, 0.02130126953125, 0.0236358642578125, 0.002674102783203125, 0.01617431640625, 0.0207366943359375, -0.0016946792602539062, -0.0633544921875, -0.0017099380493164062, -0.03521728515625, -0.053863525390625, 0.007328033447265625, 0.05047607421875, 0.0231781005859375, -0.050323486328125, 0.002063751220703125, 0.052825927734375, -0.00951385498046875, 0.00455474853515625, -0.025146484375, 0.0204010009765625, 0.0250701904296875, 0.007709503173828125, 0.00662994384765625, 0.033355712890625, -0.0226898193359375, -0.006481170654296875, 0.007335662841796875, 0.041351318359375, 0.0150909423828125, 0.0030803680419921875, -0.016021728515625, 0.0242919921875, 0.009033203125, 0.0023517608642578125, -0.05401611328125, 0.0285186767578125, 0.033294677734375, -0.02642822265625, 0.0011262893676757812, 0.046661376953125, -0.02960205078125, 0.0115203857421875, -0.047882080078125, -0.03717041015625, -0.0026645660400390625, 0.039337158203125, -0.045501708984375, -0.046783447265625, 0.020355224609375, -0.03216552734375, -0.01068878173828125, 0.015625, -0.046051025390625, 0.038726806640625, -0.0222930908203125, -0.01389312744140625, -0.0010900497436523438, 0.007450103759765625, 0.019775390625, 0.022735595703125, 0.0151214599609375, 0.034881591796875, 0.007476806640625, -0.048370361328125, -0.04473876953125, 0.07989501953125, -0.05718994140625, -0.036895751953125, 0.00971221923828125, 0.001010894775390625, 0.007419586181640625, 0.023162841796875, 0.0087890625, 0.049957275390625, -0.0027675628662109375, -0.0114288330078125, -0.0182037353515625, 0.0211944580078125, 0.003997802734375, -0.0283660888671875, -0.00519561767578125, 0.005336761474609375, -0.020111083984375, 0.0303802490234375, 0.0107879638671875, -0.00437164306640625, -0.0255279541015625, -0.097900390625, 0.0189208984375, -0.0418701171875, 0.0560302734375, -0.00275421142578125, 0.021484375, 0.003993988037109375, 0.0255584716796875, -0.01513671875, -0.058990478515625, -0.0008668899536132812, 0.01470947265625, -0.01000213623046875, 0.07012939453125, 0.0015020370483398438, 0.06585693359375, 0.00524139404296875, -0.030517578125, -0.0032787322998046875, -0.0153961181640625, 0.037261962890625, -0.007648468017578125, -0.0241546630859375, -0.0237884521484375, 0.0155181884765625, -0.007076263427734375, 0.0006041526794433594, 0.04766845703125, 0.0014562606811523438, 0.053955078125, 0.01220703125, 0.00927734375, 0.0357666015625, -0.03399658203125, 0.01343536376953125, 0.01274871826171875, 0.01114654541015625, 0.056304931640625, 0.005870819091796875, 0.03948974609375, 0.055389404296875, -0.0171356201171875, 0.01739501953125, 0.01220703125, -0.036895751953125, 0.0014324188232421875, -0.0087127685546875, 0.005687713623046875, 0.0228118896484375, 0.05828857421875, -0.017822265625, 0.030364990234375, 0.01207733154296875, -0.024749755859375, -0.005558013916015625, 0.01371002197265625, 0.0214691162109375, -0.01357269287109375, -0.037506103515625, 0.01629638671875, -0.0189666748046875, -0.0312347412109375, 0.0064697265625, 0.0010080337524414062, 0.032684326171875, -0.0389404296875, 0.0153350830078125, -0.03338623046875, -0.0097198486328125, 0.0169219970703125, -0.049835205078125, 0.022247314453125, -0.0129547119140625, 0.0270538330078125, -0.040283203125, -0.0028858184814453125, 0.0070343017578125, 0.066162109375, -0.0162811279296875, -0.03033447265625, -0.0102081298828125, -0.005130767822265625, -0.03363037109375, -0.0165557861328125, -0.0254669189453125, -0.04315185546875, 0.0144500732421875, 0.0089874267578125, -0.025970458984375, 0.040679931640625, -0.035552978515625, -0.035614013671875, -0.0009379386901855469, -0.0200958251953125, 0.03228759765625, -0.04510498046875, -0.0227508544921875, 0.0185546875, -0.00969696044921875, -0.00421905517578125, 0.0128631591796875, 0.010772705078125, 0.03887939453125, -0.0010519027709960938, -0.0005736351013183594, 0.050384521484375, -0.0811767578125, -0.0027561187744140625, 0.035369873046875, 0.1063232421875, -0.0298309326171875, -0.05279541015625, 0.0017747879028320312, 0.044281005859375, -0.06341552734375, -0.062744140625, -0.0657958984375, 0.015106201171875, -0.0004570484161376953, 0.0040283203125, 0.0204620361328125, 0.014251708984375, -0.0247039794921875, -0.0017404556274414062, -0.064697265625, 0.0265655517578125, 0.009765625, 0.0013284683227539062, -0.022979736328125, 0.0241546630859375, -0.0008234977722167969, 0.01727294921875, 0.01268768310546875, 0.106201171875, 0.0257110595703125, -0.07733154296875, 0.0304412841796875, -0.0092010498046875, -0.03466796875, 0.06964111328125, -0.024261474609375, -0.0038814544677734375, 0.000048995018005371094, -0.00982666015625, 0.03839111328125, 0.022613525390625, -0.0140380859375, 0.004863739013671875, 0.01071929931640625, 0.0231475830078125, 0.032928466796875, 0.0413818359375, -0.00838470458984375, 0.0186309814453125, 0.04290771484375, -0.0200653076171875, -0.00254058837890625, 0.0164947509765625, 0.001216888427734375, -0.0236053466796875, 0.00843048095703125, -0.025970458984375, -0.01256561279296875, -0.0110626220703125, -0.0625, -0.01947021484375, 0.0037136077880859375, -0.021026611328125, -0.007595062255859375, -0.0212249755859375, -0.042266845703125, 0.03424072265625, 0.011505126953125, -0.018218994140625, 0.00664520263671875, 0.0022678375244140625, -0.0247344970703125, -0.038360595703125, 0.0150909423828125, -0.034759521484375, -0.0156402587890625, 0.0273590087890625, -0.00859832763671875, -0.0019063949584960938, 0.018646240234375, -0.00724029541015625, 0.0272064208984375, 0.039581298828125, -0.01617431640625, -0.056060791015625, 0.005695343017578125, 0.0287017822265625, -0.050872802734375, -0.0207061767578125, 0.013824462890625, -0.01169586181640625, -0.08831787109375, 0.007320404052734375, -0.0155181884765625, -0.03253173828125, -0.0284271240234375, -0.035614013671875, -0.0794677734375, -0.0309906005859375, 0.0235748291015625, -0.0298919677734375, -0.005245208740234375, 0.033721923828125, -0.0214080810546875, 0.002574920654296875, -0.021484375, -0.02532958984375, -0.013580322265625, -0.0103302001953125, -0.0172576904296875, 0.002368927001953125, 0.0181884765625, 0.0051116943359375, -0.01258087158203125, 0.020751953125, 0.044586181640625, 0.0184478759765625, 0.021148681640625, -0.039093017578125, 0.034088134765625, 0.00797271728515625, 0.01303863525390625, -0.01108551025390625, -0.0005478858947753906, 0.01032257080078125, -0.0188446044921875, 0.0311431884765625, -0.009033203125, -0.00591278076171875, 0.0217132568359375, -0.0278778076171875, -0.018218994140625, -0.0110015869140625, 0.0037975311279296875, 0.01270294189453125, 0.0126495361328125, -0.034393310546875, -0.036468505859375, -0.0108795166015625, 0.0245513916015625, -0.06256103515625, 0.003742218017578125, -0.0025691986083984375, 0.057342529296875, 0.0161895751953125, -0.00809478759765625, 0.0361328125, 0.0110015869140625, 0.0188751220703125, 0.027557373046875, 0.03656005859375, 0.01136016845703125, 0.0033206939697265625, -0.00279998779296875, 0.0026416778564453125, 0.005397796630859375, -0.02874755859375, 0.057525634765625, 0.005268096923828125, -0.006740570068359375, 0.01175689697265625, -0.0146942138671875, 0.0085906982421875, -0.0192718505859375, 0.015960693359375, -0.01047515869140625, 0.052337646484375, 0.023529052734375, -0.01558685302734375, 0.016326904296875, -0.00843048095703125, 0.0182037353515625, -0.004528045654296875, 0.04248046875, 0.0513916015625, 0.0268402099609375, -0.0006160736083984375, -0.011810302734375, 0.01123809814453125, 0.0338134765625, -0.01363372802734375, -0.0032215118408203125, -0.0286712646484375, 0.040130615234375, 0.0211334228515625, 0.028594970703125, -0.020050048828125, 0.011627197265625, -0.025970458984375, -0.0219268798828125, -0.0261993408203125, -0.03961181640625, 0.0223541259765625, 0.00835418701171875, 0.03265380859375, -0.02459716796875, 0.0216522216796875, 0.07379150390625, 0.01029205322265625, 0.01052093505859375, -0.01116180419921875, 0.040863037109375, -0.01397705078125, -0.04815673828125, -0.01041412353515625, -0.00936126708984375, -0.00946044921875, 0.05743408203125, -0.00748443603515625, 0.020660400390625, -0.0239715576171875, 0.06695556640625, 0.036529541015625, 0.0277557373046875, -0.0036869049072265625, 0.0032958984375, -0.007778167724609375, 0.0174713134765625, -0.0209503173828125, 0.0040435791015625, -0.050079345703125, 0.01218414306640625, -0.00894927978515625, 0.0187225341796875, 0.059539794921875, -0.00820159912109375, 0.04754638671875, -0.0308074951171875, 0.005817413330078125, 0.006755828857421875, -0.01424407958984375, -0.0156402587890625, 0.0034923553466796875, 0.02752685546875, 0.0258636474609375, -0.0236053466796875, -0.022613525390625, -0.03802490234375, -0.0298004150390625, 0.0029735565185546875, -0.01422882080078125, -0.0128173828125, -0.0164031982421875, -0.025390625, -0.0146026611328125, -0.004047393798828125, -0.07708740234375, -0.028411865234375, 0.00797271728515625, -0.015289306640625, 0.03955078125, -0.0265350341796875, 0.0203704833984375, -0.0290069580078125, 0.0007529258728027344, -0.066650390625, 0.01629638671875, 0.0188751220703125, 0.0157318115234375, -0.07940673828125, -0.00017082691192626953, -0.044830322265625, -0.00830078125, -0.07342529296875, -0.049713134765625, -0.045867919921875, 0.01213836669921875, 0.040802001953125, 0.024505615234375, -0.0302581787109375, -0.10723876953125, -0.0033130645751953125, -0.004299163818359375, 0.04595947265625, 0.07440185546875, 0.0011138916015625, 0.0560302734375, 0.0276641845703125, 0.06011962890625, 0.016204833984375, 0.01392364501953125, -0.033660888671875, -0.0224761962890625, -0.004650115966796875, -0.0010614395141601562, -0.004245758056640625, -0.0250396728515625, -0.0112152099609375, 0.005523681640625, 0.052093505859375, -0.004650115966796875, -0.0014476776123046875, -0.0251007080078125, 0.0017690658569335938, -0.031219482421875, 0.046966552734375, -0.0367431640625, -0.049346923828125, 0.021026611328125, -0.0631103515625, 0.0008325576782226562, 0.022918701171875, 0.0447998046875, 0.004055023193359375, -0.04888916015625, -0.0013856887817382812, 0.043121337890625, -0.05224609375, 0.057891845703125, 0.0255889892578125, -0.0165557861328125, 0.0242767333984375, -0.01091766357421875, 0.001224517822265625, 0.002933502197265625, 0.0108642578125, -0.037933349609375, 0.00384521484375, 0.031951904296875, -0.01435089111328125, -0.023895263671875, 0.0160980224609375, -0.01043701171875, -0.0175933837890625, -0.0067138671875, -0.02301025390625, -0.02606201171875, -0.00760650634765625, -0.03521728515625, -0.01318359375, 0.01129913330078125, 0.011138916015625, 0.007381439208984375, -0.02606201171875, -0.0005831718444824219, 0.0282440185546875, -0.00821685791015625, -0.0083160400390625, 0.00536346435546875, 0.0009412765502929688, -0.0167083740234375, 0.00957489013671875, 0.0106964111328125, -0.0279388427734375, 0.02606201171875, 0.0110321044921875, 0.01934814453125, -0.03558349609375, 0.02630615234375, 0.0145263671875, 0.02105712890625, -0.0615234375, 0.032501220703125, -0.0142669677734375, 0.0097808837890625, -0.02642822265625, -0.01448822021484375, 0.021453857421875, 0.0199432373046875, -0.014404296875, -0.0124664306640625, 0.0137176513671875, -0.037109375, -0.031707763671875, -0.013336181640625, 0.0341796875, 0.041534423828125, -0.07183837890625, 0.028076171875, -0.03204345703125, -0.0254974365234375, 0.0017461776733398438, -0.0235137939453125, 0.07257080078125, -0.0302276611328125, -0.0212860107421875, 0.0008988380432128906, -0.0055084228515625, 0.01629638671875, 0.00423431396484375, 0.046142578125, -0.07183837890625, -0.0462646484375, 0.032623291015625, -0.023651123046875, -0.036376953125, 0.01343536376953125, -0.0084075927734375, 0.1268310546875, -0.00838470458984375, -0.032562255859375, 0.0308990478515625, 0.05517578125, -0.0389404296875, 0.036651611328125, -0.001251220703125, 0.042572021484375, -0.02386474609375, 0.032012939453125, -0.01358795166015625, 0.0016660690307617188, 0.02069091796875, 0.04534912109375, 0.01499176025390625, 0.003139495849609375, -0.00276947021484375, -0.015167236328125, -0.0019855499267578125, 0.0207061767578125, -0.0168914794921875, 0.022308349609375, -0.039337158203125, 0.0222930908203125, 0.01264190673828125, -0.038238525390625, 0.029327392578125, -0.0377197265625, -0.035858154296875, -0.015899658203125, -0.01751708984375, -0.002773284912109375, -0.010772705078125, 0.001430511474609375, 0.06597900390625, -0.0283966064453125, -0.04742431640625, -0.06695556640625, 0.0295562744140625, 0.008697509765625, 0.07586669921875, -0.050201416015625, -0.04766845703125, -0.006740570068359375, 0.044921875, 0.0280303955078125, 0.049041748046875, 0.06640625, 0.031585693359375, 0.048919677734375, -0.043670654296875, 0.0205841064453125, -0.035919189453125, -0.0215301513671875, 0.0128173828125, 0.0086669921875, 0.007564544677734375, -0.0245513916015625, 0.04052734375, 0.057647705078125, 0.0277252197265625, -0.03924560546875, -0.01103973388671875, 0.0208282470703125, 0.04742431640625, 0.01126861572265625, -0.0014362335205078125, 0.0270538330078125, -0.039459228515625, -0.010711669921875, 0.031463623046875, -0.005123138427734375, 0.010894775390625, -0.052093505859375, 0.0163116455078125, 0.039306640625, 0.037261962890625, 0.045196533203125, -0.07171630859375, -0.0008554458618164062, 0.019622802734375, 0.0677490234375, 0.054229736328125, 0.0253448486328125, 0.036224365234375, -0.033111572265625, 0.030029296875, 0.03338623046875, -0.02117919921875, -0.03265380859375, -0.042572021484375, -0.10101318359375, 0.00759124755859375, 0.0399169921875, 0.04510498046875, -0.06719970703125, 0.012908935546875, 0.014678955078125, 0.0000705718994140625, -0.0054779052734375, -0.002468109130859375, -0.002605438232421875, -0.053436279296875, -0.01032257080078125, -0.026336669921875, 0.005931854248046875, -0.014251708984375, 0.0257415771484375, 0.02685546875, -0.003238677978515625, -0.030731201171875, 0.0059967041015625, -0.0019893646240234375, -0.0237274169921875, -0.0308074951171875, 0.0291900634765625, 0.00820159912109375, 0.01090240478515625, -0.06036376953125, -0.0105133056640625, -0.0186004638671875, -0.01554107666015625, 0.0113677978515625, 0.0345458984375, -0.02349853515625, 0.0234527587890625, 0.0919189453125, -0.0191650390625, 0.008270263671875, 0.02984619140625, 0.00754547119140625, -0.0220947265625, 0.048919677734375, 0.01508331298828125, -0.016754150390625, -0.0129241943359375, -0.01177215576171875, 0.038909912109375, -0.0164947509765625, 0.047637939453125, -0.0254669189453125, 0.025054931640625, 0.0166168212890625, -0.0614013671875, 0.052703857421875, 0.03607177734375, -0.045623779296875, 0.01007080078125, 0.00409698486328125, -0.0197601318359375, -0.04376220703125, -0.0016231536865234375, 0.052703857421875, -0.053863525390625, 0.014739990234375, 0.0016679763793945312, 0.006832122802734375, -0.04193115234375, 0.0323486328125, -0.0253448486328125, -0.033599853515625, -0.0270538330078125, 0.0181427001953125, 0.005924224853515625, 0.02880859375, -0.0103912353515625, 0.0095062255859375, 0.034820556640625, 0.0013027191162109375, 0.0251617431640625, 0.0008425712585449219, 0.0303802490234375, 0.015380859375, -0.01251220703125, -0.001255035400390625, -0.035552978515625, -0.0197296142578125, 0.0025196075439453125, 0.00466156005859375, 0.005218505859375, -0.01146697998046875, 0.0210418701171875, 0.010772705078125, 0.041046142578125, -0.002262115478515625, -0.03717041015625, -0.0022907257080078125, 0.061279296875, -0.046844482421875, -0.001506805419921875, -0.0185546875, -0.02093505859375, -0.0260009765625, -0.00574493408203125, 0.03070068359375, -0.019500732421875, -0.01568603515625, -0.05743408203125, -0.0045623779296875, 0.03076171875, 0.0252532958984375, -0.050048828125, 0.036468505859375, -0.01314544677734375, 0.0113067626953125, 0.0227203369140625, -0.030487060546875, 0.01345062255859375, 0.031829833984375, -0.036163330078125, -0.019866943359375, -0.045684814453125, -0.0173492431640625, -0.0594482421875, -0.061187744140625, -0.0185089111328125, 0.0291748046875, -0.0186309814453125, -0.087158203125, -0.058502197265625, -0.04296875, -0.041778564453125, -0.0299835205078125, -0.032928466796875, 0.0240020751953125, 0.0230560302734375, 0.007083892822265625, 0.00958251953125, 0.004852294921875, -0.05487060546875, -0.0219879150390625, -0.005615234375, -0.0027484893798828125, -0.03546142578125, -0.002681732177734375, 0.05987548828125, 0.006755828857421875, -0.006549835205078125, -0.10003662109375, 0.01273345947265625, 0.0190277099609375, 0.012481689453125, -0.03009033203125, 0.0009441375732421875, -0.036956787109375, 0.0220947265625, -0.0009708404541015625, 0.01898193359375, 0.029266357421875, -0.0009441375732421875, -0.00914764404296875, -0.013397216796875, -0.0238189697265625, -0.02032470703125, 0.017852783203125, -0.0008673667907714844, 0.0277557373046875, 0.0076904296875, -0.0374755859375, -0.0028018951416015625, -0.014617919921875, 0.0030231475830078125, -0.03955078125, -0.0259246826171875, -0.0177459716796875, -0.0001558065414428711, 0.106689453125, 0.0465087890625, 0.019287109375, -0.046905517578125, -0.043243408203125, -0.0625, 0.006938934326171875, -0.0243682861328125, -0.01517486572265625, -0.0321044921875, 0.0147857666015625, -0.0400390625, -0.0273590087890625, 0.0002474784851074219, -0.00750732421875, -0.04107666015625, -0.0150604248046875, -0.018646240234375, -0.0111846923828125, -0.03839111328125, 0.00273895263671875, -0.050018310546875, 0.012115478515625, 0.0335693359375, -0.032562255859375, 0.00820159912109375, -0.0199432373046875, 0.043975830078125, -0.00357818603515625, 0.028594970703125, -0.04425048828125, -0.01323699951171875, 0.006710052490234375, 0.041717529296875, -0.0195770263671875, -0.0187835693359375, 0.0233306884765625, -0.02288818359375, -0.02496337890625, -0.0217132568359375, 0.0335693359375, -0.020050048828125, -0.03936767578125, 0.0180206298828125, 0.005443572998046875, 0.0816650390625, -0.003589630126953125, 0.050079345703125, 0.0146942138671875, -0.0361328125, 0.01654052734375, -0.00865936279296875, 0.006618499755859375, -0.008697509765625, -0.02178955078125, -0.033935546875, 0.0107879638671875, -0.01495361328125, -0.01983642578125, 0.0189208984375 ]
5dd3a83717a1385d5f86455573780f57a6dedae9
Wordpress Stackexchange Q: How to open modal window when clicking a WP menu link? I'm making my first site with WP, I'm a Joomla Developper. I'm using wisten theme, and WP 3.9.2 I want to create a link in my the navigation that opens a modal window (not a new page) on click. Example - http://kendo.mx , when you click the LOGIN link I have no clue of how I should do this in WordPress. The Jquery code for such an operation is not very difficult, the code is here : http://jsfiddle.net/mmetsalu/hBX6E/2/ but I have no clue of how to integrate it. Any help would be appreciated A: Using bootstrap's modal you could use this hook in your function.php file top do that: add_filter( 'nav_menu_link_attributes', 'menu_atts', 10, 3 ); function menu_atts( $atts, $item, $args ) { // The ID of the target menu item $menu_target = 24; // inspect $item if ($item->ID == $menu_target) { $atts['data-toggle'] = 'modal'; $atts['data-target'] = '#IDofModal'; } return $atts; }
Q: How to open modal window when clicking a WP menu link? I'm making my first site with WP, I'm a Joomla Developper. I'm using wisten theme, and WP 3.9.2 I want to create a link in my the navigation that opens a modal window (not a new page) on click. Example - http://kendo.mx , when you click the LOGIN link I have no clue of how I should do this in WordPress. The Jquery code for such an operation is not very difficult, the code is here : http://jsfiddle.net/mmetsalu/hBX6E/2/ but I have no clue of how to integrate it. Any help would be appreciated A: Using bootstrap's modal you could use this hook in your function.php file top do that: add_filter( 'nav_menu_link_attributes', 'menu_atts', 10, 3 ); function menu_atts( $atts, $item, $args ) { // The ID of the target menu item $menu_target = 24; // inspect $item if ($item->ID == $menu_target) { $atts['data-toggle'] = 'modal'; $atts['data-target'] = '#IDofModal'; } return $atts; }
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:447980", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158332" }
[ 0.0595703125, -0.004512786865234375, 0.0321044921875, -0.00786590576171875, 0.0200958251953125, -0.02667236328125, 0.060699462890625, -0.03851318359375, 0.0089874267578125, 0.0308990478515625, -0.006763458251953125, 0.0012941360473632812, 0.011260986328125, -0.0297698974609375, 0.00836944580078125, -0.005596160888671875, 0.0302581787109375, -0.01404571533203125, 0.00661468505859375, -0.02239990234375, -0.003398895263671875, -0.0284881591796875, 0.039337158203125, 0.0303192138671875, 0.03460693359375, -0.01654052734375, 0.059051513671875, -0.024444580078125, 0.03509521484375, 0.018218994140625, 0.025543212890625, -0.05889892578125, -0.005786895751953125, 0.016265869140625, 0.0031909942626953125, -0.0401611328125, -0.005435943603515625, 0.029693603515625, 0.018585205078125, 0.01318359375, 0.008148193359375, 0.0048980712890625, -0.01947021484375, 0.030242919921875, -0.0291290283203125, -0.06719970703125, 0.0199432373046875, -0.034149169921875, 0.028594970703125, -0.00795745849609375, 0.0224609375, 0.027252197265625, 0.0271148681640625, -0.01250457763671875, 0.0045166015625, 0.0244598388671875, -0.02947998046875, -0.045013427734375, 0.0174102783203125, 0.09814453125, 0.0255126953125, -0.021575927734375, -0.01910400390625, -0.0750732421875, -0.00830841064453125, 0.01312255859375, -0.0162506103515625, 0.00850677490234375, 0.022186279296875, 0.0111846923828125, -0.00396728515625, -0.019775390625, -0.033721923828125, 0.0197906494140625, -0.0199432373046875, -0.003368377685546875, 0.03656005859375, 0.0258026123046875, -0.002727508544921875, 0.034027099609375, 0.0212554931640625, 0.0254364013671875, -0.00814056396484375, -0.01262664794921875, -0.005710601806640625, -0.01557159423828125, -0.011077880859375, -0.030426025390625, -0.0228118896484375, 0.0195159912109375, -0.0232696533203125, 0.053009033203125, 0.003772735595703125, -0.0100860595703125, -0.04461669921875, -0.005146026611328125, -0.02349853515625, 0.01242828369140625, 0.007427215576171875, 0.0202789306640625, -0.0017919540405273438, -0.020904541015625, 0.0021686553955078125, -0.037139892578125, -0.032379150390625, 0.0849609375, 0.06341552734375, 0.0044708251953125, -0.044219970703125, -0.02740478515625, 0.00567626953125, -0.043731689453125, -0.052093505859375, 0.014495849609375, -0.032684326171875, 0.00034499168395996094, -0.07952880859375, -0.01032257080078125, -0.02239990234375, 0.0259246826171875, -0.02789306640625, 0.002716064453125, -0.00009864568710327148, 0.00627899169921875, 0.0191650390625, 0.0112152099609375, 0.022003173828125, -0.0233306884765625, -0.035491943359375, 0.02178955078125, -0.004608154296875, 0.02142333984375, 0.0305328369140625, 0.0299835205078125, -0.011932373046875, -0.0164642333984375, 0.009857177734375, -0.0380859375, 0.00875091552734375, -0.007213592529296875, 0.045501708984375, -0.00920867919921875, 0.00437164306640625, 0.003482818603515625, -0.0186309814453125, 0.0210723876953125, 0.0162200927734375, -0.0001380443572998047, -0.0003414154052734375, -0.04058837890625, -0.003894805908203125, -0.04412841796875, 0.036773681640625, 0.0152740478515625, -0.0264739990234375, 0.0189666748046875, 0.055816650390625, -0.0156402587890625, -0.05535888671875, -0.0543212890625, -0.0261993408203125, 0.002872467041015625, 0.0367431640625, -0.04351806640625, -0.041534423828125, -0.004344940185546875, -0.049163818359375, -0.00750732421875, 0.02020263671875, 0.0789794921875, -0.0362548828125, -0.0007920265197753906, -0.01258087158203125, 0.02008056640625, -0.00400543212890625, 0.0237884521484375, 0.011932373046875, 0.05596923828125, 0.0081787109375, 0.037567138671875, -0.0042572021484375, -0.039306640625, 0.0887451171875, -0.0419921875, -0.0301361083984375, 0.054595947265625, -0.01119232177734375, 0.04974365234375, 0.0239105224609375, 0.00862884521484375, -0.022705078125, 0.0139007568359375, -0.0012798309326171875, -0.00861358642578125, -0.0199737548828125, -0.03497314453125, 0.01091766357421875, 0.00804901123046875, -0.01464080810546875, 0.0246734619140625, 0.011993408203125, 0.022186279296875, -0.018524169921875, 0.0289154052734375, -0.08270263671875, 0.041595458984375, -0.03912353515625, 0.0241851806640625, -0.036651611328125, 0.0009603500366210938, 0.02154541015625, -0.00200653076171875, 0.013580322265625, -0.06939697265625, -0.005405426025390625, 0.0192108154296875, -0.01123046875, 0.0028095245361328125, -0.0228271484375, 0.0106658935546875, -0.01108551025390625, -0.0080108642578125, -0.021759033203125, 0.011077880859375, 0.036346435546875, -0.0041656494140625, -0.029144287109375, -0.01555633544921875, 0.0022182464599609375, 0.01174163818359375, -0.04083251953125, 0.048309326171875, 0.0262603759765625, -0.000002682209014892578, -0.036468505859375, -0.00904083251953125, -0.0166015625, -0.07135009765625, -0.00579833984375, 0.05230712890625, 0.03057861328125, 0.01012420654296875, 0.0088653564453125, 0.03515625, 0.041595458984375, -0.0287322998046875, 0.01678466796875, 0.01873779296875, -0.037109375, -0.005527496337890625, 0.0408935546875, 0.00806427001953125, 0.022247314453125, -0.003543853759765625, -0.01177978515625, 0.031646728515625, -0.017181396484375, -0.007045745849609375, -0.01425933837890625, -0.0012063980102539062, 0.016021728515625, -0.00457000732421875, -0.00856781005859375, -0.00536346435546875, 0.0052947998046875, -0.0019664764404296875, 0.0114898681640625, 0.0180206298828125, -0.034698486328125, -0.0017671585083007812, 0.0330810546875, 0.02520751953125, -0.005130767822265625, -0.0038089752197265625, 0.0413818359375, -0.00946807861328125, -0.0205535888671875, -0.0081634521484375, 0.0224456787109375, -0.005466461181640625, -0.03192138671875, 0.009796142578125, 0.0171051025390625, -0.01538848876953125, 0.0176544189453125, -0.00582122802734375, 0.019012451171875, -0.068115234375, 0.0089569091796875, -0.00939178466796875, 0.054473876953125, -0.045867919921875, -0.056610107421875, 0.021148681640625, 0.013031005859375, -0.07025146484375, 0.05133056640625, 0.004085540771484375, 0.01788330078125, -0.016448974609375, 0.0633544921875, 0.041961669921875, -0.07025146484375, 0.0496826171875, -0.013214111328125, 0.00574493408203125, -0.021575927734375, 0.0136260986328125, -0.017242431640625, -0.04742431640625, -0.01242828369140625, 0.0160675048828125, 0.01050567626953125, 0.007610321044921875, -0.0214080810546875, -0.0225372314453125, -0.032379150390625, -0.0201416015625, -0.061767578125, -0.064208984375, 0.025543212890625, -0.0755615234375, 0.051361083984375, -0.0110931396484375, -0.0305938720703125, -0.039031982421875, 0.0330810546875, 0.0157928466796875, -0.0109405517578125, 0.0168304443359375, -0.0126190185546875, 0.018402099609375, -0.031524658203125, 0.0222625732421875, -0.0153656005859375, 0.0005121231079101562, 0.01148223876953125, -0.051239013671875, -0.0008754730224609375, 0.0184326171875, 0.054443359375, 0.0297393798828125, 0.00394439697265625, -0.017608642578125, -0.01165008544921875, -0.0017824172973632812, -0.0128326416015625, 0.0034427642822265625, 0.0303192138671875, 0.01499176025390625, -0.00286865234375, -0.0009860992431640625, 0.005596160888671875, 0.0015649795532226562, 0.051605224609375, -0.007587432861328125, -0.006618499755859375, 0.0655517578125, 0.0609130859375, 0.00745391845703125, 0.033599853515625, -0.038360595703125, -0.024993896484375, -0.034759521484375, 0.0279541015625, -0.01204681396484375, -0.0201416015625, -0.0267791748046875, 0.0166778564453125, -0.0005431175231933594, 0.055450439453125, -0.0077972412109375, -0.0372314453125, -0.0201873779296875, -0.01198577880859375, -0.032379150390625, 0.0445556640625, -0.007476806640625, -0.01250457763671875, 0.00536346435546875, -0.00930023193359375, -0.04180908203125, 0.06573486328125, -0.045806884765625, -0.0228729248046875, 0.045684814453125, 0.01171112060546875, 0.0000026226043701171875, -0.00788116455078125, -0.033599853515625, -0.0015010833740234375, 0.06317138671875, -0.030059814453125, -0.00927734375, -0.01395416259765625, 0.0002574920654296875, -0.024139404296875, 0.00971221923828125, -0.0626220703125, 0.0176849365234375, -0.11962890625, 0.07037353515625, -0.003238677978515625, 0.01947021484375, -0.046356201171875, 0.03179931640625, -0.053619384765625, -0.05072021484375, 0.06671142578125, -0.0181427001953125, -0.0294952392578125, 0.034942626953125, -0.040679931640625, -0.0150146484375, -0.05462646484375, 0.0275726318359375, -0.0584716796875, -0.0015764236450195312, 0.0008058547973632812, 0.028564453125, 0.009674072265625, -0.0264892578125, -0.009246826171875, 0.035369873046875, 0.054931640625, 0.004009246826171875, 0.02215576171875, -0.04296875, 0.0271759033203125, 0.01103973388671875, 0.0201873779296875, -0.01157379150390625, 0.007579803466796875, -0.00449371337890625, -0.04095458984375, 0.0177001953125, -0.0203399658203125, 0.041168212890625, 0.0108642578125, -0.029296875, -0.02362060546875, -0.0159454345703125, -0.038604736328125, 0.00983428955078125, 0.01380157470703125, -0.042999267578125, -0.034393310546875, -0.06854248046875, 0.0129852294921875, -0.01363372802734375, -0.01325225830078125, 0.00988006591796875, 0.03656005859375, 0.0204010009765625, -0.017181396484375, 0.012786865234375, 0.01532745361328125, 0.037506103515625, 0.017120361328125, 0.006595611572265625, -0.032073974609375, -0.039306640625, 0.05914306640625, 0.00942230224609375, 0.0268402099609375, -0.01318359375, 0.08551025390625, -0.01042938232421875, 0.0005993843078613281, 0.01065826416015625, -0.0081787109375, -0.07025146484375, -0.02276611328125, -0.012420654296875, 0.022552490234375, 0.0189361572265625, -0.00437164306640625, 0.01983642578125, -0.0228271484375, -0.0235748291015625, 0.01299285888671875, -0.00494384765625, 0.01435089111328125, 0.0650634765625, 0.053924560546875, -0.003749847412109375, 0.026092529296875, 0.04107666015625, -0.01262664794921875, 0.01125335693359375, 0.01519775390625, 0.0002932548522949219, 0.058746337890625, -0.036041259765625, -0.022186279296875, -0.0014200210571289062, -0.01282501220703125, 0.058990478515625, 0.0170440673828125, -0.0229339599609375, -0.0279541015625, -0.004131317138671875, -0.01149749755859375, -0.0008068084716796875, -0.032135009765625, 0.06097412109375, 0.05194091796875, -0.018463134765625, -0.01197052001953125, 0.0085906982421875, -0.0193634033203125, -0.050750732421875, -0.001697540283203125, 0.010498046875, 0.0079498291015625, 0.0081787109375, 0.09521484375, 0.02197265625, 0.05377197265625, -0.047271728515625, -0.033538818359375, 0.005329132080078125, 0.0225372314453125, 0.0355224609375, -0.015899658203125, -0.0347900390625, 0.035400390625, 0.0350341796875, -0.02154541015625, -0.0207672119140625, 0.0251312255859375, 0.033111572265625, 0.004779815673828125, 0.0151824951171875, 0.0003752708435058594, 0.00698089599609375, -0.0036773681640625, 0.0245513916015625, -0.0164337158203125, -0.0247039794921875, -0.040374755859375, 0.0012865066528320312, 0.044189453125, -0.00865936279296875, -0.015960693359375, 0.0238800048828125, -0.01067352294921875, 0.02349853515625, -0.0625, 0.0005979537963867188, 0.01094818115234375, 0.00113677978515625, 0.00649261474609375, -0.03173828125, 0.015472412109375, -0.03515625, 0.0311737060546875, -0.0545654296875, -0.012969970703125, 0.058319091796875, -0.055267333984375, 0.0240936279296875, -0.0027942657470703125, -0.00536346435546875, -0.041900634765625, 0.0272216796875, 0.003192901611328125, 0.01007843017578125, -0.047576904296875, -0.01324462890625, 0.0065460205078125, 0.005870819091796875, -0.00836181640625, -0.034210205078125, -0.031951904296875, -0.01312255859375, 0.0087890625, 0.0208740234375, 0.007904052734375, 0.004802703857421875, 0.00830841064453125, 0.01375579833984375, -0.00502777099609375, 0.032318115234375, -0.01554107666015625, 0.08636474609375, -0.0187835693359375, 0.0394287109375, 0.004924774169921875, 0.048858642578125, -0.00893402099609375, -0.00658416748046875, 0.006481170654296875, 0.0004897117614746094, -0.0245513916015625, -0.020416259765625, -0.0082550048828125, -0.0019664764404296875, 0.0498046875, -0.01690673828125, 0.0184326171875, -0.0039520263671875, 0.00850677490234375, -0.025970458984375, 0.0226287841796875, 0.0017299652099609375, 0.0035839080810546875, 0.024078369140625, -0.033203125, -0.00847625732421875, 0.00957489013671875, 0.044708251953125, -0.01324462890625, -0.03125, -0.00893402099609375, 0.0156707763671875, -0.06231689453125, 0.0684814453125, 0.09930419921875, 0.016876220703125, 0.0640869140625, 0.0113525390625, 0.00787353515625, 0.01320648193359375, -0.0018815994262695312, 0.058746337890625, -0.0035839080810546875, 0.070556640625, -0.007244110107421875, -0.00348663330078125, 0.0350341796875, -0.0303802490234375, -0.001079559326171875, 0.0309295654296875, 0.04681396484375, -0.06414794921875, 0.0013113021850585938, 0.00434112548828125, -0.01168060302734375, 0.0140228271484375, -0.0012035369873046875, -0.00860595703125, -0.01227569580078125, 0.00032210350036621094, -0.062164306640625, -0.03399658203125, -0.0036983489990234375, -0.009674072265625, -0.0009517669677734375, 0.01617431640625, -0.004119873046875, -0.02093505859375, -0.027191162109375, -0.05157470703125, -0.0026531219482421875, -0.0107574462890625, -0.0182647705078125, -0.002384185791015625, 0.031982421875, -0.0042724609375, -0.0406494140625, 0.0270538330078125, -0.028900146484375, -0.005016326904296875, 0.016326904296875, 0.0305328369140625, 0.03680419921875, 0.022857666015625, -0.0033416748046875, 0.019561767578125, -0.0123138427734375, 0.05792236328125, 0.0299835205078125, -0.0149383544921875, 0.0411376953125, 0.035003662109375, -0.061279296875, 0.0110321044921875, 0.004772186279296875, -0.0211334228515625, -0.0118560791015625, 0.014495849609375, 0.059051513671875, 0.004974365234375, -0.046905517578125, 0.041656494140625, -0.03570556640625, -0.036407470703125, -0.00229644775390625, 0.0199127197265625, -0.060089111328125, -0.0222015380859375, 0.00821685791015625, -0.0169525146484375, 0.006977081298828125, -0.01080322265625, -0.0267486572265625, 0.07135009765625, 0.0017328262329101562, -0.005031585693359375, 0.0034732818603515625, 0.032318115234375, -0.0205078125, 0.01593017578125, -0.01947021484375, 0.059844970703125, 0.0005741119384765625, -0.018890380859375, -0.01546478271484375, 0.032928466796875, -0.0280303955078125, -0.0286865234375, -0.02386474609375, 0.003170013427734375, -0.0065765380859375, -0.006252288818359375, 0.03131103515625, 0.0169525146484375, 0.01174163818359375, 0.01177215576171875, -0.0142822265625, -0.0089569091796875, 0.006221771240234375, -0.057708740234375, 0.0007634162902832031, -0.0195465087890625, -0.006679534912109375, -0.00495147705078125, -0.0032634735107421875, -0.0088958740234375, -0.022674560546875, 0.023406982421875, -0.0562744140625, 0.0148468017578125, 0.00656890869140625, 0.036407470703125, 0.011138916015625, 0.04449462890625, 0.04229736328125, 0.0201263427734375, -0.000759124755859375, -0.0254058837890625, 0.0352783203125, 0.0196075439453125, -0.02557373046875, -0.019805908203125, -0.01030731201171875, -0.0203857421875, -0.01336669921875, -0.03485107421875, 0.0282135009765625, 0.014190673828125, 0.0083770751953125, -0.00955963134765625, 0.029449462890625, -0.07415771484375, -0.0596923828125, 0.034759521484375, 0.0345458984375, -0.004917144775390625, -0.0618896484375, -0.00991058349609375, 0.0269012451171875, 0.037872314453125, 0.056396484375, 0.0902099609375, 0.044189453125, 0.07208251953125, 0.002155303955078125, 0.00994110107421875, 0.03289794921875, 0.031036376953125, 0.01505279541015625, 0.0303802490234375, -0.0728759765625, 0.01090240478515625, -0.039215087890625, 0.05279541015625, 0.034820556640625, 0.028472900390625, -0.05450439453125, 0.05450439453125, -0.050384521484375, 0.00592803955078125, 0.042388916015625, -0.01348114013671875, -0.0254974365234375, -0.05194091796875, 0.043487548828125, -0.0322265625, -0.016693115234375, 0.0031280517578125, 0.0382080078125, 0.073486328125, 0.0816650390625, 0.018829345703125, -0.01312255859375, 0.021270751953125, 0.06494140625, -0.024749755859375, 0.0219268798828125, -0.005573272705078125, 0.015777587890625, 0.0199432373046875, -0.0028514862060546875, -0.0439453125, 0.052215576171875, 0.026458740234375, -0.047149658203125, 0.0626220703125, -0.01450347900390625, -0.0056304931640625, 0.0009245872497558594, -0.00933837890625, 0.05975341796875, -0.00957489013671875, -0.0302734375, -0.003326416015625, -0.0161285400390625, -0.021575927734375, 0.006069183349609375, 0.0271148681640625, -0.0200653076171875, 0.036651611328125, -0.01190948486328125, 0.03277587890625, 0.0119781494140625, -0.0345458984375, -0.00913238525390625, 0.035675048828125, 0.04364013671875, 0.026519775390625, -0.0660400390625, -0.0250701904296875, 0.004398345947265625, 0.01306915283203125, -0.0300750732421875, 0.0535888671875, 0.0117950439453125, -0.00954437255859375, -0.03228759765625, 0.040618896484375, -0.0494384765625, -0.01395416259765625, 0.0192413330078125, 0.01556396484375, -0.00485992431640625, -0.006237030029296875, -0.00909423828125, 0.050201416015625, 0.00919342041015625, 0.01849365234375, 0.01309967041015625, -0.01800537109375, 0.018798828125, 0.0257568359375, 0.0259857177734375, -0.018096923828125, -0.03106689453125, -0.03192138671875, -0.0190582275390625, 0.041168212890625, 0.0236663818359375, -0.01349639892578125, 0.043975830078125, -0.0010232925415039062, -0.019378662109375, 0.006656646728515625, -0.036773681640625, 0.0177764892578125, 0.027435302734375, -0.0308380126953125, -0.001987457275390625, -0.0020275115966796875, -0.01151275634765625, 0.02044677734375, -0.0141754150390625, -0.004863739013671875, 0.0155181884765625, -0.045562744140625, 0.07012939453125, 0.046722412109375, 0.0341796875, -0.0460205078125, -0.0047454833984375, 0.0699462890625, -0.00482177734375, 0.014739990234375, -0.0076141357421875, -0.033111572265625, -0.049530029296875, 0.00891876220703125, 0.0238037109375, -0.0303802490234375, -0.017608642578125, -0.0887451171875, 0.013824462890625, 0.046844482421875, -0.0012483596801757812, -0.0237579345703125, 0.0044097900390625, -0.0290679931640625, 0.0511474609375, 0.0016279220581054688, 0.036468505859375, -0.01282501220703125, 0.01233673095703125, -0.025726318359375, -0.025054931640625, -0.0306243896484375, 0.035888671875, -0.024505615234375, 0.02862548828125, 0.0206756591796875, -0.04827880859375, 0.0171356201171875, 0.005489349365234375, 0.0535888671875, 0.0584716796875, 0.048614501953125, -0.042755126953125, -0.051605224609375, 0.0037021636962890625, 0.05499267578125, 0.021575927734375, 0.0015735626220703125, 0.0184478759765625, -0.0297393798828125, 0.003658294677734375, -0.019744873046875, -0.0170440673828125, -0.058441162109375, -0.09326171875, 0.07568359375, -0.006927490234375, -0.0447998046875, -0.0242462158203125, -0.01617431640625, -0.0017452239990234375, 0.00951385498046875, -0.00833892822265625, -0.03302001953125, -0.049713134765625, 0.02642822265625, 0.00693511962890625, 0.040863037109375, 0.012420654296875, 0.0120086669921875, 0.0159454345703125, 0.0202178955078125, 0.01294708251953125, -0.02362060546875, -0.0210723876953125, 0.007343292236328125, 0.0121002197265625, 0.0166778564453125, -0.039093017578125, -0.0065765380859375, 0.006378173828125, 0.019744873046875, 0.021026611328125, -0.0242919921875, 0.0073699951171875, -0.004276275634765625, 0.0071868896484375, -0.0310821533203125, -0.0105133056640625, -0.020965576171875, 0.030364990234375, -0.01508331298828125, -0.0357666015625, -0.004459381103515625, 0.01294708251953125, -0.054718017578125, -0.01873779296875, 0.01026153564453125, -0.041351318359375, -0.005710601806640625, 0.0215911865234375, -0.026641845703125, 0.0182647705078125, 0.039886474609375, -0.0146026611328125, -0.004665374755859375, 0.01128387451171875, 0.07586669921875, -0.0626220703125, -0.010528564453125, 0.0031070709228515625, 0.01006317138671875, 0.025421142578125, -0.042388916015625, 0.014373779296875, -0.0094757080078125, -0.03033447265625, 0.0218505859375, 0.00023221969604492188, 0.037384033203125, -0.0305328369140625, -0.040771484375, -0.0304412841796875, 0.028594970703125, 0.01910400390625, 0.055206298828125, 0.006195068359375, -0.01235198974609375, 0.0297088623046875, -0.0279388427734375, 0.00897979736328125, 0.0406494140625, 0.022674560546875, 0.026702880859375, 0.004180908203125, -0.041015625, 0.037261962890625, -0.09332275390625, -0.0097198486328125, 0.01508331298828125, -0.01140594482421875, -0.049468994140625, 0.00931549072265625, 0.0218658447265625, -0.00030875205993652344, 0.00647735595703125 ]
485a4052351cb486603990550051d649b1df1b2c
Wordpress Stackexchange Q: Importing posts from old website to new conflicting post ID's? I am wondering when I am importing posts from my old site into my new website, which has already some posts in it. Do the imported posts get a new ID or do they overrule the existing posts ID's? A: I can confirm that the imported post will get a new unique ID if (and only if) there already is an existing/conflicting ID in the target database. Given a post to be imported with an ID of 7579 (represented in the WXR export file as <wp:post_id>7579</wp:post_id>) and an existing post with that exact same ID already in the target database, the generated ID for the imported post was 7583. (As far why 7583? I would have thought auto increment but 7579 was an existing post, 7580 a revision of that post and 7581 a draft of some sort. So not exactly sure why 7582 was skipped.)
Q: Importing posts from old website to new conflicting post ID's? I am wondering when I am importing posts from my old site into my new website, which has already some posts in it. Do the imported posts get a new ID or do they overrule the existing posts ID's? A: I can confirm that the imported post will get a new unique ID if (and only if) there already is an existing/conflicting ID in the target database. Given a post to be imported with an ID of 7579 (represented in the WXR export file as <wp:post_id>7579</wp:post_id>) and an existing post with that exact same ID already in the target database, the generated ID for the imported post was 7583. (As far why 7583? I would have thought auto increment but 7579 was an existing post, 7580 a revision of that post and 7581 a draft of some sort. So not exactly sure why 7582 was skipped.) A: The imported posts will get a new ID.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:447998", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158395" }
[ 0.08526611328125, 0.0201416015625, -0.0070648193359375, 0.01690673828125, 0.036376953125, -0.0472412109375, 0.07012939453125, -0.06610107421875, 0.005352020263671875, -0.018524169921875, -0.056365966796875, 0.01227569580078125, -0.04156494140625, -0.02032470703125, 0.020294189453125, -0.0477294921875, 0.034210205078125, -0.04248046875, -0.0008015632629394531, -0.005611419677734375, 0.0089111328125, 0.0093231201171875, -0.0015459060668945312, 0.0208282470703125, 0.041717529296875, -0.018035888671875, -0.004131317138671875, 0.01355743408203125, 0.0238037109375, 0.0179443359375, 0.03192138671875, -0.03839111328125, 0.0021953582763671875, 0.0006918907165527344, 0.002658843994140625, -0.05316162109375, 0.032470703125, -0.011383056640625, -0.007259368896484375, 0.03558349609375, 0.028228759765625, -0.022857666015625, 0.0306549072265625, -0.00815582275390625, -0.0084228515625, -0.0076446533203125, 0.010162353515625, -0.0357666015625, 0.0279693603515625, 0.0189361572265625, 0.017120361328125, -0.01074981689453125, 0.0155792236328125, 0.0219268798828125, -0.0276947021484375, -0.01528167724609375, -0.043670654296875, 0.0367431640625, 0.0455322265625, 0.03857421875, -0.0243072509765625, -0.029327392578125, -0.0021514892578125, -0.055511474609375, -0.00556182861328125, 0.0070037841796875, 0.09368896484375, -0.0026645660400390625, -0.079833984375, -0.024932861328125, 0.06573486328125, -0.00872039794921875, -0.010986328125, -0.009918212890625, -0.009063720703125, -0.008026123046875, 0.043609619140625, -0.004299163818359375, -0.03369140625, 0.039031982421875, -0.01515960693359375, 0.0008969306945800781, -0.00923919677734375, -0.058868408203125, 0.02508544921875, -0.0274810791015625, -0.00937652587890625, 0.0013589859008789062, -0.0147552490234375, -0.00662994384765625, -0.017181396484375, -0.07305908203125, -0.0274200439453125, 0.036468505859375, 0.019500732421875, -0.033477783203125, -0.0101470947265625, 0.05712890625, -0.059112548828125, 0.016082763671875, -0.055450439453125, 0.0011034011840820312, 0.0189666748046875, -0.04412841796875, 0.01526641845703125, 0.007114410400390625, -0.0016794204711914062, -0.049835205078125, 0.028106689453125, 0.0121612548828125, -0.04132080078125, 0.06109619140625, 0.007228851318359375, 0.0157928466796875, -0.040863037109375, 0.0286102294921875, 0.002521514892578125, -0.01824951171875, -0.03106689453125, 0.019378662109375, -0.02117919921875, 0.0180511474609375, -0.031463623046875, -0.01336669921875, 0.00661468505859375, -0.006496429443359375, 0.005001068115234375, 0.00798797607421875, -0.04937744140625, 0.005199432373046875, -0.034942626953125, 0.0228424072265625, 0.11029052734375, 0.0340576171875, 0.0192108154296875, -0.03460693359375, 0.003337860107421875, -0.0068206787109375, -0.03143310546875, 0.01514434814453125, -0.019775390625, -0.04766845703125, -0.03045654296875, -0.0218963623046875, -0.005725860595703125, 0.04132080078125, 0.0093841552734375, 0.0035247802734375, -0.0079193115234375, -0.05987548828125, 0.0084228515625, -0.037811279296875, 0.0308990478515625, -0.003910064697265625, 0.00658416748046875, -0.0902099609375, 0.0280914306640625, -0.06707763671875, 0.05255126953125, -0.07574462890625, 0.054168701171875, 0.01312255859375, 0.005809783935546875, -0.0051116943359375, -0.0709228515625, -0.01837158203125, -0.036773681640625, -0.0197906494140625, 0.0224151611328125, 0.043975830078125, -0.021820068359375, -0.00698089599609375, -0.00403594970703125, -0.02459716796875, -0.0391845703125, -0.01515960693359375, 0.03094482421875, -0.0305023193359375, -0.004940032958984375, 0.0535888671875, -0.001678466796875, -0.025634765625, -0.0220184326171875, 0.01427459716796875, -0.04949951171875, 0.005817413330078125, 0.022125244140625, 0.04766845703125, 0.0239410400390625, 0.0228424072265625, 0.06536865234375, -0.0228729248046875, -0.053466796875, -0.0012531280517578125, -0.0112762451171875, -0.0027980804443359375, 0.009246826171875, 0.010223388671875, -0.00023865699768066406, 0.0002639293670654297, -0.0029811859130859375, 0.01971435546875, -0.014739990234375, 0.0421142578125, -0.033721923828125, 0.0171051025390625, -0.0227203369140625, 0.0280914306640625, -0.0190887451171875, 0.004756927490234375, 0.02716064453125, -0.00922393798828125, -0.0305023193359375, 0.015869140625, -0.005779266357421875, -0.0296173095703125, -0.031494140625, -0.03753662109375, -0.02032470703125, -0.0007581710815429688, -0.061614990234375, 0.025054931640625, -0.0718994140625, -0.01068115234375, -0.00040268898010253906, 0.0120697021484375, -0.0226287841796875, -0.008209228515625, 0.00936126708984375, 0.01934814453125, 0.0011119842529296875, 0.0148468017578125, 0.040863037109375, 0.055145263671875, -0.0268707275390625, -0.0260467529296875, -0.01445770263671875, -0.0286102294921875, 0.013458251953125, 0.048004150390625, 0.0305633544921875, -0.034210205078125, 0.01229095458984375, 0.051483154296875, -0.01515960693359375, -0.03350830078125, 0.01280975341796875, 0.0146636962890625, 0.00830841064453125, 0.089111328125, -0.022857666015625, 0.019317626953125, -0.00006812810897827148, -0.049652099609375, -0.028350830078125, 0.0557861328125, -0.01377105712890625, 0.004276275634765625, -0.0231170654296875, -0.0100250244140625, -0.007488250732421875, -0.0618896484375, -0.0188751220703125, -0.0291290283203125, 0.0159759521484375, -0.004070281982421875, 0.0235137939453125, 0.00612640380859375, -0.02191162109375, -0.00864410400390625, 0.0166473388671875, -0.0146331787109375, 0.0106353759765625, -0.0189666748046875, -0.005428314208984375, 0.055419921875, -0.02862548828125, -0.0075531005859375, 0.0498046875, 0.002971649169921875, 0.000022351741790771484, 0.005672454833984375, -0.0274200439453125, -0.006103515625, 0.0189361572265625, -0.03387451171875, -0.0007805824279785156, 0.01142120361328125, -0.00023996829986572266, -0.021148681640625, -0.01302337646484375, 0.051422119140625, -0.002452850341796875, 0.03472900390625, 0.02825927734375, -0.0020542144775390625, 0.0254974365234375, -0.07379150390625, 0.0712890625, -0.04608154296875, 0.0052032470703125, 0.062164306640625, 0.004852294921875, 0.0097808837890625, -0.00232696533203125, 0.035064697265625, 0.0207977294921875, 0.0231781005859375, 0.007740020751953125, -0.0180206298828125, -0.044036865234375, -0.0309906005859375, 0.040374755859375, 0.040130615234375, 0.019805908203125, -0.009735107421875, 0.01105499267578125, 0.035308837890625, -0.04400634765625, -0.0498046875, -0.0374755859375, -0.0236053466796875, 0.0009012222290039062, -0.01482391357421875, -0.002056121826171875, 0.0080108642578125, -0.028564453125, 0.01248931884765625, 0.003421783447265625, -0.02618408203125, -0.04827880859375, -0.048248291015625, -0.080810546875, -0.03857421875, 0.01528167724609375, 0.0186767578125, 0.009368896484375, -0.01296234130859375, -0.00021064281463623047, -0.0175018310546875, 0.0106658935546875, 0.089599609375, -0.00766754150390625, -0.03387451171875, -0.0036411285400390625, -0.0177764892578125, 0.0171661376953125, 0.0008444786071777344, 0.0167236328125, 0.03265380859375, -0.0305938720703125, -0.00215911865234375, -0.01523590087890625, 0.01079559326171875, -0.004825592041015625, -0.0025005340576171875, 0.0232391357421875, 0.044708251953125, 0.018341064453125, -0.010711669921875, 0.0027370452880859375, -0.008056640625, -0.0196075439453125, -0.0157623291015625, -0.033416748046875, 0.0010738372802734375, -0.0007967948913574219, 0.0109100341796875, -0.0174713134765625, -0.0293121337890625, 0.037567138671875, -0.0328369140625, 0.029144287109375, -0.0128173828125, -0.024810791015625, -0.03668212890625, 0.023468017578125, -0.0107269287109375, 0.007274627685546875, -0.0012998580932617188, 0.0080413818359375, -0.0286102294921875, 0.01236724853515625, -0.051483154296875, -0.07293701171875, 0.034454345703125, -0.0105438232421875, 0.0211334228515625, -0.0236968994140625, -0.0239410400390625, 0.01580810546875, 0.10662841796875, -0.02386474609375, -0.0180816650390625, 0.004489898681640625, 0.006793975830078125, -0.017333984375, -0.020172119140625, -0.03924560546875, -0.0023860931396484375, 0.05462646484375, -0.021270751953125, -0.0095062255859375, -0.004802703857421875, -0.0109405517578125, -0.0047149658203125, 0.022857666015625, 0.00984954833984375, 0.04925537109375, -0.0168914794921875, 0.0304107666015625, 0.025634765625, 0.0350341796875, 0.00551605224609375, -0.032623291015625, -0.006961822509765625, -0.0704345703125, -0.005870819091796875, -0.0284576416015625, 0.024383544921875, -0.00498199462890625, -0.006687164306640625, -0.0214385986328125, 0.0174407958984375, -0.0343017578125, 0.03619384765625, -0.01276397705078125, 0.05426025390625, -0.0318603515625, -0.0217742919921875, -0.007472991943359375, -0.03594970703125, -0.0188446044921875, -0.06378173828125, -0.038421630859375, -0.035858154296875, -0.0252685546875, 0.0200958251953125, -0.0262451171875, 0.00827789306640625, -0.06561279296875, -0.01629638671875, 0.0236663818359375, 0.03253173828125, 0.0263519287109375, -0.0299224853515625, -0.027130126953125, -0.07012939453125, 0.01458740234375, 0.022216796875, 0.007965087890625, 0.003131866455078125, 0.056671142578125, 0.019287109375, -0.01407623291015625, -0.0277862548828125, -0.00791168212890625, 0.00815582275390625, 0.0211334228515625, 0.032012939453125, 0.0218658447265625, 0.0264892578125, -0.0286407470703125, -0.002105712890625, -0.03533935546875, 0.009979248046875, 0.0285797119140625, 0.006374359130859375, -0.0007028579711914062, -0.008026123046875, -0.02685546875, 0.0325927734375, 0.041961669921875, 0.0074462890625, -0.018218994140625, 0.0012607574462890625, 0.0111846923828125, -0.029296875, 0.007740020751953125, -0.01364898681640625, -0.046600341796875, 0.040740966796875, -0.023590087890625, -0.038330078125, -0.03924560546875, 0.018798828125, -0.04718017578125, -0.0550537109375, -0.01092529296875, 0.0186920166015625, 0.035369873046875, 0.02203369140625, 0.01556396484375, 0.03192138671875, -0.0181121826171875, -0.0360107421875, -0.004467010498046875, 0.057281494140625, -0.001956939697265625, -0.048492431640625, -0.017608642578125, -0.0012531280517578125, -0.004703521728515625, 0.01849365234375, -0.018463134765625, -0.00977325439453125, -0.0033855438232421875, -0.0165557861328125, 0.0181121826171875, 0.0272979736328125, -0.033355712890625, -0.0127105712890625, -0.04901123046875, 0.0230560302734375, -0.033477783203125, 0.033203125, 0.00534820556640625, -0.015899658203125, 0.0127716064453125, -0.0172119140625, 0.0276641845703125, 0.0262603759765625, 0.054046630859375, 0.0013685226440429688, -0.01062774658203125, -0.02862548828125, 0.06024169921875, -0.01345062255859375, -0.0299072265625, 0.01515960693359375, 0.0096893310546875, 0.05133056640625, 0.0006566047668457031, -0.03143310546875, 0.0199127197265625, -0.042388916015625, -0.0182647705078125, 0.0447998046875, 0.0192413330078125, -0.03314208984375, -0.019439697265625, -0.00205230712890625, 0.02166748046875, 0.0030040740966796875, 0.005916595458984375, -0.03900146484375, -0.0308074951171875, -0.0006756782531738281, -0.0103302001953125, -0.0016422271728515625, -0.0151519775390625, -0.010040283203125, 0.0035724639892578125, -0.049713134765625, -0.023651123046875, 0.0596923828125, 0.04559326171875, -0.03460693359375, -0.029205322265625, 0.0308074951171875, 0.02459716796875, 0.038055419921875, -0.0186004638671875, -0.045806884765625, 0.01500701904296875, 0.006465911865234375, 0.020721435546875, -0.035247802734375, 0.048828125, -0.007114410400390625, -0.04058837890625, -0.04791259765625, 0.0201873779296875, 0.0007152557373046875, -0.040130615234375, -0.0185394287109375, -0.004306793212890625, 0.019439697265625, -0.005382537841796875, -0.00044274330139160156, 0.0000909566879272461, -0.00331878662109375, -0.00673675537109375, 0.0099029541015625, -0.01335906982421875, 0.01800537109375, 0.004596710205078125, -0.0013399124145507812, 0.006977081298828125, 0.0212554931640625, 0.01346588134765625, -0.0256500244140625, -0.02978515625, -0.0396728515625, 0.020294189453125, 0.017791748046875, 0.03643798828125, 0.01556396484375, -0.002544403076171875, 0.017547607421875, 0.04559326171875, -0.0304107666015625, 0.00023114681243896484, -0.00885772705078125, -0.0012960433959960938, -0.05804443359375, -0.01117706298828125, 0.04351806640625, -0.039794921875, -0.0171966552734375, 0.004894256591796875, 0.053436279296875, -0.0212554931640625, -0.043182373046875, -0.028961181640625, 0.0246734619140625, 0.00868988037109375, -0.016143798828125, 0.0285186767578125, -0.0115203857421875, 0.03485107421875, 0.0020160675048828125, 0.023681640625, 0.047943115234375, 0.0026092529296875, -0.01302337646484375, 0.004734039306640625, 0.0020084381103515625, -0.0177154541015625, -0.01329803466796875, -0.0231781005859375, -0.029876708984375, 0.0104522705078125, 0.001682281494140625, 0.0450439453125, -0.01416778564453125, 0.01352691650390625, 0.038238525390625, -0.04534912109375, -0.028900146484375, 0.03265380859375, -0.025390625, -0.038360595703125, 0.0164947509765625, -0.005992889404296875, 0.00028705596923828125, 0.01331329345703125, -0.0068206787109375, -0.01434326171875, -0.043548583984375, -0.001316070556640625, 0.010284423828125, 0.01100921630859375, 0.032379150390625, -0.0151214599609375, 0.0099639892578125, -0.0253753662109375, -0.0029544830322265625, 0.0136260986328125, -0.01332855224609375, -0.046783447265625, 0.0287628173828125, -0.0277862548828125, 0.0195159912109375, -0.011474609375, 0.032440185546875, 0.06597900390625, 0.02099609375, 0.034332275390625, -0.046722412109375, -0.0052947998046875, 0.04425048828125, 0.03277587890625, -0.045379638671875, -0.00751495361328125, 0.01898193359375, 0.0078277587890625, 0.0209197998046875, 0.0458984375, -0.05584716796875, 0.006000518798828125, 0.007297515869140625, 0.050079345703125, -0.041778564453125, -0.0088348388671875, 0.037811279296875, 0.01378631591796875, -0.002758026123046875, 0.0142059326171875, 0.033782958984375, -0.0345458984375, -0.016998291015625, 0.02716064453125, -0.021392822265625, -0.041839599609375, 0.002521514892578125, -0.08441162109375, 0.09027099609375, 0.0261077880859375, 0.048370361328125, 0.01067352294921875, -0.0015544891357421875, -0.04632568359375, -0.031158447265625, -0.041168212890625, 0.0364990234375, -0.047119140625, 0.043304443359375, -0.05657958984375, 0.0014848709106445312, 0.0028591156005859375, 0.00888824462890625, 0.076904296875, 0.0050506591796875, 0.0103912353515625, -0.0157623291015625, 0.050628662109375, 0.0478515625, -0.003818511962890625, 0.002918243408203125, -0.0087432861328125, 0.055389404296875, 0.0660400390625, -0.06951904296875, 0.0205841064453125, 0.0077667236328125, -0.00600433349609375, 0.0103607177734375, 0.00988006591796875, 0.01021575927734375, 0.00963592529296875, -0.027679443359375, 0.0137786865234375, 0.0006566047668457031, -0.00614166259765625, -0.0201873779296875, 0.07769775390625, -0.012298583984375, 0.049530029296875, -0.01540374755859375, 0.0116729736328125, -0.007266998291015625, 0.0538330078125, -0.0025081634521484375, 0.03863525390625, 0.04083251953125, 0.0301055908203125, 0.07452392578125, -0.00647735595703125, 0.0254058837890625, 0.014617919921875, -0.01444244384765625, 0.047088623046875, 0.04632568359375, 0.044097900390625, 0.0175933837890625, -0.00011855363845825195, 0.0206756591796875, 0.056549072265625, -0.031463623046875, -0.017913818359375, 0.0278472900390625, -0.0017271041870117188, -0.014984130859375, -0.006008148193359375, -0.0031414031982421875, -0.06353759765625, -0.021514892578125, 0.0242767333984375, -0.0225067138671875, 0.0274658203125, 0.01001739501953125, 0.0390625, 0.054656982421875, -0.02020263671875, -0.0203857421875, -0.061431884765625, 0.062255859375, 0.031280517578125, 0.03570556640625, -0.049041748046875, 0.0869140625, -0.005218505859375, -0.003936767578125, -0.0005631446838378906, -0.0289306640625, 0.02679443359375, -0.004032135009765625, -0.0611572265625, -0.035919189453125, 0.023834228515625, 0.05938720703125, -0.0157623291015625, 0.03424072265625, 0.061279296875, 0.037872314453125, -0.0596923828125, -0.02923583984375, 0.02630615234375, -0.029571533203125, 0.01151275634765625, -0.03594970703125, 0.00966644287109375, 0.0078582763671875, -0.0015954971313476562, -0.005214691162109375, 0.02484130859375, 0.030853271484375, -0.0157012939453125, 0.04815673828125, 0.00498199462890625, -0.0272674560546875, 0.0213470458984375, 0.050201416015625, 0.08538818359375, 0.050201416015625, -0.058807373046875, -0.005901336669921875, -0.050689697265625, 0.02252197265625, -0.01415252685546875, 0.00936126708984375, 0.012176513671875, 0.0256500244140625, 0.036834716796875, -0.015045166015625, -0.019287109375, 0.01357269287109375, 0.04608154296875, 0.036285400390625, 0.0187835693359375, 0.03985595703125, -0.048553466796875, -0.0017786026000976562, 0.01397705078125, -0.022247314453125, 0.0084991455078125, -0.05267333984375, 0.08251953125, 0.002895355224609375, 0.0014925003051757812, 0.01171112060546875, -0.044464111328125, -0.0244293212890625, 0.0594482421875, -0.06036376953125, -0.0113983154296875, 0.027679443359375, -0.059539794921875, 0.008514404296875, 0.006591796875, 0.0133056640625, 0.0162200927734375, -0.05230712890625, 0.0256805419921875, 0.023406982421875, 0.033111572265625, -0.0194091796875, -0.00307464599609375, -0.0274505615234375, -0.0321044921875, 0.050537109375, 0.0272979736328125, 0.00704193115234375, 0.0306854248046875, 0.014129638671875, -0.01611328125, 0.03851318359375, -0.044891357421875, 0.04779052734375, 0.02532958984375, 0.0195465087890625, -0.0207366943359375, -0.006786346435546875, -0.01617431640625, -0.026885986328125, 0.006725311279296875, 0.0221099853515625, 0.0007805824279785156, -0.041015625, -0.0162811279296875, 0.040435791015625, 0.056976318359375, 0.0186004638671875, 0.03521728515625, -0.020538330078125, -0.01050567626953125, 0.0242462158203125, -0.007167816162109375, -0.016998291015625, -0.00859832763671875, -0.00608062744140625, 0.0002789497375488281, 0.0211944580078125, -0.0240325927734375, 0.0118255615234375, -0.0224609375, 0.01482391357421875, 0.00911712646484375, -0.025787353515625, 0.03741455078125, -0.006561279296875, -0.0125274658203125, -0.0238494873046875, 0.02386474609375, -0.0175628662109375, 0.005359649658203125, -0.051361083984375, -0.050689697265625, -0.0264892578125, 0.043975830078125, -0.037872314453125, -0.00612640380859375, -0.001964569091796875, -0.0172271728515625, -0.03741455078125, -0.0304718017578125, 0.01378631591796875, -0.008941650390625, 0.03900146484375, -0.0288848876953125, -0.006378173828125, -0.0020427703857421875, -0.0088348388671875, -0.047332763671875, 0.0245819091796875, -0.0802001953125, -0.01433563232421875, -0.0711669921875, 0.0159759521484375, 0.01031494140625, -0.03076171875, -0.0309295654296875, 0.0264739990234375, -0.020263671875, -0.0175628662109375, 0.0017757415771484375, -0.045501708984375, -0.0271759033203125, 0.02496337890625, 0.00615692138671875, -0.0281982421875, -0.0208892822265625, 0.05596923828125, -0.0308685302734375, 0.0413818359375, 0.0213623046875, -0.052886962890625, 0.0126495361328125, -0.0153350830078125, 0.0019121170043945312, -0.01116943359375, 0.0141448974609375, 0.00128173828125, 0.0169219970703125, 0.04150390625, -0.038787841796875, -0.002166748046875, -0.018951416015625, 0.0024871826171875, -0.01751708984375, -0.0131072998046875, -0.03778076171875, 0.0062103271484375, 0.09368896484375, 0.0931396484375, 0.029510498046875, -0.063232421875, 0.0277862548828125, -0.0003495216369628906, -0.0191802978515625, -0.00154876708984375, 0.004138946533203125, -0.0199737548828125, -0.004962921142578125, -0.0010738372802734375, -0.03826904296875, 0.035186767578125, -0.07061767578125, -0.043060302734375, 0.0273284912109375, -0.044586181640625, -0.0087738037109375, -0.004047393798828125, 0.024322509765625, 0.039764404296875, -0.03546142578125, -0.0170745849609375, 0.0026340484619140625, -0.0091705322265625, 0.01047515869140625, -0.0263214111328125, 0.00846099853515625, 0.0118255615234375, -0.022247314453125, -0.00774383544921875, 0.0067596435546875, 0.0423583984375, 0.002498626708984375, -0.024749755859375, 0.020477294921875, -0.01058197021484375, -0.019927978515625, -0.031219482421875, 0.0284881591796875, -0.01142120361328125, -0.07110595703125, 0.09295654296875, -0.002048492431640625, 0.0252227783203125, -0.0150299072265625, 0.038482666015625, -0.032470703125, -0.00418853759765625, -0.01297760009765625, -0.0029163360595703125, -0.0015020370483398438, 0.0029659271240234375, 0.00466156005859375, -0.0179290771484375, 0.00445556640625, 0.053314208984375, -0.0055694580078125, 0.0090484619140625 ]
dfa1f9b66533192814372d769c455677285191aa
Wordpress Stackexchange Q: deregister scripts on certain page i need to exclude certain scripts from running on a certain page. i have tried this code but it's not working - when i inspect the page the scripts are still being loaded into the footer of my page. here is my code in functions.php add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 100 ); function my_deregister_javascript() { if ( !is_page('my-page') ) { wp_deregister_script( 'isotope' ); wp_deregister_script( 'anystretch' ); wp_deregister_script( 'imgliquid' ); wp_deregister_script( 'retina' ); wp_deregister_script( 'menutron' ); wp_deregister_script( 'imagesloaded' ); wp_deregister_script( 'myfunctions' ); } } what am i missing? thanks! A: You have a basic mistake in your code. The following code if ( !is_page('my-page') ) { means that if you are not on that page, deregister the scripts. Have a look at the php operators ! -> Not !$x True if $x is not true Also, why not exclude this specific page when you initially enqueue these scripts, something like add_action( 'wp_enqueue_scripts', 'my_register_javascript', 100 ); function my_register_javascript() { if ( !is_page('my-page') ) { // ENQUEUE/REGISTER SCRIPTS } } It is much cleaner and more efficient. I don't see the point in registerring a script and deregister it again. Rather register the scripts conditionally from the start
Q: deregister scripts on certain page i need to exclude certain scripts from running on a certain page. i have tried this code but it's not working - when i inspect the page the scripts are still being loaded into the footer of my page. here is my code in functions.php add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 100 ); function my_deregister_javascript() { if ( !is_page('my-page') ) { wp_deregister_script( 'isotope' ); wp_deregister_script( 'anystretch' ); wp_deregister_script( 'imgliquid' ); wp_deregister_script( 'retina' ); wp_deregister_script( 'menutron' ); wp_deregister_script( 'imagesloaded' ); wp_deregister_script( 'myfunctions' ); } } what am i missing? thanks! A: You have a basic mistake in your code. The following code if ( !is_page('my-page') ) { means that if you are not on that page, deregister the scripts. Have a look at the php operators ! -> Not !$x True if $x is not true Also, why not exclude this specific page when you initially enqueue these scripts, something like add_action( 'wp_enqueue_scripts', 'my_register_javascript', 100 ); function my_register_javascript() { if ( !is_page('my-page') ) { // ENQUEUE/REGISTER SCRIPTS } } It is much cleaner and more efficient. I don't see the point in registerring a script and deregister it again. Rather register the scripts conditionally from the start A: Finally got ONLY my front page to not load jquery, thought I would share it to possibly save some other hack 8 hrs of hit and miss. // remove jquery from ONLY the front page add_action( 'wp_enqueue_scripts', 'my_deregister_javascript' ); function my_deregister_javascript() { if ( is_home('front-page') ) { wp_deregister_script( 'jquery' ); } } NOTE: is_page from the initial question does not work when you want to use front-page or home in the argument must use is_home (that cost me an hour) A: I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then dequeuing them: function wpse158453_enqueue_scripts() { if(!is_page('my-page')) { wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' ); wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' ); wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' ); } } add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' ); Otherwise you could try wp_dequeue_script rather than wp_deregister_script Hope that helps. A: //Remove jquery only on front page add_action( 'wp_enqueue_scripts', 'my_deregister_javascript' ); function my_deregister_javascript() { if ( is_front_page() ) { wp_deregister_script( 'jquery' ); } } add this script in your theme function.php file you will resolve query
wordpress
{ "language": "en", "length": 370, "provenance": "stackexchange_00019.jsonl.gz:448010", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158453" }
[ 0.06011962890625, 0.0477294921875, -0.0172271728515625, -0.01861572265625, 0.05487060546875, -0.040771484375, 0.04559326171875, -0.041717529296875, -0.012481689453125, -0.024627685546875, -0.0635986328125, 0.037811279296875, -0.0858154296875, -0.007537841796875, 0.0018014907836914062, -0.07818603515625, 0.0283966064453125, 0.0214080810546875, 0.0321044921875, -0.00506591796875, 0.006160736083984375, 0.00727081298828125, 0.0215911865234375, 0.044525146484375, 0.00513458251953125, -0.047119140625, 0.08026123046875, 0.0171356201171875, -0.01291656494140625, -0.0284881591796875, 0.02056884765625, 0.01134490966796875, 0.0007605552673339844, 0.065185546875, -0.04071044921875, 0.01654052734375, 0.016448974609375, 0.032867431640625, 0.032958984375, 0.0237274169921875, -0.005840301513671875, 0.0202178955078125, 0.004024505615234375, 0.009185791015625, -0.035980224609375, -0.041748046875, -0.004299163818359375, -0.01213836669921875, -0.0025920867919921875, -0.01134490966796875, 0.007373809814453125, 0.0147552490234375, 0.01983642578125, 0.0087738037109375, 0.01184844970703125, 0.0195770263671875, -0.03179931640625, -0.006969451904296875, 0.0176849365234375, 0.0982666015625, 0.0236663818359375, 0.006412506103515625, -0.01898193359375, -0.0814208984375, -0.0265350341796875, -0.03277587890625, -0.0653076171875, 0.0165557861328125, -0.0770263671875, -0.0237884521484375, 0.06390380859375, -0.040435791015625, -0.01073455810546875, -0.0018939971923828125, -0.024139404296875, 0.0291748046875, -0.015411376953125, 0.015899658203125, 0.021484375, 0.009368896484375, -0.01959228515625, -0.038177490234375, -0.05511474609375, 0.049346923828125, -0.046722412109375, 0.04791259765625, -0.00815582275390625, -0.00923919677734375, -0.05145263671875, 0.0012035369873046875, -0.0295257568359375, -0.0034389495849609375, -0.03131103515625, -0.0281982421875, -0.0170135498046875, -0.002559661865234375, 0.09234619140625, 0.069580078125, 0.00788116455078125, -0.0160980224609375, 0.029266357421875, -0.07623291015625, 0.0213470458984375, -0.032501220703125, 0.0167236328125, 0.08636474609375, -0.021026611328125, -0.052459716796875, -0.003421783447265625, -0.0013799667358398438, 0.03900146484375, -0.0174713134765625, 0.0032596588134765625, 0.007289886474609375, -0.04052734375, -0.0164794921875, -0.023651123046875, -0.030059814453125, -0.0134124755859375, -0.0293121337890625, 0.0247039794921875, 0.046417236328125, 0.0051727294921875, -0.0185394287109375, 0.00858306884765625, -0.0033550262451171875, -0.018341064453125, -0.03302001953125, 0.0304718017578125, 0.0278778076171875, -0.026641845703125, -0.01415252685546875, 0.0347900390625, 0.01146697998046875, 0.0017309188842773438, -0.03302001953125, 0.038482666015625, -0.00222015380859375, 0.01372528076171875, 0.00823211669921875, -0.0030918121337890625, -0.046630859375, 0.005603790283203125, 0.017303466796875, -0.04931640625, 0.0123443603515625, -0.00022292137145996094, 0.016021728515625, 0.006816864013671875, -0.042510986328125, 0.0012235641479492188, -0.03912353515625, 0.036651611328125, -0.0022125244140625, -0.03521728515625, -0.0237274169921875, -0.00395965576171875, -0.0299835205078125, -0.0010051727294921875, -0.034881591796875, -0.0233306884765625, -0.00433349609375, 0.0079498291015625, -0.036468505859375, -0.0301055908203125, -0.0279541015625, 0.0206146240234375, 0.006786346435546875, 0.00909423828125, 0.030303955078125, -0.027679443359375, -0.05035400390625, -0.0025730133056640625, 0.003971099853515625, -0.017578125, 0.049224853515625, -0.0023708343505859375, 0.00159454345703125, 0.032989501953125, -0.00958251953125, -0.0350341796875, -0.028564453125, 0.061126708984375, -0.0301361083984375, -0.06787109375, -0.004329681396484375, 0.020294189453125, 0.038421630859375, 0.00591278076171875, 0.006961822509765625, 0.09930419921875, 0.0216827392578125, -0.008941650390625, -0.01296234130859375, -0.0118408203125, -0.035003662109375, 0.0254974365234375, 0.0010242462158203125, 0.001953125, 0.016510009765625, 0.0287933349609375, 0.0179901123046875, 0.00875091552734375, -0.00833892822265625, -0.0595703125, 0.004909515380859375, -0.0244598388671875, 0.043670654296875, -0.0019855499267578125, 0.018218994140625, 0.0074462890625, 0.0037021636962890625, -0.030548095703125, 0.029876708984375, -0.0187530517578125, 0.00567626953125, -0.021636962890625, 0.07421875, -0.01079559326171875, 0.0282745361328125, 0.007442474365234375, -0.0845947265625, 0.02618408203125, 0.006992340087890625, 0.035186767578125, -0.00582122802734375, -0.04248046875, -0.03143310546875, -0.0036525726318359375, -0.01309967041015625, -0.032501220703125, 0.10791015625, 0.00894927978515625, 0.035186767578125, -0.0265045166015625, -0.0235748291015625, -0.00811004638671875, -0.03131103515625, 0.0160064697265625, 0.0377197265625, 0.042633056640625, 0.043304443359375, -0.008880615234375, -0.018402099609375, 0.057830810546875, -0.1044921875, -0.03009033203125, 0.01276397705078125, -0.031951904296875, -0.007457733154296875, 0.015899658203125, 0.039459228515625, 0.0287322998046875, -0.0101776123046875, -0.01239013671875, 0.06561279296875, -0.0282745361328125, 0.005390167236328125, -0.030670166015625, -0.01751708984375, 0.020751953125, 0.0140838623046875, 0.001140594482421875, 0.0015897750854492188, 0.0472412109375, -0.01316070556640625, 0.01454925537109375, 0.006565093994140625, -0.021759033203125, 0.012451171875, 0.010101318359375, -0.05218505859375, -0.00984954833984375, 0.014801025390625, 0.04205322265625, -0.017974853515625, -0.06396484375, 0.016876220703125, 0.0307159423828125, 0.013275146484375, -0.0047454833984375, -0.01555633544921875, -0.0160675048828125, -0.0027942657470703125, 0.0181884765625, -0.057769775390625, 0.02447509765625, 0.022003173828125, -0.00858306884765625, -0.0233306884765625, 0.0231170654296875, 0.003955841064453125, 0.0167236328125, -0.03759765625, 0.044097900390625, -0.0286102294921875, 0.0479736328125, -0.016265869140625, 0.0233306884765625, -0.0068206787109375, 0.038665771484375, 0.049041748046875, 0.0016765594482421875, 0.007434844970703125, -0.004421234130859375, 0.0268707275390625, 0.0234527587890625, -0.025238037109375, -0.0240936279296875, 0.0177154541015625, -0.07403564453125, -0.0260772705078125, 0.01076507568359375, 0.01202392578125, 0.0005373954772949219, -0.0235748291015625, -0.0064544677734375, -0.0028247833251953125, -0.07696533203125, -0.0667724609375, -0.0215606689453125, -0.03936767578125, 0.047027587890625, -0.0019989013671875, 0.00833892822265625, -0.03900146484375, 0.0288848876953125, 0.0283660888671875, -0.025054931640625, -0.0102081298828125, -0.028289794921875, -0.0024356842041015625, -0.018768310546875, 0.07855224609375, -0.005329132080078125, 0.0018568038940429688, 0.01430511474609375, 0.033905029296875, 0.010955810546875, -0.052581787109375, 0.040435791015625, -0.0168609619140625, -0.0108795166015625, 0.03912353515625, 0.0007219314575195312, -0.043121337890625, -0.00879669189453125, -0.00943756103515625, 0.0014352798461914062, 0.006565093994140625, 0.01123809814453125, 0.01201629638671875, -0.01995849609375, -0.0005068778991699219, 0.01285552978515625, 0.027130126953125, 0.022369384765625, -0.007030487060546875, 0.006404876708984375, -0.038543701171875, -0.038177490234375, 0.021240234375, -0.025299072265625, -0.006954193115234375, 0.0002772808074951172, -0.0253753662109375, 0.0200653076171875, 0.017791748046875, 0.068603515625, 0.0235443115234375, -0.0099334716796875, 0.01546478271484375, 0.01143646240234375, 0.012847900390625, 0.05682373046875, -0.0281219482421875, 0.0316162109375, -0.0174560546875, 0.01007080078125, 0.00006276369094848633, 0.0208892822265625, 0.01171875, -0.0299835205078125, -0.053802490234375, -0.01334381103515625, -0.01082611083984375, -0.0307159423828125, 0.00612640380859375, 0.003658294677734375, 0.026580810546875, 0.0193328857421875, 0.030792236328125, -0.020172119140625, -0.0200653076171875, 0.005962371826171875, 0.01372528076171875, -0.0281829833984375, -0.036712646484375, -0.0091552734375, -0.0115966796875, -0.04718017578125, -0.0201263427734375, -0.01898193359375, -0.03125, -0.0172119140625, -0.0297698974609375, -0.03497314453125, -0.0323486328125, 0.045135498046875, -0.06146240234375, 0.0100555419921875, 0.026153564453125, 0.0210723876953125, -0.0380859375, -0.027679443359375, -0.039093017578125, -0.07415771484375, -0.0022068023681640625, -0.037017822265625, 0.053741455078125, 0.0171051025390625, 0.01189422607421875, -0.02899169921875, 0.02764892578125, -0.021942138671875, -0.004024505615234375, 0.00194549560546875, 0.000698089599609375, -0.0009069442749023438, 0.0256500244140625, 0.0014562606811523438, 0.002445220947265625, 0.0127716064453125, -0.005390167236328125, -0.040374755859375, 0.0003688335418701172, -0.011932373046875, 0.005451202392578125, 0.030487060546875, -0.0301055908203125, -0.028411865234375, 0.01151275634765625, 0.015045166015625, -0.00464630126953125, 0.032257080078125, -0.042266845703125, -0.0118408203125, -0.0126800537109375, 0.01837158203125, -0.048126220703125, -0.010528564453125, 0.005069732666015625, 0.0312042236328125, 0.022857666015625, -0.005619049072265625, 0.041046142578125, 0.024322509765625, 0.0274200439453125, -0.0316162109375, 0.059112548828125, 0.028961181640625, -0.0007863044738769531, 0.05194091796875, -0.0032444000244140625, -0.00064849853515625, -0.00787353515625, 0.0386962890625, 0.021759033203125, 0.005779266357421875, -0.01363372802734375, 0.01132965087890625, 0.0014476776123046875, 0.0024394989013671875, -0.01218414306640625, -0.00799560546875, 0.016082763671875, 0.02099609375, -0.01367950439453125, 0.0333251953125, -0.01000213623046875, -0.01486968994140625, -0.011444091796875, 0.0180511474609375, 0.054229736328125, 0.06195068359375, -0.005046844482421875, 0.041839599609375, 0.061065673828125, 0.0261077880859375, 0.0181427001953125, 0.02862548828125, -0.05084228515625, 0.050628662109375, -0.0225830078125, -0.00981903076171875, 0.0164794921875, -0.0003387928009033203, -0.006237030029296875, 0.005279541015625, -0.0276641845703125, -0.008697509765625, 0.015289306640625, 0.047576904296875, 0.0069122314453125, 0.037567138671875, 0.053985595703125, 0.020965576171875, 0.011199951171875, -0.0252532958984375, -0.004962921142578125, 0.0226593017578125, -0.036224365234375, -0.01108551025390625, 0.0042266845703125, -0.0238494873046875, -0.038787841796875, 0.02764892578125, 0.019500732421875, -0.0273590087890625, -0.00888824462890625, 0.03314208984375, -0.006591796875, 0.04144287109375, 0.00235748291015625, -0.0160980224609375, -0.0015478134155273438, 0.04150390625, -0.00811767578125, -0.018646240234375, 0.01412200927734375, -0.0024242401123046875, 0.0004930496215820312, 0.032135009765625, 0.014801025390625, 0.0053863525390625, -0.00868988037109375, -0.024505615234375, 0.0247955322265625, -0.0123138427734375, -0.014984130859375, -0.041717529296875, -0.022735595703125, 0.037017822265625, 0.0225830078125, 0.008880615234375, -0.00847625732421875, 0.0303192138671875, 0.0025959014892578125, 0.020263671875, -0.0460205078125, -0.0015468597412109375, 0.029541015625, 0.017242431640625, -0.002094268798828125, -0.0209808349609375, -0.05035400390625, -0.0231170654296875, -0.011322021484375, 0.004108428955078125, 0.010162353515625, 0.0029621124267578125, 0.0248870849609375, -0.03271484375, -0.0081939697265625, -0.0010662078857421875, 0.0041961669921875, 0.0234375, -0.01042938232421875, 0.0027618408203125, -0.0201568603515625, -0.05279541015625, -0.028076171875, -0.021942138671875, -0.03875732421875, -0.01425933837890625, -0.006221771240234375, 0.00252532958984375, 0.01080322265625, -0.022735595703125, -0.0246734619140625, 0.006244659423828125, 0.023406982421875, 0.0024318695068359375, 0.05157470703125, -0.03857421875, 0.043853759765625, 0.0131072998046875, 0.01136016845703125, -0.01067352294921875, 0.03216552734375, 0.036773681640625, -0.0240936279296875, -0.01012420654296875, -0.06866455078125, 0.01042938232421875, 0.0205078125, -0.0050811767578125, 0.05120849609375, 0.0298919677734375, 0.01381683349609375, 0.03131103515625, 0.02239990234375, 0.0098419189453125, -0.002849578857421875, 0.006366729736328125, 0.03326416015625, 0.040283203125, 0.052703857421875, -0.0094451904296875, -0.0013666152954101562, 0.005336761474609375, 0.013671875, -0.004150390625, -0.006832122802734375, -0.0028839111328125, -0.017822265625, -0.0194854736328125, 0.0123443603515625, -0.0150146484375, -0.0008778572082519531, 0.0244903564453125, -0.0239410400390625, 0.02215576171875, 0.031097412109375, -0.00009328126907348633, -0.0413818359375, -0.002460479736328125, 0.0040130615234375, -0.01629638671875, 0.02130126953125, 0.00669097900390625, 0.016326904296875, -0.00909423828125, 0.06494140625, 0.050994873046875, -0.07513427734375, -0.00943756103515625, 0.00818634033203125, -0.020782470703125, -0.02532958984375, -0.046539306640625, 0.008270263671875, -0.000331878662109375, 0.035919189453125, 0.041229248046875, -0.0318603515625, 0.00815582275390625, 0.01556396484375, -0.027069091796875, -0.004604339599609375, 0.008880615234375, 0.02789306640625, -0.0191650390625, 0.068359375, 0.0155029296875, 0.03924560546875, -0.024658203125, -0.0175933837890625, 0.00923919677734375, -0.055419921875, -0.03759765625, 0.017364501953125, 0.010009765625, -0.020660400390625, -0.00704193115234375, 0.008087158203125, 0.0301513671875, 0.032135009765625, -0.0020656585693359375, -0.0310516357421875, 0.013671875, -0.003597259521484375, -0.062347412109375, -0.047637939453125, 0.0305023193359375, 0.00023174285888671875, -0.0653076171875, 0.040435791015625, -0.0328369140625, -0.045867919921875, -0.0010528564453125, -0.04522705078125, 0.0260772705078125, -0.027862548828125, -0.0185546875, -0.01276397705078125, 0.0173797607421875, 0.037841796875, -0.03271484375, 0.0277862548828125, -0.07330322265625, -0.0673828125, -0.017333984375, -0.068603515625, -0.0140838623046875, -0.06951904296875, -0.05303955078125, 0.10223388671875, -0.01450347900390625, 0.04022216796875, 0.014892578125, 0.037872314453125, -0.01493072509765625, 0.01500701904296875, -0.022979736328125, 0.045135498046875, 0.0274505615234375, 0.0469970703125, 0.0034465789794921875, 0.0029163360595703125, 0.0382080078125, 0.0259552001953125, 0.032623291015625, 0.0090179443359375, 0.01197052001953125, -0.014801025390625, 0.03826904296875, 0.05853271484375, 0.01654052734375, -0.0190887451171875, -0.02825927734375, -0.019195556640625, 0.0006256103515625, -0.043853759765625, 0.0074615478515625, -0.03485107421875, -0.00931549072265625, -0.010284423828125, 0.00009942054748535156, -0.01009368896484375, -0.023345947265625, 0.00785064697265625, -0.04296875, -0.0005979537963867188, 0.00665283203125, 0.07232666015625, -0.002223968505859375, 0.0246734619140625, -0.003086090087890625, 0.02392578125, -0.052947998046875, 0.000820159912109375, 0.01030731201171875, -0.006443023681640625, 0.0219879150390625, 0.050048828125, 0.0250396728515625, 0.006107330322265625, -0.0009493827819824219, 0.01538848876953125, 0.0122833251953125, -0.0224761962890625, -0.017730712890625, 0.02203369140625, 0.01300048828125, -0.01451873779296875, 0.00455474853515625, 0.0284423828125, -0.00997161865234375, -0.01247406005859375, 0.0095062255859375, 0.0166015625, -0.0005602836608886719, -0.01050567626953125, -0.032257080078125, 0.0005283355712890625, 0.00762939453125, 0.0019273757934570312, 0.0289459228515625, -0.0223846435546875, 0.0008535385131835938, 0.01139068603515625, 0.01261138916015625, 0.01413726806640625, 0.007396697998046875, -0.013641357421875, -0.057098388671875, 0.01556396484375, 0.01605224609375, 0.075439453125, 0.0248870849609375, 0.03900146484375, -0.0189361572265625, -0.046112060546875, -0.03472900390625, 0.07635498046875, -0.0244293212890625, 0.048614501953125, -0.0865478515625, -0.07110595703125, -0.0095672607421875, 0.0582275390625, 0.017303466796875, -0.023193359375, 0.01425933837890625, 0.04132080078125, -0.01132965087890625, -0.00397491455078125, 0.08740234375, 0.0009632110595703125, 0.00792694091796875, 0.003055572509765625, -0.0025043487548828125, 0.00876617431640625, -0.0022430419921875, -0.0184326171875, 0.0772705078125, -0.0188446044921875, -0.0325927734375, -0.006900787353515625, 0.0011434555053710938, -0.040283203125, 0.0281524658203125, 0.01375579833984375, 0.04620361328125, -0.00429534912109375, -0.054595947265625, -0.01739501953125, -0.04986572265625, -0.0012445449829101562, 0.0271453857421875, 0.027191162109375, -0.0231781005859375, 0.054779052734375, 0.10260009765625, -0.028045654296875, 0.01038360595703125, 0.0428466796875, 0.0010118484497070312, 0.013427734375, 0.070068359375, 0.0340576171875, 0.0009784698486328125, -0.01050567626953125, 0.0199737548828125, 0.0030651092529296875, 0.016845703125, 0.0372314453125, -0.0077667236328125, 0.0020275115966796875, 0.05023193359375, -0.0031528472900390625, 0.0260467529296875, 0.02679443359375, -0.016326904296875, -0.018798828125, 0.006580352783203125, -0.0203704833984375, -0.0300140380859375, 0.040802001953125, 0.0139923095703125, 0.0008835792541503906, 0.024169921875, -0.0252227783203125, 0.0153045654296875, 0.007099151611328125, -0.01146697998046875, -0.021514892578125, -0.049468994140625, -0.0015087127685546875, 0.020050048828125, 0.0002282857894897461, 0.03497314453125, 0.02362060546875, 0.01157379150390625, 0.02947998046875, -0.0162200927734375, 0.00084686279296875, 0.0234832763671875, -0.0186767578125, 0.0089874267578125, 0.05755615234375, 0.00876617431640625, 0.0017938613891601562, -0.0250244140625, 0.036529541015625, -0.003345489501953125, 0.0220184326171875, -0.000865936279296875, -0.006008148193359375, -0.0518798828125, 0.081787109375, 0.036224365234375, 0.00630950927734375, 0.037109375, 0.021392822265625, -0.06622314453125, -0.007740020751953125, -0.0267486572265625, -0.02978515625, -0.02685546875, -0.00174713134765625, 0.0158843994140625, -0.01053619384765625, -0.04132080078125, -0.0164337158203125, 0.0016193389892578125, 0.0357666015625, 0.0156707763671875, -0.087646484375, 0.040802001953125, -0.03448486328125, 0.057403564453125, -0.0396728515625, 0.063720703125, -0.049163818359375, -0.045623779296875, -0.061248779296875, -0.0274505615234375, -0.037567138671875, 0.07586669921875, -0.006221771240234375, -0.01160430908203125, 0.0246734619140625, -0.00937652587890625, -0.03363037109375, -0.01708984375, -0.0078582763671875, 0.0250091552734375, -0.0115203857421875, -0.021209716796875, -0.0204315185546875, 0.04437255859375, 0.002002716064453125, -0.035003662109375, -0.00244903564453125, 0.0101470947265625, -0.0007677078247070312, -0.0161895751953125, 0.003818511962890625, 0.003963470458984375, -0.0272674560546875, -0.05328369140625, 0.03387451171875, 0.0012617111206054688, -0.03436279296875, -0.032257080078125, 0.021148681640625, 0.0238800048828125, -0.0300140380859375, -0.017578125, -0.0233306884765625, -0.041900634765625, -0.01384735107421875, 0.0164337158203125, 0.024322509765625, 0.0067901611328125, -0.0092010498046875, -0.051055908203125, 0.021575927734375, 0.0188446044921875, 0.018157958984375, -0.05474853515625, 0.02886962890625, 0.0139312744140625, 0.05517578125, 0.025909423828125, 0.026885986328125, 0.010345458984375, -0.0511474609375, 0.033111572265625, -0.0090789794921875, -0.04949951171875, -0.037994384765625, 0.07708740234375, -0.013458251953125, 0.0247650146484375, -0.0019044876098632812, -0.05169677734375, -0.046844482421875, 0.01708984375, -0.01165771484375, 0.01479339599609375, -0.0675048828125, 0.00801849365234375, 0.0190887451171875, -0.0072174072265625, -0.00988006591796875, -0.029083251953125, -0.0517578125, -0.004913330078125, 0.00933837890625, 0.044403076171875, -0.055084228515625, -0.05181884765625, 0.0247039794921875, -0.006435394287109375, 0.01457977294921875, -0.00598907470703125, 0.03875732421875, 0.02203369140625, 0.03533935546875, -0.0225677490234375, 0.01220703125, -0.04443359375, 0.0242767333984375, -0.025299072265625, 0.0243988037109375, -0.054046630859375, 0.01068115234375, -0.010406494140625, 0.0253448486328125, 0.029083251953125, 0.055755615234375, -0.0460205078125, 0.01528167724609375, 0.0173492431640625, -0.040863037109375, -0.034698486328125, 0.0217437744140625, -0.007068634033203125, -0.01050567626953125, 0.03533935546875, 0.01163482666015625, 0.0982666015625, -0.025177001953125, -0.00885772705078125, 0.00225067138671875, -0.01445770263671875, -0.060272216796875, 0.04730224609375, -0.041229248046875, 0.0155487060546875, 0.032440185546875 ]
e5efdad30b222b7c0511e417c3f3486cda4f9d81
Wordpress Stackexchange Q: Wordpress Multisite: Adding actions to only one site I have Wordpress Multisite installed with WooCommerce network activated. I want to add an action to a hook in ONE of the sites that has WooCommerce installed, instead of all of them. For example, I only want this action that adds specific meta data to the order to occur on one of the sites with WooCommerce installed. add_action('woocommerce_checkout_update_order_meta', 'new_meta_values'), 2); function new_meta_values($order_id) { $order = new WC_Order($order_id); $items = $order->get_items(); foreach($items as $k => $v){ $item_id = $k; woocommerce_add_order_item_meta( $item_id, '_seminar_members_', $data); } } Is this possible? A: Use get_current_blog_id() to check the current site. To run on site 2 only, use this: function new_meta_values($order_id) { if ( 2 !== get_current_blog_id() ) return; /* the rest of the function code */ }
Q: Wordpress Multisite: Adding actions to only one site I have Wordpress Multisite installed with WooCommerce network activated. I want to add an action to a hook in ONE of the sites that has WooCommerce installed, instead of all of them. For example, I only want this action that adds specific meta data to the order to occur on one of the sites with WooCommerce installed. add_action('woocommerce_checkout_update_order_meta', 'new_meta_values'), 2); function new_meta_values($order_id) { $order = new WC_Order($order_id); $items = $order->get_items(); foreach($items as $k => $v){ $item_id = $k; woocommerce_add_order_item_meta( $item_id, '_seminar_members_', $data); } } Is this possible? A: Use get_current_blog_id() to check the current site. To run on site 2 only, use this: function new_meta_values($order_id) { if ( 2 !== get_current_blog_id() ) return; /* the rest of the function code */ }
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:448021", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158499" }
[ 0.048980712890625, -0.0030498504638671875, -0.005886077880859375, -0.01751708984375, -0.004055023193359375, -0.034271240234375, 0.01520538330078125, -0.03009033203125, 0.030426025390625, 0.0184478759765625, -0.028106689453125, 0.00894927978515625, 0.005157470703125, -0.014739990234375, -0.0025310516357421875, -0.005950927734375, 0.04290771484375, 0.0031070709228515625, 0.05255126953125, 0.0174560546875, -0.0183563232421875, 0.052215576171875, 0.020294189453125, 0.033966064453125, 0.020538330078125, -0.05035400390625, 0.07757568359375, -0.0242767333984375, 0.047515869140625, 0.0000020265579223632812, 0.0293731689453125, -0.029327392578125, 0.036102294921875, -0.0191802978515625, -0.0221405029296875, -0.04376220703125, 0.0305023193359375, -0.0377197265625, -0.03436279296875, 0.05712890625, 0.038482666015625, -0.0231781005859375, -0.005584716796875, 0.0274505615234375, 0.01087188720703125, -0.06695556640625, 0.0631103515625, -0.052032470703125, 0.00870513916015625, -0.03326416015625, -0.0140533447265625, 0.00725555419921875, 0.0011882781982421875, -0.023223876953125, -0.02203369140625, -0.01288604736328125, -0.04681396484375, -0.002483367919921875, 0.0106048583984375, 0.05853271484375, 0.013641357421875, 0.01256561279296875, -0.0116729736328125, -0.04339599609375, 0.02001953125, -0.003574371337890625, -0.0246429443359375, 0.020294189453125, -0.0433349609375, 0.0264129638671875, 0.03570556640625, -0.05743408203125, -0.0005841255187988281, 0.0268707275390625, -0.049560546875, -0.05889892578125, 0.0179595947265625, -0.024993896484375, 0.0228729248046875, 0.0015172958374023438, 0.004291534423828125, -0.0122833251953125, 0.01198577880859375, -0.047393798828125, 0.021942138671875, -0.0111236572265625, -0.0081329345703125, 0.0120697021484375, -0.0491943359375, -0.01154327392578125, -0.0418701171875, -0.035125732421875, -0.03521728515625, -0.004215240478515625, -0.01552581787109375, -0.0255126953125, 0.0138702392578125, 0.0406494140625, 0.008087158203125, 0.0225982666015625, 0.0019350051879882812, -0.04400634765625, 0.02191162109375, -0.035430908203125, 0.00921630859375, 0.0285491943359375, 0.0234375, 0.00019276142120361328, 0.0192718505859375, -0.0036983489990234375, -0.01898193359375, 0.0183258056640625, 0.0032196044921875, -0.0164642333984375, -0.003459930419921875, -0.036224365234375, -0.0640869140625, 0.0516357421875, 0.00688934326171875, -0.01611328125, -0.00231170654296875, 0.026763916015625, 0.0300445556640625, -0.0268402099609375, -0.037017822265625, -0.027618408203125, -0.00925445556640625, -0.06585693359375, -0.03619384765625, -0.004680633544921875, -0.039886474609375, 0.0248565673828125, 0.07513427734375, 0.03375244140625, -0.0023555755615234375, -0.005916595458984375, 0.02618408203125, 0.038604736328125, -0.003963470458984375, -0.003536224365234375, 0.03448486328125, -0.0438232421875, -0.058380126953125, 0.012725830078125, 0.035614013671875, -0.008209228515625, 0.01125335693359375, 0.0230712890625, 0.041595458984375, 0.03143310546875, -0.00995635986328125, 0.003742218017578125, 0.019012451171875, -0.00411224365234375, -0.007411956787109375, 0.00801849365234375, 0.0244598388671875, -0.00858306884765625, -0.0192108154296875, -0.01629638671875, -0.04315185546875, -0.0224761962890625, 0.0261993408203125, -0.056915283203125, -0.06549072265625, 0.028564453125, -0.003936767578125, -0.0181121826171875, 0.0364990234375, 0.04315185546875, -0.0069427490234375, -0.023284912109375, 0.07403564453125, 0.0323486328125, -0.018829345703125, 0.028106689453125, -0.008453369140625, 0.054718017578125, 0.025238037109375, 0.019561767578125, 0.006137847900390625, -0.0296478271484375, 0.08258056640625, -0.0208587646484375, -0.0670166015625, 0.05194091796875, 0.002838134765625, 0.057403564453125, 0.001148223876953125, 0.0033206939697265625, 0.05133056640625, 0.0400390625, -0.01203155517578125, -0.01470184326171875, -0.0032062530517578125, 0.0156097412109375, -0.0009126663208007812, 0.0303955078125, -0.00943756103515625, -0.036163330078125, 0.036712646484375, 0.01007843017578125, 0.03204345703125, 0.005107879638671875, 0.01226043701171875, 0.0213775634765625, -0.0109710693359375, 0.0199432373046875, -0.0439453125, -0.00997161865234375, 0.02899169921875, 0.002841949462890625, -0.0218353271484375, -0.045318603515625, -0.005413055419921875, 0.00643157958984375, -0.037567138671875, 0.07586669921875, 0.007534027099609375, 0.053741455078125, 0.0118865966796875, -0.039306640625, 0.0201416015625, -0.029571533203125, 0.03717041015625, 0.01151275634765625, -0.03680419921875, -0.023468017578125, 0.0012598037719726562, 0.01531982421875, -0.052215576171875, 0.04150390625, 0.0036773681640625, -0.01983642578125, -0.032196044921875, -0.00013256072998046875, -0.0195770263671875, -0.07611083984375, -0.01044464111328125, 0.06805419921875, 0.03619384765625, 0.02838134765625, 0.0157623291015625, 0.0235748291015625, 0.0267333984375, -0.0232086181640625, 0.031219482421875, -0.020477294921875, -0.0137939453125, 0.027679443359375, -0.02386474609375, 0.019683837890625, 0.030731201171875, -0.00542449951171875, -0.01654052734375, 0.045745849609375, -0.022979736328125, -0.03656005859375, 0.004634857177734375, -0.022125244140625, 0.0292205810546875, -0.035980224609375, -0.0439453125, 0.01123809814453125, 0.036041259765625, 0.00908660888671875, 0.04510498046875, 0.0230255126953125, -0.01611328125, -0.006816864013671875, 0.00980377197265625, -0.0233154296875, -0.00611114501953125, 0.0252685546875, -0.041839599609375, -0.00704193115234375, -0.01390838623046875, 0.00978851318359375, -0.0193939208984375, -0.01213836669921875, -0.01166534423828125, 0.0239105224609375, -0.020751953125, -0.01264190673828125, 0.015472412109375, -0.04034423828125, -0.0175018310546875, -0.022491455078125, -0.0217437744140625, -0.051727294921875, 0.01544952392578125, -0.01947021484375, -0.043853759765625, 0.0017862319946289062, 0.0192718505859375, -0.05950927734375, 0.0634765625, -0.00847625732421875, 0.027679443359375, -0.0298309326171875, 0.035614013671875, 0.0419921875, -0.0293426513671875, 0.00801849365234375, -0.01544952392578125, -0.0281219482421875, -0.0281982421875, 0.0128936767578125, -0.019927978515625, -0.031280517578125, -0.045440673828125, 0.0322265625, 0.0200653076171875, 0.01219940185546875, -0.004852294921875, -0.022430419921875, -0.00627899169921875, -0.00019252300262451172, -0.04443359375, -0.06500244140625, -0.022796630859375, -0.049957275390625, 0.01210784912109375, -0.0361328125, -0.0280303955078125, -0.006862640380859375, -0.0134124755859375, 0.01129150390625, -0.0311737060546875, -0.0018100738525390625, 0.006984710693359375, -0.0213775634765625, -0.0311431884765625, 0.006351470947265625, 0.0182342529296875, 0.01837158203125, -0.004016876220703125, 0.036773681640625, 0.006439208984375, 0.005603790283203125, 0.0253143310546875, -0.005405426025390625, 0.000301361083984375, -0.0180206298828125, 0.00582122802734375, -0.027374267578125, -0.0187530517578125, 0.004871368408203125, 0.025146484375, -0.0022373199462890625, -0.002490997314453125, -0.0037994384765625, 0.014495849609375, -0.005626678466796875, 0.035064697265625, -0.007354736328125, -0.038330078125, 0.00778961181640625, 0.0219268798828125, -0.043914794921875, -0.0174102783203125, -0.00928497314453125, -0.03106689453125, 0.0067291259765625, 0.019622802734375, -0.0238189697265625, -0.00896453857421875, 0.0163726806640625, 0.030029296875, -0.00920867919921875, 0.03533935546875, 0.004360198974609375, -0.033172607421875, -0.01453399658203125, -0.01357269287109375, -0.035614013671875, 0.0198822021484375, 0.00189208984375, 0.006591796875, 0.0007476806640625, 0.032257080078125, -0.0300140380859375, 0.03729248046875, -0.0789794921875, -0.00872802734375, 0.03326416015625, -0.028228759765625, 0.058563232421875, -0.0560302734375, -0.0218658447265625, -0.04547119140625, 0.08892822265625, -0.036346435546875, -0.03948974609375, -0.0015201568603515625, 0.0291748046875, -0.032989501953125, -0.037109375, 0.0221405029296875, 0.0011196136474609375, -0.07958984375, -0.0080413818359375, -0.01403045654296875, -0.0262908935546875, 0.018707275390625, -0.01398468017578125, -0.0038356781005859375, -0.0582275390625, 0.02764892578125, -0.0253143310546875, 0.0091400146484375, 0.0672607421875, -0.033966064453125, 0.055419921875, -0.032073974609375, -0.03271484375, -0.019775390625, 0.002597808837890625, -0.02789306640625, 0.0182037353515625, 0.01119232177734375, 0.01120758056640625, -0.00940704345703125, 0.0089874267578125, -0.0249481201171875, 0.07666015625, -0.0281219482421875, 0.035064697265625, -0.01230621337890625, -0.06756591796875, -0.00997161865234375, -0.04681396484375, -0.0105743408203125, 0.00223541259765625, -0.0170745849609375, 0.0181884765625, -0.022430419921875, -0.01824951171875, 0.014190673828125, -0.02813720703125, -0.0946044921875, -0.04022216796875, 0.0169219970703125, -0.0021839141845703125, 0.00933837890625, -0.01491546630859375, -0.0296630859375, -0.04547119140625, 0.0005865097045898438, -0.057708740234375, -0.01450347900390625, 0.0177154541015625, 0.037872314453125, 0.0157012939453125, 0.00901031494140625, 0.00353240966796875, 0.0008935928344726562, 0.017364501953125, 0.00705718994140625, 0.01412200927734375, -0.020294189453125, -0.0004878044128417969, -0.0022144317626953125, -0.0178070068359375, 0.02294921875, -0.0294036865234375, 0.0411376953125, -0.00554656982421875, -0.0185089111328125, 0.02398681640625, -0.014129638671875, -0.005878448486328125, -0.0164947509765625, -0.022308349609375, -0.031829833984375, 0.00920867919921875, 0.05615234375, -0.0117340087890625, 0.036163330078125, -0.04412841796875, -0.0001806020736694336, -0.024322509765625, -0.0022068023681640625, 0.039337158203125, 0.044708251953125, 0.003688812255859375, -0.0016355514526367188, 0.0204925537109375, -0.007427215576171875, 0.00926971435546875, -0.03192138671875, -0.0088958740234375, -0.012298583984375, 0.0172882080078125, -0.033203125, 0.03228759765625, -0.01436614990234375, 0.042388916015625, -0.019378662109375, -0.056396484375, -0.044525146484375, -0.01296234130859375, 0.038238525390625, 0.013916015625, -0.021453857421875, 0.03564453125, 0.00841522216796875, -0.03289794921875, -0.013092041015625, -0.03167724609375, -0.025634765625, -0.06402587890625, -0.03228759765625, -0.0248870849609375, -0.002552032470703125, 0.0210418701171875, 0.049346923828125, 0.006412506103515625, 0.039093017578125, -0.0308074951171875, 0.04388427734375, 0.031494140625, -0.003314971923828125, 0.0165252685546875, 0.024749755859375, -0.0233306884765625, 0.006710052490234375, -0.0069427490234375, 0.00160980224609375, 0.0237884521484375, 0.05352783203125, -0.00870513916015625, 0.026611328125, -0.0014362335205078125, -0.018585205078125, -0.01092529296875, -0.03485107421875, 0.0272674560546875, 0.002544403076171875, -0.041595458984375, -0.0213165283203125, 0.002727508544921875, 0.004547119140625, -0.0025959014892578125, 0.0231475830078125, 0.0168914794921875, 0.0207061767578125, 0.0017137527465820312, 0.018707275390625, -0.0006270408630371094, -0.036773681640625, -0.0226593017578125, -0.032928466796875, 0.00925445556640625, 0.022064208984375, -0.0498046875, -0.03021240234375, -0.0098724365234375, -0.034698486328125, 0.038665771484375, -0.0316162109375, 0.0316162109375, -0.052337646484375, 0.01438140869140625, -0.044403076171875, 0.003986358642578125, 0.0479736328125, 0.0282745361328125, -0.0187530517578125, 0.014434814453125, -0.01456451416015625, -0.01114654541015625, -0.0062103271484375, -0.0290069580078125, -0.0013742446899414062, -0.01342010498046875, 0.0090179443359375, 0.02899169921875, -0.00867462158203125, -0.0160675048828125, 0.02056884765625, -0.0231781005859375, -0.0279998779296875, -0.01439666748046875, -0.03851318359375, 0.07220458984375, 0.01213836669921875, 0.047943115234375, 0.0177001953125, 0.049591064453125, 0.00139617919921875, -0.01360321044921875, -0.002445220947265625, -0.0379638671875, -0.03277587890625, -0.006153106689453125, -0.036102294921875, 0.051177978515625, 0.051971435546875, -0.004413604736328125, 0.0013856887817382812, -0.0026798248291015625, 0.001033782958984375, -0.025604248046875, -0.0247955322265625, 0.00698089599609375, -0.0279083251953125, 0.018280029296875, -0.047821044921875, 0.0254364013671875, 0.0121917724609375, 0.025390625, 0.01502227783203125, -0.04632568359375, 0.037811279296875, 0.034271240234375, -0.0411376953125, 0.025238037109375, 0.053070068359375, 0.018402099609375, 0.044403076171875, -0.0251617431640625, 0.001857757568359375, 0.031982421875, 0.0272979736328125, -0.00392913818359375, -0.028076171875, 0.038818359375, -0.0002713203430175781, -0.0101318359375, 0.0230255126953125, -0.019195556640625, 0.029937744140625, 0.02984619140625, 0.0794677734375, -0.08221435546875, 0.01690673828125, 0.03948974609375, -0.00200653076171875, 0.02288818359375, -0.0219268798828125, 0.01096343994140625, -0.0027027130126953125, 0.05181884765625, 0.005916595458984375, -0.019683837890625, 0.023895263671875, -0.0031337738037109375, 0.00817108154296875, -0.0008211135864257812, -0.0203399658203125, -0.0035114288330078125, -0.004665374755859375, -0.002307891845703125, 0.01026153564453125, 0.01197052001953125, -0.0230255126953125, -0.03369140625, 0.0286102294921875, -0.02996826171875, -0.07379150390625, -0.004840850830078125, -0.0408935546875, 0.02081298828125, -0.0210723876953125, -0.00826263427734375, 0.0109710693359375, 0.0406494140625, -0.013397216796875, -0.01531982421875, 0.01061248779296875, 0.021575927734375, -0.06500244140625, -0.019561767578125, -0.0006461143493652344, -0.0032405853271484375, -0.0640869140625, 0.019866943359375, -0.0689697265625, 0.007678985595703125, 0.01316070556640625, 0.02020263671875, -0.007190704345703125, -0.045013427734375, -0.0015048980712890625, 0.053680419921875, 0.0215606689453125, -0.004390716552734375, 0.0221405029296875, 0.0400390625, -0.048675537109375, -0.047576904296875, 0.03973388671875, -0.031890869140625, -0.036102294921875, 0.03759765625, -0.059356689453125, 0.08575439453125, -0.012725830078125, 0.00024771690368652344, 0.0195159912109375, 0.0345458984375, -0.041168212890625, 0.0014142990112304688, -0.052093505859375, 0.05908203125, 0.010833740234375, 0.06488037109375, -0.0181427001953125, -0.0009889602661132812, 0.035675048828125, 0.001094818115234375, 0.042388916015625, 0.0222015380859375, -0.049285888671875, -0.00843048095703125, 0.01297760009765625, -0.00040984153747558594, -0.01727294921875, 0.055206298828125, -0.006000518798828125, -0.03741455078125, 0.057647705078125, 0.005573272705078125, 0.031097412109375, 0.0230560302734375, 0.001384735107421875, 0.0033111572265625, -0.0286865234375, -0.065673828125, -0.024932861328125, 0.041778564453125, -0.0364990234375, -0.01416778564453125, 0.0003383159637451172, 0.0233306884765625, -0.01114654541015625, 0.006229400634765625, -0.029693603515625, 0.06689453125, 0.06072998046875, -0.0220184326171875, 0.029815673828125, 0.0040130615234375, 0.01654052734375, 0.043670654296875, 0.01593017578125, 0.0665283203125, 0.0185394287109375, 0.01100921630859375, 0.017578125, 0.0083160400390625, 0.045867919921875, 0.01983642578125, 0.003910064697265625, -0.0179290771484375, 0.05670166015625, 0.044403076171875, 0.041748046875, -0.05145263671875, 0.004611968994140625, 0.0065155029296875, -0.004291534423828125, 0.0215301513671875, -0.0137786865234375, 0.050689697265625, -0.021575927734375, -0.035797119140625, -0.039703369140625, 0.003231048583984375, 0.0235137939453125, 0.032745361328125, 0.00630950927734375, 0.034332275390625, -0.0633544921875, -0.039459228515625, -0.046905517578125, 0.037109375, 0.018157958984375, 0.0848388671875, -0.0156402587890625, 0.082763671875, -0.06463623046875, -0.029083251953125, -0.0181427001953125, 0.06182861328125, -0.015411376953125, 0.0285186767578125, -0.070068359375, -0.08349609375, 0.0229644775390625, 0.059295654296875, 0.032562255859375, 0.0794677734375, 0.05499267578125, 0.0531005859375, 0.036956787109375, 0.0185546875, 0.10003662109375, 0.0022640228271484375, 0.01177215576171875, -0.053436279296875, 0.01502227783203125, -0.0208282470703125, -0.006908416748046875, 0.000885009765625, 0.00843048095703125, 0.00213623046875, -0.022430419921875, -0.005275726318359375, 0.000202178955078125, -0.0345458984375, 0.021942138671875, 0.0296173095703125, 0.039306640625, 0.017730712890625, -0.061798095703125, -0.00445556640625, -0.045867919921875, -0.0187530517578125, -0.00632476806640625, 0.0272674560546875, -0.0102081298828125, 0.031890869140625, 0.02203369140625, -0.0135955810546875, 0.0191802978515625, 0.0087738037109375, -0.00867462158203125, 0.002445220947265625, 0.026458740234375, -0.0006842613220214844, -0.035980224609375, 0.0024089813232421875, 0.01457977294921875, 0.00518798828125, 0.0025348663330078125, 0.0521240234375, 0.001079559326171875, 0.005535125732421875, 0.0222015380859375, -0.004184722900390625, 0.0264434814453125, -0.01320648193359375, 0.0085906982421875, -0.0246124267578125, -0.0019702911376953125, 0.005542755126953125, 0.016845703125, -0.0221405029296875, 0.061492919921875, -0.05401611328125, -0.0247039794921875, -0.005512237548828125, 0.0298919677734375, -0.00855255126953125, 0.069580078125, -0.0148162841796875, -0.03668212890625, -0.0601806640625, -0.0216064453125, 0.0455322265625, 0.06781005859375, 0.0186614990234375, 0.015960693359375, -0.00786590576171875, -0.00554656982421875, 0.00698089599609375, 0.00429534912109375, 0.005535125732421875, 0.041473388671875, -0.0304107666015625, 0.00765228271484375, 0.01355743408203125, -0.0100555419921875, 0.00899505615234375, 0.0220184326171875, -0.01285552978515625, 0.022857666015625, -0.036895751953125, 0.01666259765625, 0.0689697265625, 0.049560546875, 0.01374053955078125, 0.0264739990234375, 0.04388427734375, -0.03741455078125, -0.0033054351806640625, 0.009765625, -0.0302886962890625, -0.04931640625, 0.01352691650390625, 0.00507354736328125, -0.0018138885498046875, 0.006305694580078125, -0.0014696121215820312, -0.00567626953125, 0.01678466796875, 0.00106048583984375, -0.031982421875, 0.0345458984375, -0.0205841064453125, -0.015777587890625, -0.0017442703247070312, -0.054840087890625, 0.0018768310546875, 0.021820068359375, -0.01163482666015625, -0.040496826171875, -0.052825927734375, 0.01076507568359375, -0.04949951171875, -0.0011472702026367188, 0.012237548828125, -0.003753662109375, -0.00705718994140625, 0.0015649795532226562, 0.003185272216796875, 0.045135498046875, 0.00811004638671875, -0.03857421875, -0.0022106170654296875, -0.0042877197265625, 0.016387939453125, -0.019073486328125, 0.005615234375, -0.038543701171875, -0.0222625732421875, -0.032867431640625, -0.00424957275390625, 0.006916046142578125, -0.046905517578125, -0.0657958984375, 0.06536865234375, -0.016021728515625, -0.0169677734375, -0.0848388671875, -0.0199127197265625, -0.0174560546875, 0.0439453125, -0.047332763671875, 0.0179901123046875, -0.030242919921875, 0.0667724609375, -0.0004954338073730469, -0.0166168212890625, 0.005268096923828125, -0.0007696151733398438, -0.0191802978515625, 0.0236968994140625, 0.034332275390625, -0.01317596435546875, 0.035186767578125, -0.056060791015625, 0.06707763671875, 0.038604736328125, -0.0279998779296875, -0.012176513671875, 0.02398681640625, -0.0333251953125, -0.01509857177734375, -0.0240936279296875, -0.04144287109375, -0.00789642333984375, 0.08526611328125, 0.037628173828125, 0.0148468017578125, -0.03131103515625, 0.019195556640625, 0.02093505859375, -0.0252685546875, 0.01502227783203125, 0.00844573974609375, -0.031280517578125, -0.0007963180541992188, 0.00688934326171875, -0.045074462890625, 0.0224456787109375, 0.0318603515625, -0.05291748046875, 0.0330810546875, 0.030364990234375, -0.01068878173828125, -0.06439208984375, 0.01505279541015625, 0.056915283203125, -0.034698486328125, 0.01332855224609375, 0.0103759765625, -0.0178680419921875, 0.03204345703125, 0.00887298583984375, 0.0305633544921875, -0.0113983154296875, -0.034515380859375, 0.02484130859375, 0.004398345947265625, 0.03509521484375, -0.02850341796875, -0.041168212890625, -0.03680419921875, 0.0177001953125, -0.00702667236328125, 0.01061248779296875, 0.04022216796875, 0.0052337646484375, 0.02880859375, 0.03497314453125, -0.015533447265625, 0.053680419921875, -0.03143310546875, 0.04937744140625, 0.01007080078125, -0.003406524658203125, 0.04486083984375, 0.0005850791931152344, -0.00839996337890625, 0.0008816719055175781, -0.0010938644409179688, -0.06402587890625, 0.050506591796875, 0.0144195556640625, 0.0125274658203125, 0.035400390625 ]
cabd7fa5d459d769d79e6bb73c3884dfbfbada7c
Wordpress Stackexchange Q: I can't preview post's change once they are published The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change something and preview it, the url looks like this : http://exemple.domain.com/blog/my-article-title/?preview=true&preview_id=12&preview_nonce=514e88946a&post_format=standard The problem is it does reflect any changes ... I use WordPress 3.9.2 running Twenty Fourteen theme without any plugins EDIT I've turn the permalink to default and it resolve the problem. But I need it to work using the pretty url ... Thanks for your help A: This is probably not the best way to do it since it wont persist after wordpress updates (but hopefully the update will correct it. In wp-admin/includes/post.php ,edit the post_preview() function just before returning the apply_filters( 'preview_post_link', $url ); put the following code: //ORIGINAL //$url = add_query_arg( $query_args, get_permalink( $post->ID, true ) ); //CHANGES to make the preview work even with postname in the URL $query_args['p'] = $post->ID; $url = add_query_arg( $query_args, get_permalink( $post->ID, true ) ); $url = str_replace('%postname%/', '', $url); //END CHANGES But still if there is any way to make it better ?
Q: I can't preview post's change once they are published The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change something and preview it, the url looks like this : http://exemple.domain.com/blog/my-article-title/?preview=true&preview_id=12&preview_nonce=514e88946a&post_format=standard The problem is it does reflect any changes ... I use WordPress 3.9.2 running Twenty Fourteen theme without any plugins EDIT I've turn the permalink to default and it resolve the problem. But I need it to work using the pretty url ... Thanks for your help A: This is probably not the best way to do it since it wont persist after wordpress updates (but hopefully the update will correct it. In wp-admin/includes/post.php ,edit the post_preview() function just before returning the apply_filters( 'preview_post_link', $url ); put the following code: //ORIGINAL //$url = add_query_arg( $query_args, get_permalink( $post->ID, true ) ); //CHANGES to make the preview work even with postname in the URL $query_args['p'] = $post->ID; $url = add_query_arg( $query_args, get_permalink( $post->ID, true ) ); $url = str_replace('%postname%/', '', $url); //END CHANGES But still if there is any way to make it better ? A: You need to define the %postname% permalink and be sure that the .htaccess is modified. If your .htaccess has blocked access you can do it manually. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress You can see more info at the Codex, just look for "Using "Pretty" permalinks".
wordpress
{ "language": "en", "length": 261, "provenance": "stackexchange_00019.jsonl.gz:448094", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158759" }
[ 0.05657958984375, -0.0097808837890625, 0.047882080078125, -0.0250091552734375, -0.01580810546875, -0.01593017578125, -0.002262115478515625, -0.06793212890625, -0.0211029052734375, 0.0262603759765625, -0.0418701171875, -0.00988006591796875, -0.019927978515625, -0.01082611083984375, -0.01174163818359375, -0.0460205078125, 0.02801513671875, -0.0269775390625, 0.01326751708984375, -0.01308441162109375, -0.00127410888671875, -0.0008301734924316406, 0.03948974609375, 0.039764404296875, 0.0290985107421875, 0.0156707763671875, 0.0601806640625, -0.0379638671875, 0.0283660888671875, -0.01557159423828125, 0.020660400390625, -0.037567138671875, 0.034820556640625, 0.003314971923828125, -0.0172882080078125, 0.005016326904296875, 0.05865478515625, -0.0224456787109375, 0.005275726318359375, 0.030609130859375, 0.0089263916015625, 0.01617431640625, -0.050445556640625, 0.0325927734375, -0.045989990234375, -0.03582763671875, -0.009735107421875, -0.03253173828125, -0.01039886474609375, 0.007488250732421875, 0.00765228271484375, 0.0222320556640625, 0.0025806427001953125, 0.052154541015625, -0.006710052490234375, -0.0038471221923828125, -0.015472412109375, -0.0024967193603515625, 0.0260162353515625, -0.00490570068359375, -0.00627899169921875, 0.004550933837890625, 0.00844573974609375, 0.0095977783203125, -0.0350341796875, 0.00984954833984375, -0.007694244384765625, 0.0006613731384277344, -0.00705718994140625, -0.03271484375, 0.01366424560546875, -0.0149993896484375, -0.00647735595703125, -0.03790283203125, -0.0110931396484375, 0.016448974609375, -0.020538330078125, -0.0394287109375, -0.0018215179443359375, 0.0146484375, 0.008514404296875, -0.003910064697265625, -0.050994873046875, -0.00832366943359375, 0.0280303955078125, 0.0181732177734375, -0.0016126632690429688, -0.027008056640625, -0.01279449462890625, -0.0231475830078125, -0.0097198486328125, 0.0002422332763671875, -0.031982421875, 0.00321197509765625, -0.005771636962890625, -0.044525146484375, 0.01259613037109375, 0.053131103515625, 0.02191162109375, 0.012908935546875, -0.008453369140625, -0.038848876953125, 0.00995635986328125, -0.042877197265625, -0.011688232421875, 0.05633544921875, 0.0479736328125, 0.0831298828125, 0.043121337890625, 0.00870513916015625, 0.0126800537109375, 0.0390625, -0.041412353515625, -0.010833740234375, -0.0271759033203125, 0.02838134765625, -0.06707763671875, -0.0018701553344726562, -0.0207977294921875, 0.032501220703125, 0.0207366943359375, 0.048858642578125, -0.0237274169921875, -0.0257415771484375, 0.023040771484375, 0.0185089111328125, -0.0038127899169921875, -0.039703369140625, -0.00865936279296875, 0.034881591796875, -0.03216552734375, -0.00185394287109375, 0.07177734375, 0.044464111328125, 0.02276611328125, -0.03350830078125, 0.01137542724609375, -0.0160064697265625, -0.00553131103515625, -0.01013946533203125, -0.0032958984375, 0.0011806488037109375, 0.031585693359375, -0.02294921875, -0.017364501953125, 0.04107666015625, 0.01032257080078125, -0.0101318359375, 0.017791748046875, -0.013458251953125, -0.05908203125, -0.03057861328125, 0.0311279296875, 0.01129913330078125, -0.0017490386962890625, -0.048431396484375, 0.05133056640625, -0.05657958984375, 0.00949859619140625, -0.07159423828125, 0.059326171875, 0.00527191162109375, -0.016357421875, -0.0301513671875, -0.054351806640625, -0.01055908203125, -0.06256103515625, -0.0083465576171875, 0.021942138671875, 0.0513916015625, -0.01418304443359375, -0.01558685302734375, 0.00975799560546875, 0.03057861328125, 0.0005726814270019531, 0.009735107421875, 0.01055908203125, 0.00586700439453125, 0.0021114349365234375, 0.055633544921875, -0.003223419189453125, -0.0226898193359375, 0.042816162109375, -0.0262451171875, -0.024688720703125, 0.01485443115234375, 0.01076507568359375, 0.017974853515625, -0.00807952880859375, 0.006244659423828125, 0.01430511474609375, 0.03839111328125, -0.0526123046875, 0.051300048828125, 0.01971435546875, -0.030975341796875, 0.01326751708984375, -0.006359100341796875, 0.005817413330078125, -0.0289764404296875, 0.01114654541015625, 0.00878143310546875, 0.0217437744140625, -0.002147674560546875, -0.07379150390625, 0.05615234375, -0.042022705078125, 0.05120849609375, 0.0126800537109375, 0.040557861328125, 0.0215301513671875, 0.02313232421875, -0.047607421875, 0.019989013671875, -0.017425537109375, 0.025848388671875, 0.006046295166015625, 0.00937652587890625, -0.0194244384765625, -0.003936767578125, -0.034088134765625, -0.0248260498046875, -0.051422119140625, 0.006229400634765625, 0.0555419921875, -0.04052734375, 0.00559234619140625, -0.0377197265625, 0.0231781005859375, -0.029052734375, -0.0223846435546875, 0.058929443359375, 0.03387451171875, 0.042877197265625, -0.007205963134765625, 0.0080108642578125, 0.004756927490234375, -0.050933837890625, 0.00015282630920410156, 0.041351318359375, 0.008148193359375, -0.02154541015625, -0.019500732421875, 0.00775146484375, 0.0276641845703125, 0.0236053466796875, 0.026885986328125, -0.01500701904296875, 0.0263671875, 0.05242919921875, -0.019500732421875, 0.0038299560546875, 0.0195465087890625, -0.038177490234375, 0.031463623046875, 0.03216552734375, -0.0013818740844726562, 0.0263824462890625, -0.0352783203125, 0.02667236328125, -0.01488494873046875, 0.0167388916015625, 0.00939178466796875, -0.01265716552734375, -0.008758544921875, 0.0276336669921875, 0.029144287109375, 0.02642822265625, -0.004924774169921875, -0.002727508544921875, -0.0100860595703125, 0.0026721954345703125, 0.00970458984375, 0.0225982666015625, -0.004451751708984375, -0.01419830322265625, -0.00506591796875, -0.01080322265625, 0.0161590576171875, -0.005218505859375, -0.01288604736328125, 0.05615234375, 0.0075225830078125, -0.021270751953125, -0.0303802490234375, -0.0244598388671875, -0.0089569091796875, -0.033538818359375, 0.031036376953125, 0.0164337158203125, 0.05267333984375, 0.00472259521484375, -0.024566650390625, 0.03912353515625, 0.0088958740234375, -0.030242919921875, 0.005218505859375, -0.08087158203125, 0.05523681640625, -0.032867431640625, 0.037872314453125, 0.084228515625, 0.0220184326171875, 0.0085296630859375, 0.0008993148803710938, -0.00653839111328125, -0.01023101806640625, -0.003856658935546875, -0.022308349609375, 0.0007681846618652344, -0.099365234375, -0.019561767578125, 0.0158843994140625, 0.00970458984375, -0.0014696121215820312, -0.0169677734375, -0.0109710693359375, 0.007411956787109375, -0.052947998046875, -0.019134521484375, -0.0487060546875, -0.055511474609375, -0.02789306640625, -0.0095977783203125, -0.021759033203125, 0.03466796875, -0.022613525390625, 0.004077911376953125, 0.0018453598022460938, -0.06060791015625, -0.091796875, -0.0738525390625, -0.08831787109375, 0.01245880126953125, 0.004302978515625, 0.013916015625, 0.01485443115234375, 0.0155792236328125, 0.00966644287109375, -0.035980224609375, 0.0300750732421875, 0.03765869140625, -0.0166015625, -0.01428985595703125, 0.02301025390625, -0.005550384521484375, -0.0190887451171875, -0.0013475418090820312, 0.07452392578125, 0.047454833984375, -0.05596923828125, 0.005279541015625, -0.029876708984375, 0.014739990234375, 0.030364990234375, 0.025909423828125, 0.022796630859375, 0.045989990234375, 0.0533447265625, -0.0145111083984375, -0.0172882080078125, -0.033447265625, -0.06658935546875, 0.0194091796875, 0.057373046875, -0.00493621826171875, -0.0064697265625, -0.0223388671875, 0.0125885009765625, 0.005153656005859375, 0.037933349609375, -0.032135009765625, 0.028350830078125, -0.013824462890625, -0.0019092559814453125, -0.04010009765625, 0.009368896484375, -0.002506256103515625, 0.0169830322265625, -0.00279998779296875, 0.042694091796875, 0.02081298828125, -0.0021820068359375, -0.021392822265625, -0.03778076171875, 0.0140380859375, -0.092041015625, -0.0030117034912109375, -0.06689453125, -0.004810333251953125, -0.040008544921875, 0.05560302734375, -0.031707763671875, -0.01558685302734375, 0.0101776123046875, 0.025054931640625, -0.039642333984375, -0.027984619140625, -0.035430908203125, -0.0030193328857421875, -0.0193023681640625, -0.0193634033203125, -0.0262298583984375, -0.036468505859375, -0.0215606689453125, -0.0099029541015625, -0.0246734619140625, -0.01242828369140625, 0.045013427734375, 0.0205841064453125, -0.00974273681640625, 0.007488250732421875, 0.013824462890625, -0.0267333984375, -0.031890869140625, 0.01309967041015625, -0.07769775390625, -0.01702880859375, 0.0251922607421875, 0.0309295654296875, -0.0136871337890625, -0.0295867919921875, -0.0263519287109375, 0.048736572265625, 0.0227508544921875, 0.02398681640625, -0.01435089111328125, -0.01271820068359375, -0.028839111328125, -0.0179290771484375, 0.0010213851928710938, -0.033203125, 0.00685882568359375, 0.0111846923828125, -0.0560302734375, -0.005863189697265625, -0.01543426513671875, -0.006603240966796875, 0.03485107421875, -0.0458984375, -0.06976318359375, -0.0024242401123046875, 0.012451171875, 0.01029205322265625, -0.025634765625, 0.005710601806640625, 0.0080108642578125, -0.0594482421875, 0.044097900390625, -0.04583740234375, 0.0231475830078125, -0.0237274169921875, 0.09625244140625, 0.01052093505859375, 0.004619598388671875, 0.064208984375, 0.0203094482421875, 0.0357666015625, 0.007049560546875, 0.0106353759765625, 0.0015954971313476562, -0.02569580078125, 0.024749755859375, 0.003414154052734375, -0.006565093994140625, -0.0152435302734375, 0.031219482421875, 0.0096282958984375, -0.021759033203125, 0.02374267578125, 0.0009355545043945312, 0.017913818359375, 0.01561737060546875, -0.01371002197265625, -0.038482666015625, -0.00936126708984375, 0.073974609375, -0.0251922607421875, 0.06072998046875, -0.040557861328125, -0.0157470703125, 0.010650634765625, 0.01708984375, 0.0193023681640625, 0.03289794921875, -0.01526641845703125, 0.0256195068359375, 0.0238800048828125, -0.00322723388671875, 0.024383544921875, 0.01363372802734375, -0.00046706199645996094, 0.0095367431640625, 0.040191650390625, -0.0225677490234375, 0.0029354095458984375, -0.0193939208984375, 0.0494384765625, 0.032196044921875, -0.0218353271484375, 0.0179901123046875, -0.00482177734375, 0.01800537109375, -0.033294677734375, -0.00409698486328125, 0.020843505859375, 0.02130126953125, 0.0288543701171875, 0.003936767578125, -0.01499176025390625, 0.0103607177734375, -0.0203704833984375, 0.0273895263671875, -0.00042748451232910156, 0.0026721954345703125, 0.0494384765625, 0.0253448486328125, 0.015228271484375, 0.0279693603515625, -0.030181884765625, 0.0078582763671875, 0.057708740234375, -0.01812744140625, 0.0193023681640625, 0.0408935546875, -0.008209228515625, -0.036834716796875, 0.05572509765625, -0.01049041748046875, -0.0144195556640625, 0.0048980712890625, 0.01357269287109375, 0.0145416259765625, 0.01788330078125, 0.0199432373046875, 0.00756072998046875, -0.007595062255859375, 0.039886474609375, 0.0225982666015625, -0.032012939453125, -0.019256591796875, 0.01549530029296875, 0.0035724639892578125, -0.0182647705078125, -0.0191650390625, -0.0216217041015625, -0.0292816162109375, -0.00574493408203125, -0.044586181640625, -0.0251007080078125, 0.0161590576171875, 0.007671356201171875, 0.020294189453125, -0.027069091796875, -0.0230712890625, 0.06854248046875, 0.035614013671875, -0.0328369140625, -0.02935791015625, 0.059539794921875, -0.0059967041015625, 0.036376953125, -0.0377197265625, -0.01372528076171875, -0.0161895751953125, 0.006519317626953125, 0.046112060546875, 0.01126861572265625, -0.041046142578125, -0.0308380126953125, -0.021820068359375, -0.007068634033203125, 0.0233154296875, -0.004669189453125, -0.0114898681640625, -0.005405426025390625, 0.01959228515625, 0.0282745361328125, -0.0211181640625, -0.031890869140625, -0.00823211669921875, 0.01788330078125, 0.0175933837890625, 0.07666015625, 0.0093231201171875, 0.058990478515625, -0.040008544921875, 0.0335693359375, 0.0011873245239257812, 0.0013875961303710938, -0.061309814453125, -0.005718231201171875, -0.01190185546875, -0.03265380859375, 0.006961822509765625, 0.01253509521484375, -0.0159759521484375, -0.00015163421630859375, 0.030059814453125, 0.005313873291015625, 0.000232696533203125, -0.02008056640625, 0.00884246826171875, -0.027557373046875, 0.023345947265625, -0.05126953125, -0.03094482421875, 0.0269317626953125, -0.024566650390625, -0.01541900634765625, 0.01218414306640625, 0.04150390625, -0.02728271484375, -0.01568603515625, -0.041900634765625, 0.004116058349609375, -0.0305938720703125, 0.01068115234375, 0.05499267578125, 0.054168701171875, 0.0693359375, 0.0152435302734375, 0.0526123046875, 0.029632568359375, -0.022003173828125, 0.036773681640625, 0.0028553009033203125, 0.038909912109375, -0.01480865478515625, 0.0185089111328125, 0.031585693359375, -0.01483154296875, -0.01206207275390625, 0.050628662109375, 0.01490020751953125, -0.07586669921875, -0.0020122528076171875, -0.0180511474609375, 0.0082550048828125, 0.052459716796875, 0.0212860107421875, -0.00995635986328125, 0.0033779144287109375, -0.01849365234375, -0.03155517578125, -0.025054931640625, -0.00640869140625, 0.0205078125, 0.01224517822265625, -0.015289306640625, 0.05157470703125, 0.0058135986328125, -0.046875, 0.0006322860717773438, 0.024932861328125, -0.01885986328125, -0.03204345703125, -0.00713348388671875, 0.0276947021484375, -0.00991058349609375, -0.043304443359375, 0.060333251953125, -0.0178680419921875, 0.014923095703125, 0.020233154296875, 0.0116424560546875, 0.0180206298828125, 0.044921875, -0.006244659423828125, 0.0236358642578125, 0.008544921875, 0.02374267578125, 0.02178955078125, -0.006134033203125, -0.01044464111328125, 0.0419921875, -0.021728515625, 0.020782470703125, -0.01123046875, 0.0036869049072265625, 0.0016193389892578125, 0.034698486328125, 0.04290771484375, -0.046722412109375, -0.01233673095703125, 0.031005859375, -0.0036983489990234375, -0.0037994384765625, 0.0014591217041015625, -0.04168701171875, -0.0269012451171875, -0.016326904296875, -0.026763916015625, -0.05548095703125, 0.0012311935424804688, -0.0438232421875, -0.1065673828125, 0.130615234375, 0.030120849609375, 0.08294677734375, 0.03643798828125, 0.0262298583984375, -0.06683349609375, -0.01885986328125, -0.04736328125, 0.041290283203125, -0.0006504058837890625, 0.031585693359375, -0.06793212890625, -0.012725830078125, -0.0162506103515625, 0.033447265625, 0.036895751953125, 0.01183319091796875, -0.033111572265625, -0.01141357421875, 0.024658203125, 0.0186309814453125, -0.0032787322998046875, 0.0271759033203125, 0.0014142990112304688, 0.052490234375, 0.054229736328125, -0.0672607421875, 0.0362548828125, -0.0408935546875, 0.0023021697998046875, 0.00836181640625, 0.01006317138671875, 0.021240234375, -0.0014352798461914062, 0.0040740966796875, -0.055389404296875, 0.00937652587890625, 0.0484619140625, -0.0278778076171875, 0.02630615234375, 0.0173797607421875, 0.0491943359375, -0.041534423828125, -0.0261383056640625, -0.021697998046875, 0.043426513671875, 0.0155792236328125, -0.025238037109375, -0.01099395751953125, 0.0046844482421875, 0.018890380859375, -0.035491943359375, -0.031280517578125, 0.0291290283203125, -0.0055694580078125, 0.0673828125, 0.0650634765625, 0.01629638671875, 0.007022857666015625, 0.029754638671875, 0.058074951171875, 0.080322265625, -0.062042236328125, -0.007724761962890625, 0.01116943359375, 0.005283355712890625, 0.0179443359375, -0.030548095703125, 0.021759033203125, -0.0038471221923828125, -0.00894927978515625, -0.0090789794921875, -0.01398468017578125, 0.022613525390625, 0.01971435546875, 0.0053863525390625, -0.0347900390625, -0.00754547119140625, 0.01476287841796875, -0.027191162109375, 0.00426483154296875, 0.0102386474609375, 0.0526123046875, 0.0179443359375, 0.039215087890625, -0.055328369140625, -0.0224151611328125, -0.0189208984375, 0.016693115234375, -0.003551483154296875, 0.00463104248046875, -0.0265655517578125, -0.040191650390625, 0.037506103515625, 0.039947509765625, -0.013092041015625, 0.006450653076171875, 0.030059814453125, -0.021392822265625, -0.06903076171875, -0.0110931396484375, 0.01262664794921875, -0.051971435546875, 0.0279998779296875, -0.05029296875, 0.02001953125, -0.01287078857421875, -0.0011348724365234375, -0.00989532470703125, 0.00847625732421875, 0.0079345703125, -0.0458984375, 0.012176513671875, -0.01094818115234375, -0.0426025390625, 0.0269317626953125, -0.01203155517578125, 0.032745361328125, -0.022705078125, -0.0413818359375, -0.00975799560546875, -0.0272216796875, -0.048797607421875, 0.0297393798828125, 0.0435791015625, -0.00030517578125, -0.00316619873046875, -0.030059814453125, 0.020477294921875, 0.0119781494140625, -0.052886962890625, 0.01059722900390625, 0.044189453125, 0.005779266357421875, 0.01213836669921875, -0.037109375, -0.0433349609375, 0.01401519775390625, 0.04901123046875, -0.0301971435546875, 0.1083984375, -0.055694580078125, -0.0137786865234375, 0.00782012939453125, 0.042510986328125, -0.04034423828125, -0.0171661376953125, 0.048370361328125, -0.03973388671875, -0.007144927978515625, -0.004253387451171875, 0.0293731689453125, 0.033355712890625, 0.012908935546875, -0.0321044921875, 0.030426025390625, -0.053558349609375, 0.00640869140625, -0.0299835205078125, -0.0005135536193847656, -0.026123046875, -0.034454345703125, -0.020233154296875, 0.0037021636962890625, 0.0221710205078125, 0.0115966796875, -0.035980224609375, 0.0408935546875, 0.05126953125, -0.005855560302734375, 0.02484130859375, -0.0168609619140625, 0.04400634765625, 0.035369873046875, 0.0278167724609375, 0.0257415771484375, -0.0116424560546875, -0.0282440185546875, 0.002399444580078125, 0.0133056640625, -0.03265380859375, -0.01183319091796875, -0.023590087890625, -0.00525665283203125, -0.032012939453125, 0.00048828125, -0.04571533203125, -0.004482269287109375, -0.0021381378173828125, 0.01177978515625, 0.0010433197021484375, 0.0145721435546875, -0.029327392578125, -0.02899169921875, -0.006969451904296875, -0.001953125, -0.029052734375, -0.0638427734375, -0.079833984375, 0.0035037994384765625, 0.00098419189453125, 0.00601959228515625, -0.043731689453125, 0.052581787109375, -0.015625, 0.003307342529296875, -0.034088134765625, -0.02783203125, 0.003948211669921875, 0.033477783203125, -0.018707275390625, -0.0060882568359375, -0.04827880859375, 0.0013332366943359375, -0.0479736328125, 0.011993408203125, 0.049407958984375, -0.0218963623046875, -0.07080078125, -0.03680419921875, -0.00047969818115234375, 0.00970458984375, -0.0184478759765625, -0.00861358642578125, 0.0018863677978515625, 0.0106658935546875, -0.0149688720703125, -0.06402587890625, -0.01195526123046875, -0.01343536376953125, 0.006092071533203125, -0.0101318359375, 0.012847900390625, 0.034515380859375, -0.0199432373046875, -0.04150390625, 0.00933837890625, -0.006305694580078125, -0.0277557373046875, -0.0308380126953125, -0.021728515625, -0.01384735107421875, 0.07525634765625, 0.009918212890625, -0.0058135986328125, -0.037689208984375, 0.006618499755859375, -0.008697509765625, 0.06878662109375, -0.0226593017578125, 0.01605224609375, -0.000023245811462402344, 0.023834228515625, 0.00687408447265625, -0.034271240234375, -0.0190582275390625, -0.006092071533203125, 0.022003173828125, 0.037261962890625, -0.0190582275390625, -0.0286407470703125, 0.0283355712890625, 0.004123687744140625, -0.006626129150390625, -0.0174102783203125, -0.048797607421875, 0.0095672607421875, 0.114501953125, 0.0543212890625, 0.033966064453125, -0.041168212890625, 0.0163116455078125, 0.0017671585083007812, -0.05975341796875, -0.009979248046875, 0.046539306640625, -0.0716552734375, -0.01523590087890625, 0.017120361328125, -0.0027942657470703125, -0.0169219970703125, -0.0286712646484375, -0.0269927978515625, -0.01025390625, -0.005435943603515625, 0.0084228515625, -0.00884246826171875, -0.040008544921875, 0.091064453125, -0.055389404296875, -0.01126861572265625, 0.00981903076171875, 0.036956787109375, 0.020263671875, -0.0278167724609375, -0.003612518310546875, 0.02825927734375, 0.005283355712890625, -0.005939483642578125, 0.041839599609375, -0.009857177734375, 0.0205230712890625, 0.0013837814331054688, -0.0167236328125, -0.0040435791015625, -0.010467529296875, -0.023345947265625, 0.0184326171875, -0.00359344482421875, -0.0152740478515625, 0.06671142578125, -0.01406097412109375, -0.0006651878356933594, 0.00415802001953125, 0.003936767578125, -0.005916595458984375, 0.00864410400390625, 0.050537109375, -0.061004638671875, -0.0006384849548339844, -0.025604248046875, -0.006221771240234375, -0.039794921875, 0.01354217529296875, -0.022613525390625, -0.0241241455078125, 0.0267181396484375 ]
638e51ef6e1d26bb29c85f2f73ebf8299f482169
Wordpress Stackexchange Q: Rewrite Slug for CPT Archive Pages to Plural Name of Slug I have a custom post type with the rewritten slug of plugin creating the url structure of http://site.com/plugin/plugin-slug/. Which makes the CPT Archive as http://site.com/plugin/ I'd like to rewrite it, without using a page and a custom page template, to use http://site.com/plugins/ (Which is the labels=>Name in the CPT). while keeping the slug for the single posts as /plugin/ This would also need to support things like `/plugins/page/21 - which it currently does. A: When you register the post type, set the argument 'has_archive' to a string, in your case plugins. The doc block for register_post_type() says: @type bool|string $has_archive Whether there should be post type archives, or if a string, the archive slug to use. Will generate the proper rewrite rules if $rewrite is enabled. Default false. Minified example: register_post_type( 'plugin', [ 'has_archive' => 'plugins' ] );
Q: Rewrite Slug for CPT Archive Pages to Plural Name of Slug I have a custom post type with the rewritten slug of plugin creating the url structure of http://site.com/plugin/plugin-slug/. Which makes the CPT Archive as http://site.com/plugin/ I'd like to rewrite it, without using a page and a custom page template, to use http://site.com/plugins/ (Which is the labels=>Name in the CPT). while keeping the slug for the single posts as /plugin/ This would also need to support things like `/plugins/page/21 - which it currently does. A: When you register the post type, set the argument 'has_archive' to a string, in your case plugins. The doc block for register_post_type() says: @type bool|string $has_archive Whether there should be post type archives, or if a string, the archive slug to use. Will generate the proper rewrite rules if $rewrite is enabled. Default false. Minified example: register_post_type( 'plugin', [ 'has_archive' => 'plugins' ] );
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:448119", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158842" }
[ 0.056365966796875, 0.01202392578125, 0.005100250244140625, -0.03228759765625, 0.004070281982421875, -0.01000213623046875, 0.029998779296875, -0.0271148681640625, -0.022369384765625, 0.0168304443359375, 0.032135009765625, 0.0135498046875, -0.012359619140625, -0.040191650390625, 0.0306854248046875, 0.018829345703125, 0.022552490234375, -0.00815582275390625, 0.008544921875, -0.03448486328125, 0.01419830322265625, -0.01568603515625, 0.005245208740234375, 0.059600830078125, 0.0251312255859375, -0.01387786865234375, 0.06976318359375, -0.040130615234375, 0.0228424072265625, -0.03338623046875, 0.0279693603515625, -0.0008845329284667969, 0.046356201171875, -0.007617950439453125, -0.006061553955078125, 0.0557861328125, 0.00887298583984375, -0.005023956298828125, -0.004779815673828125, 0.0166168212890625, 0.035858154296875, -0.022613525390625, 0.004833221435546875, -0.01499176025390625, 0.007350921630859375, -0.023712158203125, 0.031585693359375, -0.031494140625, 0.02618408203125, -0.006839752197265625, -0.0081939697265625, 0.0167083740234375, 0.00494384765625, -0.0135498046875, -0.0014257431030273438, 0.023101806640625, -0.0008635520935058594, 0.000018715858459472656, 0.007785797119140625, -0.006130218505859375, -0.0056915283203125, 0.0248870849609375, 0.025970458984375, 0.0093994140625, 0.01114654541015625, 0.007656097412109375, -0.0009336471557617188, 0.019927978515625, -0.04815673828125, 0.0087890625, 0.0203399658203125, -0.037139892578125, 0.019439697265625, 0.0059814453125, -0.0295562744140625, -0.036712646484375, 0.0277099609375, -0.0181884765625, 0.01480865478515625, -0.018890380859375, 0.01947021484375, -0.031829833984375, 0.0196380615234375, -0.0007810592651367188, 0.005901336669921875, 0.02105712890625, -0.01056671142578125, -0.024261474609375, -0.0301055908203125, -0.00807952880859375, -0.030914306640625, -0.01525115966796875, 0.00800323486328125, -0.004177093505859375, -0.0141448974609375, -0.0224456787109375, 0.05816650390625, 0.026824951171875, 0.017425537109375, 0.0021038055419921875, 0.043792724609375, -0.09423828125, 0.054443359375, -0.033203125, 0.0173492431640625, 0.041351318359375, 0.017120361328125, 0.075439453125, 0.051727294921875, -0.0078582763671875, 0.01169586181640625, 0.054656982421875, -0.0251007080078125, -0.0051116943359375, -0.0101318359375, 0.034881591796875, -0.029815673828125, -0.0204620361328125, -0.0285491943359375, 0.01218414306640625, -0.0185394287109375, 0.010467529296875, 0.05029296875, -0.003429412841796875, -0.03485107421875, -0.00977325439453125, 0.00954437255859375, -0.07769775390625, 0.00933837890625, 0.018707275390625, -0.01097869873046875, 0.020660400390625, 0.02630615234375, 0.007282257080078125, -0.0120391845703125, -0.006938934326171875, 0.0284881591796875, 0.007781982421875, -0.01390838623046875, 0.0120849609375, 0.0006871223449707031, -0.004795074462890625, 0.007640838623046875, -0.0224609375, 0.0254364013671875, 0.0272369384765625, 0.00705718994140625, 0.00820159912109375, -0.005939483642578125, -0.015777587890625, 0.0256195068359375, -0.059783935546875, 0.056915283203125, -0.0120086669921875, -0.047149658203125, -0.0592041015625, -0.0186920166015625, -0.038543701171875, 0.0203857421875, -0.056121826171875, -0.0025234222412109375, -0.011627197265625, -0.0013856887817382812, -0.037750244140625, -0.04742431640625, 0.0263214111328125, -0.023956298828125, -0.00921630859375, 0.01383209228515625, 0.005401611328125, 0.0285491943359375, -0.0198974609375, -0.0084228515625, 0.016326904296875, -0.0007638931274414062, 0.0188446044921875, 0.0034542083740234375, 0.0086517333984375, 0.0084686279296875, 0.0540771484375, 0.01387786865234375, -0.01922607421875, 0.0243072509765625, -0.004497528076171875, -0.0640869140625, 0.040740966796875, 0.006961822509765625, 0.054718017578125, 0.001163482666015625, 0.003421783447265625, 0.0254364013671875, 0.029693603515625, -0.0233612060546875, 0.0293121337890625, -0.025054931640625, -0.03314208984375, 0.01169586181640625, 0.0103912353515625, -0.0264434814453125, 0.0169677734375, -0.03607177734375, 0.03466796875, -0.03778076171875, 0.04461669921875, -0.04193115234375, 0.031707763671875, -0.0207061767578125, 0.0311737060546875, 0.00106048583984375, 0.031097412109375, 0.0033245086669921875, 0.018402099609375, -0.03790283203125, 0.0024261474609375, 0.0054168701171875, 0.044219970703125, 0.0170135498046875, -0.0204010009765625, -0.0155181884765625, -0.01114654541015625, -0.00637054443359375, 0.01519012451171875, -0.0293426513671875, 0.03216552734375, 0.054779052734375, -0.0001773834228515625, -0.024139404296875, -0.02069091796875, -0.016510009765625, 0.0198974609375, -0.10723876953125, 0.04669189453125, 0.03936767578125, 0.04644775390625, -0.0195465087890625, -0.0004596710205078125, -0.01042938232421875, -0.04730224609375, 0.01177215576171875, 0.04364013671875, 0.0172882080078125, 0.01641845703125, -0.027862548828125, -0.013916015625, 0.01288604736328125, -0.041656494140625, 0.00551605224609375, -0.0012063980102539062, 0.036376953125, 0.063720703125, 0.00396728515625, 0.0056304931640625, 0.01617431640625, 0.027496337890625, 0.0229339599609375, 0.022216796875, -0.007701873779296875, -0.04058837890625, 0.050537109375, -0.015045166015625, 0.010528564453125, 0.01235198974609375, -0.0150909423828125, 0.004730224609375, 0.0035190582275390625, 0.0284271240234375, 0.023773193359375, 0.0284271240234375, -0.016143798828125, 0.0093231201171875, 0.005687713623046875, 0.01197052001953125, -0.0034942626953125, 0.0361328125, 0.07342529296875, 0.0006227493286132812, -0.0499267578125, -0.0107879638671875, 0.032928466796875, 0.0200958251953125, -0.0238037109375, 0.00508880615234375, -0.0152587890625, -0.005527496337890625, -0.031005859375, -0.08392333984375, 0.0311279296875, 0.03961181640625, -0.0232086181640625, -0.0259246826171875, 0.00798797607421875, 0.0238037109375, -0.01302337646484375, 0.01293182373046875, 0.01267242431640625, -0.0257110595703125, 0.0357666015625, -0.040740966796875, 0.042694091796875, -0.03973388671875, 0.0650634765625, 0.054412841796875, -0.0210113525390625, 0.0064849853515625, 0.013671875, -0.045196533203125, -0.01265716552734375, 0.038299560546875, 0.0014791488647460938, -0.0408935546875, -0.033599853515625, 0.0192108154296875, 0.02294921875, 0.0447998046875, 0.0037059783935546875, -0.037567138671875, -0.01751708984375, 0.0467529296875, -0.053741455078125, -0.046234130859375, -0.00617218017578125, -0.08380126953125, 0.024688720703125, 0.0240936279296875, -0.03179931640625, -0.019012451171875, 0.07080078125, 0.0295867919921875, 0.006420135498046875, -0.0014295578002929688, -0.050872802734375, -0.05047607421875, -0.070068359375, -0.031829833984375, -0.006595611572265625, 0.0088348388671875, 0.020782470703125, -0.0057525634765625, 0.0158233642578125, -0.03619384765625, 0.051300048828125, 0.0362548828125, -0.015167236328125, 0.020355224609375, 0.0196533203125, -0.036041259765625, -0.005466461181640625, 0.0027294158935546875, 0.07464599609375, 0.0258941650390625, -0.03228759765625, 0.003360748291015625, 0.01678466796875, 0.0090484619140625, 0.0252838134765625, 0.0136566162109375, -0.01313018798828125, 0.01580810546875, 0.022003173828125, -0.038055419921875, -0.044921875, -0.01025390625, -0.03314208984375, 0.0190277099609375, 0.01149749755859375, 0.005153656005859375, -0.037689208984375, 0.047149658203125, -0.00238037109375, 0.0037479400634765625, 0.061004638671875, -0.041595458984375, 0.0164031982421875, -0.0084228515625, -0.013763427734375, -0.048736572265625, 0.060302734375, -0.0016269683837890625, -0.0081787109375, 0.027435302734375, -0.005565643310546875, 0.00392913818359375, -0.00803375244140625, -0.01187896728515625, -0.08551025390625, 0.03448486328125, -0.067626953125, -0.01177978515625, -0.042755126953125, 0.00524139404296875, -0.003337860107421875, 0.07293701171875, -0.052459716796875, -0.0230712890625, -0.00814056396484375, 0.004863739013671875, 0.037841796875, -0.0213775634765625, -0.0096435546875, -0.042938232421875, -0.06817626953125, -0.00562286376953125, 0.00284576416015625, -0.058837890625, 0.04119873046875, -0.042388916015625, -0.00804901123046875, -0.04888916015625, 0.0347900390625, -0.00409698486328125, 0.005779266357421875, -0.0014734268188476562, 0.0091094970703125, -0.032958984375, -0.03643798828125, 0.0052337646484375, -0.08441162109375, -0.0214691162109375, 0.03692626953125, 0.05499267578125, -0.01299285888671875, -0.037109375, -0.0207977294921875, 0.053314208984375, 0.007762908935546875, -0.01220703125, 0.004810333251953125, -0.0239715576171875, 0.0006365776062011719, 0.0240325927734375, -0.00490570068359375, 0.00905609130859375, 0.0205841064453125, -0.004337310791015625, -0.0716552734375, -0.0288238525390625, -0.036956787109375, -0.01702880859375, 0.01812744140625, -0.05865478515625, -0.054931640625, -0.018829345703125, 0.005748748779296875, 0.0010280609130859375, 0.036712646484375, -0.035308837890625, -0.00899505615234375, -0.03863525390625, 0.015655517578125, 0.0115203857421875, -0.0164794921875, 0.0210418701171875, 0.0565185546875, 0.010223388671875, -0.0158538818359375, -0.0535888671875, -0.003265380859375, 0.01171875, 0.01393890380859375, 0.04486083984375, 0.0278472900390625, 0.016021728515625, -0.0040435791015625, 0.00341033935546875, -0.0216064453125, -0.009552001953125, 0.023193359375, 0.0013904571533203125, -0.0228118896484375, 0.00562286376953125, -0.040679931640625, 0.059417724609375, 0.034515380859375, -0.002735137939453125, -0.026458740234375, -0.00864410400390625, 0.046783447265625, -0.025848388671875, 0.023406982421875, -0.0411376953125, -0.06561279296875, 0.038116455078125, 0.0002168416976928711, 0.026336669921875, 0.007320404052734375, -0.005992889404296875, 0.056732177734375, -0.011688232421875, -0.0245513916015625, -0.0020160675048828125, 0.0156097412109375, 0.020172119140625, 0.004791259765625, 0.0078887939453125, -0.0158538818359375, -0.043701171875, 0.00539398193359375, 0.019805908203125, -0.004016876220703125, -0.0182342529296875, -0.04937744140625, -0.0174560546875, -0.0033416748046875, 0.016815185546875, 0.0026874542236328125, 0.047088623046875, 0.045196533203125, -0.011474609375, 0.00482177734375, -0.0201873779296875, 0.01320648193359375, -0.046142578125, 0.0162200927734375, 0.023773193359375, -0.0286407470703125, 0.0003197193145751953, 0.04364013671875, 0.032135009765625, -0.0088958740234375, -0.007396697998046875, 0.00225067138671875, 0.0007276535034179688, 0.04547119140625, 0.0290679931640625, -0.05584716796875, -0.0094146728515625, 0.020782470703125, -0.01251983642578125, -0.0198974609375, 0.01593017578125, 0.0144805908203125, 0.024658203125, -0.03662109375, -0.037322998046875, 0.036041259765625, -0.0283966064453125, -0.004360198974609375, -0.007183074951171875, -0.0313720703125, -0.022918701171875, -0.00914764404296875, -0.0005145072937011719, 0.01410675048828125, -0.0190277099609375, -0.0283966064453125, 0.01398468017578125, -0.0236968994140625, 0.01380157470703125, 0.0175628662109375, -0.0457763671875, 0.0238189697265625, 0.037933349609375, 0.0116424560546875, -0.012542724609375, -0.015899658203125, 0.0159454345703125, -0.0016355514526367188, -0.02569580078125, -0.0198974609375, 0.062103271484375, -0.0179595947265625, 0.040069580078125, -0.017852783203125, -0.025115966796875, 0.037078857421875, -0.007526397705078125, 0.0792236328125, 0.043243408203125, -0.046142578125, 0.00920867919921875, -0.01071929931640625, -0.0063629150390625, 0.047576904296875, -0.00566864013671875, -0.032745361328125, -0.02655029296875, 0.003559112548828125, 0.034759521484375, -0.0168914794921875, -0.0306243896484375, 0.015350341796875, 0.0010328292846679688, -0.004093170166015625, 0.04193115234375, -0.010955810546875, 0.048431396484375, 0.00716400146484375, 0.0289154052734375, -0.002323150634765625, 0.00920867919921875, -0.0231475830078125, -0.01045989990234375, -0.0181732177734375, -0.035980224609375, -0.01047515869140625, -0.00409698486328125, 0.00212860107421875, 0.05841064453125, 0.07843017578125, 0.01708984375, -0.022735595703125, -0.00506591796875, -0.0087432861328125, -0.025848388671875, 0.04736328125, 0.004505157470703125, 0.0254364013671875, -0.0228729248046875, -0.0006613731384277344, 0.054962158203125, -0.01406097412109375, -0.0037479400634765625, -0.007335662841796875, -0.01442718505859375, 0.0201416015625, 0.005702972412109375, -0.0462646484375, 0.04644775390625, 0.053680419921875, 0.0252532958984375, 0.04119873046875, -0.0023212432861328125, 0.014068603515625, 0.008056640625, -0.0333251953125, 0.04443359375, 0.033111572265625, 0.07958984375, -0.0053253173828125, 0.0080413818359375, 0.06475830078125, -0.0271759033203125, 0.0122222900390625, 0.040374755859375, 0.0168304443359375, -0.08709716796875, 0.0115814208984375, -0.0005335807800292969, 0.00307464599609375, 0.0018415451049804688, 0.01461029052734375, -0.0030117034912109375, 0.043609619140625, -0.0100250244140625, -0.019500732421875, -0.027130126953125, 0.00502777099609375, 0.0219573974609375, -0.003276824951171875, 0.031707763671875, 0.032379150390625, 0.0092010498046875, -0.0232086181640625, -0.0027866363525390625, -0.01352691650390625, 0.028656005859375, -0.0242462158203125, -0.005435943603515625, 0.01084136962890625, -0.01282501220703125, -0.01284027099609375, 0.057769775390625, -0.035064697265625, 0.0216064453125, 0.0433349609375, 0.016693115234375, 0.0018625259399414062, 0.03125, 0.0106201171875, -0.018402099609375, 0.001079559326171875, -0.035980224609375, -0.0150299072265625, -0.03619384765625, -0.01377105712890625, 0.047637939453125, 0.00311279296875, 0.0165557861328125, 0.0162200927734375, -0.023040771484375, -0.021942138671875, -0.04913330078125, 0.06512451171875, -0.016357421875, -0.0128021240234375, -0.0029163360595703125, 0.03277587890625, 0.00785064697265625, 0.01000213623046875, -0.003490447998046875, -0.056976318359375, -0.041259765625, 0.01186370849609375, -0.0477294921875, -0.005512237548828125, 0.01390838623046875, -0.03973388671875, 0.123046875, 0.01216888427734375, 0.01274871826171875, 0.0254974365234375, 0.05633544921875, -0.03155517578125, 0.0428466796875, -0.0163116455078125, 0.0518798828125, -0.042999267578125, 0.016082763671875, -0.048187255859375, 0.008636474609375, -0.00440216064453125, 0.0225372314453125, 0.0887451171875, 0.03253173828125, -0.076904296875, 0.01287841796875, 0.07257080078125, 0.018890380859375, 0.00347900390625, 0.06884765625, 0.0178985595703125, 0.022430419921875, 0.034698486328125, -0.00896453857421875, 0.03753662109375, -0.010498046875, -0.01538848876953125, 0.035736083984375, -0.0033206939697265625, -0.01055908203125, -0.039337158203125, -0.035888671875, -0.01270294189453125, -0.0280914306640625, -0.007328033447265625, 0.001068115234375, 0.0007162094116210938, 0.039215087890625, 0.047882080078125, -0.03131103515625, -0.0020656585693359375, -0.026031494140625, 0.06256103515625, -0.0087127685546875, -0.01335906982421875, 0.02294921875, -0.00013387203216552734, 0.0176544189453125, -0.0313720703125, -0.0272369384765625, 0.00720977783203125, -0.00621795654296875, 0.036041259765625, 0.01197052001953125, 0.00930023193359375, -0.034576416015625, 0.03369140625, 0.0281219482421875, 0.035797119140625, -0.05316162109375, -0.0706787109375, 0.0120086669921875, 0.0006899833679199219, 0.004791259765625, 0.0295867919921875, 0.0186614990234375, -0.0227203369140625, 0.01447296142578125, -0.0220489501953125, 0.001178741455078125, -0.01311492919921875, 0.031982421875, -0.03369140625, -0.075927734375, 0.01105499267578125, 0.0115203857421875, -0.061431884765625, 0.024688720703125, 0.0194244384765625, 0.086181640625, 0.027252197265625, 0.03289794921875, -0.0153045654296875, -0.043365478515625, -0.0078887939453125, 0.02471923828125, -0.001495361328125, 0.00563812255859375, -0.034912109375, -0.0301055908203125, 0.01238250732421875, 0.0288848876953125, 0.05377197265625, -0.0079193115234375, 0.043182373046875, 0.042327880859375, -0.01534271240234375, 0.0016193389892578125, 0.032623291015625, -0.0015287399291992188, 0.050537109375, -0.040496826171875, 0.04278564453125, -0.010467529296875, -0.007965087890625, -0.0276031494140625, 0.020904541015625, 0.004123687744140625, 0.00585174560546875, 0.028076171875, 0.009307861328125, -0.00988006591796875, 0.03759765625, -0.01253509521484375, 0.042694091796875, 0.03631591796875, -0.0333251953125, 0.005809783935546875, -0.0278167724609375, -0.0792236328125, 0.0216217041015625, 0.049560546875, -0.0114288330078125, -0.0019369125366210938, 0.032745361328125, 0.01073455810546875, -0.01220703125, -0.01136016845703125, 0.019439697265625, 0.0166168212890625, 0.02105712890625, 0.032501220703125, -0.03460693359375, -0.0295562744140625, -0.02734375, 0.043304443359375, 0.02056884765625, 0.1273193359375, -0.0518798828125, 0.032806396484375, -0.01274871826171875, -0.003185272216796875, -0.01030731201171875, -0.019989013671875, 0.010009765625, -0.01129150390625, -0.003154754638671875, 0.0022258758544921875, -0.0218048095703125, -0.0287933349609375, 0.053497314453125, -0.058837890625, -0.0267791748046875, 0.0020046234130859375, 0.03521728515625, -0.0159912109375, 0.0296478271484375, -0.035186767578125, -0.061492919921875, -0.033905029296875, 0.0130462646484375, 0.004962921142578125, 0.00795745849609375, -0.033905029296875, 0.0517578125, 0.005725860595703125, -0.026702880859375, 0.0052642822265625, -0.048919677734375, 0.004138946533203125, 0.03753662109375, 0.0157318115234375, -0.040283203125, 0.0494384765625, -0.01235198974609375, 0.01934814453125, 0.0224456787109375, 0.08868408203125, 0.005889892578125, 0.0048980712890625, -0.038299560546875, -0.043365478515625, -0.0100250244140625, 0.00783538818359375, 0.00011718273162841797, -0.05267333984375, -0.0037021636962890625, -0.025360107421875, -0.0487060546875, -0.0435791015625, -0.064697265625, 0.021728515625, 0.0208892822265625, -0.022125244140625, -0.01451873779296875, -0.04705810546875, 0.0020294189453125, 0.01224517822265625, -0.015533447265625, -0.033721923828125, 0.011962890625, -0.033050537109375, 0.0201568603515625, -0.0360107421875, -0.01515960693359375, 0.0008602142333984375, 0.00815582275390625, -0.041595458984375, 0.005908966064453125, -0.0484619140625, -0.018585205078125, -0.035614013671875, 0.0202178955078125, 0.051849365234375, -0.033416748046875, -0.05767822265625, -0.0005340576171875, 0.0035858154296875, 0.057373046875, -0.0126495361328125, 0.0181121826171875, 0.043792724609375, 0.0076141357421875, -0.056671142578125, -0.10003662109375, 0.0035800933837890625, -0.046966552734375, 0.01323699951171875, 0.0171966552734375, -0.04974365234375, -0.037384033203125, -0.047332763671875, -0.0197906494140625, 0.087890625, 0.021392822265625, -0.00171661376953125, -0.0743408203125, 0.018280029296875, 0.0231475830078125, 0.02032470703125, -0.022857666015625, -0.00555419921875, -0.051300048828125, 0.007015228271484375, -0.0050201416015625, 0.0772705078125, -0.0232086181640625, 0.0023193359375, 0.00830841064453125, 0.01317596435546875, 0.017547607421875, -0.000591278076171875, 0.037261962890625, -0.004856109619140625, 0.022308349609375, 0.0384521484375, -0.03973388671875, -0.0007762908935546875, -0.0235443115234375, -0.0111236572265625, 0.006992340087890625, -0.04278564453125, -0.0311279296875, -0.00899505615234375, 0.07763671875, 0.00904083251953125, 0.0204010009765625, -0.0307464599609375, -0.0131988525390625, -0.042938232421875, -0.048095703125, -0.029510498046875, 0.043548583984375, -0.08441162109375, -0.002681732177734375, 0.01629638671875, 0.0157318115234375, 0.004718780517578125, -0.005035400390625, 0.0102691650390625, -0.0143585205078125, 0.023712158203125, -0.02362060546875, 0.020599365234375, 0.004482269287109375, 0.006317138671875, -0.0032596588134765625, 0.01317596435546875, -0.0152435302734375, 0.0159454345703125, -0.00327301025390625, -0.0165252685546875, -0.042694091796875, 0.00048065185546875, 0.0023746490478515625, 0.0283966064453125, -0.011749267578125, 0.0355224609375, -0.0244598388671875, 0.01947021484375, -0.00959014892578125, 0.001850128173828125, -0.0081024169921875, -0.0221710205078125, -0.03021240234375, 0.037994384765625, 0.01090240478515625, 0.052276611328125, 0.021392822265625, -0.065185546875, 0.0005254745483398438, 0.01554107666015625, -0.0186309814453125, -0.014190673828125, 0.003765106201171875, -0.0484619140625, 0.005687713623046875, -0.011016845703125, -0.027496337890625, -0.048248291015625, 0.0006771087646484375, -0.0261077880859375, -0.01126861572265625, 0.016845703125 ]
dde850a12df6ea94e19fade66dda027a2453fb4b
Wordpress Stackexchange Q: How to remove version and thank you message from the admin footer I've used following codes and no luck 1 //Hide admin footer from admin function change_footer_admin () { return ' '; } add_filter('admin_footer_text', 'change_footer_admin', 9999); function change_footer_version() { return ' '; } add_filter( 'update_footer', 'change_footer_version', 9999); 2 function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version'); 3 function my_footer_shh() { remove_filter( 'update_footer', 'core_update_footer' ); } add_action( 'admin_menu', 'my_footer_shh' ); Still I see those texts and version on my footer. So what is the accurate way to remove these? I've added these code snippets into my child theme function.php A: This works for me: <?php /** Plugin Name: Admin Footer Text Remover **/ add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 ); where I use the __return_empty_string function as a callback.
Q: How to remove version and thank you message from the admin footer I've used following codes and no luck 1 //Hide admin footer from admin function change_footer_admin () { return ' '; } add_filter('admin_footer_text', 'change_footer_admin', 9999); function change_footer_version() { return ' '; } add_filter( 'update_footer', 'change_footer_version', 9999); 2 function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version'); 3 function my_footer_shh() { remove_filter( 'update_footer', 'core_update_footer' ); } add_action( 'admin_menu', 'my_footer_shh' ); Still I see those texts and version on my footer. So what is the accurate way to remove these? I've added these code snippets into my child theme function.php A: This works for me: <?php /** Plugin Name: Admin Footer Text Remover **/ add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 ); where I use the __return_empty_string function as a callback. A: For anyone who comes across this, the latest update is Add the following code in you functions.php file in your theme or child theme // Remove WordPress Admin footer text add_filter('admin_footer_text', '__return_false'); // Remove WordPress Admin footer version function rm_admin_dashboard_footer_right() { remove_filter('update_footer', 'core_update_footer'); } add_action('admin_menu', 'rm_admin_dashboard_footer_right');
wordpress
{ "language": "en", "length": 179, "provenance": "stackexchange_00019.jsonl.gz:448157", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/158997" }
[ 0.023162841796875, 0.028900146484375, -0.044921875, -0.045501708984375, 0.0308685302734375, -0.0283660888671875, 0.003986358642578125, -0.015380859375, -0.00641632080078125, 0.023895263671875, 0.0126953125, -0.03460693359375, 0.0013837814331054688, -0.05181884765625, -0.0443115234375, -0.034942626953125, 0.0217132568359375, 0.009979248046875, 0.033935546875, -0.004253387451171875, -0.028167724609375, 0.0180511474609375, 0.006954193115234375, 0.06890869140625, 0.01329803466796875, -0.062164306640625, 0.10150146484375, -0.012725830078125, 0.01093292236328125, -0.034332275390625, 0.011322021484375, 0.0206146240234375, -0.012603759765625, 0.056884765625, -0.02508544921875, -0.0384521484375, -0.0029926300048828125, 0.01155853271484375, 0.015838623046875, -0.0086212158203125, 0.0239715576171875, -0.0152130126953125, 0.0152130126953125, 0.007534027099609375, -0.0041046142578125, -0.026885986328125, 0.0338134765625, -0.01390838623046875, -0.01169586181640625, 0.0147247314453125, 0.0200653076171875, -0.05401611328125, 0.02093505859375, 0.0083160400390625, -0.0245208740234375, -0.036956787109375, -0.0130615234375, 0.06915283203125, 0.0148468017578125, 0.01473236083984375, -0.0322265625, 0.034912109375, -0.012451171875, -0.02813720703125, -0.0264739990234375, -0.01061248779296875, 0.0023784637451171875, -0.003330230712890625, -0.06231689453125, -0.008575439453125, 0.054168701171875, -0.02227783203125, -0.005645751953125, -0.010833740234375, -0.007640838623046875, 0.00739288330078125, -0.0037479400634765625, -0.017120361328125, 0.0222320556640625, -0.00824737548828125, 0.035186767578125, 0.00015985965728759766, -0.01739501953125, 0.023040771484375, -0.017120361328125, 0.0309906005859375, -0.003826141357421875, -0.019439697265625, -0.03460693359375, 0.003040313720703125, -0.03094482421875, -0.01232147216796875, -0.0166473388671875, -0.0002944469451904297, -0.010894775390625, 0.01262664794921875, 0.036956787109375, 0.048736572265625, -0.03216552734375, -0.0218658447265625, 0.0009050369262695312, -0.0257415771484375, -0.0080413818359375, -0.03240966796875, 0.0007147789001464844, 0.06585693359375, -0.014923095703125, -0.0124053955078125, 0.0152435302734375, 0.022430419921875, 0.03131103515625, -0.0406494140625, -0.0203857421875, -0.0219573974609375, -0.015716552734375, 0.03472900390625, -0.018280029296875, 0.01171875, 0.003421783447265625, 0.0379638671875, 0.00693511962890625, 0.01837158203125, 0.018463134765625, -0.0019426345825195312, -0.0017385482788085938, -0.00566864013671875, -0.034027099609375, -0.030242919921875, 0.068359375, 0.01250457763671875, -0.060302734375, 0.011505126953125, 0.07733154296875, -0.0007185935974121094, 0.0189208984375, -0.0235137939453125, 0.01092529296875, -0.0031833648681640625, 0.006763458251953125, -0.0024871826171875, -0.0089874267578125, -0.01050567626953125, 0.0142059326171875, -0.0240936279296875, -0.02642822265625, -0.007259368896484375, -0.0243377685546875, 0.0124359130859375, 0.0288543701171875, -0.0083465576171875, -0.02984619140625, -0.0413818359375, 0.04083251953125, -0.0031261444091796875, -0.004550933837890625, -0.003803253173828125, 0.0181121826171875, -0.0144500732421875, -0.0218963623046875, -0.023101806640625, -0.0010251998901367188, -0.029266357421875, 0.002483367919921875, -0.0213623046875, -0.041717529296875, 0.046783447265625, -0.0218963623046875, 0.0007987022399902344, 0.02325439453125, 0.01239013671875, 0.037841796875, -0.01629638671875, -0.0270843505859375, 0.01403045654296875, 0.01537322998046875, 0.00927734375, -0.005458831787109375, 0.033050537109375, 0.02642822265625, -0.0291748046875, -0.047088623046875, -0.06524658203125, 0.039825439453125, -0.0190277099609375, -0.061920166015625, -0.0017995834350585938, 0.0114288330078125, 0.039825439453125, 0.014373779296875, 0.01450347900390625, 0.06317138671875, 0.01396942138671875, -0.024444580078125, -0.0152740478515625, 0.0026340484619140625, 0.0006551742553710938, -0.033935546875, -0.007801055908203125, -0.0159149169921875, 0.0183258056640625, 0.007171630859375, 0.0467529296875, -0.0029392242431640625, -0.002895355224609375, -0.0252685546875, 0.0014705657958984375, -0.019073486328125, 0.032745361328125, -0.00665283203125, 0.0183563232421875, 0.0180816650390625, -0.0087890625, -0.0615234375, 0.0718994140625, 0.0099945068359375, -0.0247802734375, -0.0228729248046875, 0.01512908935546875, 0.0001424551010131836, 0.01332855224609375, 0.01142120361328125, -0.01171875, 0.007091522216796875, -0.00034499168395996094, 0.029571533203125, -0.0136566162109375, -0.005771636962890625, -0.019561767578125, 0.028533935546875, -0.01332855224609375, 0.020233154296875, 0.053314208984375, 0.027130126953125, 0.023529052734375, -0.018463134765625, -0.00838470458984375, -0.0271148681640625, -0.1099853515625, -0.0001226663589477539, 0.05743408203125, 0.01548004150390625, 0.044281005859375, -0.035736083984375, -0.00812530517578125, 0.07830810546875, -0.0299835205078125, -0.0199737548828125, 0.0146331787109375, 0.0166015625, 0.0283660888671875, 0.0097503662109375, -0.0161285400390625, 0.014617919921875, -0.036651611328125, 0.00913238525390625, 0.0338134765625, -0.04864501953125, -0.03662109375, 0.0018596649169921875, -0.0010814666748046875, 0.0254974365234375, -0.03118896484375, -0.0158843994140625, -0.0087432861328125, -0.004474639892578125, -0.006526947021484375, 0.009918212890625, 0.017608642578125, -0.03948974609375, -0.028472900390625, 0.0546875, 0.05023193359375, -0.01091766357421875, -0.00887298583984375, -0.023193359375, -0.03497314453125, -0.03192138671875, 0.029449462890625, 0.004398345947265625, -0.0318603515625, 0.0009565353393554688, 0.00745391845703125, -0.0012826919555664062, -0.0008220672607421875, 0.0197601318359375, 0.011688232421875, 0.0202789306640625, 0.004840850830078125, -0.0012216567993164062, 0.00536346435546875, 0.01035308837890625, 0.04443359375, -0.01355743408203125, 0.037841796875, -0.03497314453125, 0.01080322265625, 0.01146697998046875, -0.033233642578125, 0.0215606689453125, -0.01320648193359375, 0.0243072509765625, 0.056182861328125, 0.04437255859375, -0.043548583984375, 0.00904083251953125, 0.0028018951416015625, 0.001972198486328125, -0.0159759521484375, -0.00919342041015625, 0.026397705078125, -0.06756591796875, 0.0210418701171875, 0.0184173583984375, 0.005908966064453125, -0.0037288665771484375, -0.039306640625, -0.01264190673828125, -0.00916290283203125, -0.056915283203125, -0.033203125, -0.0181884765625, -0.053131103515625, -0.031585693359375, 0.048736572265625, -0.06060791015625, 0.0124053955078125, 0.08349609375, 0.0020313262939453125, 0.036346435546875, -0.03997802734375, -0.051971435546875, -0.015716552734375, -0.050262451171875, 0.030303955078125, -0.008209228515625, -0.01468658447265625, 0.00594329833984375, 0.07867431640625, 0.012115478515625, -0.08758544921875, 0.002651214599609375, 0.037445068359375, -0.01497650146484375, 0.058837890625, 0.0019664764404296875, -0.003940582275390625, 0.00908660888671875, 0.01073455810546875, -0.0167083740234375, 0.0133819580078125, -0.007080078125, -0.0299530029296875, -0.01361846923828125, -0.0279998779296875, 0.0133819580078125, -0.01165771484375, 0.0007405281066894531, -0.0004756450653076172, 0.0173187255859375, -0.04583740234375, -0.021728515625, 0.0180816650390625, -0.0196685791015625, 0.07647705078125, 0.009765625, -0.03375244140625, 0.047698974609375, 0.013427734375, 0.046844482421875, 0.0042724609375, 0.050811767578125, -0.01007080078125, -0.002956390380859375, -0.003818511962890625, 0.017425537109375, -0.07568359375, 0.04486083984375, -0.01215362548828125, 0.005634307861328125, 0.02447509765625, 0.0303802490234375, 0.041229248046875, -0.014617919921875, 0.0257415771484375, -0.0137481689453125, 0.0284271240234375, -0.055084228515625, 0.0284271240234375, -0.06207275390625, -0.009307861328125, -0.03302001953125, 0.06744384765625, -0.0299835205078125, -0.021453857421875, -0.01276397705078125, 0.00946807861328125, -0.004711151123046875, -0.045654296875, -0.00879669189453125, -0.00933837890625, -0.09576416015625, 0.035797119140625, -0.0105743408203125, 0.00705718994140625, -0.0377197265625, 0.019439697265625, -0.0565185546875, -0.03802490234375, 0.0124053955078125, -0.03302001953125, -0.0002275705337524414, 0.0282745361328125, -0.0374755859375, -0.00832366943359375, 0.003688812255859375, -0.060028076171875, -0.0268096923828125, -0.023712158203125, 0.0043487548828125, 0.0270538330078125, 0.00421905517578125, -0.00885009765625, -0.01535797119140625, 0.0285797119140625, 0.01049041748046875, -0.005584716796875, -0.021942138671875, 0.0004513263702392578, -0.022064208984375, 0.0070037841796875, -0.034271240234375, -0.00623321533203125, -0.025909423828125, 0.00629425048828125, -0.005767822265625, 0.00997161865234375, -0.0021381378173828125, -0.033966064453125, 0.06329345703125, -0.041748046875, -0.060699462890625, -0.01482391357421875, -0.032012939453125, -0.052032470703125, -0.0033206939697265625, -0.03558349609375, 0.0267181396484375, -0.042877197265625, 0.049224853515625, 0.03662109375, -0.048370361328125, 0.0009279251098632812, 0.005420684814453125, 0.0180511474609375, -0.038421630859375, -0.053802490234375, 0.031341552734375, 0.0396728515625, -0.019622802734375, 0.048858642578125, 0.019012451171875, -0.03387451171875, 0.079345703125, 0.004283905029296875, 0.0157318115234375, -0.0308990478515625, 0.07562255859375, -0.0137939453125, -0.041473388671875, 0.04388427734375, 0.00798797607421875, -0.0280914306640625, -0.01555633544921875, -0.0191802978515625, -0.002628326416015625, -0.01129150390625, 0.016754150390625, 0.007770538330078125, 0.0172882080078125, -0.026458740234375, -0.04302978515625, 0.01348114013671875, -0.036041259765625, 0.01219940185546875, -0.00376129150390625, 0.002208709716796875, -0.00029969215393066406, 0.00627899169921875, 0.0006914138793945312, -0.0533447265625, -0.01247406005859375, -0.054595947265625, 0.043792724609375, -0.059539794921875, -0.0201416015625, 0.0009212493896484375, -0.00928497314453125, 0.054718017578125, 0.0350341796875, -0.01534271240234375, -0.002468109130859375, 0.00974273681640625, 0.059417724609375, -0.0130462646484375, 0.045013427734375, 0.02655029296875, 0.00916290283203125, 0.005748748779296875, -0.0026760101318359375, 0.0267181396484375, 0.001628875732421875, -0.025482177734375, -0.0106658935546875, -0.00023555755615234375, -0.00412750244140625, 0.0113067626953125, 0.0255126953125, -0.0107574462890625, 0.0191802978515625, -0.006130218505859375, 0.01479339599609375, 0.0174407958984375, 0.02960205078125, 0.017333984375, -0.049468994140625, 0.0248565673828125, 0.01505279541015625, 0.0255584716796875, -0.0014467239379882812, -0.0216064453125, 0.0033855438232421875, 0.00301361083984375, -0.0197906494140625, 0.00505828857421875, 0.0200347900390625, -0.004413604736328125, -0.037353515625, 0.056884765625, 0.034088134765625, -0.049835205078125, -0.0304107666015625, -0.000507354736328125, 0.037261962890625, -0.00084686279296875, -0.0255279541015625, 0.002887725830078125, -0.0740966796875, -0.0300140380859375, 0.0159912109375, -0.05255126953125, -0.0128021240234375, 0.0006475448608398438, 0.01258087158203125, -0.004913330078125, -0.0198211669921875, -0.061065673828125, -0.04351806640625, -0.0052490234375, 0.0078277587890625, 0.043701171875, -0.0162353515625, 0.024139404296875, 0.0006494522094726562, -0.031036376953125, 0.048126220703125, -0.0037670135498046875, 0.049102783203125, 0.03717041015625, -0.03985595703125, -0.02203369140625, -0.038238525390625, -0.0149688720703125, -0.07659912109375, -0.048675537109375, -0.0168609619140625, 0.033782958984375, -0.0002980232238769531, 0.01219940185546875, -0.0121612548828125, -0.035614013671875, -0.00693511962890625, 0.0200042724609375, 0.0295562744140625, 0.04266357421875, -0.011688232421875, 0.058868408203125, 0.00537872314453125, 0.0430908203125, 0.0141448974609375, 0.0594482421875, 0.045379638671875, -0.039093017578125, 0.02691650390625, 0.001613616943359375, 0.01123046875, -0.032989501953125, 0.036529541015625, -0.0709228515625, -0.007419586181640625, 0.0037250518798828125, -0.00830078125, -0.00629425048828125, -0.0043792724609375, -0.037261962890625, 0.0672607421875, 0.0007419586181640625, -0.0020122528076171875, -0.005550384521484375, -0.045928955078125, -0.0184173583984375, 0.01244354248046875, 0.009521484375, 0.0022068023681640625, -0.0179901123046875, -0.01395416259765625, 0.033294677734375, -0.0240325927734375, 0.03802490234375, 0.0927734375, 0.01055908203125, 0.0556640625, 0.01424407958984375, 0.031280517578125, 0.06756591796875, -0.01097869873046875, -0.0137939453125, 0.0129852294921875, 0.053131103515625, 0.0096893310546875, 0.0228729248046875, 0.0682373046875, -0.007167816162109375, 0.0102996826171875, 0.06591796875, 0.06695556640625, -0.09173583984375, 0.0053253173828125, 0.021331787109375, 0.0177459716796875, 0.05133056640625, -0.0028591156005859375, -0.0266265869140625, -0.08172607421875, -0.016204833984375, 0.003147125244140625, -0.0188751220703125, -0.0361328125, 0.0175933837890625, -0.033447265625, 0.0020847320556640625, -0.0179595947265625, 0.0172576904296875, 0.0205230712890625, 0.0159912109375, -0.0246734619140625, 0.029449462890625, -0.0255584716796875, 0.010009765625, -0.0158843994140625, -0.03704833984375, -0.09661865234375, -0.04791259765625, 0.0055389404296875, -0.02734375, 0.01332855224609375, -0.0162353515625, -0.0036830902099609375, 0.046051025390625, -0.03009033203125, 0.0108795166015625, 0.0222930908203125, -0.052276611328125, -0.040802001953125, -0.044097900390625, 0.00786590576171875, -0.0177459716796875, -0.0217132568359375, 0.0262298583984375, -0.031951904296875, -0.0352783203125, -0.013671875, -0.049468994140625, 0.0789794921875, -0.0369873046875, -0.02886962890625, 0.0038356781005859375, -0.0122528076171875, -0.0181427001953125, -0.0279388427734375, 0.048065185546875, -0.046905517578125, -0.00920867919921875, -0.006805419921875, -0.032470703125, -0.0258941650390625, -0.040130615234375, -0.0887451171875, 0.13818359375, 0.040771484375, 0.0250701904296875, -0.01395416259765625, 0.057403564453125, -0.054656982421875, 0.0236053466796875, -0.007633209228515625, 0.033660888671875, 0.0307769775390625, 0.006805419921875, -0.007617950439453125, -0.01262664794921875, 0.01047515869140625, 0.0279541015625, 0.0272369384765625, 0.0079803466796875, -0.001834869384765625, 0.002552032470703125, 0.05413818359375, 0.052947998046875, 0.01190948486328125, 0.0011472702026367188, 0.01068115234375, 0.0286865234375, 0.046539306640625, -0.028167724609375, 0.032470703125, -0.00045800209045410156, -0.004833221435546875, 0.041351318359375, 0.025360107421875, 0.03839111328125, 0.012542724609375, 0.00498199462890625, 0.0232391357421875, 0.00458526611328125, 0.0022220611572265625, -0.0323486328125, 0.018096923828125, -0.0029621124267578125, -0.0114288330078125, 0.01103973388671875, 0.0305328369140625, -0.00909423828125, 0.0286712646484375, 0.00469970703125, 0.0184326171875, 0.027099609375, 0.0162811279296875, 0.0159149169921875, -0.0009660720825195312, 0.0218505859375, 0.0303802490234375, -0.034820556640625, 0.01047515869140625, 0.01177215576171875, 0.027984619140625, -0.01142120361328125, 0.0333251953125, -0.001735687255859375, -0.004100799560546875, -0.0218658447265625, -0.003936767578125, -0.0014371871948242188, -0.0050048828125, -0.01079559326171875, -0.050628662109375, -0.025543212890625, -0.006801605224609375, 0.00760650634765625, -0.046722412109375, -0.003093719482421875, 0.0185089111328125, 0.00417327880859375, -0.0157470703125, 0.00337982177734375, 0.014984130859375, 0.01348876953125, -0.0195159912109375, -0.030792236328125, 0.0239715576171875, 0.0181884765625, 0.02203369140625, -0.0024566650390625, 0.0258026123046875, 0.0015850067138671875, -0.01143646240234375, 0.00939178466796875, 0.0301666259765625, 0.016632080078125, -0.02978515625, 0.0021572113037109375, 0.02362060546875, 0.021392822265625, -0.032379150390625, 0.00838470458984375, 0.0225982666015625, 0.0462646484375, -0.00237274169921875, -0.0262603759765625, -0.00650787353515625, -0.0295867919921875, -0.0246124267578125, -0.02911376953125, -0.0238800048828125, 0.0067138671875, -0.0024700164794921875, 0.0206298828125, 0.01702880859375, -0.01214599609375, 0.00768280029296875, -0.0182952880859375, 0.005062103271484375, -0.043731689453125, -0.0104522705078125, -0.0206451416015625, 0.00640869140625, 0.00983428955078125, -0.0484619140625, -0.00945281982421875, 0.0088958740234375, -0.043792724609375, 0.004383087158203125, 0.0282440185546875, -0.050384521484375, 0.05828857421875, -0.00997161865234375, 0.0218963623046875, -0.0037250518798828125, -0.032470703125, 0.0098114013671875, -0.03363037109375, 0.01473236083984375, -0.00153350830078125, -0.0032291412353515625, 0.0030269622802734375, -0.0150909423828125, 0.0296630859375, 0.03887939453125, 0.06787109375, -0.026763916015625, 0.035491943359375, -0.004932403564453125, 0.0230865478515625, -0.055572509765625, -0.01290130615234375, -0.010955810546875, -0.0215911865234375, 0.012115478515625, 0.013824462890625, -0.10205078125, 0.001903533935546875, 0.06060791015625, -0.01073455810546875, 0.048309326171875, 0.0247650146484375, 0.0005087852478027344, -0.0806884765625, -0.040252685546875, -0.0286865234375, -0.017974853515625, -0.00420379638671875, 0.0026493072509765625, -0.0031948089599609375, 0.0063323974609375, 0.00872802734375, -0.024505615234375, 0.02679443359375, -0.032012939453125, 0.0190277099609375, 0.01776123046875, 0.0241546630859375, 0.0335693359375, -0.003131866455078125, 0.049285888671875, 0.0254364013671875, -0.0225067138671875, 0.06463623046875, -0.005157470703125, 0.0220489501953125, 0.026153564453125, 0.025726318359375, 0.010650634765625, -0.0221405029296875, 0.004299163818359375, -0.0423583984375, -0.0213470458984375, 0.00968170166015625, -0.00768280029296875, -0.01108551025390625, 0.00460052490234375, -0.017913818359375, -0.0570068359375, -0.0338134765625, -0.0021514892578125, -0.049407958984375, -0.059326171875, -0.022796630859375, 0.036895751953125, 0.01526641845703125, 0.02496337890625, -0.0888671875, 0.056915283203125, 0.0010251998901367188, 0.0355224609375, 0.006744384765625, 0.039642333984375, -0.02569580078125, -0.038421630859375, -0.008697509765625, -0.030364990234375, -0.04486083984375, 0.0738525390625, 0.00183868408203125, -0.0260467529296875, -0.0044403076171875, 0.00946044921875, 0.00801849365234375, -0.0284423828125, -0.005123138427734375, 0.03399658203125, -0.0189361572265625, -0.00775909423828125, 0.01090240478515625, 0.0109100341796875, -0.028564453125, -0.0877685546875, 0.005168914794921875, -0.0809326171875, -0.005321502685546875, 0.000007927417755126953, -0.01107025146484375, -0.004871368408203125, -0.0207672119140625, -0.05670166015625, 0.03802490234375, 0.004978179931640625, -0.0313720703125, -0.0034942626953125, -0.0208587646484375, -0.028717041015625, 0.061737060546875, 0.0204010009765625, -0.022705078125, -0.027130126953125, 0.02056884765625, -0.0140380859375, 0.06585693359375, 0.00860595703125, -0.0027484893798828125, -0.000362396240234375, 0.0036525726318359375, -0.007488250732421875, -0.009857177734375, -0.003917694091796875, -0.01154327392578125, 0.0204925537109375, 0.0235748291015625, -0.027587890625, -0.0197296142578125, -0.01432037353515625, -0.0244140625, 0.004852294921875, -0.06182861328125, -0.04638671875, -0.061614990234375, 0.08746337890625, 0.00737762451171875, 0.023773193359375, 0.01523590087890625, -0.03216552734375, -0.03070068359375, 0.006633758544921875, -0.020111083984375, 0.01514434814453125, -0.1046142578125, -0.03900146484375, 0.055084228515625, -0.00469207763671875, 0.01039886474609375, -0.0183563232421875, -0.0201568603515625, -0.0032405853271484375, 0.01497650146484375, 0.004657745361328125, -0.0335693359375, -0.0238189697265625, 0.0228118896484375, -0.00982666015625, -0.009185791015625, -0.0311279296875, 0.02825927734375, 0.011932373046875, -0.019744873046875, -0.0079193115234375, -0.00882720947265625, -0.031097412109375, 0.041748046875, -0.0078887939453125, 0.0009760856628417969, -0.031341552734375, 0.0013914108276367188, 0.00792694091796875, 0.01441192626953125, 0.0001399517059326172, 0.0164794921875, -0.039093017578125, 0.0537109375, -0.01200103759765625, 0.063232421875, -0.011383056640625, 0.10333251953125, -0.0268402099609375, 0.056640625, 0.001007080078125, -0.0181121826171875, 0.0205841064453125, 0.0007190704345703125, 0.003582000732421875, -0.003108978271484375, -0.009185791015625, -0.06597900390625, 0.0242462158203125, -0.01435089111328125, 0.0199737548828125, 0.037445068359375 ]
20cb2b70a4ddcf36140a8911e214ea6c80bc2c98
Wordpress Stackexchange Q: How to check if woocommerce is activated in theme I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if( is_user_logged_in() ){ ?> <a href="<?php echo get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>" title="<?php _e( 'My Account', 'woothemes' ); ?>"><?php _e( 'My Account', 'woothemes' ); ?></a> <?php } else { ?> <a href="<?php echo get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>" title="<?php _e( 'Sign-in', 'woothemes' ); ?>"><?php _e( 'Sign-in', 'woothemes' ); ?></a> <?php } ?> </li> <li> <a href="<?php echo get_option( 'home' ) . '/' . 'my-lists/' ?>" title="My Wishlist">Wishlist</a> </li> <!-- <li><a href="#" title="Email updates">Email Updates</a></li> --> <li> <?php global $woocommerce; ?> <a id="header-ShoppingCart" class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart', 'woothemes' ); ?>"><?php echo sprintf( _n( '%d item', 'My Bag (%d)', $woocommerce->cart->cart_contents_count, 'woothemes' ), $woocommerce->cart->cart_contents_count ); ?> - <span id="header-cartCount"><?php echo $woocommerce->cart->get_cart_total(); ?></span></a> </li> </ul> However this breaks the site if the woocommerce plugin is not activated. How can I check if the woocommerce plugin is activated? A: Use following code. It will work on multi site also. include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'woocommerce/woocommerce.php') ) { // Do what you want in case woocommerce is installed }
Q: How to check if woocommerce is activated in theme I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if( is_user_logged_in() ){ ?> <a href="<?php echo get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>" title="<?php _e( 'My Account', 'woothemes' ); ?>"><?php _e( 'My Account', 'woothemes' ); ?></a> <?php } else { ?> <a href="<?php echo get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ); ?>" title="<?php _e( 'Sign-in', 'woothemes' ); ?>"><?php _e( 'Sign-in', 'woothemes' ); ?></a> <?php } ?> </li> <li> <a href="<?php echo get_option( 'home' ) . '/' . 'my-lists/' ?>" title="My Wishlist">Wishlist</a> </li> <!-- <li><a href="#" title="Email updates">Email Updates</a></li> --> <li> <?php global $woocommerce; ?> <a id="header-ShoppingCart" class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart', 'woothemes' ); ?>"><?php echo sprintf( _n( '%d item', 'My Bag (%d)', $woocommerce->cart->cart_contents_count, 'woothemes' ), $woocommerce->cart->cart_contents_count ); ?> - <span id="header-cartCount"><?php echo $woocommerce->cart->get_cart_total(); ?></span></a> </li> </ul> However this breaks the site if the woocommerce plugin is not activated. How can I check if the woocommerce plugin is activated? A: Use following code. It will work on multi site also. include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'woocommerce/woocommerce.php') ) { // Do what you want in case woocommerce is installed } A: You could check to see if the 'WooCommerce' class exists, then run the code that requires WooCommerce. <?php if ( class_exists( 'WooCommerce' ) ) { // code that requires WooCommerce } else { // you don't appear to have WooCommerce activated } ?> A: To check if woocommerce or anyother plguin is active, paste the following code on the template where you want to display the message. if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { echo 'WooCommerce is active.'; } else { echo 'WooCommerce is not Active.'; } A: I would perform the class check once all plugins are loaded. Because in some cases it can return false negative. add_action( 'plugins_loaded', 'see_all_plugins_loaded' ); function see_all_plugins_loaded() { if ( class_exists( 'WooCommerce' ) ) { // do your stuff } }
wordpress
{ "language": "en", "length": 333, "provenance": "stackexchange_00019.jsonl.gz:448206", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159177" }
[ 0.0232086181640625, 0.0007486343383789062, -0.01303863525390625, -0.04315185546875, 0.015228271484375, -0.0168609619140625, 0.0179290771484375, -0.018280029296875, 0.0194091796875, 0.01079559326171875, -0.0743408203125, 0.01526641845703125, -0.00626373291015625, 0.00379180908203125, -0.007411956787109375, -0.0269622802734375, 0.023406982421875, 0.0129852294921875, 0.031829833984375, 0.006290435791015625, -0.0280609130859375, 0.038299560546875, 0.0009493827819824219, 0.05572509765625, 0.008331298828125, -0.021331787109375, 0.1568603515625, -0.03253173828125, 0.048248291015625, -0.0128936767578125, 0.042449951171875, -0.06402587890625, 0.0283203125, -0.003551483154296875, -0.0098724365234375, 0.010772705078125, 0.0087127685546875, -0.00809478759765625, 0.00193023681640625, 0.016143798828125, 0.015594482421875, -0.01335906982421875, 0.0168609619140625, -0.020294189453125, -0.007503509521484375, -0.04193115234375, 0.016815185546875, -0.03753662109375, 0.0145263671875, -0.01751708984375, -0.01210784912109375, 0.032470703125, -0.00464630126953125, -0.028167724609375, -0.010009765625, 0.006805419921875, -0.053497314453125, 0.0289459228515625, 0.024566650390625, 0.0098114013671875, -0.01068878173828125, -0.0105133056640625, -0.004364013671875, -0.0007233619689941406, -0.006694793701171875, 0.00909423828125, 0.006893157958984375, 0.031646728515625, -0.052947998046875, -0.02728271484375, 0.00864410400390625, -0.02410888671875, 0.0013427734375, -0.01117706298828125, -0.0080108642578125, -0.03851318359375, 0.0131378173828125, -0.036590576171875, 0.0133056640625, 0.01024627685546875, 0.01898193359375, 0.0117950439453125, -0.018218994140625, -0.01044464111328125, 0.038482666015625, 0.01531982421875, -0.00020194053649902344, -0.0218963623046875, -0.01508331298828125, -0.02789306640625, -0.026123046875, -0.0178375244140625, 0.00830078125, -0.01416778564453125, -0.049835205078125, -0.005077362060546875, 0.03594970703125, 0.07550048828125, -0.0015048980712890625, -0.01291656494140625, -0.0139923095703125, -0.039154052734375, 0.0018672943115234375, -0.045501708984375, -0.0140228271484375, 0.028656005859375, 0.0206451416015625, 0.046173095703125, 0.03057861328125, 0.00991058349609375, 0.004642486572265625, 0.0208892822265625, -0.00769805908203125, -0.03619384765625, 0.0229644775390625, -0.007198333740234375, -0.0723876953125, 0.06365966796875, 0.01342010498046875, 0.029815673828125, 0.0030422210693359375, 0.0196990966796875, 0.021331787109375, -0.0230865478515625, 0.01324462890625, 0.006656646728515625, -0.01181793212890625, -0.056427001953125, -0.006351470947265625, 0.03265380859375, -0.051513671875, 0.00910186767578125, 0.06390380859375, 0.014373779296875, 0.005947113037109375, -0.024505615234375, 0.00370025634765625, 0.073974609375, 0.0191802978515625, -0.02349853515625, 0.06427001953125, -0.0230712890625, -0.03253173828125, 0.0264434814453125, 0.0249481201171875, -0.0037631988525390625, 0.0020427703857421875, 0.022247314453125, 0.0226287841796875, -0.0013132095336914062, 0.03369140625, -0.04931640625, 0.039093017578125, 0.0039825439453125, -0.011383056640625, 0.0223541259765625, 0.03466796875, -0.0022029876708984375, -0.0528564453125, -0.0195159912109375, -0.013031005859375, -0.040557861328125, -0.01415252685546875, -0.072021484375, -0.0948486328125, 0.053070068359375, -0.0194549560546875, -0.005512237548828125, 0.0293731689453125, 0.03173828125, 0.004486083984375, -0.0191802978515625, 0.041748046875, 0.017547607421875, -0.0094757080078125, 0.0135955810546875, 0.0010852813720703125, 0.0244598388671875, 0.0390625, -0.02056884765625, -0.007091522216796875, 0.0003788471221923828, 0.09356689453125, -0.0260772705078125, -0.044281005859375, 0.0462646484375, 0.01519775390625, 0.03802490234375, -0.00780487060546875, 0.006351470947265625, 0.0579833984375, 0.03179931640625, -0.01549530029296875, 0.016448974609375, -0.0078277587890625, -0.038604736328125, -0.01373291015625, -0.007110595703125, -0.00949859619140625, -0.0030117034912109375, 0.0635986328125, -0.020599365234375, 0.041168212890625, -0.04962158203125, -0.0240020751953125, -0.01030731201171875, -0.0169525146484375, 0.031341552734375, -0.0245361328125, 0.023223876953125, 0.026336669921875, 0.0147705078125, -0.026153564453125, -0.0284423828125, 0.006153106689453125, 0.0151824951171875, -0.04425048828125, 0.058746337890625, -0.006732940673828125, 0.05303955078125, -0.008148193359375, -0.037933349609375, 0.0039825439453125, -0.01309967041015625, 0.01934814453125, 0.0171661376953125, -0.016021728515625, -0.005512237548828125, 0.01151275634765625, 0.033538818359375, -0.0221710205078125, -0.0050048828125, 0.0171661376953125, 0.0114898681640625, -0.027130126953125, -0.0037250518798828125, -0.0014085769653320312, -0.07086181640625, 0.00930023193359375, 0.058074951171875, 0.037322998046875, 0.0254058837890625, -0.024169921875, -0.02386474609375, 0.07818603515625, 0.0093231201171875, 0.0159149169921875, -0.025054931640625, 0.003200531005859375, 0.037994384765625, -0.021759033203125, 0.0256805419921875, 0.01007080078125, 0.043426513671875, -0.0036487579345703125, 0.03466796875, -0.0272064208984375, -0.05419921875, 0.00482940673828125, 0.0168609619140625, -0.00414276123046875, -0.003116607666015625, 0.006175994873046875, -0.00998687744140625, 0.02386474609375, 0.0008950233459472656, 0.03265380859375, 0.0067596435546875, -0.0236968994140625, -0.0009765625, 0.013641357421875, -0.01027679443359375, 0.00307464599609375, 0.0562744140625, 0.00897979736328125, -0.0009131431579589844, -0.037628173828125, -0.00995635986328125, 0.0133819580078125, 0.026947021484375, -0.0241851806640625, -0.0272064208984375, -0.0198974609375, 0.003559112548828125, -0.00787353515625, -0.03662109375, 0.0272979736328125, 0.033599853515625, -0.014892578125, 0.0194549560546875, 0.048980712890625, 0.0083160400390625, -0.0584716796875, 0.049072265625, -0.04693603515625, -0.026580810546875, 0.0069122314453125, -0.004924774169921875, 0.0259246826171875, -0.0400390625, 0.0048980712890625, 0.04388427734375, -0.01373291015625, -0.0018587112426757812, -0.004810333251953125, -0.026275634765625, -0.0085296630859375, -0.0010595321655273438, -0.01702880859375, -0.01739501953125, -0.018524169921875, 0.054443359375, 0.015380859375, 0.04486083984375, -0.01256561279296875, -0.045867919921875, -0.01430511474609375, 0.0107574462890625, -0.07745361328125, -0.0892333984375, -0.029541015625, -0.08856201171875, 0.0567626953125, -0.0462646484375, -0.0216827392578125, -0.0288543701171875, -0.01253509521484375, 0.0257568359375, -0.06622314453125, -0.036346435546875, -0.0260009765625, -0.0885009765625, -0.052337646484375, 0.02447509765625, 0.0111541748046875, 0.03326416015625, -0.01219940185546875, 0.0287933349609375, -0.031829833984375, -0.0518798828125, -0.040313720703125, 0.003437042236328125, 0.0242156982421875, -0.005222320556640625, -0.0246124267578125, -0.0152435302734375, -0.0166015625, 0.001895904541015625, 0.004528045654296875, -0.01328277587890625, 0.00713348388671875, -0.0260772705078125, 0.045135498046875, -0.008819580078125, 0.043701171875, -0.0243988037109375, -0.058258056640625, -0.00878143310546875, -0.0018281936645507812, -0.06829833984375, -0.019439697265625, -0.015655517578125, -0.05133056640625, 0.005199432373046875, 0.038726806640625, 0.0031681060791015625, 0.022216796875, -0.0426025390625, 0.0141754150390625, 0.007843017578125, 0.0124359130859375, -0.0216217041015625, 0.012786865234375, -0.01016998291015625, -0.0181121826171875, -0.0239715576171875, 0.045928955078125, 0.00865936279296875, -0.017974853515625, 0.005939483642578125, 0.01273345947265625, -0.0220794677734375, 0.01470184326171875, -0.07086181640625, -0.0341796875, 0.01166534423828125, -0.060455322265625, 0.031890869140625, -0.022430419921875, -0.00037026405334472656, 0.0030651092529296875, 0.072021484375, 0.01025390625, -0.045654296875, -0.003276824951171875, 0.0225982666015625, -0.053955078125, 0.0057525634765625, 0.018768310546875, 0.001338958740234375, -0.07281494140625, 0.0168304443359375, -0.003871917724609375, -0.0222930908203125, -0.01392364501953125, -0.006626129150390625, -0.048614501953125, -0.0377197265625, 0.01776123046875, -0.044921875, -0.0064239501953125, 0.029815673828125, -0.053619384765625, 0.032562255859375, -0.0270233154296875, -0.04815673828125, -0.0277099609375, -0.027435302734375, 0.018218994140625, 0.02362060546875, -0.00054931640625, -0.0101318359375, -0.040313720703125, 0.0295867919921875, -0.011077880859375, 0.04986572265625, -0.01470947265625, 0.03485107421875, -0.007904052734375, -0.018310546875, 0.0096282958984375, -0.0293426513671875, 0.01308441162109375, 0.0247344970703125, -0.0241546630859375, 0.0267181396484375, -0.01242828369140625, 0.003353118896484375, 0.043304443359375, -0.0517578125, -0.09600830078125, -0.03076171875, -0.005619049072265625, -0.026611328125, -0.0011072158813476562, -0.004512786865234375, 0.001033782958984375, -0.06158447265625, 0.040802001953125, -0.047576904296875, -0.007389068603515625, 0.01154327392578125, 0.059051513671875, 0.01255035400390625, -0.0018596649169921875, 0.004261016845703125, 0.0098114013671875, 0.046661376953125, 0.018890380859375, 0.01160430908203125, 0.002471923828125, -0.0211639404296875, 0.0095367431640625, 0.0173492431640625, 0.01222991943359375, -0.0012407302856445312, 0.0462646484375, -0.0012769699096679688, 0.0057525634765625, -0.005035400390625, -0.0094757080078125, -0.0030956268310546875, 0.024627685546875, 0.0001690387725830078, -0.01522064208984375, 0.02435302734375, 0.0164947509765625, -0.036590576171875, 0.030792236328125, 0.0210723876953125, -0.02191162109375, -0.002086639404296875, -0.00634765625, 0.031890869140625, 0.036163330078125, -0.012847900390625, 0.0240631103515625, -0.005222320556640625, -0.0032291412353515625, -0.018798828125, -0.002964019775390625, -0.029541015625, 0.0008993148803710938, 0.00942230224609375, -0.0171966552734375, -0.005138397216796875, -0.00849151611328125, 0.031463623046875, -0.01666259765625, -0.03485107421875, -0.020843505859375, -0.0165252685546875, -0.031768798828125, 0.020599365234375, -0.00830078125, 0.060546875, 0.0095672607421875, -0.054901123046875, 0.0020999908447265625, -0.04705810546875, -0.024017333984375, -0.07830810546875, 0.005695343017578125, -0.016082763671875, 0.00579071044921875, 0.037567138671875, 0.031951904296875, 0.00848388671875, 0.03753662109375, -0.00971221923828125, 0.037933349609375, 0.042999267578125, 0.01458740234375, 0.0279388427734375, 0.01204681396484375, -0.029144287109375, -0.003894805908203125, -0.01336669921875, -0.03253173828125, -0.02880859375, 0.005893707275390625, 0.032867431640625, -0.0016698837280273438, -0.01117706298828125, 0.005275726318359375, -0.0008077621459960938, -0.00989532470703125, 0.006191253662109375, -0.02020263671875, -0.0265350341796875, -0.0117340087890625, 0.01322174072265625, 0.00997161865234375, -0.01727294921875, -0.01103973388671875, 0.0195770263671875, -0.0142822265625, 0.00754547119140625, 0.01438140869140625, -0.032257080078125, 0.022613525390625, 0.03369140625, -0.02203369140625, -0.007793426513671875, 0.044586181640625, -0.044281005859375, -0.0006308555603027344, -0.04571533203125, -0.021087646484375, 0.0751953125, -0.0034236907958984375, 0.01514434814453125, -0.01824951171875, -0.016326904296875, -0.00412750244140625, -0.0165557861328125, 0.06903076171875, 0.0221099853515625, -0.0677490234375, 0.0161590576171875, -0.050048828125, -0.0028820037841796875, -0.042449951171875, -0.0535888671875, -0.043731689453125, -0.01497650146484375, 0.0108642578125, 0.02978515625, -0.01263427734375, -0.063232421875, -0.0086212158203125, -0.024749755859375, 0.0244903564453125, 0.01213836669921875, 0.0016393661499023438, 0.04779052734375, 0.0406494140625, 0.04278564453125, 0.031097412109375, -0.00676727294921875, -0.049560546875, -0.0192413330078125, -0.006572723388671875, 0.01407623291015625, -0.001461029052734375, 0.00296783447265625, -0.0263519287109375, -0.0192718505859375, 0.08087158203125, -0.00656890869140625, -0.0222320556640625, -0.0196075439453125, 0.0088348388671875, -0.031890869140625, 0.049072265625, -0.0225677490234375, -0.055938720703125, 0.0265045166015625, -0.035430908203125, -0.0255279541015625, 0.002285003662109375, 0.00926971435546875, 0.00896453857421875, -0.0071563720703125, -0.0185699462890625, 0.035736083984375, -0.060333251953125, 0.08807373046875, 0.08892822265625, 0.0139312744140625, 0.049163818359375, 0.005279541015625, -0.0075225830078125, -0.01396942138671875, 0.0433349609375, 0.02496337890625, 0.02691650390625, 0.0853271484375, -0.006160736083984375, -0.0302886962890625, 0.020721435546875, -0.03759765625, 0.01169586181640625, 0.076904296875, 0.09259033203125, -0.080078125, -0.0227813720703125, 0.005859375, -0.01428985595703125, 0.03350830078125, -0.024688720703125, -0.0166015625, -0.05657958984375, 0.1090087890625, -0.05120849609375, -0.016387939453125, 0.0179595947265625, -0.035797119140625, 0.0276641845703125, 0.01435089111328125, 0.0657958984375, 0.0175628662109375, -0.08172607421875, -0.0193328857421875, 0.0582275390625, -0.034515380859375, -0.04058837890625, -0.007549285888671875, 0.03167724609375, 0.0093231201171875, -0.04437255859375, 0.0246124267578125, -0.006717681884765625, 0.0230865478515625, -0.0084075927734375, -0.0014591217041015625, 0.0245208740234375, 0.048736572265625, -0.0074005126953125, -0.0020751953125, 0.033050537109375, -0.0108642578125, -0.0070343017578125, 0.00824737548828125, 0.00963592529296875, 0.0303802490234375, -0.05517578125, 0.01177978515625, -0.0555419921875, 0.03497314453125, -0.004360198974609375, 0.017333984375, 0.023406982421875, -0.003627777099609375, -0.0235748291015625, 0.050201416015625, 0.031494140625, -0.0194244384765625, -0.0316162109375, 0.047882080078125, -0.026611328125, 0.0188446044921875, -0.0003914833068847656, -0.005859375, -0.04644775390625, -0.051788330078125, -0.06756591796875, 0.05810546875, -0.01258087158203125, -0.00559234619140625, -0.0080108642578125, 0.03741455078125, -0.03314208984375, -0.0186920166015625, -0.040008544921875, 0.049346923828125, -0.0249786376953125, 0.060638427734375, -0.032562255859375, 0.00960540771484375, 0.0201873779296875, 0.024932861328125, 0.0166168212890625, -0.0045013427734375, 0.00501251220703125, 0.0088043212890625, 0.05706787109375, 0.0030460357666015625, -0.01404571533203125, 0.02734375, -0.0159149169921875, 0.006435394287109375, 0.0281829833984375, -0.047760009765625, 0.0266876220703125, -0.042266845703125, 0.0029163360595703125, 0.00333404541015625, -0.0172271728515625, -0.036773681640625, 0.01247406005859375, 0.0421142578125, -0.01465606689453125, 0.0102386474609375, 0.00653076171875, -0.01291656494140625, -0.0198822021484375, 0.03680419921875, -0.0039520263671875, 0.01514434814453125, 0.00875091552734375, -0.0172576904296875, 0.0386962890625, 0.00200653076171875, 0.024749755859375, 0.031341552734375, 0.0202178955078125, 0.05145263671875, -0.016265869140625, 0.01383209228515625, 0.010955810546875, -0.0250244140625, 0.0296630859375, 0.0189971923828125, 0.0007171630859375, -0.032379150390625, 0.0025310516357421875, 0.044464111328125, 0.04132080078125, -0.0250244140625, -0.026763916015625, 0.007678985595703125, 0.022430419921875, 0.01337432861328125, -0.0057220458984375, 0.021331787109375, -0.0406494140625, 0.01276397705078125, -0.048675537109375, 0.006626129150390625, 0.0192413330078125, 0.041900634765625, 0.0012254714965820312, 0.0025482177734375, -0.0555419921875, -0.01332855224609375, -0.0274810791015625, -0.00255584716796875, 0.012359619140625, 0.040313720703125, 0.01378631591796875, 0.0677490234375, 0.00218963623046875, -0.01111602783203125, 0.0038089752197265625, 0.01593017578125, 0.013153076171875, -0.0077362060546875, -0.01165008544921875, -0.01302337646484375, 0.002147674560546875, 0.0235748291015625, -0.006610870361328125, -0.003673553466796875, 0.01213836669921875, 0.02386474609375, 0.004199981689453125, -0.007152557373046875, -0.0029468536376953125, -0.0248870849609375, 0.0138702392578125, -0.00707244873046875, 0.043609619140625, 0.034454345703125, 0.006687164306640625, -0.00807952880859375, 0.040740966796875, 0.054107666015625, -0.0271759033203125, 0.01235198974609375, -0.003997802734375, -0.048370361328125, 0.047119140625, 0.00684356689453125, 0.079833984375, 0.0006470680236816406, -0.089111328125, -0.0164337158203125, -0.004947662353515625, -0.039398193359375, 0.001079559326171875, 0.044708251953125, -0.00868988037109375, 0.007518768310546875, 0.0186309814453125, 0.017303466796875, 0.032684326171875, -0.02850341796875, -0.0283203125, 0.00536346435546875, 0.047821044921875, 0.00013685226440429688, -0.005275726318359375, 0.00438690185546875, -0.0098876953125, 0.00928497314453125, -0.00009644031524658203, 0.0178070068359375, 0.01337432861328125, 0.03924560546875, -0.00499725341796875, 0.0254974365234375, -0.0200347900390625, -0.034820556640625, 0.078857421875, -0.00848388671875, -0.0235748291015625, -0.00823211669921875, -0.07196044921875, 0.0271453857421875, 0.0120391845703125, 0.0194549560546875, 0.01386260986328125, -0.00792694091796875, 0.0219268798828125, 0.0296173095703125, 0.0132598876953125, -0.032562255859375, -0.041656494140625, 0.0077056884765625, 0.031707763671875, -0.0139312744140625, 0.01248931884765625, 0.00604248046875, 0.031494140625, 0.00537872314453125, 0.00429534912109375, 0.00847625732421875, 0.0013294219970703125, 0.0166778564453125, 0.033355712890625, -0.031341552734375, 0.01424407958984375, -0.003021240234375, -0.0254364013671875, 0.0018339157104492188, -0.0003802776336669922, -0.004573822021484375, -0.005397796630859375, -0.040130615234375, 0.0196533203125, 0.0675048828125, 0.0028972625732421875, -0.046051025390625, -0.0010576248168945312, 0.09539794921875, -0.047515869140625, 0.033172607421875, -0.0294189453125, -0.0138397216796875, -0.04986572265625, 0.007354736328125, 0.0165863037109375, -0.005405426025390625, 0.006153106689453125, 0.0118408203125, 0.0012416839599609375, 0.012725830078125, 0.00820159912109375, -0.043731689453125, 0.0160064697265625, 0.0025081634521484375, 0.050628662109375, -0.0231170654296875, 0.018310546875, -0.004253387451171875, -0.006877899169921875, -0.0467529296875, -0.0000317692756652832, -0.06549072265625, -0.0092315673828125, -0.0288238525390625, -0.0000820159912109375, 0.056488037109375, -0.04052734375, -0.053741455078125, -0.036865234375, 0.007442474365234375, -0.00043582916259765625, 0.045684814453125, -0.050537109375, 0.024444580078125, -0.0263824462890625, 0.0211334228515625, -0.044464111328125, -0.0190887451171875, -0.07208251953125, -0.00896453857421875, 0.006099700927734375, 0.002750396728515625, 0.033966064453125, -0.02801513671875, -0.06488037109375, 0.07440185546875, -0.0211334228515625, -0.02508544921875, -0.05108642578125, 0.023162841796875, -0.005870819091796875, -0.00634765625, -0.0149078369140625, -0.02630615234375, -0.0099945068359375, 0.025604248046875, -0.0004088878631591797, -0.006610870361328125, 0.036529541015625, -0.0204315185546875, -0.06683349609375, 0.0013227462768554688, -0.0029430389404296875, -0.003864288330078125, 0.02301025390625, -0.01593017578125, 0.0156707763671875, 0.04345703125, -0.034027099609375, -0.0311126708984375, -0.036773681640625, -0.0007748603820800781, -0.0102691650390625, -0.03411865234375, -0.00010317564010620117, -0.01605224609375, 0.0574951171875, 0.01337432861328125, 0.0036373138427734375, -0.0184326171875, 0.01149749755859375, 0.015289306640625, -0.0206298828125, 0.022674560546875, 0.0095977783203125, -0.013214111328125, 0.01470184326171875, -0.017242431640625, -0.0224761962890625, -0.01457977294921875, 0.032135009765625, -0.0560302734375, -0.006458282470703125, -0.016143798828125, -0.01436614990234375, -0.0400390625, -0.01268768310546875, 0.01947021484375, -0.0307159423828125, -0.0163421630859375, 0.00763702392578125, 0.005863189697265625, -0.0114898681640625, -0.01021575927734375, 0.0246124267578125, 0.0386962890625, -0.030120849609375, -0.00555419921875, 0.0325927734375, 0.0390625, -0.017364501953125, -0.03009033203125, -0.0239715576171875, 0.026611328125, -0.0161285400390625, -0.0008044242858886719, -0.00588226318359375, 0.048095703125, 0.009857177734375, 0.09130859375, 0.018035888671875, 0.032928466796875, 0.003131866455078125, 0.056365966796875, 0.051788330078125, -0.037353515625, 0.054595947265625, -0.0298309326171875, 0.00595855712890625, 0.002719879150390625, 0.01232147216796875, -0.058135986328125, 0.032257080078125, -0.00691986083984375, 0.0086517333984375, 0.0223388671875 ]
b56fb7ee1be3924a2a670c7383ad7690c52bae1f
Wordpress Stackexchange Q: How to edit an existing WordPress theme? I've been hired to modify/update/change an existing WordPress theme. The site is already live, and I'm wondering how to work on the theme locally first. A: There are several plugins that will allow you to clone the database only, as well as the WordPress installation and media files. You will need to install a WAMP, LAMP or MAMP stack or XAMPP. Upon completion of your updates, you can migrate the site back to the host server.
Q: How to edit an existing WordPress theme? I've been hired to modify/update/change an existing WordPress theme. The site is already live, and I'm wondering how to work on the theme locally first. A: There are several plugins that will allow you to clone the database only, as well as the WordPress installation and media files. You will need to install a WAMP, LAMP or MAMP stack or XAMPP. Upon completion of your updates, you can migrate the site back to the host server. A: While Ray's answer is perfectly correct you might want to use some geeky stuffs such as Vagrant which allows you to do quite the same as WAMP , XAMP, MAMP but in a more flexible way. The idea is to exactly match the production server. May I suggest you to use child themes also. It's the best way to edit/modify a theme.
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:448248", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159338" }
[ 0.00571441650390625, -0.0192413330078125, -0.007904052734375, -0.038482666015625, -0.011322021484375, -0.006420135498046875, -0.006298065185546875, 0.0008907318115234375, 0.00965118408203125, -0.0054168701171875, -0.0027313232421875, -0.02630615234375, 0.0031795501708984375, -0.042144775390625, 0.014801025390625, -0.0275421142578125, 0.052642822265625, -0.042816162109375, 0.0214691162109375, -0.0116119384765625, -0.0091552734375, 0.0277099609375, 0.03692626953125, 0.0977783203125, 0.040740966796875, -0.0292510986328125, 0.0733642578125, 0.007656097412109375, 0.03802490234375, 0.005168914794921875, 0.0430908203125, -0.048797607421875, 0.0165557861328125, 0.005527496337890625, -0.007110595703125, -0.0121002197265625, 0.04052734375, -0.012054443359375, 0.0031108856201171875, 0.0277099609375, 0.042694091796875, -0.0214385986328125, 0.0306549072265625, 0.058197021484375, 0.015838623046875, -0.059417724609375, 0.052825927734375, -0.06976318359375, -0.0129852294921875, -0.035980224609375, 0.0026493072509765625, 0.01059722900390625, 0.0273895263671875, -0.01422119140625, -0.0094146728515625, -0.0125579833984375, 0.017303466796875, 0.005664825439453125, 0.044219970703125, -0.054290771484375, -0.052093505859375, -0.0263214111328125, 0.044158935546875, 0.005062103271484375, 0.01103973388671875, 0.0009627342224121094, 0.0246734619140625, 0.0236053466796875, -0.078125, 0.011962890625, 0.0489501953125, -0.05084228515625, 0.00006246566772460938, -0.031219482421875, 0.0233612060546875, 0.0190887451171875, -0.0132904052734375, -0.0012054443359375, 0.0119171142578125, 0.021331787109375, 0.04949951171875, -0.00318145751953125, 0.01398468017578125, -0.0677490234375, 0.0513916015625, -0.0279541015625, 0.01053619384765625, -0.01369476318359375, -0.050811767578125, -0.00162506103515625, -0.03778076171875, -0.029052734375, -0.03900146484375, -0.0012273788452148438, 0.005245208740234375, -0.00028967857360839844, -0.0135345458984375, 0.0200042724609375, -0.01265716552734375, 0.03399658203125, -0.002105712890625, -0.0280914306640625, 0.03753662109375, -0.04644775390625, -0.0172576904296875, 0.002902984619140625, 0.0148773193359375, 0.017822265625, -0.00037360191345214844, 0.016510009765625, -0.03692626953125, 0.005588531494140625, -0.0138092041015625, -0.0223541259765625, -0.0197296142578125, 0.0450439453125, -0.01300048828125, 0.01039886474609375, -0.003124237060546875, 0.034637451171875, -0.0041961669921875, 0.0173187255859375, -0.0213165283203125, -0.0178070068359375, 0.01381683349609375, -0.00818634033203125, -0.022247314453125, 0.0228118896484375, 0.017974853515625, 0.01421356201171875, -0.056549072265625, 0.007671356201171875, 0.0970458984375, 0.02276611328125, 0.005462646484375, -0.0171966552734375, 0.005702972412109375, -0.0006251335144042969, -0.0026531219482421875, 0.005615234375, 0.0010652542114257812, -0.00917816162109375, 0.00262451171875, -0.01451873779296875, 0.0304107666015625, 0.004459381103515625, 0.007015228271484375, 0.0286102294921875, 0.005611419677734375, -0.01438140869140625, 0.0357666015625, -0.028472900390625, -0.01120758056640625, 0.0267791748046875, 0.049835205078125, -0.01189422607421875, 0.0389404296875, -0.037994384765625, 0.03277587890625, -0.005741119384765625, -0.0050048828125, 0.00359344482421875, 0.045867919921875, -0.0284881591796875, -0.0270233154296875, -0.002933502197265625, -0.045562744140625, 0.001079559326171875, 0.0245819091796875, -0.01105499267578125, 0.026611328125, -0.020050048828125, 0.07958984375, 0.0085296630859375, -0.0199432373046875, 0.0261077880859375, 0.006633758544921875, -0.00004416704177856445, 0.01104736328125, 0.0638427734375, 0.038726806640625, -0.0099639892578125, 0.016448974609375, 0.018768310546875, -0.04388427734375, 0.01442718505859375, -0.00913238525390625, 0.06585693359375, 0.04998779296875, 0.01641845703125, -0.0213470458984375, -0.054046630859375, -0.04541015625, 0.036651611328125, -0.01158905029296875, -0.01544952392578125, 0.0018873214721679688, 0.0188751220703125, -0.0176239013671875, -0.0261993408203125, -0.03753662109375, 0.0076141357421875, -0.01178741455078125, 0.00823211669921875, -0.050323486328125, -0.002941131591796875, -0.0179901123046875, 0.034912109375, 0.06597900390625, 0.02386474609375, -0.02777099609375, 0.00885009765625, 0.0347900390625, -0.0919189453125, -0.07000732421875, -0.00804901123046875, -0.043701171875, -0.003017425537109375, -0.0035190582275390625, -0.0089263916015625, -0.005123138427734375, -0.01235198974609375, -0.018096923828125, -0.01299285888671875, 0.0031108856201171875, -0.012420654296875, -0.016815185546875, -0.0208892822265625, -0.025726318359375, 0.0016384124755859375, -0.02685546875, 0.052886962890625, -0.0126800537109375, 0.01459503173828125, 0.0003924369812011719, -0.0175018310546875, 0.001415252685546875, -0.068115234375, 0.031463623046875, 0.0316162109375, 0.01540374755859375, 0.0112152099609375, -0.0195159912109375, 0.0255584716796875, 0.0689697265625, -0.0018892288208007812, 0.007053375244140625, 0.02294921875, 0.05657958984375, 0.06988525390625, -0.014068603515625, -0.0207366943359375, 0.0189971923828125, -0.07403564453125, 0.0297088623046875, 0.03472900390625, -0.0401611328125, 0.0099945068359375, -0.016357421875, 0.01554107666015625, -0.015655517578125, -0.035888671875, 0.00441741943359375, -0.02813720703125, 0.034515380859375, 0.00749969482421875, 0.0428466796875, 0.0151214599609375, -0.033782958984375, 0.0102691650390625, 0.02374267578125, -0.00835418701171875, 0.0126800537109375, 0.0290069580078125, -0.039794921875, 0.07611083984375, -0.02423095703125, -0.00617218017578125, 0.00942230224609375, 0.0226287841796875, -0.0369873046875, -0.03472900390625, 0.00916290283203125, -0.0089874267578125, 0.03179931640625, -0.0462646484375, 0.028564453125, -0.0172271728515625, -0.022857666015625, -0.0082244873046875, 0.0295257568359375, -0.00994110107421875, -0.06109619140625, 0.0235137939453125, -0.01483154296875, -0.032623291015625, 0.0245819091796875, -0.02032470703125, 0.012939453125, -0.004058837890625, 0.0159149169921875, 0.059478759765625, 0.0256195068359375, -0.027740478515625, 0.0063629150390625, 0.0005769729614257812, 0.032257080078125, -0.00937652587890625, -0.010955810546875, 0.024261474609375, -0.0675048828125, -0.003757476806640625, 0.0234222412109375, -0.0033721923828125, -0.0022830963134765625, -0.023590087890625, -0.03173828125, 0.01442718505859375, -0.0665283203125, -0.042633056640625, -0.042633056640625, -0.033203125, -0.01204681396484375, -0.0034961700439453125, -0.00394439697265625, 0.0135040283203125, -0.0020465850830078125, 0.020843505859375, 0.0289306640625, -0.062347412109375, -0.02752685546875, -0.107421875, -0.100341796875, -0.1055908203125, 0.0162200927734375, 0.0157928466796875, 0.0044708251953125, 0.038543701171875, 0.005764007568359375, -0.041839599609375, 0.02020263671875, 0.03021240234375, -0.007061004638671875, 0.0283050537109375, 0.03076171875, -0.016693115234375, 0.030670166015625, 0.0191802978515625, 0.0187530517578125, 0.03765869140625, -0.04730224609375, -0.0400390625, -0.0280609130859375, -0.0238494873046875, -0.032623291015625, 0.00634765625, 0.042266845703125, -0.0298004150390625, -0.018829345703125, -0.0565185546875, -0.022064208984375, 0.01213836669921875, -0.02288818359375, 0.02996826171875, -0.006595611572265625, -0.021087646484375, -0.005889892578125, 0.028594970703125, 0.00994110107421875, -0.00238037109375, -0.01309967041015625, -0.02008056640625, 0.05316162109375, 0.0013971328735351562, 0.01387786865234375, -0.015777587890625, -0.032379150390625, -0.05126953125, 0.050537109375, -0.01316070556640625, -0.0172119140625, -0.03997802734375, 0.038360595703125, -0.045074462890625, -0.06866455078125, 0.043060302734375, -0.03216552734375, 0.017303466796875, -0.05615234375, -0.0177001953125, -0.0255279541015625, 0.10272216796875, -0.052978515625, -0.010284423828125, 0.02587890625, -0.0008635520935058594, 0.0153350830078125, 0.042724609375, -0.06805419921875, -0.021148681640625, -0.08648681640625, -0.0040130615234375, 0.003971099853515625, -0.041595458984375, 0.00019502639770507812, 0.00740814208984375, -0.05657958984375, -0.04583740234375, 0.0265350341796875, -0.023651123046875, 0.0252532958984375, -0.0093841552734375, -0.01171112060546875, -0.0250244140625, -0.01812744140625, -0.01020050048828125, -0.08551025390625, -0.000028133392333984375, -0.04632568359375, 0.058319091796875, 0.0217132568359375, 0.02435302734375, -0.01654052734375, 0.0330810546875, -0.0268096923828125, 0.04693603515625, -0.0428466796875, 0.0186004638671875, -0.046844482421875, -0.01215362548828125, -0.015533447265625, -0.014007568359375, -0.030303955078125, -0.06964111328125, -0.036712646484375, -0.020538330078125, -0.003871917724609375, 0.024169921875, -0.017425537109375, 0.0008344650268554688, 0.01319122314453125, 0.00140380859375, 0.0065460205078125, 0.039703369140625, -0.0231170654296875, 0.0258636474609375, -0.01149749755859375, -0.00469970703125, 0.060546875, -0.004901885986328125, -0.0186309814453125, -0.0037899017333984375, 0.09283447265625, 0.014068603515625, -0.0231475830078125, -0.058319091796875, -0.0263671875, 0.038909912109375, 0.06256103515625, 0.007251739501953125, 0.00858306884765625, -0.033599853515625, 0.0212860107421875, 0.045135498046875, -0.01329803466796875, -0.004184722900390625, 0.02734375, 0.00914764404296875, -0.0034008026123046875, 0.0019893646240234375, -0.002185821533203125, 0.0241546630859375, -0.00250244140625, -0.018646240234375, 0.0223846435546875, -0.002048492431640625, -0.007381439208984375, -0.00592041015625, -0.0020732879638671875, -0.0078887939453125, -0.0711669921875, 0.032806396484375, -0.00913238525390625, 0.01079559326171875, 0.00423431396484375, 0.01068878173828125, 0.04443359375, -0.006183624267578125, -0.01035308837890625, -0.02490234375, 0.0296478271484375, -0.058502197265625, 0.0178070068359375, 0.006252288818359375, -0.029815673828125, -0.0216217041015625, -0.020660400390625, 0.08575439453125, -0.00972747802734375, -0.06756591796875, -0.0216827392578125, 0.004421234130859375, 0.03228759765625, 0.038482666015625, 0.006984710693359375, 0.0067138671875, -0.00905609130859375, -0.0175018310546875, -0.01421356201171875, 0.004364013671875, -0.031768798828125, -0.038848876953125, -0.0506591796875, -0.01519775390625, -0.026214599609375, 0.06817626953125, -0.029876708984375, -0.0077667236328125, 0.0051727294921875, -0.011871337890625, 0.039642333984375, 0.04736328125, -0.0236358642578125, -0.013153076171875, 0.037567138671875, 0.018890380859375, -0.031341552734375, 0.047760009765625, -0.021453857421875, -0.014617919921875, 0.025909423828125, 0.0496826171875, -0.0032958984375, 0.00130462646484375, 0.003177642822265625, -0.02435302734375, 0.0242767333984375, 0.0010700225830078125, -0.034210205078125, -0.05047607421875, 0.0198974609375, 0.06500244140625, 0.0313720703125, -0.053436279296875, -0.0170440673828125, 0.01242828369140625, -0.042236328125, 0.0026340484619140625, 0.030059814453125, -0.018280029296875, -0.01531982421875, -0.013427734375, -0.0016794204711914062, -0.00041937828063964844, -0.0143890380859375, -0.030426025390625, -0.0103912353515625, -0.0254058837890625, -0.018310546875, 0.0604248046875, 0.0202789306640625, -0.00400543212890625, -0.021087646484375, -0.004062652587890625, -0.020538330078125, -0.0186614990234375, 0.0484619140625, -0.01284027099609375, -0.04296875, -0.005786895751953125, -0.052581787109375, -0.0269775390625, -0.055206298828125, -0.04022216796875, -0.0450439453125, 0.00922393798828125, 0.00423431396484375, -0.008758544921875, -0.0169219970703125, -0.03240966796875, -0.026031494140625, 0.047210693359375, 0.052154541015625, 0.012939453125, -0.0031337738037109375, 0.0379638671875, 0.01377105712890625, 0.03369140625, 0.013153076171875, 0.00537109375, -0.042938232421875, -0.01053619384765625, 0.013671875, -0.01806640625, -0.032379150390625, -0.029754638671875, -0.017120361328125, 0.0171356201171875, 0.0552978515625, -0.009765625, 0.031585693359375, -0.054718017578125, -0.0023708343505859375, -0.0270843505859375, 0.053741455078125, -0.11578369140625, -0.0200958251953125, -0.00475311279296875, -0.0400390625, 0.025421142578125, 0.005641937255859375, 0.004581451416015625, 0.01007080078125, -0.04095458984375, 0.01320648193359375, 0.052642822265625, -0.0189208984375, 0.0360107421875, 0.032806396484375, -0.0200347900390625, 0.017822265625, 0.0204620361328125, 0.0028171539306640625, 0.011444091796875, 0.0044708251953125, -0.035797119140625, -0.01206207275390625, 0.0086517333984375, -0.0021495819091796875, -0.01611328125, -0.0010900497436523438, -0.012420654296875, 0.0173797607421875, 0.0240325927734375, 0.061737060546875, -0.05419921875, 0.01861572265625, 0.0172882080078125, -0.0223541259765625, 0.0028324127197265625, 0.02313232421875, -0.01187896728515625, -0.0226287841796875, 0.024169921875, -0.0118560791015625, 0.01611328125, 0.0156707763671875, 0.0087738037109375, -0.00806427001953125, -0.044403076171875, 0.023834228515625, 0.02093505859375, -0.0241241455078125, 0.035675048828125, 0.0274810791015625, 0.01953125, -0.036651611328125, -0.00788116455078125, 0.015655517578125, -0.0161895751953125, -0.056396484375, 0.038360595703125, 0.004360198974609375, 0.0180206298828125, -0.01158905029296875, 0.0036678314208984375, 0.022247314453125, 0.051666259765625, -0.0162811279296875, 0.01125335693359375, 0.038848876953125, -0.00609588623046875, -0.0157012939453125, -0.0266265869140625, -0.0091552734375, 0.02197265625, -0.0303497314453125, 0.020721435546875, 0.00211334228515625, -0.02105712890625, -0.0241241455078125, -0.0272064208984375, 0.075439453125, -0.0012464523315429688, -0.0287017822265625, 0.0302886962890625, 0.0213165283203125, -0.0211334228515625, -0.02239990234375, -0.005321502685546875, -0.031402587890625, 0.01451873779296875, -0.0225372314453125, -0.00533294677734375, 0.00823211669921875, -0.024871826171875, -0.06292724609375, 0.116943359375, -0.004917144775390625, 0.01203155517578125, 0.009552001953125, 0.059295654296875, -0.051849365234375, 0.00782012939453125, -0.01275634765625, 0.048370361328125, -0.050445556640625, 0.0180206298828125, -0.043914794921875, 0.0095672607421875, -0.0058441162109375, 0.01180267333984375, 0.0396728515625, 0.00948333740234375, -0.016387939453125, -0.01425933837890625, 0.030731201171875, 0.04876708984375, 0.01457977294921875, 0.0247039794921875, -0.03369140625, 0.017822265625, 0.0007557868957519531, -0.034332275390625, 0.023284912109375, -0.020904541015625, -0.05340576171875, 0.00662994384765625, 0.017547607421875, 0.0256805419921875, 0.0018510818481445312, -0.01131439208984375, -0.0206756591796875, 0.004276275634765625, 0.006809234619140625, 0.008880615234375, -0.004726409912109375, 0.00792694091796875, -0.031005859375, -0.00042748451232910156, 0.0260009765625, -0.026885986328125, 0.0229644775390625, -0.021331787109375, -0.00018155574798583984, -0.00972747802734375, 0.0075836181640625, 0.00733184814453125, -0.0219573974609375, -0.00628662109375, 0.043182373046875, -0.035980224609375, 0.018798828125, 0.044158935546875, 0.018157958984375, -0.0183563232421875, 0.018646240234375, 0.04852294921875, 0.040435791015625, -0.04296875, -0.0101165771484375, 0.0025920867919921875, -0.00031566619873046875, 0.0066680908203125, -0.0321044921875, 0.0264892578125, 0.023468017578125, 0.004871368408203125, -0.016815185546875, -0.0009527206420898438, 0.025421142578125, -0.00453948974609375, 0.004734039306640625, 0.0101470947265625, 0.0013303756713867188, 0.007259368896484375, 0.001434326171875, 0.006832122802734375, 0.00007063150405883789, -0.0212860107421875, -0.0153350830078125, 0.03662109375, 0.0174560546875, 0.0175018310546875, 0.0030727386474609375, 0.043304443359375, -0.0159454345703125, 0.0155792236328125, -0.040191650390625, -0.06097412109375, 0.005008697509765625, 0.03680419921875, 0.00823974609375, 0.01073455810546875, 0.041046142578125, 0.045074462890625, -0.00949859619140625, -0.005764007568359375, 0.04302978515625, -0.0124664306640625, 0.00496673583984375, -0.03717041015625, 0.024993896484375, -0.01104736328125, -0.000640869140625, -0.0301361083984375, 0.0474853515625, -0.003307342529296875, -0.00689697265625, 0.0439453125, -0.00568389892578125, -0.0177001953125, 0.037506103515625, -0.001811981201171875, 0.06463623046875, 0.0152435302734375, -0.0679931640625, -0.0161895751953125, -0.02423095703125, -0.038543701171875, 0.037994384765625, 0.04644775390625, -0.01227569580078125, -0.00455474853515625, -0.032623291015625, -0.018707275390625, 0.0020580291748046875, 0.0175018310546875, 0.006259918212890625, 0.01036834716796875, 0.018646240234375, -0.015106201171875, -0.0298309326171875, -0.021453857421875, -0.02783203125, 0.066162109375, 0.01255035400390625, 0.08026123046875, -0.05401611328125, 0.0294036865234375, 0.0095062255859375, -0.002368927001953125, -0.0082855224609375, 0.00618743896484375, 0.000017940998077392578, 0.0130462646484375, 0.01549530029296875, -0.001216888427734375, -0.0186767578125, 0.0206146240234375, 0.0175628662109375, -0.026458740234375, 0.0142364501953125, -0.03271484375, 0.0165557861328125, 0.0028209686279296875, 0.02294921875, -0.0161895751953125, -0.03369140625, 0.002105712890625, 0.01387786865234375, 0.002716064453125, 0.003692626953125, 0.006805419921875, 0.0158538818359375, 0.01326751708984375, 0.007686614990234375, 0.005458831787109375, 0.018341064453125, -0.007080078125, 0.0252685546875, -0.03192138671875, -0.051605224609375, 0.0308685302734375, -0.007251739501953125, 0.006160736083984375, 0.005157470703125, 0.08685302734375, 0.006031036376953125, -0.03875732421875, 0.033416748046875, 0.01416778564453125, 0.03643798828125, -0.0171356201171875, 0.01235198974609375, 0.017059326171875, 0.0003063678741455078, 0.03472900390625, 0.010772705078125, -0.007137298583984375, 0.0006232261657714844, -0.032501220703125, -0.0048370361328125, 0.0018415451049804688, -0.06341552734375, -0.0218963623046875, 0.0139923095703125, 0.03045654296875, -0.001369476318359375, -0.04388427734375, 0.02911376953125, -0.0318603515625, 0.0272216796875, -0.00566864013671875, -0.057830810546875, -0.0011396408081054688, -0.004222869873046875, -0.0195465087890625, -0.0562744140625, -0.04742431640625, 0.037322998046875, -0.0260009765625, 0.01299285888671875, 0.034027099609375, -0.018585205078125, -0.0033054351806640625, 0.0162811279296875, 0.0389404296875, 0.06671142578125, 0.005275726318359375, -0.0256805419921875, 0.0162811279296875, -0.0143280029296875, -0.0080718994140625, -0.045166015625, -0.0013790130615234375, -0.0582275390625, -0.01001739501953125, -0.038116455078125, 0.00827789306640625, 0.01172637939453125, -0.0643310546875, -0.10748291015625, 0.00951385498046875, -0.0222930908203125, -0.04449462890625, -0.01267242431640625, 0.023284912109375, -0.0262451171875, -0.0013217926025390625, 0.0003600120544433594, -0.00862884521484375, 0.01450347900390625, 0.0311737060546875, -0.0140838623046875, 0.06201171875, -0.0223236083984375, -0.005229949951171875, -0.01355743408203125, 0.01092529296875, 0.00013017654418945312, -0.0010833740234375, 0.00872039794921875, -0.01519775390625, 0.01042938232421875, 0.04791259765625, -0.0161285400390625, -0.07373046875, -0.02044677734375, -0.035369873046875, -0.0223388671875, -0.04486083984375, -0.016082763671875, 0.0004322528839111328, 0.081298828125, 0.054779052734375, 0.01265716552734375, -0.03082275390625, -0.014892578125, -0.033477783203125, -0.0296630859375, 0.00435638427734375, 0.0221710205078125, -0.05072021484375, 0.02020263671875, 0.029449462890625, -0.00279998779296875, -0.0197601318359375, 0.0255584716796875, -0.01483154296875, -0.024169921875, -0.007663726806640625, -0.023651123046875, -0.03460693359375, -0.0270538330078125, 0.10943603515625, -0.04583740234375, 0.0283966064453125, 0.0227203369140625, 0.005954742431640625, 0.0799560546875, 0.03497314453125, 0.00543212890625, -0.0265045166015625, -0.0084075927734375, 0.0217742919921875, 0.004302978515625, 0.032196044921875, -0.01544952392578125, -0.03704833984375, -0.01241302490234375, 0.03900146484375, 0.009307861328125, 0.040863037109375, -0.052734375, 0.050262451171875, 0.00830841064453125, 0.08355712890625, -0.00786590576171875, -0.0235443115234375, -0.033447265625, 0.041259765625, -0.0227813720703125, -0.0009675025939941406, 0.0012331008911132812, -0.028900146484375, 0.00872802734375, -0.0019969940185546875, -0.01111602783203125, -0.0295562744140625, -0.0017309188842773438, -0.0225982666015625, -0.01035308837890625, 0.015655517578125 ]
c658366c0a4e89249317e02a656e1477d27a86dc
Wordpress Stackexchange Q: Check the Version of an Enqueue'd External Library I want to use an external font library in my plugin, but I want to do a version check first to determine if I should bother enqueue'ing my version or not. I know I can see if a library is already loaded -- wp_script_is() -- but I don't know how to check the library's version. Any ideas? if ( wp_script_is() || wp_script_is( 'registered' ) ) { \\ version check here } A: I can't find a nice way of doing it though wp_script_*, but you can go to the global directly: global $wp_scripts; $version = $wp_scripts->query( 'jquery' )->ver; Here the query returns the script's _WP_Dependency object, and then we can get the version from it. (Annoyingly wp_script_is( ..., 'registered' ) fetches the _WP_Dependency but then casts the result to a bool to return.) This only works for registered scripts; apologies I don't know the distinction, but AFAICS a script can only be queued if it's registered, and it's only the registered data that holds the version.
Q: Check the Version of an Enqueue'd External Library I want to use an external font library in my plugin, but I want to do a version check first to determine if I should bother enqueue'ing my version or not. I know I can see if a library is already loaded -- wp_script_is() -- but I don't know how to check the library's version. Any ideas? if ( wp_script_is() || wp_script_is( 'registered' ) ) { \\ version check here } A: I can't find a nice way of doing it though wp_script_*, but you can go to the global directly: global $wp_scripts; $version = $wp_scripts->query( 'jquery' )->ver; Here the query returns the script's _WP_Dependency object, and then we can get the version from it. (Annoyingly wp_script_is( ..., 'registered' ) fetches the _WP_Dependency but then casts the result to a bool to return.) This only works for registered scripts; apologies I don't know the distinction, but AFAICS a script can only be queued if it's registered, and it's only the registered data that holds the version.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:448276", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159434" }
[ -0.0120697021484375, 0.01183319091796875, -0.07611083984375, -0.046478271484375, 0.032806396484375, -0.030548095703125, -0.0098114013671875, 0.025543212890625, 0.02227783203125, 0.007843017578125, -0.049346923828125, 0.01934814453125, -0.0670166015625, 0.0008602142333984375, -0.04803466796875, -0.06805419921875, 0.044158935546875, -0.03289794921875, 0.017547607421875, -0.003269195556640625, -0.01195526123046875, 0.0301361083984375, 0.03790283203125, 0.0679931640625, 0.023895263671875, -0.036285400390625, 0.1214599609375, -0.01215362548828125, 0.0230712890625, -0.031951904296875, 0.030792236328125, -0.0245361328125, 0.00162506103515625, 0.005603790283203125, 0.013427734375, -0.03094482421875, 0.025848388671875, 0.00315093994140625, 0.020599365234375, 0.002475738525390625, 0.021881103515625, -0.01031494140625, 0.020843505859375, 0.0017147064208984375, -0.02484130859375, -0.01837158203125, 0.0374755859375, 0.00887298583984375, 0.0008358955383300781, 0.06695556640625, -0.00018584728240966797, -0.058441162109375, 0.006328582763671875, 0.052398681640625, -0.00952911376953125, -0.04150390625, 0.0014934539794921875, 0.039947509765625, 0.017303466796875, 0.035186767578125, -0.012939453125, 0.028472900390625, -0.00908660888671875, -0.046173095703125, -0.019622802734375, 0.005649566650390625, 0.0221405029296875, 0.02740478515625, -0.0032558441162109375, -0.042510986328125, -0.0189361572265625, 0.016754150390625, -0.023193359375, -0.02496337890625, 0.004573822021484375, 0.00971221923828125, -0.0068817138671875, -0.024261474609375, 0.0010747909545898438, 0.02294921875, 0.01035308837890625, -0.012298583984375, -0.043365478515625, 0.0256805419921875, -0.0125274658203125, 0.04864501953125, -0.0166015625, -0.0166778564453125, -0.043182373046875, 0.027557373046875, -0.036651611328125, -0.0021495819091796875, 0.010101318359375, -0.0022182464599609375, -0.022613525390625, 0.02203369140625, 0.0628662109375, 0.0797119140625, -0.01033782958984375, 0.0166015625, 0.00238037109375, -0.058074951171875, 0.0296478271484375, -0.056060791015625, 0.005809783935546875, 0.047119140625, -0.00702667236328125, -0.049591064453125, 0.0026416778564453125, 0.01293182373046875, -0.00396728515625, -0.015625, 0.0134735107421875, -0.003910064697265625, -0.00986480712890625, -0.0259857177734375, -0.03448486328125, 0.0302276611328125, -0.004596710205078125, 0.01166534423828125, 0.01739501953125, 0.0479736328125, 0.0037403106689453125, -0.06689453125, 0.007732391357421875, -0.01349639892578125, -0.01557159423828125, -0.042266845703125, -0.0019378662109375, 0.0592041015625, -0.0279998779296875, 0.0020999908447265625, 0.03369140625, -0.0189361572265625, -0.031982421875, -0.024017333984375, 0.0198974609375, 0.0141448974609375, -0.0200347900390625, 0.01007080078125, -0.023681640625, -0.0163421630859375, 0.01806640625, -0.048431396484375, -0.042022705078125, 0.004978179931640625, 0.004467010498046875, 0.009429931640625, -0.00913238525390625, -0.0275726318359375, 0.0014314651489257812, -0.03656005859375, 0.036956787109375, 0.0005049705505371094, -0.017425537109375, -0.035125732421875, 0.03607177734375, -0.04119873046875, -0.00970458984375, -0.053985595703125, -0.0494384765625, -0.00865936279296875, 0.000537872314453125, -0.033966064453125, -0.0201263427734375, 0.014190673828125, 0.02593994140625, 0.006687164306640625, 0.0304412841796875, 0.022796630859375, -0.02557373046875, -0.047332763671875, 0.02667236328125, 0.009429931640625, -0.03448486328125, 0.042633056640625, 0.028411865234375, 0.02703857421875, 0.0158843994140625, 0.0097808837890625, -0.035003662109375, -0.03582763671875, 0.1004638671875, -0.05950927734375, -0.01331329345703125, -0.032196044921875, 0.0013437271118164062, -0.0270538330078125, 0.031402587890625, -0.000690460205078125, 0.055328369140625, -0.00106048583984375, -0.03924560546875, -0.0012845993041992188, -0.03424072265625, 0.0197906494140625, 0.0287933349609375, 0.049102783203125, -0.006999969482421875, -0.010406494140625, 0.05743408203125, 0.0179443359375, -0.00907135009765625, -0.04876708984375, -0.1243896484375, 0.004730224609375, -0.037017822265625, 0.048095703125, 0.00785064697265625, 0.0301361083984375, 0.01126861572265625, 0.0292510986328125, -0.052825927734375, 0.043212890625, 0.004383087158203125, 0.0160064697265625, -0.033843994140625, 0.0251312255859375, -0.009857177734375, 0.00042319297790527344, 0.00405120849609375, -0.028167724609375, 0.00688934326171875, -0.002094268798828125, -0.00977325439453125, -0.01345062255859375, -0.01983642578125, -0.00023806095123291016, 0.020538330078125, 0.0126190185546875, 0.0654296875, 0.01451873779296875, -0.00030112266540527344, 0.01529693603515625, -0.002651214599609375, -0.017974853515625, -0.00630950927734375, -0.09808349609375, 0.028564453125, 0.054962158203125, 0.033935546875, 0.0338134765625, -0.0019502639770507812, 0.0028209686279296875, 0.019287109375, -0.0574951171875, 0.009857177734375, -0.009490966796875, -0.024505615234375, 0.01473236083984375, -0.0072784423828125, 0.0247039794921875, 0.014190673828125, 0.01519775390625, -0.0294189453125, 0.043792724609375, 0.01293182373046875, 0.0360107421875, -0.007236480712890625, 0.005199432373046875, -0.006011962890625, 0.022125244140625, -0.004955291748046875, 0.01050567626953125, 0.039031982421875, -0.0201416015625, 0.04034423828125, 0.040496826171875, 0.0171051025390625, -0.034881591796875, 0.0096588134765625, -0.00004273653030395508, -0.00689697265625, 0.01019287109375, 0.0132904052734375, -0.009246826171875, -0.039459228515625, 0.00994873046875, -0.00040650367736816406, -0.0015249252319335938, -0.0161590576171875, -0.02081298828125, -0.02557373046875, 0.0015592575073242188, 0.00013315677642822266, -0.00923919677734375, 0.039764404296875, 0.024658203125, 0.0100555419921875, -0.003448486328125, 0.03497314453125, -0.0026493072509765625, -0.01416778564453125, 0.0022983551025390625, 0.0171661376953125, -0.04315185546875, 0.043975830078125, -0.03131103515625, 0.041015625, -0.0254058837890625, 0.033203125, 0.0526123046875, -0.0029582977294921875, 0.001247406005859375, -0.00441741943359375, 0.0117645263671875, 0.0208282470703125, -0.030853271484375, -0.03741455078125, -0.0085906982421875, -0.076171875, -0.0200347900390625, 0.019256591796875, 0.018798828125, 0.0026950836181640625, -0.0352783203125, -0.0091552734375, 0.00933837890625, -0.1251220703125, -0.1248779296875, -0.055084228515625, -0.040924072265625, 0.073486328125, -0.005340576171875, 0.00455474853515625, -0.0379638671875, 0.027435302734375, 0.036285400390625, -0.0377197265625, -0.0251007080078125, -0.058868408203125, -0.08856201171875, -0.07586669921875, 0.0193328857421875, 0.00258636474609375, 0.032073974609375, 0.01064300537109375, 0.043487548828125, 0.0081634521484375, -0.04278564453125, 0.0103759765625, 0.02105712890625, 0.0037059783935546875, 0.010345458984375, 0.0118865966796875, -0.037322998046875, -0.0595703125, 0.01284027099609375, -0.02081298828125, -0.0028476715087890625, -0.0024394989013671875, 0.005161285400390625, 0.0261383056640625, -0.04779052734375, 0.04437255859375, -0.003490447998046875, -0.06866455078125, -0.006267547607421875, 0.0638427734375, -0.05804443359375, -0.042938232421875, 0.0487060546875, -0.0042572021484375, 0.035369873046875, -0.035552978515625, -0.0234222412109375, 0.0499267578125, 0.0201416015625, -0.0175018310546875, -0.01168060302734375, 0.03167724609375, -0.0171966552734375, 0.047393798828125, -0.0219879150390625, -0.030914306640625, -0.031005859375, 0.057342529296875, -0.006072998046875, -0.006877899169921875, 0.0233001708984375, 0.0013532638549804688, -0.00606536865234375, -0.021026611328125, -0.031829833984375, -0.0072479248046875, 0.01355743408203125, -0.048583984375, 0.058563232421875, -0.047332763671875, -0.00872039794921875, -0.024749755859375, 0.07977294921875, 0.006214141845703125, -0.012939453125, 0.01343536376953125, -0.0012979507446289062, -0.042449951171875, -0.0234222412109375, -0.058868408203125, -0.00203704833984375, -0.034027099609375, 0.0113983154296875, -0.01082611083984375, 0.0007128715515136719, -0.02435302734375, -0.009063720703125, -0.036224365234375, -0.0252532958984375, 0.035614013671875, -0.049560546875, 0.0091094970703125, 0.02227783203125, -0.00855255126953125, -0.0120849609375, -0.021484375, -0.035552978515625, -0.081298828125, -0.0142974853515625, -0.07098388671875, 0.0816650390625, 0.03240966796875, -0.0119781494140625, -0.007808685302734375, 0.04107666015625, 0.0341796875, 0.03515625, 0.027740478515625, -0.021514892578125, 0.0240478515625, -0.0015192031860351562, 0.02886962890625, -0.035186767578125, -0.00913238525390625, -0.026947021484375, -0.08160400390625, -0.040771484375, -0.00957489013671875, 0.0162506103515625, 0.036834716796875, -0.036468505859375, 0.0084686279296875, -0.006755828857421875, 0.010009765625, -0.021270751953125, -0.017791748046875, -0.0006690025329589844, 0.0281982421875, 0.007709503173828125, 0.02508544921875, 0.0284576416015625, 0.0042724609375, -0.00604248046875, 0.0504150390625, 0.0221099853515625, -0.0338134765625, -0.0191650390625, 0.0102081298828125, 0.01338958740234375, 0.0170440673828125, 0.0328369140625, 0.01812744140625, 0.01035308837890625, -0.01453399658203125, 0.0020923614501953125, -0.01030731201171875, 0.052886962890625, 0.00699615478515625, 0.060791015625, 0.0130615234375, -0.0247650146484375, 0.06829833984375, -0.0533447265625, 0.01239776611328125, 0.0013608932495117188, -0.0005774497985839844, 0.0250091552734375, 0.0028533935546875, -0.0325927734375, 0.0125274658203125, 0.01058197021484375, -0.0311737060546875, 0.01335906982421875, -0.0257720947265625, 0.024322509765625, 0.01161956787109375, 0.003437042236328125, 0.008209228515625, 0.0357666015625, -0.01032257080078125, 0.02008056640625, 0.03753662109375, -0.0005478858947753906, 0.04425048828125, -0.0105133056640625, -0.0019969940185546875, -0.01568603515625, -0.0019626617431640625, 0.00640869140625, -0.0140838623046875, -0.054901123046875, 0.005367279052734375, 0.0013818740844726562, 0.0301513671875, 0.037109375, 0.06878662109375, 0.046966552734375, 0.0016412734985351562, -0.030303955078125, -0.0303497314453125, 0.044647216796875, 0.009124755859375, -0.042724609375, -0.01392364501953125, -0.0149993896484375, -0.00966644287109375, -0.01666259765625, 0.04693603515625, -0.0269775390625, 0.021148681640625, -0.006023406982421875, 0.058685302734375, 0.038482666015625, 0.0308380126953125, 0.01470184326171875, -0.03375244140625, 0.01284027099609375, -0.005889892578125, -0.0157928466796875, -0.01142120361328125, -0.00475311279296875, 0.0178070068359375, -0.0033359527587890625, -0.04541015625, -0.021270751953125, 0.050201416015625, 0.002178192138671875, -0.02783203125, 0.03680419921875, 0.01071929931640625, -0.0156707763671875, -0.0455322265625, -0.021697998046875, 0.059783935546875, 0.020355224609375, -0.007266998291015625, -0.05084228515625, -0.036041259765625, -0.027191162109375, 0.0280303955078125, -0.05108642578125, 0.0235443115234375, 0.020843505859375, -0.00864410400390625, -0.0226593017578125, -0.005977630615234375, -0.010986328125, 0.0191192626953125, -0.02239990234375, -0.0335693359375, 0.02960205078125, -0.0285186767578125, 0.02197265625, -0.038055419921875, 0.005672454833984375, -0.0098724365234375, 0.001712799072265625, 0.055145263671875, 0.048736572265625, -0.019439697265625, -0.03546142578125, -0.040740966796875, -0.0189361572265625, -0.00860595703125, -0.05975341796875, -0.0012998580932617188, 0.00008177757263183594, -0.0098876953125, 0.0240020751953125, -0.024932861328125, -0.022430419921875, 0.00829315185546875, 0.006397247314453125, -0.0089263916015625, 0.0209503173828125, -0.03216552734375, 0.065185546875, 0.0269622802734375, 0.0225067138671875, 0.006092071533203125, 0.02569580078125, -0.015411376953125, -0.0047760009765625, -0.005016326904296875, -0.035797119140625, 0.03173828125, -0.0283050537109375, 0.042236328125, -0.021240234375, 0.005184173583984375, 0.007625579833984375, 0.01348876953125, -0.00035691261291503906, 0.004970550537109375, -0.0008192062377929688, 0.025390625, 0.013092041015625, -0.008514404296875, 0.0921630859375, -0.034515380859375, -0.040740966796875, -0.00473785400390625, 0.00763702392578125, 0.0157470703125, -0.01319122314453125, -0.0193634033203125, 0.0162506103515625, -0.06298828125, 0.030487060546875, 0.01837158203125, 0.039581298828125, 0.039886474609375, -0.02734375, 0.02337646484375, 0.004932403564453125, -0.02392578125, -0.050445556640625, 0.019012451171875, 0.0006775856018066406, -0.013580322265625, 0.020721435546875, 0.00020587444305419922, 0.01500701904296875, 0.00180816650390625, -0.017730712890625, 0.027587890625, 0.00711822509765625, 0.0211334228515625, 0.0233306884765625, -0.03662109375, -0.04376220703125, -0.038848876953125, 0.0243072509765625, 0.0015134811401367188, 0.09564208984375, -0.00888824462890625, -0.0189056396484375, 0.0341796875, -0.045623779296875, -0.028778076171875, -0.03656005859375, 0.0113677978515625, 0.032257080078125, 0.01105499267578125, 0.03924560546875, -0.0189056396484375, 0.02166748046875, -0.007579803466796875, 0.00458526611328125, -0.005664825439453125, -0.0164031982421875, -0.032684326171875, 0.00707244873046875, -0.033660888671875, -0.007568359375, 0.021148681640625, 0.016265869140625, 0.034759521484375, 0.046600341796875, 0.005107879638671875, -0.0211334228515625, 0.01995849609375, -0.0321044921875, 0.0027103424072265625, -0.0163116455078125, -0.0005006790161132812, 0.0217437744140625, -0.036895751953125, 0.00814056396484375, -0.02215576171875, 0.01488494873046875, 0.0014810562133789062, 0.0098114013671875, 0.054962158203125, -0.061248779296875, 0.00421905517578125, 0.0286102294921875, 0.03948974609375, -0.0005326271057128906, -0.020721435546875, 0.0283355712890625, -0.09063720703125, -0.06695556640625, 0.005107879638671875, -0.08782958984375, -0.0517578125, -0.039154052734375, -0.0288238525390625, 0.10235595703125, -0.006504058837890625, 0.0002846717834472656, 0.01239013671875, 0.045318603515625, -0.018463134765625, 0.022552490234375, -0.02862548828125, 0.0256805419921875, 0.00704193115234375, 0.0538330078125, -0.0310211181640625, -0.01067352294921875, 0.022491455078125, 0.039154052734375, -0.0155792236328125, -0.0190582275390625, 0.03253173828125, -0.00139617919921875, 0.0278472900390625, 0.06390380859375, 0.0243988037109375, -0.036773681640625, 0.01123046875, 0.006763458251953125, 0.00920867919921875, -0.00727081298828125, 0.03564453125, -0.046966552734375, -0.0038623809814453125, 0.020721435546875, 0.0231781005859375, 0.0304718017578125, -0.02227783203125, 0.0257568359375, -0.002323150634765625, -0.0131072998046875, 0.009490966796875, 0.033966064453125, 0.0188140869140625, -0.0102691650390625, -0.02880859375, 0.03662109375, 0.0004589557647705078, 0.0057373046875, 0.0104827880859375, -0.024658203125, -0.0265045166015625, 0.00482940673828125, 0.0008740425109863281, -0.005298614501953125, 0.007171630859375, -0.0169830322265625, 0.02227783203125, -0.00582122802734375, 0.037689208984375, 0.00893402099609375, 0.0166168212890625, -0.00933074951171875, 0.040435791015625, -0.0036563873291015625, 0.0213775634765625, -0.04046630859375, -0.02630615234375, 0.0196533203125, 0.03515625, -0.016021728515625, -0.0030269622802734375, -0.00859832763671875, -0.058349609375, 0.020416259765625, -0.0251007080078125, -0.0157470703125, 0.024627685546875, 0.0183563232421875, -0.00006747245788574219, -0.02386474609375, 0.0094757080078125, -0.0093841552734375, -0.023223876953125, 0.036712646484375, 0.00919342041015625, 0.045806884765625, -0.0139312744140625, 0.029632568359375, -0.05975341796875, -0.0159759521484375, -0.01021575927734375, 0.01953125, 0.0173797607421875, 0.01043701171875, -0.0321044921875, -0.0204315185546875, 0.0254974365234375, 0.045989990234375, 0.025634765625, -0.045074462890625, 0.016357421875, 0.028594970703125, -0.03857421875, 0.01110076904296875, 0.07666015625, 0.0012578964233398438, 0.016357421875, -0.02301025390625, 0.0450439453125, 0.023101806640625, 0.00213623046875, -0.006011962890625, 0.061431884765625, 0.0201263427734375, -0.04107666015625, 0.0250244140625, -0.006290435791015625, -0.041839599609375, 0.018280029296875, 0.002178192138671875, 0.0712890625, -0.0110321044921875, -0.01422119140625, -0.001529693603515625, 0.017120361328125, 0.01062774658203125, -0.026763916015625, 0.0167083740234375, -0.012176513671875, 0.037811279296875, 0.060028076171875, -0.0181884765625, 0.020782470703125, -0.0006003379821777344, 0.02044677734375, 0.0005965232849121094, 0.02294921875, 0.0244140625, 0.022247314453125, 0.00818634033203125, 0.02813720703125, 0.017364501953125, 0.029693603515625, -0.0201568603515625, 0.01045989990234375, 0.0182037353515625, 0.0450439453125, -0.01194000244140625, -0.007373809814453125, -0.01049041748046875, 0.0278778076171875, -0.0555419921875, 0.008087158203125, 0.0162811279296875, -0.0509033203125, 0.020355224609375, 0.01354217529296875, 0.01113128662109375, 0.007358551025390625, -0.01763916015625, 0.0279388427734375, 0.0162200927734375, -0.0189666748046875, -0.047821044921875, -0.02264404296875, 0.01983642578125, 0.013946533203125, -0.0244140625, -0.049774169921875, -0.015869140625, -0.039642333984375, 0.0020885467529296875, -0.07080078125, -0.0015497207641601562, 0.02130126953125, -0.03411865234375, 0.0083465576171875, 0.05120849609375, 0.033233642578125, 0.0113983154296875, -0.02276611328125, 0.030548095703125, 0.0149993896484375, 0.006023406982421875, -0.009796142578125, 0.026519775390625, 0.0207672119140625, 0.0288543701171875, 0.046356201171875, -0.0086517333984375, 0.0159454345703125, 0.0204010009765625, -0.008697509765625, -0.00847625732421875, -0.036712646484375, -0.01416015625, -0.028411865234375, -0.00487518310546875, -0.013580322265625, 0.0238494873046875, -0.024017333984375, 0.0750732421875, 0.0144500732421875, 0.040252685546875, -0.0018711090087890625, -0.0352783203125, 0.0260772705078125, -0.053466796875, 0.0290374755859375, 0.001922607421875, 0.06475830078125, -0.0209503173828125, -0.024444580078125, -0.05010986328125, -0.0176239013671875, -0.0230255126953125, 0.06494140625, 0.009796142578125, 0.0182037353515625, 0.028900146484375, -0.039154052734375, 0.022979736328125, -0.0152587890625, 0.0097198486328125, 0.04083251953125, 0.0234832763671875, -0.007610321044921875, 0.01389312744140625, -0.00910186767578125, -0.013763427734375, -0.042236328125, 0.0171356201171875, -0.0689697265625, -0.03778076171875, -0.019195556640625, 0.0245819091796875, 0.030181884765625, -0.024932861328125, -0.07586669921875, 0.02789306640625, -0.018798828125, -0.0362548828125, -0.08026123046875, -0.000038564205169677734, 0.01812744140625, 0.00576019287109375, -0.0292510986328125, -0.01374053955078125, -0.050048828125, 0.0193328857421875, -0.0023174285888671875, 0.0355224609375, 0.01070404052734375, -0.00897216796875, -0.06378173828125, -0.016387939453125, -0.018157958984375, 0.02069091796875, -0.030853271484375, -0.00313568115234375, -0.00916290283203125, 0.0213623046875, -0.02178955078125, -0.04266357421875, 0.0020923614501953125, 0.00011605024337768555, -0.00943756103515625, -0.0205230712890625, -0.017486572265625, -0.010528564453125, 0.09375, 0.01251983642578125, 0.0205078125, -0.032958984375, -0.006805419921875, -0.00966644287109375, 0.0018930435180664062, 0.01413726806640625, 0.00021898746490478516, -0.01690673828125, 0.0163116455078125, -0.015655517578125, -0.03070068359375, -0.034820556640625, -0.0229949951171875, -0.060333251953125, -0.009674072265625, -0.021942138671875, 0.01535797119140625, 0.00826263427734375, -0.04681396484375, 0.062255859375, -0.0169830322265625, 0.0307769775390625, 0.01175689697265625, 0.03076171875, 0.056488037109375, 0.0552978515625, 0.0295867919921875, 0.0229644775390625, -0.050445556640625, 0.010498046875, 0.00948333740234375, -0.0158538818359375, -0.027252197265625, -0.01947021484375, 0.006031036376953125, -0.00984954833984375, 0.007045745849609375, -0.015838623046875, -0.0263671875, -0.014190673828125, -0.029815673828125, -0.0007953643798828125, -0.0357666015625, 0.0173492431640625, -0.0150909423828125, -0.004207611083984375, -0.0191802978515625, 0.0231475830078125, 0.036285400390625, -0.020904541015625, -0.0023250579833984375, 0.00982666015625, -0.058074951171875, -0.034881591796875, 0.0161590576171875, -0.05419921875, -0.0246124267578125, 0.01418304443359375 ]
f4da0c1d55d4b7efcdd0a32b588d8afd7ab1c214
Wordpress Stackexchange Q: How to disable autocomplete on the wp-login.php page It looks like there is not an easy way to add autocomplete="off" to the password input on the WordPress login page without editing the wp-login.php page directly. Is there something I'm missing? I do not want to modify core files. A: Your only solution (without modifying core files) is to use JavaScript. function wpse_159462_login_form() { echo <<<html <script> document.getElementById( "user_pass" ).autocomplete = "off"; </script> html; } add_action( 'login_form', 'wpse_159462_login_form' ); Having said that, if you're not the only one that will be signing in I would advise against disabling autocomplete, it will almost certainly **** people off.
Q: How to disable autocomplete on the wp-login.php page It looks like there is not an easy way to add autocomplete="off" to the password input on the WordPress login page without editing the wp-login.php page directly. Is there something I'm missing? I do not want to modify core files. A: Your only solution (without modifying core files) is to use JavaScript. function wpse_159462_login_form() { echo <<<html <script> document.getElementById( "user_pass" ).autocomplete = "off"; </script> html; } add_action( 'login_form', 'wpse_159462_login_form' ); Having said that, if you're not the only one that will be signing in I would advise against disabling autocomplete, it will almost certainly **** people off. A: Here is a solution with PHP only I come up with: function disable_autofill_password($safe_text, $text) { if($safe_text === 'user_pass') { $safe_text .= '" autocomplete="new-password'; } return $safe_text; } add_filter('attribute_escape', 'disable_autofill_password', 10, 2); It's a little hack of the esc_attr filter, it close the id attribute of the password input then add the autocomplete attribute (the new-password value is used for Chrome). A: If anyone cares this is a solution that worked for me if ( $GLOBALS['pagenow'] === 'wp-login.php' ) { ob_start(); } add_action('login_form', function($args) { $login = ob_get_contents(); ob_clean(); $login = str_replace('id="user_pass"', 'id="user_pass" autocomplete="off"', $login); $login = str_replace('id="user_login"', 'id="user_login" autocomplete="off"', $login); echo $login; }, 9999); A: someone has made a plugin to do just that, it's not on WordPress plugins but it's pretty simple and works a treat. Good practice to have a look at the source if you're unsure about plugins not listed on wp plugins, I did and there's nothing nasty in it. see the code here: https://www.buzelac.com/2014/10/disabling-wordpress-login-password-autocomplete/ or download the plugin here: https://www.buzelac.com/wp-content/uploads/2015/05/disable-login-autocomplete.zip there's not a lot to it, it simply replaces the 'id="user_pass"' with 'id="user_pass" autocomplete="off"' when the login form is generated: $content = str_replace('id="user_pass"', 'id="user_pass" autocomplete="off"', $content); A: Try PHP Output Buffering: add_action('login_header', function () { ob_start(); }); add_action('login_footer', function () { $content = ob_get_clean(); $content = str_replace(' name="log"', ' name="log" autocomplete="off"', $content); $content = str_replace(' name="pwd"', ' name="pwd" autocomplete="off"', $content); echo $content; }); A: Open your wp-login.php & add autocomplete="off" in "Username" field. Find form named loginform & add as: class="input" value="" size="20" autocomplete="off"/>
wordpress
{ "language": "en", "length": 356, "provenance": "stackexchange_00019.jsonl.gz:448283", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159462" }
[ 0.06793212890625, -0.00952911376953125, 0.006900787353515625, 7.748603820800781e-7, 0.01434326171875, -0.05902099609375, 0.0855712890625, -0.0161285400390625, 0.00801849365234375, 0.0195770263671875, -0.0141754150390625, -0.01499176025390625, -0.00653839111328125, -0.021697998046875, -0.0160064697265625, -0.0382080078125, -0.005733489990234375, 0.013336181640625, 0.01041412353515625, -0.0250091552734375, 0.01629638671875, -0.0306396484375, -0.0036067962646484375, -0.0276031494140625, -0.00843048095703125, -0.025360107421875, 0.10052490234375, -0.0017681121826171875, 0.030120849609375, 0.0200347900390625, 0.0240325927734375, -0.057403564453125, 0.007526397705078125, 0.0272064208984375, -0.03057861328125, -0.032928466796875, -0.036529541015625, 0.029449462890625, -0.0032196044921875, -0.0015745162963867188, 0.0214080810546875, -0.0151824951171875, -0.051300048828125, -0.00858306884765625, -0.05218505859375, -0.018157958984375, 0.0105133056640625, 0.004444122314453125, 0.0361328125, -0.024261474609375, -0.006908416748046875, 0.052093505859375, 0.0221710205078125, -0.0245513916015625, -0.005992889404296875, 0.01013946533203125, -0.05902099609375, 0.01294708251953125, 0.045501708984375, 0.042266845703125, -0.00926971435546875, -0.06005859375, 0.00783538818359375, -0.057098388671875, -0.0025997161865234375, -0.00579833984375, -0.04449462890625, 0.0227508544921875, 0.0158538818359375, -0.0014476776123046875, -0.004974365234375, -0.0253143310546875, 0.021759033203125, -0.0004661083221435547, -0.002490997314453125, -0.007160186767578125, -0.02239990234375, 0.004730224609375, 0.048828125, -0.01290130615234375, -0.00838470458984375, 0.003284454345703125, -0.044830322265625, -0.0408935546875, 0.0213470458984375, -0.017242431640625, -0.0095977783203125, -0.007732391357421875, 0.00002300739288330078, -0.010467529296875, -0.01462554931640625, 0.0006232261657714844, -0.01448822021484375, 0.0284423828125, -0.021087646484375, 0.0031032562255859375, 0.0167236328125, 0.0323486328125, 0.0063018798828125, 0.0005049705505371094, 0.014312744140625, -0.0413818359375, 0.0078277587890625, -0.0207061767578125, -0.01190948486328125, 0.06378173828125, -0.008636474609375, 0.0101318359375, 0.004245758056640625, 0.021270751953125, 0.031097412109375, -0.07318115234375, -0.02691650390625, -0.04986572265625, 0.00980377197265625, 0.040863037109375, -0.035186767578125, 0.02197265625, 0.0170135498046875, 0.0216827392578125, -0.06646728515625, -0.044647216796875, -0.0096893310546875, 0.0030307769775390625, 0.01953125, -0.0240631103515625, -0.0010662078857421875, 0.041778564453125, -0.02276611328125, -0.0113525390625, -0.04998779296875, 0.01355743408203125, 0.09967041015625, 0.06671142578125, 0.03265380859375, -0.0223541259765625, 0.00794219970703125, -0.00411224365234375, -0.0174713134765625, 0.05316162109375, -0.016937255859375, -0.0875244140625, -0.0254058837890625, 0.007266998291015625, -0.0041046142578125, 0.0092620849609375, 0.0293731689453125, 0.03125, -0.002063751220703125, -0.0394287109375, 0.0193939208984375, -0.00897979736328125, -0.0161590576171875, 0.043853759765625, 0.01404571533203125, 0.053497314453125, 0.0391845703125, 0.006931304931640625, -0.0350341796875, -0.0037937164306640625, 0.03350830078125, -0.006206512451171875, 0.0012578964233398438, 0.0307159423828125, -0.016204833984375, 0.00348663330078125, -0.00617218017578125, 0.0008893013000488281, 0.030242919921875, -0.020751953125, 0.034149169921875, -0.03662109375, 0.043731689453125, 0.0206298828125, 0.01287078857421875, 0.03448486328125, 0.01279449462890625, 0.038299560546875, 0.01064300537109375, 0.0226898193359375, 0.0110931396484375, -0.030853271484375, 0.054901123046875, 0.0006532669067382812, -0.05694580078125, 0.037750244140625, -0.0005421638488769531, 0.038360595703125, 0.0200958251953125, 0.00530242919921875, 0.05023193359375, 0.0235748291015625, -0.00414276123046875, 0.022003173828125, -0.002223968505859375, -0.059722900390625, -0.0169677734375, -0.0284881591796875, -0.01047515869140625, 0.033111572265625, 0.0667724609375, -0.035369873046875, 0.0016193389892578125, -0.0556640625, -0.07598876953125, -0.039031982421875, -0.0088653564453125, 0.01427459716796875, -0.006381988525390625, 0.0046539306640625, 0.0159759521484375, -0.0225372314453125, 0.0015134811401367188, -0.0156402587890625, -0.0275115966796875, -0.01552581787109375, -0.0256805419921875, 0.07611083984375, 0.00023114681243896484, 0.072265625, -0.01348876953125, -0.046600341796875, 0.007415771484375, -0.022674560546875, 0.035675048828125, -0.00893402099609375, -0.032501220703125, -0.0267181396484375, 0.00919342041015625, -0.043731689453125, 0.032470703125, 0.097900390625, -0.0174407958984375, 0.005008697509765625, -0.032440185546875, -0.01378631591796875, -0.0283355712890625, -0.042938232421875, -0.006900787353515625, 0.049041748046875, 0.04815673828125, 0.044586181640625, 0.017822265625, 0.0218048095703125, 0.0682373046875, -0.023773193359375, 0.00860595703125, 0.00592041015625, 0.0235443115234375, 0.060577392578125, -0.019073486328125, 0.0102386474609375, 0.0149383544921875, -0.01390838623046875, -0.0005640983581542969, 0.04058837890625, -0.04498291015625, 0.014556884765625, 0.038787841796875, -0.058624267578125, -0.00351715087890625, -0.087890625, 0.0076751708984375, -0.045928955078125, 0.014984130859375, -0.0230865478515625, -0.0005402565002441406, -0.01039886474609375, -0.0245819091796875, 0.00240325927734375, 0.038787841796875, -0.024932861328125, -0.006015777587890625, -0.004062652587890625, 0.0479736328125, -0.06610107421875, -0.03656005859375, 0.01271820068359375, -0.01444244384765625, -0.0249481201171875, -0.01141357421875, -0.0343017578125, -0.0038909912109375, 0.010528564453125, 0.023529052734375, -0.048583984375, 0.046142578125, 0.0513916015625, -0.027587890625, -0.016693115234375, 0.020599365234375, -0.003505706787109375, -0.01497650146484375, -0.01288604736328125, 0.01194000244140625, -0.026275634765625, -0.0014753341674804688, -0.021514892578125, 0.031646728515625, -0.0220489501953125, 0.040374755859375, 0.06463623046875, -0.00902557373046875, 0.025482177734375, 0.00653839111328125, -0.0257110595703125, 0.006443023681640625, -0.0022373199462890625, -0.007411956787109375, 0.0249786376953125, -0.0809326171875, 0.0262603759765625, 0.005237579345703125, 0.0261688232421875, -0.0180511474609375, -0.03466796875, 0.00711822509765625, 0.01314544677734375, -0.03900146484375, -0.055267333984375, -0.00823974609375, -0.048004150390625, -0.0177001953125, -0.0029926300048828125, -0.02197265625, 0.0021724700927734375, 0.0301513671875, 0.0018587112426757812, -0.0186920166015625, -0.023223876953125, -0.029327392578125, -0.0494384765625, -0.024139404296875, 0.0037288665771484375, -0.0049591064453125, 0.0009131431579589844, 0.006999969482421875, 0.0992431640625, 0.0098419189453125, -0.0302276611328125, 0.00426483154296875, -0.0158233642578125, -0.018829345703125, 0.00804901123046875, -0.000052034854888916016, -0.0199432373046875, 0.03497314453125, -0.002201080322265625, -0.0416259765625, -0.0089111328125, 0.031646728515625, -0.0294036865234375, 0.0231475830078125, -0.005306243896484375, 0.0323486328125, 0.0229034423828125, -0.034271240234375, -0.004302978515625, -0.0011167526245117188, -0.047332763671875, 0.0106048583984375, 0.0024890899658203125, -0.0233917236328125, 0.0032176971435546875, 0.00537109375, -0.0256805419921875, 0.01204681396484375, -0.01073455810546875, -0.0223846435546875, -0.0004870891571044922, -0.03125, -0.0163116455078125, 0.048797607421875, -0.004650115966796875, -0.0043487548828125, 0.018310546875, 0.05023193359375, -0.0218353271484375, -0.0062255859375, 0.01209259033203125, 0.003978729248046875, 0.0141448974609375, -0.048309326171875, -0.01788330078125, -0.061431884765625, 0.0638427734375, -0.017730712890625, -0.0458984375, -0.0177764892578125, -0.0237274169921875, 0.0183563232421875, 0.10186767578125, -0.0261688232421875, -0.007381439208984375, -0.0015535354614257812, 0.0201568603515625, -0.053924560546875, -0.043914794921875, -0.04296875, -0.01194000244140625, -0.059539794921875, -0.019683837890625, -0.0240020751953125, -0.032867431640625, 0.0273895263671875, -0.056915283203125, -0.00453948974609375, -0.045135498046875, 0.0137939453125, -0.0162506103515625, -0.0009737014770507812, -0.005096435546875, -0.026458740234375, -0.0250701904296875, 0.006504058837890625, -0.031341552734375, -0.06475830078125, -0.0011472702026367188, -0.034942626953125, 0.032470703125, 0.021881103515625, -0.01523590087890625, -0.0105133056640625, 0.026641845703125, 0.0244293212890625, -0.0167236328125, 0.04608154296875, 0.0007486343383789062, 0.0026454925537109375, 0.0321044921875, 0.032562255859375, -0.01385498046875, -0.0090789794921875, 0.00568389892578125, -0.0132293701171875, 0.0155487060546875, -0.01145172119140625, -0.0279998779296875, 0.03857421875, -0.027374267578125, -0.0078277587890625, -0.029266357421875, -0.055023193359375, 0.00206756591796875, -0.03619384765625, 0.0013475418090820312, -0.031982421875, -0.03009033203125, 0.0667724609375, 0.033966064453125, -0.002044677734375, -0.01959228515625, 0.042022705078125, 0.0016021728515625, -0.043426513671875, 0.01384735107421875, 0.02215576171875, 0.0138702392578125, 0.01520538330078125, 0.00385284423828125, -0.04302978515625, -0.03314208984375, 0.06646728515625, -0.0308837890625, 0.00592041015625, -0.02545166015625, 0.02691650390625, -0.01029205322265625, -0.037689208984375, 0.0333251953125, -0.01654052734375, -0.00794219970703125, 0.021331787109375, 0.0298919677734375, -0.01117706298828125, 0.03985595703125, -0.0031681060791015625, 0.0099945068359375, -0.05181884765625, 0.01128387451171875, -0.0531005859375, 0.013671875, 0.0166473388671875, -0.04620361328125, 0.0009431838989257812, -0.00809478759765625, -0.021514892578125, -0.0251617431640625, -0.022064208984375, -0.016143798828125, -0.0269317626953125, -0.01334381103515625, 0.0186309814453125, -0.027435302734375, -0.0272216796875, 0.0013256072998046875, -0.02740478515625, 0.087890625, -0.01824951171875, -0.061004638671875, 0.02154541015625, -0.036529541015625, 0.038909912109375, 0.046173095703125, -0.0002486705780029297, 0.05084228515625, 0.0088958740234375, -0.0312347412109375, -0.0017328262329101562, -0.007587432861328125, -0.021240234375, -0.054473876953125, -0.0250701904296875, 0.0112457275390625, -0.0283660888671875, 0.01788330078125, 0.018096923828125, 0.0023288726806640625, 0.016998291015625, -0.013824462890625, -0.032073974609375, -0.0150299072265625, 0.0155029296875, 0.0183563232421875, 0.0140838623046875, 0.01947021484375, -0.0249481201171875, 0.07537841796875, -0.040771484375, -0.044281005859375, 0.011810302734375, 0.028839111328125, 0.008758544921875, 0.0224456787109375, -0.0012788772583007812, 0.0175933837890625, 0.021453857421875, 0.05145263671875, -0.0172882080078125, -0.0780029296875, -0.004016876220703125, 0.01045989990234375, 0.0165557861328125, -0.0833740234375, 0.006328582763671875, -0.003475189208984375, -0.031951904296875, -0.0284576416015625, 0.06683349609375, -0.054840087890625, -0.02337646484375, -0.0154876708984375, -0.040557861328125, -0.026031494140625, -0.0015811920166015625, -0.051361083984375, -0.001392364501953125, -0.00467681884765625, -0.00479888916015625, 0.0011444091796875, -0.00970458984375, 0.00934600830078125, -0.015960693359375, 0.013916015625, 0.0250701904296875, 0.01666259765625, -0.00194549560546875, -0.03900146484375, -0.034149169921875, -0.02935791015625, -0.051544189453125, -0.01496124267578125, -0.046600341796875, -0.025848388671875, -0.033233642578125, 0.00885772705078125, -0.00872039794921875, 0.01026153564453125, -0.00344085693359375, 0.0150604248046875, -0.0245208740234375, 0.0184478759765625, -0.0014810562133789062, 0.024139404296875, -0.018768310546875, 0.044097900390625, 0.012664794921875, -0.002048492431640625, 0.01201629638671875, 0.0574951171875, 0.0258331298828125, -0.0292510986328125, 0.035797119140625, -0.048431396484375, -0.06884765625, -0.03277587890625, -0.058349609375, 0.0283203125, 0.056884765625, -0.033447265625, -0.0171661376953125, -0.01203155517578125, 0.007755279541015625, -0.0249786376953125, 0.035003662109375, -0.00778961181640625, -0.0260009765625, 0.006114959716796875, 0.0107421875, 0.051025390625, -0.0244598388671875, -0.064453125, 0.04937744140625, 0.00606536865234375, 0.051055908203125, 0.0019931793212890625, -0.04345703125, 0.056304931640625, 0.044647216796875, -0.005580902099609375, 0.0300140380859375, 0.0173797607421875, 0.0152130126953125, 0.019256591796875, 0.0250091552734375, -0.035919189453125, -0.030059814453125, 0.0163726806640625, 0.012481689453125, -0.0183258056640625, 0.0127410888671875, -0.0154571533203125, 0.011871337890625, 0.059814453125, 0.068115234375, -0.07110595703125, 0.01513671875, 0.0105743408203125, -0.02099609375, 0.0294342041015625, -0.0033206939697265625, -0.0177154541015625, -0.0215301513671875, 0.055084228515625, -0.0247650146484375, -0.0193328857421875, 0.02056884765625, -0.0106658935546875, -0.0193939208984375, 0.043914794921875, -0.003719329833984375, 0.019134521484375, -0.044464111328125, 0.01294708251953125, 0.036651611328125, 0.026153564453125, -0.0087432861328125, -0.00005418062210083008, 0.01180267333984375, -0.044708251953125, -0.0909423828125, -0.018798828125, -0.008575439453125, -0.049560546875, 0.06817626953125, 0.0009589195251464844, 0.0245208740234375, 0.037261962890625, -0.004199981689453125, 0.017791748046875, -0.01995849609375, 0.00904083251953125, 0.0389404296875, -0.06231689453125, -0.0169677734375, 0.02557373046875, -0.055389404296875, 0.017425537109375, 0.02227783203125, -0.033905029296875, -0.00167083740234375, -0.01555633544921875, 0.06488037109375, 0.02008056640625, -0.040435791015625, 0.02490234375, -0.028778076171875, -0.0007677078247070312, -0.0239105224609375, 0.031646728515625, -0.02362060546875, 0.024383544921875, -0.01454925537109375, -0.004180908203125, 0.0014362335205078125, -0.029876708984375, -0.042755126953125, 0.0958251953125, -0.005832672119140625, 0.0012311935424804688, -0.01195526123046875, 0.047882080078125, -0.0160064697265625, 0.036407470703125, -0.0218505859375, 0.06158447265625, 0.01515960693359375, 0.029571533203125, 0.014434814453125, 0.00691986083984375, 0.0303497314453125, 0.0027637481689453125, -0.002338409423828125, 0.0023326873779296875, 0.01611328125, -0.027496337890625, 0.0144500732421875, 0.038543701171875, 0.00445556640625, -0.00008511543273925781, 0.03448486328125, 0.038665771484375, 0.049041748046875, -0.075439453125, 0.011260986328125, -0.031219482421875, 0.0340576171875, 0.050140380859375, -0.0027446746826171875, -0.0187835693359375, -0.0068206787109375, 0.01715087890625, -0.05267333984375, 0.005329132080078125, 0.0177001953125, 0.05767822265625, 0.0070037841796875, 0.03961181640625, 0.033721923828125, -0.00847625732421875, -0.0112152099609375, -0.0227508544921875, 0.045013427734375, 0.025665283203125, 0.01123046875, 0.01393890380859375, 0.0231170654296875, -0.0171356201171875, 0.02142333984375, 0.02020263671875, 0.034149169921875, -0.0247802734375, 0.010650634765625, -0.0152740478515625, 0.033782958984375, -0.032562255859375, 0.0244140625, 0.0291900634765625, 0.01110076904296875, -0.01525115966796875, -0.038848876953125, 0.0201263427734375, 0.01812744140625, 0.022491455078125, 0.00920867919921875, 0.0535888671875, -0.044281005859375, 0.0074615478515625, 0.045135498046875, 0.004787445068359375, -0.0004591941833496094, -0.034271240234375, 0.02203369140625, 0.08441162109375, -0.00888824462890625, 0.048980712890625, 0.006687164306640625, 0.015777587890625, -0.00568389892578125, -0.01461029052734375, -0.0199127197265625, 0.028167724609375, 0.003330230712890625, 0.0203857421875, -0.030792236328125, 0.03753662109375, 0.018218994140625, 0.0296783447265625, -0.045867919921875, -0.007740020751953125, -0.004421234130859375, 0.042083740234375, 0.001018524169921875, -0.0084991455078125, 0.029571533203125, 0.0253753662109375, -0.037750244140625, -0.034423828125, 0.0222930908203125, -0.019012451171875, 0.0010662078857421875, -0.006687164306640625, 0.0287933349609375, 0.044158935546875, 0.004791259765625, -0.017486572265625, 0.048553466796875, 0.048370361328125, 0.0240325927734375, -0.012725830078125, 0.0077972412109375, -0.0288543701171875, -0.005802154541015625, -0.021148681640625, -0.003871917724609375, 0.01959228515625, -0.058197021484375, 0.01568603515625, -0.050628662109375, -0.057861328125, 0.0257568359375, 0.0295867919921875, -0.015716552734375, 0.014434814453125, 0.022796630859375, -0.00798797607421875, 0.0008082389831542969, -0.00913238525390625, -0.0045166015625, -0.06268310546875, 0.017578125, -0.037445068359375, -0.08148193359375, -0.030059814453125, -0.031097412109375, 0.008453369140625, 0.0019407272338867188, 0.0323486328125, 0.0294036865234375, 0.004055023193359375, -0.004390716552734375, -0.01322174072265625, 0.011138916015625, -0.0028400421142578125, 0.00020873546600341797, 0.00286865234375, -0.01035308837890625, -0.00012409687042236328, -0.057861328125, 0.0965576171875, -0.033416748046875, 0.057708740234375, 0.107177734375, -0.053558349609375, -0.015838623046875, -0.0027561187744140625, 0.0036716461181640625, -0.033294677734375, -0.0194549560546875, -0.00078582763671875, 0.011474609375, -0.0104217529296875, -0.0276947021484375, -0.0120849609375, 0.03363037109375, -0.041412353515625, 0.00406646728515625, 0.0125274658203125, -0.0210113525390625, -0.0102386474609375, 0.01222991943359375, -0.038177490234375, 0.039306640625, -0.0225067138671875, -0.0306549072265625, 0.0017690658569335938, 0.00942230224609375, -0.056640625, 0.0019855499267578125, -0.0200958251953125, -0.0213623046875, 0.0748291015625, 0.051177978515625, 0.031982421875, 0.0159912109375, -0.00653839111328125, -0.050140380859375, 0.01311492919921875, -0.041900634765625, -0.032196044921875, -0.030914306640625, -0.0257415771484375, 0.0123291015625, -0.019744873046875, -0.06793212890625, -0.025634765625, 0.03338623046875, 0.026153564453125, -0.0028667449951171875, -0.052581787109375, 0.01297760009765625, -0.0255584716796875, 0.07965087890625, -0.0085601806640625, -0.00901031494140625, 0.0091552734375, 0.037506103515625, -0.0200958251953125, 0.004222869873046875, -0.0259857177734375, -0.006710052490234375, -0.006011962890625, -0.015594482421875, 0.0384521484375, 0.01068878173828125, 0.00241851806640625, -0.024078369140625, -0.03582763671875, 0.021331787109375, -0.07354736328125, -0.0273284912109375, 0.024932861328125, -0.01184844970703125, 0.017486572265625, -0.0213470458984375, -0.0218505859375, -0.01345062255859375, 0.0016765594482421875, -0.0282745361328125, 0.0015277862548828125, 0.0148162841796875, -0.041778564453125, -0.1002197265625, -0.00027942657470703125, -0.01055908203125, -0.0484619140625, -0.015655517578125, 0.0013790130615234375, 0.00481414794921875, -0.03277587890625, -0.0089874267578125, -0.043365478515625, -0.0251922607421875, 0.0215911865234375, 0.0282135009765625, 0.042449951171875, -0.00853729248046875, 0.059051513671875, -0.039459228515625, 0.0626220703125, 0.03179931640625, 0.01166534423828125, 0.00836944580078125, 0.00888824462890625, 0.0101776123046875, 0.040252685546875, -0.040008544921875, 0.01398468017578125, -0.01435089111328125, 0.0235443115234375, -0.002086639404296875, -0.005889892578125, -0.0011157989501953125, 0.0131683349609375, 0.0189208984375, 0.052001953125, 0.00817108154296875, -0.03399658203125, -0.020050048828125, -0.02789306640625, 0.0238800048828125, -0.006580352783203125, -0.00347900390625, -0.029296875, -0.00521087646484375, -0.0010271072387695312, 0.003299713134765625, 0.00585174560546875, -0.04046630859375, -0.0119171142578125, -0.0144805908203125, 0.007808685302734375, 0.01435089111328125, 0.0090484619140625, 0.02996826171875, 0.028778076171875, -0.0400390625, -0.032440185546875, 0.019744873046875, -0.003406524658203125, -0.0115509033203125, -0.005779266357421875, -0.00506591796875, 0.022613525390625, -0.00473785400390625, 0.0104827880859375, 0.01123046875, 0.00705718994140625, -0.01123809814453125, 0.0079193115234375, -0.028900146484375, 0.0225830078125, 0.0211944580078125, 0.0360107421875, -0.0294036865234375, 0.0174560546875, 0.033172607421875, -0.011016845703125, -0.0003197193145751953, -0.06683349609375, -0.0309295654296875, 0.0169219970703125, 0.028594970703125, -0.024566650390625, 0.055755615234375, -0.0253753662109375, 0.0232696533203125, 0.0080413818359375, 0.0625, -0.004169464111328125, 0.010009765625, -0.0004627704620361328, 0.00882720947265625, 0.0009775161743164062 ]
47347ea39f380db7cdba894c85e2c8fc757e3fc8
Wordpress Stackexchange Q: How to drag multiple menu items at once in WordPress? Say, I added 8 items to a menu. Now I want to bring all the 8 items under another item. Dragging them one by one can take ages. How do I drag them all at once? A: Here's my solution : First, make all of your pages you want to move to be a subitem of some other item(the best way is creating one for this action bacuse you will delete parent item). Remeber that when you move your items you must move it with parent item like above. Then put items in place you choosen and delete parent item . Here - "Stowarzyszenie" . I hope that language won't be any problem :) All done! If you want to place moven items as a submenu then parent item must be on the level you choosen:
Q: How to drag multiple menu items at once in WordPress? Say, I added 8 items to a menu. Now I want to bring all the 8 items under another item. Dragging them one by one can take ages. How do I drag them all at once? A: Here's my solution : First, make all of your pages you want to move to be a subitem of some other item(the best way is creating one for this action bacuse you will delete parent item). Remeber that when you move your items you must move it with parent item like above. Then put items in place you choosen and delete parent item . Here - "Stowarzyszenie" . I hope that language won't be any problem :) All done! If you want to place moven items as a submenu then parent item must be on the level you choosen:
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:448296", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159509" }
[ 0.04638671875, 0.005245208740234375, -0.006923675537109375, 0.0194854736328125, 0.0289306640625, -0.05316162109375, 0.09173583984375, -0.04248046875, 0.00940704345703125, 0.0030040740966796875, -0.01190948486328125, -0.00664520263671875, -0.005092620849609375, -0.0288848876953125, -0.0081024169921875, -0.0261688232421875, 0.040435791015625, -0.035858154296875, 0.0212860107421875, -0.0185546875, -0.01004791259765625, 0.01276397705078125, 0.040252685546875, 0.07403564453125, 0.0240936279296875, -0.027313232421875, -0.0252532958984375, -0.0092010498046875, -0.01605224609375, -0.028167724609375, 0.0042724609375, 0.04876708984375, -0.0025844573974609375, 0.027252197265625, 0.017333984375, 0.00745391845703125, -0.004093170166015625, 0.02484130859375, 0.0251922607421875, 0.00881195068359375, 0.0186614990234375, 0.022186279296875, -0.03656005859375, 0.07318115234375, -0.040679931640625, -0.078857421875, 0.0182952880859375, -0.0352783203125, 0.01248931884765625, -0.038482666015625, 0.0390625, 0.007450103759765625, 0.04400634765625, 0.01044464111328125, -0.02081298828125, 0.01267242431640625, 0.0244903564453125, -0.0097503662109375, 0.0247802734375, 0.01306915283203125, -0.021636962890625, 0.03466796875, 0.01177215576171875, -0.0184478759765625, -0.015869140625, -0.008941650390625, -0.01357269287109375, -0.01274871826171875, -0.055328369140625, -0.0125885009765625, 0.07147216796875, -0.035125732421875, -0.0034027099609375, 0.01007080078125, 0.002590179443359375, -0.047271728515625, 0.02618408203125, -0.01056671142578125, 0.004901885986328125, 0.0209197998046875, 0.033721923828125, 0.033843994140625, -0.0302276611328125, -0.01436614990234375, 0.01175689697265625, 0.00189971923828125, 0.00899505615234375, -0.0244140625, -0.03668212890625, -0.01073455810546875, -0.023590087890625, -0.027984619140625, -0.039581298828125, 0.037322998046875, -0.01226043701171875, 0.00823974609375, 0.0219268798828125, 0.02459716796875, 0.0011644363403320312, 0.0176544189453125, -0.0214080810546875, -0.035064697265625, 0.021026611328125, -0.03070068359375, 0.004245758056640625, -0.03216552734375, -0.004955291748046875, 0.020050048828125, 0.07135009765625, 0.05267333984375, -0.0264739990234375, 0.116455078125, -0.0003218650817871094, -0.01342010498046875, 0.0019464492797851562, -0.0160369873046875, -0.042327880859375, 0.052154541015625, 0.0046234130859375, 0.0024204254150390625, -0.00943756103515625, 0.0310516357421875, -0.06982421875, 0.032012939453125, -0.009613037109375, -0.007198333740234375, 0.038055419921875, -0.0017185211181640625, -0.0228271484375, -0.0185089111328125, -0.0126800537109375, 0.01611328125, 0.052459716796875, 0.059417724609375, 0.019287109375, -0.0025691986083984375, -0.009979248046875, -0.0095977783203125, 0.0135955810546875, -0.0179443359375, 0.037994384765625, -0.026763916015625, -0.00788116455078125, 0.0302276611328125, 0.01161956787109375, -0.004085540771484375, 0.0036334991455078125, 0.01418304443359375, 0.023193359375, -0.0157623291015625, 0.017669677734375, -0.0289154052734375, 0.031829833984375, 0.00004035234451293945, -0.037567138671875, -0.0244140625, -0.0013704299926757812, -0.0215606689453125, 0.006046295166015625, -0.03704833984375, -0.06683349609375, 0.0165557861328125, 0.081787109375, -0.0740966796875, -0.033538818359375, -0.0147247314453125, -0.047943115234375, -0.00211334228515625, 0.0247802734375, -0.0204925537109375, -0.016510009765625, 0.0002727508544921875, 0.0791015625, 0.019683837890625, -0.0190277099609375, 0.058746337890625, 0.02752685546875, -0.0227203369140625, 0.00321197509765625, 0.059539794921875, -0.018798828125, -0.0294342041015625, 0.0221710205078125, -0.037384033203125, -0.05194091796875, 0.017578125, -0.0251007080078125, 0.0166473388671875, 0.0557861328125, 0.0024318695068359375, 0.0099945068359375, -0.001361846923828125, -0.0173187255859375, -0.00321197509765625, -0.0386962890625, -0.00905609130859375, 0.02667236328125, 0.03997802734375, -0.0211181640625, -0.007587432861328125, -0.0018291473388671875, -0.02459716796875, 0.03533935546875, -0.01236724853515625, 0.006683349609375, -0.00478363037109375, -0.00502777099609375, 0.01464080810546875, 0.0037250518798828125, 0.00250244140625, -0.0016536712646484375, -0.002597808837890625, -0.005645751953125, -0.052154541015625, -0.0296783447265625, 0.0171966552734375, -0.008697509765625, 0.00936126708984375, -0.0108489990234375, 0.01084136962890625, -0.00858306884765625, -0.01134490966796875, -0.01467132568359375, 0.042633056640625, 0.054595947265625, -0.032257080078125, -0.0232696533203125, -0.04669189453125, 0.0145111083984375, -0.00640106201171875, -0.0712890625, 0.07958984375, 0.014556884765625, 0.023681640625, -0.009857177734375, 0.0018072128295898438, 0.00972747802734375, -0.051025390625, -0.0032558441162109375, 0.03839111328125, 0.0240631103515625, 0.026519775390625, 0.015350341796875, 0.03948974609375, 0.00972747802734375, -0.046142578125, 0.01425933837890625, 0.004001617431640625, 0.00566864013671875, -0.01169586181640625, 0.00505828857421875, -0.013885498046875, 0.045074462890625, 0.0020351409912109375, 0.050628662109375, 0.02813720703125, 0.01409149169921875, -0.012481689453125, -0.0262298583984375, 0.0075225830078125, 0.022247314453125, -0.0243682861328125, -0.056915283203125, 0.0099639892578125, -0.01364898681640625, 0.0043182373046875, 0.003986358642578125, 0.0023479461669921875, 0.00939178466796875, 0.0011615753173828125, 0.02777099609375, -0.031951904296875, 0.019378662109375, 0.0162506103515625, -0.01528167724609375, -0.0197906494140625, 0.0032863616943359375, 0.0049591064453125, -0.01461029052734375, -0.017333984375, -0.02032470703125, 0.021087646484375, 0.01666259765625, -0.01499176025390625, -0.0101470947265625, -0.04296875, 0.01160430908203125, -0.038177490234375, -0.05029296875, 0.00623321533203125, 0.041259765625, -0.0023288726806640625, -0.032440185546875, 0.0012989044189453125, -0.04534912109375, -0.001190185546875, 0.05828857421875, -0.0102996826171875, 0.029510498046875, -0.01374053955078125, 0.0364990234375, 0.05340576171875, -0.0110321044921875, -0.0038890838623046875, 0.001758575439453125, 0.0033054351806640625, 0.042755126953125, -0.00963592529296875, -0.017730712890625, 0.00835418701171875, -0.05419921875, 0.0274200439453125, 0.0178985595703125, -0.0276031494140625, 0.0276336669921875, -0.018341064453125, -0.0151519775390625, -0.01140594482421875, -0.0867919921875, -0.07208251953125, 0.0128936767578125, -0.06756591796875, 0.022796630859375, 0.0256195068359375, -0.04107666015625, -0.037567138671875, 0.060638427734375, 0.0154571533203125, 0.021453857421875, -0.012969970703125, 0.03271484375, 0.052581787109375, 0.00698089599609375, 0.047576904296875, 0.006580352783203125, -0.0142364501953125, 0.0017194747924804688, 0.0657958984375, -0.00760650634765625, -0.0516357421875, -0.0093841552734375, 0.0019235610961914062, -0.01690673828125, -0.007610321044921875, 0.075439453125, -0.0377197265625, -0.0012788772583007812, 0.0181884765625, 0.0192108154296875, 0.031890869140625, -0.04132080078125, -0.03167724609375, -0.007232666015625, 0.01515960693359375, 0.00782012939453125, -0.016265869140625, 0.0104827880859375, 0.019927978515625, -0.01551055908203125, -0.041168212890625, -0.035980224609375, 0.0105133056640625, -0.021575927734375, -0.0107879638671875, 0.004924774169921875, -0.0139923095703125, -0.0309906005859375, 0.035736083984375, -0.01013946533203125, 0.016387939453125, -0.005435943603515625, 0.015716552734375, -0.040130615234375, -0.0275726318359375, -0.0455322265625, 0.01010894775390625, 0.016510009765625, -0.0186309814453125, 0.0261077880859375, 0.0016775131225585938, -0.0026988983154296875, -0.01047515869140625, 0.037445068359375, -0.003467559814453125, -0.0207061767578125, 0.0440673828125, 0.024566650390625, 0.00710296630859375, -0.0010738372802734375, -0.0252685546875, 0.01236724853515625, 0.078857421875, -0.033966064453125, -0.01168060302734375, -0.021942138671875, -0.0004382133483886719, 0.036041259765625, -0.0248260498046875, -0.0298919677734375, -0.032440185546875, -0.042877197265625, 0.034576416015625, -0.0102996826171875, -0.016693115234375, -0.01158905029296875, -0.01806640625, -0.0247802734375, -0.028778076171875, 0.036224365234375, -0.042266845703125, -0.013031005859375, 0.008880615234375, -0.004642486572265625, -0.0404052734375, -0.032806396484375, -0.012115478515625, -0.051300048828125, -0.006938934326171875, -0.037017822265625, 0.054840087890625, 0.017669677734375, -0.005596160888671875, 0.004146575927734375, 0.048583984375, -0.00048470497131347656, 0.058990478515625, -0.016143798828125, 0.0009179115295410156, -0.00675201416015625, -0.0195159912109375, 0.007038116455078125, -0.0114898681640625, -0.017181396484375, -0.02471923828125, -0.031097412109375, -0.007198333740234375, -0.0071258544921875, 0.0037212371826171875, 0.02215576171875, -0.00330352783203125, -0.0484619140625, -0.0262451171875, -0.059906005859375, -0.01169586181640625, -0.0174102783203125, -0.01009368896484375, -0.032745361328125, -0.057220458984375, -0.01555633544921875, -0.01568603515625, -0.00919342041015625, 0.020721435546875, 0.0298614501953125, 0.0214996337890625, -0.00839996337890625, -0.04705810546875, -0.0011205673217773438, 0.0213165283203125, -0.0017070770263671875, 0.01360321044921875, 0.0095367431640625, 0.0012969970703125, -0.036407470703125, 0.007755279541015625, -0.0211334228515625, 0.016998291015625, 0.018280029296875, 0.0223541259765625, -0.01560211181640625, -0.00199127197265625, -0.004947662353515625, 0.0158538818359375, 0.0214080810546875, 0.0025691986083984375, -0.0440673828125, -0.051910400390625, 0.07586669921875, 0.0264739990234375, -0.0022430419921875, -0.07061767578125, -0.02532958984375, 0.006855010986328125, -0.0165863037109375, 0.0125274658203125, 0.036773681640625, -0.0202178955078125, 0.041839599609375, 0.045867919921875, -0.013580322265625, -0.020233154296875, -0.01491546630859375, 0.00354766845703125, 0.01403045654296875, 0.00811767578125, 0.0115509033203125, -0.01232147216796875, -0.01151275634765625, 0.06512451171875, 0.02081298828125, -0.034759521484375, -0.0121612548828125, 0.00852203369140625, 0.0211181640625, 0.00409698486328125, -0.02679443359375, -0.0145721435546875, 0.0194091796875, 0.00909423828125, 0.054718017578125, 0.0081787109375, 0.006069183349609375, -0.0027942657470703125, 0.007099151611328125, 0.003017425537109375, -0.013671875, 0.00307464599609375, 0.0121307373046875, -0.009368896484375, 0.002277374267578125, 0.0168914794921875, -0.013397216796875, 0.0163726806640625, -0.004302978515625, 0.006458282470703125, 0.025909423828125, 0.0011463165283203125, -0.0098876953125, 0.054931640625, -0.04168701171875, -0.005687713623046875, 0.04913330078125, 0.069580078125, 0.0301361083984375, -0.00991058349609375, -0.023406982421875, -0.00617218017578125, -0.0092010498046875, 0.038360595703125, -0.0149993896484375, -0.07012939453125, -0.0090179443359375, 0.0233306884765625, 0.02081298828125, -0.039886474609375, -0.0012683868408203125, 0.0181427001953125, -0.0032711029052734375, 0.0458984375, -0.0129547119140625, 0.0244903564453125, -0.0015573501586914062, -0.0161285400390625, -0.04949951171875, -0.0072784423828125, 0.03265380859375, -0.1103515625, -0.05108642578125, -0.001422882080078125, -0.017181396484375, 0.038848876953125, -0.0164031982421875, 0.002895355224609375, -0.010040283203125, 0.01023101806640625, -0.0399169921875, 0.007061004638671875, 0.039306640625, 0.029632568359375, 0.0272064208984375, -0.0191650390625, -0.032012939453125, -0.044097900390625, -0.051727294921875, -0.0372314453125, -0.04852294921875, -0.0252838134765625, -0.03778076171875, -0.01050567626953125, -0.01776123046875, 0.0174407958984375, -0.01806640625, 0.014739990234375, -0.01195526123046875, -0.039215087890625, -0.0168304443359375, 0.026611328125, -0.031829833984375, -0.00991058349609375, -0.0413818359375, -0.03173828125, -0.016082763671875, 0.0228118896484375, 0.018768310546875, -0.005321502685546875, -0.0408935546875, -0.019317626953125, -0.0408935546875, 0.0039043426513671875, 0.058074951171875, -0.0185546875, 0.0036373138427734375, -0.0341796875, 0.005336761474609375, -0.0234375, 0.092041015625, -0.04901123046875, -0.006526947021484375, -0.0011396408081054688, -0.02685546875, 0.0138092041015625, 0.015625, -0.0072479248046875, 0.0251617431640625, -0.00933837890625, 0.0133514404296875, 0.01335906982421875, -0.01116943359375, 0.00453948974609375, 0.05133056640625, 0.00794219970703125, 0.0276641845703125, 0.01242828369140625, 0.01030731201171875, 0.00847625732421875, -0.0209808349609375, 0.052886962890625, 0.019866943359375, -0.0017938613891601562, -0.041961669921875, 0.032562255859375, -0.028961181640625, -0.016815185546875, -0.007659912109375, 0.0261993408203125, 0.030517578125, -0.07354736328125, 0.019317626953125, 0.00588226318359375, 0.00975799560546875, -0.0028533935546875, 0.0157623291015625, 0.01103973388671875, -0.0137481689453125, -0.002796173095703125, 0.01898193359375, -0.0029048919677734375, 0.0008978843688964844, 0.0022144317626953125, 0.0095977783203125, -0.04931640625, 0.004878997802734375, -0.019775390625, -0.0259246826171875, -0.010589599609375, 0.0125732421875, -0.00830078125, -0.043243408203125, 0.003688812255859375, 0.03729248046875, -0.0110321044921875, -0.03240966796875, 0.07916259765625, -0.0214996337890625, 0.037750244140625, -0.00568389892578125, -0.027496337890625, 0.00461578369140625, 0.042236328125, -0.044189453125, 0.006622314453125, 0.0197601318359375, -0.019805908203125, -0.026641845703125, -0.0099945068359375, 0.01468658447265625, -0.04534912109375, -0.058349609375, 0.0035858154296875, -0.051971435546875, -0.00264739990234375, 0.0004916191101074219, -0.00335693359375, 0.043548583984375, -0.0458984375, -0.005252838134765625, 0.0206451416015625, 0.034454345703125, 0.00479888916015625, 0.018646240234375, 0.033233642578125, -0.0283050537109375, -0.0286407470703125, 0.03424072265625, -0.044769287109375, -0.031005859375, 0.0037097930908203125, -0.0171356201171875, 0.103271484375, -0.056396484375, 0.01335906982421875, 0.0226898193359375, 0.041473388671875, 0.0089111328125, 0.044586181640625, -0.0300445556640625, 0.05078125, -0.01007843017578125, 0.028533935546875, -0.033538818359375, -0.0058135986328125, 0.01050567626953125, 0.0243377685546875, 0.0175628662109375, -0.005168914794921875, -0.0219268798828125, 0.044921875, 0.14501953125, 0.051361083984375, 0.0439453125, 0.025970458984375, -0.0285186767578125, -0.0377197265625, -0.014617919921875, 0.0165252685546875, 0.0193939208984375, -0.0120849609375, -0.05596923828125, 0.0152130126953125, -0.00021398067474365234, 0.0031375885009765625, -0.028289794921875, 0.0267181396484375, 0.0113983154296875, -0.0217132568359375, -0.0183868408203125, 0.0224151611328125, 0.0479736328125, -0.0235443115234375, 0.02703857421875, 0.0014858245849609375, 0.016326904296875, -0.01064300537109375, 0.033721923828125, 0.00881195068359375, 0.066650390625, 0.03155517578125, 0.0263214111328125, 0.047119140625, 0.012237548828125, 0.038818359375, 0.02923583984375, -0.0570068359375, 0.041900634765625, 0.0094757080078125, 0.0231170654296875, -0.05291748046875, -0.060943603515625, 0.051788330078125, 0.0804443359375, -0.0145111083984375, -0.057403564453125, 0.00769805908203125, 0.010772705078125, 0.004486083984375, 0.021209716796875, 0.0212554931640625, -0.041351318359375, 0.0096588134765625, -0.0149688720703125, -0.0361328125, -0.001979827880859375, 0.0099639892578125, 0.015869140625, 0.021148681640625, 0.0275726318359375, -0.0479736328125, -0.051116943359375, 0.03717041015625, 0.033966064453125, 0.0272064208984375, -0.010528564453125, 0.06036376953125, 0.032989501953125, -0.005130767822265625, 0.0009822845458984375, 0.0162811279296875, 0.0093536376953125, -0.007843017578125, -0.00701904296875, -0.030548095703125, 0.02227783203125, 0.021759033203125, 0.02825927734375, 0.062042236328125, 0.06378173828125, 0.055572509765625, -0.0004763603210449219, -0.00377655029296875, 0.03765869140625, -0.0188751220703125, -0.02618408203125, 0.00882720947265625, -0.041778564453125, 0.04229736328125, -0.0167999267578125, -0.0168914794921875, 0.0178985595703125, 0.041839599609375, -0.0118255615234375, -0.01361846923828125, -0.0038604736328125, -0.00615692138671875, 0.018096923828125, -0.015716552734375, -0.0241851806640625, -0.0007452964782714844, -0.166259765625, -0.04144287109375, -0.052001953125, 0.0191802978515625, 0.060821533203125, 0.038604736328125, -0.01328277587890625, 0.040313720703125, 0.027618408203125, -0.0347900390625, 0.0008530616760253906, 0.00972747802734375, 0.02923583984375, 0.043304443359375, 0.0133514404296875, 0.036041259765625, -0.064697265625, -0.0189361572265625, -0.0242767333984375, 0.004390716552734375, 0.038360595703125, 0.0235137939453125, 0.039764404296875, 0.026123046875, 0.005901336669921875, -0.0111083984375, 0.0152435302734375, -0.01557159423828125, 0.031280517578125, -0.0127105712890625, -0.0048370361328125, -0.01497650146484375, 0.02777099609375, 0.0211181640625, 0.0251007080078125, -0.054412841796875, -0.007083892822265625, -0.0052337646484375, 0.01617431640625, 0.0010862350463867188, 0.05859375, -0.010528564453125, -0.0175933837890625, -0.031463623046875, -0.023834228515625, 0.030303955078125, 0.0161590576171875, 0.0176849365234375, -0.01666259765625, -0.0009570121765136719, -0.06903076171875, -0.0017232894897460938, -0.02081298828125, -0.006855010986328125, 0.0185089111328125, 0.05364990234375, -0.0634765625, 0.00670623779296875, -0.0060882568359375, -0.0341796875, 0.024627685546875, 0.01312255859375, 0.0254669189453125, -0.03814697265625, 0.042877197265625, 0.0233306884765625, 0.03338623046875, -0.0012912750244140625, -0.00009882450103759766, 0.0372314453125, -0.01303863525390625, -0.036407470703125, -0.00952911376953125, -0.0357666015625, -0.041748046875, 0.0120849609375, 0.025177001953125, -0.02191162109375, -0.016021728515625, -0.07391357421875, -0.0196685791015625, 0.042449951171875, 0.0311126708984375, -0.038421630859375, 0.037139892578125, -0.0009851455688476562, -0.0248260498046875, 0.032379150390625, -0.00685882568359375, -0.0010824203491210938, 0.0277099609375, -0.0277099609375, -0.048828125, -0.044189453125, 0.0411376953125, -0.036041259765625, 0.0071258544921875, 0.01445770263671875, -0.03607177734375, 0.01605224609375, -0.035125732421875, 0.034576416015625, 0.015411376953125, 0.0723876953125, -0.025299072265625, -0.0032711029052734375, 0.004302978515625, 0.0196685791015625, -0.010528564453125, -0.007534027099609375, -0.02032470703125, -0.0008215904235839844, -0.0234832763671875, 0.031005859375, 0.0430908203125, -0.034210205078125, -0.08148193359375, 0.01540374755859375, -0.018463134765625, -0.04718017578125, -0.00798797607421875, -0.002788543701171875, -0.0218505859375, 0.0138702392578125, 0.00013363361358642578, 0.007427215576171875, 0.005649566650390625, 0.0115509033203125, -0.006000518798828125, 0.10797119140625, -0.035003662109375, 0.03155517578125, 0.01416778564453125, 0.0292510986328125, 0.00540924072265625, 0.01003265380859375, -0.00504302978515625, 0.00255584716796875, 0.03692626953125, 0.04583740234375, -0.0211029052734375, 0.01558685302734375, 0.01453399658203125, -0.028045654296875, -0.017974853515625, 0.03546142578125, -0.02197265625, 0.0295867919921875, 0.06622314453125, 0.06182861328125, 0.01435089111328125, -0.044525146484375, 0.04425048828125, -0.00968170166015625, -0.029083251953125, 0.006404876708984375, 0.0043487548828125, -0.0210723876953125, -0.00710296630859375, -0.00051116943359375, -0.00959014892578125, -0.0068359375, 0.0037975311279296875, -0.04071044921875, -0.00643157958984375, 0.01149749755859375, 0.0231475830078125, -0.08624267578125, 0.042999267578125, 0.061798095703125, -0.054962158203125, -0.055572509765625, 0.0263214111328125, -0.02581787109375, -0.00722503662109375, -0.017791748046875, -0.019012451171875, 0.0203704833984375, -0.060516357421875, 0.008544921875, -0.0263824462890625, 0.03729248046875, -0.0528564453125, 0.00530242919921875, -0.019317626953125, 0.01806640625, -0.00933837890625, 0.03497314453125, 0.02337646484375, 0.0221710205078125, 0.0022449493408203125, 0.052032470703125, -0.0021305084228515625, 0.08807373046875, -0.00960540771484375, 0.06915283203125, 0.003665924072265625, -0.0311431884765625, 0.035736083984375, -0.056365966796875, 0.0138397216796875, -0.0023784637451171875, -0.00811767578125, -0.0154571533203125, 0.00928497314453125, 0.006011962890625, -0.00998687744140625, 0.011505126953125 ]
26b047172a562c6b2ebeeeff2dd379e1f54f2993
Wordpress Stackexchange Q: Translate third party plugin and save translation files in custom theme I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins directory. Is this possible? I have tried load_plugin_textdomain and load_textdomain but that doesn't seem to work. // Add localization load_theme_textdomain( 'my_theme', $translation_directory ); $domain = 'other_plugin'; $locale = apply_filters('plugin_locale', get_locale(), $domain); load_textdomain( $domain, WP_LANG_DIR.'/'.$domain.'/languages/'.$domain.'-'.$locale.'.mo'); load_plugin_textdomain( $domain, FALSE, $translation_directory ); A: First of all, I'd strongly recommend against storing translations for a plug-in in your theme. It has no reason to be there, and you'll loose the translations when you change/update the theme. The correct place to store translations is wp-content/languages/plugins/. This code does that, and targets the domain 'other_plugin': function wpse159536_override_mofile_path( $mofile, $domain ){ if( 'other_plugin' == $domain ){ $mofile = WP_LANG_DIR . '/plugins/' . basename( $mofile ); } return $mofile; } add_filter( 'load_textdomain_mofile', 'wpse159536_override_mofile_path', 10, 2 ); Of course, an even better solution would be to send the translation file to the developer to include in the next release (if this is appropriate).
Q: Translate third party plugin and save translation files in custom theme I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins directory. Is this possible? I have tried load_plugin_textdomain and load_textdomain but that doesn't seem to work. // Add localization load_theme_textdomain( 'my_theme', $translation_directory ); $domain = 'other_plugin'; $locale = apply_filters('plugin_locale', get_locale(), $domain); load_textdomain( $domain, WP_LANG_DIR.'/'.$domain.'/languages/'.$domain.'-'.$locale.'.mo'); load_plugin_textdomain( $domain, FALSE, $translation_directory ); A: First of all, I'd strongly recommend against storing translations for a plug-in in your theme. It has no reason to be there, and you'll loose the translations when you change/update the theme. The correct place to store translations is wp-content/languages/plugins/. This code does that, and targets the domain 'other_plugin': function wpse159536_override_mofile_path( $mofile, $domain ){ if( 'other_plugin' == $domain ){ $mofile = WP_LANG_DIR . '/plugins/' . basename( $mofile ); } return $mofile; } add_filter( 'load_textdomain_mofile', 'wpse159536_override_mofile_path', 10, 2 ); Of course, an even better solution would be to send the translation file to the developer to include in the next release (if this is appropriate).
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:448307", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159536" }
[ 0.0171051025390625, -0.035675048828125, 0.004390716552734375, -0.0246429443359375, -0.0150146484375, -0.0027942657470703125, 0.024566650390625, 0.01824951171875, -0.01244354248046875, 0.0589599609375, 0.04547119140625, -0.0009794235229492188, 0.008331298828125, -0.018524169921875, -0.04449462890625, -0.01065826416015625, 0.022186279296875, -0.003391265869140625, 0.036651611328125, -0.00757598876953125, -0.00891876220703125, -0.0004138946533203125, 0.058868408203125, -0.0130462646484375, 0.0219879150390625, -0.052215576171875, 0.09136962890625, -0.0268707275390625, -0.0011272430419921875, -0.032257080078125, 0.020263671875, 0.01224517822265625, 0.032684326171875, -0.0006914138793945312, -0.0292205810546875, -0.0537109375, -0.0137481689453125, -0.005859375, -0.0274658203125, 0.01474761962890625, 0.053436279296875, -0.035797119140625, -0.0274810791015625, 0.0806884765625, 0.0018930435180664062, -0.07061767578125, 0.0799560546875, -0.0404052734375, 0.0006794929504394531, 0.06268310546875, 0.028045654296875, -0.0160064697265625, 0.0208740234375, 0.00838470458984375, -0.01099395751953125, -0.0244140625, -0.0635986328125, 0.053009033203125, 0.01004791259765625, 0.03485107421875, 0.009979248046875, -0.004276275634765625, 0.0095367431640625, 0.0036106109619140625, -0.00273895263671875, 0.00394439697265625, -0.0272979736328125, 0.0100555419921875, -0.00733184814453125, 0.0157470703125, 0.0220489501953125, -0.019622802734375, 0.04669189453125, -0.0166473388671875, 0.006134033203125, 0.0151824951171875, -0.0416259765625, 0.0177459716796875, 0.07147216796875, -0.03314208984375, 0.0156707763671875, -0.035247802734375, -0.0089569091796875, 0.016571044921875, -0.026763916015625, 0.03509521484375, -0.00881195068359375, -0.01276397705078125, -0.057342529296875, 0.0328369140625, -0.0278167724609375, -0.01018524169921875, -0.05377197265625, 0.0307464599609375, 0.0279693603515625, 0.0011682510375976562, -0.0193023681640625, 0.00867462158203125, -0.0301055908203125, -0.0007658004760742188, 0.0193939208984375, -0.037994384765625, 0.0273590087890625, -0.02923583984375, 0.0155487060546875, 0.0227508544921875, -0.01201629638671875, -0.0423583984375, 0.023345947265625, 0.01971435546875, -0.01499176025390625, 0.034454345703125, 0.0036334991455078125, -0.0222015380859375, 0.00894927978515625, 0.0161590576171875, -0.0252532958984375, 0.027923583984375, 0.005859375, -0.00608062744140625, 0.00444793701171875, 0.00966644287109375, -0.01203155517578125, -0.0286865234375, 0.00920867919921875, -0.032928466796875, -0.03955078125, 0.0139007568359375, -0.00598907470703125, 0.02777099609375, 0.005157470703125, -0.0197601318359375, -0.00524139404296875, 0.03759765625, 0.006656646728515625, -0.0101470947265625, 0.0171661376953125, -0.0037689208984375, 0.01551055908203125, -0.020965576171875, 0.0197601318359375, 0.00323486328125, -0.006175994873046875, 0.01477813720703125, -0.032440185546875, 0.0120849609375, -0.01190948486328125, 0.0223541259765625, 0.03558349609375, -0.018157958984375, -0.006664276123046875, -0.06427001953125, 0.036224365234375, 0.0161895751953125, -0.0112762451171875, -0.0205535888671875, 0.06695556640625, -0.0438232421875, -0.0262603759765625, -0.063720703125, -0.051025390625, -0.04266357421875, -0.0137176513671875, -0.031829833984375, -0.06060791015625, 0.040374755859375, 0.045623779296875, 0.009552001953125, 0.005123138427734375, 0.003940582275390625, -0.0188751220703125, 0.044769287109375, -0.01372528076171875, 0.01398468017578125, 0.00693511962890625, 0.004974365234375, -0.045013427734375, 0.02435302734375, 0.026824951171875, 0.0080108642578125, -0.00687408447265625, -0.037628173828125, 0.036895751953125, 0.0213623046875, -0.0098876953125, -0.013031005859375, 0.0125579833984375, 0.03497314453125, 0.0285797119140625, 0.0259552001953125, -0.01265716552734375, -0.0205535888671875, -0.043121337890625, -0.015869140625, -0.004497528076171875, 0.015869140625, 0.01122283935546875, 0.027008056640625, 0.00533294677734375, -0.01097869873046875, -0.036590576171875, -0.0152435302734375, 0.01898193359375, 0.0282135009765625, -0.01396942138671875, 0.00534820556640625, -0.0250091552734375, 0.027435302734375, 0.03033447265625, 0.02215576171875, 0.0064239501953125, 0.0235595703125, -0.0149078369140625, -0.036651611328125, -0.0303192138671875, 0.03173828125, 0.005207061767578125, 0.044342041015625, 0.0280914306640625, 0.024139404296875, 0.061248779296875, -0.022247314453125, 0.048736572265625, 0.01541900634765625, -0.034912109375, 0.02020263671875, -0.02099609375, 0.0121307373046875, 0.007415771484375, 0.0160369873046875, 0.054718017578125, -0.00428009033203125, 0.00661468505859375, -0.0079193115234375, -0.022674560546875, -0.0019626617431640625, -0.030609130859375, -0.070068359375, -0.009124755859375, 0.06292724609375, 0.03717041015625, 0.044097900390625, 0.0016040802001953125, 0.01495361328125, 0.029693603515625, -0.04998779296875, 0.017578125, 0.01003265380859375, 0.05560302734375, 0.06414794921875, -0.003265380859375, -0.02398681640625, 0.00054931640625, -0.09735107421875, 0.01128387451171875, 0.025360107421875, -0.03387451171875, -0.091064453125, 0.04736328125, -0.028289794921875, 0.027496337890625, -0.02850341796875, -0.036346435546875, 0.0242767333984375, 0.03179931640625, -0.0096435546875, -0.00783538818359375, -0.00689697265625, -0.0531005859375, 0.0099945068359375, 0.050445556640625, 0.0009622573852539062, 0.0062713623046875, -0.016815185546875, -0.00847625732421875, -0.01517486572265625, -0.040618896484375, 0.0302581787109375, 0.021484375, -0.0263214111328125, 0.0035037994384765625, 0.059844970703125, -0.046966552734375, -0.02783203125, 0.0017900466918945312, -0.0201568603515625, -0.046783447265625, -0.0024471282958984375, 0.01006317138671875, -0.01776123046875, 0.0228729248046875, 0.0186309814453125, -0.020538330078125, 0.0345458984375, -0.0030078887939453125, -0.025604248046875, 0.0498046875, -0.0167236328125, 0.01548004150390625, -0.0239105224609375, 0.02215576171875, 0.042633056640625, -0.0012044906616210938, -0.0178985595703125, 0.008758544921875, -0.02935791015625, 0.036041259765625, -0.006694793701171875, -0.0196533203125, -0.03094482421875, -0.058319091796875, -0.042266845703125, -0.0203094482421875, -0.0081939697265625, -0.043304443359375, -0.0736083984375, -0.027557373046875, -0.0330810546875, -0.1231689453125, -0.0709228515625, 0.03692626953125, -0.0175018310546875, 0.0132904052734375, 0.01125335693359375, -0.02130126953125, -0.02923583984375, 0.03759765625, -0.01090240478515625, -0.005962371826171875, -0.0311126708984375, -0.0239410400390625, -0.057342529296875, -0.051483154296875, -0.050079345703125, 0.0253143310546875, 0.00909423828125, 0.01021575927734375, -0.0067138671875, 0.00809478759765625, -0.0260009765625, 0.034149169921875, 0.068603515625, 0.0085296630859375, 0.0108489990234375, -0.0015344619750976562, -0.0124969482421875, 0.00885009765625, -0.00012981891632080078, -0.005252838134765625, 0.01806640625, -0.007171630859375, -0.0009160041809082031, 0.025726318359375, 0.017120361328125, 0.0178985595703125, -0.03814697265625, -0.012847900390625, 0.0019369125366210938, -0.03973388671875, -0.055511474609375, -0.034027099609375, -0.00429534912109375, -0.0479736328125, 0.0733642578125, 0.01319122314453125, -0.01038360595703125, 0.01611328125, 0.031646728515625, 0.04095458984375, 0.02252197265625, 0.04345703125, 0.0120849609375, 0.0124053955078125, -0.0018129348754882812, 0.00786590576171875, -0.061370849609375, 0.073486328125, 0.014984130859375, -0.050567626953125, 0.01397705078125, 0.007808685302734375, -0.001361846923828125, 0.0016489028930664062, -0.02764892578125, -0.00415802001953125, 0.029998779296875, -0.042572021484375, 0.052459716796875, -0.03729248046875, -0.0209808349609375, -0.034423828125, 0.06573486328125, -0.053985595703125, -0.00943756103515625, 0.011260986328125, 0.01812744140625, -0.01024627685546875, -0.01251220703125, -0.0280914306640625, -0.0184173583984375, 0.0030975341796875, 0.00983428955078125, -0.0171661376953125, 0.0211181640625, -0.0030269622802734375, 0.052764892578125, 0.0298614501953125, -0.0213623046875, -0.00543975830078125, -0.00994110107421875, 0.017333984375, -0.005222320556640625, -0.026397705078125, 0.0154876708984375, 0.022369384765625, -0.06500244140625, -0.0845947265625, -0.0003726482391357422, -0.061004638671875, 0.048309326171875, 0.01192474365234375, 0.0128326416015625, -0.0203399658203125, 0.0230560302734375, 0.03289794921875, 0.0648193359375, 0.01476287841796875, -0.01134490966796875, 0.04437255859375, 0.0166015625, 0.0626220703125, -0.01482391357421875, 0.032745361328125, 0.048187255859375, -0.03887939453125, 0.04888916015625, -0.012603759765625, 0.0015735626220703125, 0.0416259765625, -0.080810546875, -0.018585205078125, -0.00045990943908691406, -0.04925537109375, -0.0080718994140625, -0.032928466796875, -0.0303955078125, 0.006084442138671875, -0.056427001953125, 0.0582275390625, 0.005802154541015625, -0.0195465087890625, 0.013275146484375, 0.0638427734375, 0.01459503173828125, -0.0280609130859375, -0.066162109375, 0.004547119140625, 0.0438232421875, 0.04931640625, 0.01052093505859375, 0.0176544189453125, -0.0423583984375, 0.058929443359375, 0.043853759765625, -0.012237548828125, 0.0254364013671875, 0.01104736328125, 0.0123443603515625, -0.030548095703125, 0.00963592529296875, -0.006656646728515625, -0.025390625, 0.04559326171875, -0.00911712646484375, 0.01103973388671875, -0.01058197021484375, 0.0181732177734375, -0.0277862548828125, 0.0213165283203125, -0.01244354248046875, -0.0634765625, 0.01593017578125, 0.0249481201171875, -0.025421142578125, -0.0014896392822265625, 0.005588531494140625, -0.0008597373962402344, -0.0126953125, -0.016326904296875, 0.054168701171875, 0.01268768310546875, 0.0247650146484375, 0.0248870849609375, 0.0413818359375, -0.01290130615234375, 0.0156402587890625, 0.0225830078125, 0.01042938232421875, -0.031036376953125, -0.0556640625, -0.042572021484375, 0.01210784912109375, 0.0316162109375, 0.056549072265625, 0.0229034423828125, 0.00949859619140625, 0.0182952880859375, -0.016204833984375, 0.017974853515625, 0.043701171875, -0.0166473388671875, -0.03240966796875, 0.01317596435546875, 0.0009570121765136719, -0.01100921630859375, -0.0191192626953125, 0.061248779296875, -0.0643310546875, 0.02838134765625, 0.0231781005859375, -0.0032501220703125, 0.034942626953125, 0.02838134765625, 0.029296875, -0.046722412109375, 0.0072479248046875, 0.01271820068359375, 0.0189666748046875, -0.01207733154296875, 0.037139892578125, -0.00992584228515625, 0.0134735107421875, -0.026123046875, -0.040802001953125, 0.043914794921875, -0.0396728515625, -0.01444244384765625, 0.0298614501953125, 0.0183563232421875, -0.034576416015625, -0.0268096923828125, -0.018463134765625, 0.0255584716796875, -0.0078582763671875, 0.007190704345703125, -0.0107879638671875, 0.0004849433898925781, -0.031890869140625, 0.05267333984375, -0.06988525390625, -0.016326904296875, 0.00728607177734375, -0.03369140625, 0.01154327392578125, 0.02191162109375, -0.029815673828125, -0.04107666015625, 0.0036792755126953125, -0.0017566680908203125, -0.00911712646484375, -0.011199951171875, 0.00429534912109375, 0.00005334615707397461, -0.0149383544921875, -0.0008168220520019531, 0.022216796875, 0.01482391357421875, -0.0188140869140625, -0.0280303955078125, -0.01068115234375, -0.0313720703125, -0.022308349609375, -0.039337158203125, -0.04949951171875, -0.043609619140625, 0.007251739501953125, 0.0068817138671875, 0.0289764404296875, -0.0241851806640625, -0.03179931640625, 0.00615692138671875, 0.01222991943359375, 0.007656097412109375, 0.035888671875, -0.038299560546875, 0.06494140625, 0.04217529296875, 0.0031871795654296875, 0.011444091796875, 0.053436279296875, 0.0145263671875, -0.0189056396484375, 0.0014514923095703125, -0.0154876708984375, -0.0227813720703125, -0.003299713134765625, -0.007015228271484375, 0.00769805908203125, 0.038543701171875, -0.00998687744140625, 0.0220489501953125, -0.006694793701171875, -0.01093292236328125, -0.00887298583984375, 0.01007080078125, 0.0088958740234375, 0.0312347412109375, 0.0201263427734375, -0.054473876953125, -0.0052642822265625, -0.0182037353515625, 0.00907135009765625, 0.0264434814453125, -0.038330078125, -0.003742218017578125, 0.06304931640625, -0.07464599609375, 0.028076171875, -0.0164947509765625, 0.0550537109375, 0.0303802490234375, -0.03466796875, 0.049407958984375, -0.0179595947265625, -0.034393310546875, 0.06500244140625, 0.02239990234375, 0.005634307861328125, -0.04437255859375, 0.0213165283203125, -0.0273590087890625, -0.0102691650390625, 0.018798828125, 0.07330322265625, 0.048675537109375, -0.076904296875, -0.01331329345703125, 0.0032520294189453125, -0.041778564453125, -0.0092010498046875, 0.0169525146484375, -0.006496429443359375, -0.03546142578125, 0.022552490234375, -0.0268707275390625, -0.00872039794921875, -0.0007777214050292969, -0.017578125, -0.01441192626953125, -0.00452423095703125, 0.0137481689453125, 0.005840301513671875, -0.007213592529296875, -0.02801513671875, -0.006389617919921875, -0.043487548828125, -0.009552001953125, 0.00010126829147338867, 0.01436614990234375, -0.0215911865234375, -0.055572509765625, 0.0225067138671875, -0.0418701171875, -0.0012903213500976562, 0.02069091796875, -0.03387451171875, 0.047393798828125, 0.06365966796875, -0.033447265625, 0.010467529296875, 0.0272369384765625, 0.01087188720703125, 0.006439208984375, -0.01244354248046875, -0.0093994140625, 0.043426513671875, -0.00914764404296875, 0.006710052490234375, -0.0216827392578125, 0.0033130645751953125, 0.00043082237243652344, 0.0084686279296875, 0.045501708984375, -0.0107269287109375, -0.0218505859375, 0.036163330078125, -0.0142059326171875, -0.02294921875, -0.0243988037109375, 0.03656005859375, -0.0828857421875, -0.053253173828125, 0.00843048095703125, -0.04315185546875, -0.0291290283203125, -0.021270751953125, -0.07672119140625, 0.120361328125, 0.033447265625, 0.05322265625, -0.008636474609375, 0.04754638671875, -0.0227813720703125, 0.0255126953125, -0.019683837890625, 0.004276275634765625, -0.01373291015625, -0.010040283203125, -0.032379150390625, -0.00424957275390625, -0.025787353515625, 0.033416748046875, 0.0413818359375, 0.02301025390625, -0.034454345703125, -0.0125274658203125, 0.00949859619140625, 0.022430419921875, -0.00800323486328125, 0.03765869140625, 0.00955963134765625, -0.0086517333984375, -0.01171875, 0.0218658447265625, 0.042266845703125, -0.046295166015625, -0.0400390625, 0.0275115966796875, -0.00396728515625, -0.0182037353515625, -0.0303955078125, -0.01074981689453125, -0.051971435546875, -0.01120758056640625, 0.00788116455078125, 0.00702667236328125, 0.050537109375, -0.0278472900390625, 0.0142669677734375, 0.0440673828125, 0.0096893310546875, 0.00846099853515625, 0.031158447265625, 0.0128021240234375, 0.017120361328125, 0.016998291015625, 0.01285552978515625, 0.0328369140625, -0.038330078125, -0.011322021484375, -0.0011701583862304688, -0.0031566619873046875, 0.030487060546875, 0.052154541015625, 0.046234130859375, 0.052703857421875, 0.05914306640625, -0.008819580078125, 0.01094818115234375, -0.042694091796875, -0.0214996337890625, 0.00609588623046875, 0.010711669921875, -0.0081634521484375, 0.0152130126953125, 0.01141357421875, -0.026519775390625, 0.0303955078125, -0.00839996337890625, -0.0257415771484375, -0.017852783203125, -0.003955841064453125, -0.0037288665771484375, 0.0085601806640625, 0.04473876953125, -0.00426483154296875, -0.07635498046875, 0.05792236328125, 0.0142364501953125, 0.06451416015625, -0.0029888153076171875, 0.0830078125, 0.0052642822265625, -0.036346435546875, 0.00794219970703125, -0.00643157958984375, -0.01226806640625, -0.0209808349609375, -0.0360107421875, -0.051422119140625, -0.0006747245788574219, 0.0498046875, -0.0002694129943847656, 0.03509521484375, 0.05096435546875, 0.035400390625, -0.0219879150390625, -0.002895355224609375, 0.06402587890625, -0.0309906005859375, 0.032867431640625, -0.04559326171875, 0.02264404296875, 0.00933074951171875, -0.0159912109375, -0.0014085769653320312, -0.00878143310546875, 0.052032470703125, -0.012542724609375, 0.027008056640625, -0.01157379150390625, -0.0266876220703125, 0.01424407958984375, -0.0300140380859375, 0.084716796875, 0.0156707763671875, 0.0068817138671875, 0.0071563720703125, -0.01122283935546875, 0.0031147003173828125, -0.0266265869140625, 0.01904296875, -0.0189056396484375, 0.061676025390625, 0.0233306884765625, -0.0243072509765625, 0.0204620361328125, -0.010498046875, 0.0130615234375, 0.0076141357421875, 0.01152801513671875, -0.0022525787353515625, -0.0509033203125, -0.03411865234375, -0.00982666015625, 0.03643798828125, 0.0212860107421875, 0.0209197998046875, 0.004642486572265625, 0.027557373046875, -0.0091552734375, 0.0015726089477539062, -0.026275634765625, -0.01428985595703125, -0.0201416015625, -0.00048470497131347656, 0.0086669921875, 0.00637054443359375, -0.059295654296875, -0.01161956787109375, 0.0321044921875, -0.006725311279296875, -0.0127716064453125, -0.0006189346313476562, 0.03759765625, 0.009979248046875, 0.01255035400390625, -0.03759765625, -0.0732421875, -0.056793212890625, 0.0174560546875, -0.0024852752685546875, 0.0006365776062011719, -0.032470703125, 0.05419921875, -0.0193634033203125, 0.003200531005859375, 0.0198822021484375, -0.041534423828125, 0.007038116455078125, 0.024017333984375, -0.04754638671875, -0.0285491943359375, 0.01187896728515625, -0.02996826171875, 0.0024623870849609375, -0.01308441162109375, 0.06829833984375, -0.01397705078125, -0.0285186767578125, -0.004543304443359375, -0.032379150390625, 0.01435089111328125, -0.0290069580078125, 0.00551605224609375, -0.0274505615234375, 0.01409149169921875, 0.0015087127685546875, -0.0306396484375, -0.03741455078125, -0.0489501953125, 0.01137542724609375, 0.0168304443359375, -0.0257110595703125, -0.04931640625, -0.05255126953125, -0.006565093994140625, 0.005084991455078125, 0.005359649658203125, -0.038787841796875, 0.00896453857421875, -0.036468505859375, 0.00675201416015625, -0.0297088623046875, 0.02435302734375, -0.0032253265380859375, 0.0242156982421875, -0.031707763671875, -0.02606201171875, -0.004238128662109375, 0.04034423828125, -0.005161285400390625, 0.00913238525390625, 0.0264434814453125, 0.0082550048828125, -0.02130126953125, 0.061737060546875, 0.001689910888671875, 0.102294921875, -0.049957275390625, -0.01403045654296875, 0.01262664794921875, -0.004833221435546875, -0.038543701171875, -0.08148193359375, 0.017242431640625, -0.0919189453125, -0.01375579833984375, -0.023468017578125, 0.0007758140563964844, -0.019775390625, -0.0379638671875, -0.019622802734375, 0.04425048828125, 0.0026454925537109375, -0.0200347900390625, -0.0238494873046875, -0.0263214111328125, -0.021820068359375, 0.06451416015625, 0.00670623779296875, -0.0295562744140625, -0.0301666259765625, 0.0361328125, 0.01141357421875, 0.044952392578125, -0.006832122802734375, 0.005859375, -0.01544189453125, 0.0293426513671875, 0.0214385986328125, -0.004032135009765625, 0.005786895751953125, -0.004901885986328125, 0.020416259765625, 0.03515625, -0.035369873046875, -0.01629638671875, -0.01335906982421875, -0.0022525787353515625, -0.040008544921875, -0.05145263671875, 0.0138397216796875, 0.0021572113037109375, 0.084228515625, 0.0093841552734375, -0.00376129150390625, -0.034637451171875, 0.0139617919921875, -0.01531219482421875, -0.045013427734375, -0.01114654541015625, 0.01445770263671875, -0.04522705078125, -0.01053619384765625, 0.00974273681640625, 0.00238800048828125, -0.01561737060546875, 0.0228271484375, -0.0277557373046875, -0.0245819091796875, 0.0160369873046875, -0.0169677734375, -0.037109375, -0.04034423828125, 0.09600830078125, -0.03680419921875, 0.0211944580078125, 0.01461029052734375, 0.0248565673828125, 0.0595703125, 0.014404296875, -0.0002510547637939453, 0.0201416015625, -0.0221099853515625, 0.00939178466796875, 0.014739990234375, 0.0162811279296875, 0.0042572021484375, -0.0161590576171875, -0.02911376953125, 0.007122039794921875, 0.004360198974609375, 0.0099945068359375, -0.020843505859375, 0.0206298828125, 0.015960693359375, 0.026153564453125, -0.005218505859375, -0.01306915283203125, -0.01467132568359375, 0.015899658203125, -0.05242919921875, 0.00423431396484375, -0.016815185546875, -0.025665283203125, 0.02337646484375, -0.01293182373046875, 0.0010986328125, -0.0086517333984375, -0.00946807861328125, -0.05474853515625, -0.0150604248046875, -0.0006437301635742188 ]
484d7e35a698e64a1130a2901827a58da5812f5b
Wordpress Stackexchange Q: Where is the source of the media items filter I couldn't find the source in the php files. What is generating the select drop-down for the attachment filters in the media library? A: Go to wp-includes and then open file media.php in line number 1907 you will find: »All media items«.
Q: Where is the source of the media items filter I couldn't find the source in the php files. What is generating the select drop-down for the attachment filters in the media library? A: Go to wp-includes and then open file media.php in line number 1907 you will find: »All media items«.
wordpress
{ "language": "en", "length": 52, "provenance": "stackexchange_00019.jsonl.gz:448309", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159539" }
[ 0.034027099609375, -0.0239105224609375, 0.01776123046875, 0.00530242919921875, -0.0167083740234375, -0.026580810546875, 0.06292724609375, -0.01430511474609375, 0.05108642578125, 0.0185394287109375, -0.0301971435546875, -0.03057861328125, 0.0146484375, -0.033111572265625, -0.037994384765625, -0.031494140625, 0.03179931640625, -0.0272216796875, 0.00809478759765625, 0.01123046875, -0.0009140968322753906, 0.0440673828125, -0.023193359375, 0.0198211669921875, -0.040496826171875, 0.00698089599609375, 0.045623779296875, -0.03265380859375, -0.0037250518798828125, -0.00646209716796875, -0.0158843994140625, 0.01181793212890625, 0.02484130859375, -0.015716552734375, -0.00627899169921875, -0.023284912109375, 0.0301055908203125, -0.018096923828125, -0.0110626220703125, 0.01226043701171875, 0.0167999267578125, -0.017852783203125, -0.01061248779296875, 0.0133819580078125, -0.0304107666015625, -0.019805908203125, 0.005741119384765625, -0.0265350341796875, 0.024139404296875, 0.0188140869140625, 0.000202178955078125, 0.019775390625, 0.006229400634765625, -0.011627197265625, 0.0035495758056640625, -0.0003688335418701172, 0.0256805419921875, 0.01009368896484375, 0.01318359375, -0.055816650390625, -0.051605224609375, 0.0229949951171875, 0.03460693359375, 0.025665283203125, 0.006618499755859375, 0.0082244873046875, 0.038665771484375, 0.01062774658203125, -0.03765869140625, -0.018585205078125, 0.01442718505859375, -0.0304412841796875, 0.007354736328125, -0.043548583984375, 0.01294708251953125, 0.033355712890625, -0.0201568603515625, -0.005626678466796875, 0.0435791015625, -0.026702880859375, 0.03424072265625, -0.005359649658203125, -0.00916290283203125, -0.0180816650390625, -0.0004642009735107422, -0.00691986083984375, 0.0007581710815429688, -0.01258087158203125, 0.0035400390625, 0.00371551513671875, 0.002727508544921875, 0.016326904296875, 0.0003142356872558594, 0.0097808837890625, -0.01354217529296875, -0.021514892578125, 0.04833984375, 0.08062744140625, 0.00887298583984375, 0.01238250732421875, -0.0299224853515625, -0.0196685791015625, -0.0182342529296875, -0.0266571044921875, -0.0125732421875, -0.017822265625, -0.004978179931640625, -0.004199981689453125, 0.029388427734375, 0.03948974609375, -0.0284271240234375, 0.0345458984375, 0.0131072998046875, 0.0145111083984375, -0.0244293212890625, -0.0250396728515625, -0.019256591796875, 0.0211639404296875, -0.0028057098388671875, 0.0015153884887695312, -0.005039215087890625, -0.010772705078125, 0.031463623046875, 0.047119140625, -0.01490020751953125, 0.0066680908203125, -0.0074005126953125, -0.0330810546875, -0.00949859619140625, 0.0670166015625, -0.00749969482421875, -0.00750732421875, -0.021942138671875, -0.00736236572265625, -0.0338134765625, -0.034210205078125, -0.04156494140625, 0.01537322998046875, 0.023040771484375, -0.024505615234375, 0.049102783203125, -0.0186004638671875, 0.0167694091796875, 0.0665283203125, 0.037322998046875, 0.019805908203125, 0.04400634765625, 0.02044677734375, -0.0213623046875, -0.005168914794921875, -0.017486572265625, 0.04541015625, 0.040435791015625, 0.0193023681640625, -0.0118865966796875, -0.01824951171875, 0.06842041015625, -0.049713134765625, -0.0271148681640625, -0.06951904296875, -0.007091522216796875, 0.0035495758056640625, 0.00960540771484375, -0.006847381591796875, 0.006305694580078125, -0.01476287841796875, 0.00469970703125, 0.01580810546875, 0.0272216796875, 0.0264129638671875, 0.008941650390625, -0.01416778564453125, 0.027008056640625, 0.0291748046875, -0.005828857421875, 0.0199127197265625, -0.0161285400390625, -0.0125274658203125, 0.01088714599609375, 0.0574951171875, -0.002613067626953125, -0.0267791748046875, -0.004764556884765625, 0.0013704299926757812, -0.034027099609375, 0.01245880126953125, 0.0085906982421875, 0.039154052734375, 0.024383544921875, 0.021453857421875, 0.0178985595703125, 0.0133514404296875, 0.0010128021240234375, -0.01861572265625, -0.016082763671875, -0.0211639404296875, -0.00423431396484375, 0.00577545166015625, -0.00725555419921875, 0.029296875, -0.02752685546875, 0.020965576171875, 0.0054168701171875, 0.027984619140625, -0.00481414794921875, 0.01320648193359375, -0.0101776123046875, 0.01454925537109375, 0.0018224716186523438, 0.04345703125, 0.01421356201171875, 0.033416748046875, -0.028289794921875, -0.020965576171875, -0.00687408447265625, 0.017486572265625, 0.0007843971252441406, 0.0178680419921875, 0.0023021697998046875, 0.0194244384765625, -0.02783203125, -0.02056884765625, -0.022491455078125, 0.007686614990234375, 0.037322998046875, 0.0362548828125, -0.0294036865234375, 0.007701873779296875, 0.05059814453125, -0.003391265869140625, 0.044677734375, 0.024749755859375, 0.0005636215209960938, 0.029449462890625, -0.03302001953125, -0.02392578125, -0.043792724609375, -0.03466796875, 0.0094146728515625, 0.0460205078125, 0.02813720703125, 0.072265625, 0.020660400390625, 0.042510986328125, 0.1365966796875, 0.0193328857421875, 0.0164947509765625, 0.002269744873046875, 0.034149169921875, 0.0273590087890625, -0.0235443115234375, -0.033935546875, 0.03204345703125, -0.058746337890625, 0.036865234375, 0.01409149169921875, 0.020416259765625, 0.006526947021484375, -0.02880859375, 0.040496826171875, 0.00682830810546875, 0.006381988525390625, -0.0335693359375, 0.0029125213623046875, 0.0155029296875, 0.036895751953125, 0.04638671875, 0.05010986328125, -0.01554107666015625, 0.0101165771484375, -0.00395965576171875, 0.006053924560546875, 0.0062713623046875, 0.0458984375, -0.006305694580078125, 0.00792694091796875, -0.006893157958984375, -0.0031604766845703125, -0.032745361328125, 0.0024738311767578125, -0.0265045166015625, -0.00695037841796875, -0.034820556640625, -0.0208892822265625, -0.0006327629089355469, -0.05804443359375, 0.00643157958984375, -0.0236053466796875, -0.0254364013671875, 0.010986328125, 0.0168914794921875, 0.0400390625, -0.01384735107421875, 0.015411376953125, 0.00927734375, -0.0016698837280273438, 0.065673828125, -0.0144805908203125, 0.0165252685546875, -0.016632080078125, 0.0670166015625, 0.061126708984375, -0.03271484375, 0.02606201171875, -0.007450103759765625, 0.00103759765625, 0.0328369140625, -0.0016241073608398438, -0.016632080078125, -0.0157470703125, -0.034210205078125, -0.049346923828125, -0.005535125732421875, -0.10931396484375, -0.0157928466796875, -0.0249481201171875, -0.05535888671875, -0.06439208984375, -0.14013671875, -0.01384735107421875, -0.0069580078125, -0.0360107421875, 0.0005559921264648438, -0.03179931640625, -0.01496124267578125, -0.010040283203125, -0.0176849365234375, -0.005615234375, 0.0033283233642578125, -0.00472259521484375, -0.055694580078125, 0.0021953582763671875, -0.0295867919921875, 0.0247802734375, -0.0294036865234375, 0.0025482177734375, -0.00572967529296875, 0.0784912109375, 0.0032138824462890625, -0.040435791015625, 0.004550933837890625, -0.0029354095458984375, -0.00858306884765625, 0.011322021484375, 0.0194091796875, -0.0413818359375, -0.0309600830078125, -0.00405120849609375, 0.0609130859375, 0.0198516845703125, -0.034210205078125, 0.02142333984375, -0.0180511474609375, -0.01247406005859375, 0.00029468536376953125, 0.048736572265625, 0.011627197265625, -0.03424072265625, 0.0270538330078125, -0.05450439453125, -0.01030731201171875, 0.004146575927734375, -0.0095367431640625, 0.08148193359375, -0.008697509765625, -0.0240325927734375, 0.0340576171875, 0.0345458984375, -0.004138946533203125, -0.015899658203125, -0.027557373046875, -0.0587158203125, 0.046234130859375, 0.0257110595703125, 0.044219970703125, 0.02825927734375, 0.025482177734375, -0.032501220703125, 0.01007080078125, 0.00788116455078125, -0.000025510787963867188, 0.0312042236328125, -0.0287628173828125, 0.036834716796875, -0.046051025390625, 0.0355224609375, -0.0011167526245117188, 0.002471923828125, -0.02740478515625, -0.03485107421875, 0.0037288665771484375, 0.08056640625, -0.044158935546875, -0.021759033203125, -0.014190673828125, 0.01461029052734375, -0.012969970703125, -0.03369140625, 0.004032135009765625, -0.02490234375, -0.05267333984375, 0.01490020751953125, 0.024078369140625, -0.03912353515625, -0.0016021728515625, -0.0079803466796875, -0.05084228515625, -0.0148162841796875, 0.022491455078125, -0.02996826171875, 0.0252685546875, 0.00403594970703125, -0.00653076171875, -0.00543212890625, -0.034149169921875, -0.043487548828125, -0.08636474609375, 0.004367828369140625, -0.057098388671875, 0.07183837890625, 0.02667236328125, -0.0148468017578125, -0.02734375, 0.03155517578125, 0.0280303955078125, 0.01137542724609375, 0.0308685302734375, -0.015045166015625, 0.0214691162109375, -0.019134521484375, 0.0146026611328125, -0.0364990234375, -0.05426025390625, -0.07281494140625, -0.01953125, 0.006755828857421875, 0.0081329345703125, 0.05328369140625, -0.00799560546875, 0.02337646484375, -0.08477783203125, -0.0162506103515625, -0.018310546875, -0.0291900634765625, -0.024261474609375, -0.0129547119140625, 0.00017690658569335938, -0.048187255859375, 0.0152740478515625, -0.007396697998046875, -0.0266876220703125, 0.0260467529296875, 0.04644775390625, 0.00865936279296875, -0.0172271728515625, -0.084228515625, -0.0226898193359375, 0.031585693359375, -0.0240020751953125, 0.062255859375, 0.040191650390625, -0.0071258544921875, 0.028350830078125, -0.00897216796875, 0.055084228515625, -0.0634765625, 0.06390380859375, -0.004581451416015625, -0.00814056396484375, 0.048675537109375, 0.00783538818359375, -0.004528045654296875, -0.0256195068359375, 0.003658294677734375, 0.0085296630859375, 0.04071044921875, 0.0012264251708984375, 0.014434814453125, 0.0017261505126953125, 0.0148468017578125, -0.03387451171875, 0.00617218017578125, -0.0401611328125, 0.09051513671875, 0.0210723876953125, 0.0010395050048828125, 0.043426513671875, 0.05181884765625, 0.0112457275390625, -0.0406494140625, 0.01473236083984375, -0.0379638671875, 0.06463623046875, -0.061981201171875, 0.00537872314453125, -0.042572021484375, 0.00262451171875, -0.046234130859375, -0.028167724609375, -0.0207977294921875, -0.00048828125, -0.0029087066650390625, -0.0070953369140625, 0.058868408203125, -0.024932861328125, -0.006664276123046875, 0.007564544677734375, -0.019439697265625, 0.0259857177734375, -0.01837158203125, -0.0180511474609375, -0.0257720947265625, 0.03594970703125, -0.02203369140625, 0.01288604736328125, 0.0251312255859375, 0.033905029296875, -0.062042236328125, 0.037872314453125, 0.0086669921875, 0.0123443603515625, 0.035675048828125, -0.02618408203125, 0.014984130859375, 0.03680419921875, 0.01322174072265625, -0.042236328125, 0.039947509765625, -0.04364013671875, -0.036956787109375, 0.01331329345703125, 0.046722412109375, -0.03387451171875, -0.00984954833984375, 0.0235748291015625, -0.01085662841796875, 0.002353668212890625, 0.0178070068359375, -0.010772705078125, -0.02557373046875, -0.007411956787109375, -0.0037784576416015625, 0.00965118408203125, -0.03057861328125, -0.0206756591796875, -0.01715087890625, 0.00923919677734375, -0.0025119781494140625, 0.03399658203125, -0.0848388671875, 0.037750244140625, 0.049652099609375, 0.0014657974243164062, 0.01445770263671875, -0.0105438232421875, -0.07147216796875, -0.059783935546875, 0.0042266845703125, 0.015869140625, 0.062103271484375, -0.016693115234375, 0.01340484619140625, 0.010467529296875, -0.011566162109375, -0.054901123046875, 0.0223541259765625, 0.00521087646484375, 0.00812530517578125, -0.002223968505859375, -0.013397216796875, -0.0094146728515625, -0.0217437744140625, 0.035797119140625, -0.0037784576416015625, -0.03240966796875, -0.036468505859375, -0.01239013671875, 0.003147125244140625, 0.00390625, 0.00014960765838623047, 0.020355224609375, 0.0253143310546875, -0.0073089599609375, -0.0020351409912109375, 0.00824737548828125, 0.051544189453125, -0.0054931640625, 0.028594970703125, 0.005313873291015625, -0.01337432861328125, -0.07568359375, 0.01534271240234375, -0.01462554931640625, -0.063720703125, 0.004817962646484375, 0.03350830078125, -0.0343017578125, 0.0219268798828125, 0.036041259765625, 0.0129241943359375, 0.031524658203125, -0.048248291015625, -0.018463134765625, -0.0047760009765625, 0.05352783203125, -0.04840087890625, 0.00533294677734375, 0.01387786865234375, -0.038787841796875, -0.0240936279296875, -0.003421783447265625, -0.0215606689453125, 0.0245361328125, -0.01198577880859375, 0.0066375732421875, 0.046234130859375, -0.039276123046875, 0.0792236328125, 0.0858154296875, -0.017730712890625, 0.0250701904296875, 0.0306854248046875, -0.017822265625, -0.0285491943359375, 0.0557861328125, -0.0092315673828125, -0.07763671875, 0.036956787109375, 0.00872039794921875, -0.038543701171875, 0.01212310791015625, -0.040008544921875, 0.0081787109375, 0.0014095306396484375, 0.036285400390625, 0.00667572021484375, 0.01456451416015625, 0.00991058349609375, -0.00885009765625, -0.010101318359375, -0.0005712509155273438, -0.0240020751953125, -0.06060791015625, 0.0253143310546875, 0.0089111328125, -0.01294708251953125, 0.0015916824340820312, -0.0014333724975585938, 0.00630950927734375, -0.015411376953125, 0.01197052001953125, -0.00004571676254272461, -0.0009927749633789062, -0.055328369140625, 0.02606201171875, -0.0136260986328125, -0.0374755859375, 0.03759765625, -0.0295867919921875, 0.01399993896484375, 0.0010986328125, 0.050445556640625, 0.0081634521484375, 0.0306243896484375, -0.0587158203125, 0.01174163818359375, 0.049407958984375, 0.03961181640625, -0.0054779052734375, -0.0183563232421875, 0.0213623046875, 0.008392333984375, -0.0228118896484375, -0.0206298828125, 0.0001875162124633789, 0.038299560546875, -0.00333404541015625, 0.0241241455078125, 0.004116058349609375, -0.022674560546875, -0.021820068359375, -0.061614990234375, 0.0289459228515625, -0.04986572265625, 0.0234527587890625, 0.03778076171875, 0.03961181640625, -0.005634307861328125, 0.0121002197265625, 0.0274810791015625, -0.0274505615234375, -0.011810302734375, 0.009033203125, -0.016876220703125, 0.01117706298828125, 0.0159759521484375, -0.01488494873046875, 0.0224151611328125, -0.04095458984375, 0.0304412841796875, 0.06878662109375, -0.019287109375, -0.01331329345703125, -0.022216796875, -0.04425048828125, 0.037994384765625, 0.016876220703125, 0.0576171875, -0.05474853515625, -0.0303497314453125, 0.0188751220703125, 0.060943603515625, 0.00714874267578125, -0.01324462890625, -0.006839752197265625, 0.00962066650390625, 0.07745361328125, 0.0645751953125, 0.03924560546875, -0.0007729530334472656, 0.0006308555603027344, 0.012786865234375, 0.04595947265625, -0.053131103515625, 0.03912353515625, -0.06683349609375, 0.0186004638671875, -0.00453948974609375, -0.006683349609375, 0.00594329833984375, 0.0205230712890625, 0.0172882080078125, 0.01320648193359375, -0.0036029815673828125, 0.0078887939453125, -0.04669189453125, 0.00785064697265625, 0.055999755859375, 0.0343017578125, -0.05169677734375, -0.029571533203125, -0.0228424072265625, 0.042205810546875, -0.01045989990234375, 0.004802703857421875, 0.028411865234375, 0.021209716796875, 0.0134735107421875, -0.03558349609375, 0.00321197509765625, -0.01505279541015625, -0.007244110107421875, -0.010772705078125, -0.00383758544921875, 0.0117340087890625, -0.0256500244140625, 0.01251220703125, 0.03265380859375, 0.0029277801513671875, -0.0133056640625, -0.032135009765625, 0.002155303955078125, 0.007328033447265625, -0.0061187744140625, -0.0027790069580078125, 0.0019159317016601562, -0.043731689453125, -0.007427215576171875, -0.0599365234375, -0.00135040283203125, 0.04010009765625, 0.032012939453125, -0.0093994140625, -0.00849151611328125, -0.011932373046875, -0.0210113525390625, -0.0198516845703125, 0.03216552734375, -0.01483154296875, 0.042938232421875, -0.00431060791015625, 0.055694580078125, -0.0648193359375, -0.02178955078125, -0.053497314453125, 0.035736083984375, -0.0003666877746582031, 0.068115234375, -0.044677734375, 0.0098419189453125, 0.01004791259765625, 0.0318603515625, 0.0276336669921875, 0.037078857421875, 0.0190887451171875, -0.0196685791015625, -0.0159759521484375, 0.004974365234375, 0.01983642578125, -0.03900146484375, 0.0045623779296875, -0.03155517578125, 0.0478515625, 0.0677490234375, 0.0087432861328125, -0.0097808837890625, -0.04315185546875, 0.13427734375, -0.022674560546875, 0.0212554931640625, -0.0043792724609375, -0.037628173828125, 0.010711669921875, -0.0206298828125, 0.033172607421875, -0.008819580078125, -0.09375, -0.0234375, 0.007419586181640625, -0.0411376953125, 0.011383056640625, 0.0357666015625, -0.06683349609375, 0.041046142578125, -0.02728271484375, -0.005706787109375, 0.00799560546875, -0.0247039794921875, 0.00794219970703125, 0.0068359375, 0.003940582275390625, -0.0214385986328125, -0.0712890625, -0.02593994140625, -0.034942626953125, 0.0207977294921875, 0.0202178955078125, 0.047821044921875, 0.020782470703125, 0.0303955078125, -0.044036865234375, -0.0253753662109375, -0.0018033981323242188, -0.0241851806640625, -0.0237579345703125, 0.0037136077880859375, -0.011749267578125, 0.017181396484375, 0.036346435546875, -0.002979278564453125, 0.041290283203125, -0.063232421875, -0.01006317138671875, -0.0206146240234375, 0.0095367431640625, -0.036712646484375, 0.03460693359375, 0.001468658447265625, -0.003314971923828125, 0.0186614990234375, -0.00508880615234375, 0.02740478515625, 0.047332763671875, 0.0074310302734375, -0.022186279296875, 0.011383056640625, 0.005580902099609375, 0.0005440711975097656, 0.06988525390625, 0.01486968994140625, 0.031494140625, -0.09417724609375, -0.038909912109375, 0.0012340545654296875, -0.0138092041015625, 0.0006308555603027344, 0.0076751708984375, 0.036834716796875, 0.01934814453125, -0.0362548828125, 0.0156707763671875, 0.0146331787109375, 0.042205810546875, -0.01296234130859375, 0.0110931396484375, 0.0095672607421875, 0.004726409912109375, -0.01654052734375, 0.00494384765625, -0.0024585723876953125, -0.0208740234375, -0.0328369140625, 0.0159912109375, -0.0172271728515625, -0.00713348388671875, -0.0084228515625, -0.0104522705078125, 0.031890869140625, 0.015350341796875, -0.06500244140625, 0.022247314453125, -0.00899505615234375, 0.0229949951171875, -0.006267547607421875, 0.031280517578125, -0.01016998291015625, 0.01947021484375, -0.035919189453125, -0.043212890625, -0.014862060546875, 0.052459716796875, -0.004886627197265625, 0.029022216796875, 0.0625, -0.035675048828125, -0.006961822509765625, 0.03173828125, 0.03955078125, 0.0860595703125, -0.0640869140625, -0.01776123046875, 0.0306243896484375, 0.0019435882568359375, -0.0087738037109375, -0.006622314453125, -0.0226593017578125, 0.023345947265625, 0.005290985107421875, 0.00196075439453125, -0.01800537109375, -0.0078582763671875, -0.057830810546875, -0.1165771484375, 0.0236053466796875, -0.0097198486328125, -0.042327880859375, -0.055328369140625, 0.0196533203125, 0.0131072998046875, 0.01279449462890625, -0.00255584716796875, -0.03466796875, -0.0360107421875, 0.0107421875, 0.00444793701171875, 0.006046295166015625, 0.00811004638671875, -0.0270843505859375, -0.06494140625, -0.0031280517578125, -0.0085601806640625, 0.021575927734375, -0.0220794677734375, 0.0031795501708984375, 0.034149169921875, 0.0308990478515625, -0.0294952392578125, 0.00727081298828125, 0.0133514404296875, 0.005786895751953125, 0.0266571044921875, 0.025360107421875, -0.067626953125, -0.006450653076171875, 0.034759521484375, 0.08099365234375, 0.025360107421875, -0.025482177734375, 0.06219482421875, 0.023345947265625, -0.03607177734375, 0.0094451904296875, 0.005168914794921875, -0.006748199462890625, -0.018096923828125, -0.0118865966796875, -0.0169219970703125, 0.0142974853515625, -0.0228118896484375, -0.024322509765625, 0.00809478759765625, 0.00234222412109375, -0.004749298095703125, 0.033843994140625, -0.05816650390625, 0.0379638671875, -0.0325927734375, -0.016143798828125, 0.013641357421875, 0.0330810546875, 0.00441741943359375, 0.0305023193359375, 0.01885986328125, -0.056488037109375, 0.019012451171875, 0.0220489501953125, 0.0206756591796875, 0.005069732666015625, 0.0216217041015625, -0.043182373046875, -0.01544189453125, 0.0044097900390625, 0.0006861686706542969, -0.005725860595703125, 0.005008697509765625, 0.0162353515625, -0.0028438568115234375, 0.05145263671875, -0.00522613525390625, -0.0028591156005859375, -0.0213775634765625, 0.03851318359375, 0.0123748779296875, -0.016387939453125, 0.0260772705078125, -0.02069091796875, 0.0120849609375, 0.005382537841796875, -0.01476287841796875, -0.00638580322265625, 0.0007677078247070312, 0.0301666259765625, -0.03594970703125, 0.01496124267578125 ]
f6e3e96ce9122bf7e0cdc1b4d7bf0fba8f5c5c55
Wordpress Stackexchange Q: Copy and delete a directory with WordPress functions I have successfully used copy_dir() to copy a directory to a new location. How can I delete a directory using WordPress functions? A: The method rmdir() - source - : /** * Delete a directory. * * @since 2.5.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool Whether directory is deleted successfully or not. */ public function rmdir( $path, $recursive = false ) { return false; } from the WP_Filesystem_Base class should work for that purpose. The method rmdir() is part of the classes that extend WP_Filesystem_Base, like WP_Filesystem_Direct and accordingly there is the rmdir() method in that class. Take a look at the the wp-admin/includes directory to inspect the other classes yourself. So just copy the directory with copy_dir() - source - and then remove it with above method. A bit more general information about the Filesystem API can be found at the codex page.
Q: Copy and delete a directory with WordPress functions I have successfully used copy_dir() to copy a directory to a new location. How can I delete a directory using WordPress functions? A: The method rmdir() - source - : /** * Delete a directory. * * @since 2.5.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool Whether directory is deleted successfully or not. */ public function rmdir( $path, $recursive = false ) { return false; } from the WP_Filesystem_Base class should work for that purpose. The method rmdir() is part of the classes that extend WP_Filesystem_Base, like WP_Filesystem_Direct and accordingly there is the rmdir() method in that class. Take a look at the the wp-admin/includes directory to inspect the other classes yourself. So just copy the directory with copy_dir() - source - and then remove it with above method. A bit more general information about the Filesystem API can be found at the codex page.
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:448329", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159619" }
[ 0.030181884765625, 0.00514984130859375, -0.01873779296875, -0.01485443115234375, 0.023040771484375, -0.0259246826171875, 0.052032470703125, -0.006755828857421875, 0.01416015625, 0.007049560546875, 0.0026645660400390625, -0.019134521484375, 0.021087646484375, -0.045440673828125, 0.0004646778106689453, -0.01036834716796875, 0.0416259765625, -0.0343017578125, 0.042266845703125, -0.0124664306640625, 0.003772735595703125, 0.0104217529296875, 0.07012939453125, 0.042572021484375, -0.01885986328125, 0.008544921875, 0.024200439453125, -0.0207672119140625, -0.0272674560546875, -0.0491943359375, -0.00899505615234375, 0.05096435546875, -0.0011091232299804688, 0.035186767578125, 0.0023212432861328125, 0.036224365234375, 0.00623321533203125, 0.0242156982421875, 0.045257568359375, 0.0037174224853515625, 0.0276947021484375, -0.0167388916015625, -0.00870513916015625, -0.030487060546875, -0.0189056396484375, -0.028228759765625, 0.0277862548828125, -0.01268768310546875, 0.0104827880859375, 0.02545166015625, 0.009368896484375, 0.004913330078125, 0.02679443359375, -0.02093505859375, -0.007114410400390625, -0.006214141845703125, 0.0142822265625, 0.01467132568359375, 0.026763916015625, -0.044097900390625, -0.045318603515625, 0.016937255859375, 0.028472900390625, 0.00445556640625, 0.0164642333984375, 0.0010929107666015625, -0.0004825592041015625, 0.042327880859375, -0.08343505859375, -0.0038623809814453125, 0.0304718017578125, -0.0457763671875, -0.004169464111328125, -0.0362548828125, 0.019989013671875, 0.040313720703125, -0.0279998779296875, -0.006069183349609375, 0.0164031982421875, 0.002513885498046875, 0.0247955322265625, -0.01358795166015625, -0.036956787109375, 0.00020551681518554688, 0.0213775634765625, 0.04833984375, -0.0058746337890625, -0.02728271484375, -0.02874755859375, -0.0181121826171875, -0.025848388671875, -0.0153350830078125, 0.006046295166015625, -0.037322998046875, -0.033905029296875, -0.018463134765625, 0.0167083740234375, 0.028900146484375, -0.0234527587890625, 0.01273345947265625, -0.0111541748046875, -0.024383544921875, 0.00024187564849853516, -0.0226593017578125, -0.0116729736328125, 0.0183563232421875, -0.00145721435546875, -0.06396484375, -0.01026153564453125, 0.0228424072265625, -0.0161590576171875, -0.014404296875, -0.0192108154296875, -0.05352783203125, -0.0103759765625, 0.048919677734375, -0.0240936279296875, 0.0238189697265625, 0.017059326171875, 0.01468658447265625, -0.01806640625, -0.00008624792098999023, -0.006137847900390625, 0.0159454345703125, 0.022735595703125, 0.0186004638671875, -0.01204681396484375, 0.0000921487808227539, 0.07879638671875, -0.0005846023559570312, -0.0445556640625, 0.00688934326171875, 0.04107666015625, -0.01177215576171875, 0.01030731201171875, -0.00882720947265625, 0.0146026611328125, 0.0149688720703125, 0.0182037353515625, -0.007160186767578125, 0.04571533203125, -0.020233154296875, -0.006862640380859375, 0.04034423828125, -0.013641357421875, 0.0216522216796875, 0.0018510818481445312, 0.0251617431640625, 0.0113983154296875, -0.037872314453125, -0.039947509765625, -0.00789642333984375, 0.0162811279296875, 0.01561737060546875, 0.008453369140625, -0.054412841796875, 0.0262603759765625, -0.060546875, 0.049774169921875, -0.049285888671875, 0.044708251953125, -0.0083465576171875, -0.005672454833984375, 0.0159149169921875, -0.0112152099609375, 0.0012044906616210938, -0.040374755859375, -0.006683349609375, 0.0273895263671875, 0.00684356689453125, 0.01056671142578125, -0.0479736328125, -0.0268707275390625, 0.005542755126953125, -0.00743865966796875, 0.037750244140625, 0.060333251953125, -0.02154541015625, -0.0202484130859375, 0.0797119140625, -0.00440216064453125, -0.0276641845703125, 0.0060577392578125, -0.0264129638671875, -0.011810302734375, -0.0252838134765625, 0.018402099609375, 0.01335906982421875, 0.01274871826171875, 0.026153564453125, 0.011688232421875, 0.01401519775390625, 0.009613037109375, -0.0224609375, -0.01033782958984375, -0.0299072265625, 0.01238250732421875, -0.0082855224609375, -0.01471710205078125, 0.02703857421875, 0.0091552734375, 0.0208892822265625, -0.00003802776336669922, -0.0119476318359375, -0.08935546875, 0.035614013671875, -0.039520263671875, 0.051788330078125, -0.00897216796875, 0.0190582275390625, 0.016754150390625, 0.01202392578125, -0.022308349609375, -0.02691650390625, -0.0218963623046875, 0.0009899139404296875, -0.0188446044921875, 0.048614501953125, -0.020751953125, 0.0711669921875, -0.0546875, -0.05242919921875, -0.0360107421875, -0.038909912109375, 0.0300140380859375, -0.00971221923828125, -0.0272064208984375, -0.0245819091796875, 0.00756072998046875, -0.01299285888671875, -0.035980224609375, 0.0570068359375, 0.00704193115234375, 0.01104736328125, 0.0013113021850585938, -0.00266265869140625, 0.0015811920166015625, -0.0859375, 0.024627685546875, 0.0452880859375, 0.032012939453125, 0.04486083984375, 0.0005583763122558594, 0.0196990966796875, 0.0667724609375, -0.054962158203125, -0.0189208984375, 0.00809478759765625, -0.006244659423828125, 0.0233001708984375, -0.004032135009765625, -0.016021728515625, 0.006755828857421875, -0.055023193359375, -0.0186920166015625, 0.0167236328125, -0.002590179443359375, 0.0018825531005859375, 0.00037384033203125, -0.01053619384765625, 0.00197601318359375, -0.04205322265625, -0.038726806640625, -0.0003452301025390625, -0.01715087890625, 0.0114288330078125, -0.01552581787109375, -0.0098876953125, -0.01271820068359375, 0.011444091796875, 0.032073974609375, -0.037567138671875, -0.0010347366333007812, 0.06634521484375, 0.035614013671875, -0.014129638671875, -0.0298004150390625, -0.01074981689453125, -0.007610321044921875, 0.02606201171875, -0.0133056640625, 0.0249786376953125, 0.0069122314453125, -0.00830841064453125, -0.00666046142578125, 0.029998779296875, 0.0191497802734375, -0.013916015625, 0.00255584716796875, 0.0012063980102539062, 0.015228271484375, 0.053436279296875, -0.01003265380859375, 0.04522705078125, 0.0018739700317382812, 0.0039520263671875, 0.0784912109375, 0.022003173828125, -0.01409912109375, 0.018524169921875, 0.028594970703125, 0.0322265625, 0.01371002197265625, -0.041717529296875, 0.019775390625, 0.016448974609375, 0.053985595703125, -0.0027923583984375, -0.0024738311767578125, -0.010955810546875, -0.03131103515625, -0.018218994140625, 0.021209716796875, -0.01593017578125, -0.009063720703125, -0.038909912109375, -0.0257110595703125, -0.0098419189453125, -0.12548828125, -0.07647705078125, 0.003162384033203125, -0.03143310546875, -0.0039215087890625, 0.05322265625, -0.0222930908203125, -0.0239715576171875, 0.08538818359375, 0.0110321044921875, 0.0092620849609375, -0.004039764404296875, -0.0016078948974609375, -0.01568603515625, -0.0241851806640625, -0.042755126953125, 0.004894256591796875, -0.0194091796875, 0.0102081298828125, 0.0205078125, -0.0052337646484375, -0.053497314453125, 0.004119873046875, 0.09246826171875, 0.004604339599609375, 0.0017995834350585938, 0.049835205078125, -0.00039649009704589844, -0.012054443359375, 0.003543853759765625, 0.031036376953125, 0.053466796875, -0.0576171875, -0.01556396484375, -0.00006240606307983398, 0.01169586181640625, -0.0064849853515625, 0.00414276123046875, 0.005916595458984375, -0.01324462890625, -0.023834228515625, -0.048919677734375, -0.01555633544921875, -0.0031681060791015625, -0.034942626953125, 0.045379638671875, 0.02874755859375, -0.0196380615234375, 0.0060882568359375, 0.0205535888671875, 0.0310821533203125, 0.0645751953125, -0.02740478515625, 0.0400390625, 0.0212554931640625, -0.0200653076171875, 0.0025615692138671875, -0.024169921875, 0.0743408203125, -0.01050567626953125, 0.0195465087890625, 0.031707763671875, 0.01508331298828125, 0.0034351348876953125, -0.029327392578125, -0.048309326171875, -0.035552978515625, 0.044708251953125, -0.0014505386352539062, -0.0078582763671875, -0.0096588134765625, -0.0305938720703125, -0.0021495819091796875, 0.0648193359375, -0.01448822021484375, -0.04339599609375, -0.0256195068359375, 0.0122528076171875, -0.016204833984375, -0.0325927734375, 0.005924224853515625, -0.01141357421875, -0.0142974853515625, 0.0071258544921875, 0.012542724609375, -0.01517486572265625, -0.0218963623046875, -0.03369140625, -0.022857666015625, -0.00608062744140625, 0.0090179443359375, -0.06915283203125, 0.01739501953125, -0.0157928466796875, 0.0284271240234375, -0.052978515625, 0.0279693603515625, -0.0655517578125, -0.048553466796875, -0.0095062255859375, -0.0408935546875, 0.0498046875, 0.0195465087890625, 0.01861572265625, -0.0192413330078125, 0.043060302734375, 0.00405120849609375, 0.003948211669921875, 0.01380157470703125, 0.0147247314453125, -0.017120361328125, 0.00045490264892578125, 0.013427734375, -0.033843994140625, -0.005748748779296875, -0.057830810546875, -0.022216796875, -0.02947998046875, -0.04119873046875, 0.0472412109375, -0.0227813720703125, -0.01087188720703125, -0.01522064208984375, -0.0196990966796875, -0.08966064453125, -0.0009331703186035156, -0.047027587890625, -0.030975341796875, -0.022308349609375, -0.06329345703125, 0.030364990234375, -0.0074005126953125, -0.0172271728515625, 0.00746917724609375, 0.07049560546875, 0.01279449462890625, -0.0063323974609375, -0.0230560302734375, 0.0010347366333007812, 0.008026123046875, -0.036102294921875, 0.048065185546875, 0.0303497314453125, 0.01395416259765625, 0.0096435546875, -0.033355712890625, -0.00897979736328125, -0.01403045654296875, 0.032806396484375, -0.0095062255859375, -0.019744873046875, 0.00926971435546875, -0.029632568359375, 0.0304107666015625, 0.02386474609375, 0.0050506591796875, -0.01165771484375, -0.017974853515625, 0.0191192626953125, 0.035430908203125, -0.038116455078125, -0.04071044921875, -0.07440185546875, 0.0140380859375, -0.05023193359375, 0.027557373046875, 0.0232391357421875, -0.0015163421630859375, 0.060516357421875, 0.059234619140625, 0.0021038055419921875, -0.00824737548828125, 0.00949859619140625, -0.0283203125, 0.02301025390625, 0.0181884765625, -0.003204345703125, 0.0011739730834960938, 0.01055908203125, 0.03875732421875, 0.018707275390625, -0.0215911865234375, -0.04119873046875, 0.01050567626953125, 0.0243072509765625, -0.01654052734375, -0.0347900390625, 0.0310211181640625, 0.017608642578125, -0.0352783203125, -0.01302337646484375, -0.0435791015625, -0.032928466796875, -0.061492919921875, 0.0196075439453125, 0.0280303955078125, -0.026092529296875, 0.0158538818359375, 0.0007262229919433594, 0.04058837890625, -0.02410888671875, -0.011993408203125, 0.038299560546875, 0.018707275390625, 0.0191497802734375, -0.0091400146484375, 0.0030078887939453125, 0.025848388671875, -0.0238800048828125, 0.01290130615234375, -0.0307769775390625, -0.036773681640625, 0.03955078125, 0.032867431640625, -0.043609619140625, -0.0189056396484375, 0.016937255859375, 0.00431060791015625, -0.013916015625, 0.01085662841796875, -0.02294921875, -0.04150390625, 0.0008406639099121094, 0.009796142578125, 0.018035888671875, -0.021514892578125, -0.00014328956604003906, -0.0007486343383789062, -0.039886474609375, -0.007617950439453125, 0.03192138671875, -0.014312744140625, -0.0294342041015625, -0.0308837890625, -0.0291748046875, -0.0067901611328125, 0.0265045166015625, -0.0265655517578125, -0.011688232421875, -0.0268707275390625, -0.022125244140625, 0.046600341796875, -0.01186370849609375, 0.0111541748046875, -0.011383056640625, -0.00750732421875, -0.0166015625, 0.0030651092529296875, 0.0650634765625, 0.033538818359375, -0.0572509765625, -0.006023406982421875, -0.0399169921875, 0.0006766319274902344, -0.0197906494140625, -0.03656005859375, -0.0273284912109375, 0.01593017578125, -0.035491943359375, -0.0037975311279296875, 0.003253936767578125, 0.03582763671875, 0.0015268325805664062, 0.031341552734375, -0.0296630859375, -0.028076171875, 0.0084381103515625, 0.0092010498046875, 0.0012769699096679688, 0.0182647705078125, 0.0235443115234375, 0.004749298095703125, 0.003009796142578125, -0.0292205810546875, 0.0159454345703125, -0.01300811767578125, -0.0252685546875, -0.026275634765625, -0.005069732666015625, 0.0113677978515625, 0.07025146484375, -0.004894256591796875, -0.01715087890625, -0.00690460205078125, -0.01474761962890625, -0.047821044921875, 0.037017822265625, 0.0009937286376953125, 0.0430908203125, -0.107421875, -0.031524658203125, 0.030303955078125, 0.01427459716796875, -0.0014772415161132812, 0.01065826416015625, -0.02508544921875, 0.02764892578125, 0.033203125, -0.026092529296875, 0.02655029296875, 0.04925537109375, 0.00347900390625, 0.042694091796875, -0.018402099609375, 0.00855255126953125, 0.03558349609375, -0.01776123046875, 0.03509521484375, 0.0374755859375, 0.04571533203125, -0.00879669189453125, 0.00620269775390625, 0.015045166015625, -0.030120849609375, 0.01479339599609375, 0.0286102294921875, 0.057647705078125, -0.05084228515625, 0.0221405029296875, 0.031158447265625, 0.00876617431640625, 0.041259765625, -0.0018777847290039062, 0.0179901123046875, -0.0017042160034179688, 0.00212860107421875, 0.0170745849609375, -0.01311492919921875, -0.0002732276916503906, 0.0089874267578125, -0.0157470703125, 0.0159912109375, -0.0144195556640625, 0.0218505859375, -0.0269317626953125, 0.019012451171875, 0.032379150390625, 0.00843048095703125, -0.0269012451171875, 0.01279449462890625, 0.00333404541015625, -0.0226593017578125, -0.0521240234375, 0.028961181640625, -0.0020732879638671875, -0.008331298828125, 0.0183563232421875, -0.0060882568359375, 0.0670166015625, 0.0290679931640625, -0.003505706787109375, 0.001216888427734375, -0.005397796630859375, 0.0008254051208496094, -0.047882080078125, -0.020721435546875, 0.058013916015625, -0.00789642333984375, -0.062744140625, 0.035736083984375, -0.057220458984375, -0.016876220703125, -0.01137542724609375, 0.0012359619140625, 0.07391357421875, -0.055511474609375, -0.0066375732421875, 0.036346435546875, 0.035675048828125, -0.01116943359375, 0.0087890625, 0.026458740234375, -0.0472412109375, -0.0310211181640625, 0.015350341796875, -0.0301971435546875, 0.001750946044921875, -0.00363922119140625, -0.02886962890625, 0.10369873046875, 0.0016279220581054688, -0.002979278564453125, 0.001708984375, 0.044281005859375, -0.0291748046875, 0.041534423828125, -0.04248046875, 0.0221405029296875, 0.03302001953125, 0.0004792213439941406, -0.0394287109375, -0.0053558349609375, -0.0295867919921875, 0.02459716796875, 0.049652099609375, 0.01178741455078125, 0.01383209228515625, -0.00811004638671875, 0.0026264190673828125, 0.0290985107421875, -0.0180206298828125, 0.0045623779296875, -0.0115203857421875, -0.015960693359375, 0.0213165283203125, -0.0263671875, 0.0089263916015625, 0.007350921630859375, -0.0291290283203125, 0.0165252685546875, -0.003993988037109375, -0.0272064208984375, 0.007541656494140625, -0.00980377197265625, -0.06402587890625, 0.01422882080078125, 0.022552490234375, 0.003143310546875, 0.00531768798828125, 0.05419921875, 0.06451416015625, -0.030548095703125, 0.0230255126953125, -0.036468505859375, 0.061737060546875, 0.0110321044921875, 0.040283203125, 0.023895263671875, 0.013824462890625, 0.028656005859375, 0.0286407470703125, 0.0268402099609375, 0.031951904296875, -0.02734375, 0.04486083984375, 0.05865478515625, 0.033172607421875, 0.0226287841796875, 0.020263671875, 0.0221710205078125, 0.038726806640625, -0.032318115234375, -0.0440673828125, 0.00769805908203125, -0.004497528076171875, -0.0112762451171875, -0.0013294219970703125, -0.012451171875, -0.036834716796875, 0.008148193359375, -0.0477294921875, -0.0169677734375, 0.0192718505859375, 0.0238189697265625, -0.00989532470703125, -0.04449462890625, 0.016998291015625, -0.031585693359375, -0.0023136138916015625, -0.0088043212890625, 0.005893707275390625, -0.0221710205078125, -0.021148681640625, 0.0183563232421875, 0.0301666259765625, 0.009185791015625, 0.0163116455078125, 0.06219482421875, 0.0190887451171875, -0.03570556640625, -0.0277862548828125, -0.08270263671875, 0.014373779296875, 0.022247314453125, 0.028106689453125, 0.043365478515625, 0.0576171875, 0.01416778564453125, -0.01508331298828125, 0.005207061767578125, 0.023834228515625, -0.034332275390625, 0.0206451416015625, -0.01517486572265625, 0.00431060791015625, -0.01474761962890625, -0.0148773193359375, -0.04498291015625, 0.03759765625, 0.01396942138671875, -0.036651611328125, 0.0306854248046875, -0.0081634521484375, -0.0209503173828125, 0.0263519287109375, -0.041778564453125, 0.007137298583984375, -0.0304412841796875, -0.0136871337890625, 0.005096435546875, -0.0280303955078125, 0.012847900390625, 0.0012254714965820312, 0.0253143310546875, 0.0002586841583251953, 0.0270233154296875, 0.02569580078125, 0.00907135009765625, 0.01287841796875, 0.0162200927734375, -0.036163330078125, -0.00800323486328125, 0.06805419921875, -0.007904052734375, 0.004901885986328125, -0.00913238525390625, -0.0251312255859375, 0.06536865234375, 0.029541015625, 0.10546875, -0.058807373046875, 0.043609619140625, -0.0090179443359375, 0.045257568359375, -0.035064697265625, -0.020294189453125, 0.060455322265625, 0.0301971435546875, 0.01422119140625, -0.0158538818359375, -0.0175323486328125, -0.032806396484375, 0.04913330078125, -0.06744384765625, -0.0278472900390625, 0.0009751319885253906, 0.0200653076171875, -0.0194091796875, 0.04486083984375, -0.00991058349609375, -0.014190673828125, -0.0011663436889648438, -0.01258087158203125, 0.0298614501953125, 0.051788330078125, 0.0150909423828125, 0.016082763671875, -0.0009784698486328125, -0.0166473388671875, 0.02203369140625, -0.024993896484375, 0.03167724609375, 0.026397705078125, -0.00997161865234375, -0.05584716796875, -0.036529541015625, -0.0225067138671875, -0.0298614501953125, -0.00408172607421875, 0.0212554931640625, -0.0280303955078125, -0.0511474609375, -0.05322265625, -0.0206298828125, 0.01052093505859375, 0.01409149169921875, 0.0033111572265625, -0.065185546875, 0.005107879638671875, -0.0014677047729492188, -0.0305023193359375, -0.015655517578125, -0.0208740234375, 0.0012264251708984375, 0.030609130859375, -0.01171875, -0.03338623046875, -0.050537109375, 0.008453369140625, 0.033905029296875, 0.0207977294921875, -0.08428955078125, 0.05206298828125, -0.0146331787109375, 0.0179290771484375, 0.00036525726318359375, 0.021270751953125, -0.006999969482421875, 0.03460693359375, -0.0282135009765625, -0.0772705078125, -0.0193634033203125, 0.085205078125, -0.05267333984375, 0.03521728515625, 0.047332763671875, -0.0260009765625, 0.0067901611328125, 0.0235595703125, 0.02789306640625, 0.06732177734375, 0.0026397705078125, -0.047027587890625, -0.011688232421875, -0.007061004638671875, 0.019378662109375, -0.010955810546875, 0.0029964447021484375, -0.02532958984375, -0.022216796875, -0.0210113525390625, -0.012237548828125, -0.01180267333984375, -0.05523681640625, -0.09344482421875, 0.00923919677734375, -0.0018024444580078125, -0.04388427734375, 0.00992584228515625, -0.00959014892578125, -0.01739501953125, 0.03668212890625, 0.0042877197265625, -0.012908935546875, -0.01502227783203125, 0.00786590576171875, 0.0192718505859375, 0.06463623046875, 0.00011909008026123047, 0.03314208984375, 0.0204010009765625, 0.0552978515625, 0.0216217041015625, 0.01812744140625, 0.0005741119384765625, -0.007495880126953125, 0.0360107421875, 0.06976318359375, 0.0149688720703125, 0.01430511474609375, 0.014373779296875, -0.07318115234375, -0.0269317626953125, -0.015380859375, -0.01495361328125, 0.0033435821533203125, 0.0848388671875, 0.0599365234375, 0.0297393798828125, -0.051361083984375, -0.06365966796875, -0.041259765625, 0.002910614013671875, 0.0090484619140625, 0.02630615234375, -0.08184814453125, 0.016693115234375, 0.047698974609375, 0.0164794921875, -0.00746917724609375, -0.04962158203125, -0.009918212890625, -0.017425537109375, 0.01313018798828125, 0.025787353515625, 0.00803375244140625, 0.043914794921875, 0.06829833984375, -0.0482177734375, 0.0290679931640625, -0.0211334228515625, -0.007198333740234375, 0.05584716796875, -0.0200347900390625, -0.00045013427734375, 0.03765869140625, -0.024871826171875, 0.0181884765625, -0.003101348876953125, 0.023223876953125, -0.03448486328125, -0.00921630859375, 0.047271728515625, -0.012451171875, -0.0257568359375, -0.033172607421875, 0.0028247833251953125, 0.05609130859375, -0.05047607421875, 0.06915283203125, 0.0229644775390625, 0.05364990234375, -0.018890380859375, 0.07354736328125, -0.024017333984375, -0.027557373046875, -0.0205535888671875, -0.0148162841796875, -0.01617431640625, 0.0256805419921875, 0.001667022705078125, -0.08807373046875, 0.08270263671875, 0.03955078125, 0.040008544921875, 0.045989990234375 ]
d620e37f467db605e94da15253b5bc5fce2d7d9a
Wordpress Stackexchange Q: Concatenate and minify dependencies for enqueued JavaScript files I'm loading a JavaScript file using wp_enqueue_script into my theme. However, along with it, I'm loading several jQuery files as well, as dependencies for the enqueued script (which has already been concatenated and minified by Grunt). Here is my code: add_action('wp_enqueue_scripts', function() { wp_enqueue_script( 'customscripts', get_template_directory_uri() . '/assets/js/main.min.js', array('jquery', 'jquery-form', 'json2', 'jquery-ui-autocomplete'), NULL, true ); }); For the dependencies array, how would I go about concatenating and minifying those jQuery dependencies? I'm trying to get my site to load as fast as possible, and the less JS files it has to load the better. Also if it were possible to make them load asynchronously (using the async property for <script> tags) that'd be ace. I'd rather do it without using a plugin but I will use a plugin if necessary. Thanks for any help :) A: W3 Total Cache offers JS/CSS minification. I'm not familiar with the process they use, but if you are wanting to avoid using a plugin, you could take a look at their source code how they handle it.
Q: Concatenate and minify dependencies for enqueued JavaScript files I'm loading a JavaScript file using wp_enqueue_script into my theme. However, along with it, I'm loading several jQuery files as well, as dependencies for the enqueued script (which has already been concatenated and minified by Grunt). Here is my code: add_action('wp_enqueue_scripts', function() { wp_enqueue_script( 'customscripts', get_template_directory_uri() . '/assets/js/main.min.js', array('jquery', 'jquery-form', 'json2', 'jquery-ui-autocomplete'), NULL, true ); }); For the dependencies array, how would I go about concatenating and minifying those jQuery dependencies? I'm trying to get my site to load as fast as possible, and the less JS files it has to load the better. Also if it were possible to make them load asynchronously (using the async property for <script> tags) that'd be ace. I'd rather do it without using a plugin but I will use a plugin if necessary. Thanks for any help :) A: W3 Total Cache offers JS/CSS minification. I'm not familiar with the process they use, but if you are wanting to avoid using a plugin, you could take a look at their source code how they handle it.
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:448345", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159663" }
[ 0.0157470703125, -0.0242462158203125, -0.09503173828125, -0.0946044921875, 0.0011157989501953125, -0.042236328125, -0.0240631103515625, 0.0902099609375, -0.061981201171875, 0.020599365234375, -0.020263671875, 0.0309600830078125, -0.056121826171875, 0.00101470947265625, 0.0008897781372070312, -0.054931640625, 0.060791015625, -0.03790283203125, 0.0008211135864257812, -0.00860595703125, 0.01226043701171875, 0.026123046875, 0.00804901123046875, 0.11395263671875, 0.00162506103515625, -0.040130615234375, 0.094482421875, -0.0173187255859375, 0.019012451171875, -0.01180267333984375, 0.0167083740234375, -0.0093994140625, 0.0020999908447265625, 0.021270751953125, 0.0008325576782226562, -0.017364501953125, 0.03961181640625, 0.00820159912109375, 0.02142333984375, 0.0034046173095703125, 0.0232086181640625, -0.00473785400390625, 0.05401611328125, 0.03759765625, -0.00719451904296875, -0.021942138671875, 0.0157623291015625, -0.0301513671875, 0.018218994140625, 0.0013017654418945312, -0.007366180419921875, 0.012725830078125, 0.0126953125, -0.045379638671875, 0.004192352294921875, 0.014739990234375, -0.035186767578125, 0.00920867919921875, 0.01230621337890625, 0.0582275390625, 0.01617431640625, 0.02203369140625, -0.0190277099609375, -0.044219970703125, -0.01495361328125, -0.0224761962890625, -0.042572021484375, 0.0176239013671875, -0.021636962890625, 0.0017604827880859375, 0.034912109375, -0.0162353515625, 0.01258087158203125, -0.018402099609375, 0.017303466796875, -0.009521484375, 0.00403594970703125, 0.0208587646484375, 0.0276641845703125, 0.000013768672943115234, 0.034210205078125, -0.0008754730224609375, -0.0138702392578125, -0.01922607421875, 0.01091766357421875, 0.003566741943359375, 0.002506256103515625, -0.01499176025390625, -0.026214599609375, 0.004055023193359375, -0.0291748046875, -0.01459503173828125, -0.01160430908203125, 0.033966064453125, -0.00946044921875, 0.01094818115234375, 0.049591064453125, 0.05609130859375, 0.0111541748046875, 0.033905029296875, 0.00799560546875, -0.051544189453125, 0.035888671875, -0.0266265869140625, -0.0029773712158203125, 0.043060302734375, -0.02862548828125, 0.016571044921875, 0.03619384765625, 0.04052734375, 0.0216064453125, -0.023406982421875, 0.039459228515625, 0.0074920654296875, 0.0006451606750488281, -0.044219970703125, -0.0309295654296875, 0.05426025390625, -0.003154754638671875, 0.041595458984375, -0.0181427001953125, 0.01152801513671875, -0.0260009765625, 0.01070404052734375, -0.01399993896484375, -0.0288848876953125, 0.0030422210693359375, 0.0038623809814453125, 0.0149078369140625, 0.006443023681640625, -0.02197265625, 0.031402587890625, 0.0604248046875, -0.0055999755859375, -0.0053558349609375, -0.024444580078125, 0.038848876953125, -0.0290069580078125, 0.0009374618530273438, -0.0110321044921875, -0.0016527175903320312, -0.0161590576171875, 0.00997161865234375, -0.01471710205078125, 0.004627227783203125, -0.0103302001953125, -0.0024242401123046875, 0.034698486328125, 0.0162200927734375, -0.0244598388671875, 0.034698486328125, -0.0230712890625, 0.06915283203125, -0.0246734619140625, -0.045654296875, -0.046875, 0.02410888671875, -0.050140380859375, -0.013275146484375, -0.0775146484375, -0.032379150390625, 0.007045745849609375, 0.004535675048828125, -0.02362060546875, -0.0085906982421875, -0.02423095703125, 0.05615234375, 0.023590087890625, 0.024017333984375, 0.0078125, -0.033111572265625, -0.0548095703125, 0.0131683349609375, 0.021331787109375, -0.00704193115234375, 0.0692138671875, 0.02178955078125, 0.00585174560546875, 0.01529693603515625, -0.00986480712890625, -0.0225067138671875, -0.041534423828125, 0.0692138671875, -0.032073974609375, -0.06671142578125, 0.00904083251953125, 0.0128326416015625, 0.03680419921875, 0.0180206298828125, 0.0005750656127929688, 0.08856201171875, 0.01373291015625, -0.029449462890625, -0.00018525123596191406, -0.000026702880859375, -0.036895751953125, 0.0142059326171875, -0.01392364501953125, 0.0111541748046875, 0.007465362548828125, 0.052734375, 0.01141357421875, 0.0028133392333984375, -0.0224609375, -0.06365966796875, 0.021087646484375, -0.033477783203125, 0.035003662109375, -0.02813720703125, 0.0249176025390625, 0.018951416015625, 0.0308685302734375, -0.0256195068359375, -0.0309906005859375, -0.007106781005859375, 0.0135498046875, 0.0015993118286132812, 0.0731201171875, -0.00037384033203125, 0.0146026611328125, 0.01580810546875, -0.0557861328125, 0.0189056396484375, 0.033355712890625, -0.006015777587890625, 0.0285797119140625, -0.052703857421875, 0.00417327880859375, -0.0216827392578125, 0.0012302398681640625, 0.024200439453125, 0.056671142578125, 0.032867431640625, 0.079345703125, 0.0156707763671875, -0.0059051513671875, 0.0215606689453125, -0.05877685546875, 0.022430419921875, 0.0119781494140625, 0.0300750732421875, 0.049591064453125, -0.00445556640625, 0.0047760009765625, 0.06982421875, -0.0188140869140625, 0.003505706787109375, 0.00759124755859375, 0.0021266937255859375, -0.0127410888671875, 0.019500732421875, -0.014007568359375, 0.03668212890625, -0.0765380859375, 0.028289794921875, 0.0308837890625, -0.014495849609375, 0.0290985107421875, -0.01922607421875, -0.004268646240234375, -0.00286865234375, 0.00199127197265625, 0.0212249755859375, -0.00792694091796875, 0.05181884765625, -0.0222015380859375, 0.02532958984375, 0.017120361328125, 0.01377105712890625, 0.00542449951171875, 0.00803375244140625, -0.064208984375, -0.00626373291015625, 0.01056671142578125, -0.0283203125, -0.0038814544677734375, -0.025543212890625, 0.01959228515625, -0.0232696533203125, -0.00975799560546875, 0.0155029296875, 0.021881103515625, -0.006710052490234375, -0.0004029273986816406, -0.0007619857788085938, -0.0133209228515625, 0.00933074951171875, 0.0283050537109375, 0.005405426025390625, 0.046600341796875, 0.0640869140625, 0.009918212890625, 0.0357666015625, -0.02490234375, 0.0311279296875, -0.0050201416015625, 0.07806396484375, -0.007068634033203125, 0.0100555419921875, -0.0146636962890625, 0.053253173828125, 0.043548583984375, -0.00928497314453125, 0.0116119384765625, -0.006771087646484375, 0.0295562744140625, 0.01421356201171875, -0.00861358642578125, -0.01027679443359375, -0.0238800048828125, -0.043426513671875, -0.006290435791015625, 0.022918701171875, 0.04754638671875, 0.0032806396484375, -0.035888671875, 0.004901885986328125, 0.0282135009765625, -0.08636474609375, -0.11468505859375, -0.0196990966796875, -0.04315185546875, 0.031982421875, -0.0006136894226074219, -0.004199981689453125, -0.02679443359375, 0.020751953125, 0.020965576171875, -0.037628173828125, -0.0203704833984375, -0.052734375, -0.051666259765625, -0.053985595703125, 0.033447265625, -0.005046844482421875, 0.00925445556640625, 0.0029125213623046875, 0.037200927734375, 0.01195526123046875, -0.0216064453125, 0.00392913818359375, 0.0426025390625, -0.0186309814453125, -0.0219573974609375, 0.07293701171875, -0.066162109375, -0.034759521484375, 0.01611328125, -0.0184478759765625, 0.01485443115234375, -0.01016998291015625, -0.012176513671875, -0.03314208984375, -0.036895751953125, 0.00594329833984375, 0.0447998046875, 0.01361083984375, 0.0095062255859375, 0.0584716796875, -0.02239990234375, -0.0134735107421875, 0.00853729248046875, -0.0215606689453125, 0.01319122314453125, 0.00630950927734375, -0.0244903564453125, -0.0011320114135742188, 0.0189056396484375, 0.061309814453125, -0.0031604766845703125, 0.024017333984375, 0.00295257568359375, 0.036529541015625, 0.00022530555725097656, 0.033050537109375, -0.06634521484375, 0.1015625, -0.01226043701171875, -0.0006775856018066406, 0.036407470703125, -0.00762176513671875, 0.0013685226440429688, -0.0499267578125, -0.032379150390625, -0.0175933837890625, 0.0233154296875, 0.0109405517578125, 0.029083251953125, -0.0200958251953125, -0.02423095703125, -0.0187225341796875, 0.06011962890625, -0.033477783203125, 0.001255035400390625, 0.001171112060546875, 0.01465606689453125, -0.044281005859375, -0.0462646484375, -0.061553955078125, -0.0185546875, -0.0225982666015625, 0.0106964111328125, -0.00649261474609375, -0.01290130615234375, -0.00380706787109375, -0.015045166015625, -0.00719451904296875, -0.02508544921875, 0.01548004150390625, -0.04736328125, -0.0046844482421875, -0.007610321044921875, -0.006420135498046875, -0.025787353515625, -0.004547119140625, -0.048431396484375, -0.055694580078125, -0.006099700927734375, -0.05255126953125, 0.0653076171875, 0.0304107666015625, 0.01922607421875, -0.007793426513671875, 0.033599853515625, -0.0006961822509765625, 0.021087646484375, 0.018310546875, 0.01349639892578125, -0.00708770751953125, -0.0008459091186523438, 0.02215576171875, -0.034271240234375, -0.0169677734375, 0.00522613525390625, -0.04559326171875, -0.002288818359375, 0.00446319580078125, -0.0253753662109375, 0.052520751953125, -0.03570556640625, -0.047821044921875, -0.0234222412109375, -0.0125579833984375, -0.04278564453125, -0.006511688232421875, -0.0193023681640625, 0.0081634521484375, -0.02490234375, 0.004222869873046875, 0.0231781005859375, 0.006504058837890625, -0.0023059844970703125, -0.0089569091796875, 0.0181732177734375, -0.0374755859375, 0.0020732879638671875, 0.032135009765625, 0.00997161865234375, 0.004642486572265625, 0.04620361328125, -0.01739501953125, 0.00052642822265625, 0.048065185546875, -0.0283050537109375, 0.039337158203125, 0.00789642333984375, 0.0281219482421875, 0.00033283233642578125, -0.00420379638671875, 0.02313232421875, 0.02960205078125, -0.06591796875, 0.029296875, -0.00846099853515625, 0.01052093505859375, -0.0166015625, 0.0156707763671875, -0.02154541015625, -0.0024890899658203125, -0.0213470458984375, -0.048583984375, 0.0029315948486328125, -0.0020599365234375, 0.0623779296875, 0.041229248046875, -0.013458251953125, 0.060791015625, 0.06549072265625, 0.016510009765625, 0.0182647705078125, 0.016998291015625, -0.0160064697265625, 0.0283050537109375, 0.05291748046875, 0.010101318359375, 0.00841522216796875, -0.00807952880859375, 0.036102294921875, 0.032806396484375, -0.027496337890625, -0.006580352783203125, 0.01058197021484375, 0.0706787109375, -0.0400390625, 0.0185089111328125, 0.056732177734375, 0.0259857177734375, -0.0234375, -0.023712158203125, -0.0229339599609375, 0.00559234619140625, -0.04962158203125, 0.0307769775390625, -0.01335906982421875, -0.004425048828125, -0.0316162109375, 0.04840087890625, 0.0006690025329589844, 0.004009246826171875, -0.005611419677734375, 0.0267486572265625, 0.004459381103515625, 0.042510986328125, 0.01312255859375, -0.0213775634765625, 0.01568603515625, 0.024139404296875, 0.0115509033203125, -0.029144287109375, -0.0151214599609375, 0.007701873779296875, 0.020599365234375, -0.058807373046875, -0.02996826171875, 0.050262451171875, -0.004894256591796875, -0.03460693359375, 0.026611328125, 0.027069091796875, 0.004337310791015625, -0.0430908203125, -0.0760498046875, 0.0158538818359375, 0.046783447265625, 0.00949859619140625, 0.02313232421875, 0.0010423660278320312, 0.0147552490234375, 0.0355224609375, -0.0164947509765625, -0.031402587890625, -0.01593017578125, -0.00384521484375, 0.00830078125, -0.005352020263671875, -0.05316162109375, -0.06414794921875, 0.00608062744140625, 0.005352020263671875, 0.0289306640625, -0.01904296875, 0.0010547637939453125, -0.0204620361328125, 0.0160369873046875, -0.03668212890625, 0.0291748046875, -0.006229400634765625, -0.01042938232421875, 0.0017728805541992188, -0.0526123046875, -0.049652099609375, -0.0299072265625, -0.0609130859375, -0.060791015625, -0.01010894775390625, 0.0340576171875, -0.039825439453125, 0.01224517822265625, -0.0313720703125, 0.004192352294921875, 0.0090789794921875, 0.003936767578125, -0.01446533203125, 0.01331329345703125, -0.03857421875, 0.05987548828125, 0.007137298583984375, 0.0127105712890625, 0.0022068023681640625, 0.0298004150390625, 0.01395416259765625, -0.0100250244140625, -0.0118255615234375, -0.09442138671875, -0.005985260009765625, 0.018798828125, -0.02606201171875, 0.05682373046875, 0.02325439453125, 0.01812744140625, 0.039764404296875, 0.00879669189453125, -0.0014581680297851562, -0.00208282470703125, 0.004161834716796875, 0.02685546875, 0.040557861328125, 0.048919677734375, 0.0017156600952148438, 0.01413726806640625, -0.0165863037109375, -0.05413818359375, 0.038665771484375, 0.003398895263671875, 0.02978515625, -0.01812744140625, -0.041015625, 0.034515380859375, 0.052734375, 0.0290985107421875, 0.032623291015625, 0.0140533447265625, 0.0230560302734375, -0.01384735107421875, 0.032684326171875, -0.023193359375, -0.03466796875, 0.0228729248046875, -0.00580596923828125, -0.043609619140625, -0.0135040283203125, -0.034759521484375, -0.00018835067749023438, -0.003963470458984375, 0.00441741943359375, -0.0064544677734375, 0.0062408447265625, -0.02117919921875, -0.0189208984375, 0.0043487548828125, -0.024139404296875, 0.0273284912109375, 0.0088348388671875, 0.0273590087890625, 0.04388427734375, -0.0157470703125, 0.020660400390625, 0.0006628036499023438, -0.0148773193359375, -0.0229644775390625, -0.00213623046875, 0.020751953125, -0.0244903564453125, 0.0298004150390625, 0.007442474365234375, 0.01995849609375, -0.0083160400390625, 0.023040771484375, 0.027862548828125, -0.0159912109375, -0.014373779296875, 0.053314208984375, -0.00988006591796875, -0.03509521484375, 0.02734375, -0.01776123046875, 0.024017333984375, 0.034088134765625, -0.0089569091796875, 0.0144195556640625, -0.006805419921875, 0.013885498046875, 0.0168609619140625, -0.043701171875, -0.0083770751953125, -0.0205535888671875, -0.0107421875, 0.004734039306640625, 0.0011167526245117188, -0.03466796875, -0.01113128662109375, 0.01097869873046875, 0.05438232421875, -0.0235443115234375, -0.01432037353515625, 0.0240325927734375, 0.04522705078125, -0.0175628662109375, -0.01446533203125, 0.0677490234375, -0.0750732421875, -0.055450439453125, 0.0274658203125, -0.05487060546875, -0.0537109375, -0.026397705078125, -0.0457763671875, 0.11041259765625, -0.0305023193359375, 0.0156402587890625, 0.004360198974609375, 0.046905517578125, -0.00848388671875, 0.04107666015625, -0.0287017822265625, 0.03936767578125, -0.0209808349609375, 0.036712646484375, -0.0276947021484375, 0.003864288330078125, 0.018768310546875, 0.00814056396484375, -0.047882080078125, -0.0115966796875, 0.01003265380859375, 0.01502227783203125, 0.0090789794921875, 0.0355224609375, 0.0147247314453125, -0.00626373291015625, -0.00214385986328125, 0.0174407958984375, 0.01342010498046875, -0.0296173095703125, 0.018218994140625, -0.0291900634765625, -0.0278778076171875, 0.0263519287109375, 0.010284423828125, 0.0094451904296875, -0.014190673828125, 0.04742431640625, -0.021026611328125, 0.00627899169921875, 0.02410888671875, 0.0224761962890625, -0.0125732421875, 0.0246734619140625, -0.005702972412109375, 0.0203857421875, -0.049072265625, 0.0034275054931640625, 0.01354217529296875, -0.00440216064453125, -0.00269317626953125, -0.01776123046875, -0.01390838623046875, -0.0158843994140625, -0.0089263916015625, -0.03424072265625, 0.0222015380859375, -0.01355743408203125, 0.0084381103515625, 0.0020084381103515625, 0.044036865234375, -0.041046142578125, -0.052978515625, -0.0037994384765625, 0.0260467529296875, -0.002147674560546875, -0.03851318359375, 0.014434814453125, 0.01158905029296875, 0.0308380126953125, -0.00949859619140625, 0.0228729248046875, -0.06976318359375, -0.019378662109375, 0.038116455078125, -0.0113525390625, -0.0117950439453125, -0.0421142578125, 0.01678466796875, 0.0169219970703125, 0.053436279296875, 0.05731201171875, -0.036590576171875, 0.052398681640625, 0.0096588134765625, 0.067138671875, -0.0032367706298828125, 0.057037353515625, -0.03863525390625, -0.032562255859375, 0.001277923583984375, 0.012115478515625, 0.0141143798828125, -0.01534271240234375, -0.00868988037109375, -0.01277923583984375, -0.0023670196533203125, 0.0289459228515625, 0.005001068115234375, 0.028289794921875, 0.04327392578125, 0.033172607421875, -0.044647216796875, -0.002315521240234375, 0.058624267578125, -0.0194549560546875, 0.045440673828125, 0.0023708343505859375, 0.04150390625, 0.01470184326171875, -0.00922393798828125, -0.0316162109375, 0.06634521484375, 0.026123046875, -0.0396728515625, -0.0030155181884765625, 0.00011992454528808594, -0.02301025390625, 0.03643798828125, 0.002529144287109375, 0.00994873046875, -0.01654052734375, 0.0004897117614746094, 0.01393890380859375, -0.0158233642578125, -0.0303497314453125, 0.0100860595703125, 0.022064208984375, -0.027130126953125, 0.044921875, 0.058074951171875, -0.04638671875, -0.005008697509765625, 0.040374755859375, 0.031494140625, -0.0281524658203125, 0.0099334716796875, 0.00586700439453125, -0.05108642578125, -0.00893402099609375, 0.003047943115234375, -0.00858306884765625, 0.0221099853515625, -0.0134429931640625, 0.037139892578125, 0.005908966064453125, 0.034698486328125, -0.0654296875, 0.059967041015625, 0.038330078125, -0.057647705078125, -0.0149078369140625, 0.0034809112548828125, -0.0087127685546875, -0.0052947998046875, 0.0087890625, 0.01363372802734375, 0.004604339599609375, -0.0166015625, -0.0238800048828125, 0.04278564453125, 0.0295867919921875, -0.0059814453125, -0.04986572265625, -0.0214385986328125, -0.02099609375, -0.0281219482421875, 0.007091522216796875, -0.038360595703125, 0.01204681396484375, -0.01983642578125, 0.0443115234375, -0.021087646484375, 0.0068817138671875, 0.021270751953125, 0.0136566162109375, 0.0210418701171875, 0.01995849609375, -0.00786590576171875, 0.01898193359375, -0.011016845703125, 0.0234832763671875, 0.01776123046875, -0.0018377304077148438, 0.00821685791015625, -0.0226593017578125, 0.00652313232421875, 0.073486328125, 0.059051513671875, 0.006092071533203125, 0.0440673828125, 0.004772186279296875, -0.034820556640625, 0.00702667236328125, 0.01415252685546875, -0.0171051025390625, 0.01041412353515625, -0.0267333984375, -0.0000928044319152832, 0.00472259521484375, -0.038909912109375, -0.034210205078125, -0.0089874267578125, 0.0268402099609375, 0.0267486572265625, -0.06048583984375, 0.042388916015625, -0.005733489990234375, 0.0035648345947265625, 0.015594482421875, 0.0213165283203125, -0.039093017578125, -0.0389404296875, -0.02728271484375, -0.052337646484375, -0.055389404296875, 0.06982421875, -0.0236968994140625, 0.01263427734375, 0.052490234375, -0.0125579833984375, 0.0068511962890625, 0.007701873779296875, 0.01299285888671875, 0.046875, -0.041473388671875, 0.01029205322265625, 0.014678955078125, 0.0380859375, -0.0205078125, -0.07586669921875, -0.0157470703125, -0.0041046142578125, 0.0224761962890625, -0.0273895263671875, 0.006702423095703125, 0.00103759765625, -0.048797607421875, -0.0980224609375, 0.0859375, -0.0256500244140625, -0.0281829833984375, -0.046783447265625, -0.01251983642578125, 0.011688232421875, -0.052093505859375, -0.0299530029296875, -0.0259857177734375, -0.051849365234375, 0.031524658203125, 0.0034275054931640625, 0.0303802490234375, 0.049713134765625, -0.0205535888671875, -0.025604248046875, -0.0210113525390625, -0.0193634033203125, 0.018402099609375, -0.01251220703125, 0.01045989990234375, 0.04150390625, 0.0748291015625, 0.01027679443359375, 0.004711151123046875, 0.01224517822265625, -0.06988525390625, 0.018585205078125, -0.0284271240234375, -0.04022216796875, -0.01308441162109375, 0.03240966796875, 0.0218963623046875, 0.015472412109375, -0.02490234375, -0.0018339157104492188, -0.019378662109375, 0.010650634765625, -0.01385498046875, 0.0019388198852539062, -0.043121337890625, -0.004009246826171875, -0.01483917236328125, -0.0022487640380859375, -0.01282501220703125, -0.060546875, -0.03631591796875, -0.0137939453125, -0.01180267333984375, 0.031890869140625, 0.004474639892578125, -0.012664794921875, 0.041412353515625, -0.021636962890625, 0.0216827392578125, 0.0006232261657714844, 0.0220794677734375, 0.0307159423828125, 0.016387939453125, -0.05621337890625, 0.021148681640625, -0.013946533203125, 0.0138702392578125, -0.00968170166015625, 0.024322509765625, -0.004627227783203125, 0.04803466796875, -0.00514984130859375, 0.0106048583984375, 0.022491455078125, 0.0186920166015625, -0.044342041015625, 0.0021152496337890625, 0.0016765594482421875, -0.02032470703125, -0.06890869140625, -0.03778076171875, -0.0249481201171875, -0.0242462158203125, -0.00043654441833496094, 0.040679931640625, 0.08978271484375, -0.0303192138671875, -0.0096282958984375, 0.0081329345703125, -0.050567626953125, -0.03631591796875, -0.01904296875, -0.06036376953125, -0.00646209716796875, -0.00605010986328125 ]
c7c462af71f194f31e787826a19d5efa781c4f10
Wordpress Stackexchange Q: get_terms() doesn't return empty terms even though hide_empty is false I can't manage to make get_terms() to return the empty terms and I've tried it in a number of ways. Here's the code: $terms = get_terms('device',array('hide_empty' => 0)); foreach($terms as $term) { if($term->parent == 0) { if($i++ != 0) echo '</optgroup>'; echo '<optgroup label="'.$term->name.'">'; $id = $term->term_id; $args = array("child_of"=>$id); $this_term = get_terms('device',$args); foreach($this_term as $the_term) { $term_name = str_replace($term->name,'',$the_term->name); echo '<option value="'.$the_term->term_id.'">'.$the_term->name.'</option>'; } } } I've tried all the possible ways: $terms = get_terms('device',array('hide_empty' => false)) $terms = get_terms('device',array('hide_empty' => 0)) $terms = get_terms('device',array('hide_empty=false')) $terms = get_terms('device',array('hide_empty=0')) Also tried the last two ways without array. Nothing seems to be working. It returns all the terms that have posts, but no empty one. A: You use the hide_empty argument for $terms, but not for $this_term inside your loop. Also, with the way you're generating your select, it would be a lot more efficient to just query top-level terms for the main loop: $terms = get_terms( 'device', array( 'hide_empty' => false, 'parent' => 0 ) ); And then drop if($term->parent == 0) {... inside your loop.
Q: get_terms() doesn't return empty terms even though hide_empty is false I can't manage to make get_terms() to return the empty terms and I've tried it in a number of ways. Here's the code: $terms = get_terms('device',array('hide_empty' => 0)); foreach($terms as $term) { if($term->parent == 0) { if($i++ != 0) echo '</optgroup>'; echo '<optgroup label="'.$term->name.'">'; $id = $term->term_id; $args = array("child_of"=>$id); $this_term = get_terms('device',$args); foreach($this_term as $the_term) { $term_name = str_replace($term->name,'',$the_term->name); echo '<option value="'.$the_term->term_id.'">'.$the_term->name.'</option>'; } } } I've tried all the possible ways: $terms = get_terms('device',array('hide_empty' => false)) $terms = get_terms('device',array('hide_empty' => 0)) $terms = get_terms('device',array('hide_empty=false')) $terms = get_terms('device',array('hide_empty=0')) Also tried the last two ways without array. Nothing seems to be working. It returns all the terms that have posts, but no empty one. A: You use the hide_empty argument for $terms, but not for $this_term inside your loop. Also, with the way you're generating your select, it would be a lot more efficient to just query top-level terms for the main loop: $terms = get_terms( 'device', array( 'hide_empty' => false, 'parent' => 0 ) ); And then drop if($term->parent == 0) {... inside your loop. A: I've found the problem. I'm using get_terms() twice, once for the parents and once for the children. It seems like I didn't add hide_empty=false to the one that gets the children.
wordpress
{ "language": "en", "length": 218, "provenance": "stackexchange_00019.jsonl.gz:448376", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/159766" }
[ 0.0180816650390625, 0.00724029541015625, 0.0117950439453125, 0.006099700927734375, 0.007808685302734375, -0.0174713134765625, 0.0469970703125, -0.0443115234375, 0.0134124755859375, 0.01535797119140625, -0.04632568359375, -0.0124969482421875, -0.048736572265625, -0.0277862548828125, -0.0377197265625, -0.0665283203125, 0.023681640625, -0.031280517578125, 0.007350921630859375, -0.0030155181884765625, 0.014739990234375, 0.006778717041015625, 0.0190582275390625, 0.03192138671875, 0.01332855224609375, -0.03436279296875, 0.053863525390625, -0.039947509765625, -0.005466461181640625, -0.04046630859375, 0.01207733154296875, 0.052642822265625, -0.014892578125, 0.027618408203125, 0.0164031982421875, -0.0219268798828125, 0.05279541015625, -0.00926971435546875, 0.01080322265625, 0.040191650390625, 0.0186004638671875, -0.00026535987854003906, 0.0014257431030273438, 0.0113983154296875, -0.0275115966796875, -0.0057830810546875, -0.01200103759765625, -0.0181121826171875, 0.01366424560546875, -0.004566192626953125, 0.05645751953125, 0.006683349609375, 0.045074462890625, 0.007007598876953125, -0.0184478759765625, 0.02911376953125, -0.00409698486328125, -0.02081298828125, 0.0118560791015625, -0.0161895751953125, -0.0252532958984375, -0.02191162109375, 0.033935546875, 0.003513336181640625, 0.0158538818359375, 0.031097412109375, -0.01265716552734375, 0.027313232421875, -0.06646728515625, -0.0039520263671875, 0.0272064208984375, -0.07330322265625, 0.012420654296875, 0.0203399658203125, -0.07330322265625, -0.06951904296875, 0.01059722900390625, -0.07354736328125, 0.0294342041015625, -0.00679779052734375, 0.0027408599853515625, -0.006557464599609375, -0.052001953125, 0.01568603515625, -0.0069122314453125, 0.0323486328125, -0.00836944580078125, -0.0162811279296875, 0.029998779296875, -0.034027099609375, 0.00868988037109375, -0.0250701904296875, -0.00846099853515625, 0.01715087890625, 0.006832122802734375, -0.06396484375, 0.0241241455078125, 0.03851318359375, -0.0304718017578125, -0.03204345703125, -0.02569580078125, -0.01371002197265625, -0.0247650146484375, -0.002307891845703125, 0.026092529296875, 0.033233642578125, -0.0240020751953125, -0.0008697509765625, 0.06756591796875, 0.019287109375, 0.0155029296875, 0.059967041015625, -0.0132598876953125, -0.0035037994384765625, -0.03912353515625, -0.019561767578125, -0.044525146484375, -0.0002903938293457031, -0.005039215087890625, -0.007671356201171875, 0.002429962158203125, -0.01497650146484375, -0.003795623779296875, 0.045379638671875, -0.0014925003051757812, 0.007724761962890625, -0.003997802734375, -0.009796142578125, 0.006069183349609375, 0.043609619140625, -0.04766845703125, -0.00860595703125, 0.048919677734375, 0.00017559528350830078, 0.0108489990234375, -0.041412353515625, -0.020965576171875, -0.00797271728515625, 0.0038356781005859375, -0.025909423828125, 0.07476806640625, -0.0205078125, 0.007015228271484375, 0.056671142578125, 0.01529693603515625, 0.00946044921875, 0.034759521484375, 0.0078582763671875, -0.0123748779296875, -0.02099609375, -0.0018796920776367188, -0.020233154296875, 0.05487060546875, -0.0002684593200683594, -0.035400390625, 0.036651611328125, 0.00391387939453125, 0.0025234222412109375, -0.07891845703125, -0.0238037109375, 0.0361328125, -0.00844573974609375, 0.016876220703125, -0.020477294921875, -0.036529541015625, -0.0015363693237304688, -0.048797607421875, -0.0104217529296875, 0.031982421875, 0.01044464111328125, 0.058624267578125, -0.00893402099609375, 0.0218505859375, 0.03564453125, 0.01490020751953125, 0.014312744140625, -0.04736328125, -0.0118560791015625, 0.053131103515625, -0.054473876953125, -0.068359375, -0.04498291015625, 0.00786590576171875, -0.005870819091796875, -0.037200927734375, 0.0531005859375, 0.00769805908203125, 0.024169921875, -0.0154571533203125, -0.00225067138671875, 0.0423583984375, 0.06353759765625, -0.05731201171875, 0.033203125, 0.0179443359375, -0.01175689697265625, -0.0186767578125, -0.01776123046875, -0.00580596923828125, -0.00635528564453125, 0.0190277099609375, -0.0036296844482421875, -0.031982421875, -0.0012960433959960938, -0.0721435546875, -0.019439697265625, -0.01806640625, 0.01386260986328125, -0.023956298828125, 0.033233642578125, 0.0235595703125, 0.0058135986328125, -0.05560302734375, 0.05938720703125, 0.0212249755859375, 0.0188751220703125, 0.0032558441162109375, 0.09027099609375, 0.01995849609375, 0.0139617919921875, 0.0226898193359375, -0.034393310546875, 0.06781005859375, 0.05035400390625, 0.054107666015625, -0.02862548828125, 0.006877899169921875, -0.038543701171875, 0.04742431640625, -0.01483154296875, -0.00783538818359375, 0.02935791015625, 0.07269287109375, 0.06292724609375, -0.0228118896484375, 0.01136016845703125, 0.031524658203125, -0.0252685546875, -0.013763427734375, 0.0235443115234375, 0.015838623046875, 0.07159423828125, -0.042510986328125, -0.0284576416015625, 0.11163330078125, -0.0677490234375, -0.048675537109375, 0.006694793701171875, 0.0140533447265625, 0.0306854248046875, 0.01448822021484375, -0.003482818603515625, -0.0029964447021484375, 0.004894256591796875, 0.03759765625, 0.01049041748046875, -0.040374755859375, -0.01306915283203125, -0.0172882080078125, -0.004276275634765625, 0.01136016845703125, -0.062408447265625, -0.01290130615234375, -0.018829345703125, 0.0224456787109375, 0.0305938720703125, 0.007671356201171875, 0.005687713623046875, -0.0716552734375, 0.057586669921875, 0.02520751953125, -0.0149993896484375, -0.0036602020263671875, 0.0215911865234375, 0.0223236083984375, -0.0306396484375, -0.0211029052734375, -0.0006756782531738281, 0.0016651153564453125, -0.0074920654296875, 0.0267333984375, 0.0318603515625, 0.0269775390625, -0.0029125213623046875, 0.00632476806640625, -0.003948211669921875, 0.016021728515625, 0.02655029296875, -0.037841796875, 0.0028076171875, 0.0040283203125, 0.08740234375, 0.017974853515625, 0.005786895751953125, -0.02197265625, 0.052947998046875, -0.016754150390625, -0.0293426513671875, 0.032623291015625, -0.0301361083984375, 0.0005407333374023438, 0.049530029296875, 0.025726318359375, -0.01558685302734375, 0.0023555755615234375, 0.0027370452880859375, 0.0142974853515625, 0.00867462158203125, -0.01183319091796875, 0.0055084228515625, -0.07293701171875, -0.037200927734375, 0.016204833984375, 0.057281494140625, -0.043060302734375, -0.05316162109375, -0.040985107421875, 0.0139312744140625, -0.049224853515625, 0.002895355224609375, 0.0213623046875, -0.051666259765625, 0.004680633544921875, -0.0257110595703125, -0.024078369140625, -0.01441192626953125, -0.00969696044921875, 0.00673675537109375, -0.0014400482177734375, -0.03497314453125, -0.061676025390625, -0.0697021484375, -0.06378173828125, -0.0016164779663085938, -0.01021575927734375, 0.00811004638671875, 0.0018825531005859375, 0.07171630859375, 0.01953125, -0.0197296142578125, 0.0193939208984375, 0.052398681640625, 0.003154754638671875, 0.018157958984375, -0.017547607421875, 0.007427215576171875, -0.022705078125, 0.000629425048828125, -0.036773681640625, -0.0033931732177734375, 0.004604339599609375, -0.024322509765625, 0.00179290771484375, 0.02667236328125, 0.06060791015625, -0.03204345703125, -0.033111572265625, 0.058624267578125, 0.06805419921875, 0.013031005859375, -0.03533935546875, -0.010223388671875, -0.0283050537109375, 0.07470703125, -0.01105499267578125, 0.0079803466796875, 0.0161285400390625, 0.049346923828125, -0.005435943603515625, 0.001132965087890625, -0.0416259765625, -0.01261138916015625, 0.03656005859375, 0.004383087158203125, 0.003902435302734375, 0.022674560546875, 0.0300140380859375, -0.017974853515625, -0.00418853759765625, 0.0140228271484375, 0.01180267333984375, 0.0186004638671875, -0.042449951171875, -0.0071563720703125, -0.05413818359375, 0.0302734375, -0.030364990234375, 0.01386260986328125, -0.0487060546875, -0.0175323486328125, -0.02532958984375, 0.07025146484375, -0.034698486328125, -0.0345458984375, -0.006649017333984375, 0.02740478515625, -0.03924560546875, -0.038848876953125, 0.014190673828125, -0.0098876953125, -0.047607421875, 0.00226593017578125, -0.0004787445068359375, -0.01544952392578125, -0.02508544921875, -0.015533447265625, -0.046600341796875, -0.0220489501953125, 0.032806396484375, -0.03607177734375, 0.01114654541015625, -0.0042572021484375, -0.004207611083984375, -0.03155517578125, -0.0165863037109375, -0.019287109375, -0.04254150390625, -0.0048370361328125, 0.0235595703125, -0.0015230178833007812, -0.0306243896484375, 0.0223388671875, -0.002307891845703125, 0.052001953125, -0.01183319091796875, -0.037384033203125, -0.000514984130859375, 0.01520538330078125, -0.038421630859375, 0.0244293212890625, -0.0194854736328125, -0.0114898681640625, -0.0325927734375, -0.0119476318359375, 0.0198974609375, 0.040496826171875, -0.01363372802734375, -0.0192718505859375, -0.0048828125, 0.002498626708984375, -0.0182037353515625, 0.0013990402221679688, -0.046722412109375, -0.0067138671875, -0.047149658203125, -0.0139007568359375, -0.007671356201171875, -0.03875732421875, 0.007030487060546875, 0.00571441650390625, -0.0250701904296875, -0.003887176513671875, 0.008056640625, 0.0255279541015625, -0.015472412109375, -0.0015087127685546875, -0.0143585205078125, 0.016265869140625, 0.0267486572265625, 0.0009236335754394531, -0.019927978515625, -0.02313232421875, 0.03277587890625, -0.0160980224609375, 0.0133056640625, 0.0006194114685058594, 0.0673828125, -0.00736236572265625, -0.052581787109375, 0.05029296875, 0.0110015869140625, -0.05926513671875, 0.0115203857421875, -0.016571044921875, -0.036651611328125, -0.0010385513305664062, 0.06964111328125, -0.0266571044921875, 0.04693603515625, -0.034515380859375, -0.030303955078125, 0.0028839111328125, 0.00995635986328125, 0.0229644775390625, 0.017608642578125, 0.01108551025390625, 0.00879669189453125, 0.01468658447265625, 0.01611328125, -0.027587890625, 0.02557373046875, -0.060943603515625, 0.029632568359375, -0.015960693359375, -0.01161956787109375, -0.017059326171875, -0.0013065338134765625, -0.0115966796875, -0.0140228271484375, -0.06146240234375, 0.039459228515625, -0.0014829635620117188, 0.025970458984375, 0.01812744140625, -0.01239013671875, -0.0080108642578125, 0.0106964111328125, 0.0145416259765625, 0.00922393798828125, 0.00659942626953125, 0.00591278076171875, -0.0033702850341796875, -0.025360107421875, 0.005260467529296875, -0.021270751953125, 0.0006866455078125, 0.03228759765625, -0.01076507568359375, 0.01092529296875, -0.00864410400390625, -0.022613525390625, -0.00890350341796875, 0.043212890625, 0.022979736328125, -0.032928466796875, 0.00984954833984375, 0.027740478515625, 0.0302886962890625, -0.037872314453125, -0.039459228515625, 0.01331329345703125, 0.041015625, 0.00710296630859375, 0.01922607421875, 0.004180908203125, 0.01259613037109375, -0.004978179931640625, 0.035064697265625, -0.0032482147216796875, -0.038665771484375, -0.017852783203125, 0.0161895751953125, 0.031890869140625, -0.021331787109375, -0.0260162353515625, 0.005596160888671875, -0.0303192138671875, -0.005157470703125, 0.0249481201171875, -0.054443359375, 0.023468017578125, 0.02740478515625, -0.030792236328125, -0.02349853515625, 0.003143310546875, -0.037109375, -0.020538330078125, -0.001308441162109375, -0.0233154296875, 0.032257080078125, -0.0019741058349609375, 0.038604736328125, -0.032440185546875, -0.00927734375, -0.03857421875, 0.007228851318359375, 0.031768798828125, 0.0279541015625, -0.03961181640625, 0.01837158203125, -0.06402587890625, 0.0026416778564453125, -0.040771484375, -0.07135009765625, -0.0267791748046875, -0.0140228271484375, -0.0200042724609375, 0.01357269287109375, 0.00038623809814453125, -0.01409149169921875, -0.01384735107421875, 0.0139312744140625, -0.006435394287109375, 0.01145172119140625, 0.0230560302734375, 0.003936767578125, 0.00801849365234375, -0.0160675048828125, 0.0401611328125, 0.013641357421875, -0.0265045166015625, -0.03448486328125, -0.033416748046875, -0.094970703125, 0.0236663818359375, 0.0302886962890625, 0.013671875, 0.01479339599609375, -0.0227813720703125, 0.024871826171875, -0.0024890899658203125, 0.021453857421875, -0.00005155801773071289, -0.00012505054473876953, 0.010833740234375, 0.05059814453125, 0.0360107421875, 0.01407623291015625, -0.045745849609375, -0.0249176025390625, 0.025421142578125, 0.007106781005859375, -0.0022125244140625, -0.0138397216796875, -0.0115966796875, 0.012939453125, -0.0078277587890625, 0.03131103515625, 0.0430908203125, -0.03155517578125, 0.0211639404296875, 0.00057220458984375, 0.0015974044799804688, 0.032440185546875, 0.01568603515625, -0.01371002197265625, -0.007701873779296875, 0.09600830078125, 0.028472900390625, -0.027923583984375, 0.0977783203125, -0.03955078125, -0.02679443359375, -0.04583740234375, -0.01477813720703125, 0.02276611328125, 0.0062408447265625, 0.0037250518798828125, 0.01099395751953125, 0.007434844970703125, 0.0362548828125, -0.01739501953125, -0.0291748046875, -0.0577392578125, -0.00989532470703125, -0.0303955078125, -0.0352783203125, 0.00478363037109375, 0.007137298583984375, -0.01018524169921875, 0.0699462890625, 0.0186004638671875, -0.05718994140625, 0.030487060546875, 0.033416748046875, 0.0227813720703125, -0.0364990234375, 0.0018301010131835938, 0.018768310546875, -0.040618896484375, -0.1224365234375, -0.0309906005859375, 0.00295257568359375, -0.0305938720703125, -0.005771636962890625, -0.0189666748046875, -0.01904296875, 0.040496826171875, -0.033843994140625, 0.0052490234375, 0.031951904296875, -0.0653076171875, -0.07501220703125, -0.019073486328125, 0.017303466796875, 0.001956939697265625, -0.03204345703125, 0.048126220703125, -0.03936767578125, -0.02557373046875, -0.0265960693359375, -0.05615234375, 0.042510986328125, -0.004871368408203125, -0.0120697021484375, 0.037689208984375, 0.00835418701171875, -0.0306854248046875, -0.0145263671875, -0.0208282470703125, -0.039093017578125, -0.0009713172912597656, -0.01454925537109375, 0.012603759765625, 0.0238494873046875, -0.030548095703125, -0.08319091796875, 0.1114501953125, -0.0031719207763671875, 0.057830810546875, 0.0014171600341796875, 0.0216064453125, -0.0236358642578125, 0.006832122802734375, -0.04620361328125, 0.0347900390625, 0.02093505859375, 0.0312347412109375, -0.03314208984375, -0.0106353759765625, 0.006572723388671875, 0.0249481201171875, 0.009674072265625, -0.007114410400390625, -0.028167724609375, 0.0213775634765625, 0.07769775390625, 0.005344390869140625, 0.0022602081298828125, 0.05169677734375, 0.03729248046875, 0.04278564453125, 0.091796875, -0.0124969482421875, 0.059234619140625, -0.03167724609375, 0.022247314453125, 0.04925537109375, 0.016265869140625, 0.03912353515625, -0.01264190673828125, -0.0021152496337890625, 0.0147247314453125, -0.0302581787109375, 0.0018157958984375, -0.019073486328125, 0.01282501220703125, 0.01009368896484375, 0.022003173828125, -0.048858642578125, 0.0382080078125, -0.032470703125, 0.049957275390625, -0.0024814605712890625, -0.0013666152954101562, 0.03558349609375, 0.0186767578125, 0.037628173828125, -0.0726318359375, -0.00963592529296875, -0.019256591796875, -0.017425537109375, -0.0195159912109375, 0.0208740234375, 0.01190185546875, -0.016571044921875, 0.0322265625, 0.0487060546875, -0.004459381103515625, -0.0225677490234375, -0.07379150390625, 0.00923919677734375, 0.00589752197265625, 0.01105499267578125, 0.0254364013671875, 0.0193328857421875, 0.044281005859375, 0.09893798828125, -0.052947998046875, 0.0095367431640625, 0.04913330078125, -0.0007557868957519531, -0.0016803741455078125, -0.0017547607421875, -0.0217132568359375, 0.0005292892456054688, -0.0197601318359375, -0.00334930419921875, 0.0120086669921875, 0.01309967041015625, 0.0082855224609375, 0.020416259765625, -0.0059661865234375, 0.0005617141723632812, -0.0231170654296875, 0.009002685546875, 0.00949859619140625, 0.0202178955078125, -0.01568603515625, 0.019439697265625, -0.007183074951171875, 0.0197601318359375, 0.0185394287109375, 0.045379638671875, 0.05975341796875, 0.03765869140625, -0.023712158203125, 0.005859375, 0.035125732421875, -0.0292510986328125, -0.03631591796875, 0.0112457275390625, 0.0101318359375, 0.06658935546875, 0.0166015625, 0.0168304443359375, 0.03948974609375, 0.06182861328125, -0.0238189697265625, 0.07574462890625, -0.01096343994140625, 0.0018558502197265625, 0.021148681640625, -0.031585693359375, 0.038238525390625, 0.00213623046875, -0.035400390625, -0.0113983154296875, -0.01284027099609375, -0.02337646484375, 0.004878997802734375, 0.0243377685546875, 0.01165771484375, 0.0187530517578125, 0.01296234130859375, 0.004482269287109375, -0.001056671142578125, 0.01178741455078125, -0.01221466064453125, -0.0224761962890625, 0.033843994140625, -0.018585205078125, -0.034881591796875, 0.0011444091796875, -0.004482269287109375, -0.01313018798828125, -0.017120361328125, 0.052703857421875, 0.00821685791015625, -0.00991058349609375, -0.017333984375, -0.00466156005859375, -0.04638671875, -0.033599853515625, -0.0090179443359375, -0.036651611328125, -0.00934600830078125, 0.0246429443359375, 0.004215240478515625, 0.01409912109375, 0.028076171875, -0.03289794921875, 0.020721435546875, -0.03509521484375, 0.01149749755859375, -0.03204345703125, 0.039520263671875, 0.0024871826171875, -0.00466156005859375, -0.0218505859375, -0.0391845703125, 0.0491943359375, 0.0648193359375, 0.0249481201171875, 0.0030651092529296875, -0.01227569580078125, -0.059295654296875, 0.03173828125, -0.049530029296875, 0.043426513671875, 0.0304412841796875, 0.0005583763122558594, 0.0171661376953125, -0.0253448486328125, -0.023040771484375, -0.01541900634765625, 0.026123046875, -0.027496337890625, -0.0208740234375, 0.0193634033203125, 0.002048492431640625, 0.026214599609375, 0.0291748046875, -0.05218505859375, 0.0011959075927734375, 0.055633544921875, -0.00936126708984375, 0.0103607177734375, -0.0166168212890625, -0.019439697265625, -0.0205841064453125, -0.0289306640625, -0.01209259033203125, -0.00330352783203125, -0.07012939453125, 0.007740020751953125, 0.01238250732421875, 0.01537322998046875, -0.014434814453125, -0.0032958984375, -0.0115966796875, -0.030914306640625, 0.0199737548828125, -0.0204620361328125, 0.00603485107421875, 0.0034503936767578125, 0.004863739013671875, -0.0118865966796875, 0.0333251953125, -0.00307464599609375, -0.01201629638671875, 0.032379150390625, 0.0274505615234375, 0.036041259765625, -0.0220947265625, -0.027496337890625, 0.0496826171875, 0.030181884765625, 0.0736083984375, 0.0250701904296875, -0.035675048828125, -0.0242767333984375, 0.0190582275390625, -0.03350830078125, -0.032470703125, 0.0491943359375, -0.0633544921875, -0.043304443359375, 0.00336456298828125, -0.032379150390625, -0.0211181640625, -0.05511474609375, -0.0694580078125, 0.01453399658203125, 0.01568603515625, -0.032012939453125, -0.0157012939453125, 0.015350341796875, -0.0194549560546875, 0.043731689453125, 0.0273895263671875, -0.031158447265625, 0.005950927734375, 0.004566192626953125, -0.01177978515625, 0.027862548828125, 0.026947021484375, -0.0083465576171875, -0.026031494140625, -0.023834228515625, -0.0284881591796875, -0.022918701171875, 0.002471923828125, 0.0108642578125, 0.0026874542236328125, 0.05206298828125, -0.0095062255859375, -0.03497314453125, -0.01485443115234375, -0.06549072265625, 0.0109405517578125, -0.0380859375, -0.0268096923828125, -0.024993896484375, 0.060760498046875, -0.0195770263671875, 0.0167236328125, -0.01397705078125, -0.07708740234375, -0.017333984375, -0.005176544189453125, 0.01438140869140625, 0.035888671875, -0.07928466796875, 0.0240325927734375, 0.022735595703125, -0.00688934326171875, -0.0001361370086669922, -0.0137481689453125, -0.0338134765625, -0.0175933837890625, -0.033966064453125, -0.017486572265625, -0.0150604248046875, 0.007640838623046875, -0.03515625, -0.022125244140625, -0.07110595703125, -0.0216064453125, 0.0034770965576171875, -0.06219482421875, -0.01546478271484375, -0.009674072265625, -0.0233612060546875, 0.023162841796875, 0.005542755126953125, 0.03143310546875, -0.028472900390625, 0.044525146484375, -0.006328582763671875, -0.017333984375, 0.0004374980926513672, 0.00795745849609375, -0.0235443115234375, -0.0175628662109375, 0.04144287109375, 0.006137847900390625, 0.035400390625, -0.03167724609375, 0.03680419921875, -0.0034961700439453125, 0.0229949951171875, -0.005611419677734375, 0.01152801513671875, 0.046844482421875, -0.006832122802734375, 0.00403594970703125, 0.009033203125, -0.02337646484375, 0.0018529891967773438, -0.0005917549133300781, 0.0033435821533203125, -0.0281219482421875, 0.0029697418212890625 ]
f75dbf016ed4db36a1d8033845088c505780b83b
Wordpress Stackexchange Q: Where is the old post permalink slug stored? I published an article with permalink slug: http://domain.com/writing Then after publishing, I changed the permalink slug to writing-lorem. Now, whenever I visit /writing, it redirects to /writing-lorem. I want to use the writing slug for a new category but can't, it changes to writing-2. To attempt to remove all records of the writing slug, I looked in the DB for the post_name column under that post, but the value was the new slug writing-lorem. Then I search for other posts with the writing value, none found. Where exactly is that slug stored and how can I remove it so that I can use it for the category? A: It's in the table postmeta with the meta_key of _wp_old_slug If you wanted to clear all of the old slugs you could use this: DELETE FROM wp_postmeta WHERE meta_key = '_wp_old_slug';
Q: Where is the old post permalink slug stored? I published an article with permalink slug: http://domain.com/writing Then after publishing, I changed the permalink slug to writing-lorem. Now, whenever I visit /writing, it redirects to /writing-lorem. I want to use the writing slug for a new category but can't, it changes to writing-2. To attempt to remove all records of the writing slug, I looked in the DB for the post_name column under that post, but the value was the new slug writing-lorem. Then I search for other posts with the writing value, none found. Where exactly is that slug stored and how can I remove it so that I can use it for the category? A: It's in the table postmeta with the meta_key of _wp_old_slug If you wanted to clear all of the old slugs you could use this: DELETE FROM wp_postmeta WHERE meta_key = '_wp_old_slug'; A: We determined that the slug was not stored in postmeta meta_key _wp_old_slug. In a final attempt to find where this slug is stored. I performed a search for the exact phrase of writing and found a few results. The one of interest was in wp_terms. I deleted that entry and then changed the slug of the category to /writing and it is working. The strange part was that there were no records within wp_terms that connected the post to the slug. Maybe someone is knowledgeable about this table...
wordpress
{ "language": "en", "length": 237, "provenance": "stackexchange_00019.jsonl.gz:448457", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160054" }
[ 0.0243988037109375, 0.005374908447265625, 0.00339508056640625, 0.0104217529296875, -0.0026035308837890625, -0.035552978515625, 0.033355712890625, -0.04852294921875, 0.0036716461181640625, 0.001495361328125, 0.0012102127075195312, 0.031463623046875, -0.00824737548828125, -0.0418701171875, 0.0270233154296875, 0.01873779296875, 0.041839599609375, 0.009490966796875, 0.05987548828125, 0.0013036727905273438, 0.0056304931640625, 0.03875732421875, 0.02734375, 0.045196533203125, 0.0269622802734375, 0.0164947509765625, 0.03448486328125, -0.04150390625, 0.004932403564453125, -0.047393798828125, 0.008392333984375, 0.022857666015625, -0.0013818740844726562, 0.00420379638671875, 0.039642333984375, 0.007053375244140625, -0.0132598876953125, 0.01245880126953125, 0.0272674560546875, -0.0237579345703125, 0.012359619140625, -0.01515960693359375, -0.038238525390625, 0.0030059814453125, -0.017669677734375, -0.0015811920166015625, -0.028106689453125, -0.058868408203125, 0.030120849609375, -0.007808685302734375, 0.0112762451171875, -0.001983642578125, 0.0279998779296875, 0.047271728515625, -0.034423828125, -0.01055908203125, -0.027252197265625, 0.0184173583984375, 0.0178070068359375, 0.0134735107421875, 0.00260162353515625, 0.0218353271484375, 0.0088958740234375, 0.0016431808471679688, -0.0059814453125, -0.0015239715576171875, -0.004528045654296875, 0.017425537109375, -0.061004638671875, 0.00701904296875, 0.053741455078125, -0.0543212890625, -0.002223968505859375, -0.023712158203125, -0.0124053955078125, 0.00254058837890625, 0.01535797119140625, 0.0035762786865234375, 0.005191802978515625, 0.01145172119140625, 0.00252532958984375, 0.01404571533203125, -0.0007653236389160156, -0.03955078125, 0.006961822509765625, -0.024688720703125, -0.0167236328125, -0.01153564453125, -0.015625, -0.00630950927734375, -0.026580810546875, -0.024932861328125, 0.0224761962890625, 0.0252532958984375, -0.0300445556640625, 0.00592041015625, 0.0278167724609375, 0.0128021240234375, 0.003948211669921875, -0.0121612548828125, 0.01511383056640625, -0.04119873046875, -0.00579071044921875, -0.01033782958984375, 0.0125885009765625, 0.0087432861328125, -0.01348114013671875, -0.0284271240234375, 0.048309326171875, 0.01242828369140625, -0.00991058349609375, 0.039886474609375, 0.005130767822265625, -0.036346435546875, 0.01291656494140625, 0.0430908203125, 0.006946563720703125, 0.036468505859375, 0.016265869140625, 0.01861572265625, -0.0283355712890625, 0.0165252685546875, -0.0170440673828125, -0.002613067626953125, -0.005931854248046875, -0.021209716796875, -0.003055572509765625, 0.01171112060546875, 0.038543701171875, 0.033172607421875, -0.056854248046875, -0.0182647705078125, 0.050201416015625, 0.0302581787109375, 0.0186614990234375, -0.041046142578125, 0.00015091896057128906, -0.0185394287109375, -0.0179595947265625, 0.01806640625, -0.02099609375, -0.041900634765625, 0.006519317626953125, -0.01236724853515625, 0.049224853515625, 0.0272216796875, 0.0030536651611328125, -0.0017023086547851562, 0.0233001708984375, -0.033477783203125, 0.01023101806640625, -0.03143310546875, 0.051300048828125, -0.0009694099426269531, -0.036956787109375, -0.022918701171875, 0.0171661376953125, -0.022064208984375, -0.040679931640625, -0.047027587890625, 0.0311279296875, 0.00714874267578125, 0.026702880859375, -0.0298614501953125, -0.041717529296875, -0.00350189208984375, -0.07843017578125, -0.0175323486328125, -0.0032939910888671875, -0.0179443359375, -0.018951416015625, -0.0205841064453125, -0.046173095703125, -0.0253143310546875, 0.0037288665771484375, 0.01296234130859375, 0.00589752197265625, -0.019866943359375, 0.0221405029296875, 0.04925537109375, 0.0143280029296875, -0.01497650146484375, 0.036376953125, -0.00984954833984375, -0.05462646484375, 0.021759033203125, 0.032440185546875, 0.054046630859375, -0.01971435546875, 0.006175994873046875, 0.04852294921875, 0.0199737548828125, -0.0467529296875, 0.032318115234375, 0.018951416015625, -0.007419586181640625, -0.011474609375, 0.00809478759765625, 0.0164642333984375, -0.03643798828125, -0.0223846435546875, 0.046142578125, -0.01389312744140625, -0.006862640380859375, -0.06231689453125, 0.044097900390625, -0.0252838134765625, 0.0631103515625, 0.0006265640258789062, 0.0163726806640625, 0.0125885009765625, -0.026824951171875, -0.02093505859375, -0.00438690185546875, -0.02545166015625, -0.0262908935546875, -0.00020778179168701172, -0.016448974609375, -0.0232696533203125, 0.013153076171875, -0.02447509765625, -0.01390838623046875, -0.0584716796875, 0.007328033447265625, 0.032867431640625, -0.01171875, -0.01904296875, -0.0309906005859375, -0.015625, -0.0082855224609375, -0.06671142578125, 0.053985595703125, 0.0670166015625, 0.047332763671875, -0.022613525390625, 0.00638580322265625, 0.017669677734375, -0.03955078125, -0.02044677734375, 0.03753662109375, 0.0263214111328125, 0.004756927490234375, -0.0305328369140625, -0.022369384765625, 0.01425933837890625, -0.06524658203125, -0.023193359375, 0.007598876953125, 0.01068115234375, 0.0399169921875, 0.035797119140625, 0.029052734375, 0.01181793212890625, 0.0191497802734375, 0.022369384765625, 0.0306549072265625, -0.0273895263671875, -0.0229339599609375, 0.005489349365234375, 0.0140838623046875, 0.004230499267578125, -0.007293701171875, 0.007335662841796875, -0.00969696044921875, 0.011322021484375, 0.0114593505859375, 0.01296234130859375, 0.01287841796875, -0.0157928466796875, -0.01554107666015625, 0.01367950439453125, 0.00737762451171875, 0.0123443603515625, -0.013458251953125, 0.0160064697265625, -0.005275726318359375, -0.040557861328125, 0.01195526123046875, 0.046112060546875, -0.003753662109375, -0.0235748291015625, 0.045928955078125, 0.016571044921875, -0.0131683349609375, -0.055633544921875, -0.08404541015625, 0.006221771240234375, -0.006725311279296875, 0.04443359375, 0.0214080810546875, 0.0234375, 0.036590576171875, 0.0030422210693359375, 0.04669189453125, 0.01520538330078125, -0.0146484375, 0.039520263671875, 0.005496978759765625, 0.024566650390625, 0.018768310546875, 0.05255126953125, 0.060638427734375, 0.020904541015625, -0.00348663330078125, -0.0004513263702392578, -0.006824493408203125, -0.025604248046875, 0.004070281982421875, -0.0172882080078125, -0.02532958984375, -0.026519775390625, 0.045135498046875, 0.03387451171875, -0.0182342529296875, 0.021514892578125, -0.0252227783203125, -0.005268096923828125, -0.0026836395263671875, -0.08551025390625, -0.060821533203125, 0.0007886886596679688, -0.042205810546875, 0.00673675537109375, -0.005268096923828125, -0.02490234375, -0.0164642333984375, 0.021728515625, -0.0001462697982788086, 0.046478271484375, -0.02166748046875, -0.096435546875, -0.030975341796875, -0.0870361328125, -0.0290069580078125, -0.006374359130859375, 0.00800323486328125, -0.0035686492919921875, 0.0300445556640625, -0.0226287841796875, -0.0341796875, -0.020233154296875, -0.031707763671875, -0.006084442138671875, -0.0096435546875, 0.005924224853515625, -0.01154327392578125, 0.0034770965576171875, 0.0017566680908203125, 0.0665283203125, 0.0247344970703125, -0.0237579345703125, 0.0007925033569335938, 0.00849151611328125, -0.0299224853515625, 0.004970550537109375, 0.007450103759765625, -0.002536773681640625, -0.0288848876953125, -0.005847930908203125, -0.06414794921875, -0.035064697265625, -0.0191497802734375, -0.044769287109375, 0.027801513671875, -0.00047850608825683594, 0.028167724609375, 0.0009512901306152344, 0.025604248046875, 0.010284423828125, 0.01776123046875, 0.060821533203125, -0.021148681640625, -0.0021190643310546875, -0.01593017578125, -0.0223846435546875, -0.050567626953125, 0.03857421875, -0.0171356201171875, 0.00867462158203125, 0.019561767578125, 0.0015954971313476562, 0.00670623779296875, -0.02593994140625, -0.019500732421875, -0.071044921875, 0.05596923828125, -0.053741455078125, -0.04229736328125, -0.045196533203125, -0.0201873779296875, -0.00004082918167114258, 0.0665283203125, 0.002227783203125, -0.0168609619140625, -0.01303863525390625, -0.01538848876953125, 0.011688232421875, 0.0247955322265625, -0.00732421875, -0.0033893585205078125, -0.05780029296875, -0.017059326171875, 0.0007696151733398438, -0.0181121826171875, -0.045928955078125, 0.0596923828125, -0.0443115234375, -0.0191650390625, 0.0506591796875, -0.04547119140625, -0.00958251953125, 0.0129241943359375, -0.0007538795471191406, -0.042724609375, -0.056732177734375, 0.002536773681640625, -0.0941162109375, -0.022308349609375, 0.0007758140563964844, 0.07476806640625, 0.01263427734375, -0.05328369140625, -0.006000518798828125, 0.048492431640625, -0.01227569580078125, 0.03253173828125, -0.004764556884765625, 0.0021915435791015625, -0.0172119140625, 0.05096435546875, 0.017974853515625, 0.003124237060546875, 0.0237274169921875, -0.00617218017578125, -0.0623779296875, 0.0167388916015625, -0.033416748046875, 0.04547119140625, 0.0098724365234375, -0.0244598388671875, -0.0443115234375, 0.00597381591796875, 0.00966644287109375, 0.0151214599609375, -0.0290679931640625, 0.0213470458984375, 0.0270843505859375, -0.025665283203125, 0.038848876953125, 0.01285552978515625, -0.0118560791015625, 0.00698089599609375, 0.040069580078125, 0.00826263427734375, -0.041656494140625, -0.0204010009765625, -0.002899169921875, 0.035919189453125, 0.00835418701171875, 0.00774383544921875, 0.0094757080078125, -0.0188751220703125, 0.005645751953125, 0.00246429443359375, -0.01580810546875, -0.03912353515625, 0.014495849609375, 0.0088958740234375, 0.0251922607421875, -0.0240936279296875, -0.04107666015625, 0.116455078125, 0.047760009765625, -0.0117645263671875, -0.017608642578125, -0.0477294921875, 0.0655517578125, 0.002506256103515625, 0.002803802490234375, -0.07513427734375, -0.071533203125, 0.0100555419921875, -0.027984619140625, 0.08172607421875, 0.03167724609375, -0.0172271728515625, 0.09039306640625, 0.04180908203125, -0.0113067626953125, -0.05126953125, -0.0233612060546875, -0.0189208984375, 0.02178955078125, -0.03302001953125, -0.006374359130859375, -0.0291595458984375, -0.0129241943359375, 0.0181732177734375, 0.007556915283203125, -0.0294036865234375, 0.01036834716796875, -0.0185394287109375, -0.007381439208984375, 0.00902557373046875, 0.0147247314453125, 0.0044097900390625, 0.0394287109375, -0.00957489013671875, 0.003093719482421875, 0.0023403167724609375, 0.028167724609375, -0.0224151611328125, -0.00995635986328125, -0.0200042724609375, -0.00015854835510253906, -0.0118865966796875, 0.05694580078125, 0.0110015869140625, 0.0253753662109375, -0.007781982421875, 0.0014352798461914062, -0.0168914794921875, 0.0277557373046875, 0.0280609130859375, -0.0263214111328125, 0.00778961181640625, 0.01168060302734375, 0.01080322265625, -0.05224609375, -0.0020847320556640625, 0.005458831787109375, 0.048004150390625, -0.04058837890625, -0.0552978515625, 0.050994873046875, -0.0296783447265625, 0.00504302978515625, 0.0260009765625, -0.00594329833984375, -0.053924560546875, 0.007389068603515625, 0.030059814453125, 0.01129150390625, -0.04998779296875, -0.0085601806640625, -0.015625, -0.04547119140625, 0.0126190185546875, 0.0141143798828125, 0.019317626953125, -0.031341552734375, -0.03778076171875, -0.004749298095703125, -0.02532958984375, -0.007781982421875, 0.024322509765625, 0.01251220703125, -0.0297698974609375, -0.0223541259765625, 0.0277557373046875, 0.0163116455078125, 0.060546875, -0.014007568359375, -0.048828125, 0.03173828125, -0.0123138427734375, 0.0556640625, 0.0055084228515625, -0.02734375, 0.02996826171875, -0.005306243896484375, 0.0017576217651367188, 0.054168701171875, -0.00888824462890625, -0.0259246826171875, -0.06585693359375, 0.01244354248046875, 0.01009368896484375, 0.0181884765625, -0.0153961181640625, -0.00504302978515625, 0.01313018798828125, 0.029937744140625, 0.017822265625, -0.01500701904296875, 0.06878662109375, -0.0003864765167236328, 0.05853271484375, -0.00009924173355102539, 0.0240325927734375, -0.00559234619140625, -0.027862548828125, 0.00997161865234375, -0.038665771484375, -0.051513671875, 0.01366424560546875, -0.0288848876953125, 0.043212890625, 0.0689697265625, -0.01085662841796875, 0.00824737548828125, 0.00582122802734375, 0.0197906494140625, -0.001636505126953125, -0.04931640625, -0.0214996337890625, -0.0206756591796875, 0.01490020751953125, -0.014404296875, 0.05474853515625, -0.00786590576171875, 0.0001373291015625, 0.01068115234375, -0.03802490234375, 0.0280914306640625, 0.04681396484375, 0.006099700927734375, 0.0003814697265625, 0.020904541015625, 0.016937255859375, 0.043609619140625, -0.0012922286987304688, 0.04119873046875, 0.047607421875, -0.062164306640625, 0.04339599609375, 0.049774169921875, 0.06500244140625, 0.003139495849609375, 0.048614501953125, 0.0909423828125, -0.01342010498046875, -0.035675048828125, 0.034637451171875, 0.016876220703125, -0.034759521484375, -0.020233154296875, -0.005992889404296875, 0.01428985595703125, -0.0081329345703125, 0.033203125, -0.0244903564453125, -0.00524139404296875, -0.010955810546875, -0.035980224609375, 0.0028705596923828125, 0.01155853271484375, 0.0181121826171875, -0.023406982421875, -0.0009369850158691406, 0.01332855224609375, 0.01824951171875, -0.0218048095703125, 0.0019292831420898438, 0.025054931640625, -0.01248931884765625, -0.0281829833984375, -0.031036376953125, 0.0196075439453125, -0.0188446044921875, -0.00983428955078125, 0.07476806640625, -0.052398681640625, 0.05670166015625, 0.01100921630859375, -0.006282806396484375, 0.06097412109375, 0.0083465576171875, 0.00984954833984375, -0.0155181884765625, -0.009185791015625, -0.0023326873779296875, -0.0186309814453125, -0.052276611328125, 0.0137176513671875, 0.0198516845703125, -0.052490234375, 0.0271148681640625, -0.0048065185546875, -0.043731689453125, -0.00022530555725097656, -0.0266571044921875, 0.03131103515625, -0.08978271484375, 0.0069122314453125, -0.005229949951171875, 0.01434326171875, 0.041534423828125, -0.03472900390625, 0.04913330078125, -0.034149169921875, 0.01171875, -0.00977325439453125, 0.0006742477416992188, -0.0025310516357421875, -0.0294952392578125, -0.081787109375, 0.11968994140625, 0.006206512451171875, 0.07769775390625, 0.0006666183471679688, 0.0357666015625, -0.0166778564453125, 0.0186920166015625, -0.041473388671875, 0.0504150390625, -0.027984619140625, 0.0582275390625, -0.048980712890625, 0.0039215087890625, 0.020904541015625, 0.006866455078125, 0.1473388671875, 0.023040771484375, -0.016448974609375, -0.013427734375, 0.06854248046875, 0.019744873046875, -0.04058837890625, 0.040924072265625, -0.005649566650390625, 0.0109710693359375, 0.062225341796875, -0.0212249755859375, 0.028900146484375, 0.031005859375, -0.024444580078125, 0.01708984375, 0.0006480216979980469, -0.006473541259765625, -0.00799560546875, -0.03350830078125, 0.003021240234375, -0.01450347900390625, 0.004314422607421875, -0.032958984375, 0.011993408203125, 0.0032825469970703125, 0.04949951171875, -0.09185791015625, -0.0198822021484375, -0.0236968994140625, 0.052581787109375, 0.02655029296875, 0.01190185546875, 0.01517486572265625, 0.0251617431640625, 0.010528564453125, -0.0279083251953125, 0.005390167236328125, 0.025482177734375, -0.047607421875, 0.07196044921875, 0.04693603515625, 0.03460693359375, 0.0158843994140625, 0.007274627685546875, 0.06793212890625, 0.0775146484375, -0.04571533203125, -0.01090240478515625, 0.00823974609375, 0.01107025146484375, -0.01522064208984375, -0.0167083740234375, 0.005889892578125, 0.004535675048828125, 0.0197906494140625, -0.047149658203125, -0.0233001708984375, 0.00691986083984375, 0.03924560546875, -0.026275634765625, -0.052825927734375, 0.0185699462890625, -0.0207366943359375, -0.051116943359375, 0.0118865966796875, 0.0172271728515625, 0.06341552734375, 0.037384033203125, 0.034881591796875, -0.01523590087890625, -0.04547119140625, -0.00875091552734375, -0.0126190185546875, -0.017333984375, 0.019927978515625, -0.040771484375, -0.02227783203125, 0.03857421875, 0.046966552734375, 0.054901123046875, 0.0295867919921875, 0.023956298828125, -0.01381683349609375, -0.0206451416015625, 0.015625, -0.00388336181640625, -0.0390625, 0.05029296875, -0.0256195068359375, 0.021697998046875, -0.01424407958984375, -0.01009368896484375, -0.05767822265625, 0.03582763671875, 0.0110321044921875, -0.034423828125, 0.0029506683349609375, 0.01221466064453125, -0.02398681640625, 0.0440673828125, 0.046417236328125, 0.006237030029296875, 0.02850341796875, -0.035003662109375, -0.00531005859375, -0.04949951171875, -0.0128631591796875, 0.0169525146484375, 0.039642333984375, 0.02142333984375, -0.019134521484375, 0.0036468505859375, 0.004779815673828125, 0.0145416259765625, -0.020416259765625, 0.0005664825439453125, -0.003101348876953125, 0.0181884765625, -0.0067596435546875, -0.0396728515625, -0.0238037109375, 0.00220489501953125, 0.0279083251953125, -0.00275421142578125, 0.0479736328125, -0.00307464599609375, 0.003200531005859375, -0.0299530029296875, 0.02288818359375, -0.02801513671875, -0.0127105712890625, 0.00719451904296875, 0.03411865234375, 0.00020992755889892578, -0.0111083984375, -0.0280914306640625, 0.019500732421875, 0.0380859375, 0.0025882720947265625, 0.022125244140625, -0.026702880859375, 0.0034809112548828125, -0.0274810791015625, -0.035552978515625, -0.0389404296875, -0.03753662109375, -0.034515380859375, -0.005260467529296875, 0.003170013427734375, -0.018646240234375, -0.0264434814453125, 0.035003662109375, 0.0171051025390625, -0.0218048095703125, 0.021514892578125, -0.03558349609375, 0.047821044921875, 0.041717529296875, 0.01763916015625, 0.037689208984375, 0.017333984375, -0.021759033203125, 0.0234527587890625, -0.002471923828125, -0.0206756591796875, 0.02032470703125, -0.046661376953125, -0.0280303955078125, -0.05816650390625, 0.006923675537109375, -0.0018444061279296875, -0.0157470703125, -0.06573486328125, 0.0202789306640625, 0.007293701171875, -0.0194244384765625, -0.0217132568359375, -0.021148681640625, -0.007686614990234375, 0.0494384765625, -0.0230560302734375, 0.011077880859375, -0.0716552734375, 0.0190582275390625, 0.02545166015625, 0.00582122802734375, -0.05322265625, 0.047637939453125, -0.040374755859375, 0.0267486572265625, -0.00884246826171875, -0.00524139404296875, -0.005828857421875, 0.01007843017578125, -0.04107666015625, -0.01424407958984375, -0.025115966796875, 0.00894927978515625, -0.0267486572265625, 0.005962371826171875, 0.0135650634765625, -0.01019287109375, -0.01108551025390625, -0.0029354095458984375, -0.005435943603515625, 0.044403076171875, 0.0003712177276611328, 0.0196990966796875, 0.037200927734375, -0.0029239654541015625, -0.03656005859375, -0.0760498046875, -0.01125335693359375, -0.01357269287109375, 0.01413726806640625, 0.007129669189453125, -0.0182647705078125, -0.0171356201171875, -0.039947509765625, -0.035308837890625, -0.026214599609375, 0.035186767578125, -0.032745361328125, -0.03497314453125, -0.01148223876953125, -0.0189208984375, 0.0601806640625, -0.01059722900390625, -0.000949859619140625, -0.01151275634765625, 0.055999755859375, 0.0072174072265625, 0.046356201171875, -0.00647735595703125, -0.01064300537109375, -0.016510009765625, 0.01357269287109375, 0.012420654296875, 0.0242767333984375, 0.0406494140625, 0.002994537353515625, 0.036376953125, 0.06341552734375, -0.036834716796875, 0.02630615234375, -0.03240966796875, -0.025115966796875, -0.0267181396484375, -0.038238525390625, -0.051422119140625, -0.01306915283203125, 0.125732421875, 0.03765869140625, 0.034637451171875, -0.037811279296875, -0.0616455078125, -0.048583984375, -0.043304443359375, 0.0160675048828125, 0.043975830078125, -0.07525634765625, 0.031524658203125, 0.0072021484375, 0.0153656005859375, -0.003841400146484375, -0.027587890625, 0.0027828216552734375, -0.01247406005859375, 0.0220489501953125, 0.01351165771484375, -0.005992889404296875, 0.01355743408203125, 0.00666046142578125, -0.00788116455078125, 0.0197906494140625, -0.0137786865234375, 0.009674072265625, 0.01261138916015625, 0.008544921875, -0.0007534027099609375, -0.0212554931640625, -0.007785797119140625, 0.020263671875, 0.00876617431640625, 0.042205810546875, -0.0028629302978515625, -0.031402587890625, -0.0291900634765625, -0.0091552734375, 0.01334381103515625, -0.03216552734375, -0.01372528076171875, 0.00508880615234375, 0.0153656005859375, 0.0484619140625, -0.0006608963012695312, -0.022552490234375, -0.01279449462890625, 0.045928955078125, -0.035797119140625, -0.0027332305908203125, 0.00443267822265625, -0.030029296875, 0.00577545166015625, 0.0016794204711914062, 0.0196685791015625, -0.056121826171875, 0.0018815994262695312, -0.0110015869140625, 0.02520751953125, 0.01467132568359375 ]
fd04eab635e53926ee0b730e1c9f8c11f93d78a0
Wordpress Stackexchange Q: Show Custom Taxonomy Inside Custom Menu I have a custom menu using add_menu_page: add_menu_page('My menu' , 'Some text', 'read', 'nwcm'); Under it, I show a custom post type menu item; // Create the news custom post type register_post_type('nwcm_news', array( 'labels' => array( 'name' => __('News for clients', NWCM_TEXT_DOMAIN) , 'singular_name' => __('News', NWCM_TEXT_DOMAIN) ) , 'public' => true, 'has_archive' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => 'nwcm', 'taxonomies' => array( 'nwcm_news_category' ) , )); Then I add a custom taxonomy hooked to that "nwcm_news" post type: // register news taxonomy register_taxonomy('nwcm_news_category', 'nwcm_news', array( 'label' => __('News categories') , 'menu_name' => __('News categories') , 'rewrite' => array( 'slug' => 'nwcm_news_category' ) , 'hierarchical' => true )); The parent menu and the custom post type both show correctly... but, the taxonomy menu isn't showing :( How can I solve this? I had checked this solution but the answer lacks the full code example.. A: Here is how i accomplished this: Inside of the admin_menu action, I added a submenu item to the parent menu item ('nwcm') with the menu_slug parameter set to the URL the taxonomy edit page. add_submenu_page('nwcm', 'News categories', 'News categories', 'edit_posts', 'edit-tags.php?taxonomy=nwcm_news&post_type=nwcm_news',false );
Q: Show Custom Taxonomy Inside Custom Menu I have a custom menu using add_menu_page: add_menu_page('My menu' , 'Some text', 'read', 'nwcm'); Under it, I show a custom post type menu item; // Create the news custom post type register_post_type('nwcm_news', array( 'labels' => array( 'name' => __('News for clients', NWCM_TEXT_DOMAIN) , 'singular_name' => __('News', NWCM_TEXT_DOMAIN) ) , 'public' => true, 'has_archive' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => 'nwcm', 'taxonomies' => array( 'nwcm_news_category' ) , )); Then I add a custom taxonomy hooked to that "nwcm_news" post type: // register news taxonomy register_taxonomy('nwcm_news_category', 'nwcm_news', array( 'label' => __('News categories') , 'menu_name' => __('News categories') , 'rewrite' => array( 'slug' => 'nwcm_news_category' ) , 'hierarchical' => true )); The parent menu and the custom post type both show correctly... but, the taxonomy menu isn't showing :( How can I solve this? I had checked this solution but the answer lacks the full code example.. A: Here is how i accomplished this: Inside of the admin_menu action, I added a submenu item to the parent menu item ('nwcm') with the menu_slug parameter set to the URL the taxonomy edit page. add_submenu_page('nwcm', 'News categories', 'News categories', 'edit_posts', 'edit-tags.php?taxonomy=nwcm_news&post_type=nwcm_news',false ); A: You have some messed up code. I have reformatted your code to code which actually works. The following solution allows you to give your Custom Post Type menu a menu name of what ever you want. Just change the label "menu_name". POST TYPE // Create the news custom post type register_post_type('nwcm_news', array( 'labels' => array( 'name' => __('News for clients', 'NWCM'), 'singular_name' => __('News', 'NWCM'), 'menu_name' => __('NWCM', 'NWCM'), 'all_items' => __('View Articles', 'NWCM'), ), 'public' => true, 'has_archive' => true, 'show_ui' => true, 'show_in_menu' => true, 'taxonomies' => array( 'nwcm_news_category' ) )); TAXONOMY // register news taxonomy register_taxonomy('nwcm_news_category', 'nwcm_news', array( 'label' => 'News Categories', 'labels' => array( 'menu_name' => __('News Categories', 'NWCM') ), 'rewrite' => array( 'slug' => 'nwcm-news-category' ), 'hierarchical' => true )); I'm not 100% sure if you are wanting your own custom admin menu to add your stuff under, or if you just want to change the menu name of the custom post type. I have added in the menu_name of "NWCM" to the labels of your custom post type. I would highly recommend you read through and fully understand the parameters and arguments for registering custom post types and taxonomies. * *register_post_type(); *register_taxonomy(); EDIT: 09/05/2014 If you wanted to completely add your own custom admin menu, and mix in your Custom Post Types, Custom Taxonomies, and any other custom admin pages of your own... The following solution works. Please note, it's just a starting point and you don't have to do it this way 100% to a "T". It's just an example... I recommend you modify it, so that it's understandable and maintainable by you or your developer. Hook into init and register Custom Post Types and Custom Taxonomies. if ( ! function_exists( 'mbe_init' ) ) { function mbe_init() { # Create the news custom post type register_post_type( 'nwcm_news', array( 'labels' => array( 'name' => __( 'News for clients', 'NWCM' ), 'singular_name' => __( 'News', 'NWCM' ), ), 'public' => true, 'has_archive' => true, 'show_ui' => true, 'show_in_menu' => false,// adding to custom menu manually 'taxonomies' => array( 'nwcm_news_category' ) ) ); # Create the news categories custom taxonomy register_taxonomy( 'nwcm_news_category', 'nwcm_news', array( 'label' => 'News Categories', 'labels' => array( 'menu_name' => __( 'News Categories', 'NWCM' ) ), 'rewrite' => array( 'slug' => 'nwcm-news-category' ), 'hierarchical' => true ) ); } add_action( 'init', 'mbe_init' ); } Hook into admin_menu to create a custom parent admin menu, and add Custom Submenu Admin Pages, Custom Post Type pages, and Custom Taxonomy Pages all to the custom parent admin menu. if ( ! function_exists( 'mbe_add_admin_menu' ) && ! function_exists( 'mbe_display_admin_page' ) ) { function mbe_add_admin_menus() { # Settings for custom admin menu $page_title = 'News for clients'; $menu_title = 'NWCM'; $capability = 'post'; $menu_slug = 'nwcm'; $function = 'mbe_display_admin_page';// Callback function which displays the page content. $icon_url = 'dashicons-admin-page'; $position = 0; # Add custom admin menu add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); $submenu_pages = array( # Avoid duplicate pages. Add submenu page with same slug as parent slug. array( 'parent_slug' => 'nwcm', 'page_title' => 'Summary of News', 'menu_title' => 'Summary', 'capability' => 'read', 'menu_slug' => 'nwcm', 'function' => 'mbe_display_admin_page',// Uses the same callback function as parent menu. ), # Post Type :: View All Posts array( 'parent_slug' => 'nwcm', 'page_title' => '', 'menu_title' => 'View News', 'capability' => '', 'menu_slug' => 'edit.php?post_type=nwcm_news', 'function' => null,// Doesn't need a callback function. ), # Post Type :: Add New Post array( 'parent_slug' => 'nwcm', 'page_title' => '', 'menu_title' => 'Add News', 'capability' => '', 'menu_slug' => 'post-new.php?post_type=nwcm_news', 'function' => null,// Doesn't need a callback function. ), # Taxonomy :: Manage News Categories array( 'parent_slug' => 'nwcm', 'page_title' => '', 'menu_title' => 'News Categories', 'capability' => '', 'menu_slug' => 'edit-tags.php?taxonomy=nwcm_news_category&post_type=nwcm_news', 'function' => null,// Doesn't need a callback function. ), ); # Add each submenu item to custom admin menu. foreach ( $submenu_pages as $submenu ) { add_submenu_page( $submenu['parent_slug'], $submenu['page_title'], $submenu['menu_title'], $submenu['capability'], $submenu['menu_slug'], $submenu['function'] ); } } add_action( 'admin_menu', 'mbe_add_admin_menus', 1 ); /* If you add any extra custom sub menu pages which are not a Custom Post Type or a Custom Taxonomy, you will need * to create a callback function for each of your custom submenu items you create above. */ # Default Admin Page for Custom Admin Menu function mbe_display_admin_page() { # Display custom admin page content from newly added custom admin menu. echo '<div class="wrap">' . PHP_EOL; echo '<h2>My Custom Admin Page Title</h2>' . PHP_EOL; echo '<p>This is the custom admin page created from the custom admin menu.</p>' . PHP_EOL; echo '</div><!-- end .wrap -->' . PHP_EOL; echo '<div class="clear"></div>' . PHP_EOL; } } Hook into parent_file to correctly highlight your Custom Post Type and Custom Taxonomy submenu items with your custom parent menu/page. if ( ! function_exists( 'mbe_set_current_menu' ) ) { function mbe_set_current_menu( $parent_file ) { global $submenu_file, $current_screen, $pagenow; # Set the submenu as active/current while anywhere in your Custom Post Type (nwcm_news) if ( $current_screen->post_type == 'nwcm_news' ) { if ( $pagenow == 'post.php' ) { $submenu_file = 'edit.php?post_type=' . $current_screen->post_type; } if ( $pagenow == 'edit-tags.php' ) { $submenu_file = 'edit-tags.php?taxonomy=nwcm_news_category&post_type=' . $current_screen->post_type; } $parent_file = 'nwcm'; } return $parent_file; } add_filter( 'parent_file', 'mbe_set_current_menu' ); } If you need any clarification about how any of this works, read the following pages from top to bottom. * *Adding Custom Parent Admin Menus *Adding Custom Child Admin Menus *Roles and Capabilities in WordPress *Registering Custom Post Types *Registering Custom Taxonomies *WordPress Plugin API :: Action Reference *WordPress Plugin API :: Action Reference :: init *WordPress Plugin API :: Action Reference :: admin_menu *WordPress Plugin API :: Filter Reference *List of All WordPress Hooks (including actions and filters)
wordpress
{ "language": "en", "length": 1144, "provenance": "stackexchange_00019.jsonl.gz:448501", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160224" }
[ 0.036834716796875, 0.015411376953125, 0.0017118453979492188, -0.0207977294921875, 0.0222930908203125, -0.01468658447265625, 0.041595458984375, -0.03515625, -0.0240936279296875, -0.0164794921875, -0.05645751953125, -0.022430419921875, -0.043609619140625, -0.023223876953125, 0.006290435791015625, -0.07171630859375, 0.0181732177734375, -0.010009765625, 0.032958984375, -0.007293701171875, -0.0148773193359375, -0.00099945068359375, 0.0457763671875, -0.053314208984375, 0.03753662109375, -0.06427001953125, 0.037933349609375, -0.0211029052734375, 0.01226806640625, -0.026153564453125, 0.0281982421875, 0.0207061767578125, 0.015655517578125, -0.007610321044921875, 0.033782958984375, 0.00014674663543701172, 0.027496337890625, -0.00891876220703125, 0.0145111083984375, 0.026519775390625, 0.0008263587951660156, 0.01081085205078125, 0.0152435302734375, 0.0216217041015625, -0.0001347064971923828, -0.06500244140625, 0.0186920166015625, -0.03936767578125, -0.0180816650390625, -0.048431396484375, 0.03668212890625, -0.00914764404296875, 0.0606689453125, -0.03399658203125, -0.020538330078125, -0.00583648681640625, -0.026336669921875, -0.01971435546875, 0.02685546875, 0.0213623046875, -0.00914764404296875, -0.011322021484375, 0.0207366943359375, -0.01554107666015625, -0.001163482666015625, 0.0006308555603027344, 0.042877197265625, -0.0017423629760742188, -0.087646484375, -0.007289886474609375, 0.0694580078125, -0.0333251953125, 0.01251983642578125, -0.0009160041809082031, -0.015625, -0.05535888671875, 0.0307464599609375, -0.0220947265625, 0.0033206939697265625, 0.01105499267578125, 0.0267791748046875, 0.04376220703125, -0.031036376953125, 0.0099334716796875, -0.00493621826171875, 0.01166534423828125, -0.01483917236328125, -0.0377197265625, -0.019073486328125, 0.0025882720947265625, -0.0151214599609375, -0.0264434814453125, -0.0009436607360839844, 0.03643798828125, 0.006298065185546875, -0.0165863037109375, 0.0205841064453125, 0.0914306640625, -0.0163421630859375, 0.043426513671875, -0.0411376953125, -0.01203155517578125, 0.04052734375, -0.0660400390625, 0.0311431884765625, 0.04827880859375, -0.0100555419921875, -0.0050201416015625, 0.054718017578125, 0.00202178955078125, 0.005420684814453125, 0.047882080078125, -0.01013946533203125, -0.054534912109375, 0.0018968582153320312, 0.02655029296875, -0.0184478759765625, -0.0029697418212890625, 0.0225067138671875, -0.029937744140625, -0.0219268798828125, 0.00783538818359375, 0.00722503662109375, 0.024627685546875, 0.00518798828125, 0.024444580078125, 0.0108795166015625, -0.0267791748046875, -0.005641937255859375, 0.0214080810546875, -0.03033447265625, -0.0017213821411132812, 0.046905517578125, 0.05059814453125, 0.0277252197265625, -0.0181884765625, 0.013702392578125, -0.0160980224609375, 0.01132965087890625, -0.0168609619140625, 0.01116943359375, 0.01922607421875, 0.0184173583984375, -0.014068603515625, -0.007015228271484375, 0.01210784912109375, 0.015533447265625, 0.00901031494140625, -0.0010290145874023438, -0.0208892822265625, -0.009857177734375, -0.0303955078125, 0.064697265625, -0.01568603515625, -0.061981201171875, -0.0256500244140625, 0.01505279541015625, -0.0347900390625, -0.031341552734375, -0.047698974609375, -0.0157470703125, -0.02679443359375, 0.042724609375, -0.054534912109375, -0.05889892578125, 0.038726806640625, -0.07318115234375, -0.008941650390625, 0.032073974609375, -0.029052734375, 0.0706787109375, -0.0284423828125, -0.001094818115234375, 0.0064239501953125, 0.01500701904296875, 0.01067352294921875, 0.0051422119140625, 0.02740478515625, 0.01436614990234375, 0.035797119140625, 0.006420135498046875, -0.034454345703125, 0.04339599609375, -0.00811004638671875, -0.053680419921875, 0.016326904296875, 0.018798828125, 0.067138671875, 0.0145416259765625, 0.039764404296875, -0.00152587890625, 0.006671905517578125, -0.038665771484375, -0.000751495361328125, 0.022247314453125, -0.00213623046875, -0.007904052734375, -0.00528717041015625, 0.002269744873046875, -0.0031375885009765625, -0.0958251953125, 0.011688232421875, 0.003772735595703125, 0.01251983642578125, -0.005619049072265625, 0.012939453125, -0.021240234375, 0.060211181640625, 0.031585693359375, -0.01255035400390625, -0.018524169921875, -0.02984619140625, 0.0221099853515625, -0.0833740234375, -0.0604248046875, 0.0208740234375, -0.00833892822265625, 0.031951904296875, -0.0259552001953125, 0.004428863525390625, -0.028839111328125, -0.027069091796875, -0.0203094482421875, 0.031951904296875, 0.0594482421875, 0.004974365234375, -0.0188446044921875, -0.0202789306640625, 0.0406494140625, 0.0250091552734375, -0.061859130859375, 0.01690673828125, 0.03302001953125, -0.01280975341796875, -0.0494384765625, 0.00791168212890625, -0.0252838134765625, -0.04901123046875, -0.0203704833984375, 0.061126708984375, 0.00824737548828125, 0.0308685302734375, -0.027618408203125, -0.0000546574592590332, 0.0919189453125, 0.00624847412109375, -0.0096893310546875, 0.0037441253662109375, -0.03387451171875, -0.005260467529296875, 0.046966552734375, 0.0251922607421875, 0.024810791015625, 0.004161834716796875, 0.01995849609375, 0.043701171875, 0.004711151123046875, 0.0046539306640625, 0.02642822265625, -0.01148223876953125, 0.01177978515625, 0.020751953125, -0.033447265625, 0.023101806640625, 0.00351715087890625, 0.04345703125, 0.03131103515625, 0.025604248046875, -0.0283203125, 0.00925445556640625, 0.0240325927734375, 0.0271759033203125, 0.0069122314453125, 0.00275421142578125, 0.0226898193359375, -0.040924072265625, -0.0019254684448242188, 0.0004930496215820312, 0.00751495361328125, -0.01702880859375, -0.00586700439453125, 0.041351318359375, 0.00025200843811035156, -0.00746917724609375, -0.040802001953125, -0.07684326171875, 0.00496673583984375, 0.033416748046875, -0.0139007568359375, 0.0005650520324707031, 0.0367431640625, 0.017547607421875, -0.02850341796875, 0.018646240234375, -0.0152435302734375, -0.0090179443359375, 0.010955810546875, -0.003757476806640625, 0.046142578125, -0.0180816650390625, 0.0142822265625, 0.0555419921875, -0.012969970703125, 0.00958251953125, 0.01198577880859375, -0.0379638671875, -0.01003265380859375, 0.039703369140625, 0.013336181640625, -0.0150604248046875, -0.01953125, 0.0628662109375, -0.0018568038940429688, -0.014312744140625, -0.0157623291015625, -0.03558349609375, -0.0201568603515625, -0.015625, -0.034698486328125, -0.003185272216796875, 0.004970550537109375, -0.0160980224609375, 0.0126953125, -0.0009412765502929688, 0.002635955810546875, -0.0303192138671875, 0.0035343170166015625, -0.0012960433959960938, 0.00591278076171875, -0.04351806640625, -0.06103515625, -0.0684814453125, -0.062225341796875, -0.0147552490234375, -0.0014247894287109375, 0.0007457733154296875, 0.010162353515625, 0.04736328125, 0.01296234130859375, -0.052276611328125, 0.03277587890625, 0.030792236328125, -0.0007848739624023438, 0.038909912109375, 0.0408935546875, -0.0104827880859375, 0.035308837890625, -0.0013208389282226562, 0.029876708984375, 0.0631103515625, -0.060516357421875, -0.022216796875, -0.013702392578125, -0.0063018798828125, 0.00514984130859375, -0.0222015380859375, 0.0208587646484375, 0.0290985107421875, 0.01372528076171875, -0.02435302734375, -0.036041259765625, -0.035308837890625, -0.045379638671875, 0.047332763671875, 0.0241241455078125, 0.0172271728515625, -0.024688720703125, 0.054168701171875, -0.036376953125, 0.00662994384765625, 0.01197052001953125, -0.0239105224609375, 0.0200347900390625, -0.0294036865234375, -0.034332275390625, -0.005565643310546875, 0.035614013671875, 0.001251220703125, 0.0284271240234375, 0.038116455078125, 0.0182647705078125, -0.00646209716796875, 0.036651611328125, -0.0230865478515625, -0.0445556640625, 0.028472900390625, -0.0548095703125, -0.0034847259521484375, -0.03912353515625, -0.0011110305786132812, -0.0027446746826171875, 0.06329345703125, -0.0386962890625, -0.0130462646484375, 0.0030078887939453125, 0.017578125, -0.0003733634948730469, -0.038360595703125, -0.032196044921875, -0.0089569091796875, -0.077392578125, 0.0141143798828125, 0.0171661376953125, -0.0278472900390625, 0.0022430419921875, 0.03057861328125, -0.0601806640625, -0.0440673828125, 0.0295562744140625, -0.0222320556640625, -0.00518798828125, 0.036651611328125, -0.01020050048828125, -0.0095062255859375, -0.037689208984375, -0.00904083251953125, -0.083740234375, -0.0112457275390625, -0.025299072265625, 0.0626220703125, 0.01751708984375, -0.0120849609375, -0.0164337158203125, 0.052825927734375, 0.0255584716796875, 0.012908935546875, 0.00873565673828125, -0.006061553955078125, 0.01372528076171875, -0.00128936767578125, 0.012451171875, -0.0177001953125, -0.0177001953125, 0.012420654296875, -0.007091522216796875, 0.03302001953125, -0.00243377685546875, -0.0021800994873046875, 0.0309600830078125, -0.023406982421875, -0.056060791015625, -0.0272369384765625, -0.0703125, -0.031005859375, -0.0169830322265625, -0.0438232421875, -0.0156402587890625, -0.06500244140625, -0.0181884765625, -0.0032253265380859375, -0.0168304443359375, 0.00911712646484375, 0.038970947265625, 0.037017822265625, -0.00994110107421875, 0.0052947998046875, -0.0167694091796875, 0.02398681640625, -0.017425537109375, 0.04119873046875, 0.01393890380859375, -0.0006632804870605469, 0.039337158203125, -0.0145416259765625, 0.03955078125, -0.0159149169921875, 0.05511474609375, 0.011444091796875, 0.0157012939453125, 0.00621795654296875, 0.0023822784423828125, -0.017486572265625, 0.01953125, -0.025238037109375, -0.035491943359375, -0.048919677734375, 0.08013916015625, -0.0072479248046875, 0.0504150390625, -0.08270263671875, -0.0133056640625, 0.006595611572265625, -0.0120391845703125, 0.0267486572265625, 0.01546478271484375, -0.01293182373046875, -0.0154571533203125, -0.0374755859375, -0.004119873046875, 0.03167724609375, -0.007038116455078125, 0.00717926025390625, 0.0258636474609375, 0.0005331039428710938, -0.01282501220703125, 0.0207672119140625, -0.005428314208984375, 0.040557861328125, -0.0057220458984375, -0.0279998779296875, -0.01433563232421875, -0.0025119781494140625, 0.038970947265625, 0.003147125244140625, 0.0169830322265625, 0.03216552734375, 0.01384735107421875, -0.00357818603515625, -0.00789642333984375, -0.007144927978515625, 0.01331329345703125, -0.03253173828125, -0.0010442733764648438, -0.0159454345703125, -0.01107025146484375, -0.037322998046875, 0.0589599609375, -0.01314544677734375, 0.0032787322998046875, -0.0008759498596191406, 0.02496337890625, 0.0234222412109375, 0.0191497802734375, 0.0271453857421875, -0.015960693359375, 0.0033588409423828125, -0.0053863525390625, 0.0045928955078125, -0.037841796875, -0.025909423828125, 0.0138397216796875, 0.03363037109375, -0.00304412841796875, -0.007350921630859375, 0.020965576171875, 0.0120086669921875, -0.01256561279296875, 0.0118408203125, -0.0238037109375, -0.05133056640625, 0.002048492431640625, 0.0216827392578125, 0.015838623046875, -0.0116119384765625, -0.029205322265625, 0.01023101806640625, -0.039276123046875, 0.0220947265625, -0.009674072265625, -0.025604248046875, 0.0236968994140625, 0.008758544921875, -0.0347900390625, 0.01314544677734375, 0.0467529296875, -0.072265625, -0.052886962890625, -0.01000213623046875, -0.016021728515625, 0.037933349609375, -0.0216217041015625, 0.0171966552734375, -0.01092529296875, -0.01409149169921875, -0.01224517822265625, 0.00006461143493652344, 0.0615234375, 0.0301513671875, -0.015655517578125, 0.0093994140625, -0.023223876953125, -0.017333984375, -0.0281524658203125, -0.0531005859375, -0.035888671875, -0.0216217041015625, -0.01216888427734375, 0.01554107666015625, -0.0017547607421875, 0.0022296905517578125, -0.0526123046875, 0.00786590576171875, 0.025054931640625, 0.025115966796875, -0.005580902099609375, 0.086181640625, -0.0267486572265625, 0.049041748046875, 0.006916046142578125, 0.0267333984375, -0.03179931640625, 0.0016946792602539062, -0.0045928955078125, -0.056243896484375, -0.0194854736328125, -0.002361297607421875, -0.037841796875, 0.0386962890625, 0.0498046875, 0.00704193115234375, 0.041839599609375, -0.0063018798828125, 0.0053558349609375, -0.00949859619140625, -0.0071563720703125, -0.02667236328125, -0.0065155029296875, 0.06427001953125, -0.0333251953125, -0.002574920654296875, 0.03070068359375, 0.01091766357421875, 0.02899169921875, -0.0217132568359375, 0.021087646484375, 0.0009870529174804688, -0.0279388427734375, 0.07861328125, 0.049835205078125, -0.0204010009765625, 0.036285400390625, 0.01507568359375, 0.007701873779296875, 0.0014982223510742188, -0.0206298828125, -0.016357421875, 0.049835205078125, 0.045196533203125, -0.006435394287109375, 0.00775909423828125, 0.03369140625, -0.01529693603515625, -0.0206756591796875, 0.035400390625, 0.03240966796875, -0.07110595703125, 0.0109710693359375, 0.0231475830078125, 0.018707275390625, 0.01068878173828125, 0.00858306884765625, 0.004856109619140625, -0.0213775634765625, -0.0008664131164550781, -0.004291534423828125, -0.026123046875, -0.0038967132568359375, -0.00726318359375, -0.0233001708984375, 0.003185272216796875, 0.016754150390625, 0.03125, 0.0411376953125, -0.020843505859375, -0.0293121337890625, 0.0146636962890625, -0.0033931732177734375, 0.031005859375, -0.046783447265625, 0.01544952392578125, 0.00142669677734375, 0.0263519287109375, -0.056365966796875, 0.01264190673828125, 0.056884765625, -0.0196990966796875, -0.0281219482421875, 0.031829833984375, -0.03948974609375, 0.049957275390625, -0.0221099853515625, -0.044158935546875, 0.01251983642578125, -0.032684326171875, -0.007617950439453125, 0.029388427734375, -0.029876708984375, 0.024444580078125, 0.004764556884765625, -0.012939453125, -0.0022258758544921875, 0.0274658203125, 0.10205078125, -0.06890869140625, -0.0138702392578125, 0.006175994873046875, 0.01416015625, 0.01479339599609375, -0.00806427001953125, 0.045135498046875, -0.030792236328125, -0.0014781951904296875, 0.02117919921875, 0.01050567626953125, -0.04052734375, -0.00827789306640625, -0.03680419921875, 0.09393310546875, -0.050750732421875, -0.004688262939453125, 0.009552001953125, 0.045562744140625, -0.006710052490234375, 0.0231170654296875, -0.0299530029296875, 0.03192138671875, 0.022003173828125, 0.0284423828125, -0.039764404296875, -0.01116180419921875, 0.00537872314453125, 0.04052734375, 0.01299285888671875, 0.009521484375, -0.02569580078125, 0.0091705322265625, 0.039764404296875, 0.00034356117248535156, -0.0196685791015625, 0.0316162109375, -0.006526947021484375, -0.02783203125, 0.0128936767578125, 0.0246429443359375, 0.0462646484375, -0.007167816162109375, -0.0367431640625, 0.0095977783203125, 0.01554107666015625, 0.0322265625, -0.0091705322265625, -0.00765228271484375, 0.0032138824462890625, -0.00426483154296875, 0.0179901123046875, -0.04632568359375, -0.0252227783203125, -0.004108428955078125, -0.0266265869140625, -0.0292510986328125, -0.005489349365234375, -0.0260772705078125, 0.00545501708984375, -0.00814056396484375, 0.0110931396484375, -0.01325225830078125, 0.011383056640625, -0.01016998291015625, -0.010833740234375, 0.00589752197265625, 0.050567626953125, -0.035919189453125, 0.0298309326171875, -0.0027294158935546875, 0.014923095703125, -0.0584716796875, -0.033477783203125, 0.0232086181640625, 0.04632568359375, -0.0305023193359375, -0.07080078125, 0.01450347900390625, 0.0164947509765625, -0.005767822265625, 0.03448486328125, -0.00902557373046875, 0.05023193359375, 0.0987548828125, -0.0245361328125, 0.00021183490753173828, 0.01557159423828125, 0.0207061767578125, -0.00336456298828125, -0.0242156982421875, -0.015289306640625, -0.00852203369140625, -0.08746337890625, 0.045684814453125, 0.0292510986328125, 0.10882568359375, 0.026031494140625, 0.08807373046875, -0.01263427734375, -0.060302734375, -0.0107574462890625, -0.0023822784423828125, 0.00896453857421875, 0.01276397705078125, -0.033416748046875, -0.0199737548828125, 0.0623779296875, 0.030364990234375, 0.0239105224609375, 0.0178375244140625, 0.033782958984375, 0.015380859375, -0.0103302001953125, 0.0007877349853515625, 0.0391845703125, -0.01387786865234375, -0.031951904296875, -0.026947021484375, 0.0124969482421875, 0.0304107666015625, 0.01006317138671875, 0.0039005279541015625, 0.0285797119140625, 0.03179931640625, -0.000247955322265625, 0.017822265625, -0.00231170654296875, -0.0233612060546875, 0.03460693359375, -0.0044708251953125, 0.083740234375, 0.03668212890625, -0.1317138671875, -0.0390625, -0.053619384765625, -0.0169830322265625, 0.0665283203125, 0.04864501953125, -0.004650115966796875, -0.004848480224609375, 0.0293426513671875, -0.00789642333984375, -0.0168609619140625, 0.0165863037109375, 0.0169219970703125, 0.002197265625, 0.01383209228515625, 0.01959228515625, -0.0008997917175292969, -0.00212860107421875, 0.006805419921875, 0.01529693603515625, 0.01873779296875, 0.07562255859375, -0.0216522216796875, 0.0014171600341796875, -0.05377197265625, 0.00890350341796875, -0.043243408203125, -0.058624267578125, 0.0321044921875, 0.0169525146484375, 0.0043182373046875, 0.0003688335418701172, -0.029754638671875, 0.0271759033203125, 0.047149658203125, -0.04498291015625, 0.0296173095703125, 0.0201416015625, -0.0005502700805664062, -0.059112548828125, 0.0260467529296875, -0.0200653076171875, 0.0003669261932373047, -0.0249786376953125, -0.0280914306640625, 0.048065185546875, 0.03302001953125, 0.0006909370422363281, 0.0169219970703125, -0.0015659332275390625, -0.04144287109375, 0.0198822021484375, -0.023773193359375, 0.032318115234375, 0.04443359375, -0.0161285400390625, -0.01947021484375, 0.04669189453125, 0.00757598876953125, 0.00608062744140625, 0.03717041015625, 0.0207366943359375, 0.050689697265625, -0.043914794921875, 0.05615234375, -0.0014743804931640625, 0.0236663818359375, -0.0474853515625, -0.004970550537109375, 0.0380859375, 0.005889892578125, 0.03961181640625, -0.0076904296875, -0.031524658203125, -0.07086181640625, 0.018035888671875, 0.01275634765625, -0.014617919921875, -0.00012600421905517578, -0.054229736328125, 0.01338958740234375, 0.07281494140625, 0.0169525146484375, -0.062744140625, 0.034454345703125, -0.039642333984375, 0.044769287109375, 0.0276641845703125, -0.022125244140625, 0.0078887939453125, 0.012451171875, -0.017120361328125, 0.0218353271484375, -0.042755126953125, -0.040374755859375, -0.0105133056640625, 0.0017480850219726562, -0.009765625, -0.0155792236328125, -0.0055389404296875, -0.0028228759765625, 0.001773834228515625, 0.03179931640625, 0.07598876953125, -0.030975341796875, -0.05303955078125, 0.0015411376953125, -0.0024471282958984375, 0.01361846923828125, 0.04522705078125, -0.06744384765625, -0.08209228515625, -0.00943756103515625, 0.005252838134765625, 0.02081298828125, -0.047149658203125, -0.07464599609375, 0.0280609130859375, -0.00646209716796875, -0.037841796875, -0.0236968994140625, 0.024444580078125, -0.0306396484375, 0.0149383544921875, -0.0008106231689453125, -0.012115478515625, 0.0264434814453125, 0.0267486572265625, -0.0028476715087890625, 0.043548583984375, 0.0033359527587890625, 0.0025997161865234375, -0.022491455078125, 0.0093841552734375, 0.0034999847412109375, -0.0152740478515625, 0.019775390625, -0.015655517578125, 0.00862884521484375, 0.01064300537109375, -0.06256103515625, -0.064208984375, -0.01512908935546875, 0.04376220703125, 0.0022525787353515625, -0.0178680419921875, -0.009429931640625, -0.02447509765625, 0.033477783203125, -0.018798828125, 0.000141143798828125, 0.0121002197265625, -0.015777587890625, -0.054931640625, -0.06536865234375, -0.0013875961303710938, 0.032440185546875, -0.08056640625, 0.013763427734375, 0.032470703125, -0.0021877288818359375, -0.04296875, 0.02581787109375, -0.03424072265625, -0.012969970703125, 0.030364990234375, 0.0185546875, -0.06158447265625, 0.0210113525390625, 0.0254669189453125, -0.0335693359375, -0.039947509765625, 0.00807952880859375, -0.00959014892578125, -0.028076171875, -0.0176849365234375, -0.038177490234375, 0.0157012939453125, -0.033447265625, 0.01074981689453125, -0.0276947021484375, 0.029052734375, -0.02557373046875, 0.020355224609375, -0.017791748046875, 0.01358795166015625, -0.005733489990234375, 0.0145721435546875, -0.00502777099609375, 0.00995635986328125, -0.00019729137420654297, 0.042327880859375, 0.0017337799072265625, 0.032928466796875, -0.005828857421875, 0.0394287109375, -0.01117706298828125, -0.005748748779296875, 0.006740570068359375, -0.0181121826171875, 0.0083160400390625, -0.024810791015625, -0.0303955078125, -0.058563232421875, 0.0220794677734375, -0.027069091796875, -0.018524169921875, 0.0282440185546875 ]
a0b4d41eccc8c41914fc13e79e55125463c6f664
Wordpress Stackexchange Q: Does WordPress work without a theme? Does WordPress work without a theme? If so, then how does it work? Please explain in brief. If WordPress is displaying content without a theme, what controls the output? A: I think there's a song for that: "Imagine there's no theme. It's easy if you try. No hell below us. Above us only sky ..." ;-) So in that imaginary dream: * *you can still fetch the RSS feeds from your site: example.com/feed/ *you can still login to your backend: example.com/wp-login.php *you can still access the backend and work there (almost) as usual: example.com/wp-admin/ *scheduling posts will not work so you will get the Missed schedule message. *wp-cron will not be reliable. *you can still access /wp-admin/admin-ajax.php *you can use the template_redirect and tempate_include hooks to control the output. Try for example this tiny plugin: <?php /** Plugin Name: No-Theme-Day **/ add_action( 'template_redirect', function() { wp_die( __( "Jibby! It's the No-Theme-Day today!" ) ); } ); *... ps: Forgive my Friday answer - "But I'm not the only one" ;-)
Q: Does WordPress work without a theme? Does WordPress work without a theme? If so, then how does it work? Please explain in brief. If WordPress is displaying content without a theme, what controls the output? A: I think there's a song for that: "Imagine there's no theme. It's easy if you try. No hell below us. Above us only sky ..." ;-) So in that imaginary dream: * *you can still fetch the RSS feeds from your site: example.com/feed/ *you can still login to your backend: example.com/wp-login.php *you can still access the backend and work there (almost) as usual: example.com/wp-admin/ *scheduling posts will not work so you will get the Missed schedule message. *wp-cron will not be reliable. *you can still access /wp-admin/admin-ajax.php *you can use the template_redirect and tempate_include hooks to control the output. Try for example this tiny plugin: <?php /** Plugin Name: No-Theme-Day **/ add_action( 'template_redirect', function() { wp_die( __( "Jibby! It's the No-Theme-Day today!" ) ); } ); *... ps: Forgive my Friday answer - "But I'm not the only one" ;-) A: Since using WordPress without theme is quite rare the technicalities of it don't get much attention. First you have to understand there are multiple "endpoints" in WordPress core dealing with requests. * *admin side has its own (and numerous) ones, such as wp-admin/index.php. *front side almost universally goes through index.php in the very root, but it's usually "hidden" by pretty permalinks If you take a look at the latter file it has following line: define('WP_USE_THEMES', true); So typically WordPress expects front end to always have a theme and configures runtime environment accordingly. This constant doesn't control that much, only if theme templates are going to be loaded in template-loader.php. Note that it doesn't prevent parent/child themes (if present) to be loaded during core boot process. So by default WordPress expects at least one theme to be present, enabled, and have templates to be used for purposes of front end display. This is, however, just a matter of defaults and can be completely configured away. In such case WordPress will continue to fully function on admin side, while on front end side all requests that rely on theme template will cease to display anything.
wordpress
{ "language": "en", "length": 371, "provenance": "stackexchange_00019.jsonl.gz:448514", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160279" }
[ 0.0088653564453125, -0.006748199462890625, -0.0217132568359375, -0.0203399658203125, 0.0016021728515625, -0.030548095703125, 0.003421783447265625, -0.03033447265625, -0.01326751708984375, 0.013275146484375, -0.01369476318359375, -0.005523681640625, -0.032928466796875, -0.032562255859375, -0.01256561279296875, -0.046875, 0.0293731689453125, -0.0185394287109375, 0.02313232421875, -0.006778717041015625, 0.01091766357421875, 0.012969970703125, 0.0098876953125, 0.05975341796875, 0.0236968994140625, -0.022552490234375, 0.07171630859375, -0.001964569091796875, 0.0343017578125, 0.0087432861328125, 0.0249786376953125, -0.040130615234375, 0.020660400390625, 0.04205322265625, -0.03839111328125, 0.01096343994140625, -0.0194854736328125, 0.015869140625, 0.0115966796875, 0.00385284423828125, -0.0201568603515625, 0.00785064697265625, 0.0477294921875, 0.006927490234375, 0.00936126708984375, -0.0458984375, 0.00644683837890625, -0.05950927734375, 0.004856109619140625, -0.043304443359375, -0.0008053779602050781, 0.02337646484375, 0.0192413330078125, -0.01168060302734375, -0.0190582275390625, -0.000759124755859375, -0.004680633544921875, 0.0005054473876953125, 0.044464111328125, -0.039276123046875, -0.035888671875, -0.033782958984375, 0.04071044921875, 0.008331298828125, 0.0184173583984375, 0.006862640380859375, -0.0212554931640625, 0.01509857177734375, -0.063720703125, 0.018707275390625, 0.04156494140625, -0.056732177734375, 0.01250457763671875, -0.0199737548828125, 0.028472900390625, -0.006809234619140625, -0.01873779296875, -0.012237548828125, 0.019439697265625, 0.01641845703125, 0.00982666015625, -0.0088653564453125, -0.037567138671875, -0.0491943359375, 0.048797607421875, 0.0005769729614257812, -0.005840301513671875, -0.0102691650390625, -0.054412841796875, -0.0316162109375, -0.038421630859375, 0.0106201171875, -0.0992431640625, -0.0149688720703125, 0.0050811767578125, -0.02850341796875, -0.0033664703369140625, 0.0280303955078125, -0.01392364501953125, 0.0167694091796875, -0.034423828125, -0.0025157928466796875, 0.0091552734375, -0.0263824462890625, -0.018463134765625, 0.012451171875, 0.0281524658203125, 0.043243408203125, 0.016143798828125, 0.0189971923828125, -0.0156707763671875, 0.0180816650390625, 0.014068603515625, -0.0097503662109375, -0.0222930908203125, -0.0128936767578125, -0.028961181640625, 0.043426513671875, 0.0094146728515625, 0.0224609375, -0.0268402099609375, 0.0238189697265625, -0.0106964111328125, -0.06256103515625, 0.029876708984375, 0.022918701171875, -0.00467681884765625, -0.0218353271484375, 0.044830322265625, -0.00237274169921875, -0.0311126708984375, 0.01175689697265625, 0.038238525390625, 0.005279541015625, -0.012054443359375, -0.0038738250732421875, 0.019927978515625, -0.0254974365234375, -0.0271453857421875, 0.0160675048828125, 0.01611328125, -0.04229736328125, -0.0243682861328125, -0.027923583984375, 0.0145721435546875, 0.00469207763671875, 0.0211181640625, 0.045135498046875, -0.020660400390625, -0.0288848876953125, 0.0523681640625, -0.03466796875, -0.0001024007797241211, 0.01580810546875, -0.00408172607421875, -0.03125, -0.0014371871948242188, -0.012725830078125, 0.0311126708984375, -0.03369140625, 0.0308685302734375, 0.004734039306640625, 0.0269317626953125, 0.00833892822265625, -0.01483917236328125, 0.0010271072387695312, -0.042510986328125, -0.0039520263671875, 0.02630615234375, -0.02825927734375, 0.038665771484375, -0.0179443359375, 0.05499267578125, -0.0035858154296875, -0.003650665283203125, 0.0300445556640625, 0.043914794921875, -0.01019287109375, 0.00566864013671875, 0.024566650390625, 0.0022830963134765625, -0.006328582763671875, 0.044464111328125, -0.023712158203125, -0.0772705078125, 0.0197906494140625, 0.0182037353515625, 0.1046142578125, 0.04693603515625, 0.021453857421875, 0.047882080078125, -0.0278472900390625, -0.01019287109375, 0.0426025390625, 0.0211944580078125, -0.03302001953125, -0.04547119140625, 0.0027751922607421875, -0.005832672119140625, -0.023956298828125, 0.0550537109375, 0.0259857177734375, -0.00101470947265625, -0.0416259765625, -0.06829833984375, 0.007411956787109375, -0.0206756591796875, 0.037017822265625, 0.0232391357421875, 0.04766845703125, 0.00650787353515625, 0.03289794921875, -0.00910186767578125, -0.05487060546875, -0.04736328125, -0.0204925537109375, -0.00009179115295410156, 0.062347412109375, -0.0013666152954101562, 0.0523681640625, 0.0374755859375, -0.06036376953125, 0.0248565673828125, 0.019073486328125, 0.045501708984375, -0.01274871826171875, 0.01505279541015625, -0.027435302734375, 0.0286407470703125, -0.0019311904907226562, -0.012115478515625, 0.0235443115234375, -0.00860595703125, -0.0119476318359375, -0.060760498046875, -0.007534027099609375, -0.03369140625, -0.01287078857421875, -0.007244110107421875, 0.04736328125, 0.0223541259765625, 0.0440673828125, -0.04840087890625, -0.029296875, 0.07196044921875, -0.045318603515625, -0.025238037109375, 0.015655517578125, 0.0234832763671875, 0.01358795166015625, 0.01177978515625, -0.0355224609375, 0.031646728515625, -0.05377197265625, 0.0010156631469726562, 0.0275421142578125, 0.01312255859375, 0.0189361572265625, 0.006931304931640625, -0.02020263671875, 0.0106658935546875, 0.059661865234375, -0.018035888671875, 0.031585693359375, -0.006671905517578125, 0.01224517822265625, 0.01244354248046875, 0.0025768280029296875, -0.0263824462890625, 0.005950927734375, 0.028717041015625, -0.00794219970703125, 0.0008502006530761719, 0.052459716796875, 0.039276123046875, 0.025848388671875, -0.0239105224609375, -0.0309600830078125, 0.00611114501953125, 0.039825439453125, -0.0244293212890625, -0.0028896331787109375, 0.01096343994140625, -0.0287017822265625, 0.01183319091796875, -0.00598907470703125, 0.020782470703125, -0.03668212890625, 0.043365478515625, 0.046844482421875, 0.03759765625, 0.0304412841796875, -0.011138916015625, 0.05157470703125, -0.0072021484375, 0.0006494522094726562, -0.024566650390625, -0.041778564453125, 0.0408935546875, -0.04681396484375, 0.005084991455078125, 0.048828125, -0.0214385986328125, 0.02008056640625, 0.0197296142578125, 0.0177459716796875, 0.044189453125, 0.0081634521484375, 0.007160186767578125, 0.04193115234375, -0.09552001953125, -0.03082275390625, 0.048828125, 0.0277099609375, 0.0279388427734375, -0.0299224853515625, -0.0193634033203125, 0.050567626953125, -0.056671142578125, -0.044403076171875, -0.03265380859375, -0.02972412109375, -0.0136260986328125, -0.0124664306640625, -0.00600433349609375, 0.00312042236328125, -0.00774383544921875, 0.013946533203125, -0.0301055908203125, -0.035614013671875, -0.03558349609375, -0.071533203125, -0.054962158203125, -0.0191497802734375, 0.005153656005859375, 0.0165252685546875, -8.940696716308594e-7, 0.052337646484375, 0.021881103515625, -0.057525634765625, 0.02069091796875, 0.056304931640625, -0.03289794921875, 0.008392333984375, 0.004261016845703125, -0.0244903564453125, 0.0003921985626220703, -0.01531982421875, 0.032623291015625, 0.0207672119140625, -0.0110626220703125, -0.00479888916015625, -0.0269317626953125, -0.07427978515625, -0.035308837890625, 0.01470947265625, 0.029296875, -0.042144775390625, -0.01953125, -0.07635498046875, -0.049407958984375, -0.006977081298828125, -0.06854248046875, 0.0202789306640625, 0.0300140380859375, 0.00811767578125, -0.01107025146484375, -0.00957489013671875, -0.036590576171875, -0.03265380859375, -0.016693115234375, -0.037384033203125, 0.0215911865234375, -0.00295257568359375, -0.01068878173828125, 0.031280517578125, -0.018280029296875, -0.0343017578125, 0.01020050048828125, -0.02557373046875, -0.0019702911376953125, -0.03057861328125, 0.0305023193359375, -0.04852294921875, -0.0222625732421875, 0.0308380126953125, -0.0281524658203125, -0.0054779052734375, -0.010498046875, -0.0034999847412109375, 0.00159454345703125, 0.04510498046875, -0.040802001953125, -0.00463104248046875, 0.0007939338684082031, 0.023193359375, -0.037811279296875, -0.043731689453125, -0.037445068359375, -0.01055145263671875, -0.0701904296875, -0.006328582763671875, -0.0194091796875, -0.01113128662109375, 0.0066375732421875, -0.0264739990234375, -0.019622802734375, -0.0447998046875, 0.004543304443359375, 0.0149383544921875, 0.01020050048828125, 0.0012884140014648438, -0.004680633544921875, -0.00958251953125, 0.00630950927734375, -0.017608642578125, -0.072998046875, -0.0182342529296875, 0.047027587890625, 0.01261138916015625, -0.0185699462890625, -0.016632080078125, -0.0357666015625, 0.016204833984375, 0.0039825439453125, 0.04364013671875, -0.00658416748046875, 0.003509521484375, -0.022491455078125, -0.00689697265625, 0.017730712890625, -0.016387939453125, 0.0152740478515625, 0.01050567626953125, -0.0083160400390625, 0.045623779296875, -0.028961181640625, -0.000591278076171875, 0.0012149810791015625, -0.029998779296875, 0.01499176025390625, 0.0011997222900390625, 0.00644683837890625, 0.016937255859375, 0.01122283935546875, -0.019195556640625, -0.0247344970703125, 0.009002685546875, 0.0300140380859375, -0.02239990234375, -0.003490447998046875, 0.022369384765625, 0.094970703125, 0.0243682861328125, 0.0027256011962890625, -0.08428955078125, -0.002300262451171875, 0.03399658203125, 0.03564453125, 0.0019245147705078125, -0.0207061767578125, -0.0477294921875, 0.10223388671875, 0.0019483566284179688, -0.0175323486328125, -0.0246124267578125, 0.0567626953125, -0.0269775390625, -0.036224365234375, 0.03717041015625, -0.05645751953125, 0.0452880859375, 0.0142364501953125, -0.0004744529724121094, -0.01140594482421875, 0.0025119781494140625, 0.034027099609375, -0.003414154052734375, -0.01013946533203125, -0.040374755859375, 0.0118408203125, 0.004802703857421875, 0.006732940673828125, 0.0271759033203125, 0.01214599609375, 0.0012187957763671875, -0.0202789306640625, 0.014923095703125, -0.0016736984252929688, 0.012603759765625, -0.005405426025390625, -0.0216064453125, 0.02294921875, 0.01424407958984375, -0.0022258758544921875, -0.0008006095886230469, -0.01107025146484375, 0.09600830078125, 0.007137298583984375, -0.04779052734375, -0.035614013671875, -0.0152435302734375, 0.005084991455078125, 0.0357666015625, -0.01352691650390625, 0.020965576171875, -0.01287841796875, -0.0124969482421875, -0.00368499755859375, 0.0159759521484375, -0.06683349609375, -0.0266265869140625, 0.0304107666015625, 0.0038242340087890625, -0.01080322265625, 0.034881591796875, 0.0206756591796875, 0.0104522705078125, 0.0093841552734375, -0.0112762451171875, 0.00047397613525390625, 0.006519317626953125, 0.036346435546875, 0.01294708251953125, -0.0120086669921875, -0.0035610198974609375, 0.0021495819091796875, 0.022064208984375, -0.0284576416015625, -0.0200958251953125, 0.041961669921875, 0.0205230712890625, 0.00728607177734375, 0.0018444061279296875, 0.0020809173583984375, 0.00603485107421875, -0.029541015625, 0.0304718017578125, -0.01898193359375, -0.0242919921875, -0.04925537109375, -0.0025463104248046875, 0.03253173828125, 0.01019287109375, -0.000042498111724853516, 0.0426025390625, -0.0012264251708984375, 0.0093994140625, 0.0189971923828125, -0.034027099609375, 0.005710601806640625, 0.032257080078125, -0.0273284912109375, -0.00209808349609375, 0.035491943359375, -0.039581298828125, -0.02496337890625, -0.0244140625, -0.0218048095703125, 0.04144287109375, -0.04632568359375, 0.0258331298828125, -0.0288543701171875, 0.01467132568359375, -0.03131103515625, 0.0060577392578125, 0.07623291015625, 0.06158447265625, -0.0909423828125, 0.01451873779296875, -0.0579833984375, -0.002109527587890625, -0.06634521484375, -0.034393310546875, -0.06671142578125, 0.01543426513671875, 0.0237884521484375, 0.01525115966796875, -0.0185394287109375, -0.04779052734375, -0.017730712890625, 0.032989501953125, 0.038299560546875, 0.055145263671875, 0.00568389892578125, 0.050872802734375, -0.031951904296875, 0.0406494140625, 0.003101348876953125, 0.038970947265625, -0.00402069091796875, -0.0245513916015625, 0.00585174560546875, -0.02838134765625, -0.007476806640625, 0.0034503936767578125, -0.037567138671875, -0.00310516357421875, 0.030303955078125, 0.0024471282958984375, 0.01155853271484375, -0.0203857421875, -0.006183624267578125, -0.033447265625, 0.05096435546875, -0.0240631103515625, 0.0076446533203125, -0.00658416748046875, -0.034149169921875, -0.016937255859375, -0.006122589111328125, -0.00756072998046875, 0.02435302734375, -0.025604248046875, -0.0181732177734375, 0.04827880859375, -0.0244903564453125, 0.07843017578125, 0.0892333984375, -0.010009765625, 0.032867431640625, 0.0135040283203125, -0.0230560302734375, -0.016082763671875, 0.04608154296875, -0.061859130859375, -0.0435791015625, 0.047698974609375, 0.0231475830078125, 0.00228118896484375, 0.03662109375, -0.00884246826171875, 0.00298309326171875, 0.0968017578125, 0.06268310546875, -0.09686279296875, -0.033111572265625, -0.0118255615234375, -0.037872314453125, -0.0050048828125, -0.009674072265625, -0.016204833984375, -0.036651611328125, 0.05572509765625, 0.0249481201171875, -0.0004901885986328125, 0.02630615234375, 0.01099395751953125, -0.0024585723876953125, -0.00643157958984375, 0.03570556640625, 0.0074310302734375, -0.049774169921875, 0.0179901123046875, 0.043975830078125, 0.01259613037109375, -0.0240020751953125, 0.0034999847412109375, -0.0111846923828125, -0.0270843505859375, -0.05426025390625, -0.00185394287109375, 0.0127410888671875, 0.00223541259765625, -0.007305145263671875, 0.024688720703125, -0.02227783203125, 0.046478271484375, -0.03759765625, 0.039031982421875, 0.006351470947265625, 0.00760650634765625, 0.005130767822265625, -0.035308837890625, 0.0206146240234375, 0.01125335693359375, -0.0102386474609375, 0.0217437744140625, 0.018280029296875, -0.062286376953125, -0.00588226318359375, 0.0004734992980957031, 0.08154296875, -0.020599365234375, -0.01274871826171875, 0.020965576171875, -0.0008525848388671875, -0.0025119781494140625, -0.0012302398681640625, 0.0103302001953125, -0.030975341796875, 0.01544952392578125, -0.00145721435546875, 0.004039764404296875, 0.02227783203125, 0.00629425048828125, -0.03729248046875, 0.1363525390625, -0.0263519287109375, -0.01416015625, 0.015869140625, 0.07672119140625, -0.040863037109375, 0.03790283203125, -0.0221710205078125, 0.0638427734375, -0.01523590087890625, 0.0203704833984375, -0.053802490234375, 0.0031948089599609375, 0.00835418701171875, 0.0147247314453125, 0.031585693359375, -0.01038360595703125, 0.007640838623046875, 0.032440185546875, 0.08978271484375, 0.04132080078125, 0.00803375244140625, -0.007442474365234375, -0.03228759765625, 0.051727294921875, 0.006191253662109375, -0.07440185546875, 0.0250701904296875, -0.02783203125, -0.047454833984375, -0.01389312744140625, 0.019256591796875, 0.023193359375, 0.0384521484375, -0.007049560546875, -0.02783203125, 0.03167724609375, 0.0213165283203125, 0.002777099609375, -0.034393310546875, 0.020050048828125, 0.021636962890625, -0.09869384765625, 0.0074920654296875, -0.05877685546875, 0.051666259765625, 0.005702972412109375, -0.01079559326171875, -0.029937744140625, 0.0011930465698242188, 0.0033245086669921875, -0.0810546875, -0.031524658203125, -0.005077362060546875, -0.05584716796875, 0.004528045654296875, -0.00296783447265625, 0.0027313232421875, -0.0635986328125, -0.00555419921875, 0.048492431640625, 0.03680419921875, -0.0205230712890625, -0.0252227783203125, 0.01528167724609375, 0.01486968994140625, -0.00140380859375, 0.003631591796875, 0.007568359375, -0.0019550323486328125, 0.009033203125, -0.0286407470703125, 0.0186004638671875, 0.024688720703125, -0.0017576217651367188, -0.0129852294921875, 0.008148193359375, -0.010833740234375, 0.033905029296875, -0.0283203125, 0.043731689453125, 0.0149078369140625, 0.054718017578125, -0.021636962890625, 0.050506591796875, -0.06036376953125, -0.0213775634765625, -0.0081634521484375, 0.037994384765625, -0.035491943359375, 0.0032291412353515625, -0.009521484375, -0.032379150390625, -0.06329345703125, 0.0186920166015625, 0.0146942138671875, 0.00307464599609375, 0.01020050048828125, 0.022430419921875, 0.0139923095703125, -0.014434814453125, -0.0192413330078125, -0.02142333984375, -0.03662109375, -0.03179931640625, -0.00780487060546875, 0.0229949951171875, 0.00615692138671875, 0.030792236328125, 0.03497314453125, 0.006099700927734375, -0.037384033203125, 0.01032257080078125, -0.0063018798828125, -0.025726318359375, 0.030548095703125, -0.0163421630859375, 0.03533935546875, -0.01061248779296875, -0.08184814453125, -0.032440185546875, -0.01229095458984375, -0.0310821533203125, 0.044219970703125, 0.042083740234375, -0.034271240234375, 0.03143310546875, 0.009124755859375, 0.0002727508544921875, 0.0045318603515625, -0.00992584228515625, 0.00433349609375, -0.007404327392578125, 0.0229949951171875, 0.00007802248001098633, -0.04962158203125, -0.03863525390625, -0.01300048828125, 0.043182373046875, -0.002124786376953125, 0.07928466796875, -0.021728515625, -0.0003688335418701172, -0.01617431640625, 0.0023326873779296875, -0.0062408447265625, -0.0010271072387695312, -0.004505157470703125, 0.0192108154296875, 0.006160736083984375, -0.0189208984375, -0.068359375, -0.01351165771484375, 0.047576904296875, -0.0085906982421875, -0.008941650390625, 0.00403594970703125, 0.0343017578125, -0.0063323974609375, -0.004550933837890625, -0.0212249755859375, -0.039306640625, 0.006900787353515625, 0.04400634765625, -0.0161285400390625, -0.00437164306640625, -0.037353515625, 0.0092010498046875, -0.01971435546875, -0.045806884765625, -0.00039577484130859375, -0.037384033203125, -0.020172119140625, 0.0202789306640625, 0.037017822265625, -0.07086181640625, 0.00568389892578125, -0.0278167724609375, 0.0032176971435546875, -0.0016498565673828125, 0.060150146484375, -0.005970001220703125, -0.01395416259765625, 0.03668212890625, 0.0328369140625, 0.040679931640625, -0.0139007568359375, -0.0001017451286315918, 0.053863525390625, -0.01042938232421875, -0.021514892578125, 0.0101470947265625, -0.005157470703125, -0.0110626220703125, -0.039825439453125, -0.020843505859375, -0.0174407958984375, -0.072265625, -0.007373809814453125, 0.00777435302734375, 0.0111236572265625, -0.0127410888671875, -0.04364013671875, 0.03533935546875, -0.04083251953125, 0.02825927734375, -0.047393798828125, 0.018646240234375, 0.00057220458984375, 0.0243377685546875, -0.008056640625, 0.004573822021484375, -0.016937255859375, 0.022003173828125, 0.001499176025390625, 0.0019216537475585938, 0.013885498046875, -0.0110321044921875, 0.0350341796875, -0.0254058837890625, -0.017364501953125, 0.0159759521484375, 0.0202484130859375, -0.00571441650390625, 0.01007080078125, 0.003864288330078125, -0.0226593017578125, 0.00986480712890625, 0.0094451904296875, 0.009002685546875, -0.046875, -0.01042938232421875, -0.0183868408203125, -0.0142364501953125, -0.046539306640625, -0.052703857421875, -0.0004622936248779297, 0.0133056640625, -0.038116455078125, -0.01873779296875, -0.02264404296875, -0.00484466552734375, -0.00482940673828125, -0.01392364501953125, 0.005115509033203125, -0.020721435546875, 0.024658203125, 0.0122528076171875, -0.006710052490234375, 0.0312042236328125, -0.0010194778442382812, -0.07122802734375, 0.0009136199951171875, -0.01409912109375, -0.007488250732421875, 0.00559234619140625, 0.00439453125, 0.0009036064147949219, 0.009674072265625, -0.06634521484375, -0.0204315185546875, -0.020050048828125, 0.0374755859375, 0.0005340576171875, -0.02056884765625, -0.0308380126953125, -0.02020263671875, 0.06329345703125, 0.044921875, 0.016448974609375, -0.03271484375, -0.06854248046875, -0.05230712890625, -0.0310821533203125, -0.02606201171875, 0.0290985107421875, -0.09307861328125, 0.007511138916015625, 0.0038928985595703125, -0.047576904296875, -0.01355743408203125, -0.004985809326171875, -0.0704345703125, 0.0182952880859375, -0.0293426513671875, -0.014068603515625, 0.01479339599609375, -0.0809326171875, 0.0504150390625, -0.01171112060546875, 0.02716064453125, -0.0136260986328125, 0.048309326171875, 0.036376953125, 0.044219970703125, 0.008026123046875, 0.0176849365234375, -0.007259368896484375, 0.01529693603515625, 0.01517486572265625, 0.00971221923828125, -0.027923583984375, -0.0011625289916992188, 0.0103607177734375, -0.0006451606750488281, -0.01104736328125, 0.00655364990234375, 0.029510498046875, -0.01287841796875, -0.032928466796875, 0.035308837890625, -0.004421234130859375, -0.022064208984375, -0.012542724609375, 0.0201416015625, -0.0195770263671875, -0.005825042724609375, 0.0174560546875, -0.047943115234375, 0.0301361083984375, -0.0081634521484375, 0.0596923828125, -0.017791748046875, 0.01238250732421875, -0.0518798828125, 0.01280975341796875, 0.0203094482421875 ]
9d71f98700d633867c22ad819cc6fa5ba8ad4dcf
Wordpress Stackexchange Q: Displaying content of single post How I can display content for a single post? My code: if (is_single()){ get_header(); get_sidebar('left-article'); render_article(); get_footer(); } In render_article I call single_post_title() to get title of post. However I don't know how to get time and contents of the post as I can't find any function like single_post_content() or single_post_time(). A: you can use below function to get content of Wordpress post <?php echo get_the_content(); ?> and you can use below function to get title <?php echo get_the_title(); ?> to get date you can use this function <?php echo echo get_the_date(); ?>
Q: Displaying content of single post How I can display content for a single post? My code: if (is_single()){ get_header(); get_sidebar('left-article'); render_article(); get_footer(); } In render_article I call single_post_title() to get title of post. However I don't know how to get time and contents of the post as I can't find any function like single_post_content() or single_post_time(). A: you can use below function to get content of Wordpress post <?php echo get_the_content(); ?> and you can use below function to get title <?php echo get_the_title(); ?> to get date you can use this function <?php echo echo get_the_date(); ?> A: * *Create a file named single.php. This will automatically get all you single posts. For more information about WordPress' template hierarchy, read the Codex *Inside single.php, run the default loop and get header.php, sidebar.php and footer.php <?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php echo get_the_date(); ?> <?php endwhile; ?> <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?> A: function my_category_templates($single_template) { global $post; if ( in_category( 'Offers' )) { $single_template = dirname( __FILE__ ) . '/single-offer.php'; } // Copy the above for your other categories return $single_template; } add_filter( "single_template", "my_category_templates" ); A: Use get_post() to get specofic post get_post() Example : <?php $postData = get_post( $id, $output, $filter ); echo "<pre>"; print_r($postData); ?> https://developer.wordpress.org/reference/functions/get_post/ https://www.tipsandtricks-hq.com/query-or-show-a-specific-post-in-wordpress-php-code-example-44 A: This is an ancient question, but none of the answers here tell the proper way of doing this, so I want to provide a better alternative. No need to use a bunch of random global functions or rely upon some nebulous global state created by this awful "Loop" thing. If you are displaying the contents of a single post, then you need to create a file called "single.php" inside your theme's directory. (https://developer.wordpress.org/themes/basics/template-hierarchy/) This will be the template for your posts. single.php <?php namespace mytheme; // You should designate a namespace for your theme so that it does not conflict with WordPress, its parent theme, or any plugins you may have installed. defined('ABSPATH') || exit; // Exit if the file is being executed directly instead of by WordPress. $post = get_queried_object(); // This object contains all the data about the post that you need. You do not need to use a bunch of random global functions or the Loop to get the post data. If you want to see the contents of this object, then use var_dump when debugging. if (!$post) { $wp_query->set_404(); status_header(404); http_response_code(404); exit; } get_header(); ?> <main> <h1><?php echo strip_tags($post->post_title); ?></h1> <?php if ($post->post_content) { ?> <div> <?php echo do_shortcode(apply_filters('the_content', $post->post_content)); ?> </div> <?php } ?> </main> <?php get_footer(); ?>
wordpress
{ "language": "en", "length": 443, "provenance": "stackexchange_00019.jsonl.gz:448567", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160509" }
[ 0.035186767578125, -0.026458740234375, -0.003841400146484375, -0.0100860595703125, -0.002231597900390625, -0.0270538330078125, 0.0455322265625, -0.0177154541015625, 0.01079559326171875, 0.01029205322265625, -0.034027099609375, 0.006622314453125, -0.0340576171875, -0.020477294921875, -0.00531768798828125, -0.047760009765625, 0.048583984375, -0.0223388671875, 0.0452880859375, 0.010009765625, 0.01070404052734375, 0.039154052734375, 0.0229949951171875, 0.039825439453125, 0.039520263671875, -0.02191162109375, 0.05767822265625, -0.024444580078125, 0.04132080078125, -0.00090789794921875, 0.035369873046875, -0.02978515625, 0.0196685791015625, 0.0200042724609375, -0.02960205078125, 0.038604736328125, -0.0132904052734375, 0.021484375, 0.00055694580078125, 0.033782958984375, 0.0169525146484375, -0.00018489360809326172, 0.00372314453125, 0.036895751953125, 0.0015974044799804688, -0.041290283203125, 0.0230255126953125, -0.050323486328125, 0.0130157470703125, 0.00225830078125, 0.0294952392578125, -0.033294677734375, 0.032958984375, -0.0266876220703125, -0.025299072265625, -0.0191650390625, -0.0032596588134765625, -0.0179290771484375, 0.0521240234375, -0.051849365234375, -0.058624267578125, -0.04620361328125, 0.057647705078125, -0.0003712177276611328, -0.0308380126953125, 0.0101165771484375, 0.025634765625, -0.005889892578125, -0.06842041015625, -0.04876708984375, 0.045745849609375, -0.0233001708984375, 0.02020263671875, -0.0263824462890625, -0.00110626220703125, -0.006946563720703125, -0.00977325439453125, -0.00768280029296875, 0.01203155517578125, -0.00897979736328125, 0.0130157470703125, 0.0244903564453125, -0.067138671875, -0.0390625, 0.0430908203125, -0.01129150390625, -0.004932403564453125, -0.01456451416015625, -0.04302978515625, -0.0261993408203125, -0.034149169921875, -0.00183868408203125, -0.026092529296875, -0.039398193359375, -0.032318115234375, -0.031890869140625, 0.00283050537109375, 0.041717529296875, -0.048431396484375, -0.01354217529296875, -0.003955841064453125, -0.0257110595703125, 0.0248260498046875, -0.031890869140625, 0.004604339599609375, 0.005588531494140625, 0.00004184246063232422, -0.031280517578125, 0.026153564453125, 0.02838134765625, -0.0189208984375, 0.03790283203125, -0.0191497802734375, -0.022552490234375, -0.03057861328125, 0.045684814453125, -0.0243988037109375, -0.0003604888916015625, 0.005413055419921875, 0.031158447265625, 0.01473236083984375, 0.0179901123046875, 0.0276947021484375, -0.01020050048828125, 0.0081329345703125, 0.0216217041015625, -0.028106689453125, -0.04296875, 0.042572021484375, -0.0017728805541992188, -0.016998291015625, -0.00890350341796875, 0.0199127197265625, 0.04071044921875, 0.01345062255859375, -0.003444671630859375, 0.029327392578125, 0.01506805419921875, -0.020050048828125, 0.01629638671875, -0.036346435546875, -0.0032978057861328125, 0.03839111328125, -0.05322265625, -0.0157318115234375, 0.002849578857421875, 0.01861572265625, 0.01934814453125, -0.00698089599609375, -0.0321044921875, -0.030120849609375, 0.05560302734375, 0.007221221923828125, 0.006866455078125, -0.0029277801513671875, -0.0201263427734375, -0.01197052001953125, -0.006763458251953125, 0.01617431640625, -0.0136260986328125, 0.056304931640625, -0.01384735107421875, -0.023162841796875, 0.043731689453125, -0.01183319091796875, 0.01099395751953125, -0.030242919921875, -0.01384735107421875, 0.00745391845703125, -0.039581298828125, -0.0194854736328125, -0.0090179443359375, -0.0169677734375, -0.024322509765625, -0.0113677978515625, 0.0203094482421875, -0.052886962890625, 0.01580810546875, 0.0094146728515625, 0.038360595703125, -0.01220703125, -0.04156494140625, 0.00888824462890625, 0.013519287109375, -0.0390625, 0.021575927734375, -0.0020427703857421875, 0.00742340087890625, 0.03314208984375, 0.00006282329559326172, 0.0181427001953125, 0.0212554931640625, -0.031768798828125, 0.0164337158203125, 0.00927734375, -0.007358551025390625, -0.03558349609375, -0.01215362548828125, -0.01537322998046875, -0.012298583984375, 0.0245208740234375, -0.006839752197265625, 0.012542724609375, 0.0192413330078125, -0.0006585121154785156, -0.00408172607421875, -0.004360198974609375, -0.0011262893676757812, -0.034149169921875, 0.0235443115234375, 0.0201873779296875, -0.006160736083984375, -0.00588226318359375, -0.056640625, -0.01453399658203125, 0.00676727294921875, -0.007110595703125, -0.00440216064453125, -0.0182342529296875, 0.014984130859375, -0.009490966796875, -0.0284881591796875, -0.0325927734375, 0.042236328125, 0.08819580078125, -0.0012378692626953125, 0.016448974609375, -0.01509857177734375, 0.09381103515625, 0.0240631103515625, -0.04339599609375, -0.0275115966796875, -0.0043487548828125, 0.0076751708984375, -0.04034423828125, -0.005039215087890625, -0.003780364990234375, 0.0083770751953125, -0.0009350776672363281, 0.042755126953125, 0.036346435546875, 0.0374755859375, 0.0084991455078125, 0.01058197021484375, 0.06903076171875, -0.03289794921875, 0.00942230224609375, -0.0118255615234375, 0.024658203125, 0.036376953125, -0.00751495361328125, 0.001953125, 0.028564453125, -0.03033447265625, 0.0118865966796875, 0.0438232421875, 0.005817413330078125, 0.01033782958984375, -0.031402587890625, 0.01953125, 0.004917144775390625, 0.0169219970703125, 0.002285003662109375, -0.005664825439453125, 0.0149993896484375, 0.035614013671875, 0.044219970703125, 0.045654296875, -0.0186309814453125, 0.009613037109375, 0.0023860931396484375, 0.0279083251953125, 0.0156707763671875, 0.025665283203125, -0.03656005859375, -0.005458831787109375, -0.0020542144775390625, -0.0254058837890625, 0.0243377685546875, 0.005550384521484375, 0.00539398193359375, 0.0289459228515625, -0.00846099853515625, -0.00518035888671875, 0.0129241943359375, -0.02789306640625, -0.01407623291015625, 0.017333984375, 0.04150390625, 0.0374755859375, 0.0246734619140625, 0.057281494140625, 0.01500701904296875, 0.049652099609375, -0.01230621337890625, 0.0203094482421875, 0.039459228515625, -0.036712646484375, 0.032745361328125, -0.0245513916015625, 0.0609130859375, 0.04364013671875, -0.00021541118621826172, -0.0007395744323730469, 0.014617919921875, -0.006244659423828125, 0.0267486572265625, -0.016326904296875, -0.020416259765625, 0.02386474609375, -0.07159423828125, 0.01422119140625, 0.01044464111328125, 0.068115234375, -0.0360107421875, -0.05328369140625, -0.01202392578125, 0.0201873779296875, -0.09930419921875, -0.07501220703125, -0.009307861328125, -0.10693359375, -0.00605010986328125, -0.031280517578125, -0.057098388671875, 0.0033855438232421875, 0.0102081298828125, 0.00559234619140625, 0.023040771484375, 0.00677490234375, -0.07098388671875, 0.0122222900390625, -0.0726318359375, 0.0305328369140625, -0.0223236083984375, 0.0213623046875, 0.004741668701171875, 0.052947998046875, 0.01386260986328125, -0.08477783203125, -0.01666259765625, 0.0811767578125, -0.058624267578125, -0.01345062255859375, -0.0129852294921875, 0.01459503173828125, -0.006500244140625, 0.0269775390625, -0.054595947265625, -0.01262664794921875, 0.00539398193359375, -0.03936767578125, -0.0146026611328125, -0.01025390625, 0.035186767578125, 0.0171966552734375, -0.000022292137145996094, 0.0369873046875, 0.050811767578125, -0.0216522216796875, -0.0313720703125, -0.024688720703125, -0.07757568359375, -0.035888671875, 0.0533447265625, 0.021240234375, -0.05792236328125, 0.01279449462890625, -0.038604736328125, -0.005786895751953125, 0.01776123046875, -0.00640106201171875, 0.028472900390625, -0.01357269287109375, -0.03662109375, 0.0133514404296875, -0.0312042236328125, -0.021820068359375, 0.027587890625, -0.01947021484375, 0.02215576171875, -0.01739501953125, 0.0256195068359375, -0.045989990234375, -0.0272064208984375, 0.034210205078125, 0.00746917724609375, 0.0438232421875, -0.020843505859375, -0.052734375, -0.0023136138916015625, 0.0992431640625, -0.048492431640625, -0.0081329345703125, 0.0043792724609375, 0.011871337890625, -0.052276611328125, -0.047332763671875, -0.0810546875, 0.0017995834350585938, -0.0645751953125, 0.017730712890625, -0.00909423828125, -0.01044464111328125, -0.036041259765625, 0.0118255615234375, -0.050537109375, -0.0174407958984375, 0.0278778076171875, -0.0050201416015625, 0.00948333740234375, 0.0216522216796875, -0.0264434814453125, 0.021026611328125, -0.0267486572265625, -0.0027484893798828125, -0.03546142578125, -0.0269012451171875, 0.0302886962890625, 0.0355224609375, 0.01898193359375, -0.059295654296875, 0.000392913818359375, 0.03765869140625, 0.0001074671745300293, 0.032989501953125, 0.0090789794921875, 0.0013208389282226562, 0.06732177734375, -0.003047943115234375, 0.01309967041015625, -0.0095977783203125, -0.020233154296875, -0.0418701171875, 0.013763427734375, 0.0274810791015625, -0.03936767578125, 0.021087646484375, -0.0533447265625, 0.01739501953125, 0.0171661376953125, 0.01250457763671875, 0.00963592529296875, 0.03131103515625, -0.0264739990234375, 0.03680419921875, 0.0023899078369140625, -0.00798797607421875, 0.0274810791015625, 0.04248046875, -0.037689208984375, 0.0000852346420288086, 0.041412353515625, 0.0340576171875, -0.037322998046875, -0.05096435546875, 0.0345458984375, 0.048614501953125, -0.02044677734375, 0.05859375, 0.031463623046875, -0.036956787109375, 0.0980224609375, 0.005893707275390625, 0.00038933753967285156, 0.0194854736328125, 0.0484619140625, 0.009246826171875, -0.00536346435546875, 0.0205078125, 0.00678253173828125, -0.03564453125, 0.0151214599609375, -0.0172119140625, 0.017333984375, 0.035797119140625, 0.024749755859375, -0.04534912109375, 0.0169525146484375, -0.00983428955078125, -0.02972412109375, -0.007068634033203125, 0.034027099609375, 0.0097503662109375, 0.0450439453125, -0.0067138671875, 0.025146484375, 0.040313720703125, -0.0171356201171875, -0.01220703125, -0.0197296142578125, 0.015869140625, -0.006404876708984375, 0.0116424560546875, -0.013275146484375, -0.004207611083984375, -0.017913818359375, 0.04583740234375, 0.0232391357421875, -0.03985595703125, 0.032440185546875, -0.01084136962890625, 0.0570068359375, 0.014739990234375, 0.0294952392578125, 0.003101348876953125, 0.029083251953125, 0.009857177734375, -0.021240234375, 0.027557373046875, 0.04107666015625, -0.006160736083984375, 0.021759033203125, 0.00553131103515625, -0.0031185150146484375, 0.0241546630859375, 0.031829833984375, -0.0305633544921875, 0.0285797119140625, -0.0161895751953125, 0.038848876953125, 0.01129150390625, 0.057342529296875, 0.022918701171875, -0.04571533203125, -0.0291900634765625, 0.034149169921875, -0.030609130859375, -0.0267333984375, -0.021392822265625, -0.0051422119140625, 0.022552490234375, 0.004970550537109375, 0.005275726318359375, 0.023040771484375, 0.006664276123046875, -0.0276031494140625, 0.04119873046875, 0.040374755859375, -0.034271240234375, -0.0272674560546875, 0.00853729248046875, 0.019287109375, 0.026702880859375, -0.004871368408203125, 0.035430908203125, -0.02783203125, 0.026092529296875, -0.003757476806640625, 0.01073455810546875, -0.0105743408203125, -0.0185699462890625, 0.0261688232421875, -0.0364990234375, -0.01560211181640625, -0.00540924072265625, 0.040252685546875, -0.03472900390625, -0.0180511474609375, 0.0447998046875, 0.0007929801940917969, 0.04290771484375, -0.048797607421875, -0.01343536376953125, -0.049041748046875, -0.002666473388671875, 0.05548095703125, 0.0302734375, -0.057098388671875, 0.026153564453125, -0.0631103515625, 0.00431060791015625, -0.01139068603515625, -0.053558349609375, -0.044219970703125, -0.03961181640625, 0.02020263671875, 0.0216064453125, 0.006298065185546875, -0.016357421875, -0.006153106689453125, 0.0309600830078125, 0.00762176513671875, 0.0673828125, 0.01104736328125, 0.09576416015625, 0.0139617919921875, 0.0826416015625, 0.04766845703125, 0.06634521484375, -0.037750244140625, -0.039886474609375, 0.0173492431640625, -0.04010009765625, -0.02154541015625, -0.0034999847412109375, 0.01050567626953125, -0.0131988525390625, -0.0241851806640625, 0.00484466552734375, -0.033935546875, -0.004062652587890625, 0.0000029802322387695312, -0.0167236328125, 0.0184326171875, 0.0310821533203125, -0.02056884765625, -0.0125732421875, -0.01096343994140625, 0.020355224609375, -0.007198333740234375, -0.01483917236328125, 0.018524169921875, -0.01446533203125, 0.0068817138671875, 0.02813720703125, -0.00353240966796875, 0.026641845703125, 0.0865478515625, 0.007289886474609375, 0.056365966796875, 0.031280517578125, 0.0216522216796875, 0.0338134765625, 0.011993408203125, -0.017974853515625, -0.0225067138671875, 0.01190185546875, -0.009033203125, 0.0081329345703125, -0.0021724700927734375, -0.013671875, 0.01538848876953125, 0.03790283203125, 0.06732177734375, -0.05322265625, 0.019866943359375, 0.039306640625, -0.01154327392578125, 0.009429931640625, -0.00086212158203125, -0.00888824462890625, -0.01171875, 0.0347900390625, 0.03411865234375, -0.005199432373046875, 0.0269927978515625, 0.0105133056640625, 0.01849365234375, 0.01235198974609375, 0.05316162109375, -0.0078277587890625, -0.0794677734375, -0.0092010498046875, 0.059661865234375, -0.004032135009765625, -0.0631103515625, -0.00478363037109375, 0.00974273681640625, -0.0101470947265625, -0.08038330078125, 0.01404571533203125, 0.01593017578125, 0.022003173828125, 0.0023746490478515625, 0.0143280029296875, -0.038818359375, 0.07818603515625, -0.05810546875, 0.033294677734375, 0.043060302734375, -0.042083740234375, -0.03216552734375, -0.01227569580078125, 0.0236968994140625, 0.041168212890625, -0.043853759765625, 0.0251922607421875, -0.0177764892578125, -0.0237274169921875, -0.0026149749755859375, -0.0443115234375, 0.054779052734375, -0.017364501953125, -0.007411956787109375, 0.0159912109375, 0.00719451904296875, -0.01386260986328125, -0.0293121337890625, 0.06683349609375, -0.044219970703125, 0.0185394287109375, 0.009979248046875, 0.03741455078125, -0.023681640625, -0.0179901123046875, -0.09527587890625, 0.08062744140625, 0.0307159423828125, 0.03973388671875, -0.0119781494140625, 0.0192718505859375, -0.040557861328125, -0.016204833984375, -0.03216552734375, 0.06756591796875, 0.00348663330078125, 0.05126953125, -0.058837890625, -0.0175018310546875, 0.0251617431640625, 0.0543212890625, 0.032196044921875, 0.01053619384765625, -0.0109100341796875, -0.041900634765625, -0.0019130706787109375, 0.04949951171875, 0.0014553070068359375, 0.01184844970703125, -0.01534271240234375, 0.01177978515625, 0.0198516845703125, -0.0263824462890625, 0.024078369140625, 0.00640106201171875, -0.037078857421875, 0.035552978515625, 0.0244293212890625, 0.007701873779296875, 0.042388916015625, -0.0384521484375, -0.048797607421875, 0.0309906005859375, 0.032012939453125, 0.00270843505859375, -0.016448974609375, 0.06939697265625, 0.0587158203125, -0.051513671875, 0.02532958984375, -0.058074951171875, 0.0677490234375, 0.01511383056640625, 0.0166778564453125, -0.002197265625, 0.01474761962890625, 0.028900146484375, -0.0166473388671875, 0.00403594970703125, 0.016815185546875, -0.00702667236328125, 0.01473236083984375, 0.0056915283203125, 0.01297760009765625, -0.0621337890625, -0.0020751953125, 0.0440673828125, 0.03509521484375, -0.013427734375, 0.017181396484375, 0.0225830078125, 0.00609588623046875, -0.02801513671875, -0.040496826171875, -0.030914306640625, 0.01522064208984375, 0.0360107421875, -0.03253173828125, -0.02716064453125, 0.05023193359375, 0.03656005859375, 0.00424957275390625, -0.0013799667358398438, -0.038543701171875, -0.0504150390625, -0.0159454345703125, 0.01922607421875, 0.031036376953125, 0.024810791015625, -0.0282745361328125, 0.061065673828125, -0.006275177001953125, 0.0052337646484375, 0.029205322265625, -0.01161956787109375, 0.0037384033203125, -0.026214599609375, 0.0092926025390625, -0.03173828125, 0.0115814208984375, 0.01226043701171875, 0.036773681640625, -0.005870819091796875, 0.037567138671875, 0.052276611328125, -0.0228729248046875, -0.0253753662109375, 0.0126800537109375, -0.001308441162109375, -0.01055908203125, -0.0237884521484375, -0.04315185546875, 0.003894805908203125, -0.027313232421875, 0.00977325439453125, -0.007659912109375, 0.021697998046875, -0.0186004638671875, 0.032562255859375, -0.004123687744140625, -0.002971649169921875, 0.0157928466796875, -0.055877685546875, 0.032562255859375, -0.0254364013671875, -0.09613037109375, -0.005664825439453125, -0.01922607421875, -0.05767822265625, 0.026397705078125, 0.045379638671875, -0.009185791015625, -0.0011529922485351562, -0.017822265625, 0.0362548828125, -0.0104217529296875, -0.0384521484375, 0.019134521484375, 0.00955963134765625, 0.012481689453125, 0.024261474609375, -0.0697021484375, -0.059173583984375, -0.0258026123046875, 0.050140380859375, 0.0240631103515625, 0.026214599609375, 0.0224151611328125, 0.03875732421875, -0.032257080078125, 0.028045654296875, -0.060333251953125, -0.0283355712890625, 0.0187225341796875, -0.00829315185546875, -0.00008314847946166992, -0.005809783935546875, -0.046661376953125, 0.01165008544921875, 0.054229736328125, -0.01288604736328125, 0.00798797607421875, 0.009124755859375, 0.012939453125, -0.0650634765625, 0.0150604248046875, -0.009490966796875, 0.034576416015625, 0.052581787109375, -0.00914764404296875, 0.0258026123046875, 0.0115203857421875, 0.04248046875, 0.00951385498046875, 0.03253173828125, -0.0626220703125, 0.0184478759765625, -0.037078857421875, 0.0191497802734375, 0.039794921875, 0.035736083984375, -0.006031036376953125, -0.004802703857421875, -0.020782470703125, 0.00005054473876953125, 0.027069091796875, -0.0088348388671875, -0.006320953369140625, 0.031707763671875, 0.057281494140625, -0.006259918212890625, 0.02886962890625, -0.029022216796875, -0.01129150390625, 0.038970947265625, 0.022430419921875, -0.04974365234375, 0.033416748046875, -0.0249786376953125, -0.046295166015625, -0.0013904571533203125, -0.0032958984375, -0.0282440185546875, -0.0258636474609375, -0.02618408203125, -0.0287017822265625, 0.01837158203125, -0.0293731689453125, 0.0506591796875, -0.032867431640625, -0.035919189453125, -0.0235443115234375, -0.006137847900390625, -0.0003161430358886719, 0.004364013671875, 0.03814697265625, -0.0211944580078125, 0.0018720626831054688, -0.0283966064453125, -0.01351165771484375, -0.025665283203125, 0.002887725830078125, 0.0260009765625, -0.0109710693359375, -0.0282135009765625, 0.00885009765625, -0.007091522216796875, 0.050689697265625, -0.00811767578125, 0.0017642974853515625, 0.0201263427734375, 0.010894775390625, -0.032928466796875, -0.03826904296875, 0.0169830322265625, 0.000019788742065429688, -0.02960205078125, 0.01422882080078125, -0.0008082389831542969, 0.02374267578125, -0.0044403076171875, -0.009124755859375, 0.04620361328125, 0.005985260009765625, -0.0146026611328125, -0.016326904296875, 0.011810302734375, -0.0133819580078125, -0.0084686279296875, -0.0020580291748046875, -0.0064697265625, 0.006526947021484375, 0.024261474609375, 0.0015163421630859375, 0.00040435791015625, 0.04315185546875, -0.020721435546875, -0.06268310546875, -0.0260009765625, -0.019805908203125, -0.017608642578125, 0.01435089111328125, -0.0177459716796875, 0.01377105712890625, 0.0136871337890625, -0.0660400390625, -0.03607177734375, -0.0020999908447265625, 0.050079345703125, -0.0203704833984375, -0.0257720947265625, -0.025390625, -0.005733489990234375, 0.062164306640625, 0.056732177734375, 0.0181427001953125, -0.04693603515625, 0.018157958984375, -0.011077880859375, -0.08270263671875, 0.038482666015625, 0.03704833984375, -0.031097412109375, 0.022705078125, 0.0311279296875, -0.025390625, 0.0224151611328125, 0.00909423828125, -0.042205810546875, 0.00888824462890625, -0.02398681640625, -0.008697509765625, -0.0762939453125, 0.0081329345703125, 0.036712646484375, -0.0213470458984375, -0.00833892822265625, -0.005153656005859375, -0.00788116455078125, 0.0088348388671875, 0.00678253173828125, 0.0244140625, 0.04376220703125, -0.04559326171875, -0.0295867919921875, 0.02838134765625, 0.022491455078125, 0.0051727294921875, -0.0142822265625, -0.0017261505126953125, 0.0177001953125, -0.0010061264038085938, 0.0157623291015625, 0.0222625732421875, -0.005977630615234375, -0.0076751708984375, 0.039642333984375, -0.006198883056640625, 0.08428955078125, 0.00310516357421875, 0.0318603515625, -0.0115814208984375, -0.0022068023681640625, 0.007732391357421875, -0.0269622802734375, 0.007518768310546875, 0.004123687744140625, 0.024810791015625, -0.0208587646484375, 0.0273284912109375, -0.0252532958984375, 0.005298614501953125, 0.01094818115234375 ]
41e80a4e106eaf58e2118d40870504c81c52fd8d
Wordpress Stackexchange Q: List all posts commented by current user I need a page to display all posts (in Foods custom post type) that have comments by the logged in user. The list just needs to show the title with link to the title. Is this possible? What I've tried so far: <?php if (is_user_logged_in() ) : ?> <?php if ( is_user_logged_in()) { global $current_user; get_currentuserinfo(); $args=array( 'post_type' => 'foods', 'posts_per_page' => 5, ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Your Comments'; while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). } ?> <?php endif; ?> But of course I haven't used $current_user->ID yet. I'm not sure yet of how to use it here. A: If we want to avoid any filters and manual SQL queries, we could try (untested): $args = array( 'post_type' => 'foods', 'posts_per_page' => 5, 'post__in' => array_unique( wp_list_pluck( get_comments( array( 'user_id' => get_current_user_id() ) ), 'comment_post_ID' ) ), ); $my_query = new WP_Query( $args );
Q: List all posts commented by current user I need a page to display all posts (in Foods custom post type) that have comments by the logged in user. The list just needs to show the title with link to the title. Is this possible? What I've tried so far: <?php if (is_user_logged_in() ) : ?> <?php if ( is_user_logged_in()) { global $current_user; get_currentuserinfo(); $args=array( 'post_type' => 'foods', 'posts_per_page' => 5, ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Your Comments'; while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). } ?> <?php endif; ?> But of course I haven't used $current_user->ID yet. I'm not sure yet of how to use it here. A: If we want to avoid any filters and manual SQL queries, we could try (untested): $args = array( 'post_type' => 'foods', 'posts_per_page' => 5, 'post__in' => array_unique( wp_list_pluck( get_comments( array( 'user_id' => get_current_user_id() ) ), 'comment_post_ID' ) ), ); $my_query = new WP_Query( $args ); A: Just wanted to share additional behaviour related to @birgire answer. With the current answer, in the event a user hasn't given any comments, post__in get a value of 0 which is blindly returning all posts. To get around that, we should check if the post__in array is empty or not... <?php $post__in = wp_list_pluck( get_comments( array( 'user_id' => get_current_user_id() ) ),'comment_post_ID' ); if ( ! empty( $post__in ) ) { $args = array( 'post_type' => 'question', 'posts_per_page' => -1, 'post__in' => array_unique( wp_list_pluck( get_comments( array( 'user_id' => get_current_user_id() ) ), 'comment_post_ID' ) ), ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { echo '<ul>'; while ( $query->have_posts() ) { $query->the_post(); the_title( '<li>', '</li>' ); }; echo '</ul>'; }; wp_reset_postdata(); }; * *@see Why is WordPress showing query results from an empty post__in array? for more information
wordpress
{ "language": "en", "length": 325, "provenance": "stackexchange_00019.jsonl.gz:448594", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160598" }
[ 0.0931396484375, 0.0027637481689453125, 0.021881103515625, -0.046295166015625, 0.03179931640625, -0.03961181640625, 0.054351806640625, -0.015899658203125, -0.001495361328125, 0.0265655517578125, -0.0369873046875, -0.0162811279296875, -0.01470184326171875, -0.029144287109375, -0.01169586181640625, -0.039337158203125, 0.03759765625, -0.00981903076171875, 0.03839111328125, -0.007373809814453125, 0.0105133056640625, 0.015167236328125, 0.035736083984375, 0.045196533203125, 0.025421142578125, -0.046661376953125, 0.0517578125, -0.0220489501953125, 0.0265655517578125, -0.00959014892578125, 0.0187530517578125, -0.0171356201171875, 0.0021953582763671875, 0.0210723876953125, 0.002880096435546875, -0.0037689208984375, 0.00670623779296875, -0.005496978759765625, 0.031951904296875, 0.01462554931640625, 0.01143646240234375, 0.005161285400390625, 0.01276397705078125, 0.032745361328125, -0.03509521484375, -0.0285797119140625, 0.01459503173828125, -0.003955841064453125, 0.03863525390625, 0.029632568359375, 0.01214599609375, 0.041595458984375, 0.015655517578125, 0.00748443603515625, -0.0137786865234375, 0.0159454345703125, 0.01070404052734375, -0.06695556640625, 0.0418701171875, -0.0484619140625, -0.0194854736328125, -0.060272216796875, 0.06787109375, 0.0302734375, -0.031524658203125, 0.013275146484375, 0.0592041015625, 0.00469207763671875, -0.0264892578125, -0.0611572265625, -0.006542205810546875, 0.005939483642578125, 0.002262115478515625, -0.0112762451171875, -0.0083465576171875, -0.0655517578125, -0.007549285888671875, -0.072265625, -0.00067138671875, 0.038787841796875, -0.0136260986328125, -0.004535675048828125, -0.0625, 0.007232666015625, -0.0157012939453125, 0.0212249755859375, -0.020843505859375, -0.0135498046875, 0.01088714599609375, -0.01506805419921875, -0.01102447509765625, -0.0156097412109375, 0.0004165172576904297, 0.004543304443359375, -0.004169464111328125, -0.05218505859375, 0.040496826171875, 0.08624267578125, -0.025665283203125, 0.002544403076171875, -0.017913818359375, -0.02587890625, 0.016815185546875, -0.04364013671875, 0.006954193115234375, 0.05169677734375, -0.022674560546875, 0.01335906982421875, 0.0341796875, 0.03582763671875, 0.041046142578125, -0.027099609375, -0.022979736328125, -0.027130126953125, -0.0212860107421875, 0.06072998046875, -0.039520263671875, -0.0015554428100585938, -0.01085662841796875, 0.0426025390625, -0.0159912109375, 0.01580810546875, -0.0328369140625, -0.00681304931640625, 0.034912109375, 0.021087646484375, 0.0257720947265625, -0.01483917236328125, -0.0380859375, 0.053619384765625, -0.0238189697265625, 0.0028858184814453125, 0.07855224609375, 0.0294952392578125, 0.0003285408020019531, -0.030426025390625, -0.007328033447265625, -0.053375244140625, -0.0257415771484375, 0.018096923828125, 0.00827789306640625, -0.0335693359375, 0.02093505859375, -0.01084136962890625, -0.0205230712890625, 0.021514892578125, 0.018310546875, 0.0038280487060546875, 0.0009088516235351562, -0.04254150390625, -0.0291748046875, 0.0159454345703125, 0.02874755859375, 0.0032291412353515625, -0.0006799697875976562, -0.0051116943359375, 0.02972412109375, -0.0254974365234375, -0.01390838623046875, -0.024322509765625, 0.049346923828125, 0.004192352294921875, -0.0208740234375, -0.01224517822265625, -0.057830810546875, -0.00588226318359375, -0.0172576904296875, -0.006061553955078125, 0.0308837890625, 0.039154052734375, -0.03155517578125, -0.01910400390625, 0.0709228515625, 0.0161895751953125, -0.023773193359375, 0.0134735107421875, -0.01525115966796875, 0.022003173828125, 0.0263824462890625, 0.0177154541015625, -0.00855255126953125, -0.036651611328125, 0.0173492431640625, -0.006313323974609375, -0.01776123046875, 0.005207061767578125, 0.0177001953125, 0.0394287109375, 0.00691986083984375, 0.0285797119140625, 0.012725830078125, 0.026031494140625, -0.03826904296875, 0.050811767578125, -0.01277923583984375, -0.0443115234375, -0.01739501953125, -0.013275146484375, -0.0235748291015625, 0.02655029296875, 0.02294921875, -0.0023746490478515625, -0.01319122314453125, -0.014801025390625, -0.12030029296875, 0.01294708251953125, -0.036590576171875, 0.0411376953125, 0.029327392578125, 0.00432586669921875, 0.0115814208984375, 0.0011434555053710938, -0.03826904296875, 0.01849365234375, -0.04656982421875, 0.00400543212890625, -0.0214385986328125, 0.039459228515625, 0.00566864013671875, 0.038787841796875, -0.01250457763671875, -0.0297698974609375, -0.0025539398193359375, -0.018218994140625, 0.049163818359375, 0.0023250579833984375, -0.009735107421875, -0.02099609375, 0.029144287109375, -0.004199981689453125, -0.0148162841796875, 0.0357666015625, -0.01137542724609375, 0.0082550048828125, -0.0428466796875, -0.01068115234375, -0.00606536865234375, -0.0189666748046875, 0.0126800537109375, 0.050750732421875, 0.01425933837890625, 0.0270538330078125, 0.007755279541015625, 0.0192413330078125, 0.0457763671875, 0.00583648681640625, 0.042205810546875, -0.01947021484375, 0.0157318115234375, 0.04779052734375, 0.0125732421875, 0.015777587890625, 0.024749755859375, 0.033599853515625, 0.0311431884765625, 0.020660400390625, -0.0046844482421875, 0.037017822265625, -0.012969970703125, 0.0068359375, -0.0198822021484375, 0.008087158203125, 0.0189361572265625, -0.0150299072265625, 0.0055084228515625, 0.0272216796875, 0.03485107421875, 0.01326751708984375, -0.040374755859375, 0.00635528564453125, 0.01078033447265625, 0.0316162109375, 0.004833221435546875, 0.00615692138671875, 0.00279998779296875, -0.00389862060546875, -0.041473388671875, 0.007595062255859375, 0.036407470703125, -0.01654052734375, -0.00273895263671875, 0.005214691162109375, -0.032257080078125, -0.0102081298828125, 0.0038166046142578125, -0.055023193359375, -0.0088043212890625, 0.034698486328125, 0.0085296630859375, -0.0007462501525878906, 0.0251617431640625, 0.02764892578125, -0.01250457763671875, 0.03607177734375, 0.0106658935546875, -0.012054443359375, 0.022979736328125, -0.044036865234375, 0.02685546875, -0.0260467529296875, 0.03997802734375, 0.06439208984375, 0.02740478515625, -0.017303466796875, -0.01479339599609375, -0.017120361328125, -0.0176544189453125, -0.0006275177001953125, -0.02490234375, -0.031280517578125, -0.005657196044921875, 0.04925537109375, 0.01482391357421875, 0.0989990234375, -0.01898193359375, -0.053680419921875, 0.0177154541015625, 0.031341552734375, -0.018707275390625, -0.06915283203125, -0.007541656494140625, -0.043609619140625, -0.00312042236328125, -0.03375244140625, -0.0008130073547363281, 0.004146575927734375, -0.0282745361328125, 0.012786865234375, -0.01715087890625, -0.0325927734375, -0.04327392578125, -0.032135009765625, -0.056396484375, 0.0675048828125, 0.009613037109375, 0.018798828125, 0.017303466796875, 0.024322509765625, 0.004634857177734375, -0.03399658203125, 0.016204833984375, 0.01294708251953125, -0.0296173095703125, -0.01096343994140625, -0.005924224853515625, -0.004436492919921875, 0.02337646484375, -0.0064849853515625, -0.03558349609375, 0.03955078125, -0.01629638671875, -0.010467529296875, 0.0123138427734375, 0.033660888671875, 0.0214996337890625, -0.023468017578125, -0.0181427001953125, 0.07415771484375, 0.01296234130859375, 0.0006580352783203125, -0.0233001708984375, -0.03515625, -0.052001953125, -0.01267242431640625, 0.029052734375, 0.0240325927734375, -0.02642822265625, -0.0103912353515625, 0.0439453125, 0.0205078125, 0.041839599609375, 0.00231170654296875, -0.00543212890625, 0.006427764892578125, 0.0097503662109375, -0.05126953125, 0.0328369140625, 0.004638671875, -0.0008630752563476562, 0.0109710693359375, 0.0152740478515625, -0.0160369873046875, 0.01044464111328125, -0.035675048828125, -0.02471923828125, 0.044036865234375, 0.01242828369140625, 0.0367431640625, -0.0164947509765625, -0.029754638671875, -0.01183319091796875, 0.0726318359375, -0.0435791015625, -0.0181732177734375, -0.01174163818359375, 0.007022857666015625, -0.03668212890625, -0.0051422119140625, -0.049957275390625, -0.01027679443359375, -0.047760009765625, -0.0240631103515625, -0.0253753662109375, -0.033966064453125, -0.0030117034912109375, -0.0014591217041015625, -0.0455322265625, -0.0298309326171875, 0.012359619140625, -0.0321044921875, -0.01490020751953125, 0.040863037109375, -0.0635986328125, 0.04022216796875, -0.0068511962890625, -0.051727294921875, -0.026275634765625, -0.0089111328125, -0.0218048095703125, 0.04595947265625, 0.040863037109375, -0.022369384765625, 0.0036334991455078125, 0.035980224609375, -0.0006546974182128906, 0.0085601806640625, -0.006885528564453125, 0.01267242431640625, 0.005298614501953125, -0.029205322265625, -0.0258331298828125, -0.0257568359375, 0.0008568763732910156, 0.01409912109375, 0.002902984619140625, 0.020233154296875, -0.05999755859375, -0.048004150390625, -0.034149169921875, -0.0350341796875, -0.0560302734375, -0.0289154052734375, -0.01049041748046875, 0.031524658203125, -0.0287322998046875, 0.0009484291076660156, -0.023345947265625, -0.076904296875, 0.01009368896484375, -0.006256103515625, -0.0214996337890625, 0.024688720703125, 0.0518798828125, 0.0227508544921875, -0.0022144317626953125, -0.0428466796875, 0.0103607177734375, 0.028472900390625, -0.0126190185546875, 0.05084228515625, 0.034698486328125, -0.0162200927734375, 0.036590576171875, 0.0083770751953125, 0.029998779296875, -0.0279083251953125, 0.0212860107421875, -0.042327880859375, -0.0274658203125, 0.03594970703125, -0.045623779296875, 0.02508544921875, 0.01065826416015625, -0.00682830810546875, -0.03173828125, -0.038238525390625, 0.07135009765625, 0.01432037353515625, 0.0178375244140625, -0.048492431640625, -0.0489501953125, 0.0020885467529296875, -0.033477783203125, 0.0286865234375, 0.054473876953125, -0.019989013671875, 0.05975341796875, 0.002361297607421875, 0.004825592041015625, -0.0018625259399414062, 0.0296630859375, -0.0153045654296875, 0.0266571044921875, 0.0108489990234375, -0.0021343231201171875, -0.0142059326171875, -0.01303863525390625, 0.07818603515625, 0.018646240234375, -0.049896240234375, 0.0250701904296875, -0.0168914794921875, -0.0098114013671875, 0.004177093505859375, 0.0419921875, 0.04461669921875, 0.0015516281127929688, 0.006366729736328125, -0.01459503173828125, -0.00574493408203125, 0.00921630859375, -0.0312042236328125, 0.041046142578125, 0.0166778564453125, -0.0050048828125, 0.0213470458984375, 0.0648193359375, -0.00458526611328125, 0.06207275390625, -0.0261077880859375, 0.03448486328125, 0.0168304443359375, 0.0257720947265625, 0.01538848876953125, 0.01290130615234375, -0.0189361572265625, 0.01050567626953125, -0.00754547119140625, -0.0161895751953125, -0.00746917724609375, 0.0209808349609375, 0.0312347412109375, 0.043731689453125, 0.025421142578125, -0.032379150390625, -0.029449462890625, -0.0151519775390625, 0.0682373046875, 0.0596923828125, -0.0511474609375, -0.01485443115234375, 0.02532958984375, 0.0205535888671875, -0.013153076171875, -0.01387786865234375, -0.010223388671875, -0.02496337890625, 0.011016845703125, -0.0212554931640625, -0.019256591796875, 0.01300811767578125, 0.010894775390625, -0.057769775390625, -0.032257080078125, 0.0102996826171875, -0.0101470947265625, -0.0082244873046875, -0.01456451416015625, -0.0189208984375, 0.0183868408203125, 0.01198577880859375, 0.00027251243591308594, -0.045257568359375, -0.0038890838623046875, -0.0139923095703125, -0.01580810546875, 0.06451416015625, 0.0217132568359375, -0.0031108856201171875, 0.003376007080078125, -0.0256195068359375, 0.0031795501708984375, 0.031524658203125, -0.043182373046875, -0.00528717041015625, -0.03668212890625, 0.01183319091796875, 0.02105712890625, 0.0019216537475585938, -0.0131072998046875, -0.006237030029296875, -0.00800323486328125, -0.00762939453125, 0.033599853515625, -0.0032825469970703125, 0.0249481201171875, 0.01708984375, 0.0181732177734375, 0.01169586181640625, 0.015960693359375, -0.0224456787109375, -0.0200347900390625, -0.00417327880859375, -0.046966552734375, -0.0234222412109375, 0.0022106170654296875, -0.01457977294921875, 0.0384521484375, 0.05352783203125, 0.004848480224609375, 0.004535675048828125, -0.0067138671875, 0.003208160400390625, -0.022064208984375, -0.0030078887939453125, -0.00962066650390625, 0.01439666748046875, 0.005756378173828125, -0.004302978515625, -0.020904541015625, -0.01157379150390625, 0.010009765625, -0.0382080078125, 0.01548004150390625, -0.039642333984375, -0.003173828125, -0.03668212890625, 0.05670166015625, 0.10028076171875, -0.00672149658203125, 0.038482666015625, 0.030853271484375, 0.008880615234375, 0.03680419921875, 0.00984954833984375, 0.0182647705078125, -0.03106689453125, 0.055938720703125, -0.004261016845703125, 0.0004165172576904297, 0.036529541015625, -0.026580810546875, -0.0092315673828125, 0.045257568359375, 0.0389404296875, -0.07611083984375, 0.006977081298828125, -0.00681304931640625, 0.00978851318359375, 0.03668212890625, -0.0083770751953125, 0.01244354248046875, -0.0194549560546875, 0.040679931640625, 0.0221405029296875, -0.0219573974609375, -0.0011892318725585938, -0.01593017578125, 0.035003662109375, -0.00066375732421875, 0.04852294921875, -0.030517578125, -0.058013916015625, -0.0704345703125, 0.042755126953125, -0.0552978515625, -0.0335693359375, -0.0253143310546875, 0.0217437744140625, 0.0007281303405761719, -0.07904052734375, 0.02728271484375, -0.04986572265625, 0.0162353515625, 0.0523681640625, -0.006290435791015625, 0.0230255126953125, 0.053558349609375, -0.0136260986328125, 0.04296875, 0.02410888671875, -0.01922607421875, -0.060791015625, -0.02606201171875, -0.0246429443359375, 0.048370361328125, 0.0127410888671875, 0.0224761962890625, -0.01451873779296875, -0.00321197509765625, -0.002880096435546875, -0.011016845703125, 0.071044921875, -0.05230712890625, -0.00832366943359375, 0.0237884521484375, 0.004093170166015625, 0.007770538330078125, -0.002712249755859375, 0.019378662109375, -0.0181121826171875, 0.0031261444091796875, 0.0038890838623046875, -0.016265869140625, -0.013824462890625, -0.02197265625, -0.0654296875, 0.061370849609375, -0.023773193359375, 0.039794921875, 0.0177154541015625, 0.0186309814453125, -0.001811981201171875, -0.0153656005859375, -0.0298919677734375, 0.077392578125, -0.018280029296875, 0.0753173828125, -0.09954833984375, -0.03460693359375, 0.0302886962890625, 0.0845947265625, 0.06024169921875, 0.02301025390625, -0.045928955078125, -0.0268402099609375, -0.00981903076171875, 0.01163482666015625, -0.014251708984375, 0.044647216796875, -0.00695037841796875, 0.03802490234375, 0.03814697265625, -0.0179443359375, 0.044342041015625, -0.015716552734375, -0.04705810546875, 0.017333984375, 0.0103912353515625, 0.00785064697265625, -0.00852203369140625, 0.049835205078125, -0.053192138671875, 0.00223541259765625, 0.040985107421875, -0.0287628173828125, 0.01192474365234375, 0.0521240234375, 0.06268310546875, -0.0787353515625, -0.031005859375, -0.038787841796875, 0.05560302734375, 0.02606201171875, 0.00428009033203125, 0.06256103515625, 0.029388427734375, 0.0207061767578125, -0.018646240234375, 0.00481414794921875, -0.0263519287109375, 0.002735137939453125, 0.033782958984375, 0.032501220703125, 0.0236663818359375, -0.032867431640625, -0.008880615234375, 0.061492919921875, 0.07513427734375, -0.047760009765625, -0.0294647216796875, 0.027923583984375, 0.0243682861328125, 0.0024204254150390625, 0.038330078125, 0.0625, 0.01496124267578125, 0.039642333984375, -0.041229248046875, -0.0128021240234375, -0.001190185546875, 0.04443359375, -0.00395965576171875, -0.02203369140625, -0.0341796875, -0.0146026611328125, -0.03912353515625, 0.0196075439453125, 0.00914764404296875, -0.005695343017578125, 0.0162200927734375, 0.014251708984375, 0.031402587890625, 0.004886627197265625, 0.042327880859375, -0.020965576171875, -0.0193939208984375, -0.034698486328125, 0.00778961181640625, -0.044281005859375, -0.03155517578125, 0.034515380859375, 0.0546875, -0.0230865478515625, -0.0034542083740234375, -0.027130126953125, -0.00567626953125, 0.005924224853515625, -0.02423095703125, -0.0185394287109375, -0.01885986328125, 0.0078125, -0.0011186599731445312, 0.0285186767578125, -0.0069122314453125, -0.0087432861328125, 0.04150390625, 0.0239715576171875, -0.02276611328125, 0.050048828125, 0.002716064453125, -0.015380859375, 0.01084136962890625, 0.0271759033203125, 0.03631591796875, 0.02264404296875, -0.034332275390625, -0.018341064453125, -0.026611328125, -0.036712646484375, 0.033538818359375, 0.0313720703125, -0.0021610260009765625, -0.0010766983032226562, 0.01064300537109375, 0.00347137451171875, 0.0301513671875, -0.036834716796875, 0.0191192626953125, 0.03631591796875, 0.0129852294921875, 0.0192413330078125, -0.049346923828125, -0.0253448486328125, 0.0126953125, 0.005573272705078125, -0.01316070556640625, 0.0276336669921875, 0.01232147216796875, 0.0021533966064453125, -0.049774169921875, 0.03271484375, -0.059234619140625, -0.064697265625, 0.0855712890625, 0.0034637451171875, -0.02581787109375, 0.001407623291015625, -0.0179443359375, 0.053863525390625, 0.0224609375, 0.004547119140625, 0.03509521484375, -0.01024627685546875, -0.00015461444854736328, -0.0107421875, 0.00543975830078125, -0.021636962890625, 0.01297760009765625, -0.004108428955078125, -0.0215606689453125, 0.037078857421875, -0.00039958953857421875, -0.00665283203125, 0.03436279296875, 0.0240478515625, 0.00455474853515625, -0.0031948089599609375, -0.00019419193267822266, 0.00829315185546875, 0.0234375, -0.01837158203125, 0.056671142578125, 0.0183258056640625, -0.02227783203125, 0.021697998046875, 0.01025390625, -0.0316162109375, 0.01506805419921875, 0.00518798828125, 0.016510009765625, 0.01476287841796875, 0.042266845703125, -0.00984954833984375, 0.00661468505859375, -0.0011301040649414062, -0.00920867919921875, 0.00311279296875, -0.0250091552734375, -0.03460693359375, -0.038421630859375, -0.01513671875, 0.0090179443359375, -0.035491943359375, -0.05615234375, -0.07708740234375, -0.01345062255859375, -0.01739501953125, 0.0105438232421875, -0.04376220703125, 0.05621337890625, 0.01222991943359375, -0.0224609375, -0.038116455078125, -0.049072265625, 0.0115814208984375, 0.0077056884765625, -0.0228729248046875, 0.033966064453125, -0.0491943359375, -0.037506103515625, 0.0012264251708984375, 0.0374755859375, 0.04058837890625, -0.032501220703125, -0.0352783203125, 0.037750244140625, 0.0291748046875, 0.07794189453125, 0.028045654296875, 0.0110931396484375, 0.04437255859375, -0.01039886474609375, -0.059906005859375, -0.088623046875, 0.044647216796875, -0.09722900390625, -0.038787841796875, 0.021087646484375, -0.000057578086853027344, 0.038787841796875, -0.032806396484375, -0.0843505859375, 0.08984375, -0.01419830322265625, -0.043792724609375, -0.041656494140625, 0.0023860931396484375, 0.0193328857421875, -0.0075836181640625, 0.0027179718017578125, -0.047943115234375, -0.04052734375, 0.02276611328125, 0.01262664794921875, 0.0028934478759765625, 0.0479736328125, 0.034210205078125, -0.0450439453125, 0.00890350341796875, -0.020233154296875, -0.0084686279296875, 0.0110931396484375, -0.00487518310546875, 0.0217132568359375, 0.035430908203125, -0.039093017578125, 0.002216339111328125, -0.02410888671875, 0.00640106201171875, -0.0287017822265625, 0.004673004150390625, -0.012176513671875, 0.0081329345703125, 0.046844482421875, 0.043212890625, 0.007305145263671875, -0.0265655517578125, 0.014678955078125, -0.00946044921875, -0.03240966796875, 0.006549835205078125, 0.01263427734375, -0.02056884765625, 0.0035228729248046875, 0.004901885986328125, -0.025543212890625, -0.03466796875, -0.0019054412841796875, -0.056671142578125, -0.00684356689453125, -0.00844573974609375, 0.006824493408203125, 0.0005574226379394531, 0.00250244140625, 0.032958984375, -0.034912109375, -0.0256195068359375, -0.01480865478515625, 0.01129150390625, -0.01776123046875, -0.043487548828125, -0.0023517608642578125, -0.03082275390625, 0.01947021484375, 0.0103607177734375, 0.0310516357421875, 0.0169219970703125, 0.0292205810546875, -0.02960205078125, -0.03509521484375, 0.0128326416015625, 0.0160675048828125, 0.0167388916015625, 0.0143585205078125, -0.0010213851928710938, 0.026885986328125, 0.0252227783203125, 0.0020809173583984375, -0.023529052734375, -0.02276611328125, 0.0384521484375, 0.033447265625, -0.0355224609375, 0.05279541015625, -0.027069091796875, -0.020111083984375, -0.0305633544921875, -0.035125732421875, -0.09521484375, 0.048095703125, 0.0340576171875, -0.0036830902099609375, 0.043426513671875 ]
897df75831d833294f3b8bdff2b558a07a316057
Wordpress Stackexchange Q: Best Way to Redirect Category to Page and Hide Category I have a category archive page at: http://mysite.com/news It displays an archive of items from the category 'news-article' I'd like to redirect any requests for http://mysite.com/category/news-article to http://mysite.com/news (so that the former is never directly accessible). Is there a best practice? Should I put a 301 Redirect in my .htaccess file (or use a plugin to do the same)? Or should I use wp_safe_redirect? If yes, which action hook should I use? As in: add_action( 'WHICH_ACTION_HOOK??', 'adam_redirect_news' ); function adam_redirect_news () { if ( is_category( 'news-article' ) ) { wp_safe_redirect( 'http://mysite.com/news' ); exit; } } A: I don't know for some reason, the add_filter caused error. I used the following one: function my_page_template_redirect() { if ( is_category( 'news-articles' ) ) { $url = site_url( '/news' ); wp_safe_redirect( $url, 301 ); exit(); } } add_action( 'template_redirect', 'my_page_template_redirect' );
Q: Best Way to Redirect Category to Page and Hide Category I have a category archive page at: http://mysite.com/news It displays an archive of items from the category 'news-article' I'd like to redirect any requests for http://mysite.com/category/news-article to http://mysite.com/news (so that the former is never directly accessible). Is there a best practice? Should I put a 301 Redirect in my .htaccess file (or use a plugin to do the same)? Or should I use wp_safe_redirect? If yes, which action hook should I use? As in: add_action( 'WHICH_ACTION_HOOK??', 'adam_redirect_news' ); function adam_redirect_news () { if ( is_category( 'news-article' ) ) { wp_safe_redirect( 'http://mysite.com/news' ); exit; } } A: I don't know for some reason, the add_filter caused error. I used the following one: function my_page_template_redirect() { if ( is_category( 'news-articles' ) ) { $url = site_url( '/news' ); wp_safe_redirect( $url, 301 ); exit(); } } add_action( 'template_redirect', 'my_page_template_redirect' ); A: Thanks to @Layka above, I tweaked the code slightly and this does what I needed. It could perhaps be any filter called around the same time - not sure. /** * Redirect 'category/news-articles' category to 'News page' ( at http://www.example.com/news' ) * */ add_filter('template_redirect', 'template_redirect_filter', 10, 3); function template_redirect_filter( $url, $term, $taxonomy ) { if ( is_category( 'news-articles' ) ) { $url = site_url( '/news' ); wp_safe_redirect( $url, 301 ); exit; } return $url; } A: function template_category_template_redirect() { if( is_category()) { wp_redirect( site_url() ); die; } } add_action( 'template_redirect','template_category_template_redirect' ); A: Another possible way is to have a custom template in your Child-Theme. According to the wordpress template hierarchy the file must be named category-news-article.php. In this file you could do a redirect with wp_safe_redirect. e.g. <?php wp_safe_redirect('/news', 301, ''); With this approach only the category news-article will be redirected. All other category keep working as before. This might come in handy if you want to point each category to a different url. It also works with custom post type as well if your named the template according to the wordpress hierarchy (see link above).
wordpress
{ "language": "en", "length": 335, "provenance": "stackexchange_00019.jsonl.gz:448630", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160705" }
[ 0.0330810546875, 0.0215606689453125, -0.025390625, -0.0136566162109375, 0.029022216796875, -0.043304443359375, 0.0491943359375, -0.0297393798828125, -0.0220184326171875, 0.02691650390625, 0.048248291015625, -0.0195159912109375, -0.0038318634033203125, -0.05633544921875, -0.005512237548828125, -0.0196990966796875, 0.034393310546875, -0.0518798828125, 0.01529693603515625, -0.0084075927734375, 0.01044464111328125, 0.0161590576171875, 0.05743408203125, -0.0216827392578125, -0.0059814453125, -0.04449462890625, 0.113037109375, -0.06195068359375, 0.016082763671875, -0.0355224609375, 0.0196380615234375, -0.010406494140625, -0.00418853759765625, 0.0428466796875, -0.025360107421875, 0.01021575927734375, 0.02606201171875, 0.023712158203125, 0.01485443115234375, 0.046478271484375, 0.0178375244140625, -0.01085662841796875, 0.0285491943359375, 0.00293731689453125, 0.00437164306640625, -0.048370361328125, 0.04541015625, -0.01473236083984375, -0.0170440673828125, -0.0160980224609375, 0.050079345703125, 0.007030487060546875, 0.06036376953125, -0.01544189453125, -0.0019006729125976562, 0.05181884765625, -0.03692626953125, 0.042724609375, 0.0220947265625, 0.02349853515625, -0.0138092041015625, 0.00984954833984375, -0.0060577392578125, -0.024169921875, 0.00974273681640625, 0.0009636878967285156, 0.048187255859375, 0.02142333984375, -0.07183837890625, -0.0034694671630859375, 0.04937744140625, -0.035186767578125, 0.0128021240234375, -0.01108551025390625, -0.0592041015625, 0.004833221435546875, 0.0247344970703125, 0.0025119781494140625, 0.0282135009765625, -0.050079345703125, -0.03814697265625, 0.01110076904296875, 0.00914764404296875, -0.06512451171875, 0.03521728515625, -0.011444091796875, -0.0325927734375, -0.0010242462158203125, -0.037872314453125, -0.0293426513671875, -0.0191802978515625, 0.004669189453125, -0.04034423828125, -0.004810333251953125, -0.000652313232421875, -0.0286102294921875, 0.01096343994140625, 0.0667724609375, -0.0196685791015625, 0.010406494140625, -0.0228118896484375, -0.0092315673828125, -0.0126953125, -0.03326416015625, 0.024261474609375, 0.0919189453125, 0.0256805419921875, 0.012939453125, 0.028289794921875, -0.0247039794921875, 0.018402099609375, 0.02325439453125, -0.0267333984375, -0.0160369873046875, -0.016387939453125, 0.0689697265625, -0.013275146484375, 0.006397247314453125, 0.0003170967102050781, 0.0506591796875, -0.006275177001953125, 0.024658203125, 0.06097412109375, -0.0243682861328125, -0.04339599609375, -0.03594970703125, -0.0140228271484375, -0.0689697265625, 0.043792724609375, 0.01126861572265625, -0.021484375, 0.00847625732421875, -0.0007877349853515625, -0.01284027099609375, -0.021240234375, -0.01152801513671875, 0.06329345703125, -0.032562255859375, 0.00945281982421875, -0.025665283203125, 0.0224761962890625, 0.008270263671875, 0.0120391845703125, 0.0022983551025390625, 0.068115234375, 0.018829345703125, 0.0157623291015625, 0.0169525146484375, 0.011566162109375, -0.0232391357421875, 0.046539306640625, -0.03765869140625, 0.060150146484375, -0.0293731689453125, -0.0160369873046875, -0.046173095703125, 0.018646240234375, -0.01910400390625, -0.0236358642578125, -0.02398681640625, 0.019287109375, -0.0034313201904296875, 0.0307464599609375, -0.082275390625, -0.08026123046875, -0.0161895751953125, -0.09185791015625, -0.01531982421875, 0.02191162109375, 0.03131103515625, 0.016815185546875, -0.02215576171875, -0.0185546875, 0.018310546875, -0.00710296630859375, 0.0079193115234375, -0.0151824951171875, 0.0161590576171875, 0.006542205810546875, 0.049072265625, 0.01456451416015625, -0.03131103515625, 0.01004791259765625, 0.00946044921875, -0.035247802734375, 0.07025146484375, -0.0014896392822265625, 0.0391845703125, -0.0084686279296875, -0.005828857421875, 0.0233154296875, 0.05596923828125, -0.045074462890625, 0.013458251953125, -0.01026153564453125, -0.0352783203125, 0.053802490234375, 0.00757598876953125, 0.019744873046875, -0.0159454345703125, 0.0413818359375, 0.055450439453125, -0.0159454345703125, 0.0200347900390625, -0.004642486572265625, 0.0217132568359375, 0.01039886474609375, 0.02301025390625, -0.05194091796875, 0.019195556640625, 0.0188751220703125, -0.020050048828125, -0.00337982177734375, -0.03887939453125, 0.0216827392578125, 0.01377105712890625, -0.0245361328125, 0.00345611572265625, -0.01273345947265625, 0.03826904296875, -0.0120086669921875, 0.01727294921875, -0.0205078125, -0.006999969482421875, 0.05218505859375, -0.0305023193359375, -0.0225372314453125, -0.04046630859375, -0.03314208984375, -0.0048370361328125, -0.11871337890625, 0.07281494140625, 0.03118896484375, 0.0333251953125, -0.022003173828125, 0.021026611328125, 0.0008306503295898438, -0.007213592529296875, -0.0156097412109375, 0.02191162109375, 0.0189056396484375, 0.01055908203125, -0.049224853515625, -0.0229949951171875, -0.00325775146484375, -0.045654296875, 0.011993408203125, -0.01007080078125, 0.0189361572265625, 0.03302001953125, 0.02880859375, -0.0201263427734375, 0.0195770263671875, -0.0374755859375, 0.0112152099609375, 0.0247802734375, -0.00754547119140625, -0.01486968994140625, -0.0163116455078125, -0.016632080078125, 0.03411865234375, 0.00678253173828125, -0.045135498046875, 0.0292205810546875, 0.057708740234375, -0.0223388671875, 0.0038890838623046875, 0.0016088485717773438, -0.021575927734375, -0.00396728515625, 0.0252227783203125, -0.047149658203125, 0.0031719207763671875, 0.0634765625, 0.0311737060546875, -0.06256103515625, -0.01763916015625, -0.00476837158203125, -0.007015228271484375, 0.01047515869140625, -0.0003643035888671875, 0.089599609375, -0.00945281982421875, -0.026702880859375, -0.05914306640625, -0.042236328125, -0.0144195556640625, 0.0037441253662109375, 0.0025424957275390625, 0.01537322998046875, 0.04913330078125, 0.01416778564453125, 0.0008382797241210938, 0.0191497802734375, -0.01398468017578125, -0.0191802978515625, 0.00725555419921875, -0.0243377685546875, 0.040313720703125, -0.0189056396484375, 0.046875, 0.0677490234375, -0.0164947509765625, 0.01690673828125, -0.005397796630859375, 0.012725830078125, 0.01462554931640625, -0.01119232177734375, -0.01629638671875, -0.021087646484375, -0.057342529296875, -0.03155517578125, 0.0266876220703125, 0.001079559326171875, 0.0253448486328125, -0.022430419921875, 0.02349853515625, 0.00551605224609375, -0.055694580078125, -0.055633544921875, -0.01488494873046875, -0.052581787109375, 0.03179931640625, 0.022430419921875, -0.0186309814453125, -0.055816650390625, 0.06787109375, 0.00988006591796875, 0.020721435546875, -0.0255584716796875, -0.048614501953125, -0.0247955322265625, -0.06072998046875, 0.001667022705078125, -0.00530242919921875, 0.0117950439453125, 0.00890350341796875, 0.024993896484375, -0.0008592605590820312, -0.053497314453125, 0.019134521484375, -0.00928497314453125, 0.002941131591796875, 0.0247802734375, -0.032928466796875, 0.01541900634765625, 0.002712249755859375, 0.00850677490234375, 0.05462646484375, 0.009552001953125, -0.00020897388458251953, -0.0128326416015625, -0.031646728515625, -0.01351165771484375, -0.01123809814453125, 0.011871337890625, 0.04815673828125, -0.00736236572265625, 0.01218414306640625, -0.033782958984375, -0.034027099609375, -0.005523681640625, -0.0416259765625, 0.01314544677734375, 0.0270538330078125, -0.0038890838623046875, -0.004062652587890625, 0.0128021240234375, -0.0012235641479492188, 0.03192138671875, 0.03216552734375, -0.00879669189453125, 0.0212860107421875, -0.032318115234375, -0.03424072265625, -0.053955078125, 0.0231475830078125, -0.0184326171875, 0.01019287109375, 0.01087188720703125, -0.0026569366455078125, 0.00997161865234375, 0.0126953125, 0.0082244873046875, -0.04486083984375, 0.0272064208984375, -0.01204681396484375, -0.008331298828125, -0.019195556640625, -0.01169586181640625, -0.01213836669921875, 0.0494384765625, -0.025054931640625, -0.007659912109375, -0.02056884765625, 0.0013980865478515625, 0.004878997802734375, -0.00959014892578125, -0.0121612548828125, -0.0068511962890625, -0.10955810546875, 0.01093292236328125, -0.0004246234893798828, -0.02984619140625, -0.016571044921875, -0.0059814453125, -0.0633544921875, -0.0458984375, 0.027618408203125, -0.0192718505859375, 0.0018405914306640625, 0.042022705078125, -0.009918212890625, 0.0014801025390625, -0.033843994140625, -0.00218963623046875, -0.04547119140625, -0.00661468505859375, -0.0109405517578125, 0.051422119140625, 0.038909912109375, -0.03253173828125, 0.0019426345825195312, 0.038055419921875, -0.00909423828125, 0.0021877288818359375, -0.006679534912109375, -0.001270294189453125, 0.01137542724609375, 0.005901336669921875, -0.019134521484375, -0.0014123916625976562, -0.00881195068359375, -0.02520751953125, -0.0291900634765625, -0.0310516357421875, -0.04718017578125, -0.01947021484375, 0.0016155242919921875, -0.0200347900390625, -0.0550537109375, -0.018341064453125, -0.0182342529296875, -0.004100799560546875, -0.0135955810546875, -0.01203155517578125, -0.017578125, -0.05865478515625, 0.04351806640625, -0.00047016143798828125, -0.013092041015625, -0.0013608932495117188, 0.05438232421875, 0.01837158203125, -0.0179443359375, 0.0063629150390625, -0.0192718505859375, 0.01213836669921875, -0.0067291259765625, 0.06756591796875, 0.0012912750244140625, -0.0009684562683105469, 0.07769775390625, -0.0294036865234375, -0.0138702392578125, -0.0234375, 0.060394287109375, 0.002933502197265625, -0.0191650390625, 0.006927490234375, -0.040802001953125, 0.0258331298828125, 0.048431396484375, 0.0113372802734375, -0.03839111328125, -0.00006377696990966797, 0.0219573974609375, -0.00988006591796875, 0.005435943603515625, -0.0241546630859375, 0.021270751953125, -0.0216064453125, 0.06878662109375, 0.06988525390625, 0.065673828125, -0.0191650390625, 0.00759124755859375, 0.0195465087890625, -0.010589599609375, 0.0012416839599609375, -0.02496337890625, -0.0263214111328125, 0.011932373046875, -0.023223876953125, -0.043701171875, 0.026641845703125, -0.0003883838653564453, -0.01259613037109375, -0.01067352294921875, -0.023193359375, -0.03076171875, -0.0205841064453125, 0.0001348257064819336, 0.0148468017578125, -0.03564453125, 0.06005859375, 0.03302001953125, -0.04547119140625, -0.00403594970703125, -0.052520751953125, -0.0216827392578125, -0.07568359375, -0.011474609375, -0.00800323486328125, -0.015899658203125, -0.0001684427261352539, 0.05462646484375, 0.01346588134765625, 0.0215606689453125, -0.017547607421875, 0.041107177734375, 0.00882720947265625, -0.0003535747528076172, 0.0257110595703125, 0.001125335693359375, 0.0131683349609375, -0.046539306640625, -0.00562286376953125, -0.04644775390625, -0.033050537109375, 0.0611572265625, 0.04901123046875, -0.0248565673828125, -0.0245513916015625, -0.007720947265625, 0.010040283203125, -0.0136566162109375, 0.042205810546875, -0.01279449462890625, -0.052398681640625, -0.0289154052734375, -0.037628173828125, 0.0162506103515625, -0.01432037353515625, -0.0230712890625, 0.0019893646240234375, -0.056060791015625, 0.00787353515625, 0.0501708984375, -0.011932373046875, -0.005962371826171875, -0.0178985595703125, 0.00431060791015625, -0.031341552734375, -0.00930023193359375, -0.00931549072265625, 0.03948974609375, -0.037841796875, -0.0175933837890625, 0.041290283203125, -0.0189666748046875, 0.0281982421875, -0.0179901123046875, -0.030548095703125, 0.0164794921875, 0.0037860870361328125, 0.0660400390625, 0.032135009765625, -0.034698486328125, 0.0025005340576171875, -0.01511383056640625, -0.008209228515625, 0.0014619827270507812, -0.009185791015625, -0.013702392578125, -0.0202789306640625, 0.033843994140625, 0.014556884765625, 0.0254364013671875, -0.01323699951171875, -0.0113372802734375, -0.000023126602172851562, 0.01222991943359375, 0.004894256591796875, -0.00872039794921875, 0.04107666015625, -0.01129913330078125, 0.067138671875, -0.00908660888671875, -0.004619598388671875, -0.028289794921875, -0.0074920654296875, -0.0162353515625, -0.0364990234375, 0.01316070556640625, 0.0257415771484375, -0.0328369140625, 0.01512908935546875, 0.06341552734375, 0.01444244384765625, -0.01519775390625, 0.0135498046875, 0.016387939453125, -0.02642822265625, -0.01435089111328125, 0.0174560546875, -0.0232696533203125, 0.025390625, 0.035125732421875, 0.031890869140625, -0.039031982421875, -0.0018796920776367188, -0.011566162109375, 0.00342559814453125, 0.01800537109375, -0.03021240234375, -0.058990478515625, 0.06756591796875, 0.08319091796875, 0.01476287841796875, 0.057952880859375, 0.019195556640625, 0.020263671875, 0.032684326171875, 0.0311737060546875, 0.00421142578125, 0.01222991943359375, 0.06195068359375, 0.008941650390625, -0.012939453125, 0.020843505859375, -0.027862548828125, -0.022369384765625, 0.07403564453125, 0.0218353271484375, -0.0823974609375, -0.0206146240234375, -0.007205963134765625, -0.0143890380859375, -0.0265655517578125, -0.004283905029296875, 0.01016998291015625, 0.02911376953125, -0.00038623809814453125, -0.027252197265625, -0.047393798828125, -0.015594482421875, 0.003421783447265625, -0.0084686279296875, 0.00267791748046875, 0.00738525390625, 0.005001068115234375, -0.06341552734375, 0.0042266845703125, 0.036346435546875, 0.0034580230712890625, -0.040924072265625, -0.00637054443359375, 0.0066680908203125, -0.0258636474609375, -0.02764892578125, 0.043243408203125, 0.006649017333984375, 0.01416778564453125, 0.00881195068359375, -0.0073394775390625, -0.004611968994140625, 0.0469970703125, -0.0303192138671875, 0.0242919921875, 0.0246429443359375, -0.046539306640625, 0.0199737548828125, -0.0267181396484375, 0.002254486083984375, -0.029693603515625, -0.0179290771484375, 0.007640838623046875, -0.0214385986328125, -0.044158935546875, -0.01934814453125, -0.016876220703125, 0.07843017578125, -0.04522705078125, -0.01580810546875, 0.00013315677642822266, 0.01532745361328125, 0.01611328125, -0.01275634765625, 0.045654296875, -0.030517578125, -0.011138916015625, 0.006252288818359375, 0.0011682510375976562, 0.006664276123046875, -0.0192108154296875, -0.0399169921875, 0.058441162109375, 0.00884246826171875, 0.0299072265625, 0.0293426513671875, 0.005077362060546875, -0.0242156982421875, -0.019989013671875, 0.00478363037109375, 0.043609619140625, 0.03997802734375, -0.0243377685546875, 0.0121917724609375, 0.003662109375, 0.00609588623046875, 0.01319122314453125, 0.04052734375, 0.024566650390625, -0.0340576171875, 0.0007052421569824219, 0.0164642333984375, 0.01763916015625, -0.01384735107421875, 0.03070068359375, -0.01197052001953125, -0.0212249755859375, 0.013885498046875, -0.017333984375, 0.02593994140625, -0.01422119140625, -0.003017425537109375, 0.007579803466796875, 0.01221466064453125, 0.003505706787109375, 0.00142669677734375, 0.0224151611328125, -0.0562744140625, 0.01806640625, 0.05169677734375, -0.0110626220703125, -0.0105743408203125, 0.031585693359375, 0.006443023681640625, -0.044342041015625, 0.042388916015625, -0.05224609375, 0.04705810546875, -0.00763702392578125, 0.0203399658203125, 0.038970947265625, 0.01172637939453125, 0.055877685546875, 0.018768310546875, 0.00958251953125, 0.006954193115234375, 0.01995849609375, 0.0772705078125, 0.05242919921875, 0.0292816162109375, -0.0209197998046875, -0.033203125, 0.05352783203125, 0.1011962890625, -0.03619384765625, -0.03399658203125, -0.007122039794921875, 0.03326416015625, 0.0303192138671875, -0.00490570068359375, 0.03509521484375, 0.006069183349609375, 0.05914306640625, -0.0772705078125, -0.0120697021484375, 0.050384521484375, 0.028778076171875, -0.00925445556640625, -0.029998779296875, -0.036834716796875, -0.01983642578125, -0.067626953125, -0.0017004013061523438, 0.0270233154296875, 0.098388671875, 0.04608154296875, 0.049346923828125, 0.016632080078125, -0.060516357421875, -0.0216064453125, 0.03582763671875, 0.0107879638671875, 0.020904541015625, -0.03802490234375, -0.04998779296875, 0.06451416015625, 0.0362548828125, 0.024322509765625, -0.01082611083984375, 0.015106201171875, 0.05230712890625, 0.0220794677734375, -0.007228851318359375, 0.024383544921875, 0.004032135009765625, 0.04248046875, -0.037811279296875, 0.043121337890625, -0.0254974365234375, -0.0160675048828125, -0.0192108154296875, 0.01020050048828125, 0.012786865234375, -0.01462554931640625, 0.00803375244140625, 0.006137847900390625, -0.0188751220703125, 0.0308837890625, -0.02618408203125, 0.053863525390625, 0.009490966796875, -0.060028076171875, -0.0123138427734375, -0.0133056640625, -0.03753662109375, 0.0308380126953125, 0.0357666015625, -0.031341552734375, 0.018524169921875, -0.005298614501953125, 0.01171875, 0.03558349609375, -0.02069091796875, -0.017852783203125, -0.0166778564453125, 0.03277587890625, -0.0038967132568359375, 0.00244140625, -0.00818634033203125, 0.004611968994140625, 0.047943115234375, 0.0281982421875, 0.061798095703125, -0.02239990234375, 0.0205841064453125, -0.020355224609375, 0.0205841064453125, -0.0254058837890625, -0.016448974609375, 0.0240020751953125, 0.024688720703125, 0.01393890380859375, -0.025177001953125, -0.042266845703125, -0.0243682861328125, 0.040985107421875, -0.04974365234375, -0.00115966796875, 0.0030803680419921875, 0.01154327392578125, -0.040740966796875, -0.01190185546875, -0.04254150390625, -0.056427001953125, -0.05023193359375, -0.0032806396484375, 0.012298583984375, 0.021820068359375, -0.0213623046875, 0.032928466796875, -0.043426513671875, -0.024200439453125, -0.01140594482421875, -0.043243408203125, -0.04400634765625, 0.032562255859375, -0.0291290283203125, -0.01184844970703125, 0.06195068359375, 0.005031585693359375, 0.0246124267578125, 0.031524658203125, 0.011322021484375, 0.0252227783203125, 0.00836944580078125, -0.0670166015625, -0.049530029296875, -0.0010442733764648438, 0.01561737060546875, -0.00173187255859375, -0.07257080078125, -0.0203857421875, -0.0162811279296875, 0.0091552734375, -0.0229949951171875, -0.0251007080078125, -0.0255279541015625, 0.005382537841796875, -0.01165008544921875, -0.034088134765625, -0.037384033203125, -0.0030040740966796875, 0.0133819580078125, -0.041351318359375, 0.024688720703125, -0.00899505615234375, -0.052093505859375, 0.0386962890625, -0.036834716796875, -0.0008287429809570312, -0.01085662841796875, 0.007602691650390625, -0.05828857421875, 0.009735107421875, -0.060302734375, -0.0292816162109375, -0.0631103515625, -0.0098114013671875, 0.024749755859375, -0.000008225440979003906, -0.00212860107421875, -0.032623291015625, -0.01971435546875, 0.014190673828125, -0.03692626953125, -0.007781982421875, 0.014801025390625, 0.0115966796875, -0.041168212890625, -0.0003845691680908203, 0.013031005859375, 0.0126953125, -0.037506103515625, 0.011260986328125, -0.046661376953125, -0.0467529296875, -0.0501708984375, -0.02239990234375, 0.10430908203125, 0.0018339157104492188, -0.003200531005859375, 0.0190887451171875, 0.0142059326171875, 0.01195526123046875, -0.0233154296875, 0.01934814453125, -0.01030731201171875, -0.0175933837890625, -0.033843994140625, -0.0023365020751953125, 0.060302734375, -0.0180816650390625, 0.005573272705078125, -0.0156707763671875, 0.0090179443359375, -0.00579833984375, -0.007389068603515625, -0.014556884765625, -0.005764007568359375, 0.0408935546875, 0.041778564453125, -0.02203369140625, 0.0400390625, 0.03216552734375, 0.0217742919921875, 0.0169677734375, 0.004314422607421875, -0.06610107421875, -0.04949951171875, 0.0133056640625, 0.019012451171875, 0.005748748779296875, 0.023162841796875, -0.048828125, -0.0271759033203125, 0.004093170166015625, 0.0005517005920410156, 0.02093505859375, -0.06658935546875, 0.00025582313537597656, 0.0260467529296875, 0.005817413330078125, 0.0236053466796875, -0.0020236968994140625, -0.0007634162902832031, 0.00222015380859375, 0.03277587890625, -0.007076263427734375, -0.002445220947265625, 0.01265716552734375, 0.045379638671875, -0.04132080078125, -0.021759033203125, -0.0051727294921875, 0.01678466796875, -0.01383209228515625, -0.051666259765625, 0.01171875, 0.0212554931640625, -0.034637451171875, -0.02392578125, 0.00830078125, 0.0304412841796875, -0.00038909912109375, -0.01102447509765625, 0.0027751922607421875, 0.03472900390625, -0.006633758544921875, 0.05279541015625, 0.00666046142578125, 0.01332855224609375, -0.0021266937255859375, 0.0267791748046875, -0.022003173828125, 0.041961669921875, -0.00121307373046875, 0.0295562744140625, -0.01430511474609375, 0.008453369140625, 0.027496337890625, -0.0227203369140625, 0.00421905517578125, -0.00011056661605834961, 0.054412841796875, -0.0275726318359375, 0.038330078125, -0.06512451171875, 0.0214385986328125, 0.0162200927734375 ]
a9d2b59306bf37c9b8fb0c3787140cfbef25c015
Wordpress Stackexchange Q: What is the purpose of logging out after Wordpress upgrade? I had recently noticed when testing Wordpress 4.0 upgrade, that it logged out of the site and went to the login screen, with a message saying to log back in to enjoy the new improved Wordpress. What is the reason for this logout? I don't remember seeing this previously, and when a programmatically-called Wordpress upgrade occurs the user isn't logged out and it works fine. A: 4.0 made a change to the structure of the authentication cookie and added a "token" feild to it. I assume that you were logged out because your older style cookie didn't match the new format.
Q: What is the purpose of logging out after Wordpress upgrade? I had recently noticed when testing Wordpress 4.0 upgrade, that it logged out of the site and went to the login screen, with a message saying to log back in to enjoy the new improved Wordpress. What is the reason for this logout? I don't remember seeing this previously, and when a programmatically-called Wordpress upgrade occurs the user isn't logged out and it works fine. A: 4.0 made a change to the structure of the authentication cookie and added a "token" feild to it. I assume that you were logged out because your older style cookie didn't match the new format.
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:448632", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160708" }
[ 0.01461029052734375, -0.01611328125, -0.0092620849609375, -0.01427459716796875, 0.00574493408203125, -0.0263519287109375, 0.033477783203125, 0.004131317138671875, -0.004741668701171875, 0.0029697418212890625, 0.0282745361328125, -0.015869140625, -0.04669189453125, -0.047607421875, -0.006160736083984375, -0.028778076171875, 0.0211334228515625, -0.0037631988525390625, 0.01555633544921875, -0.013519287109375, -0.0004887580871582031, -0.0086669921875, -0.00048089027404785156, 0.0088043212890625, 0.016571044921875, 0.028778076171875, 0.038604736328125, -0.0260467529296875, 0.0166473388671875, -0.0010404586791992188, 0.017822265625, -0.039764404296875, -0.01078033447265625, 0.054046630859375, -0.013519287109375, -0.043243408203125, -0.018310546875, 0.0303497314453125, 0.018218994140625, 0.024932861328125, 0.004245758056640625, -0.0009751319885253906, 0.064697265625, 0.01270294189453125, -0.00197601318359375, 0.0038776397705078125, 0.005397796630859375, -0.02532958984375, 0.0298919677734375, -0.02288818359375, 0.01251220703125, 0.007686614990234375, 0.01190185546875, 0.028594970703125, -0.0172271728515625, 0.006916046142578125, 0.00188446044921875, 0.06732177734375, 0.039306640625, 0.0087738037109375, -0.046661376953125, 0.00968170166015625, -0.01068878173828125, -0.06610107421875, -0.001529693603515625, 0.007312774658203125, 0.010162353515625, -0.00926971435546875, -0.04559326171875, -0.01346588134765625, 0.0445556640625, -0.022125244140625, -0.011322021484375, 0.043243408203125, -0.006923675537109375, -0.0108489990234375, 0.051727294921875, 0.0343017578125, -0.014007568359375, 0.050201416015625, -0.009857177734375, -0.0140838623046875, -0.039215087890625, -0.036468505859375, 0.0238494873046875, 0.0042877197265625, -0.01393890380859375, -0.015869140625, 0.0192108154296875, -0.003421783447265625, -0.0186004638671875, 0.0115814208984375, 0.038055419921875, 0.007411956787109375, -0.053009033203125, -0.0118560791015625, -0.01251983642578125, 0.004123687744140625, 0.0028133392333984375, 0.0037994384765625, -0.0306854248046875, -0.005474090576171875, -0.023345947265625, -0.000010967254638671875, -0.005062103271484375, 0.02734375, 0.01033782958984375, 0.00852203369140625, 0.017669677734375, 0.0210418701171875, -0.00821685791015625, -0.008575439453125, -0.0142822265625, -0.036651611328125, -0.013214111328125, 0.046905517578125, -0.00860595703125, 0.0003066062927246094, -0.00803375244140625, 0.0236358642578125, -0.042266845703125, -0.0192413330078125, -0.018585205078125, 0.03143310546875, -0.00013053417205810547, -0.008331298828125, 0.01280975341796875, 0.0252685546875, -0.03253173828125, 0.042938232421875, -0.01218414306640625, 0.01497650146484375, 0.0006299018859863281, 0.007167816162109375, -0.0426025390625, -0.0248260498046875, 0.041046142578125, -0.0275421142578125, -0.006256103515625, 0.054443359375, -0.02093505859375, -0.100830078125, -0.0430908203125, 0.0007781982421875, 0.04925537109375, 0.00354766845703125, 0.032867431640625, 0.043212890625, -0.0059967041015625, -0.03887939453125, 0.0572509765625, 0.032806396484375, -0.0047149658203125, 0.0096893310546875, 0.035491943359375, -0.018218994140625, 0.0164642333984375, -0.0139007568359375, 0.039520263671875, -0.00005918741226196289, 0.0216827392578125, 0.01143646240234375, 0.030242919921875, 0.01538848876953125, -0.004730224609375, -0.0085906982421875, -0.0634765625, -0.015838623046875, 0.0308685302734375, 0.001384735107421875, 0.0260467529296875, -0.024505615234375, 0.043121337890625, 0.0006518363952636719, -0.0113677978515625, 0.00795745849609375, -0.0211944580078125, 0.0015916824340820312, 0.047576904296875, 0.00460052490234375, 0.0172119140625, -0.00424957275390625, 0.079345703125, -0.002162933349609375, -0.0156097412109375, 0.030975341796875, -0.0027370452880859375, 0.056427001953125, 0.0177459716796875, 0.01258087158203125, -0.04437255859375, 0.01320648193359375, -0.03277587890625, 0.04754638671875, -0.0008883476257324219, -0.00007992982864379883, -0.017578125, 0.03509521484375, -0.01308441162109375, -0.0748291015625, 0.04400634765625, 0.044036865234375, -0.042083740234375, -0.01474761962890625, -0.10589599609375, 0.0140228271484375, -0.0168609619140625, 0.0278472900390625, 0.0193328857421875, 0.0341796875, 0.0186004638671875, 0.028564453125, -0.0169677734375, -0.0166015625, -0.037322998046875, -0.01512908935546875, -0.035430908203125, 0.02655029296875, 0.006763458251953125, 0.0015459060668945312, 0.021759033203125, -0.010955810546875, 0.0202178955078125, -0.02166748046875, 0.0604248046875, -0.0225372314453125, 0.003925323486328125, -0.0360107421875, 0.04107666015625, 0.00362396240234375, -0.0255279541015625, 0.0279388427734375, 0.039031982421875, 0.0302734375, -0.031341552734375, -0.0269622802734375, -0.017181396484375, -0.0745849609375, 0.00981903076171875, 0.056396484375, 0.0239105224609375, 0.022552490234375, -0.033172607421875, -0.0232391357421875, 0.0164642333984375, -0.054229736328125, -0.0029773712158203125, 0.004032135009765625, -0.017181396484375, 0.03570556640625, 0.003070831298828125, 0.033843994140625, 0.0172882080078125, 0.0042266845703125, -0.02642822265625, 0.050750732421875, 0.017333984375, -0.0018434524536132812, -0.0264892578125, 0.02587890625, -0.00646209716796875, -0.043975830078125, -0.0347900390625, -0.00786590576171875, -0.01129913330078125, -0.00103759765625, -0.003986358642578125, 0.0023212432861328125, -0.04327392578125, 0.00528717041015625, 0.04229736328125, 0.0214080810546875, 0.0015668869018554688, 0.0013408660888671875, 0.045166015625, -0.0221710205078125, -0.01151275634765625, -0.015655517578125, 0.01922607421875, -0.0074920654296875, -0.01322174072265625, -0.00814056396484375, -0.019744873046875, -0.0190887451171875, 0.040374755859375, 0.0206146240234375, -0.00655364990234375, -0.0265960693359375, -0.029754638671875, -0.0286407470703125, 0.01141357421875, -0.00817108154296875, -0.0189056396484375, -0.0001722574234008789, 0.0032520294189453125, -0.03546142578125, 0.018707275390625, -0.010162353515625, 0.015350341796875, -0.0029296875, 0.0175323486328125, 0.05487060546875, 0.00472259521484375, -0.0025730133056640625, 0.00786590576171875, -0.0047760009765625, 0.01959228515625, -0.006427764892578125, -0.01264190673828125, 0.0188140869140625, -0.0673828125, 0.032562255859375, 0.040374755859375, 0.09033203125, -0.02496337890625, -0.03485107421875, -0.0155792236328125, 0.050140380859375, -0.03765869140625, -0.057891845703125, -0.11773681640625, -0.06317138671875, 0.0128326416015625, -0.04248046875, -0.011383056640625, 0.039154052734375, -0.0240020751953125, 0.0303955078125, 0.0308074951171875, 0.0017518997192382812, -0.0491943359375, -0.042755126953125, -0.060394287109375, -0.038421630859375, -0.0147552490234375, 0.00665283203125, 0.00405120849609375, 0.00769805908203125, -0.026397705078125, -0.034576416015625, -0.033905029296875, 0.007053375244140625, -0.004413604736328125, -0.0340576171875, -0.044036865234375, -0.011810302734375, 0.039276123046875, -0.00579833984375, 0.03887939453125, -0.010711669921875, 0.0194854736328125, -0.01824951171875, -0.02044677734375, -0.038299560546875, -0.0018634796142578125, -0.053436279296875, -0.005184173583984375, -0.012176513671875, -0.030731201171875, -0.04833984375, 0.01154327392578125, 0.008941650390625, -0.0240631103515625, -0.013519287109375, 0.026275634765625, -0.0274658203125, -0.00363922119140625, -0.034637451171875, 0.0024852752685546875, -0.006053924560546875, 0.0255889892578125, -0.007297515869140625, 0.012664794921875, -0.03338623046875, -0.043792724609375, -0.049163818359375, 0.045989990234375, -0.038970947265625, 0.044647216796875, 0.01444244384765625, -0.00591278076171875, -0.009552001953125, -0.03753662109375, -0.05206298828125, -0.054290771484375, 0.03619384765625, -0.0845947265625, -0.0335693359375, -0.034881591796875, 0.0019140243530273438, -0.00623321533203125, 0.064208984375, -0.004459381103515625, -0.0010709762573242188, 0.03094482421875, -0.016998291015625, -0.0158538818359375, 0.052215576171875, -0.0989990234375, -0.0012073516845703125, -0.029510498046875, 0.0333251953125, 0.02777099609375, 0.006595611572265625, -0.045806884765625, 0.0210113525390625, -0.0172882080078125, -0.0210418701171875, -0.00453948974609375, 0.0286712646484375, 0.020111083984375, -0.042022705078125, 0.00841522216796875, -0.035400390625, 0.04559326171875, -0.0300140380859375, -0.0277557373046875, -0.0069732666015625, 0.0124664306640625, 0.012451171875, -0.0157623291015625, 0.00754547119140625, -0.0309295654296875, 0.01520538330078125, 0.0004096031188964844, 0.0030536651611328125, 0.00797271728515625, 0.0004830360412597656, 0.01311492919921875, 0.0007281303405761719, -0.0167236328125, -0.0163116455078125, 0.015777587890625, -0.041412353515625, -0.044708251953125, -0.0579833984375, -0.042938232421875, -0.006748199462890625, 0.0014934539794921875, -0.0276336669921875, -0.0242919921875, -0.024993896484375, 0.01181793212890625, 0.01522064208984375, 0.00873565673828125, 0.00623321533203125, -0.0419921875, -0.01264190673828125, 0.01654052734375, 0.029937744140625, -0.020538330078125, 0.00431060791015625, 0.006134033203125, 0.01204681396484375, -0.040008544921875, -0.005161285400390625, -0.0225067138671875, 0.0233154296875, -0.005527496337890625, 0.035736083984375, -0.0163726806640625, -0.0258331298828125, 0.10040283203125, -0.0239410400390625, 0.022308349609375, -0.05841064453125, 0.0438232421875, -0.0159912109375, -0.011871337890625, 0.0151214599609375, -0.03955078125, 0.021209716796875, 0.0308074951171875, 0.0291595458984375, -0.027618408203125, 0.003093719482421875, 0.027557373046875, 0.01116943359375, -0.0222625732421875, -0.018646240234375, -0.05462646484375, 0.0271148681640625, -0.021209716796875, 0.003753662109375, -0.0171051025390625, 0.005794525146484375, 0.003589630126953125, 0.00101470947265625, -0.00844573974609375, -0.020904541015625, -0.02447509765625, -0.03778076171875, 0.015472412109375, -0.04974365234375, -0.036224365234375, 0.004749298095703125, -0.0229949951171875, 0.0677490234375, 0.04522705078125, -0.057647705078125, 0.05169677734375, 0.010040283203125, 0.032989501953125, 0.00598907470703125, -0.0169219970703125, 0.059967041015625, -0.034698486328125, -0.03277587890625, -0.00502777099609375, -0.041778564453125, -0.07183837890625, -0.0474853515625, 0.0042572021484375, -0.0421142578125, 0.006618499755859375, 0.0081939697265625, 0.0179595947265625, -0.01556396484375, 0.017852783203125, -0.0086517333984375, 0.0247650146484375, 0.03997802734375, 0.0236053466796875, 0.01511383056640625, -0.0083160400390625, -0.01004791259765625, 0.02117919921875, 0.00543212890625, -0.0307464599609375, -0.0653076171875, 0.030792236328125, 0.040252685546875, -0.04522705078125, 0.00806427001953125, 0.021392822265625, 0.006771087646484375, 0.007686614990234375, 0.040618896484375, -0.01904296875, -0.0860595703125, -0.010589599609375, 0.0123138427734375, 0.013458251953125, -0.07049560546875, 0.006465911865234375, -0.0406494140625, -0.012786865234375, -0.0043792724609375, -0.0018167495727539062, -0.0237884521484375, 0.00527191162109375, -0.0008254051208496094, -0.053314208984375, -0.039276123046875, 0.01091766357421875, -0.0217437744140625, -0.0235748291015625, 0.004055023193359375, -0.020111083984375, 0.00040030479431152344, -0.00228118896484375, -0.005901336669921875, -0.005687713623046875, -0.01397705078125, 0.0413818359375, 0.033538818359375, -0.02581787109375, -0.0640869140625, -0.051361083984375, 0.0178375244140625, -0.0246734619140625, -0.01256561279296875, -0.02099609375, -0.039947509765625, -0.046478271484375, -0.01549530029296875, 0.0233154296875, 0.016815185546875, -0.006000518798828125, -0.018951416015625, -0.040679931640625, 0.019439697265625, 0.0372314453125, 0.041229248046875, 0.02679443359375, 0.029144287109375, -0.015625, 0.0241851806640625, 0.027191162109375, 0.04949951171875, -0.0103912353515625, -0.038299560546875, 0.058837890625, 0.0007867813110351562, -0.0653076171875, -0.0657958984375, 0.00032830238342285156, -0.034576416015625, 0.034820556640625, -0.04144287109375, -0.0311431884765625, -0.014617919921875, -0.0003261566162109375, -0.015777587890625, 0.033782958984375, 0.019287109375, -0.0239105224609375, 0.01161956787109375, 0.0057830810546875, 0.018157958984375, -0.00927734375, 0.0222320556640625, -0.0300750732421875, -0.0025119781494140625, -0.0011644363403320312, -0.0240020751953125, -0.0005512237548828125, -0.01837158203125, 0.04498291015625, -0.0178985595703125, 0.019561767578125, 0.0167083740234375, 0.00662994384765625, 0.0467529296875, -0.0484619140625, -0.0269012451171875, 0.03662109375, 0.0347900390625, -0.02166748046875, -0.0275726318359375, 0.0086822509765625, -0.0323486328125, 0.030517578125, 0.06610107421875, 0.0914306640625, -0.1055908203125, 0.034027099609375, 0.020599365234375, 0.01540374755859375, 0.0819091796875, 0.0236358642578125, -0.01204681396484375, -0.0155792236328125, 0.01421356201171875, -0.0458984375, -0.019500732421875, 0.0017061233520507812, -0.014129638671875, 0.0003304481506347656, -0.0016260147094726562, 0.036376953125, 0.019134521484375, -0.0718994140625, 0.04345703125, 0.0506591796875, 0.0166168212890625, -0.018280029296875, -0.0367431640625, 0.02117919921875, -0.0504150390625, -0.07177734375, -0.020477294921875, -0.0289764404296875, 0.0024738311767578125, -0.0119781494140625, -0.011138916015625, 0.049407958984375, 0.041046142578125, 0.00283050537109375, -0.0016088485717773438, 0.0032482147216796875, 0.048675537109375, -0.0196685791015625, -0.0297698974609375, 0.01161956787109375, 0.0477294921875, -0.035736083984375, 0.027923583984375, 0.005344390869140625, -0.0185699462890625, -0.028289794921875, -0.061767578125, 0.0528564453125, -0.006351470947265625, -0.004108428955078125, 0.0264434814453125, 0.032684326171875, -0.0121917724609375, -0.005840301513671875, -0.0175323486328125, -0.0521240234375, -0.02117919921875, -0.0090484619140625, -0.0266876220703125, 0.032135009765625, 0.0247955322265625, -0.048736572265625, 0.10662841796875, -0.02215576171875, 0.0258331298828125, 0.0172882080078125, 0.033355712890625, -0.03558349609375, 0.007343292236328125, -0.0008625984191894531, 0.01300048828125, -0.04034423828125, 0.02532958984375, -0.0220794677734375, -0.0156707763671875, 0.0021572113037109375, 0.04632568359375, 0.037811279296875, 0.00745391845703125, -0.0404052734375, -0.0249481201171875, -0.00914764404296875, 0.019378662109375, -0.0007686614990234375, 0.03631591796875, -0.0209197998046875, 0.00479888916015625, 0.0230560302734375, 0.00152587890625, 0.03143310546875, 0.020477294921875, -0.05450439453125, 0.0025234222412109375, 0.002437591552734375, -0.0092620849609375, -0.015869140625, 0.0618896484375, -0.059844970703125, 0.003795623779296875, 0.0219573974609375, 0.0594482421875, 0.013031005859375, 0.03704833984375, 0.01372528076171875, -0.039306640625, 0.030517578125, -0.0428466796875, 0.04705810546875, -0.045867919921875, 0.01387786865234375, 0.0130767822265625, 0.0200958251953125, 0.008209228515625, -0.05401611328125, -0.004596710205078125, 0.003345489501953125, -0.05194091796875, 0.049346923828125, 0.0148773193359375, 0.032470703125, -0.01123046875, 0.0306549072265625, 0.00881195068359375, 0.05596923828125, -0.04180908203125, -0.0010328292846679688, -0.003509521484375, -0.0131378173828125, 0.037353515625, -0.0092620849609375, 0.05517578125, -0.0367431640625, -0.06427001953125, -0.0074310302734375, 0.0103607177734375, 0.0007348060607910156, -0.00485992431640625, 0.01352691650390625, 0.04473876953125, -0.0396728515625, 0.030181884765625, 0.0060882568359375, -0.0032367706298828125, 0.01224517822265625, -0.044342041015625, -0.0264129638671875, 0.0016078948974609375, 0.058074951171875, 0.034210205078125, -0.0175628662109375, 0.006572723388671875, -0.0011882781982421875, 0.033416748046875, -0.0160675048828125, -0.0122833251953125, 0.0168304443359375, 0.032135009765625, 0.0054168701171875, -0.07366943359375, -0.0037212371826171875, 0.01436614990234375, -0.037506103515625, -0.0234375, 0.0299835205078125, 0.0003154277801513672, 0.01044464111328125, -0.01398468017578125, 0.0242462158203125, 0.049468994140625, -0.0003616809844970703, -0.00981903076171875, 0.031890869140625, 0.05841064453125, -0.00527191162109375, 0.05010986328125, 0.01248931884765625, -0.032562255859375, 0.0208282470703125, 0.03631591796875, 0.09991455078125, 0.03973388671875, -0.0396728515625, -0.01605224609375, 0.00298309326171875, -0.0172271728515625, -0.003337860107421875, 0.028839111328125, -0.00958251953125, 0.002643585205078125, -0.0032939910888671875, 0.00800323486328125, -0.027587890625, -0.006839752197265625, 0.018280029296875, -0.0082244873046875, 0.004093170166015625, -0.0009374618530273438, -0.0648193359375, -0.01390838623046875, -0.035552978515625, 0.004001617431640625, 0.036376953125, 0.072265625, 0.0189971923828125, 0.0267791748046875, 0.0052490234375, 0.012969970703125, -0.009979248046875, -0.0016689300537109375, 0.0008792877197265625, 0.0015916824340820312, 0.007053375244140625, -0.0073699951171875, -0.1241455078125, 0.06634521484375, -0.01043701171875, 0.039642333984375, 0.0838623046875, 0.006195068359375, -0.0074920654296875, -0.0120391845703125, -0.02325439453125, -0.03466796875, -0.0214996337890625, 0.0019664764404296875, -0.0030422210693359375, -0.0024318695068359375, -0.0205230712890625, 0.00225830078125, 0.03411865234375, -0.018951416015625, 0.01165771484375, -0.006870269775390625, 0.0032939910888671875, -0.04925537109375, 0.00830841064453125, 0.018707275390625, 0.041595458984375, -0.0144195556640625, -0.0380859375, 0.0292816162109375, -0.00675201416015625, 0.0009307861328125, -0.01103973388671875, -0.0003590583801269531, -0.01010894775390625, 0.007778167724609375, 0.0251922607421875, -0.013824462890625, 0.0017004013061523438, -0.022216796875, 0.0160980224609375, -0.003574371337890625, -0.0611572265625, -0.0247955322265625, -0.060455322265625, 0.00008028745651245117, 0.03204345703125, -0.0293121337890625, -0.0038242340087890625, -0.027862548828125, -0.0152740478515625, 0.0516357421875, 0.01486968994140625, -0.0565185546875, 0.0372314453125, -0.025146484375, -0.01290130615234375, -0.0016298294067382812, -0.01430511474609375, 0.029815673828125, 0.0161285400390625, -0.0435791015625, -0.0089263916015625, -0.00927734375, 0.002986907958984375, -0.011444091796875, -0.0215301513671875, -0.0092010498046875, 0.002635955810546875, 0.00882720947265625, -0.01045989990234375, 0.001125335693359375, 0.0204315185546875, 0.00036072731018066406, -0.030426025390625, -0.0118255615234375, 0.0013704299926757812, 0.031341552734375, 0.004428863525390625, -0.00388336181640625, 0.0176239013671875, -0.050628662109375, 0.007415771484375, -0.0166168212890625, -0.0033931732177734375, -0.0343017578125, -0.06304931640625, 0.0211639404296875, 0.0016736984252929688, -0.0311126708984375, -0.09063720703125, -0.001758575439453125, -0.01690673828125, 0.03485107421875, -0.024017333984375, -0.015838623046875, -0.012847900390625, 0.08660888671875, -0.0014257431030273438, -0.061920166015625, 0.039459228515625, -0.0028228759765625, -0.0675048828125, 0.0031280517578125, 0.02740478515625, -0.037933349609375, -0.0202178955078125, 0.01203155517578125, -0.00586700439453125, 0.007457733154296875, -0.03912353515625, 0.0242919921875, 0.006885528564453125, 0.048919677734375, 0.0271453857421875, 0.030242919921875, 0.0018358230590820312, 0.010650634765625, -0.017730712890625, 0.0109710693359375, -0.0005068778991699219, -0.0215606689453125, -0.07769775390625, -0.05804443359375, 0.00711822509765625, -0.03179931640625, 0.01385498046875, -0.08441162109375, 0.013702392578125, -0.01027679443359375, 0.0082244873046875, -0.03143310546875, 0.0214691162109375, -0.018951416015625, -0.037017822265625, 0.03204345703125, 0.024810791015625, -0.0413818359375, -0.020782470703125, 0.0260467529296875, -0.0028705596923828125, 0.00716400146484375, 0.0237884521484375, 0.00823974609375, 0.0224609375, 0.09539794921875, 0.05810546875, -0.01136016845703125, -0.0113983154296875, 0.0278472900390625, 0.0312042236328125, 0.052947998046875, -0.0289154052734375, -0.067138671875, 0.00772857666015625, 0.0191650390625, 0.00653076171875, 0.023529052734375, -0.0122528076171875, 0.0164337158203125, -0.00466156005859375, 0.0277099609375, 0.031219482421875, -0.018341064453125, -0.0161285400390625, 0.043304443359375, 0.0196533203125, -0.05230712890625, 0.01287078857421875, -0.022369384765625, 0.0161285400390625, -0.0369873046875, 0.058135986328125, -0.034393310546875, 0.041961669921875, -0.03155517578125, -0.022552490234375, 0.0222015380859375 ]
d72c5190200ffd20570f44d0919ae2dfa502a8f4
Wordpress Stackexchange Q: Get category ID after wp_insert_term I'm using wp_insert_term to create categories, after the category is created I'd like to get its ID: $cat_id = wp_insert_term($name, 'category', array('slug' => $slug) ); ...however when I try to print $cat_id I get Array instead of the actual ID. I guess I have to state which part of the array I need, but I don't really know what the variable for the ID would be? A: It should be a key of term_id, so echo out $cat_id['term_id'] and you should get the new terms ID.
Q: Get category ID after wp_insert_term I'm using wp_insert_term to create categories, after the category is created I'd like to get its ID: $cat_id = wp_insert_term($name, 'category', array('slug' => $slug) ); ...however when I try to print $cat_id I get Array instead of the actual ID. I guess I have to state which part of the array I need, but I don't really know what the variable for the ID would be? A: It should be a key of term_id, so echo out $cat_id['term_id'] and you should get the new terms ID. A: According to the Codex: Return Values (array|WP_Error) The Term ID and Term Taxonomy ID. Example: array( 'term_id'=>12,'term_taxonomy_id'=>34) So try for example: $cid = wp_insert_term( $name, 'category', array( 'slug' => $slug ) ); if ( ! is_wp_error( $cid ) ) { // Get term_id, set default as 0 if not set $cat_id = isset( $cid['term_id'] ) ? $cid['term_id'] : 0; // ... etc ... } else { // Trouble in Paradise: echo $cid->get_error_message(); }
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:448652", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160779" }
[ 0.035797119140625, 0.00783538818359375, -0.042144775390625, -0.042816162109375, 0.0438232421875, -0.04022216796875, 0.029205322265625, 0.004924774169921875, -0.00319671630859375, 0.00783538818359375, -0.02008056640625, -0.01091766357421875, -0.0189361572265625, -0.03857421875, -0.007556915283203125, -0.0404052734375, 0.01342010498046875, -0.027435302734375, -0.005886077880859375, -0.0131378173828125, -0.006481170654296875, -0.01454925537109375, 0.0244903564453125, 0.00650787353515625, 0.0206298828125, -0.02105712890625, 0.0152587890625, -0.03570556640625, 0.006923675537109375, -0.030242919921875, 0.005584716796875, 0.02545166015625, -0.00711822509765625, -0.0140380859375, 0.052947998046875, 0.0458984375, 0.0285186767578125, -0.003963470458984375, 0.0499267578125, 0.0084991455078125, 0.04876708984375, -0.0255279541015625, 0.0445556640625, -0.004924774169921875, 0.01032257080078125, -0.0231475830078125, 0.0262908935546875, -0.0491943359375, 0.00521087646484375, -0.03643798828125, 0.0296478271484375, 0.0301513671875, 0.053497314453125, -0.002521514892578125, -0.005352020263671875, 0.016204833984375, 0.009368896484375, -0.0101470947265625, 0.034759521484375, -0.002269744873046875, -0.0335693359375, -0.0236358642578125, 0.03045654296875, -0.03680419921875, 0.01102447509765625, 0.019744873046875, 0.053192138671875, 0.0211639404296875, -0.043182373046875, -0.0089111328125, 0.010650634765625, -0.0260009765625, -0.00299072265625, -0.0031986236572265625, -0.033660888671875, -0.031402587890625, 0.055755615234375, -0.0133209228515625, -0.00799560546875, 0.0161590576171875, 0.02362060546875, -0.049407958984375, -0.0217132568359375, 0.020660400390625, 0.002803802490234375, 0.040740966796875, -0.00788116455078125, -0.0236358642578125, -0.004146575927734375, -0.029998779296875, -0.0133056640625, -0.0234222412109375, 0.003238677978515625, 0.003265380859375, -0.0174407958984375, -0.03466796875, -0.01430511474609375, 0.05059814453125, -0.0382080078125, 0.0283355712890625, -0.0210113525390625, -0.016326904296875, 0.0287322998046875, -0.054473876953125, 0.0234527587890625, 0.015625, -0.016204833984375, -0.01442718505859375, 0.032196044921875, 0.01328277587890625, -0.01055145263671875, 0.0003819465637207031, 0.006092071533203125, 0.00838470458984375, -0.0251312255859375, 0.0296478271484375, -0.01129913330078125, -0.0101165771484375, -0.0216827392578125, 0.01529693603515625, 0.005931854248046875, 0.0260772705078125, -0.01030731201171875, 0.01021575927734375, 0.007808685302734375, 0.0155792236328125, 0.0018815994262695312, -0.0293121337890625, -0.03131103515625, -0.037811279296875, -0.04052734375, 0.0367431640625, 0.125244140625, 0.07061767578125, 0.04412841796875, -0.004428863525390625, -0.00615692138671875, -0.007106781005859375, 0.004978179931640625, 0.004863739013671875, -0.026214599609375, -0.01059722900390625, 0.039459228515625, -0.0233154296875, 0.005168914794921875, 0.0090484619140625, -0.002918243408203125, 0.0281219482421875, 0.021575927734375, -0.03472900390625, 0.022430419921875, -0.057769775390625, 0.03778076171875, 0.006946563720703125, -0.01271820068359375, 0.00464630126953125, 0.012603759765625, -0.0194854736328125, -0.0248260498046875, -0.028411865234375, 0.02764892578125, 0.0122833251953125, 0.02215576171875, -0.0064544677734375, -0.025604248046875, -0.0238189697265625, -0.0625, -0.01068878173828125, 0.0232391357421875, 0.08355712890625, 0.02362060546875, -0.02374267578125, -0.0233612060546875, 0.0033721923828125, -0.0164947509765625, 0.0030002593994140625, -0.00835418701171875, -0.0347900390625, 0.02783203125, 0.0115814208984375, -0.030029296875, -0.0325927734375, -0.009368896484375, 0.00524139404296875, -0.023406982421875, 0.051788330078125, 0.018829345703125, 0.097412109375, -0.004119873046875, 0.0306549072265625, -0.0042877197265625, 0.0175933837890625, -0.048828125, 0.009307861328125, 0.005977630615234375, 0.0211029052734375, -0.0306854248046875, 0.023834228515625, -0.01256561279296875, -0.033172607421875, -0.004245758056640625, -0.00799560546875, -0.0015878677368164062, 0.0197601318359375, -0.0595703125, 0.0028820037841796875, -0.0235595703125, 0.033355712890625, 0.004497528076171875, 0.012908935546875, 0.01045989990234375, -0.0181121826171875, 0.005321502685546875, -0.052001953125, -0.04620361328125, 0.020477294921875, -0.034423828125, -0.0033550262451171875, -0.03118896484375, 0.0223846435546875, -0.052581787109375, 0.01265716552734375, -0.052032470703125, -0.00608062744140625, 0.044769287109375, 0.01393890380859375, -0.024169921875, -0.01837158203125, 0.023834228515625, 0.0203399658203125, -0.050567626953125, 0.01035308837890625, 0.059783935546875, 0.04150390625, -0.00989532470703125, 0.016448974609375, 0.041717529296875, -0.086669921875, -0.004917144775390625, 0.040252685546875, 0.044525146484375, -0.01132965087890625, -0.019561767578125, -0.0548095703125, 0.0305328369140625, -0.0249786376953125, 0.020294189453125, -0.0460205078125, 0.0205841064453125, 0.07183837890625, -0.005329132080078125, 0.04229736328125, 0.0016222000122070312, -0.00820159912109375, -0.015716552734375, 0.053070068359375, -0.025726318359375, -0.0369873046875, 0.03887939453125, -0.003986358642578125, 0.0011043548583984375, -0.0601806640625, -0.01241302490234375, -0.0294342041015625, 0.035308837890625, 0.0208892822265625, 0.031494140625, 0.0281524658203125, -0.0377197265625, 0.01558685302734375, 0.01311492919921875, -0.0008845329284667969, -0.004940032958984375, 0.018707275390625, 0.022308349609375, 0.00858306884765625, -0.0261383056640625, 0.005451202392578125, -0.00661468505859375, 0.0087738037109375, -0.0065460205078125, 0.07867431640625, 0.028350830078125, -0.0283050537109375, -0.040496826171875, -0.06280517578125, -0.002532958984375, -0.039215087890625, -0.056304931640625, -0.01502227783203125, -0.0020904541015625, 0.07476806640625, -0.0137786865234375, 0.0276336669921875, -0.033782958984375, 0.038421630859375, 0.027313232421875, -0.00600433349609375, 0.00852203369140625, -0.004421234130859375, 0.032562255859375, 0.04962158203125, -0.0035343170166015625, 0.0066986083984375, -0.007236480712890625, -0.00917816162109375, 0.027740478515625, -0.0361328125, -0.0296173095703125, -0.005756378173828125, -0.061126708984375, 0.0171356201171875, 0.0292510986328125, 0.0931396484375, -0.00943756103515625, -0.051727294921875, 0.021270751953125, 0.04254150390625, -0.04620361328125, -0.07489013671875, -0.006488800048828125, -0.0282135009765625, 0.00897216796875, -0.0158538818359375, -0.018280029296875, 0.003940582275390625, -0.01512908935546875, 0.01045989990234375, 0.005039215087890625, -0.051788330078125, -0.06402587890625, -0.07965087890625, -0.06744384765625, -0.0071868896484375, -0.004169464111328125, -0.01255035400390625, 0.018035888671875, 0.0423583984375, 0.0251617431640625, -0.006290435791015625, 0.037445068359375, 0.0435791015625, -0.0250244140625, -0.00571441650390625, -0.0364990234375, -0.033477783203125, 0.00794219970703125, -0.00797271728515625, -0.019073486328125, 0.0081024169921875, 0.0277252197265625, 0.01062774658203125, -0.0086669921875, 0.019012451171875, 0.0343017578125, 0.0048370361328125, 0.007175445556640625, 0.01401519775390625, 0.0604248046875, -0.0202178955078125, 0.0170135498046875, -0.02392578125, -0.0173187255859375, -0.0199737548828125, -0.009918212890625, 0.005931854248046875, -0.01751708984375, -0.01476287841796875, -0.03436279296875, -0.0199432373046875, -0.02484130859375, -0.033843994140625, 0.04693603515625, -0.004596710205078125, -0.0179901123046875, 0.0259552001953125, 0.02099609375, -0.0159149169921875, -0.01519012451171875, -0.0110931396484375, 0.008697509765625, 0.00455474853515625, -0.0200042724609375, -0.036407470703125, -0.050323486328125, 0.031219482421875, -0.050048828125, 0.018524169921875, -0.04766845703125, -0.022796630859375, 0.003513336181640625, 0.077880859375, -0.03662109375, -0.0162811279296875, -0.0008611679077148438, 0.006072998046875, -0.0257568359375, -0.0160980224609375, -0.05841064453125, -0.015472412109375, -0.01556396484375, 0.0190887451171875, 0.0019235610961914062, 0.005672454833984375, -0.037139892578125, 0.067138671875, -0.032073974609375, -0.00447845458984375, 0.043121337890625, -0.07037353515625, 0.03558349609375, 0.019683837890625, 0.032440185546875, -0.031280517578125, -0.03363037109375, -0.018310546875, -0.047515869140625, 0.00395965576171875, -0.00927734375, 0.00547027587890625, -0.00405120849609375, -0.0037841796875, 0.00290679931640625, 0.038543701171875, -0.00494384765625, -0.004421234130859375, -0.0007557868957519531, 0.044647216796875, -0.032257080078125, -0.03173828125, -0.0198822021484375, -0.042236328125, -0.030487060546875, -0.06683349609375, -0.038665771484375, -0.0005459785461425781, -0.0322265625, 0.040313720703125, -0.039520263671875, 0.00823974609375, -0.0292510986328125, -0.04443359375, -0.0109405517578125, 0.0310516357421875, -0.007965087890625, 0.01555633544921875, -0.054443359375, -0.05255126953125, 0.079345703125, 0.0008435249328613281, 0.0035400390625, -0.0197601318359375, 0.1097412109375, 0.01442718505859375, -0.033538818359375, -0.019561767578125, 0.0102691650390625, 0.04339599609375, 0.0159149169921875, 0.0173797607421875, -0.00390625, -0.031585693359375, 0.03338623046875, 0.0274200439453125, -0.00884246826171875, -0.0258636474609375, 0.072998046875, -0.00556182861328125, -0.0115203857421875, 0.0018177032470703125, -0.03472900390625, 0.012939453125, -0.01299285888671875, -0.034515380859375, -0.00748443603515625, -0.0196380615234375, 0.045501708984375, -0.0367431640625, 0.07830810546875, -0.0226287841796875, -0.042816162109375, 0.027008056640625, -0.011566162109375, 0.004852294921875, 0.020904541015625, 0.0017824172973632812, 0.00888824462890625, -0.0221710205078125, -0.015960693359375, -0.01395416259765625, -0.0318603515625, -0.0024509429931640625, 0.0078582763671875, -0.0207366943359375, -0.0188446044921875, -0.0001208186149597168, 0.00988006591796875, -0.00074005126953125, -0.01206207275390625, -0.018157958984375, -0.0311126708984375, 0.004608154296875, -0.02264404296875, 0.029815673828125, -0.035400390625, -0.00643157958984375, 0.0241851806640625, 0.01561737060546875, 0.00893402099609375, -0.02935791015625, 0.00885772705078125, 0.001331329345703125, -0.0023174285888671875, 0.0004858970642089844, -0.01424407958984375, 0.0245819091796875, 0.052642822265625, -0.0123138427734375, 0.03216552734375, -0.01085662841796875, 0.04266357421875, -0.00626373291015625, 0.038330078125, 0.0057220458984375, -0.0218353271484375, 0.0210418701171875, -0.008148193359375, -0.0160675048828125, -0.060455322265625, 0.021697998046875, 0.00797271728515625, 0.055999755859375, -0.0171051025390625, -0.0489501953125, 0.032806396484375, -0.0307769775390625, -0.013336181640625, 0.008758544921875, -0.036895751953125, -0.033782958984375, -0.01276397705078125, 0.00727081298828125, 0.006465911865234375, -0.0103302001953125, 0.00026726722717285156, 0.007030487060546875, -0.0142364501953125, 0.02642822265625, -0.00554656982421875, 0.01436614990234375, -0.0307769775390625, -0.0181884765625, -0.03741455078125, -0.0169830322265625, -0.018798828125, 0.04193115234375, 0.006855010986328125, -0.02581787109375, -0.055419921875, 0.04937744140625, 0.004238128662109375, 0.05926513671875, -0.035614013671875, -0.035247802734375, 0.0050048828125, -0.005283355712890625, 0.043365478515625, 0.023895263671875, -0.000553131103515625, -0.0171356201171875, -0.0235443115234375, -0.00937652587890625, 0.039886474609375, -0.007720947265625, 0.01056671142578125, -0.01280975341796875, -0.02056884765625, 0.0186767578125, -0.0054931640625, 0.022216796875, -0.0005292892456054688, 0.0230255126953125, -0.0016117095947265625, 0.00624847412109375, 0.02020263671875, -0.0232696533203125, 0.0228729248046875, -0.0007581710815429688, 0.02459716796875, -0.01343536376953125, 0.003559112548828125, -0.034576416015625, -0.0191497802734375, -0.03961181640625, 0.017364501953125, -0.01442718505859375, 0.0174713134765625, 0.00949859619140625, 0.0211334228515625, 0.00738525390625, 0.0214996337890625, 0.01806640625, 0.01198577880859375, -0.0031280517578125, -0.06689453125, 0.04571533203125, -0.017791748046875, 0.073486328125, -0.04571533203125, -0.0272216796875, 0.00653839111328125, 0.0592041015625, 0.01250457763671875, -0.058197021484375, 0.0011281967163085938, 0.0266876220703125, -0.006011962890625, 0.033721923828125, 0.05950927734375, 0.0183563232421875, 0.054412841796875, 0.0008788108825683594, 0.029052734375, 0.006549835205078125, 0.03424072265625, -0.0006771087646484375, -0.0287933349609375, 0.05413818359375, 0.0172576904296875, 0.00635528564453125, 0.037750244140625, -0.023101806640625, -0.0235137939453125, -0.0090179443359375, 0.029693603515625, 0.00788116455078125, -0.004428863525390625, 0.02923583984375, -0.03167724609375, -0.03985595703125, 0.0250244140625, -0.03314208984375, -0.0269317626953125, 0.00658416748046875, -0.033416748046875, -0.0148468017578125, 0.0104522705078125, 0.00983428955078125, 0.0006895065307617188, -0.0181884765625, 0.031463623046875, 0.0204315185546875, -0.0136566162109375, 0.01319122314453125, -0.007122039794921875, 0.0277557373046875, -0.06341552734375, 0.006832122802734375, 0.04052734375, 0.00328826904296875, -0.0570068359375, 0.09912109375, 0.0244140625, 0.033111572265625, 0.0158538818359375, -0.0036754608154296875, 0.033935546875, 0.00392913818359375, 0.0208892822265625, -0.019439697265625, -0.022552490234375, -0.01522064208984375, 0.01139068603515625, -0.0084686279296875, -0.005680084228515625, 0.037384033203125, -0.0247802734375, 0.0092315673828125, -0.00560760498046875, 0.01702880859375, -0.00852203369140625, 0.0031833648681640625, 0.064208984375, -0.046539306640625, 0.006267547607421875, 0.02703857421875, 0.050628662109375, 0.00803375244140625, -0.0110321044921875, 0.0266876220703125, -0.029022216796875, 0.014678955078125, 0.0180511474609375, 0.03118896484375, -0.006610870361328125, -0.0046844482421875, -0.0684814453125, 0.06378173828125, 0.01119232177734375, 0.0343017578125, 0.000255584716796875, 0.005863189697265625, -0.019256591796875, -0.0108642578125, -0.04693603515625, 0.041778564453125, 0.028472900390625, 0.0256195068359375, -0.055877685546875, -0.027740478515625, -0.00278472900390625, 0.0484619140625, 0.09735107421875, 0.0200958251953125, -0.007114410400390625, -0.0034008026123046875, 0.02850341796875, 0.015533447265625, -0.04595947265625, 0.013214111328125, 0.00731658935546875, -0.000331878662109375, 0.06329345703125, -0.0142669677734375, 0.034149169921875, -0.000942230224609375, 0.0078887939453125, 0.005588531494140625, 0.0196685791015625, 0.04693603515625, -0.01708984375, -0.0032958984375, -0.01316070556640625, -0.01012420654296875, 0.00598907470703125, -0.0244293212890625, 0.01364898681640625, 0.063720703125, 0.05596923828125, -0.0276947021484375, 0.021209716796875, -0.0478515625, 0.08050537109375, -0.00116729736328125, 0.00978851318359375, 0.046295166015625, 0.0130615234375, 0.061126708984375, 0.0128631591796875, 0.00965118408203125, 0.02203369140625, 0.0091552734375, 0.05908203125, 0.025177001953125, 0.0171966552734375, -0.040863037109375, -0.0013275146484375, 0.049224853515625, 0.07843017578125, -0.047149658203125, -0.0401611328125, 0.014129638671875, 0.035919189453125, 0.0139923095703125, 0.0294647216796875, 0.0631103515625, 0.024932861328125, 0.0782470703125, -0.049346923828125, -0.0035037994384765625, 0.030426025390625, 0.03033447265625, 0.0034694671630859375, -0.002475738525390625, -0.0338134765625, -0.0308990478515625, -0.0736083984375, 0.056549072265625, 0.01218414306640625, 0.045379638671875, 0.0027065277099609375, 0.04998779296875, 0.0169830322265625, -0.0091094970703125, -0.0031528472900390625, 0.04705810546875, 0.055511474609375, -0.009002685546875, 0.0143280029296875, 0.00771331787109375, 0.0291290283203125, -0.0054168701171875, 0.01580810546875, 0.0601806640625, 0.061126708984375, 0.032745361328125, -0.01102447509765625, 0.00010603666305541992, 0.043792724609375, -0.031646728515625, 0.0017032623291015625, -0.03863525390625, 0.05413818359375, 0.0467529296875, 0.01180267333984375, -0.00527191162109375, 0.0159912109375, 0.07183837890625, 0.0008268356323242188, 0.045867919921875, 0.002323150634765625, -0.0263671875, 0.0303497314453125, -0.0192108154296875, 0.04669189453125, 0.01316070556640625, -0.08599853515625, -0.01316070556640625, -0.051422119140625, -0.01462554931640625, 0.0192413330078125, 0.0231475830078125, 0.004810333251953125, 0.019012451171875, -0.00959014892578125, -0.035491943359375, 0.02154541015625, 0.0011739730834960938, 0.010986328125, -0.0033512115478515625, -0.0081329345703125, -0.0208587646484375, -0.056488037109375, -0.0084381103515625, 0.0162811279296875, -0.01727294921875, 0.0198516845703125, -0.000053048133850097656, 0.0458984375, -0.0116119384765625, -0.044586181640625, 0.03826904296875, -0.08123779296875, -0.060638427734375, 0.0791015625, -0.0192413330078125, -0.00878143310546875, 0.002231597900390625, -0.046112060546875, 0.01360321044921875, 0.023895263671875, 0.0069122314453125, 0.0074005126953125, -0.0293426513671875, 0.0299224853515625, 0.01406097412109375, 0.07623291015625, -0.006603240966796875, -0.0016889572143554688, -0.042572021484375, -0.04443359375, 0.060211181640625, 0.0540771484375, 0.016876220703125, 0.0010004043579101562, -0.022918701171875, 0.0046539306640625, 0.01273345947265625, 0.011688232421875, -0.006694793701171875, 0.0153045654296875, -0.045867919921875, 0.01279449462890625, -0.003849029541015625, -0.0158538818359375, -0.0026416778564453125, 0.0104217529296875, -0.02215576171875, 0.0027446746826171875, -0.0088958740234375, 0.0088958740234375, 0.031280517578125, 0.0462646484375, -0.0181427001953125, 0.034820556640625, 0.0003859996795654297, 0.0135040283203125, 0.01432037353515625, -0.0760498046875, -0.051727294921875, -0.053375244140625, 0.0228424072265625, 0.04010009765625, -0.0172119140625, -0.005207061767578125, -0.06304931640625, 0.004215240478515625, 0.04779052734375, -0.01154327392578125, -0.0107269287109375, 0.0083160400390625, -0.035003662109375, 0.027191162109375, -0.00899505615234375, 0.008148193359375, 0.00463104248046875, 0.033660888671875, -0.063232421875, 0.01331329345703125, -0.0048065185546875, -0.0185546875, -0.01403045654296875, 0.0148773193359375, 0.00775909423828125, -0.0216827392578125, -0.0238800048828125, 0.033233642578125, 0.0264892578125, 0.060638427734375, 0.0245208740234375, -0.02069091796875, -0.0243988037109375, 0.03314208984375, -0.02734375, -0.041748046875, 0.0300750732421875, -0.02801513671875, -0.025726318359375, -0.036041259765625, 0.026702880859375, 0.03692626953125, -0.03497314453125, -0.0521240234375, 0.005084991455078125, -0.01617431640625, -0.03460693359375, -0.0007367134094238281, -0.00994873046875, -0.014739990234375, -0.018707275390625, -0.0065155029296875, -0.0038547515869140625, -0.01097869873046875, 0.037078857421875, 0.0185546875, 0.01065826416015625, 0.056396484375, -0.0283203125, -0.0662841796875, -0.00942230224609375, -0.00992584228515625, 0.039093017578125, -0.006683349609375, 0.014801025390625, -0.015777587890625, 0.022979736328125, -0.050018310546875, -0.038787841796875, -0.027252197265625, 0.0225677490234375, -0.007904052734375, -0.03582763671875, -0.0103759765625, 0.025054931640625, 0.045501708984375, 0.03717041015625, 0.00511932373046875, -0.0618896484375, -0.044464111328125, -0.038116455078125, -0.0155487060546875, -0.0284271240234375, 0.0232086181640625, -0.0899658203125, -0.0013637542724609375, 0.01702880859375, -0.01666259765625, 0.0021343231201171875, -0.0117340087890625, -0.048797607421875, 0.0029697418212890625, -0.031585693359375, -0.008453369140625, -0.04302978515625, 0.02239990234375, 0.01097869873046875, -0.042022705078125, -0.05743408203125, -0.025726318359375, 0.01078033447265625, -0.045928955078125, -0.0882568359375, 0.00925445556640625, 0.032073974609375, -0.0210418701171875, -0.00412750244140625, 0.0177154541015625, -0.002407073974609375, -0.0015411376953125, 0.00016415119171142578, -0.02166748046875, 0.0254669189453125, -0.010467529296875, 0.00675201416015625, -0.016265869140625, 0.05950927734375, 0.0189971923828125, 0.074462890625, -0.005908966064453125, -0.0036602020263671875, 0.005977630615234375, 0.0518798828125, -0.03741455078125, -0.0189208984375, -0.0108795166015625, -0.037811279296875, 0.0016651153564453125, 0.0037441253662109375, 0.0074615478515625, -0.0151214599609375, -0.0006079673767089844, -0.0132598876953125, 0.0018405914306640625, 0.01436614990234375 ]
45edad10e42dafc1d4851839c4e3cf07b938f17f
Wordpress Stackexchange Q: How to Create a Cookieless Domain in Wordpress How do you create a 'cookieless' domain for WordPress? A: Using "cookieless" domain for serving static assets is common recommendation performance tools give. The reasoning being that cookies do nothing at all for such files, but still consume resources. It is, however, not something WP can handle for following reasons: * *WordPress does not control domain. DNS points domain to specific server's IP address, where WP installation (configured accordingly) responds to requests. *WordPress does not work without cookies. They are necessary for authentication and without them you wouldn't be able to access WP administration area. So creating such domain is a task that is both separate from WordPress and more so it should be isolated from WP installation, or it will add cookies and you are back to original issue.
Q: How to Create a Cookieless Domain in Wordpress How do you create a 'cookieless' domain for WordPress? A: Using "cookieless" domain for serving static assets is common recommendation performance tools give. The reasoning being that cookies do nothing at all for such files, but still consume resources. It is, however, not something WP can handle for following reasons: * *WordPress does not control domain. DNS points domain to specific server's IP address, where WP installation (configured accordingly) responds to requests. *WordPress does not work without cookies. They are necessary for authentication and without them you wouldn't be able to access WP administration area. So creating such domain is a task that is both separate from WordPress and more so it should be isolated from WP installation, or it will add cookies and you are back to original issue. A: The easiest way is to create a new subdomain (static.example.com) on the same server and use .htaccess rules to serve the files located under the wordpress directories. Now you need to write a plugin which will change the domain from which static content like images and JS files are served. You can do it by buffering the generated HTML page and before outputing it change all images that have src="http://example.con...." to sec="http://static.example.com...." and do the same for all the other static resources. Does it worth the effort? by default wordpress cookies are relatively small and their removal will not have a big impact and on the con side you will have to "pay" for an additional domain name resolution for static.example.com. Might be worth it if you serve many static files but I don't remember seeing any benchmark that tests it.
wordpress
{ "language": "en", "length": 281, "provenance": "stackexchange_00019.jsonl.gz:448656", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160792" }
[ 0.071044921875, -0.000545501708984375, 0.0172882080078125, 0.005908966064453125, 0.0085906982421875, -0.03753662109375, 0.0703125, -0.035797119140625, -0.0390625, 0.0083770751953125, -0.012115478515625, 0.027374267578125, -0.0256195068359375, -0.037078857421875, 0.031768798828125, -0.033843994140625, 0.0117034912109375, -0.0121612548828125, 0.007457733154296875, -0.046630859375, 0.038360595703125, -0.033599853515625, 0.00745391845703125, 0.041473388671875, 0.0296173095703125, -0.06951904296875, 0.051177978515625, -0.0166168212890625, 0.0263214111328125, -0.00965118408203125, 0.02301025390625, -0.004993438720703125, -0.005962371826171875, 0.036407470703125, -0.01186370849609375, 0.0152587890625, 0.0112457275390625, 0.0209808349609375, 0.0482177734375, -0.0011835098266601562, 0.0032520294189453125, 0.0149383544921875, 0.05938720703125, 0.03814697265625, 0.006855010986328125, -0.032562255859375, 0.00390625, -0.057708740234375, 0.027801513671875, 0.0360107421875, -0.0185394287109375, 0.01666259765625, -0.0078125, 0.02288818359375, -0.00894927978515625, -0.03680419921875, 0.060089111328125, -0.003490447998046875, 0.03314208984375, -0.08453369140625, -0.0625, 0.0217742919921875, 0.0413818359375, 0.031463623046875, 0.0161590576171875, -0.01055908203125, -0.02252197265625, 0.016448974609375, -0.04681396484375, 0.038726806640625, 0.0421142578125, -0.0440673828125, 0.0290679931640625, -0.01824951171875, 0.0210723876953125, 0.009124755859375, -0.040618896484375, 0.0060882568359375, 0.03814697265625, 0.005290985107421875, 0.0290069580078125, -0.0190277099609375, -0.0303802490234375, -0.0112457275390625, 0.01995849609375, 0.0197296142578125, -0.00543212890625, -0.0272369384765625, -0.01221466064453125, -0.03509521484375, -0.0173492431640625, -0.0222015380859375, -0.019866943359375, 0.0105133056640625, -0.01097869873046875, -0.037567138671875, 0.02911376953125, -0.0113525390625, 0.031036376953125, -0.0172576904296875, 0.038543701171875, -0.058837890625, 0.0189971923828125, 0.0108795166015625, -0.0152435302734375, 0.035430908203125, 0.01232147216796875, -0.01148223876953125, 0.00013828277587890625, 0.01470947265625, -0.01617431640625, -0.022125244140625, -0.005016326904296875, -0.01247406005859375, -0.0419921875, 0.0033206939697265625, -0.0299072265625, -0.00832366943359375, -0.005359649658203125, -0.01346588134765625, -0.0379638671875, -0.0269317626953125, 0.02984619140625, 0.036895751953125, 0.0455322265625, 0.03997802734375, 0.01259613037109375, -0.0258941650390625, 0.004425048828125, 0.010406494140625, -0.0269317626953125, 0.00574493408203125, 0.036529541015625, 0.03265380859375, -0.002788543701171875, -0.0145263671875, 0.0214996337890625, -0.032623291015625, -0.01435089111328125, 0.0163116455078125, 0.0205535888671875, -0.04608154296875, -0.00569915771484375, -0.0005974769592285156, 0.026519775390625, 0.006256103515625, 0.030426025390625, 0.0264892578125, -0.0009899139404296875, -0.013427734375, 0.00004029273986816406, 0.01511383056640625, 0.035888671875, -0.01493072509765625, -0.005535125732421875, -0.033843994140625, -0.0213775634765625, -0.0269012451171875, 0.012298583984375, -0.0004668235778808594, -0.0103302001953125, 0.00701141357421875, 0.030487060546875, -0.0018434524536132812, 0.01325225830078125, -0.0237884521484375, -0.0296478271484375, 0.00167083740234375, 0.0304412841796875, 0.0190277099609375, 0.03509521484375, -0.02679443359375, 0.03179931640625, 0.0022830963134765625, -0.00785064697265625, 0.01120758056640625, -0.0015764236450195312, 0.0155792236328125, 0.0219268798828125, 0.025390625, 0.022613525390625, -0.006641387939453125, 0.062103271484375, 0.00670623779296875, -0.0250396728515625, 0.051055908203125, -0.012054443359375, 0.051025390625, 0.00139617919921875, 0.01041412353515625, -0.042083740234375, 0.0244903564453125, -0.030548095703125, 0.0343017578125, 0.001995086669921875, -0.031402587890625, -0.029754638671875, -0.01201629638671875, -0.0120849609375, -0.006557464599609375, 0.00030922889709472656, -0.0050811767578125, 0.021697998046875, 0.007106781005859375, 0.0577392578125, -0.0163116455078125, 0.0232696533203125, -0.00344085693359375, 0.025787353515625, 0.0250091552734375, 0.0107269287109375, 0.02838134765625, -0.006561279296875, -0.038726806640625, -0.060150146484375, -0.0215911865234375, -0.03350830078125, 0.034698486328125, -0.0037078857421875, 0.013916015625, -0.01291656494140625, -0.0105438232421875, -0.0092620849609375, -0.03021240234375, 0.018890380859375, -0.01276397705078125, 0.00460052490234375, -0.0126800537109375, 0.0281219482421875, 0.0089569091796875, -0.0089263916015625, 0.00028252601623535156, 0.0014390945434570312, 0.04461669921875, -0.005954742431640625, -0.027679443359375, -0.02752685546875, -0.0767822265625, 0.02239990234375, 0.052703857421875, 0.019073486328125, 0.0704345703125, -0.0073394775390625, 0.0074920654296875, 0.016265869140625, -0.058441162109375, -0.00841522216796875, 0.004413604736328125, -0.0135345458984375, 0.057464599609375, 0.032073974609375, 0.01161956787109375, -0.006397247314453125, -0.037109375, -0.026824951171875, 0.0222015380859375, -0.025360107421875, -0.020416259765625, 0.00937652587890625, -0.00994873046875, 0.011505126953125, 0.034332275390625, 0.0008263587951660156, 0.0074005126953125, -0.037109375, 0.025360107421875, 0.0038089752197265625, 0.0123291015625, -0.00815582275390625, 0.018646240234375, 0.0211334228515625, -0.02581787109375, 0.010162353515625, 0.037872314453125, 0.0389404296875, -0.0012998580932617188, -0.0233917236328125, -0.028289794921875, 0.03558349609375, 0.02471923828125, -0.047698974609375, -0.01343536376953125, -0.03521728515625, -0.020172119140625, -0.006824493408203125, -0.0394287109375, 0.01494598388671875, -0.038604736328125, 0.00409698486328125, -0.0308380126953125, 0.0125885009765625, 0.00495147705078125, -0.0309295654296875, 0.0306396484375, 0.0350341796875, -0.047027587890625, 0.01861572265625, -0.065185546875, 0.024261474609375, -0.0018777847290039062, 0.08941650390625, 0.092529296875, 0.0218505859375, 0.0152740478515625, -0.01137542724609375, 0.015655517578125, -0.0135345458984375, -0.01522064208984375, -0.030548095703125, -0.0113677978515625, -0.03887939453125, 0.016815185546875, 0.0169525146484375, 0.01385498046875, 0.0025768280029296875, -0.0264434814453125, -0.00980377197265625, 0.004001617431640625, -0.051910400390625, -0.0655517578125, -0.00861358642578125, -0.034454345703125, 0.0203399658203125, -0.0085296630859375, -0.00917816162109375, -0.0240020751953125, 0.0274658203125, 0.00855255126953125, -0.0164642333984375, -0.044464111328125, -0.0185699462890625, -0.06158447265625, -0.0478515625, -0.0155029296875, 0.00577545166015625, 0.0005736351013183594, -0.0003256797790527344, 0.0086669921875, -0.00800323486328125, -0.0196990966796875, 0.009796142578125, 0.049468994140625, 0.00266265869140625, -0.01297760009765625, -0.0117034912109375, -0.001003265380859375, -0.00978851318359375, 0.00835418701171875, 0.000017523765563964844, 0.002132415771484375, 0.01319122314453125, -0.0207061767578125, -0.032745361328125, -0.033538818359375, -0.025848388671875, -0.00942230224609375, 0.024017333984375, -0.0230560302734375, -0.0195159912109375, -0.057464599609375, 0.0218658447265625, -0.00870513916015625, -0.01104736328125, -0.043426513671875, -0.003787994384765625, -0.017181396484375, -0.0278167724609375, 0.0030117034912109375, -0.01068878173828125, -0.01444244384765625, 0.0179443359375, -0.01041412353515625, -0.0121917724609375, -0.01055145263671875, -0.015777587890625, -0.0063018798828125, 0.07470703125, 0.006336212158203125, -0.0265655517578125, 0.0243377685546875, 0.010711669921875, -0.01403045654296875, -0.006744384765625, -0.093017578125, -0.0253143310546875, 0.039093017578125, -0.031768798828125, 0.00489044189453125, -0.0287017822265625, -0.0217437744140625, -0.0067901611328125, 0.0718994140625, -0.055389404296875, -0.0114288330078125, 0.0254669189453125, 0.03839111328125, -0.01026153564453125, -0.04302978515625, -0.03851318359375, -0.0240936279296875, -0.034210205078125, 0.058349609375, 0.0068511962890625, 0.029205322265625, -0.02325439453125, -0.024810791015625, 0.01091766357421875, -0.0416259765625, 0.0150604248046875, -0.0102996826171875, 0.0440673828125, -0.0308074951171875, 0.03814697265625, -0.04229736328125, 0.019561767578125, -0.045623779296875, -0.0193939208984375, -0.00061798095703125, 0.019744873046875, 0.00027060508728027344, -0.00720977783203125, 0.02740478515625, -0.00704193115234375, 0.02264404296875, -0.031494140625, 0.01418304443359375, -0.002227783203125, 0.05352783203125, -0.05023193359375, -0.01285552978515625, -0.016265869140625, -0.039825439453125, 0.005977630615234375, -0.0216064453125, -0.0023212432861328125, 0.0115966796875, -0.041961669921875, -0.016448974609375, -0.024200439453125, -0.0179290771484375, -0.019927978515625, -0.047119140625, -0.01490020751953125, 0.0245513916015625, -0.0092926025390625, -0.004062652587890625, -0.039764404296875, -0.0253753662109375, 0.038970947265625, 0.02294921875, 0.0282745361328125, 0.0003380775451660156, 0.10308837890625, 0.0104827880859375, -0.029449462890625, -0.021209716796875, -0.04296875, 0.0055084228515625, -0.006961822509765625, 0.0194244384765625, -0.01242828369140625, -0.0197296142578125, 0.048797607421875, -0.0264434814453125, 0.00812530517578125, 0.0156402587890625, 0.0157623291015625, -0.01605224609375, -0.03826904296875, 0.022247314453125, -0.01335906982421875, -0.01568603515625, 0.01226806640625, 0.007381439208984375, 0.00295257568359375, -0.00689697265625, 0.02130126953125, 0.0168609619140625, -0.0205230712890625, -0.01580810546875, -0.0208740234375, 0.00818634033203125, -0.0311126708984375, 0.0289154052734375, 0.0294342041015625, -0.0017938613891601562, 0.022552490234375, 0.0257415771484375, -0.005367279052734375, -0.0194091796875, -0.0191650390625, 0.012115478515625, 0.02581787109375, 0.0164794921875, 0.0157928466796875, -0.023406982421875, -0.0245361328125, 0.1175537109375, 0.0091094970703125, -0.0631103515625, 0.01082611083984375, -0.0242156982421875, -0.010833740234375, 0.0435791015625, 0.005138397216796875, 0.053955078125, -0.010650634765625, -0.0220184326171875, -0.0025157928466796875, -0.034637451171875, -0.0194854736328125, -0.0457763671875, 0.062225341796875, 0.0170745849609375, -0.0016107559204101562, 0.0118408203125, 0.0616455078125, 0.031005859375, 0.024749755859375, -0.0173187255859375, 0.043701171875, 0.040374755859375, 0.058807373046875, 0.002437591552734375, -0.03594970703125, -0.0272369384765625, 0.07318115234375, -0.014862060546875, -0.040435791015625, -0.018218994140625, 0.032806396484375, 0.025970458984375, -0.0252685546875, -0.0145721435546875, 0.026885986328125, 0.005260467529296875, 0.02911376953125, 0.0212554931640625, 0.000530242919921875, -0.0139617919921875, -0.005523681640625, -0.006916046142578125, 0.0200347900390625, -0.030853271484375, 0.0009441375732421875, 0.0134124755859375, -0.0172882080078125, 0.0113067626953125, 0.046630859375, -0.01352691650390625, -0.005474090576171875, -0.01219940185546875, -0.041534423828125, -0.015655517578125, 0.025787353515625, -0.03753662109375, -0.0224609375, -0.00992584228515625, -0.014068603515625, 0.031219482421875, -0.047607421875, 0.023773193359375, -0.0274658203125, 0.0149993896484375, -0.0184326171875, 0.0309295654296875, -0.01190185546875, 0.003253936767578125, -0.038970947265625, -0.02386474609375, -0.031524658203125, -0.019500732421875, 0.0204620361328125, 0.0185699462890625, -0.01380157470703125, 0.0066070556640625, 0.02581787109375, 0.02783203125, 0.002223968505859375, -0.05584716796875, 0.0170440673828125, -0.035369873046875, 0.0024261474609375, -0.03265380859375, -0.0017871856689453125, 0.0093994140625, 0.0009546279907226562, -0.0017032623291015625, 0.0027828216552734375, -0.006092071533203125, -0.00040531158447265625, -0.01678466796875, 0.0072784423828125, -0.0465087890625, -0.0299835205078125, -0.036346435546875, -0.0183563232421875, 0.04034423828125, 0.072021484375, -0.0102386474609375, 0.00847625732421875, -0.00936126708984375, -0.0011053085327148438, -0.0235595703125, 0.017974853515625, -0.006946563720703125, 0.03228759765625, -0.046661376953125, 0.0006084442138671875, 0.0256195068359375, -0.03436279296875, -0.034912109375, 0.00925445556640625, -0.01387786865234375, 0.01215362548828125, 0.028533935546875, -0.0158538818359375, 0.04351806640625, 0.0347900390625, -0.01360321044921875, 0.0208892822265625, -0.01264190673828125, -0.0015840530395507812, 0.01477813720703125, 0.0158843994140625, -0.057464599609375, -0.061248779296875, 0.08251953125, 0.04229736328125, -0.052154541015625, 0.09271240234375, -0.043304443359375, 0.045440673828125, 0.09857177734375, 0.09832763671875, -0.14453125, 0.012786865234375, 0.0285186767578125, -0.0318603515625, 0.0030231475830078125, 0.006053924560546875, 0.0135650634765625, 0.00757598876953125, 0.03704833984375, -0.0206451416015625, -0.00473785400390625, 0.01477813720703125, -0.007381439208984375, -0.001232147216796875, 0.0061187744140625, 0.06787109375, 0.01232147216796875, -0.0247650146484375, -0.00923919677734375, 0.023162841796875, 0.0172882080078125, -0.0186004638671875, 0.0303802490234375, 0.035400390625, -0.017791748046875, -0.054962158203125, 0.036407470703125, 0.0118408203125, -0.040374755859375, 0.0168609619140625, 0.020050048828125, 0.049407958984375, 0.057159423828125, -0.005443572998046875, 0.01255035400390625, 0.03619384765625, 0.02777099609375, -0.02349853515625, -0.031951904296875, 0.043670654296875, -0.03155517578125, -0.044952392578125, 0.020599365234375, -0.038543701171875, -0.0555419921875, -0.024749755859375, -0.026123046875, 0.07086181640625, -0.025238037109375, -0.01611328125, 0.02972412109375, 0.04254150390625, -0.031097412109375, -0.034271240234375, 0.01263427734375, -0.06866455078125, -0.013763427734375, -0.023529052734375, -0.022796630859375, 0.0014562606811523438, -0.0330810546875, -0.06573486328125, 0.09259033203125, 0.0166168212890625, 0.006626129150390625, -0.0252227783203125, 0.05169677734375, -0.0128936767578125, 0.028961181640625, -0.025177001953125, -0.00513458251953125, -0.01204681396484375, 0.013214111328125, -0.016571044921875, -0.00925445556640625, -0.0233154296875, 0.0196380615234375, 0.052154541015625, 0.01251983642578125, -0.03594970703125, -0.0236968994140625, 0.006931304931640625, 0.004421234130859375, -0.0267333984375, 0.058807373046875, -0.052032470703125, 0.01244354248046875, -0.0098876953125, -0.042022705078125, 0.0132293701171875, -0.003604888916015625, -0.07208251953125, -0.0166168212890625, 0.014617919921875, -0.00677490234375, 0.035614013671875, 0.0017948150634765625, -0.060333251953125, 0.035400390625, 0.0438232421875, 0.03375244140625, 0.01079559326171875, 0.01605224609375, 0.0141448974609375, -0.0228271484375, -0.01544189453125, -0.0282745361328125, 0.03765869140625, -0.01059722900390625, 0.0091552734375, 0.023712158203125, 0.0237884521484375, -0.0188446044921875, 0.004100799560546875, 0.0156707763671875, 0.02398681640625, -0.041107177734375, -0.0063629150390625, 0.00792694091796875, 0.0227508544921875, -0.02655029296875, -0.03851318359375, 0.035919189453125, 0.028228759765625, -0.005035400390625, 0.0034847259521484375, -0.0031070709228515625, 0.008056640625, 0.06378173828125, -0.018035888671875, 0.09930419921875, 0.0228118896484375, -0.020477294921875, -0.0252532958984375, 0.0212249755859375, 0.051605224609375, -0.00823211669921875, 0.00893402099609375, 0.06768798828125, -0.048370361328125, 0.0265960693359375, -0.02301025390625, -0.02508544921875, 0.0384521484375, 0.050201416015625, 0.005741119384765625, 0.0521240234375, -0.01226806640625, -0.0252838134765625, 0.00811767578125, 0.0240478515625, 0.0030956268310546875, 0.01558685302734375, -0.0369873046875, -0.0295562744140625, 0.038604736328125, 0.0312347412109375, 0.040069580078125, 0.0225067138671875, 0.074951171875, 0.056854248046875, -0.0139923095703125, -0.005435943603515625, 0.0093994140625, -0.0149688720703125, 0.037872314453125, -0.00856781005859375, 0.00868988037109375, -0.0027446746826171875, -0.031097412109375, -0.0296630859375, -0.0033168792724609375, 0.044952392578125, -0.00493621826171875, 0.0118560791015625, -0.005893707275390625, -0.035186767578125, 0.047271728515625, -0.049163818359375, 0.061676025390625, -0.014007568359375, -0.043701171875, -0.0250091552734375, 0.0120391845703125, 0.03448486328125, 0.00439453125, 0.02740478515625, -0.00696563720703125, 0.0232391357421875, 0.02984619140625, 0.0185546875, -0.0028553009033203125, -0.0162200927734375, 0.006038665771484375, -0.022613525390625, 0.031829833984375, 0.0123748779296875, -0.021820068359375, -0.0196533203125, 0.00024366378784179688, 0.040130615234375, -0.00006026029586791992, 0.06512451171875, -0.0306549072265625, 0.0013151168823242188, 0.0007119178771972656, -0.0064697265625, 0.002132415771484375, 0.00012373924255371094, -0.01300811767578125, -0.002918243408203125, 0.006008148193359375, -0.0091552734375, -0.0423583984375, 0.0234832763671875, 0.0121917724609375, -0.00994873046875, 0.01331329345703125, 0.004302978515625, 0.01605224609375, 0.00760650634765625, 0.02081298828125, -0.032470703125, -0.0982666015625, -0.07366943359375, 0.047943115234375, -0.01273345947265625, 0.004917144775390625, -0.06927490234375, 0.04522705078125, -0.032623291015625, -0.03619384765625, 0.01108551025390625, -0.0780029296875, 0.0202178955078125, 0.0245513916015625, 0.0167083740234375, -0.013458251953125, -0.034820556640625, -0.0194854736328125, -0.000024378299713134766, -0.032989501953125, 0.03839111328125, -0.04864501953125, -0.040924072265625, 0.01690673828125, 0.01953125, 0.036163330078125, -0.054779052734375, 0.021728515625, 0.009552001953125, 0.00951385498046875, 0.055694580078125, 0.01021575927734375, -0.040802001953125, -0.044036865234375, 0.0039520263671875, 0.009307861328125, -0.032073974609375, -0.04669189453125, -0.09173583984375, 0.0063323974609375, 0.0290069580078125, 0.0137786865234375, -0.055816650390625, 0.04852294921875, -0.042510986328125, 0.01776123046875, -0.00036644935607910156, 0.01126861572265625, -0.00738525390625, 0.007518768310546875, -0.044342041015625, -0.062744140625, -0.01390838623046875, 0.055206298828125, -0.0214385986328125, 0.0021724700927734375, 0.020599365234375, -0.0116424560546875, 0.0029048919677734375, 0.01105499267578125, -0.00916290283203125, 0.060394287109375, -0.035919189453125, 0.028472900390625, 0.03997802734375, -0.0222930908203125, -0.07855224609375, -0.07379150390625, 0.03680419921875, -0.0863037109375, -0.026702880859375, -0.00815582275390625, -0.01508331298828125, -0.01092529296875, -0.044281005859375, -0.07220458984375, 0.042724609375, -0.00745391845703125, -0.042755126953125, -0.036865234375, -0.006656646728515625, -0.011260986328125, -0.004467010498046875, -0.02215576171875, 0.00640869140625, -0.01021575927734375, 0.05224609375, -0.002696990966796875, -0.006946563720703125, -0.004108428955078125, 0.02142333984375, -0.01007843017578125, 0.043487548828125, 0.050140380859375, -0.03643798828125, 0.0001322031021118164, 0.0206298828125, 0.0027408599853515625, 0.0565185546875, -0.0333251953125, 0.02130126953125, -0.0162506103515625, -0.0014200210571289062, -0.0035648345947265625, -0.0426025390625, 0.018463134765625, -0.0141754150390625, 0.0210723876953125, -0.01226043701171875, -0.0024394989013671875, -0.0157928466796875, -0.023651123046875, -0.0296173095703125, -0.0253753662109375, -0.043914794921875, 0.031097412109375, -0.08441162109375, -0.0247039794921875, -0.00246429443359375, 0.0008172988891601562, -0.0135650634765625, -0.0221099853515625, -0.01517486572265625, -0.00856781005859375, -0.008575439453125, -0.0059967041015625, -0.0121917724609375, -0.047210693359375, 0.051361083984375, -0.03131103515625, -0.01116943359375, -0.01465606689453125, 0.0528564453125, 0.0053863525390625, -0.018157958984375, 0.0263671875, 0.0240936279296875, -0.041107177734375, 0.025726318359375, 0.01898193359375, 0.046600341796875, -0.040679931640625, -0.03729248046875, -0.005084991455078125, 0.007450103759765625, 0.004962921142578125, 0.033447265625, 0.0140838623046875, 0.00591278076171875, 0.01123809814453125, -0.004810333251953125, 0.002437591552734375, -0.045745849609375, -0.0202178955078125, 0.07061767578125, -0.044219970703125, -0.032318115234375, -0.0227813720703125, -0.051177978515625, 0.017333984375, -0.0279388427734375, 0.017242431640625, -0.0209197998046875, 0.004974365234375, -0.09173583984375, -0.02423095703125, 0.019287109375 ]
2380a3f11597638d624d44fb0d0e2967995b47aa
Wordpress Stackexchange Q: Adding custom post type to loop Hope someone can help me with this. I have a custom post type ('article') in my WordPress installation, and I'd like to display those posts alongside the default posts in the regular post feed. This is my current loop: <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); global $more; $more = 0; //include the post template locate_template( array( 'includes/post-template.php' ), true, false ); } locate_template( array( 'includes/post-pagination.php' ), true, false ); }else { _e( 'No posts available', 'pexeto' ); } ?> A: You need something like this in you functions.php file, I'm using the action Pieter suggested. function add_custom_post_type_to_query( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'post_type', array('post', 'article') ); } } add_action( 'pre_get_posts', 'add_custom_post_type_to_query' ); You can read more about the pre_get_posts in the docs.
Q: Adding custom post type to loop Hope someone can help me with this. I have a custom post type ('article') in my WordPress installation, and I'd like to display those posts alongside the default posts in the regular post feed. This is my current loop: <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); global $more; $more = 0; //include the post template locate_template( array( 'includes/post-template.php' ), true, false ); } locate_template( array( 'includes/post-pagination.php' ), true, false ); }else { _e( 'No posts available', 'pexeto' ); } ?> A: You need something like this in you functions.php file, I'm using the action Pieter suggested. function add_custom_post_type_to_query( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'post_type', array('post', 'article') ); } } add_action( 'pre_get_posts', 'add_custom_post_type_to_query' ); You can read more about the pre_get_posts in the docs. A: I ended up using this and it worked like a charm. function add_custom_post_type_to_query( $query ) { if ( is_home() ) { $query->set( 'post_type', array('post', '2nd-post-type', '3rd-post-type') ); } } add_action( 'pre_get_posts', 'add_custom_post_type_to_query' ); You can see it in action at http://bestmotorcycleroads.com
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:448660", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160814" }
[ 0.08642578125, 0.0248260498046875, 0.01064300537109375, -0.025848388671875, 0.044189453125, -0.0308685302734375, 0.07568359375, -0.04388427734375, -0.0259857177734375, 0.00013697147369384766, -0.027374267578125, 0.0171356201171875, -0.032867431640625, -0.0167236328125, 0.040863037109375, -0.034454345703125, 0.05377197265625, -0.0257568359375, 0.0714111328125, -0.0048370361328125, 0.026123046875, 0.01629638671875, 0.08984375, 0.039154052734375, 0.01090240478515625, -0.0028896331787109375, 0.055450439453125, 0.00005030632019042969, -0.01202392578125, -0.0158233642578125, 0.02197265625, 0.00039696693420410156, 0.0261383056640625, -0.00202178955078125, -0.025054931640625, 0.01206207275390625, 0.00421142578125, 0.003749847412109375, -0.004878997802734375, 0.025482177734375, -0.0045928955078125, 0.00543975830078125, 0.037017822265625, 0.00409698486328125, -0.00551605224609375, -0.0084991455078125, -0.004062652587890625, -0.033447265625, -0.007801055908203125, -0.0379638671875, 0.0274200439453125, -0.0200042724609375, 0.05975341796875, -0.02777099609375, -0.0224456787109375, 0.00469207763671875, -0.0106353759765625, -0.0107879638671875, 0.052825927734375, -0.029327392578125, -0.050994873046875, -0.05120849609375, 0.0273590087890625, -0.0275115966796875, -0.00882720947265625, -0.01108551025390625, 0.032196044921875, 0.01593017578125, -0.03253173828125, -0.037139892578125, 0.0225830078125, 0.0037059783935546875, 0.0252532958984375, -0.00971221923828125, -0.0198822021484375, -0.0101165771484375, -0.0009546279907226562, -0.01280975341796875, 0.02252197265625, -0.0166015625, -0.002651214599609375, 0.0129241943359375, -0.00981903076171875, -0.03314208984375, 0.005496978759765625, -0.0283355712890625, -0.0159149169921875, -0.0008063316345214844, -0.01031494140625, -0.036163330078125, -0.017303466796875, -0.0245361328125, -0.0182647705078125, 0.01458740234375, -0.01200103759765625, -0.0335693359375, -0.0020122528076171875, 0.0341796875, -0.0243988037109375, 0.043914794921875, -0.016937255859375, -0.021881103515625, 0.0687255859375, -0.06060791015625, 0.025787353515625, -0.006389617919921875, -0.034332275390625, 0.00897216796875, 0.093994140625, 0.0625, 0.01535797119140625, 0.06982421875, -0.035797119140625, 0.0002071857452392578, -0.050506591796875, 0.02032470703125, -0.03912353515625, -0.0252685546875, -0.0029964447021484375, 0.002376556396484375, 0.00855255126953125, 0.0400390625, 0.0173797607421875, -0.0712890625, 0.016754150390625, -0.0099639892578125, -0.024871826171875, -0.048431396484375, 0.000659942626953125, 0.04620361328125, -0.033599853515625, 0.00269317626953125, 0.06829833984375, 0.0187530517578125, -0.002490997314453125, -0.0293121337890625, 0.0196075439453125, -0.006542205810546875, -0.014068603515625, 0.0251617431640625, 0.003387451171875, -0.03875732421875, -0.006946563720703125, 0.01068115234375, 0.0298919677734375, 0.043792724609375, 0.0189666748046875, -0.003498077392578125, -0.00383758544921875, -0.0261077880859375, -0.0223846435546875, -0.004863739013671875, 0.03448486328125, -0.0110015869140625, -0.0139007568359375, -0.025299072265625, 0.0011377334594726562, -0.01464080810546875, -0.01788330078125, -0.01218414306640625, -0.00884246826171875, -0.0262603759765625, -0.0223846435546875, -0.08905029296875, -0.06561279296875, 0.0214385986328125, -0.0283966064453125, -0.0011663436889648438, 0.02734375, 0.037689208984375, 0.04248046875, -0.0167388916015625, 0.035003662109375, 0.0113372802734375, -0.0188446044921875, -0.01543426513671875, -0.0020656585693359375, 0.01457977294921875, 0.0272674560546875, 0.00882720947265625, 0.0013866424560546875, -0.029571533203125, 0.061248779296875, -0.0098876953125, -0.080078125, 0.042755126953125, 0.0134429931640625, 0.0657958984375, 0.02630615234375, 0.004520416259765625, 0.058685302734375, 0.006885528564453125, -0.037872314453125, 0.013916015625, -0.0162200927734375, -0.029510498046875, -0.0036563873291015625, -0.01812744140625, -0.0134429931640625, 0.0216217041015625, -0.033966064453125, 0.0128021240234375, 0.007244110107421875, 0.007053375244140625, -0.0400390625, 0.030853271484375, -0.01666259765625, 0.05548095703125, 0.01540374755859375, -0.00540924072265625, 0.006122589111328125, -0.0000033974647521972656, 0.005802154541015625, -0.07379150390625, -0.03631591796875, 0.0384521484375, 0.0137786865234375, 0.007785797119140625, -0.003631591796875, 0.0045166015625, 0.00724029541015625, -0.0234527587890625, -0.00447845458984375, 0.033050537109375, 0.0972900390625, 0.0056304931640625, -0.03179931640625, -0.01061248779296875, 0.031036376953125, 0.038909912109375, -0.08758544921875, 0.034332275390625, 0.0210418701171875, 0.0009570121765136719, -0.040618896484375, 0.0034809112548828125, -0.0003151893615722656, -0.0252532958984375, 0.004817962646484375, 0.038848876953125, 0.0125732421875, 0.03155517578125, -0.004749298095703125, 0.022216796875, 0.046051025390625, 0.006557464599609375, 0.01995849609375, -0.0031108856201171875, 0.0208740234375, 0.047882080078125, -0.009735107421875, -0.002471923828125, 0.0089111328125, -0.032867431640625, 0.03460693359375, 0.00972747802734375, 0.01395416259765625, 0.0296630859375, -0.00151824951171875, -0.026824951171875, 0.0107574462890625, 0.033294677734375, -0.01531982421875, 0.0228118896484375, 0.0528564453125, 0.005218505859375, 0.047210693359375, 0.0199737548828125, -0.0282745361328125, -0.0017414093017578125, 0.00795745849609375, 0.01181793212890625, -0.01641845703125, -0.021240234375, 0.0072479248046875, -0.0196685791015625, -0.045745849609375, 0.0282135009765625, -0.0012111663818359375, -0.0094146728515625, -0.006755828857421875, 0.049560546875, -0.0638427734375, -0.0066070556640625, -0.0259552001953125, -0.07012939453125, -0.0262298583984375, 0.0303802490234375, -0.01399993896484375, -0.00775909423828125, 0.021209716796875, 0.023681640625, -0.036773681640625, 0.027618408203125, -0.00006216764450073242, -0.01006317138671875, 0.0301055908203125, -0.0872802734375, 0.070068359375, -0.056640625, 0.04595947265625, 0.0723876953125, -0.01715087890625, 0.0157928466796875, 0.005908966064453125, 0.0308837890625, -0.0273284912109375, 0.05242919921875, 0.023040771484375, -0.031219482421875, -0.00832366943359375, 0.00836181640625, 0.032012939453125, 0.051300048828125, 0.024871826171875, -0.00507354736328125, 0.01268768310546875, 0.060760498046875, 0.002719879150390625, -0.01432037353515625, 0.058746337890625, -0.04644775390625, 8.940696716308594e-7, -0.0401611328125, -0.0290679931640625, -0.0200347900390625, -0.035797119140625, -0.007091522216796875, -0.00899505615234375, -0.0166015625, -0.039825439453125, -0.0604248046875, -0.06610107421875, -0.029449462890625, 0.005443572998046875, 0.007198333740234375, 0.00855255126953125, 0.04156494140625, 0.015838623046875, -0.049896240234375, 0.0312042236328125, 0.0377197265625, -0.01375579833984375, 0.020416259765625, 0.01535797119140625, -0.02349853515625, 0.04583740234375, -0.004932403564453125, 0.0154876708984375, 0.053314208984375, -0.0261993408203125, -0.02001953125, -0.004283905029296875, 0.01111602783203125, 0.00726318359375, 0.033111572265625, 0.0264434814453125, 0.040740966796875, 0.027618408203125, -0.02520751953125, -0.0188751220703125, -0.01218414306640625, -0.024749755859375, 0.003246307373046875, 0.01091766357421875, 0.0113677978515625, -0.040679931640625, 0.04388427734375, -0.050048828125, -0.0207366943359375, 0.030853271484375, -0.03466796875, 0.01515960693359375, -0.0110321044921875, -0.042266845703125, 0.0130767822265625, 0.01020050048828125, -0.020263671875, 0.06268310546875, 0.02490234375, 0.01849365234375, 0.010467529296875, -0.008056640625, -0.0292205810546875, -0.06414794921875, 0.057464599609375, -0.02789306640625, -0.00955963134765625, -0.039337158203125, -0.0396728515625, 0.0027256011962890625, 0.0950927734375, -0.057159423828125, -0.01358795166015625, -0.0059967041015625, 0.00008183717727661133, -0.0008883476257324219, -0.0380859375, -0.013885498046875, -0.02410888671875, -0.034576416015625, 0.02783203125, -0.01507568359375, 0.00937652587890625, -0.0191192626953125, 0.0498046875, -0.0171051025390625, -0.0301361083984375, 0.03448486328125, -0.03656005859375, 0.0234832763671875, 0.032012939453125, -0.0111236572265625, 0.00714874267578125, -0.04766845703125, -0.01666259765625, -0.1055908203125, -0.025115966796875, 0.006793975830078125, 0.075439453125, 0.004364013671875, -0.0190277099609375, -0.020416259765625, 0.06109619140625, 0.0482177734375, -0.016265869140625, 0.037078857421875, -0.01535797119140625, 0.0024871826171875, -0.0270233154296875, 0.01227569580078125, -0.0491943359375, 0.0032024383544921875, -0.00275421142578125, 0.0118255615234375, 0.035400390625, -0.043182373046875, -0.0014829635620117188, -0.03363037109375, -0.01467132568359375, -0.00830841064453125, -0.0269012451171875, 0.0261077880859375, 0.031097412109375, 0.013824462890625, -0.0036411285400390625, -0.01593017578125, -0.0016298294067382812, 0.00901031494140625, -0.02593994140625, -0.023712158203125, 0.01751708984375, 0.0552978515625, 0.0305938720703125, 0.00009870529174804688, -0.022705078125, -0.0011072158813476562, 0.012237548828125, -0.0211334228515625, 0.0272979736328125, 0.01450347900390625, 0.018035888671875, 0.002178192138671875, -0.04168701171875, -0.016387939453125, -0.00958251953125, 0.035430908203125, 0.00833892822265625, -0.0122833251953125, 0.00832366943359375, -0.0167388916015625, 0.0269775390625, 0.0174407958984375, 0.0021305084228515625, -0.041351318359375, 0.028045654296875, 0.0426025390625, -0.034210205078125, 0.04803466796875, -0.012451171875, 0.00431060791015625, -0.00033092498779296875, 0.021881103515625, 0.033782958984375, 0.00838470458984375, 0.007671356201171875, -0.021392822265625, -0.015380859375, 0.004619598388671875, 0.015533447265625, 0.005367279052734375, 0.01568603515625, 0.032806396484375, 0.01605224609375, 0.0030155181884765625, -0.00225067138671875, 0.0009088516235351562, 0.02783203125, -0.00931549072265625, -0.049072265625, -0.014862060546875, 0.0003578662872314453, 0.044342041015625, 0.01532745361328125, 0.01177978515625, 0.054168701171875, 0.042633056640625, -0.0035686492919921875, -0.00038504600524902344, -0.007144927978515625, 0.0181884765625, -0.03936767578125, -0.01000213623046875, 0.0204925537109375, -0.0029735565185546875, -0.0237884521484375, 0.08441162109375, -0.005584716796875, 0.0418701171875, -0.0151824951171875, 0.04437255859375, 0.041412353515625, 0.0170440673828125, 0.0012617111206054688, 0.0408935546875, -0.019622802734375, 0.0179595947265625, -0.00902557373046875, -0.014190673828125, -0.0272979736328125, -0.01316070556640625, 0.040252685546875, -0.02606201171875, 0.002227783203125, 0.0270233154296875, -0.0265960693359375, -0.01399993896484375, 0.006664276123046875, 0.03680419921875, -0.00444793701171875, -0.004932403564453125, -0.0014438629150390625, 0.010345458984375, 0.020904541015625, -0.007686614990234375, 0.0234832763671875, -0.01409912109375, 0.0283050537109375, -0.03515625, 0.0024890899658203125, 0.003448486328125, 0.0113677978515625, -0.033111572265625, -0.028656005859375, 0.0009088516235351562, -0.012664794921875, -0.0142822265625, -0.005321502685546875, -0.0048828125, -0.0255126953125, -0.0245513916015625, 0.037506103515625, -0.036041259765625, -0.01276397705078125, -0.0168914794921875, 0.0171966552734375, 0.0394287109375, 0.019866943359375, -0.043975830078125, 0.0016279220581054688, -0.04888916015625, -0.02655029296875, -0.0396728515625, -0.0223541259765625, -0.052978515625, -0.0040130615234375, 0.0221099853515625, 0.0196533203125, 0.0025539398193359375, -0.0158843994140625, -0.0164794921875, 0.0218963623046875, 0.0234222412109375, 0.057861328125, 0.00868988037109375, 0.04693603515625, -0.018035888671875, 0.0623779296875, 0.02093505859375, 0.01024627685546875, -0.03521728515625, -0.017547607421875, -0.00829315185546875, -0.0802001953125, -0.004016876220703125, -0.00255584716796875, -0.0172576904296875, 0.05816650390625, 0.03369140625, 0.01739501953125, -0.0091094970703125, -0.01468658447265625, 0.00428009033203125, -0.0215301513671875, 0.01419830322265625, 0.012939453125, -0.00785064697265625, 0.026214599609375, -0.002353668212890625, 0.0104827880859375, 0.01215362548828125, -0.01129150390625, 0.00640869140625, 0.0001423358917236328, 0.004852294921875, -0.0103607177734375, -0.0919189453125, 0.0787353515625, 0.09234619140625, 0.00922393798828125, 0.050750732421875, -0.00885009765625, 0.0016145706176757812, 0.01044464111328125, 0.0033016204833984375, 0.0012998580932617188, 0.00445556640625, 0.0634765625, 0.0075225830078125, -0.0287322998046875, 0.045074462890625, -0.034454345703125, -0.01465606689453125, 0.01873779296875, 0.0199737548828125, -0.0203399658203125, -0.007778167724609375, 0.00662994384765625, -0.0006203651428222656, 0.017608642578125, -0.01247406005859375, -0.0023441314697265625, -0.01514434814453125, 0.06268310546875, 0.0203704833984375, -0.0050811767578125, 0.036163330078125, -0.00453948974609375, -0.01039886474609375, -0.031005859375, 0.01366424560546875, -0.00302886962890625, 0.0096893310546875, -0.00417327880859375, -0.00919342041015625, -0.01202392578125, -0.007068634033203125, 0.018798828125, -0.0362548828125, -0.003765106201171875, -0.04315185546875, -0.007373809814453125, -0.037078857421875, -0.001392364501953125, 0.031494140625, 0.0416259765625, 0.0027141571044921875, 0.038909912109375, 0.00830841064453125, 0.01763916015625, 0.0133056640625, -0.0244293212890625, -0.023345947265625, -0.026275634765625, 0.00502777099609375, 0.0246124267578125, -0.042510986328125, 0.022613525390625, -0.0247344970703125, -0.01088714599609375, -0.0168304443359375, -0.017364501953125, 0.05841064453125, -0.0309295654296875, -0.0158233642578125, 0.00537872314453125, 0.029937744140625, 0.00960540771484375, -0.0029735565185546875, -0.005504608154296875, -0.06695556640625, -0.0250244140625, -0.003940582275390625, -0.042877197265625, 0.0029621124267578125, -0.002727508544921875, -0.04632568359375, 0.0728759765625, -0.035858154296875, 0.005523681640625, 0.0230255126953125, 0.0343017578125, -0.0113677978515625, 0.0257110595703125, -0.0255584716796875, 0.042755126953125, 0.009552001953125, 0.0726318359375, -0.058624267578125, -0.03466796875, 0.0281524658203125, 0.08001708984375, 0.051055908203125, 0.0016679763793945312, -0.034423828125, -0.006717681884765625, 0.03753662109375, 0.056182861328125, 0.0063934326171875, 0.0149078369140625, -0.00969696044921875, 0.04205322265625, 0.037384033203125, -0.006214141845703125, 0.04168701171875, 0.0282745361328125, -0.05438232421875, 0.0311126708984375, 0.00018322467803955078, 0.00368499755859375, 0.01393890380859375, 0.0223236083984375, -0.031646728515625, 0.006793975830078125, 0.020904541015625, -0.00591278076171875, -0.00241851806640625, 0.06591796875, 0.042633056640625, -0.0217132568359375, -0.01073455810546875, -0.03961181640625, 0.0499267578125, -0.003200531005859375, 0.029052734375, 0.032196044921875, 0.0212860107421875, 0.01509857177734375, 0.0007710456848144531, 0.0179901123046875, 0.0181121826171875, -0.01194000244140625, 0.040771484375, 0.025177001953125, 0.0100555419921875, -0.043548583984375, 0.024139404296875, 0.058013916015625, 0.057708740234375, -0.0487060546875, -0.0301055908203125, 0.0140380859375, 0.0203704833984375, -0.00255584716796875, -0.01983642578125, -0.01288604736328125, -0.0021266937255859375, 0.0467529296875, -0.06982421875, -0.01499176025390625, 0.0086517333984375, 0.017120361328125, -0.0258941650390625, -0.0276947021484375, 0.00830078125, -0.0281982421875, -0.0555419921875, 0.0196533203125, 0.001651763916015625, 0.04705810546875, 0.036590576171875, 0.07183837890625, 0.0140228271484375, -0.0246429443359375, -0.0097503662109375, 0.01523590087890625, -0.0126495361328125, 0.0222015380859375, -0.0238494873046875, -0.0166168212890625, 0.0023250579833984375, 0.032196044921875, 0.04254150390625, 0.01433563232421875, 0.045257568359375, 0.0181121826171875, -0.02545166015625, 0.0102996826171875, 0.050384521484375, -0.023223876953125, -0.030120849609375, -0.020965576171875, -0.014129638671875, 0.01001739501953125, -0.01219940185546875, 0.034942626953125, 0.00814056396484375, 0.017486572265625, 0.0024814605712890625, 0.007793426513671875, 0.006649017333984375, -0.033538818359375, 0.0660400390625, -0.00659942626953125, 0.08197021484375, 0.017486572265625, -0.1156005859375, -0.00931549072265625, -0.051361083984375, -0.099609375, 0.048126220703125, 0.059356689453125, -0.019805908203125, -0.0226593017578125, 0.055328369140625, 0.0035858154296875, 0.03558349609375, -0.02557373046875, 0.01506805419921875, 0.01251220703125, 0.030853271484375, 0.0298309326171875, -0.06817626953125, -0.058441162109375, -0.032867431640625, 0.06158447265625, 0.0214080810546875, 0.003932952880859375, 0.0179443359375, 0.044189453125, -0.00893402099609375, 0.017364501953125, -0.01377105712890625, -0.01154327392578125, 0.0196685791015625, 0.00678253173828125, 0.0207061767578125, -0.00875091552734375, -0.0174713134765625, -0.041351318359375, 0.07012939453125, -0.06268310546875, -0.0270233154296875, -0.00028514862060546875, 0.0298309326171875, -0.05841064453125, 0.00930023193359375, -0.032012939453125, 0.00658416748046875, -0.0270843505859375, -0.033966064453125, 0.038482666015625, -0.01532745361328125, -0.01068878173828125, 0.03179931640625, 0.0109405517578125, -0.022613525390625, 0.010833740234375, -0.031829833984375, 0.0197296142578125, 0.04302978515625, -0.005641937255859375, -0.0024242401123046875, 0.006679534912109375, -0.015869140625, 0.0207061767578125, 0.00965118408203125, 0.003559112548828125, 0.0095367431640625, 0.010498046875, 0.01195526123046875, 0.00444793701171875, 0.046112060546875, -0.0241851806640625, 0.00865936279296875, 0.0045928955078125, 0.01111602783203125, 0.028228759765625, 0.004436492919921875, -0.0203704833984375, -0.01499176025390625, -0.0171051025390625, 0.0096435546875, 0.000743865966796875, -0.04730224609375, -0.06561279296875, -0.0039825439453125, 0.034454345703125, -0.0103912353515625, -0.0255889892578125, 0.0106658935546875, -0.040924072265625, 0.041290283203125, -0.022003173828125, -0.062347412109375, 0.02880859375, 0.062042236328125, 0.016571044921875, 0.022491455078125, -0.02191162109375, -0.044342041015625, 0.0018014907836914062, 0.004451751708984375, 0.01012420654296875, -0.00513458251953125, -0.011871337890625, 0.0006375312805175781, -0.01314544677734375, 0.043243408203125, 0.020294189453125, -0.009796142578125, 0.0211181640625, -0.01131439208984375, -0.04901123046875, -0.06640625, 0.0291290283203125, -0.11431884765625, -0.0216827392578125, -0.005779266357421875, 0.037078857421875, 0.07171630859375, -0.0017728805541992188, -0.0745849609375, 0.061767578125, -0.039581298828125, -0.031829833984375, -0.0675048828125, 0.032928466796875, 0.00038814544677734375, -0.026092529296875, -0.0185546875, -0.0162353515625, -0.01397705078125, 0.0225372314453125, -0.00039196014404296875, 0.001453399658203125, 0.036712646484375, -0.01375579833984375, -0.05010986328125, -0.01461029052734375, -0.011749267578125, -0.01352691650390625, 0.0196075439453125, -0.0231781005859375, 0.038421630859375, 0.038848876953125, -0.039306640625, 0.0096435546875, -0.005901336669921875, 0.0118865966796875, -0.019989013671875, -0.043121337890625, -0.0247955322265625, -0.0340576171875, 0.0555419921875, 0.032501220703125, 0.01393890380859375, -0.01120758056640625, 0.01036834716796875, -0.03350830078125, -0.050048828125, -0.005435943603515625, 0.0218353271484375, -0.034912109375, 0.0002410411834716797, -0.0147552490234375, -0.012451171875, -0.0206298828125, -0.01398468017578125, -0.037628173828125, -0.00455474853515625, -0.0250396728515625, -0.0026645660400390625, -0.033416748046875, 0.0755615234375, -0.0020961761474609375, -0.01447296142578125, 0.00038933753967285156, -0.0167236328125, -0.03173828125, 0.0011959075927734375, -0.0273590087890625, -0.0160675048828125, -0.009033203125, -0.0000756382942199707, 0.001495361328125, -0.0015306472778320312, 0.01309967041015625, 0.0032176971435546875, 0.003780364990234375, -0.012939453125, 0.0293121337890625, -0.00606536865234375, 0.00811767578125, -0.0170440673828125, 0.045257568359375, -0.007717132568359375, 0.0802001953125, 0.00841522216796875, 0.0223236083984375, -0.007289886474609375, 0.01861572265625, 0.006023406982421875, 0.0012159347534179688, 0.00777435302734375, -0.0040435791015625, 0.00018453598022460938, -0.04351806640625, -0.06854248046875, -0.037445068359375, -0.0236358642578125, -0.0014867782592773438, -0.0439453125, 0.01549530029296875 ]
5bd1b76ee53651a33db85592db0ede21db449177
Wordpress Stackexchange Q: Email user when password is reset by admin I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email? At present when I add a new user, an email is sent to them but no email is sent to them when I change their password/email. I will really appreciate any assistance here. A: There are a few ways to accomplish this; 1) [easy] Send your user to the login screen and have them initiate the forgot password process 2) [moderate] Plugins (there are a few) free WordPress plugins, this looks useful, or you could search http://wordpress.org/plugins/search.php?q=reset+password and probably lots of commercial ones, but here is one 3) [hard] Custom write a function in your own plugin - for that you can refer to the WordPress Codex and also here seems a reasonable tutorial
Q: Email user when password is reset by admin I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email? At present when I add a new user, an email is sent to them but no email is sent to them when I change their password/email. I will really appreciate any assistance here. A: There are a few ways to accomplish this; 1) [easy] Send your user to the login screen and have them initiate the forgot password process 2) [moderate] Plugins (there are a few) free WordPress plugins, this looks useful, or you could search http://wordpress.org/plugins/search.php?q=reset+password and probably lots of commercial ones, but here is one 3) [hard] Custom write a function in your own plugin - for that you can refer to the WordPress Codex and also here seems a reasonable tutorial A: Here's one way to add this feature using the following flowline : The admin updates the user option page: -> edit_user_profile_update or personal_options_update hooks activated -> edit_user() function is called -> wp_update_user() function is called within edit_user() -> wp_insert_user() function is called within wp_update_user() -> profile_update hook activated within wp_insert_user() for user updates, not user inserts -> wp_redirect() function called on successful user updates -> wp_redirect filter activated -> The page reloads -> admin_notices hook activated Step #1 - The HTML checkbox: First we add the Send a notification checkbox above the password text fields and it's only visible to the administrator: by hijacking the show_password_fields filter: add_filter( 'show_password_fields', 'wpse_notification_html' ); function wpse_notification_html( $show ) { if( current_user_can( 'manage_options' ) ): ?> <tr> <th scope="row"> <label for="wpse_send_notification"><?php _e('Send a notification?') ?></label> </th> <td> <label for="wpse_send_notification"> <input type="checkbox" name="wpse_send_notification" id="wpse_send_notification" value="1" /> <?php _e( 'Send an email to user and notify that the password has changed.' ); ?> </label> </td> </tr> <?php endif; return $show; } Step #2 - The main controller: Next we want to hook into the profile_update from the user options page: add_action( 'edit_user_profile_update', 'wpse_user_update' ); add_action( 'personal_options_update', 'wpse_user_update' ); function wpse_user_update( $user_id ) { if( current_user_can( 'manage_options' ) ) add_action( 'profile_update', 'wpse_controller', 10, 2 ); } where the main logic is in the wpse_controller() function: function wpse_controller( $user_id, $old_user_data ) { // Input: $pass1 = filter_input( INPUT_POST, 'pass1' ); $pass2 = filter_input( INPUT_POST, 'pass2' ); $send = filter_input( INPUT_POST, 'wpse_send_notification', FILTER_SANITIZE_NUMBER_INT ); // Run this action only once: remove_action( current_action(), __FUNCTION__ ); // Send the notification: if( 1 == $send ) { if( ! empty( $pass1 ) && $pass1 === $pass2 && sanitize_text_field( $pass1 ) === $pass1 ): if( wpse_user_password_notification( $user_id, wp_unslash( sanitize_text_field( $pass1 ) ) ) ) add_filter( 'wp_redirect', 'wpse_redirect_notification_success' ); else add_filter( 'wp_redirect', 'wpse_redirect_notification_error' ); else: add_filter( 'wp_redirect', 'wpse_redirect_pass_validation_error' ); endif; } } because then all the validations have taken place. It's a little bit tricky to display error/success messages, because WordPress uses a redirect when the user options page is updated. Therefore we use a trick with the wp_redirect filter to add the relevant query variable so we can determine the message from the admin_notices hook: function wpse_redirect_notification_success( $location ) { return add_query_arg( 'wpse_notification', 'mail_success', $location ); } function wpse_redirect_notification_error( $location ) { return add_query_arg( 'wpse_notification', 'mail_error', $location ); } function wpse_redirect_pass_validation_error( $location ) { return add_query_arg( 'wpse_notification', 'pass_validation_error', $location ); } Step #3 - Send the email: We use a modification of the core wp_new_user_notification() function to send the email: function wpse_user_password_notification( $user_id, $plaintext_pass = '' ) { if ( empty( $plaintext_pass ) ) return false; $user = get_userdata( $user_id ); $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); $message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n"; $message .= sprintf( __( 'New Password: %s' ), $plaintext_pass ) . "\r\n"; $message .= wp_login_url() . "\r\n"; return wp_mail( $user->user_email, sprintf(__('[%s] Your username and new password'), $blogname), $message ); } Step #4 - Admin notices for success or errors: We use the following admin notices, determined by the wp_notices query variable added in the wp_redirect filter: add_action( 'admin_notices', 'wpse_admin_notices' ); function wpse_admin_notices() { $status = filter_input( INPUT_GET, 'wpse_notification', FILTER_SANITIZE_STRING ); switch ( $status ) { case 'mail_success': ?><div id="message" class="updated"><p><strong>Notification Sent!</strong>: Notification email successfully sent to the user</p></div><?php break; case 'mail_error': ?><div class="error"><p><strong>ERROR</strong>: Notification email not sent to the user</p></div><?php break; case 'pass_validation_error': ?><div class="error"><p><strong>ERROR</strong>: Notification email not sent to the user, because of symbol chars in the password </p></div><?php break; } // end switch } How to sanitize the password? Notice that I use the sanitize_text_field() to sanitize the password in the email. I'm not sure what's the best way to do it. At least I didn't want to send it raw in the email. That's the reason for this extra error message: just so we can handle the case where the password contains some characters that get stripped by the sanitize_text_field() function. Any other ideas are welcomed. PS: This is experimental and might need some adjustments. The code above is all procedural and without any anonymous functions. It might get much simpler by smearing some OOP butter on it ;-) A: Since WordPress 4.3.0, there is a filter for this (located in user.php): add_filter('send_password_change_email', function( $send, $user, $userdata ){ // bail early if $send is false if( !$send ) { return $send; } // Your custom email logic // ... // tell wordpress not to send the built-in email return false; }, 10, 3);
wordpress
{ "language": "en", "length": 904, "provenance": "stackexchange_00019.jsonl.gz:448677", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160872" }
[ 0.0345458984375, -0.00710296630859375, 0.01186370849609375, 0.00994873046875, -0.01277923583984375, -0.0258941650390625, 0.016326904296875, -0.06304931640625, -0.01019287109375, 0.03759765625, 0.0100250244140625, -0.016204833984375, 0.0263519287109375, -0.027923583984375, -0.009246826171875, -0.017669677734375, 0.00980377197265625, 0.01088714599609375, 0.004581451416015625, -0.0164947509765625, -0.006313323974609375, 0.0054473876953125, -0.01241302490234375, -0.0249176025390625, -0.043243408203125, 0.09564208984375, 0.1011962890625, -0.03387451171875, -0.00458526611328125, -0.01152801513671875, -0.0091094970703125, -0.055084228515625, 0.0278778076171875, 0.0255126953125, -0.04840087890625, -0.02813720703125, -0.01377105712890625, 0.003936767578125, -0.01406097412109375, 0.0218505859375, 0.036224365234375, -0.01078033447265625, 0.0037746429443359375, 0.0155181884765625, -0.001461029052734375, -0.047576904296875, 0.055572509765625, -0.035675048828125, 0.01113128662109375, 0.020263671875, 0.01293182373046875, -0.03753662109375, 0.0160369873046875, 0.011444091796875, -0.019317626953125, -0.002716064453125, -0.015838623046875, 0.01018524169921875, 0.0208587646484375, 0.019012451171875, -0.0170440673828125, -0.004901885986328125, 0.010528564453125, -0.0302886962890625, -0.042755126953125, -0.00652313232421875, 0.01342010498046875, -0.0126800537109375, -0.0198516845703125, -0.04656982421875, 0.0290679931640625, 0.0020999908447265625, -0.038177490234375, -0.00644683837890625, 0.0036716461181640625, 0.018951416015625, -0.009124755859375, -0.00803375244140625, 0.0101318359375, 0.0401611328125, -0.0014181137084960938, 0.00736236572265625, -0.01125335693359375, -0.01477813720703125, -0.0019855499267578125, 0.007587432861328125, -0.00955963134765625, -0.0103759765625, -0.0248260498046875, -0.01800537109375, -0.022735595703125, -0.00012433528900146484, -0.027801513671875, -0.006572723388671875, -0.037384033203125, -0.00514984130859375, 0.01291656494140625, 0.0565185546875, -0.025299072265625, -0.01739501953125, -0.035003662109375, 0.01056671142578125, -0.0706787109375, -0.0116729736328125, 0.0021209716796875, 0.029571533203125, 0.01398468017578125, -0.0261077880859375, -0.00001329183578491211, 0.01557159423828125, -0.0234832763671875, -0.01222991943359375, -0.018951416015625, -0.0263519287109375, -0.01318359375, 0.0196380615234375, -0.0268096923828125, -0.0007891654968261719, -0.005279541015625, -0.00252532958984375, -0.0168304443359375, 0.00933074951171875, -0.0262298583984375, -0.014617919921875, -0.0003829002380371094, -0.0227813720703125, -0.0094451904296875, 0.01113128662109375, 0.01003265380859375, 0.005584716796875, -0.046875, 0.0151824951171875, 0.09259033203125, 0.03997802734375, 0.027923583984375, -0.0203857421875, -0.004688262939453125, 0.0277862548828125, 0.01381683349609375, 0.03057861328125, -0.015228271484375, -0.0309600830078125, 0.0050506591796875, -0.0081329345703125, 0.002773284912109375, 0.044586181640625, -0.00496673583984375, -0.0021228790283203125, 0.0297393798828125, -0.042388916015625, 0.0008091926574707031, -0.039886474609375, -0.01158905029296875, 0.031982421875, 0.030059814453125, 0.047760009765625, 0.01081085205078125, 0.0173797607421875, -0.0212249755859375, 0.031219482421875, 0.054718017578125, -0.021148681640625, -0.0168914794921875, 0.02960205078125, -0.00542449951171875, 0.03302001953125, -0.048004150390625, -0.00621795654296875, 0.0214996337890625, -0.0699462890625, 0.0452880859375, 0.00016164779663085938, 0.04083251953125, -0.0111083984375, 0.01201629638671875, 0.01039886474609375, -0.0151519775390625, 0.0137481689453125, 0.0137786865234375, 0.017181396484375, 0.0142669677734375, -0.0306396484375, 0.0285186767578125, 0.001194000244140625, -0.0027027130126953125, -0.07464599609375, 0.0240325927734375, -0.00658416748046875, 0.024627685546875, 0.035675048828125, -0.0072021484375, 0.00146484375, 0.03436279296875, 0.015777587890625, -0.0152435302734375, -0.03851318359375, -0.01013946533203125, 0.006824493408203125, -0.0252838134765625, -0.0153961181640625, 0.0023345947265625, -0.0280303955078125, 0.019866943359375, -0.036468505859375, -0.059844970703125, -0.00609588623046875, -0.0268096923828125, 0.027587890625, -0.0179443359375, 0.021270751953125, 0.0093536376953125, -0.004070281982421875, -0.01708984375, -0.032073974609375, -0.0224761962890625, -0.027252197265625, -0.032135009765625, 0.07257080078125, 0.0001251697540283203, 0.0887451171875, -0.0124053955078125, -0.06353759765625, 0.0021152496337890625, -0.058380126953125, 0.0135040283203125, -0.0305023193359375, -0.0174407958984375, -0.0225982666015625, -0.0071258544921875, -0.01303863525390625, -0.0139312744140625, 0.05670166015625, 0.004405975341796875, 0.0281982421875, -0.0477294921875, -0.01055145263671875, -0.0226898193359375, 0.0016536712646484375, 0.0036411285400390625, 0.041015625, 0.028076171875, 0.00913238525390625, -0.00716400146484375, 0.0142974853515625, 0.023162841796875, -0.006412506103515625, 0.0290069580078125, -0.0018224716186523438, -0.02410888671875, 0.038330078125, 0.00768280029296875, 0.004573822021484375, 0.0017948150634765625, -0.03411865234375, -0.0494384765625, 0.039215087890625, 0.0201568603515625, 0.0215911865234375, -0.039459228515625, 0.0225677490234375, -0.01059722900390625, -0.01438140869140625, -0.026519775390625, -0.00878143310546875, 0.00539398193359375, -0.0137176513671875, 0.00243377685546875, -0.0005068778991699219, -0.03009033203125, -0.00814056396484375, 0.0308074951171875, -0.0161895751953125, 0.00946807861328125, 0.03277587890625, 0.01497650146484375, 0.051971435546875, -0.0286102294921875, -0.04217529296875, 0.0297088623046875, 0.0292205810546875, -0.034759521484375, -0.040496826171875, -0.0205078125, -0.01580810546875, 0.0291595458984375, 0.01971435546875, 0.01910400390625, -0.031585693359375, 0.021148681640625, 0.007389068603515625, 0.0435791015625, 0.0145111083984375, 0.0037670135498046875, 0.0291748046875, -0.02020263671875, -0.02789306640625, -0.1065673828125, -0.01580810546875, 0.0201263427734375, -0.043365478515625, 0.00848388671875, 0.08062744140625, 0.0235748291015625, 0.0011386871337890625, -0.0078887939453125, -0.01201629638671875, -0.005886077880859375, 0.03704833984375, 0.0144195556640625, -0.043243408203125, -0.00930023193359375, 0.00604248046875, 0.0172119140625, 0.0295562744140625, -0.00959014892578125, -0.03582763671875, -0.02252197265625, 0.00942230224609375, -0.04583740234375, -0.0399169921875, -0.06719970703125, -0.06536865234375, -0.035736083984375, 0.01012420654296875, -0.032379150390625, 0.0308685302734375, 0.025634765625, 0.0233306884765625, 0.036865234375, -0.02447509765625, -0.05816650390625, -0.0360107421875, -0.060943603515625, -0.0279998779296875, -0.01250457763671875, 0.0010547637939453125, -0.00632476806640625, 0.058258056640625, -0.0109710693359375, -0.08544921875, -0.035308837890625, 0.01305389404296875, -0.00789642333984375, -0.00302886962890625, -0.0200958251953125, -0.0283050537109375, 0.01206207275390625, -0.002002716064453125, 0.0229644775390625, -0.0029163360595703125, 0.01849365234375, -0.015350341796875, -0.0006718635559082031, -0.031982421875, 0.0195159912109375, -0.031341552734375, -0.0170745849609375, -0.0027713775634765625, -0.0019359588623046875, -0.04827880859375, 0.028717041015625, 0.014862060546875, -0.004421234130859375, -0.0072784423828125, -0.0259552001953125, -0.037689208984375, 0.0208740234375, -0.006122589111328125, -0.0106658935546875, -0.0167236328125, 0.00827789306640625, -0.03973388671875, 0.0155487060546875, -0.0019741058349609375, 0.0001652240753173828, -0.003459930419921875, -0.0047454833984375, -0.029541015625, -0.0166015625, -0.0254364013671875, 0.0237274169921875, -0.0080108642578125, 0.02392578125, -0.01312255859375, -0.100341796875, 0.06512451171875, -0.0191650390625, -0.0027637481689453125, -0.038055419921875, -0.0311737060546875, 0.01424407958984375, 0.12432861328125, 0.0140228271484375, -0.01155853271484375, -0.01268768310546875, -0.0040435791015625, -0.046661376953125, -0.019378662109375, -0.038726806640625, 0.00612640380859375, -0.0279083251953125, -0.0172882080078125, -0.0296630859375, -0.0121002197265625, -0.007442474365234375, -0.0276336669921875, 0.0033855438232421875, -0.03802490234375, 0.023895263671875, -0.0517578125, 0.031707763671875, -0.0233001708984375, 0.01444244384765625, -0.0489501953125, 0.0036067962646484375, -0.053314208984375, -0.02679443359375, 0.0000616312026977539, -0.0028896331787109375, 0.0083770751953125, 0.01520538330078125, -0.0085601806640625, -0.0124969482421875, 0.0100250244140625, -0.0037994384765625, 0.0031032562255859375, -0.00970458984375, 0.004695892333984375, 0.00666046142578125, -0.001079559326171875, -0.0113372802734375, -0.007354736328125, 0.01213836669921875, -0.01436614990234375, -0.032440185546875, 0.0029888153076171875, -0.0360107421875, 0.0052490234375, 0.004001617431640625, -0.025970458984375, -0.046661376953125, -0.036285400390625, -0.040679931640625, -0.031402587890625, -0.00901031494140625, -0.020660400390625, -0.00823211669921875, -0.043701171875, 0.025787353515625, 0.01041412353515625, -0.039276123046875, 0.00992584228515625, 0.0260162353515625, 0.0163726806640625, -0.0292816162109375, -0.004058837890625, 0.037353515625, 0.06591796875, 0.0262908935546875, -0.03289794921875, 0.010833740234375, -0.05084228515625, 0.008575439453125, 0.052337646484375, 0.004383087158203125, -0.05328369140625, 0.04364013671875, 0.0067138671875, 0.0001188516616821289, 0.00518035888671875, -0.01152801513671875, 0.048065185546875, 0.004505157470703125, 0.01263427734375, -0.025726318359375, 0.021270751953125, 0.0210723876953125, -0.016082763671875, 0.004638671875, 0.0030651092529296875, -0.0533447265625, 0.030120849609375, -0.040130615234375, -0.01427459716796875, -0.00475311279296875, 0.004802703857421875, -0.0258636474609375, -0.0257568359375, -0.01221466064453125, -0.018707275390625, -0.035400390625, 0.00937652587890625, 0.02764892578125, -0.042449951171875, 0.01177215576171875, -0.006504058837890625, -0.033782958984375, 0.08740234375, 0.049530029296875, -0.044921875, 0.046356201171875, -0.0174713134765625, 0.033447265625, -0.01070404052734375, -0.036041259765625, 0.05120849609375, 0.031585693359375, -0.0298919677734375, 0.0036296844482421875, -0.029205322265625, -0.01241302490234375, -0.0628662109375, 0.042449951171875, 0.01947021484375, -0.01354217529296875, 0.026702880859375, 0.0352783203125, -0.0120849609375, 0.0242462158203125, 0.00937652587890625, 0.0215911865234375, 0.0296478271484375, -0.0003294944763183594, 0.0110626220703125, 0.057708740234375, -0.0287017822265625, 0.0007448196411132812, 0.0196380615234375, -0.031463623046875, -0.01151275634765625, -0.0043487548828125, 0.033294677734375, 0.02471923828125, 0.003917694091796875, 0.0235595703125, -0.004978179931640625, -0.005016326904296875, 0.05474853515625, 0.006343841552734375, -0.047454833984375, -0.032440185546875, -0.006961822509765625, 0.0299530029296875, -0.032470703125, 0.0094451904296875, -0.0229949951171875, -0.01210784912109375, -0.0028438568115234375, -0.0159454345703125, 0.0024852752685546875, -0.03515625, -0.0325927734375, -0.0236053466796875, -0.0156402587890625, -0.01018524169921875, 0.006313323974609375, -0.015960693359375, -0.018646240234375, -0.0003960132598876953, 0.04486083984375, 0.0063323974609375, 0.0198974609375, -0.0277557373046875, 0.01031494140625, -0.0184173583984375, -0.00048422813415527344, 0.0335693359375, -0.002288818359375, -0.08251953125, 0.0086517333984375, -0.058990478515625, 0.00281524658203125, -0.043121337890625, -0.0325927734375, -0.040283203125, 0.002559661865234375, 0.0206146240234375, 0.0182952880859375, 0.0009589195251464844, -0.0419921875, -0.031707763671875, 0.0036373138427734375, 0.049530029296875, 0.0189361572265625, 0.007129669189453125, 0.026824951171875, 0.0003325939178466797, 0.05438232421875, 0.01837158203125, -0.0133514404296875, -0.04193115234375, -0.014739990234375, 0.01007843017578125, -0.0018720626831054688, -0.00795745849609375, -0.02105712890625, 0.0193939208984375, -0.039337158203125, 0.01485443115234375, -0.00472259521484375, -0.042694091796875, -0.006328582763671875, 0.00974273681640625, -0.0260467529296875, 0.060821533203125, 0.0284881591796875, -0.018798828125, -0.013153076171875, -0.032135009765625, 0.01800537109375, -0.012359619140625, -0.004192352294921875, 0.028076171875, -0.034912109375, 0.0167388916015625, 0.0278472900390625, 0.0013513565063476562, 0.050201416015625, 0.0372314453125, -0.0299072265625, 0.029541015625, 0.02728271484375, 0.0213165283203125, -0.00220489501953125, -0.050994873046875, 0.006015777587890625, 0.03131103515625, 0.04058837890625, -0.00945281982421875, 0.00444793701171875, 0.037994384765625, -0.025177001953125, 0.0189056396484375, 0.0748291015625, 0.0758056640625, -0.08648681640625, -0.006252288818359375, -0.002513885498046875, -0.0347900390625, 0.03076171875, 0.005626678466796875, -0.027496337890625, -0.06317138671875, 0.060272216796875, -0.03826904296875, -0.0015745162963867188, 0.01482391357421875, -0.0263671875, -0.01140594482421875, -0.0196533203125, 0.04156494140625, 0.002185821533203125, -0.004726409912109375, -0.00908660888671875, -0.0048370361328125, -0.020050048828125, -0.040069580078125, -0.0154571533203125, 0.016326904296875, -0.03118896484375, -0.07403564453125, -0.007808685302734375, 0.00861358642578125, 0.0009918212890625, -0.045501708984375, 0.0164794921875, 0.0130615234375, 0.045196533203125, -0.0160675048828125, -0.0142059326171875, 0.0268707275390625, -0.0020275115966796875, -0.01021575927734375, -0.0272216796875, -0.0013914108276367188, 0.04150390625, -0.073974609375, 0.0231781005859375, -0.01995849609375, 0.00708770751953125, -0.0145263671875, -0.01488494873046875, 0.040557861328125, 0.00904083251953125, -0.01885986328125, 0.044189453125, 0.0296783447265625, -0.0297698974609375, -0.0193328857421875, -0.01116943359375, 0.005115509033203125, 0.048736572265625, -0.0228729248046875, -0.0019178390502929688, 0.0031528472900390625, -0.0277862548828125, -0.06195068359375, 0.09857177734375, -0.00905609130859375, 0.0245361328125, -0.00778961181640625, 0.03521728515625, -0.0012369155883789062, 0.024383544921875, -0.043243408203125, 0.03619384765625, -0.01161956787109375, 0.05712890625, -0.0714111328125, -0.00632476806640625, -0.006168365478515625, 0.0306243896484375, 0.06976318359375, 0.0263214111328125, -0.03485107421875, -0.015960693359375, 0.0029850006103515625, 0.0149078369140625, -0.0198211669921875, 0.05596923828125, 0.01248931884765625, 0.03582763671875, 0.06829833984375, -0.043609619140625, 0.0255279541015625, 0.0064239501953125, -0.0034770965576171875, 0.025970458984375, -0.0113067626953125, -0.0408935546875, 0.00907135009765625, 0.0504150390625, -0.05615234375, 0.01232147216796875, 0.02081298828125, -0.005695343017578125, 0.0141448974609375, 0.0210418701171875, 0.0260772705078125, -0.012847900390625, 0.040191650390625, -0.0269927978515625, 0.047698974609375, -0.01540374755859375, 0.01222991943359375, 0.023406982421875, 0.0276947021484375, -0.0016078948974609375, -0.013916015625, 0.009979248046875, 0.01166534423828125, -0.026824951171875, 0.05120849609375, -0.042633056640625, 0.0062408447265625, -0.098876953125, -0.003849029541015625, 0.0048980712890625, 0.056121826171875, -0.047454833984375, -0.0177764892578125, 0.00799560546875, 0.0202178955078125, 0.05133056640625, 0.0034637451171875, 0.06976318359375, -0.022064208984375, -0.00901031494140625, -0.0122833251953125, -0.00110626220703125, 0.0144195556640625, -0.015289306640625, -0.007022857666015625, 0.004344940185546875, 0.0180511474609375, 0.030364990234375, 0.008880615234375, 0.00989532470703125, 0.012603759765625, -0.0214996337890625, -0.0543212890625, 0.02557373046875, 0.003147125244140625, 0.0311279296875, 0.0038013458251953125, -0.027984619140625, 0.0199432373046875, -0.007678985595703125, 0.00807952880859375, 0.0201416015625, -0.017791748046875, 0.02520751953125, -0.00902557373046875, -0.01142120361328125, 0.053985595703125, 0.0197296142578125, -0.060394287109375, -0.0340576171875, -0.04150390625, -0.036834716796875, 0.039398193359375, -0.000583648681640625, 0.010223388671875, -0.0037384033203125, -0.016387939453125, -0.04327392578125, 0.051177978515625, 0.023284912109375, -0.0125732421875, 0.052032470703125, 0.0020008087158203125, 0.00205230712890625, 0.00571441650390625, 0.01160430908203125, 0.03759765625, 0.0283050537109375, -0.05511474609375, -0.01386260986328125, 0.02032470703125, -0.046630859375, 0.007476806640625, 0.04559326171875, -0.024627685546875, 0.0307464599609375, 0.01141357421875, -0.030181884765625, 0.0294036865234375, 0.007595062255859375, -0.02496337890625, -0.04296875, 0.01087188720703125, -0.054290771484375, -0.06549072265625, -0.0467529296875, -0.01357269287109375, 0.042144775390625, 0.01224517822265625, 0.05194091796875, 0.01141357421875, 0.01061248779296875, -0.04058837890625, 0.05218505859375, -0.07489013671875, -0.05999755859375, 0.06085205078125, -0.0333251953125, -0.0225830078125, 0.0223236083984375, -0.08111572265625, 0.0830078125, 0.0030498504638671875, 0.02130126953125, 0.05999755859375, 0.0011749267578125, -0.007656097412109375, -0.006649017333984375, 0.009979248046875, -0.0229034423828125, -0.059722900390625, -0.0183563232421875, 0.03411865234375, -0.01739501953125, 0.01436614990234375, -0.02923583984375, 0.036834716796875, -0.028289794921875, 0.00797271728515625, -0.0167236328125, -0.0223846435546875, -0.0426025390625, 0.02386474609375, -0.035675048828125, -0.037689208984375, -0.01236724853515625, -0.0146636962890625, -0.0142059326171875, 0.0012798309326171875, 0.0396728515625, -0.0014085769653320312, -0.0026378631591796875, -0.02801513671875, 0.0298004150390625, 0.056060791015625, 0.023101806640625, 0.0263214111328125, -0.034027099609375, -0.00469970703125, 0.0199737548828125, -0.049530029296875, -0.03509521484375, -0.08074951171875, 0.0018138885498046875, 0.0187530517578125, -0.03863525390625, -0.039764404296875, -0.030731201171875, 0.053131103515625, 0.03582763671875, 0.00891876220703125, -0.08477783203125, 0.055877685546875, -0.026641845703125, 0.06561279296875, -0.0040740966796875, -0.0251922607421875, 0.0262603759765625, 0.0655517578125, -0.048675537109375, -0.05560302734375, -0.04052734375, 0.006305694580078125, -0.08331298828125, -0.002880096435546875, 0.04852294921875, -0.007965087890625, -0.033111572265625, -0.018310546875, 0.0042724609375, 0.019744873046875, -0.04925537109375, -0.015869140625, -0.00537872314453125, 0.0234527587890625, 0.004215240478515625, -0.07281494140625, -0.015716552734375, -0.024139404296875, 0.02197265625, -0.01107025146484375, 0.024627685546875, 0.044891357421875, -0.026641845703125, -0.077392578125, 0.0198822021484375, -0.0157012939453125, -0.031585693359375, -0.0242156982421875, 0.015289306640625, -0.0070037841796875, 0.004070281982421875, -0.0098419189453125, -0.0169830322265625, -0.0260772705078125, 0.0118560791015625, 0.00408172607421875, -0.0173492431640625, 0.033721923828125, 0.00732421875, -0.0364990234375, 0.0225830078125, 0.016876220703125, -0.01605224609375, 0.00980377197265625, -0.0197296142578125, 0.03173828125, 0.049285888671875, -0.0148773193359375, -0.042205810546875, 0.0051727294921875, -0.035736083984375, -0.034912109375, -0.026885986328125, 0.003643035888671875, -0.00007003545761108398, 0.06719970703125, 0.05340576171875, 0.00177001953125, -0.035064697265625, -0.036590576171875, -0.006866455078125, 0.033782958984375, -0.0233001708984375, 0.0012941360473632812, -0.074951171875, -0.0181732177734375, -0.005786895751953125, -0.00506591796875, -0.04315185546875, -0.0143280029296875, -0.036834716796875, -0.017486572265625, -0.002124786376953125, 0.01470947265625, 0.0133209228515625, -0.033111572265625, 0.058319091796875, -0.0260467529296875, 0.02996826171875, 0.0121307373046875, 0.0151824951171875, 0.04376220703125, 0.06524658203125, 0.028656005859375, -0.00521087646484375, -0.0400390625, 0.0173492431640625, 0.0039215087890625, 0.006465911865234375, -0.036163330078125, -0.0238494873046875, 0.006664276123046875, 0.028350830078125, -0.0211334228515625, 0.0177764892578125, 0.0166015625, 0.0771484375, 0.0093994140625, 0.046966552734375, 0.0029144287109375, -0.07427978515625, -0.049713134765625, 0.053802490234375, -0.00013554096221923828, -0.0289154052734375, 0.019927978515625, -0.024871826171875, 0.00786590576171875, 0.039886474609375, 0.0882568359375, -0.0377197265625, 0.04693603515625, 0.02117919921875, 0.07452392578125, 0.0311431884765625 ]
b1e3bbcf04595cef8ea51d90d92ce175600c5a33
Wordpress Stackexchange Q: How to Check if a Page Exists by URL? I need to display certain content depending on whether or not a page URL exists. I don't want to check by title, because certain pages will have the same title, and just different parent pages. For example one page may be: * *http://example.com/analysis/firstNamelastName *http://example.com/exercise/firstNamelastName I just need to know if one of these URL exists or not. A: You could make a list of paths to check... $page_paths = array( 'analysis/firstNamelastName', 'exercise/firstNamelastName' ); Then check if there's a page object for each of the page paths. foreach( $page_paths as $page_path ) { echo '<code>' . $page_path . '</code> ' . PHP_EOL; if( ! $page = get_page_by_path( $page_path ) ){ echo 'Does not exist.' . PHP_EOL; } else{ echo 'Exists and resolves to: <code>' . get_permalink( $page->ID ) . '</code>' . PHP_EOL; } } You can actually use get_page_by_path(); for Post Types other than page. See the third parameter.
Q: How to Check if a Page Exists by URL? I need to display certain content depending on whether or not a page URL exists. I don't want to check by title, because certain pages will have the same title, and just different parent pages. For example one page may be: * *http://example.com/analysis/firstNamelastName *http://example.com/exercise/firstNamelastName I just need to know if one of these URL exists or not. A: You could make a list of paths to check... $page_paths = array( 'analysis/firstNamelastName', 'exercise/firstNamelastName' ); Then check if there's a page object for each of the page paths. foreach( $page_paths as $page_path ) { echo '<code>' . $page_path . '</code> ' . PHP_EOL; if( ! $page = get_page_by_path( $page_path ) ){ echo 'Does not exist.' . PHP_EOL; } else{ echo 'Exists and resolves to: <code>' . get_permalink( $page->ID ) . '</code>' . PHP_EOL; } } You can actually use get_page_by_path(); for Post Types other than page. See the third parameter.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:448711", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/160980" }
[ 0.04962158203125, 0.00839996337890625, 0.01056671142578125, -0.03387451171875, 0.0037384033203125, -0.016571044921875, 0.01611328125, -0.02777099609375, 0.0109405517578125, -0.0183868408203125, -0.060516357421875, 0.0086517333984375, -0.03375244140625, -0.0297088623046875, 0.01413726806640625, -0.03692626953125, 0.0129547119140625, 0.0050811767578125, 0.038726806640625, -0.00977325439453125, 0.0142669677734375, -0.01141357421875, 0.045684814453125, 0.002368927001953125, 0.04754638671875, -0.062744140625, 0.044891357421875, -0.02001953125, 0.0039005279541015625, -0.03717041015625, 0.02496337890625, 0.0132904052734375, 0.0016527175903320312, 0.006359100341796875, 0.034515380859375, 0.0177154541015625, 0.015960693359375, 0.01393890380859375, 0.035064697265625, 0.0028533935546875, 0.0179443359375, -0.0032100677490234375, 0.060791015625, 0.01458740234375, 0.002773284912109375, -0.01934814453125, 0.013641357421875, -0.04345703125, -0.0057525634765625, 0.058135986328125, 0.01354217529296875, 0.01824951171875, -0.0049896240234375, 0.0638427734375, 0.003482818603515625, -0.0251922607421875, 0.045989990234375, -0.021728515625, 0.0174560546875, -0.0673828125, -0.04840087890625, 0.01049041748046875, 0.0362548828125, 0.03802490234375, -0.0192413330078125, -0.01288604736328125, -0.033477783203125, 0.026031494140625, -0.03607177734375, -0.04754638671875, 0.032012939453125, -0.01190185546875, -0.039794921875, -0.026031494140625, -0.031494140625, 0.03662109375, 0.00670623779296875, -0.02618408203125, -0.0230560302734375, 0.034149169921875, -0.02142333984375, 0.0213623046875, -0.050384521484375, -0.0201568603515625, 0.0011835098266601562, 0.007389068603515625, -0.0196380615234375, -0.008270263671875, -0.04754638671875, -0.006988525390625, -0.03302001953125, -0.0038299560546875, 0.006786346435546875, -0.046051025390625, -0.039642333984375, -0.00507354736328125, 0.0309906005859375, 0.084228515625, -0.02587890625, 0.0208740234375, -0.019989013671875, -0.024932861328125, 0.042449951171875, -0.0660400390625, 0.0286407470703125, 0.0654296875, 0.0229339599609375, -0.03021240234375, 0.01812744140625, -0.0213623046875, 0.003875732421875, 0.051055908203125, -0.0244140625, -0.0202484130859375, -0.0195159912109375, 0.035888671875, -0.052703857421875, -0.0233917236328125, -0.007556915283203125, -0.00021123886108398438, -0.004062652587890625, 0.033203125, -0.01496124267578125, -0.06707763671875, 0.0274810791015625, 0.00505828857421875, -0.0172576904296875, -0.0241851806640625, 0.0142059326171875, 0.0216522216796875, -0.031646728515625, 0.01351165771484375, 0.03900146484375, -0.0018444061279296875, -0.007663726806640625, -0.014801025390625, 0.00991058349609375, -0.008758544921875, -0.01186370849609375, 0.0012149810791015625, 0.024444580078125, -0.0193634033203125, 0.007640838623046875, -0.002269744873046875, -0.0303955078125, 0.03076171875, 0.0201416015625, 0.008636474609375, -0.014129638671875, -0.055572509765625, -0.0108795166015625, -0.0238494873046875, 0.027587890625, 0.0032444000244140625, -0.032867431640625, -0.03759765625, -0.0191497802734375, -0.022247314453125, 0.0236663818359375, -0.0254364013671875, 0.0272064208984375, -0.0054779052734375, 0.0372314453125, -0.037017822265625, -0.053253173828125, -0.01247406005859375, -0.083251953125, -0.0159759521484375, 0.0113067626953125, 0.02825927734375, -0.00018680095672607422, -0.0066986083984375, -0.0166015625, 0.0007977485656738281, 0.0029659271240234375, 0.00826263427734375, 0.0149993896484375, 0.0095672607421875, -0.0028476715087890625, 0.0249481201171875, -0.01361083984375, -0.0247344970703125, 0.040069580078125, -0.0280914306640625, -0.06805419921875, 0.06976318359375, 0.005123138427734375, 0.036407470703125, -0.01898193359375, -0.0027751922607421875, 0.06304931640625, 0.059326171875, -0.0127105712890625, 0.034271240234375, -0.013397216796875, -0.027313232421875, 0.049285888671875, 0.028839111328125, -0.0164947509765625, -0.027496337890625, 0.023529052734375, 0.01422882080078125, 0.01078033447265625, 0.03643798828125, -0.0287322998046875, 0.029693603515625, -0.0169830322265625, 0.01739501953125, 0.0084991455078125, 0.038726806640625, 0.019866943359375, 0.046295166015625, -0.0452880859375, -0.035186767578125, -0.0146484375, 0.0245819091796875, -0.012786865234375, -0.03656005859375, -0.036712646484375, 0.00557708740234375, -0.0252532958984375, 0.0244140625, -0.0445556640625, 0.027130126953125, 0.0223541259765625, 0.007282257080078125, -0.02197265625, -0.0015811920166015625, -0.0017538070678710938, 0.027374267578125, -0.041168212890625, 0.01349639892578125, 0.030517578125, 0.037445068359375, -0.0212554931640625, -0.0183563232421875, -0.0090179443359375, -0.07464599609375, 0.01898193359375, 0.05780029296875, 0.062225341796875, 0.04107666015625, -0.0215911865234375, -0.0762939453125, 0.049407958984375, -0.1015625, -0.024322509765625, -0.053985595703125, -0.037139892578125, 0.0089111328125, 0.0172271728515625, 0.032073974609375, 0.01442718505859375, -0.007076263427734375, -0.021484375, 0.044342041015625, -0.0017642974853515625, 0.0300750732421875, -0.01873779296875, 0.01236724853515625, -0.00811004638671875, 0.043304443359375, 0.0125885009765625, 0.0026340484619140625, 0.0196990966796875, -0.006591796875, 0.038848876953125, 0.0228118896484375, 0.022186279296875, -0.01824951171875, -0.0179290771484375, -0.048492431640625, -0.0004906654357910156, 0.031494140625, 0.0146026611328125, 0.02935791015625, -0.0240936279296875, -0.01282501220703125, -0.00875091552734375, 0.0293121337890625, -0.01015472412109375, 0.016326904296875, 0.0009312629699707031, -0.0069122314453125, -0.0010557174682617188, -0.00913238525390625, 0.01474761962890625, 0.0184783935546875, 0.03399658203125, 0.0009012222290039062, 0.0391845703125, -0.01116943359375, -0.0260772705078125, 0.046356201171875, 0.0170440673828125, -0.052581787109375, 0.0002053976058959961, -0.0263824462890625, 0.032012939453125, -0.049072265625, 0.02197265625, 0.03759765625, -0.048553466796875, 0.0189971923828125, -0.0067138671875, 0.0012378692626953125, -0.0089569091796875, 0.0192413330078125, -0.01018524169921875, -0.026397705078125, -0.0277557373046875, 0.00914764404296875, 0.00936126708984375, 0.006805419921875, 0.00013172626495361328, -0.0241851806640625, -0.0013580322265625, -0.0036678314208984375, -0.1015625, -0.103271484375, -0.0013103485107421875, -0.07879638671875, 0.00708770751953125, 0.0107574462890625, -0.03729248046875, -0.017852783203125, 0.053955078125, 0.000980377197265625, 0.00794219970703125, -0.0282440185546875, -0.0986328125, -0.07989501953125, -0.1187744140625, 0.00081634521484375, -0.01561737060546875, 0.0218658447265625, 0.0176849365234375, 0.012939453125, 0.00936126708984375, -0.051849365234375, 0.016632080078125, 0.04058837890625, -0.01482391357421875, 0.00711822509765625, -0.047027587890625, 0.03369140625, -0.01221466064453125, 0.011627197265625, 0.07769775390625, -0.016021728515625, 0.0009026527404785156, -0.01039886474609375, -0.0165557861328125, 0.0035858154296875, 0.00174713134765625, -0.009490966796875, 0.024444580078125, 0.02081298828125, 0.006641387939453125, -0.0309906005859375, -0.0584716796875, -0.006366729736328125, -0.0638427734375, 0.0709228515625, 0.05096435546875, 0.0029506683349609375, 0.02197265625, 0.00917816162109375, -0.0014247894287109375, 0.006805419921875, 0.01245880126953125, -0.00984954833984375, 0.0010471343994140625, -0.0263519287109375, -0.01454925537109375, 0.0035190582275390625, 0.036346435546875, -0.004489898681640625, 0.00421142578125, 0.0099029541015625, 0.0119781494140625, 0.0030879974365234375, 0.01467132568359375, -0.017181396484375, -0.0192718505859375, 0.032623291015625, -0.031402587890625, 0.026763916015625, -0.040924072265625, -0.020172119140625, -0.0257110595703125, 0.055938720703125, 0.000335693359375, -0.031829833984375, -0.02532958984375, 0.01230621337890625, -0.03118896484375, -0.05865478515625, 0.005245208740234375, 0.0027027130126953125, -0.061370849609375, 0.0196685791015625, 0.01177215576171875, -0.026641845703125, -0.00223541259765625, 0.0008082389831542969, -0.0215911865234375, -0.0182037353515625, 0.01329803466796875, -0.00504302978515625, 0.014556884765625, 0.046539306640625, -0.019866943359375, 0.0426025390625, -0.00946807861328125, -0.035736083984375, -0.043304443359375, -0.0159912109375, -0.0064849853515625, 0.04083251953125, 0.00008130073547363281, -0.03466796875, -0.0050201416015625, 0.046295166015625, 0.043365478515625, 0.006595611572265625, 0.041290283203125, -0.034027099609375, 0.01038360595703125, 0.00971221923828125, 0.03179931640625, -0.0284271240234375, 0.00921630859375, -0.0118865966796875, -0.051116943359375, -0.02801513671875, -0.0391845703125, 0.0189208984375, 0.0102691650390625, -0.0411376953125, 0.0171356201171875, 0.0058441162109375, -0.0297088623046875, 0.01053619384765625, 0.00432586669921875, -0.036865234375, -0.01273345947265625, -0.0222930908203125, 0.0462646484375, 0.0021762847900390625, -0.0158843994140625, 0.0096282958984375, 0.047210693359375, 0.0153961181640625, -0.030975341796875, -0.06341552734375, -0.0094451904296875, 0.00814056396484375, 0.00460052490234375, 0.04345703125, 0.000010371208190917969, 0.001972198486328125, 0.0477294921875, -0.0141448974609375, 0.018096923828125, 0.040740966796875, -0.002410888671875, -0.0064697265625, -0.032073974609375, 0.01020050048828125, 0.005115509033203125, -0.0157928466796875, 0.050750732421875, -0.022674560546875, -0.0022907257080078125, 0.0054931640625, 0.01812744140625, -0.032806396484375, 0.0088653564453125, -0.017486572265625, -0.01238250732421875, -0.008941650390625, 0.01678466796875, 0.035125732421875, 0.04461669921875, -0.018341064453125, 0.01551055908203125, 0.01045989990234375, -0.01016998291015625, 0.060699462890625, 0.06793212890625, 0.01049041748046875, 0.03265380859375, 0.00705718994140625, -0.03131103515625, 0.004100799560546875, -0.0187225341796875, 0.068359375, -0.01275634765625, -0.0382080078125, 0.010223388671875, -0.041107177734375, 0.01439666748046875, 0.0225982666015625, 0.004486083984375, 0.03704833984375, 0.002521514892578125, -0.01324462890625, -0.006565093994140625, 0.002780914306640625, -0.0149383544921875, -0.04278564453125, 0.0156402587890625, 0.0098876953125, -0.005401611328125, 0.0018777847290039062, 0.04986572265625, -0.023529052734375, 0.031402587890625, -0.00980377197265625, 0.034454345703125, 0.023468017578125, 0.040985107421875, 0.004093170166015625, 0.00965118408203125, -0.005115509033203125, 0.038116455078125, 0.01351165771484375, -0.027252197265625, -0.04052734375, 0.031005859375, 0.048675537109375, -0.0300750732421875, -0.00800323486328125, 0.012451171875, 0.012054443359375, -0.013580322265625, 0.034454345703125, 0.0164794921875, -0.0174713134765625, -0.031768798828125, -0.03173828125, 0.0244140625, -0.002471923828125, -0.0413818359375, 0.033355712890625, -0.0251617431640625, 0.01129913330078125, 0.029083251953125, -0.06402587890625, 0.037841796875, 0.04058837890625, 0.003398895263671875, -0.030975341796875, 0.00887298583984375, 0.000125885009765625, 0.0298004150390625, -0.03656005859375, -0.0227813720703125, 0.037567138671875, -0.0272064208984375, 0.042327880859375, -0.0229034423828125, -0.0222015380859375, 0.01861572265625, 0.006961822509765625, 0.052825927734375, 0.0292816162109375, -0.04254150390625, 0.0255126953125, -0.048431396484375, 0.0009164810180664062, -0.0239715576171875, -0.056121826171875, -0.03216552734375, -0.02789306640625, -0.0021915435791015625, 0.0007014274597167969, -0.0032215118408203125, 0.017333984375, -0.00917816162109375, 0.044281005859375, 0.0094451904296875, 0.025146484375, 0.01025390625, 0.083740234375, -0.0183258056640625, 0.036407470703125, 0.0256195068359375, 0.03131103515625, -0.04315185546875, -0.01528167724609375, 0.02496337890625, -0.006549835205078125, -0.0210723876953125, -0.038116455078125, 0.0031490325927734375, 0.0015344619750976562, 0.0252532958984375, -0.005901336669921875, -0.037689208984375, -0.004421234130859375, -0.00559234619140625, -0.0204925537109375, 0.039276123046875, 0.03021240234375, -0.038299560546875, 0.01593017578125, -0.018310546875, -0.012908935546875, 0.002490997314453125, -0.0165863037109375, 0.0064697265625, 0.033050537109375, -0.00701141357421875, -0.0014371871948242188, -0.06707763671875, 0.049591064453125, 0.06549072265625, 0.00824737548828125, 0.06329345703125, -0.010894775390625, 0.0186920166015625, 0.05865478515625, -0.0204620361328125, -0.00623321533203125, 0.0035839080810546875, 0.07080078125, 0.009307861328125, 0.007724761962890625, 0.0704345703125, -0.0228424072265625, -0.0228424072265625, 0.0533447265625, 0.041107177734375, -0.057220458984375, -0.021026611328125, 0.006763458251953125, -0.00287628173828125, -0.01259613037109375, -0.01210784912109375, 0.012481689453125, -0.00177001953125, 0.033905029296875, -0.0038166046142578125, -0.0211029052734375, 0.004184722900390625, -0.033935546875, 0.0029621124267578125, -0.0270538330078125, 0.04608154296875, 0.0059967041015625, -0.0301513671875, -0.0055999755859375, 0.0308685302734375, -0.01953125, -0.0200042724609375, 0.00628662109375, -0.0174407958984375, 0.0086822509765625, -0.01261138916015625, 0.03582763671875, -0.062744140625, 0.031219482421875, 0.0194091796875, 0.0146636962890625, 0.0202178955078125, 0.0399169921875, -0.0007147789001464844, -0.032562255859375, 0.038360595703125, -0.06866455078125, -0.005527496337890625, 0.01371002197265625, 0.0313720703125, -0.0224761962890625, -0.03497314453125, 0.0024623870849609375, -0.06561279296875, 0.0005412101745605469, 0.0064697265625, 0.0162200927734375, 0.1009521484375, -0.04443359375, -0.0242919921875, 0.022369384765625, -0.0122833251953125, -0.007434844970703125, -0.0010728836059570312, 0.017852783203125, -0.0204315185546875, -0.010101318359375, -0.0004074573516845703, -0.027099609375, -0.004856109619140625, -0.0286102294921875, -0.07928466796875, 0.10107421875, -0.01776123046875, 0.05059814453125, 0.01082611083984375, 0.0305023193359375, -0.00577545166015625, 0.00753021240234375, -0.045562744140625, 0.0645751953125, 0.0170440673828125, 0.050567626953125, -0.044464111328125, -0.0102386474609375, 0.01482391357421875, 0.05145263671875, 0.0231781005859375, -0.005252838134765625, 0.01113128662109375, -0.01248931884765625, 0.03802490234375, 0.0197906494140625, -0.0081329345703125, 0.01306915283203125, -0.0118865966796875, 0.033660888671875, 0.06011962890625, -0.047210693359375, 0.0279388427734375, -0.0258636474609375, -0.0101165771484375, -0.003215789794921875, 0.01264190673828125, 0.0011491775512695312, -0.005218505859375, -0.0170135498046875, -0.037384033203125, 0.005306243896484375, 0.0299224853515625, -0.0211181640625, 0.042724609375, -0.01158905029296875, 0.0220184326171875, -0.041900634765625, -0.059112548828125, 0.00804901123046875, 0.0213623046875, 0.0191497802734375, 0.0085296630859375, 0.0100860595703125, 0.01134490966796875, 0.06219482421875, -0.0214080810546875, -0.02423095703125, 0.0017538070678710938, 0.025238037109375, 0.061859130859375, 0.05255126953125, 0.0265960693359375, -0.0009565353393554688, 0.0246124267578125, 0.0256500244140625, 0.07073974609375, -0.049835205078125, -0.057159423828125, 0.00870513916015625, -0.00765228271484375, -0.00667572021484375, 0.005809783935546875, -0.013763427734375, 0.01557159423828125, 0.0784912109375, -0.061553955078125, 0.001735687255859375, 0.01448822021484375, 0.0173187255859375, -0.02764892578125, -0.05462646484375, -0.003025054931640625, 0.00968170166015625, -0.028564453125, -0.0208587646484375, 0.0176239013671875, 0.051544189453125, 0.046966552734375, -0.01024627685546875, -0.0369873046875, -0.03106689453125, -0.0031871795654296875, 0.0236663818359375, -0.043548583984375, 0.022979736328125, -0.031494140625, -0.05426025390625, -0.01751708984375, 0.035858154296875, 0.057098388671875, 0.0274200439453125, 0.024993896484375, 0.00046372413635253906, 0.0251617431640625, 0.0193023681640625, 0.0266265869140625, -0.0077667236328125, 0.00974273681640625, -0.0181427001953125, -0.0123291015625, 0.0020847320556640625, -0.00814056396484375, -0.000583648681640625, -0.0007262229919433594, 0.019500732421875, -0.0028533935546875, 0.0295562744140625, 0.00817108154296875, -0.009490966796875, 0.052154541015625, 0.01139068603515625, 0.055999755859375, 0.0200042724609375, -0.07794189453125, -0.018280029296875, 0.01277923583984375, -0.060882568359375, 0.0206756591796875, 0.04730224609375, -0.0181732177734375, 0.00943756103515625, 0.021270751953125, 0.005786895751953125, 0.0243377685546875, -0.01067352294921875, 0.0015439987182617188, -0.007476806640625, 0.0280303955078125, 0.01239013671875, 0.0023937225341796875, 0.00022137165069580078, 0.01355743408203125, 0.0103912353515625, 0.0092315673828125, 0.0999755859375, -0.04046630859375, -0.01132965087890625, 0.0032196044921875, 0.029144287109375, -0.03912353515625, -0.0154266357421875, 0.0278778076171875, -0.026702880859375, 0.01513671875, 0.0014858245849609375, -0.048614501953125, 0.0433349609375, 0.00849151611328125, 0.00506591796875, 0.031982421875, -0.0196533203125, 0.01381683349609375, 0.0038661956787109375, 0.018829345703125, -0.0172882080078125, -0.04046630859375, -0.0240020751953125, 0.0206146240234375, 0.0124664306640625, 0.0660400390625, -0.0135498046875, 0.046234130859375, -0.0012359619140625, -0.0391845703125, 0.0384521484375, -0.052490234375, 0.042022705078125, 0.027984619140625, 0.011993408203125, -0.0197601318359375, -0.0299224853515625, -0.016357421875, 0.01268768310546875, 0.0027179718017578125, 0.01233673095703125, -0.003009796142578125, 0.0621337890625, -0.0238494873046875, -0.030303955078125, -0.0168304443359375, -0.032135009765625, -0.0232086181640625, 0.01190948486328125, -0.0086517333984375, -0.006771087646484375, -0.0242462158203125, -0.006320953369140625, -0.0126953125, 0.0038928985595703125, -0.0033245086669921875, 0.040313720703125, -0.0019931793212890625, 0.06396484375, 0.015289306640625, -0.0034465789794921875, 0.002254486083984375, -0.03369140625, 0.02850341796875, -0.0286407470703125, 0.01430511474609375, -0.046875, 0.036163330078125, 0.0008912086486816406, 0.0251922607421875, -0.0299224853515625, 0.05010986328125, -0.0147705078125, -0.035614013671875, 0.027984619140625, 0.01030731201171875, 0.034942626953125, -0.0290069580078125, -0.0804443359375, -0.02374267578125, 0.0110626220703125, 0.0155792236328125, 0.03936767578125, -0.0311279296875, -0.002780914306640625, -0.0037593841552734375, -0.01163482666015625, -0.03216552734375, 0.01178741455078125, -0.0167388916015625, -0.0294036865234375, -0.0021228790283203125, 0.01268768310546875, 0.0305938720703125, -0.01342010498046875, -0.039703369140625, 0.0745849609375, 0.0006437301635742188, -0.0154266357421875, -0.0303955078125, -0.01146697998046875, -0.034881591796875, 0.04327392578125, -0.00011372566223144531, 0.0025463104248046875, 0.009307861328125, 0.039306640625, 0.0170440673828125, 0.04241943359375, 0.01158905029296875, 0.008331298828125, -0.0535888671875, 0.01354217529296875, -0.0074920654296875, 0.0200347900390625, 0.040863037109375, -0.0010242462158203125, 0.033355712890625, 0.047271728515625, -0.01276397705078125, -0.0265960693359375, -0.031402587890625, -0.058349609375, -0.0169830322265625, -0.0254364013671875, -0.001674652099609375, -0.01171875, 0.07769775390625, 0.036773681640625, 0.0155181884765625, -0.0312042236328125, -0.03515625, -0.06280517578125, -0.03326416015625, -0.006313323974609375, 0.0254058837890625, -0.05804443359375, 0.036834716796875, -0.0013170242309570312, -0.01532745361328125, -0.03271484375, 0.003208160400390625, -0.030426025390625, -0.0174102783203125, 0.0168609619140625, 0.0052032470703125, -0.01236724853515625, -0.01467132568359375, 0.01849365234375, -0.01160430908203125, 0.00989532470703125, -0.0145111083984375, 0.0267333984375, -0.0036907196044921875, -0.0045166015625, 0.0338134765625, 0.0543212890625, -0.051422119140625, -0.0163421630859375, 0.0261383056640625, 0.0166473388671875, -0.022430419921875, -0.037017822265625, -0.0311737060546875, -0.001987457275390625, 0.01099395751953125, -0.0221405029296875, -0.00848388671875, 0.0012063980102539062, 0.006946563720703125, 0.046661376953125, 0.01412200927734375, 0.08203125, 0.0258026123046875, 0.017303466796875, 0.00171661376953125, -0.0184326171875, 0.029144287109375, -0.06011962890625, -0.0279388427734375, -0.004001617431640625, -0.08575439453125, -0.1046142578125, 0.04052734375, 0.003749847412109375, -0.0206451416015625, 0.03717041015625 ]
aa6658ac5250658f4499c0548a803fe311d3f844
Wordpress Stackexchange Q: Template for specific post of custom post type I have the CPT "event". I have created single-event.php. I want one particular event to use a different template than single-event. I read elsewhere that this could be done by creating a single-event-[slug].php but I tried it and it does not work. WP uses single-event.php. (I can't find this in the WordPress documentation, so I'm thinking maybe I misunderstood?) Is there a way of doing this? A: For the templates WordPress uses, please always refer to Template hierarchy scheme in the Codex. As you can see there, single-{$posttype}-{$slug}.php does not exist, there is only single-{$posttype}.php. To do what you want, have a look at the filter 'single_template': add_filter( 'single_template', function( $template ) { global $post; if ( $post->post_type === 'event' ) { $locate_template = locate_template( "single-event-{$post->post_name}.php" ); if ( ! empty( $locate_template ) ) { $template = $locate_template; } } return $template; } ); After adding this in your functions.php, you can create the file single-event-{$slug}.php and it will be loaded by WordPress.
Q: Template for specific post of custom post type I have the CPT "event". I have created single-event.php. I want one particular event to use a different template than single-event. I read elsewhere that this could be done by creating a single-event-[slug].php but I tried it and it does not work. WP uses single-event.php. (I can't find this in the WordPress documentation, so I'm thinking maybe I misunderstood?) Is there a way of doing this? A: For the templates WordPress uses, please always refer to Template hierarchy scheme in the Codex. As you can see there, single-{$posttype}-{$slug}.php does not exist, there is only single-{$posttype}.php. To do what you want, have a look at the filter 'single_template': add_filter( 'single_template', function( $template ) { global $post; if ( $post->post_type === 'event' ) { $locate_template = locate_template( "single-event-{$post->post_name}.php" ); if ( ! empty( $locate_template ) ) { $template = $locate_template; } } return $template; } ); After adding this in your functions.php, you can create the file single-event-{$slug}.php and it will be loaded by WordPress. A: Use this code in your functions file for a child theme and change the 8 to the post i.D you want to use the custom single CPT template on. function get_custom_post_type_template($single_template) { global $post; if ( is_single('8') ) { $single_template = get_stylesheet_directory() . '/custom-cpt-template.php'; } return $single_template; } add_filter( 'single_template', 'get_custom_post_type_template' );
wordpress
{ "language": "en", "length": 225, "provenance": "stackexchange_00019.jsonl.gz:448720", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161008" }
[ 0.07037353515625, -0.01430511474609375, 0.038055419921875, -0.0823974609375, 0.0086517333984375, -0.011932373046875, 0.0102691650390625, -0.01120758056640625, -0.03741455078125, 0.0323486328125, 0.0333251953125, 0.032257080078125, -0.008575439453125, -0.03076171875, 0.0141754150390625, 0.0057220458984375, 0.0272216796875, -0.0245513916015625, 0.002315521240234375, -0.0272369384765625, 0.032806396484375, -0.006496429443359375, -0.0032520294189453125, 0.054046630859375, 0.037322998046875, -0.0220947265625, 0.063720703125, -0.046630859375, 0.033294677734375, -0.0228271484375, 0.0218353271484375, 0.0022068023681640625, 0.0372314453125, -0.006732940673828125, -0.036346435546875, 0.03167724609375, -0.04254150390625, 0.0199432373046875, -0.0059051513671875, 0.0049591064453125, -0.0251922607421875, 0.01971435546875, 0.03448486328125, 0.0301055908203125, -0.00009059906005859375, -0.028106689453125, -0.01519775390625, -0.055511474609375, 0.0229644775390625, 0.013275146484375, 0.0050048828125, -0.01285552978515625, 0.0263824462890625, -0.042327880859375, -0.0020999908447265625, 0.00372314453125, -0.04132080078125, 0.00930023193359375, 0.000629425048828125, 0.02752685546875, 0.023590087890625, 0.0330810546875, -0.0017232894897460938, 0.0087432861328125, -0.033447265625, 0.0207061767578125, -0.0232391357421875, -0.01214599609375, -0.0108489990234375, -0.034698486328125, 0.00862884521484375, -0.0249481201171875, 0.0020961761474609375, -0.0019102096557617188, -0.0016965866088867188, -0.0003523826599121094, 0.010040283203125, 0.010650634765625, 0.00939178466796875, 0.01184844970703125, 0.031158447265625, -0.04010009765625, -0.00969696044921875, -0.0161285400390625, -0.008331298828125, -0.0079803466796875, 0.006839752197265625, 0.0004546642303466797, -0.0184478759765625, -0.011138916015625, -0.03118896484375, -0.0231781005859375, 0.00342559814453125, 0.0084991455078125, -0.0281524658203125, -0.0020904541015625, 0.0205535888671875, 0.035064697265625, -0.01457977294921875, 0.01314544677734375, 0.009368896484375, -0.032012939453125, 0.0279693603515625, -0.027557373046875, 0.018157958984375, 0.05975341796875, 0.0073699951171875, -0.0181732177734375, 0.0196380615234375, -0.00020682811737060547, 0.011688232421875, 0.0019626617431640625, -0.02490234375, -0.0128936767578125, -0.05169677734375, 0.0287322998046875, -0.031158447265625, -0.01221466064453125, -0.004016876220703125, 0.03045654296875, 0.03375244140625, 0.04376220703125, 0.08251953125, -0.0189208984375, -0.03948974609375, -0.005062103271484375, -0.01421356201171875, -0.1180419921875, 0.01219940185546875, -0.00836944580078125, -0.014495849609375, 0.00916290283203125, 0.043731689453125, 0.033172607421875, 0.00457000732421875, -0.00415802001953125, 0.0270843505859375, 0.006114959716796875, -0.0139923095703125, 0.014617919921875, 0.045501708984375, 0.000006496906280517578, -0.018463134765625, 0.01055145263671875, 0.0198211669921875, -0.002948760986328125, 0.0242156982421875, 0.01861572265625, 0.014312744140625, 0.0099945068359375, -0.0247650146484375, 0.0252227783203125, 0.041015625, -0.007633209228515625, -0.022979736328125, -0.05194091796875, -0.018035888671875, -0.029052734375, 0.0271453857421875, -0.042236328125, -0.006031036376953125, -0.00402069091796875, -0.00260162353515625, -0.04296875, -0.052032470703125, 0.026092529296875, -0.03448486328125, -0.0064849853515625, 0.013946533203125, -0.010894775390625, 0.00788116455078125, 0.00860595703125, -0.0196380615234375, 0.01229095458984375, 0.00676727294921875, 0.012786865234375, -0.030364990234375, 0.01007843017578125, 0.0166778564453125, 0.05523681640625, 0.0159912109375, -0.0280303955078125, 0.0160980224609375, 0.01529693603515625, -0.07958984375, 0.03143310546875, 0.0003228187561035156, 0.0211334228515625, 0.032440185546875, 0.0010042190551757812, 0.0433349609375, 0.02880859375, -0.0126800537109375, -0.00829315185546875, -0.02227783203125, -0.020751953125, 0.0011358261108398438, -0.0029697418212890625, -0.0185394287109375, 0.038116455078125, -0.03790283203125, 0.01105499267578125, 0.002544403076171875, 0.032470703125, -0.0166473388671875, 0.03289794921875, -0.0190277099609375, 0.035186767578125, -0.0288543701171875, -0.007717132568359375, 0.0205535888671875, -0.00240325927734375, -0.005756378173828125, -0.04302978515625, -0.020111083984375, 0.047882080078125, 0.03717041015625, 0.0182037353515625, -0.02392578125, 0.0237884521484375, -0.03973388671875, -0.0292510986328125, -0.05889892578125, 0.043792724609375, 0.0679931640625, 0.00273895263671875, -0.018310546875, -0.01314544677734375, 0.0235443115234375, 0.004001617431640625, -0.035614013671875, 0.04296875, -0.005535125732421875, -0.004062652587890625, -0.0338134765625, 0.0161590576171875, 0.0166473388671875, 0.01515960693359375, -0.0104217529296875, 0.02252197265625, 0.017242431640625, 0.037261962890625, -0.006542205810546875, 0.030059814453125, 0.01378631591796875, -0.0241851806640625, 0.00867462158203125, 0.0007839202880859375, -0.0113525390625, -0.0206298828125, -0.0000349879264831543, -0.0031795501708984375, 0.03338623046875, -0.0265960693359375, 0.0274810791015625, 0.02374267578125, -0.011932373046875, -0.002349853515625, 0.00464630126953125, 0.0182037353515625, -0.011199951171875, 0.031585693359375, 0.018951416015625, 0.006443023681640625, 0.017303466796875, 0.00640106201171875, 0.025848388671875, -0.0014791488647460938, -0.022918701171875, 0.0167236328125, 0.01491546630859375, -0.02569580078125, -0.0136260986328125, 0.023773193359375, 0.00039577484130859375, 0.057464599609375, -0.05560302734375, 0.010284423828125, -0.004100799560546875, 0.017791748046875, -0.0178985595703125, 0.04852294921875, -0.030975341796875, -0.018341064453125, -0.030914306640625, -0.0616455078125, -0.017822265625, -0.006099700927734375, 0.0184783935546875, -0.01007843017578125, 0.01434326171875, 0.022247314453125, -0.032958984375, 0.0517578125, 0.0072021484375, -0.031280517578125, -0.00023174285888671875, -0.03875732421875, 0.029449462890625, -0.03753662109375, 0.055511474609375, 0.055572509765625, -0.036407470703125, 0.053985595703125, -0.0009870529174804688, -0.002841949462890625, 0.0016965866088867188, -0.0186004638671875, -0.039276123046875, -0.034942626953125, -0.0197906494140625, 0.010345458984375, 0.01898193359375, 0.06646728515625, 0.0093231201171875, -0.0306549072265625, 0.03167724609375, 0.039886474609375, 0.011322021484375, -0.00769805908203125, -0.0030117034912109375, -0.06915283203125, 0.037994384765625, -0.039581298828125, -0.04168701171875, -0.0190277099609375, -0.00975799560546875, 0.0253143310546875, -0.013153076171875, 0.00879669189453125, -0.03802490234375, -0.0112457275390625, -0.036376953125, 0.0249176025390625, -0.002979278564453125, 0.0069122314453125, 0.0088653564453125, 0.082275390625, 0.0307464599609375, -0.054351806640625, 0.01009368896484375, 0.045501708984375, -0.05010986328125, -0.0062103271484375, 0.004150390625, -0.052703857421875, 0.036468505859375, 0.0014295578002929688, -0.01348114013671875, 0.014129638671875, 0.012786865234375, -0.03485107421875, -0.0089111328125, 0.0015411376953125, 0.0194549560546875, 0.07647705078125, 0.018890380859375, 0.005069732666015625, 0.06500244140625, -0.0244903564453125, -0.05157470703125, -0.006183624267578125, -0.05377197265625, 0.0129852294921875, 0.049072265625, -0.01131439208984375, -0.04559326171875, 0.0265960693359375, 0.01337432861328125, 0.037994384765625, 0.0246124267578125, 0.01038360595703125, 0.025665283203125, 0.0010461807250976562, -0.020782470703125, -0.0255126953125, -0.0163726806640625, -0.018035888671875, 0.002471923828125, -0.007694244384765625, 0.00196075439453125, -0.0081329345703125, 0.00528717041015625, -0.032501220703125, -0.067626953125, 0.05242919921875, -0.0225677490234375, 0.0057830810546875, -0.043212890625, -0.020172119140625, 0.002307891845703125, 0.0908203125, -0.041534423828125, -0.0265350341796875, -0.0211181640625, -0.00199127197265625, 0.0123443603515625, -0.020111083984375, 0.00157928466796875, -0.01064300537109375, -0.045562744140625, 0.028076171875, 0.0267791748046875, -0.01824951171875, -0.0244903564453125, 0.0306854248046875, -0.04742431640625, -0.0121917724609375, 0.03192138671875, -0.045196533203125, 0.01148223876953125, 0.036346435546875, -0.0243377685546875, 0.01629638671875, -0.019073486328125, -0.05035400390625, -0.0382080078125, -0.02081298828125, 0.005916595458984375, 0.0477294921875, 0.0215301513671875, -0.0299835205078125, 0.0034999847412109375, 0.04583740234375, 0.04150390625, -0.02716064453125, -0.0010318756103515625, -0.038604736328125, 0.03143310546875, 0.015228271484375, -0.022552490234375, 0.006015777587890625, -0.019073486328125, -0.00446319580078125, -0.04052734375, 0.0214385986328125, -0.00453948974609375, -0.0061492919921875, 0.0294342041015625, -0.0196075439453125, -0.045135498046875, 0.0012807846069335938, 0.034332275390625, 0.032440185546875, 0.029449462890625, -0.0167999267578125, -0.006206512451171875, -0.04742431640625, 0.005401611328125, 0.023773193359375, -0.0242462158203125, 0.0052032470703125, 0.046478271484375, 0.035064697265625, -0.0303802490234375, -0.043975830078125, 0.0230560302734375, 0.0226287841796875, 0.029327392578125, 0.0242462158203125, -0.0037994384765625, -0.00024211406707763672, 0.005565643310546875, 0.0024662017822265625, -0.0027332305908203125, -0.0478515625, 0.058380126953125, 0.005199432373046875, -0.0107269287109375, 0.0176849365234375, -0.00836181640625, 0.033233642578125, 0.002803802490234375, 0.0033016204833984375, -0.04473876953125, 0.0285186767578125, 0.077880859375, -0.005596160888671875, 0.0178985595703125, -0.06561279296875, -0.01287841796875, 0.005329132080078125, -0.00009191036224365234, 0.023590087890625, 0.04229736328125, -0.00954437255859375, 0.0200653076171875, -0.008453369140625, -0.01213836669921875, 0.0166778564453125, 0.01275634765625, 0.0217437744140625, -0.0013580322265625, 0.06341552734375, 0.0033473968505859375, -0.0244903564453125, -0.0016412734985351562, -0.01373291015625, 0.0257720947265625, -0.013580322265625, -0.0016603469848632812, 0.01224517822265625, -0.0257568359375, -0.0204010009765625, -0.038177490234375, 0.02569580078125, 0.06170654296875, -0.0087127685546875, -0.006622314453125, -0.0380859375, 0.0239105224609375, -0.033294677734375, -0.0203399658203125, 0.001094818115234375, -0.0186920166015625, 0.0166473388671875, -0.010101318359375, 0.0021114349365234375, -0.013580322265625, -0.019744873046875, 0.051605224609375, 0.047088623046875, 0.041778564453125, 0.0219268798828125, -0.06317138671875, -0.0232696533203125, 0.0273590087890625, -0.033660888671875, -0.041656494140625, -0.0214996337890625, 0.00885009765625, 0.031768798828125, -0.03289794921875, -0.0170745849609375, 0.04644775390625, 0.0097198486328125, 0.009185791015625, 0.004535675048828125, 0.01983642578125, -0.0019550323486328125, 0.0032196044921875, 0.004444122314453125, 0.000027120113372802734, -0.01148223876953125, -0.050384521484375, 0.0423583984375, -0.053741455078125, 0.0232391357421875, 0.035614013671875, -0.0192413330078125, 0.007503509521484375, -0.0035552978515625, 0.0146942138671875, -0.021026611328125, -0.02093505859375, -0.025604248046875, 0.00286865234375, -0.0203704833984375, -0.0154876708984375, 0.03936767578125, -0.0328369140625, 0.010223388671875, -0.021881103515625, 0.0030155181884765625, -0.0304412841796875, 0.0143280029296875, 0.04833984375, 0.035247802734375, -0.011871337890625, -0.0014142990112304688, -0.0219879150390625, -0.018402099609375, 0.025390625, -0.0253143310546875, -0.0266876220703125, -0.01678466796875, -0.01407623291015625, 0.02618408203125, -0.00795745849609375, 0.024078369140625, 0.023529052734375, -0.00598907470703125, -0.0450439453125, 0.033233642578125, -0.0107421875, 0.0673828125, 0.0230865478515625, 0.0516357421875, 0.0218963623046875, 0.035797119140625, -0.003833770751953125, -0.035247802734375, -0.0212554931640625, -0.039215087890625, -0.003101348876953125, 0.00415802001953125, -0.005039215087890625, 0.04486083984375, 0.05859375, 0.00847625732421875, -0.02105712890625, -0.020355224609375, 0.00797271728515625, -0.02593994140625, 0.031524658203125, -0.0189208984375, -0.0350341796875, 0.0226593017578125, -0.031402587890625, 0.0028629302978515625, -0.01238250732421875, 0.00020742416381835938, 0.0244903564453125, -0.02911376953125, 0.003391265869140625, 0.04461669921875, -0.018890380859375, 0.07037353515625, 0.0682373046875, -0.005695343017578125, 0.0303497314453125, 0.00688934326171875, 0.007266998291015625, -0.01458740234375, 0.00823974609375, -0.01351165771484375, -0.020263671875, 0.045867919921875, 0.00011354684829711914, -0.035919189453125, 0.0093536376953125, -0.033203125, -0.01210784912109375, 0.037017822265625, 0.01995849609375, -0.06024169921875, -0.0173187255859375, -0.0190887451171875, -0.00508880615234375, 0.00940704345703125, -0.00667572021484375, 0.002231597900390625, -0.035003662109375, 0.00016689300537109375, 0.04083251953125, -0.022064208984375, -0.01343536376953125, 0.0146484375, 0.0207366943359375, 0.020751953125, 0.0679931640625, 0.0063629150390625, -0.0418701171875, -0.003154754638671875, -0.0007486343383789062, 0.039306640625, -0.044342041015625, 0.00589752197265625, -0.0109710693359375, -0.0180816650390625, -0.06024169921875, 0.0017385482788085938, -0.01399993896484375, 0.0214996337890625, 0.04388427734375, 0.009613037109375, 0.0284881591796875, 0.032989501953125, -0.0039825439453125, 0.0201263427734375, 0.0008440017700195312, -0.003337860107421875, -0.0615234375, -0.0142822265625, 0.00452423095703125, 0.045928955078125, -0.031219482421875, 0.02923583984375, -0.0243682861328125, -0.00734710693359375, -0.01514434814453125, -0.02618408203125, 0.06768798828125, -0.0207061767578125, -0.0256805419921875, 0.02874755859375, 0.01183319091796875, -0.017242431640625, 0.01474761962890625, 0.020111083984375, -0.04119873046875, -0.05462646484375, 0.0282135009765625, -0.0748291015625, -0.01024627685546875, 0.0209503173828125, -0.06829833984375, 0.1268310546875, 0.018310546875, 0.04705810546875, 0.0211334228515625, 0.046112060546875, -0.043182373046875, 0.026336669921875, -0.038421630859375, 0.0579833984375, -0.005031585693359375, 0.07940673828125, -0.04888916015625, -0.008209228515625, 0.0386962890625, 0.0404052734375, 0.06597900390625, 0.0099334716796875, 0.00632476806640625, 0.04302978515625, 0.0858154296875, -0.0011119842529296875, -0.038909912109375, 0.041900634765625, -0.0103912353515625, -0.0302886962890625, 0.00727081298828125, 0.03125, 0.02423095703125, 0.01055908203125, -0.0460205078125, 0.01666259765625, 0.0147552490234375, 0.0021305084228515625, 0.019805908203125, -0.0411376953125, -0.039337158203125, 0.0178070068359375, 0.01031494140625, 0.01068115234375, -0.0190277099609375, 0.04022216796875, 0.04022216796875, -0.07464599609375, -0.013214111328125, -0.0465087890625, 0.054351806640625, 0.016815185546875, -0.041412353515625, 0.0151214599609375, 0.01073455810546875, -0.0712890625, -0.043212890625, -0.0338134765625, 0.003948211669921875, -0.00888824462890625, 0.0257415771484375, -0.0016870498657226562, 0.00823211669921875, -0.055511474609375, 0.0357666015625, 0.0589599609375, 0.047088623046875, -0.042449951171875, -0.020538330078125, 0.01210784912109375, 0.0278778076171875, 0.00044083595275878906, -0.0031147003173828125, 0.0300445556640625, -0.01140594482421875, 0.02142333984375, -0.0259552001953125, -0.00384521484375, 0.032318115234375, -0.007354736328125, 0.0015316009521484375, 0.0227508544921875, -0.0035228729248046875, 0.01029205322265625, -0.058624267578125, 0.03143310546875, 0.06512451171875, 0.06121826171875, -0.0107574462890625, 0.049285888671875, 0.009735107421875, -0.0265045166015625, -0.01371002197265625, -0.0030517578125, -0.019622802734375, 0.0130462646484375, -0.0214996337890625, -0.00270843505859375, -0.004199981689453125, 0.034393310546875, 0.041900634765625, 0.0316162109375, 0.07513427734375, 0.03192138671875, -0.031341552734375, -0.001522064208984375, 0.03204345703125, -0.027374267578125, 0.040863037109375, -0.018310546875, -0.02435302734375, -0.028778076171875, -0.03466796875, -0.0272216796875, -0.0022068023681640625, 0.0145721435546875, 0.0005345344543457031, 0.0196685791015625, -0.0006465911865234375, -0.003505706787109375, 0.0338134765625, -0.00872039794921875, 0.037445068359375, 0.02606201171875, -0.059722900390625, -0.01068115234375, -0.00405120849609375, -0.085205078125, 0.057891845703125, 0.07257080078125, -0.0130157470703125, -0.0164642333984375, 0.0241546630859375, 0.0186920166015625, 0.0102691650390625, -0.03271484375, 0.0138092041015625, -0.01910400390625, 0.01474761962890625, 0.017120361328125, -0.07806396484375, -0.052093505859375, -0.02081298828125, 0.043792724609375, -0.01239776611328125, 0.0799560546875, -0.013519287109375, 0.01302337646484375, 0.028106689453125, 0.01165771484375, -0.00908660888671875, 0.0207061767578125, 0.00409698486328125, -0.0107574462890625, 0.0189056396484375, -0.006275177001953125, -0.049713134765625, -0.0205841064453125, 0.069580078125, -0.0300140380859375, 0.01502227783203125, -0.005458831787109375, 0.0191650390625, -0.061370849609375, 0.0406494140625, -0.0261688232421875, 0.006328582763671875, -0.04498291015625, -0.03643798828125, 0.05548095703125, 0.0118408203125, 0.01340484619140625, 0.07073974609375, -0.04962158203125, -0.038543701171875, 0.009674072265625, -0.08233642578125, -0.03009033203125, 0.01358795166015625, 0.0306549072265625, -0.00672149658203125, 0.03338623046875, -0.006992340087890625, 0.0180511474609375, 0.018157958984375, 0.0273895263671875, 0.009674072265625, 0.0009741783142089844, -0.01076507568359375, -0.05615234375, -0.01177215576171875, -0.0261993408203125, -0.0250091552734375, -0.0093231201171875, 0.007171630859375, -0.0175018310546875, 0.00708770751953125, -0.0277252197265625, -0.01490020751953125, 0.003757476806640625, 0.0089569091796875, 0.0010499954223632812, -0.0250091552734375, -0.038360595703125, -0.0390625, 0.062469482421875, -0.02276611328125, 0.04547119140625, -0.044586181640625, -0.05743408203125, -0.007137298583984375, 0.0170440673828125, -0.01345062255859375, 0.01678466796875, 0.0343017578125, -0.025482177734375, -0.018157958984375, -0.0303955078125, 0.0090789794921875, -0.0118255615234375, 0.01464080810546875, 0.07598876953125, -0.017730712890625, -0.058807373046875, 0.00960540771484375, -0.01056671142578125, 0.053466796875, -0.08135986328125, 0.0006985664367675781, 0.0272369384765625, 0.0025501251220703125, -0.044158935546875, -0.040740966796875, 0.0311737060546875, -0.032012939453125, -0.029022216796875, 0.0018062591552734375, -0.0140228271484375, -0.003753662109375, -0.04693603515625, -0.10614013671875, 0.05731201171875, -0.01558685302734375, -0.036407470703125, -0.07257080078125, 0.0601806640625, 0.0269012451171875, -0.05157470703125, -0.03692626953125, 0.0033473968505859375, -0.0037784576416015625, 0.0245819091796875, -0.0087890625, -0.00919342041015625, 0.06610107421875, -0.040191650390625, -0.0258026123046875, -0.0171356201171875, 0.00469970703125, -0.0340576171875, -0.0012331008911132812, -0.01528167724609375, 0.01029205322265625, 0.006160736083984375, -0.04766845703125, -0.023162841796875, 0.0093536376953125, 0.028106689453125, -0.01473236083984375, -0.036651611328125, -0.04986572265625, -0.007640838623046875, 0.07958984375, 0.0882568359375, 0.036651611328125, -0.058197021484375, -0.01479339599609375, -0.052978515625, -0.10760498046875, -0.004077911376953125, 0.052490234375, -0.0787353515625, 0.018707275390625, 0.03607177734375, -0.018463134765625, 0.04083251953125, 0.004299163818359375, -0.00710296630859375, 0.0171661376953125, 0.01438140869140625, -0.0112457275390625, -0.0723876953125, 0.003536224365234375, 0.024871826171875, -0.0262908935546875, -0.0006389617919921875, -0.0274200439453125, 0.01302337646484375, 0.0009589195251464844, -0.048614501953125, 0.0024890899658203125, 0.026092529296875, -0.0295257568359375, 0.002704620361328125, 0.01041412353515625, 0.0232696533203125, -0.0140838623046875, -0.007205963134765625, -0.0168914794921875, 0.0115203857421875, 0.007595062255859375, 0.0017004013061523438, -0.0077972412109375, 0.0260467529296875, -0.0018205642700195312, 0.07354736328125, 0.01378631591796875, 0.01016998291015625, -0.0207977294921875, 0.04290771484375, -0.020111083984375, -0.0172576904296875, -0.0296630859375, -0.0013723373413085938, 0.005718231201171875, -0.015045166015625, -0.037933349609375, -0.026763916015625, 0.0193328857421875, -0.004581451416015625, -0.04168701171875, 0.0209808349609375 ]
1fb091d2262f636df433ea7e5d9d800251486355
Wordpress Stackexchange Q: Native "playlist" shortcode random playing... How? I'm using the beautiful shortcode "playlist" in my site but I want the random playing of my audio files. What I use is this: [playlist tracklist="false" images="false" artists="false" ids="7691,7690,7688,7687,7686,7685,7684,7683,7682,7681,7680,7679,7678,7677,7676,7674,3978,3647,3408,1395,1217,1216,1214,1213,1211,1210,1209,1208,1207,1206,1181,975,899,668,663,642,641"] How to make random playing, maybe also with dad jQuery? A: It looks like there is a both a bug and that the documentation was written incorrectly in the core code. However, there is a workaround that should work for the future and for any fixes that may be made to core. It's a simple one too: Use orderby="rand" in the shortcode. Just that easy. [playlist orderby="rand" tracklist="false" images="false" artists="false" ids="7691,7690,7688,7687,7686,7685,7684,7683,7682,7681,7680,7679,7678,7677,7676,7674,3978,3647,3408,1395,1217,1216,1214,1213,1211,1210,1209,1208,1207,1206,1181,975,899,668,663,642,641"]
Q: Native "playlist" shortcode random playing... How? I'm using the beautiful shortcode "playlist" in my site but I want the random playing of my audio files. What I use is this: [playlist tracklist="false" images="false" artists="false" ids="7691,7690,7688,7687,7686,7685,7684,7683,7682,7681,7680,7679,7678,7677,7676,7674,3978,3647,3408,1395,1217,1216,1214,1213,1211,1210,1209,1208,1207,1206,1181,975,899,668,663,642,641"] How to make random playing, maybe also with dad jQuery? A: It looks like there is a both a bug and that the documentation was written incorrectly in the core code. However, there is a workaround that should work for the future and for any fixes that may be made to core. It's a simple one too: Use orderby="rand" in the shortcode. Just that easy. [playlist orderby="rand" tracklist="false" images="false" artists="false" ids="7691,7690,7688,7687,7686,7685,7684,7683,7682,7681,7680,7679,7678,7677,7676,7674,3978,3647,3408,1395,1217,1216,1214,1213,1211,1210,1209,1208,1207,1206,1181,975,899,668,663,642,641"] A: I removed all that duplicated and unnecessary stuff, take a look at otto's or kaiser's answers for the very simple solution. * *Trac ticket: #29629. *Codex entry for Playlist Shortcode. A: Here's a shuffle add_action( 'wp_footer', function () { ?> <script> jQuery(function ($) { var playlist = $('.wp-playlist'); // Tune this if more than one. var tracks = $('.wp-playlist-tracks .wp-playlist-item', playlist); var last_shuffle = -1; var shuffle = function () { var i = Math.floor(Math.random() * tracks.length); if (i == last_shuffle) i = (i + 1) % tracks.length; last_shuffle = i; tracks.get(i).click(); }; shuffle(); $('.mejs-mediaelement audio', playlist).on('ended', function (event) { shuffle(); }); }); </script> <?php }); A: Random order From what I can read in source, there's one argument responsible for this: 'order' => 'RAND', In the case you use this, the orderby value will be set to none. Edit Ok, core code tells that this should work: if ( 'RAND' == $atts['order'] ) { $atts['orderby'] = 'none'; } But this is not true. In fact, you have to set the orderby value to rand, as the shortcode calls get_posts() and this is what returns posts in random order. In short: What core does with RAND is (afaik) completely unnecessary (and confusing). Default and always set arguments If you want to filter the shortcode attributes for all playlist shortcode calls, then go with the following: add_action( 'shortcode_atts_playlist', function( $output, $defaults, $custom ) { // do some array_merge() or wp_parse_args() here return $output; }, 10, 3 ); Custom override If you want to override the playlist shortcode with a completely custom shortcode, go with shortcircuiting it - return the first argument of the following filter as anything, but not an empty string: add_filter( 'post_playlist', function( $playlist = '', $attr ) { return $playlist; }, 10, 2 ); Debugging shortcodes If you hit a wall and some argument isn't working, then it's probably a plugins or themes fault. Take a look at shortcode_atts(). Then dump the contents of the filter inside the callback I've shown above.
wordpress
{ "language": "en", "length": 442, "provenance": "stackexchange_00019.jsonl.gz:448749", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161084" }
[ 0.0279388427734375, 0.01171112060546875, -0.01320648193359375, 0.023712158203125, 0.0279693603515625, -0.030426025390625, 0.0428466796875, -0.052032470703125, -0.03643798828125, 0.01971435546875, -0.044769287109375, 0.04217529296875, -0.047607421875, -0.00438690185546875, 0.00785064697265625, -0.055908203125, 0.0278472900390625, 0.01033782958984375, 0.01200103759765625, -0.00798797607421875, -0.011688232421875, 0.0157012939453125, -0.0029392242431640625, 0.0198822021484375, 0.01611328125, -0.0020313262939453125, 0.057830810546875, -0.0179290771484375, 0.00856781005859375, -0.01763916015625, 0.018646240234375, -0.0198211669921875, 0.049102783203125, 0.0058135986328125, -0.05120849609375, 0.01702880859375, -0.00931549072265625, 0.00807952880859375, -0.01221466064453125, 0.00875091552734375, 0.038543701171875, -0.01074981689453125, -0.0032176971435546875, 0.01250457763671875, -0.00496673583984375, -0.011962890625, 0.020233154296875, -0.044036865234375, 0.0237884521484375, 0.044891357421875, 0.0151519775390625, 0.007648468017578125, 0.0191497802734375, 0.0372314453125, -0.012786865234375, 0.0009026527404785156, -0.0130615234375, -0.033111572265625, 0.0126190185546875, 0.0023479461669921875, 0.0059661865234375, -0.01297760009765625, 0.0251007080078125, 0.01039886474609375, -0.004669189453125, -0.023834228515625, -0.0123443603515625, 0.0270233154296875, -0.04779052734375, -0.01093292236328125, 0.057403564453125, -0.0289764404296875, 0.00260162353515625, -0.042510986328125, -0.01245880126953125, 0.05792236328125, -0.0307464599609375, 0.000015437602996826172, 0.0302276611328125, -0.0196075439453125, -0.00665283203125, -0.0024967193603515625, -0.042205810546875, 0.0279541015625, -0.04559326171875, 0.027069091796875, -0.01006317138671875, -0.02490234375, -0.01044464111328125, -0.0177001953125, -0.0197601318359375, 0.00823211669921875, 0.003032684326171875, 0.033721923828125, -0.0343017578125, -0.004070281982421875, 0.03759765625, 0.06488037109375, -0.0017023086547851562, -0.014495849609375, -0.0158538818359375, -0.01922607421875, -0.03594970703125, -0.0277862548828125, -0.00220489501953125, 0.0286407470703125, -0.0004353523254394531, -0.06121826171875, 0.0096893310546875, 0.014007568359375, 0.0016603469848632812, 0.01702880859375, -0.03729248046875, 0.0212860107421875, -0.06304931640625, -0.035675048828125, -0.0899658203125, -0.003955841064453125, -0.022369384765625, -0.004398345947265625, 0.0258026123046875, 0.0325927734375, 0.013885498046875, 0.0389404296875, -0.002727508544921875, 0.044586181640625, -0.018585205078125, -0.0579833984375, -0.046600341796875, 0.0396728515625, -0.0269012451171875, -0.004802703857421875, 0.0645751953125, 0.0455322265625, 0.0160980224609375, -0.0127410888671875, 0.0171356201171875, -0.0290374755859375, 0.005466461181640625, 0.00557708740234375, -0.038604736328125, 0.00261688232421875, 0.05877685546875, -0.035400390625, 0.04901123046875, -0.029296875, -0.01617431640625, 0.05072021484375, 0.06085205078125, 0.04498291015625, 0.0052032470703125, 0.0025959014892578125, -0.0097503662109375, 0.07476806640625, 0.02850341796875, 0.044464111328125, 0.07525634765625, -0.01470184326171875, -0.0218963623046875, -0.018035888671875, 0.0172119140625, 0.0010471343994140625, 0.0036945343017578125, -0.0275726318359375, -0.038665771484375, -0.004802703857421875, -0.01097869873046875, -0.00432586669921875, 0.0207061767578125, 0.06103515625, 0.005634307861328125, -0.005767822265625, -0.0321044921875, 0.0181121826171875, 0.00806427001953125, 0.020599365234375, 0.043212890625, -0.024383544921875, 0.00957489013671875, 0.008636474609375, -0.0205841064453125, -0.016937255859375, 0.059173583984375, -0.0313720703125, -0.038482666015625, 0.0106658935546875, 0.023681640625, 0.0791015625, 0.0177459716796875, 0.04168701171875, 0.0274200439453125, -0.0214080810546875, 0.006656646728515625, -0.00012058019638061523, 0.020843505859375, -0.024932861328125, -0.081298828125, -0.0308380126953125, -0.0095672607421875, -0.00482177734375, -0.0025882720947265625, -0.020355224609375, 0.023773193359375, 0.01082611083984375, -0.0011339187622070312, -0.00016057491302490234, -0.0254669189453125, 0.032012939453125, 0.0027942657470703125, 0.0185089111328125, 0.00949859619140625, 0.0007185935974121094, -0.040313720703125, 0.03118896484375, -0.010955810546875, -0.005947113037109375, -0.016632080078125, 0.038543701171875, -0.0168609619140625, -0.0026702880859375, -0.019378662109375, -0.0273895263671875, -0.0167388916015625, 0.01354217529296875, 0.0230560302734375, -0.0234527587890625, -0.01010894775390625, -0.038543701171875, 0.037353515625, -0.0120086669921875, 0.0036163330078125, 0.040771484375, -0.0037021636962890625, 0.0166015625, -0.032073974609375, -0.0198516845703125, -0.01181793212890625, -0.01953125, 0.014068603515625, 0.04229736328125, 0.050445556640625, 0.0170745849609375, -0.002155303955078125, -0.02655029296875, 0.07562255859375, 0.0271453857421875, 0.0203094482421875, -0.050018310546875, 0.0186767578125, 0.031219482421875, -0.0013036727905273438, -0.0187225341796875, 0.0158233642578125, -0.01309967041015625, 0.01078033447265625, 0.0149383544921875, -0.015625, 0.028076171875, -0.0134124755859375, -0.01557159423828125, -0.0262451171875, -0.0220947265625, 0.0164794921875, -0.0214080810546875, 0.044281005859375, -0.016998291015625, -0.01136016845703125, -0.0018558502197265625, -0.04022216796875, 0.03363037109375, 0.031646728515625, -0.08197021484375, 0.0007162094116210938, 0.036651611328125, 0.036956787109375, 0.0159759521484375, -0.0308074951171875, -0.0172119140625, -0.00684356689453125, 0.0262908935546875, -0.022705078125, -0.0238494873046875, -0.044342041015625, -0.01078033447265625, 0.01171875, -0.036376953125, 0.005779266357421875, 0.038238525390625, -0.0214080810546875, 0.0192108154296875, -0.0042572021484375, 0.1065673828125, 0.04486083984375, 0.004436492919921875, 0.035552978515625, 0.058074951171875, -0.01052093505859375, -0.04229736328125, 0.047210693359375, -0.037933349609375, 0.00630950927734375, 0.06451416015625, 0.00044989585876464844, 0.006656646728515625, -0.028594970703125, 0.03277587890625, -0.013031005859375, -0.01959228515625, -0.03729248046875, -0.0201263427734375, -0.030364990234375, -0.030548095703125, 0.02752685546875, 0.00225830078125, 0.02362060546875, -0.00040221214294433594, -0.00797271728515625, 0.028900146484375, -0.032958984375, -0.0626220703125, 0.08544921875, 0.0065460205078125, 0.007236480712890625, -0.00858306884765625, -0.0100555419921875, -0.06243896484375, 0.01554107666015625, -0.0197601318359375, -0.006694793701171875, -0.01363372802734375, 0.0161895751953125, -0.014556884765625, 0.01171875, -0.01116943359375, 0.0011348724365234375, -0.035858154296875, 0.010772705078125, 0.0030155181884765625, 0.01403045654296875, -0.026123046875, 0.03350830078125, 0.055999755859375, -0.0276031494140625, 0.01393890380859375, -0.00408172607421875, -0.0016813278198242188, -0.0184173583984375, -0.0014562606811523438, 0.046356201171875, 0.0343017578125, -0.044647216796875, 0.00337982177734375, -0.043975830078125, 0.059600830078125, 0.0163421630859375, -0.0172271728515625, 0.035186767578125, 0.08721923828125, 0.0361328125, 0.015655517578125, -0.0129547119140625, 0.004547119140625, -0.030853271484375, -0.031982421875, -0.00984954833984375, 0.01184844970703125, -0.00891876220703125, 0.01812744140625, -0.034759521484375, -0.01274871826171875, -0.02264404296875, -0.04290771484375, 0.03125, -0.00418853759765625, 0.0163421630859375, 0.0322265625, 0.04461669921875, -0.0163726806640625, -0.0579833984375, -0.0035228729248046875, -0.009368896484375, 0.007122039794921875, -0.017791748046875, 0.01727294921875, 0.06524658203125, 0.024200439453125, -0.014434814453125, 0.039337158203125, 0.00806427001953125, -0.01165771484375, -0.00794219970703125, 0.0130157470703125, -0.0211181640625, -0.0135650634765625, 0.007389068603515625, 0.00949859619140625, -0.0212860107421875, -0.04608154296875, -0.028411865234375, 0.001811981201171875, -0.0076904296875, -0.0016984939575195312, -0.01425933837890625, -0.00789642333984375, -0.00026535987854003906, -0.03857421875, 0.00736236572265625, -0.026763916015625, 0.0260009765625, 0.005603790283203125, 0.0017442703247070312, 0.00386810302734375, -0.00197601318359375, -0.029754638671875, -0.008758544921875, -0.00569915771484375, -0.050445556640625, -0.0263214111328125, 0.00960540771484375, 0.041473388671875, 0.0262451171875, -0.07904052734375, -0.0004868507385253906, 0.06353759765625, -0.0183563232421875, -0.0250396728515625, 0.0179290771484375, 0.0254974365234375, -0.0023021697998046875, 0.01151275634765625, 0.007358551025390625, -0.0282440185546875, -0.00688934326171875, 0.01983642578125, 0.01529693603515625, 0.03790283203125, -0.021514892578125, -0.0640869140625, 0.009124755859375, -0.024139404296875, -0.08355712890625, -0.06280517578125, -0.022735595703125, 0.002170562744140625, -0.006557464599609375, 0.01065826416015625, -0.0694580078125, -0.056884765625, -0.01092529296875, -0.014862060546875, -0.016876220703125, 0.0075531005859375, 0.03564453125, 0.03082275390625, 0.005542755126953125, 0.0090484619140625, 0.00951385498046875, 0.0144195556640625, -0.0102386474609375, 0.03369140625, -0.0014019012451171875, -0.035919189453125, 0.0689697265625, -0.0335693359375, 0.004638671875, -0.00688934326171875, 0.043609619140625, -0.0095672607421875, -0.022186279296875, 0.019866943359375, -0.00909423828125, 0.0039520263671875, 0.0211029052734375, -0.012969970703125, 0.00846099853515625, -0.0151824951171875, 0.01107025146484375, 0.0185089111328125, -0.05181884765625, -0.03131103515625, -0.03955078125, 0.0090484619140625, -0.0282440185546875, 0.0582275390625, 0.04449462890625, -0.0215911865234375, 0.0654296875, 0.0377197265625, -0.00616455078125, 0.060791015625, 0.036773681640625, 0.0159454345703125, 0.032379150390625, 0.04217529296875, -0.01319122314453125, 0.0120697021484375, -0.01067352294921875, 0.040771484375, 0.0024127960205078125, -0.083251953125, 0.025665283203125, 0.01369476318359375, 0.011993408203125, 0.00833892822265625, 0.021240234375, 0.031646728515625, 0.0283660888671875, 0.004375457763671875, 0.005184173583984375, 0.004512786865234375, 0.04815673828125, -0.03314208984375, 0.052032470703125, 0.0182952880859375, -0.0171356201171875, -0.0034694671630859375, 0.0230560302734375, 0.0194854736328125, -0.01177978515625, -0.0005092620849609375, 0.02203369140625, 0.022216796875, 0.0016546249389648438, 0.034423828125, -0.0173797607421875, -0.013031005859375, -0.0196990966796875, -0.00782012939453125, -0.05096435546875, 0.004917144775390625, 0.05926513671875, 0.0687255859375, -0.040924072265625, -0.06805419921875, 0.006366729736328125, -0.045989990234375, 0.004459381103515625, -0.02655029296875, -0.043548583984375, 0.0265655517578125, -0.02484130859375, -0.030914306640625, 0.0287933349609375, 0.00739288330078125, -0.005649566650390625, -0.0126800537109375, 0.005611419677734375, 0.019989013671875, 0.056060791015625, -0.042205810546875, 0.0156707763671875, 0.0195159912109375, -0.0294952392578125, -0.019805908203125, -0.0124359130859375, 0.001262664794921875, -0.0218353271484375, 0.00174713134765625, -0.0129241943359375, 0.0183258056640625, -0.0279083251953125, 0.03924560546875, -0.046966552734375, 0.00162506103515625, 0.01290130615234375, 0.01861572265625, 0.01056671142578125, -0.0162200927734375, 0.00594329833984375, -0.007663726806640625, -0.024566650390625, -0.01256561279296875, 0.0139312744140625, -0.038177490234375, 0.01617431640625, -0.0367431640625, -0.045013427734375, 0.02349853515625, -0.0128326416015625, 0.027557373046875, 0.049774169921875, -0.028717041015625, -0.07659912109375, -0.037322998046875, -0.0037097930908203125, -0.038665771484375, 0.0262603759765625, -0.01195526123046875, -0.00267791748046875, -0.03680419921875, 0.0014171600341796875, -0.02117919921875, 0.0130462646484375, 0.02545166015625, -0.0322265625, -0.0038051605224609375, -0.0216217041015625, -0.035491943359375, 0.0511474609375, -0.023284912109375, 0.030670166015625, -0.0228271484375, -0.00006133317947387695, -0.0257720947265625, 0.01617431640625, -0.0611572265625, 0.0136566162109375, -0.03912353515625, -0.055450439453125, -0.04266357421875, 0.0239715576171875, 0.00806427001953125, 0.024444580078125, -0.0305328369140625, -0.02001953125, 0.03448486328125, -0.0161285400390625, 0.0550537109375, 0.07745361328125, -0.0187835693359375, 0.047576904296875, 0.0299530029296875, -0.0025634765625, 0.01316070556640625, 0.029266357421875, 0.03228759765625, -0.0411376953125, 0.0870361328125, 0.01190948486328125, -0.03857421875, 0.03680419921875, -0.046661376953125, 0.00827789306640625, -0.031524658203125, 0.034881591796875, 0.01605224609375, -0.01470947265625, 0.005588531494140625, -0.0244598388671875, 0.0271148681640625, 0.004848480224609375, -0.0251312255859375, -0.04168701171875, 0.05047607421875, -0.00582122802734375, 0.0023250579833984375, 0.03338623046875, 0.0011816024780273438, 0.00676727294921875, 0.01837158203125, 0.029266357421875, -0.0009250640869140625, -0.0023822784423828125, -0.03936767578125, -0.01554107666015625, 0.01384735107421875, -0.0086669921875, 0.0233306884765625, -0.052825927734375, 0.0028228759765625, -0.01708984375, -0.00499725341796875, -0.02001953125, 0.003108978271484375, -0.02166748046875, -0.02154541015625, 0.00984954833984375, -0.005950927734375, -0.0223846435546875, -0.0024662017822265625, -0.0213165283203125, -0.003925323486328125, 0.052978515625, 0.0004627704620361328, -0.005374908447265625, -0.034912109375, -0.038909912109375, 0.0010652542114257812, -0.04327392578125, 0.0014448165893554688, 0.0028858184814453125, 0.02020263671875, 0.08795166015625, -0.046356201171875, -0.0272064208984375, 0.010528564453125, -0.01580810546875, -0.0026149749755859375, -0.00989532470703125, -0.00640106201171875, -0.03497314453125, -0.02716064453125, -0.017547607421875, -0.051300048828125, -0.023193359375, -0.02374267578125, -0.028472900390625, 0.10137939453125, -0.01221466064453125, 0.00820159912109375, -0.0147705078125, 0.053497314453125, 0.008331298828125, 0.043701171875, -0.009033203125, 0.0335693359375, -0.038848876953125, 0.024200439453125, -0.01016998291015625, 0.0251312255859375, 0.016815185546875, -0.00557708740234375, 0.0176849365234375, -0.0014925003051757812, 0.001346588134765625, 0.0125274658203125, 0.064208984375, -0.0261993408203125, -0.022125244140625, 0.04193115234375, -0.003696441650390625, -0.0001462697982788086, -0.0037021636962890625, 0.00888824462890625, 0.042205810546875, -0.04779052734375, -0.0335693359375, 0.0196685791015625, 0.002628326416015625, -0.00774383544921875, 0.0024089813232421875, 0.01309967041015625, -0.03729248046875, -0.0018320083618164062, 0.02239990234375, 0.0227508544921875, 0.01358795166015625, 0.037872314453125, 0.0545654296875, -0.057891845703125, -0.0767822265625, 0.0006279945373535156, 0.03936767578125, 0.0023288726806640625, 0.0139617919921875, 0.04205322265625, 0.0247802734375, 0.058258056640625, 0.006908416748046875, 0.03076171875, 0.033966064453125, -0.021026611328125, 0.0246429443359375, 0.018280029296875, 0.013214111328125, 0.00945281982421875, 0.08551025390625, 0.00766754150390625, 0.0017347335815429688, -0.046295166015625, -0.0157012939453125, 0.0096282958984375, 0.004741668701171875, 0.016387939453125, 0.00194549560546875, 0.024139404296875, -0.028594970703125, 0.0024261474609375, -0.045745849609375, -0.00301361083984375, 0.0160064697265625, 0.041229248046875, 0.0038547515869140625, 0.016143798828125, -0.0693359375, -0.038818359375, -0.01031494140625, 0.01377105712890625, 0.016693115234375, 0.0205535888671875, 0.0015668869018554688, 0.008880615234375, -0.0207977294921875, -0.0009107589721679688, -0.0010528564453125, -0.004070281982421875, -0.0172271728515625, -0.00566864013671875, -0.07781982421875, -0.06451416015625, 0.01421356201171875, 0.07177734375, 0.0179595947265625, -0.0015802383422851562, 0.0452880859375, 0.03460693359375, -0.037261962890625, -0.005680084228515625, 0.0221099853515625, -0.0235443115234375, -0.0615234375, 0.0207977294921875, -0.022247314453125, 0.069580078125, 0.004520416259765625, 0.03228759765625, 0.04229736328125, 0.049163818359375, -0.02044677734375, 0.0693359375, -0.007434844970703125, 0.0266571044921875, -0.0265350341796875, -0.0207672119140625, -0.00762939453125, 0.00441741943359375, -0.03314208984375, 0.006847381591796875, -0.043609619140625, -0.041412353515625, 0.02850341796875, 0.0304412841796875, -0.044403076171875, 0.058197021484375, -0.02880859375, -0.0291595458984375, -0.0175933837890625, 0.019195556640625, 0.0237579345703125, -0.00351715087890625, -0.01094818115234375, -0.0215606689453125, -0.07928466796875, -0.0293121337890625, -0.041717529296875, 0.0086212158203125, 0.0202789306640625, 0.056243896484375, 0.0214385986328125, 0.0152130126953125, 0.0180511474609375, -0.0250396728515625, 0.0201873779296875, -0.00618743896484375, 0.05767822265625, -0.0226287841796875, -0.0288848876953125, -0.0008821487426757812, 0.01100921630859375, 0.03466796875, -0.01812744140625, 0.001644134521484375, 0.046783447265625, -0.06451416015625, 0.0105743408203125, 0.0286712646484375, 0.05511474609375, -0.0224761962890625, -0.0579833984375, -0.06903076171875, 0.00768280029296875, 0.015472412109375, 0.004428863525390625, -0.07568359375, 0.0121307373046875, 0.005115509033203125, -0.0082244873046875, 0.035400390625, 0.004680633544921875, 0.0249786376953125, 0.0196990966796875, 0.012451171875, -0.0237274169921875, -0.0265045166015625, -0.0255279541015625, 0.010284423828125, -0.00665283203125, 0.038726806640625, -0.021209716796875, -0.0303192138671875, 0.047088623046875, 0.04888916015625, 0.018463134765625, -0.034393310546875, -0.0124664306640625, 0.067138671875, -0.0183868408203125, 0.01554107666015625, -0.005889892578125, -0.004337310791015625, 0.0096588134765625, 0.01050567626953125, 0.01092529296875, 0.034088134765625, 0.03265380859375, 0.01995849609375, 0.006855010986328125, 0.005084991455078125, 0.00208282470703125, -0.050506591796875, 0.0206451416015625, 0.021514892578125, 0.00978851318359375, -0.00795745849609375, 0.09710693359375, -0.048583984375, -0.044586181640625, -0.035919189453125, -0.0804443359375, -0.034393310546875, 0.115966796875, -0.023773193359375, -0.04046630859375, -0.00449371337890625, 0.0252838134765625, -0.01007080078125, 0.01256561279296875, -0.022430419921875, 0.027801513671875, -0.05230712890625, -0.01416778564453125, 0.0281829833984375, -0.0030689239501953125, -0.041900634765625, -0.08953857421875, -0.003582000732421875, -0.058013916015625, 0.0235443115234375, -0.0275115966796875, 0.0047454833984375, 0.0158233642578125, -0.04345703125, -0.053466796875, 0.006824493408203125, -0.004917144775390625, -0.0294647216796875, -0.020965576171875, 0.03778076171875, -0.01543426513671875, 0.01352691650390625, 0.005718231201171875, -0.0098114013671875, 0.01898193359375, 0.0269927978515625, 0.0116729736328125, 0.059814453125, -0.01690673828125, 0.0119171142578125, -0.0263519287109375, 0.0209808349609375, -0.009674072265625, 0.00771331787109375, 0.00450897216796875, 0.0024585723876953125, 0.01287841796875, 0.008758544921875, -0.03717041015625, 0.0016756057739257812, -0.0225677490234375, 0.032745361328125, -0.0128631591796875, -0.049774169921875, -0.0855712890625, -0.036651611328125, 0.06805419921875, 0.10333251953125, 0.0288238525390625, -0.018218994140625, -0.033050537109375, -0.0129852294921875, 0.0172271728515625, -0.02105712890625, -0.00756072998046875, -0.0518798828125, -0.020660400390625, -0.026702880859375, -0.01404571533203125, -0.00734710693359375, -0.02069091796875, -0.045623779296875, 0.000016450881958007812, -0.0173797607421875, 0.00290679931640625, 0.0009570121765136719, 0.0195465087890625, -0.0002276897430419922, -0.0196685791015625, -0.0308990478515625, 0.015716552734375, -0.00556182861328125, -0.02490234375, 0.01413726806640625, -0.036895751953125, 0.0445556640625, 0.01331329345703125, 0.0240020751953125, 0.01800537109375, -0.0244903564453125, 0.02032470703125, 0.0582275390625, 0.00453948974609375, 0.0033512115478515625, -0.0007300376892089844, -0.0007796287536621094, 0.00556182861328125, 0.050140380859375, -0.0017118453979492188, 0.0138092041015625, -0.06024169921875, 0.031829833984375, -0.031890869140625, 0.01068878173828125, -0.01548004150390625, 0.04205322265625, 0.0526123046875, -0.0026111602783203125, 0.0089874267578125, 0.0260009765625, -0.01111602783203125, 0.040740966796875, -0.033355712890625, -0.059661865234375, -0.013580322265625, -0.0268402099609375 ]
f87c921ff7b73c0fa2e378e49fe85830834d5816
Wordpress Stackexchange Q: wp_kses_post only removes A: KSES is designed to prevent execution of undesired and potentially dangerous tags, not preventing display of the innerHTML. Blocking the content would require --1 Either a custom function that used some kind of string manipulation or xmlDOM manipulation to remove content; or --2 A function that blocked posts that contain the tag with a message why the post failed and instructions for using HTML codes to render script tag when using it in tutorials rather than as an execution tag. Number 1 may produce performance issues with its higher overhead. If optimizing performance is an issue or if the site involves heavy posting by multiple users, then #2 is likely a more feasible solution.
Q: wp_kses_post only removes A: KSES is designed to prevent execution of undesired and potentially dangerous tags, not preventing display of the innerHTML. Blocking the content would require --1 Either a custom function that used some kind of string manipulation or xmlDOM manipulation to remove content; or --2 A function that blocked posts that contain the tag with a message why the post failed and instructions for using HTML codes to render script tag when using it in tutorials rather than as an execution tag. Number 1 may produce performance issues with its higher overhead. If optimizing performance is an issue or if the site involves heavy posting by multiple users, then #2 is likely a more feasible solution. A: I suggest You to use preg_replace() to filter the post content: add_filter('the_content', 'my_strip_scripts'); function my_strip_scripts($content){ return preg_replace('#<script(.*?)>(.*?)</script>#is', '', $content); } A: This is what I use on my site to strip images and paragraph tags. I'm assuming this is the_content? <?php ob_start(); the_content(); $old_content = ob_get_clean(); $new_content = strip_tags($old_content, '<insert HTML tags you want kept'); echo $new_content; ?> The $new_content line will remove all HTML tags except those tags listed after $old_content A: Give wp_strip_all_tags() a shot. I believe it removes the content of script tags also. A: Yes, use this function: (from https://www.php.net/manual/en/function.strip-tags.php#86964) function strip_tags_content($text, $tags = '', $invert = FALSE) { preg_match_all('/<(.+?)[\s]*\/?[\s]*>/si', trim($tags), $tags); $tags = array_unique($tags[1]); if(is_array($tags) AND count($tags) > 0) { if($invert == FALSE) { return preg_replace('@<(?!(?:'. implode('|', $tags) .')\b)(\w+)\b.*?>.*?</\1>@si', '', $text); } else { return preg_replace('@<('. implode('|', $tags) .')\b.*?>.*?</\1>@si', '', $text); } } elseif($invert == FALSE) { return preg_replace('@<(\w+)\b.*?>.*?</\1>@si', '', $text); } return $text; } & after that, if you also want to remove all attributes except few(example: href, title), use wp_kses like this: $content = wp_kses($content, array( 'a' => array('href' => true, 'title' => true), 'div' => array(), 'p' => array(), ));
wordpress
{ "language": "en", "length": 308, "provenance": "stackexchange_00019.jsonl.gz:448798", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161225" }
[ 0.0224456787109375, -0.0187530517578125, 0.0199127197265625, 0.0210723876953125, -0.0211944580078125, -0.01403045654296875, 0.041046142578125, -0.02459716796875, -0.0186767578125, 0.043487548828125, 0.01505279541015625, 0.0091400146484375, 0.01168060302734375, -0.0219879150390625, -0.002384185791015625, -0.0009288787841796875, 0.035797119140625, -0.00923919677734375, 0.0400390625, -0.00213623046875, -0.00933837890625, 0.0211181640625, 0.0633544921875, 0.01030731201171875, -0.0235595703125, -0.01532745361328125, 0.08111572265625, -0.036407470703125, -0.021636962890625, -0.0406494140625, -0.006328582763671875, 0.0341796875, 0.0188446044921875, 0.06646728515625, -0.0936279296875, -0.031585693359375, -0.033111572265625, 0.034942626953125, -0.0141143798828125, 0.007205963134765625, -0.003208160400390625, -0.001010894775390625, 0.0218505859375, -0.01195526123046875, -0.017578125, -0.00750732421875, -0.013885498046875, -0.0204620361328125, 0.0027141571044921875, -0.01470184326171875, -0.0013341903686523438, 0.00238037109375, 0.01023101806640625, -0.050567626953125, -0.005504608154296875, 0.0120849609375, -0.0670166015625, 0.044830322265625, 0.0241851806640625, 0.07684326171875, 0.00909423828125, 0.0089263916015625, -0.03424072265625, -0.04547119140625, -0.007404327392578125, -0.0311126708984375, 0.0252532958984375, 0.0029468536376953125, -0.0625, -0.01148223876953125, 0.06744384765625, -0.00860595703125, 0.015655517578125, -0.06988525390625, 0.01016998291015625, 0.01342010498046875, -0.045867919921875, -0.025177001953125, 0.030242919921875, -0.0203399658203125, -0.004413604736328125, 0.002719879150390625, 0.007022857666015625, -0.0070648193359375, -0.01459503173828125, -0.0186920166015625, -0.01346588134765625, 0.001659393310546875, -0.031005859375, 0.008575439453125, -0.0268096923828125, -0.00774383544921875, -0.0220794677734375, -0.005924224853515625, -0.00006306171417236328, -0.03961181640625, 0.00009721517562866211, -0.01461029052734375, -0.0287628173828125, 0.003673553466796875, 0.0286865234375, -0.03045654296875, 0.01517486572265625, -0.0123138427734375, 0.014251708984375, 0.07049560546875, 0.0085296630859375, -0.0021648406982421875, 0.02703857421875, -0.006778717041015625, 0.0201416015625, 0.0128936767578125, 0.0123138427734375, 0.0031280517578125, -0.061767578125, 0.00672149658203125, 0.0074005126953125, -0.0281982421875, 0.0030307769775390625, 0.00875091552734375, 0.01068115234375, 0.020843505859375, 0.01468658447265625, -0.02813720703125, 0.01248931884765625, 0.007404327392578125, -0.0227813720703125, -0.01367950439453125, 0.06585693359375, -0.0316162109375, -0.050537109375, 0.008941650390625, 0.0733642578125, 0.028167724609375, 0.03228759765625, -0.00836944580078125, -0.0033054351806640625, -0.023895263671875, -0.0193634033203125, 0.051055908203125, -0.05181884765625, -0.0679931640625, 0.01425933837890625, -0.02716064453125, -0.0010499954223632812, 0.01485443115234375, 0.01373291015625, 0.02490234375, 0.01538848876953125, -0.07635498046875, 0.03607177734375, -0.01386260986328125, 0.048431396484375, -0.0226287841796875, -0.0248565673828125, -0.0362548828125, 0.0024471282958984375, -0.0219879150390625, -0.0140533447265625, -0.033294677734375, 0.038482666015625, -0.004474639892578125, 0.04595947265625, 0.03533935546875, 0.00026702880859375, 0.00980377197265625, -0.0604248046875, -0.0159149169921875, 0.020538330078125, 0.059661865234375, -0.0556640625, -0.0196533203125, -0.01375579833984375, -0.0206298828125, -0.0267486572265625, 0.0264892578125, 0.02850341796875, -0.004596710205078125, 0.0220184326171875, 0.06744384765625, 0.01039886474609375, -0.0282135009765625, 0.0767822265625, -0.0298004150390625, -0.047027587890625, 0.0038700103759765625, 0.01152801513671875, 0.046234130859375, 0.0285797119140625, 0.03668212890625, 0.020477294921875, -0.0203857421875, 0.03936767578125, 0.0019321441650390625, 0.0506591796875, -0.07781982421875, -0.00835418701171875, -0.04632568359375, 0.015899658203125, -0.031341552734375, 0.0235595703125, -0.0019664764404296875, 0.02294921875, 0.0038127899169921875, 0.0026798248291015625, -0.01039886474609375, -0.00862884521484375, 0.016510009765625, -0.0217437744140625, 0.033050537109375, 0.0280914306640625, -0.00726318359375, -0.031829833984375, 0.01548004150390625, 0.0037822723388671875, -0.0216217041015625, -0.028289794921875, 0.033905029296875, 0.00774383544921875, 0.03973388671875, 0.0177154541015625, -0.0357666015625, 0.0063934326171875, -0.019256591796875, 0.03509521484375, -0.04388427734375, -0.006847381591796875, -0.0335693359375, 0.0316162109375, 0.006267547607421875, -0.00579071044921875, 0.0171051025390625, 0.07684326171875, 0.0728759765625, -0.006908416748046875, 0.0035686492919921875, 0.022186279296875, -0.07940673828125, -0.0009222030639648438, 0.04986572265625, 0.0232696533203125, 0.0263214111328125, -0.0265350341796875, -0.0191497802734375, 0.03363037109375, -0.0565185546875, 0.00287628173828125, -0.0240020751953125, 0.0030765533447265625, -0.012451171875, 0.0166473388671875, -0.01424407958984375, 0.0283355712890625, -0.034698486328125, 0.0171051025390625, 0.0033855438232421875, 0.0012788772583007812, -0.00878143310546875, 0.0120086669921875, 0.00864410400390625, -0.002407073974609375, 0.014404296875, -0.01181793212890625, 0.01154327392578125, 0.04815673828125, -0.044158935546875, 0.0350341796875, 0.012969970703125, 0.0335693359375, -0.04681396484375, -0.005329132080078125, -0.04998779296875, -0.0076141357421875, 0.009735107421875, 0.006618499755859375, 0.00399017333984375, -0.02496337890625, -0.00988006591796875, 0.0251007080078125, 0.02178955078125, -0.006587982177734375, 0.00489044189453125, 0.01561737060546875, -0.01739501953125, 0.0303802490234375, -0.00044655799865722656, 0.01064300537109375, -0.0081329345703125, 0.0237274169921875, -0.024169921875, 0.0013608932495117188, 0.0043182373046875, -0.0256500244140625, 0.04876708984375, 0.01372528076171875, -0.03839111328125, -0.0024623870849609375, -0.05316162109375, 0.030853271484375, -0.02691650390625, 0.0732421875, 0.07379150390625, 0.01715087890625, -0.0035228729248046875, 0.03790283203125, -0.022003173828125, 0.0289459228515625, 0.040313720703125, 0.00849151611328125, 0.038787841796875, -0.1123046875, -0.0401611328125, 0.01235198974609375, 0.031280517578125, -0.0172119140625, -0.0322265625, -0.0248870849609375, 0.0194854736328125, -0.061126708984375, -0.0118408203125, 0.042327880859375, -0.0289306640625, -0.04052734375, -0.035308837890625, -0.0273590087890625, 0.0145721435546875, -0.032928466796875, -0.0188140869140625, -0.07568359375, -0.0146484375, -0.015472412109375, -0.04034423828125, -0.004608154296875, 0.09332275390625, 0.0114288330078125, -0.0015649795532226562, 0.02978515625, 0.0821533203125, 0.03082275390625, -0.0850830078125, 0.040771484375, -0.01499176025390625, -0.055389404296875, 0.07562255859375, -0.0263671875, -0.00981903076171875, -0.0263824462890625, 0.0011320114135742188, -0.048736572265625, -0.01708984375, 0.01357269287109375, -0.00858306884765625, -0.0274505615234375, -0.01424407958984375, 0.007167816162109375, 0.01222991943359375, 0.0017976760864257812, 0.0025806427001953125, 0.0290374755859375, -0.0254058837890625, -0.0171356201171875, 0.01354217529296875, -0.025360107421875, -0.02972412109375, 0.0025005340576171875, -0.0251312255859375, 0.0122528076171875, -0.0031719207763671875, 0.04132080078125, 0.0160369873046875, 0.03009033203125, 0.01324462890625, 0.0085906982421875, -0.01515960693359375, 0.0372314453125, -0.056732177734375, -0.0230865478515625, -0.0494384765625, 0.008758544921875, -0.0287322998046875, -0.050323486328125, -0.0601806640625, -0.0107574462890625, -0.068115234375, 0.0286712646484375, 0.022308349609375, -0.025848388671875, 0.053924560546875, -0.03985595703125, -0.009796142578125, -0.043914794921875, 0.03973388671875, -0.003536224365234375, 0.007465362548828125, -0.0211029052734375, -0.0343017578125, -0.0298919677734375, 0.0084686279296875, -0.08319091796875, 0.01495361328125, -0.030426025390625, 0.0056915283203125, 0.019439697265625, -0.0164337158203125, -0.0301055908203125, -0.007720947265625, -0.04949951171875, -0.00865936279296875, 0.038909912109375, -0.03936767578125, 0.00862884521484375, -0.022247314453125, -0.005428314208984375, -0.030670166015625, -0.0391845703125, -0.01219940185546875, -0.0066986083984375, 0.005275726318359375, -0.025482177734375, -0.0029048919677734375, 0.01119232177734375, 0.007720947265625, -0.031402587890625, -0.0057373046875, -0.006793975830078125, 0.017791748046875, -0.004520416259765625, 0.00955963134765625, 0.01053619384765625, -0.0001951456069946289, -0.01047515869140625, -0.018280029296875, -0.0157623291015625, -0.005519866943359375, 0.00638580322265625, -0.022308349609375, -0.0169677734375, -0.08642578125, 0.019378662109375, -0.02606201171875, -0.05206298828125, -0.03466796875, 0.0022258758544921875, 0.0017480850219726562, -0.01111602783203125, 0.004230499267578125, -0.0484619140625, -0.002109527587890625, 0.045623779296875, 0.023101806640625, -0.01458740234375, -0.00870513916015625, 0.0221405029296875, 0.0114593505859375, -0.039520263671875, 0.011444091796875, 0.01885986328125, 0.0146026611328125, -0.054840087890625, 0.0738525390625, 0.05743408203125, 0.01099395751953125, -0.0002636909484863281, -0.02996826171875, 0.008270263671875, -0.038665771484375, 0.1190185546875, 0.004703521728515625, 0.0191650390625, 0.0220947265625, -0.0025386810302734375, -0.0269317626953125, -0.01409149169921875, -0.0072784423828125, 0.046295166015625, 0.01384735107421875, -0.002140045166015625, 0.01088714599609375, -0.0155487060546875, -0.0227203369140625, -0.017364501953125, 0.003902435302734375, 0.030853271484375, -0.01358795166015625, -0.0028228759765625, 0.0178985595703125, -0.0266265869140625, -0.00412750244140625, 0.01000213623046875, -0.0357666015625, 0.0010461807250976562, -0.0148468017578125, 0.06048583984375, -0.043975830078125, 0.02484130859375, -0.033782958984375, -0.0177154541015625, 0.0357666015625, -0.0098114013671875, -0.0250396728515625, -0.0152587890625, -0.01346588134765625, 0.0215301513671875, 0.00001800060272216797, -0.007793426513671875, 0.00894927978515625, 0.005138397216796875, -0.0256805419921875, 0.03790283203125, 0.04248046875, -0.05706787109375, -0.01081085205078125, -0.049957275390625, -0.0229339599609375, -0.01012420654296875, 0.034820556640625, 0.021148681640625, -0.006374359130859375, 0.0251007080078125, -0.036102294921875, 0.0272369384765625, 0.015228271484375, 0.01739501953125, 0.0237579345703125, -0.01491546630859375, 0.00252532958984375, -0.01091766357421875, -0.0104827880859375, -0.031585693359375, -0.049285888671875, 0.03179931640625, 0.007480621337890625, -0.0116424560546875, 0.0145111083984375, 0.0216522216796875, 0.049896240234375, -0.01861572265625, 0.0478515625, 0.013916015625, -0.024169921875, -0.035064697265625, 0.019775390625, 0.05584716796875, 0.0136566162109375, -0.0294952392578125, 0.0258636474609375, -0.0650634765625, -0.0035419464111328125, 0.0236663818359375, -0.05712890625, -0.0019445419311523438, 0.0036640167236328125, -0.046661376953125, -0.0302734375, -0.00824737548828125, -0.033843994140625, -0.0296478271484375, -0.00107574462890625, -0.0189361572265625, 0.035797119140625, -0.0233001708984375, 0.048004150390625, -0.0086212158203125, -0.0261383056640625, 0.026641845703125, 0.040008544921875, -0.019287109375, -0.0027256011962890625, -0.04388427734375, -0.0106048583984375, -0.021636962890625, -0.0178070068359375, -0.05670166015625, -0.044219970703125, -0.046966552734375, 0.009521484375, -0.004726409912109375, 0.0033245086669921875, -0.00653076171875, -0.0263824462890625, 0.0158233642578125, 0.0328369140625, 0.0016641616821289062, 0.002857208251953125, -0.03619384765625, 0.033477783203125, -0.0242462158203125, -0.00832366943359375, -0.0239105224609375, 0.01470947265625, 0.0333251953125, -0.005859375, 0.0015201568603515625, -0.0943603515625, -0.0187530517578125, 0.0099334716796875, -0.019775390625, 0.033905029296875, -0.0296478271484375, 0.007415771484375, 0.010894775390625, 0.01314544677734375, 0.0157318115234375, -0.014984130859375, 0.0062255859375, -0.01068115234375, -0.0196533203125, 0.0211181640625, -0.020111083984375, -0.0068206787109375, -0.01448822021484375, 0.0051727294921875, 0.0198516845703125, -0.0290679931640625, 0.008087158203125, 0.0226287841796875, -0.0221405029296875, 0.0197906494140625, 0.046600341796875, 0.01277923583984375, 0.0174102783203125, 0.01099395751953125, -0.0018558502197265625, -0.004955291748046875, -0.01776123046875, -0.00955963134765625, -0.04766845703125, 0.01824951171875, -0.00011920928955078125, -0.0010118484497070312, 0.043792724609375, -0.021148681640625, -0.018890380859375, 0.07989501953125, 0.04669189453125, -0.09063720703125, -0.01806640625, 0.01117706298828125, -0.030029296875, -0.043548583984375, -0.005786895751953125, 0.01172637939453125, 0.003387451171875, 0.01406097412109375, -0.014068603515625, -0.0194549560546875, 0.01334381103515625, -0.0269622802734375, 0.01397705078125, 0.006687164306640625, 0.105224609375, 0.01293182373046875, -0.06573486328125, -0.00792694091796875, 0.0250701904296875, -0.00637054443359375, -0.0264129638671875, -0.0007977485656738281, 0.0273284912109375, -0.0210418701171875, -0.0826416015625, -0.01114654541015625, -0.0170440673828125, -0.0309906005859375, 0.01079559326171875, -0.0082550048828125, 0.007488250732421875, 0.0716552734375, -0.049774169921875, 0.03753662109375, 0.01617431640625, -0.0017995834350585938, -0.01336669921875, -0.044219970703125, 0.03497314453125, 0.037872314453125, -0.0254364013671875, 0.0413818359375, 0.02374267578125, -0.058349609375, -0.0206756591796875, -0.01308441162109375, 0.06378173828125, 0.031829833984375, -0.03778076171875, 0.00804901123046875, 0.056915283203125, 0.004657745361328125, -0.020294189453125, -0.031982421875, -0.050628662109375, -0.00908660888671875, -0.033721923828125, -0.0196685791015625, 0.005092620849609375, -0.00940704345703125, -0.07733154296875, 0.0706787109375, 0.040771484375, 0.049957275390625, 0.0069732666015625, 0.01001739501953125, -0.038360595703125, -0.026092529296875, 0.006015777587890625, 0.0218048095703125, 0.005062103271484375, -0.01177978515625, 0.0032939910888671875, -0.01187896728515625, 0.0017242431640625, 0.040008544921875, 0.00907135009765625, -0.003444671630859375, 0.0015239715576171875, -0.00988006591796875, 0.0283203125, 0.0150146484375, -0.01343536376953125, 0.01061248779296875, -0.00024402141571044922, 0.048004150390625, 0.0141754150390625, -0.06903076171875, 0.01267242431640625, -0.0252532958984375, -0.0240936279296875, 0.025421142578125, -0.00214385986328125, -0.03509521484375, 0.0010128021240234375, -0.028839111328125, -0.04620361328125, 0.01462554931640625, 0.00539398193359375, 0.00991058349609375, -0.036834716796875, 0.05108642578125, 0.03424072265625, -0.051025390625, -0.07965087890625, -0.0284576416015625, 0.0207977294921875, 0.0233154296875, 0.03253173828125, 0.06195068359375, 0.0287628173828125, 0.020538330078125, -0.00017547607421875, 0.0418701171875, 0.006710052490234375, -0.0308074951171875, -0.04296875, -0.0031604766845703125, 0.01152801513671875, -0.028961181640625, 0.00235748291015625, 0.0511474609375, -0.01094818115234375, 0.0054473876953125, 0.010345458984375, 0.0107574462890625, -0.0021038055419921875, -0.032073974609375, -0.027923583984375, -0.0237884521484375, 0.0428466796875, 0.02825927734375, 0.0194854736328125, 0.00970458984375, 0.01212310791015625, 0.007610321044921875, -0.0013418197631835938, 0.0095367431640625, -0.016754150390625, 0.0274810791015625, -0.0341796875, -0.028900146484375, 0.0018625259399414062, 0.04547119140625, 0.06201171875, -0.0044708251953125, 0.019012451171875, -0.02410888671875, -0.020660400390625, 0.005107879638671875, -0.0226593017578125, 0.03265380859375, -0.05804443359375, -0.0136260986328125, 0.005924224853515625, 0.05242919921875, 0.0247955322265625, -0.0021820068359375, 0.01397705078125, 0.006343841552734375, -0.004489898681640625, -0.0037517547607421875, 0.0296630859375, -0.01505279541015625, -0.03082275390625, -0.01374053955078125, -0.02239990234375, 0.0256500244140625, -0.0190277099609375, 0.022369384765625, 0.0196685791015625, 0.01739501953125, 0.004486083984375, -0.0202178955078125, 0.01172637939453125, -0.05401611328125, 0.026397705078125, 0.022979736328125, 0.039093017578125, 0.0308380126953125, 0.003154754638671875, -0.01154327392578125, 0.01094818115234375, 0.009307861328125, -0.029693603515625, 0.0194854736328125, -0.0009665489196777344, 0.0335693359375, 0.07867431640625, -0.046600341796875, 0.037384033203125, 0.006832122802734375, 0.03533935546875, -0.00428009033203125, -0.00244903564453125, 0.0157470703125, -0.0037631988525390625, 0.007579803466796875, 0.05242919921875, 0.006595611572265625, -0.03582763671875, 0.028076171875, -0.0234527587890625, -0.0010814666748046875, -0.0162200927734375, 0.01114654541015625, -0.01544189453125, 0.0158843994140625, 0.0099639892578125, 0.04315185546875, 0.0027675628662109375, -0.0304107666015625, -0.051055908203125, 0.02801513671875, 0.006744384765625, 0.0042266845703125, 0.01406097412109375, -0.0012331008911132812, 0.00830078125, 0.0285186767578125, 0.045318603515625, -0.0189208984375, -0.00010538101196289062, -0.0237274169921875, -0.0288238525390625, 0.02685546875, 0.03277587890625, 0.054229736328125, 0.0423583984375, 0.0011034011840820312, -0.0521240234375, 0.0377197265625, -0.08685302734375, 0.024993896484375, 0.012786865234375, 0.057373046875, 0.033233642578125, 0.01136016845703125, -0.0196075439453125, 0.019012451171875, 0.0194244384765625, -0.028045654296875, 0.00905609130859375, 0.0273590087890625, -0.00609588623046875, 0.017822265625, 0.023345947265625, 0.003406524658203125, -0.001949310302734375, 0.0189971923828125, -0.019989013671875, -0.01226806640625, 0.03472900390625, -0.01549530029296875, 0.01404571533203125, -0.046630859375, -0.0128021240234375, -0.0225677490234375, -0.10205078125, -0.09246826171875, -0.04071044921875, 0.005756378173828125, -0.00409698486328125, -0.0263824462890625, -0.0168609619140625, 0.01300048828125, 0.027923583984375, -0.015777587890625, 0.075439453125, -0.0450439453125, -0.01491546630859375, -0.07537841796875, -0.041290283203125, -0.04998779296875, 0.06103515625, -0.051025390625, 0.018707275390625, 0.0019054412841796875, -0.00672149658203125, 0.0196533203125, 0.003292083740234375, 0.005443572998046875, 0.06512451171875, -0.0019330978393554688, -0.018157958984375, -0.0281219482421875, 0.0297088623046875, 0.003261566162109375, -0.0653076171875, 0.006076812744140625, -0.044189453125, -0.01824951171875, 0.00652313232421875, 0.0068359375, 0.0171356201171875, -0.03363037109375, -0.051666259765625, 0.060760498046875, 0.0017652511596679688, -0.0233154296875, -0.043182373046875, 0.00200653076171875, -0.00220489501953125, -0.015655517578125, -0.0268402099609375, 0.0295257568359375, -0.0014905929565429688, 0.0484619140625, 0.0243377685546875, 0.00041961669921875, 0.030364990234375, 0.006313323974609375, -0.03399658203125, 0.0205535888671875, -0.006072998046875, 0.012359619140625, -0.01995849609375, -0.002147674560546875, 0.0438232421875, 0.029937744140625, -0.011871337890625, 0.08648681640625, 0.04046630859375, 0.0164947509765625, 0.0044708251953125, -0.030609130859375, -0.03887939453125, -0.0210723876953125, 0.0677490234375, 0.0341796875, 0.0135498046875, -0.0272369384765625, 0.0103759765625, -0.050567626953125, -0.045654296875, -0.021026611328125, 0.0175323486328125, -0.055816650390625, 0.0030460357666015625, 0.00873565673828125, 0.00382232666015625, 0.0227813720703125, -0.015167236328125, -0.03204345703125, -0.006679534912109375, -0.019256591796875, 0.00913238525390625, -0.0535888671875, 0.0019435882568359375, 0.0295257568359375, -0.021392822265625, -0.01007843017578125, 0.0272369384765625, -0.0013704299926757812, 0.016326904296875, 0.06170654296875, -0.01078033447265625, -0.0267486572265625, 0.003620147705078125, 0.0162353515625, 0.0014505386352539062, 0.04962158203125, -0.013946533203125, -0.021270751953125, -0.021270751953125, 0.04168701171875, 0.0150146484375, 0.06268310546875, -0.006488800048828125, 0.04278564453125, 0.026519775390625, 0.023895263671875, -0.037506103515625, 0.00777435302734375, -0.003826141357421875, -0.0093994140625, 0.0147705078125, -0.0009307861328125, 0.07733154296875, -0.0173187255859375, 0.0015993118286132812, 0.0217742919921875, -0.0234527587890625, -0.03271484375, 0.00920867919921875, 0.00905609130859375, 0.0249786376953125, 0.00859832763671875 ]
316941431bd47682c5028a6464df0656137a48ea
Wordpress Stackexchange Q: How to use scss in wordpress theme? What is the easiest way to use scss? i Tried the wp-scss plugin but it doesnt seems to work for me: In my theme: root: css -> style.css scss -> style.scss settings for scss and css location are '/scss/' and '/css/'. style.scss $pink : #7e40e4; style.css .bg {background:$pink} doesn't work, what am i missing? Thanks A: WordPress core by itself doesn't support SCSS, even though it is actually used in core development now. The issue with "plugin" type solutions to add such support transparently is that they rely on "ports" of preprocessors. SCSS is not natively developed for PHP, running it in such environment is only possible with third party re–implementations. While ports mostly work, from my experience they are plagued with issues and routinely lag behind in version updates. The more practical approach is too compile your SCSS during development (using native engine and maybe tools that extend it for convenience) and use build results as regular CSS.
Q: How to use scss in wordpress theme? What is the easiest way to use scss? i Tried the wp-scss plugin but it doesnt seems to work for me: In my theme: root: css -> style.css scss -> style.scss settings for scss and css location are '/scss/' and '/css/'. style.scss $pink : #7e40e4; style.css .bg {background:$pink} doesn't work, what am i missing? Thanks A: WordPress core by itself doesn't support SCSS, even though it is actually used in core development now. The issue with "plugin" type solutions to add such support transparently is that they rely on "ports" of preprocessors. SCSS is not natively developed for PHP, running it in such environment is only possible with third party re–implementations. While ports mostly work, from my experience they are plagued with issues and routinely lag behind in version updates. The more practical approach is too compile your SCSS during development (using native engine and maybe tools that extend it for convenience) and use build results as regular CSS. A: I suggest you start with the WP Bones theme startup theme. It's actually how i got into scss for the first time. It explains all you need to understand about scss and sets you up directly in a good file system and scss configuration for Wordpress. Also, you may feel more comfortable using a software like Codekit to handle the configuration and compilation tasks of your scss files. There are free alternatives (but i find Codekit to be worth the small investment). A: If you're looking a PHP code based approach there is a SASS (SCSS) PHP package for compiling SASS available at https://scssphp.github.io/scssphp/. It provides a CLI command also, but it's main approach is to be used to compile on the fly. I opted for this approach in a custom theme project where I wanted to use SCSS. Of course I don't want to compile SCSS on every page load, so what I did was setup a custom page template page-compile.php in the theme, and in that I run the compiler. The output is then enqueued just like any normal CSS file. Whenever we want to recompile, just land on /compile and it runs and updates all the CSS. In production maybe we will start using CLI build instead. Another approach I thought about but never researched was to find a compiler tool and use it. There are probably dozens of options. As far as relevance to the original question, like a lot of questions about WordPress theme development it's just important to remember that while WP itself doesn't provide a direct support for this you can use any tools you want to create the output CSS and as long as you do that, your able to write SASS code and end up with it enqueued as regular CSS in your WP theme. Because I like working with PHP (my old friend PHP) I just prefer rather than a build process to have a compiler with PHP process because it feels more familiar to me and the setup is just a few lines, and if anything goes wrong at a PHP level I know how to debug it easily. Build processes always leave me feeling uncertain if they break, I don't know really know how they work under the hood.
wordpress
{ "language": "en", "length": 549, "provenance": "stackexchange_00019.jsonl.gz:448833", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161336" }
[ 0.01177978515625, -0.01305389404296875, -0.01233673095703125, -0.0166015625, -0.007579803466796875, -0.023223876953125, 0.0292510986328125, 0.0012559890747070312, 0.0452880859375, 0.003330230712890625, -0.024444580078125, 0.0098114013671875, -0.01094818115234375, -0.0211334228515625, -0.00588226318359375, -0.006561279296875, 0.061431884765625, -0.027191162109375, 0.05120849609375, 0.01474761962890625, -0.00646209716796875, 0.050384521484375, 0.044647216796875, 0.0462646484375, 0.02716064453125, -0.033233642578125, 0.051544189453125, -0.024383544921875, 0.01148223876953125, -0.04510498046875, 0.0179595947265625, 0.0101776123046875, 0.0300140380859375, 0.0252838134765625, -0.04876708984375, 0.019927978515625, 0.0080718994140625, -0.0028362274169921875, -0.015625, 0.0372314453125, 0.01386260986328125, -0.0050201416015625, 0.035980224609375, 0.038330078125, 0.00033402442932128906, -0.060089111328125, 0.043548583984375, -0.041351318359375, 0.01110076904296875, -0.056549072265625, -0.01806640625, 0.042449951171875, 0.0207061767578125, -0.059814453125, -0.00833892822265625, 0.00720977783203125, -0.044525146484375, 0.058197021484375, 0.00621795654296875, 0.004974365234375, -0.00632476806640625, 0.0137939453125, 0.0035724639892578125, 0.0011959075927734375, 0.0328369140625, -0.0110931396484375, 0.04302978515625, 0.020751953125, -0.023681640625, 0.033294677734375, 0.03350830078125, -0.01708984375, 0.0102081298828125, -0.0660400390625, 0.018310546875, 0.04144287109375, -0.01308441162109375, 0.01629638671875, 0.001026153564453125, -0.0111083984375, -0.033660888671875, -0.0220794677734375, -0.040924072265625, -0.050018310546875, 0.0237579345703125, -0.003452301025390625, -0.001338958740234375, 0.0093841552734375, -0.017791748046875, -0.0277099609375, -0.006053924560546875, -0.004901885986328125, -0.061981201171875, -0.011627197265625, 0.007198333740234375, -0.041412353515625, -0.03863525390625, -0.0243377685546875, 0.007843017578125, 0.042266845703125, 0.0252532958984375, -0.048980712890625, 0.0758056640625, -0.0233306884765625, 0.009674072265625, 0.077880859375, -0.05401611328125, 0.054931640625, 0.055389404296875, 0.037109375, 0.05010986328125, -0.046844482421875, 0.0030727386474609375, -0.0377197265625, -0.006328582763671875, 0.0205078125, 0.01253509521484375, -0.00989532470703125, 0.012664794921875, -0.0175628662109375, 0.0090484619140625, 0.0265045166015625, -0.0052337646484375, 0.01898193359375, -0.00104522705078125, 0.021209716796875, 0.014190673828125, -0.053131103515625, -0.005008697509765625, 0.0020427703857421875, -0.0238800048828125, 0.0244598388671875, 0.07049560546875, 0.0117034912109375, -0.0010461807250976562, -0.00341796875, 0.031280517578125, -0.0179595947265625, 0.01459503173828125, -0.0127716064453125, 0.0399169921875, -0.0183868408203125, -0.030029296875, 0.02197265625, 0.021942138671875, -0.0162506103515625, 0.0142974853515625, 0.045013427734375, 0.01213836669921875, -0.0224609375, 0.0733642578125, -0.00489044189453125, 0.01320648193359375, 0.030181884765625, 0.029693603515625, 0.007457733154296875, 0.069580078125, -0.0192108154296875, -0.0079498291015625, -0.024688720703125, -0.0174407958984375, 0.01076507568359375, 0.041351318359375, 0.023590087890625, 0.0167694091796875, -0.00942230224609375, -0.00836944580078125, 0.003444671630859375, 0.0275115966796875, 0.00029969215393066406, -0.00628662109375, 0.01727294921875, -0.0187530517578125, 0.0237884521484375, 0.0243988037109375, 0.0228729248046875, -0.01253509521484375, 0.04290771484375, 0.040313720703125, 0.0202178955078125, 0.007701873779296875, -0.0235595703125, 0.10089111328125, -0.00945281982421875, -0.026824951171875, -0.0467529296875, 0.0037078857421875, 0.0303802490234375, 0.037506103515625, 0.03204345703125, -0.0134429931640625, -0.040191650390625, -0.0251922607421875, 0.002010345458984375, -0.0242919921875, -0.00689697265625, -0.0093536376953125, 0.0177001953125, -0.0239410400390625, 0.0150299072265625, 0.01300811767578125, -0.01378631591796875, 0.033477783203125, -0.035186767578125, -0.0245208740234375, -0.005756378173828125, -0.009521484375, 0.027557373046875, -0.00876617431640625, -0.0064239501953125, 0.01168060302734375, -0.006969451904296875, 0.002834320068359375, -0.07440185546875, -0.043121337890625, 0.012451171875, -0.0008859634399414062, 0.0224761962890625, 0.00927734375, 0.003810882568359375, 0.007671356201171875, -0.0145416259765625, 0.00691986083984375, 0.0282745361328125, -0.0152130126953125, 0.04791259765625, -0.037933349609375, 0.021575927734375, 0.01337432861328125, 0.0224761962890625, 0.047210693359375, 0.0038089752197265625, 0.0021610260009765625, 0.0540771484375, -0.0174560546875, -0.002147674560546875, -0.0017404556274414062, 0.01177978515625, 0.0128631591796875, 0.0162811279296875, 0.05535888671875, 0.040802001953125, -0.017913818359375, -0.08551025390625, 0.1295166015625, 0.01358795166015625, 0.038177490234375, -0.0712890625, -0.0333251953125, -0.0194549560546875, 0.0018463134765625, -0.0198211669921875, 0.03411865234375, -0.05584716796875, -0.0294189453125, 0.047821044921875, -0.0224151611328125, -0.011505126953125, -0.01146697998046875, -0.003936767578125, 0.014984130859375, -0.045318603515625, -0.04132080078125, -0.0176849365234375, 0.008819580078125, -0.016143798828125, 0.0293121337890625, 0.018341064453125, 0.0390625, -0.0283660888671875, -0.01306915283203125, -0.062225341796875, 0.00504302978515625, 0.046630859375, -0.0042266845703125, 0.02838134765625, -0.04888916015625, -0.00977325439453125, 0.02667236328125, 0.03485107421875, -0.005405426025390625, 0.028228759765625, 0.018646240234375, -0.0091552734375, -0.0193328857421875, -0.01904296875, 0.031982421875, 0.020050048828125, -0.001522064208984375, -0.001953125, 0.006122589111328125, 0.03363037109375, -0.0244903564453125, 0.03472900390625, -0.0167694091796875, -0.021026611328125, 0.033966064453125, -0.0054168701171875, 0.01558685302734375, -0.0158538818359375, 0.05438232421875, 0.03948974609375, -0.0105438232421875, -0.006305694580078125, 0.005062103271484375, 0.00722503662109375, -0.0109710693359375, 0.0009326934814453125, -0.0267333984375, 0.008880615234375, -0.060394287109375, -0.00768280029296875, -0.007755279541015625, -0.0113983154296875, -0.01776123046875, -0.06951904296875, -0.0183868408203125, -0.0226898193359375, -0.123291015625, -0.08087158203125, 0.0151519775390625, -0.07989501953125, 0.0052490234375, -0.00450897216796875, -0.040283203125, -0.0190887451171875, 0.0390625, -0.015960693359375, -0.00746917724609375, -0.0227508544921875, -0.01313018798828125, -0.0791015625, -0.06756591796875, -0.063232421875, 0.00542449951171875, 0.004627227783203125, 0.0064239501953125, 0.06396484375, 0.005931854248046875, -0.0233001708984375, 0.00014913082122802734, -0.01910400390625, -0.0307769775390625, -0.00203704833984375, 0.0223236083984375, -0.01493072509765625, -0.04010009765625, 0.00820159912109375, 0.004665374755859375, -0.003124237060546875, -0.02618408203125, -0.0008068084716796875, -0.03228759765625, 0.005611419677734375, -0.01476287841796875, 0.06402587890625, 0.043975830078125, -0.01129150390625, 0.0257568359375, -0.04345703125, -0.04205322265625, 0.007648468017578125, -0.044708251953125, -0.001567840576171875, 0.02392578125, -0.0163726806640625, -0.007640838623046875, -0.0007944107055664062, -0.005939483642578125, -0.0019483566284179688, 0.05084228515625, -0.031890869140625, 0.031982421875, -0.0180816650390625, -0.01454925537109375, -0.045166015625, 0.004364013671875, -0.0247344970703125, 0.006862640380859375, -0.01477813720703125, -0.018218994140625, -0.04962158203125, 0.0302886962890625, -0.04425048828125, -0.01450347900390625, 0.037353515625, 0.007534027099609375, 0.0217132568359375, -0.0182037353515625, -0.0247344970703125, -0.016693115234375, 0.06597900390625, -0.01953125, -0.03143310546875, -0.01148223876953125, 0.0211029052734375, -0.0292510986328125, -0.0127105712890625, -0.01352691650390625, -0.01522064208984375, -0.1556396484375, -0.00627899169921875, 0.03155517578125, -0.08990478515625, 0.0263214111328125, -0.081787109375, -0.10418701171875, -0.052825927734375, 0.00812530517578125, -0.040252685546875, 0.0025005340576171875, 0.03179931640625, -0.0191497802734375, 0.016082763671875, 0.0047454833984375, -0.04632568359375, -0.07666015625, -0.0185699462890625, -0.01224517822265625, 0.06390380859375, -0.0008916854858398438, 0.0222320556640625, -0.0300750732421875, 0.0478515625, -0.0090789794921875, 0.043304443359375, -0.0090789794921875, 0.00606536865234375, 0.017242431640625, 0.0155487060546875, 0.0090179443359375, 0.00911712646484375, -0.008392333984375, 0.0260467529296875, -0.017486572265625, 0.04779052734375, 0.01080322265625, -0.01605224609375, 0.06488037109375, -0.05157470703125, 0.019073486328125, -0.0189666748046875, -0.052276611328125, 0.01873779296875, -0.04144287109375, 0.0031948089599609375, -0.039886474609375, -0.0020046234130859375, 0.08856201171875, -0.006900787353515625, 0.027252197265625, -0.01171112060546875, 0.07623291015625, 0.0017366409301757812, -0.0300445556640625, -0.04840087890625, 0.0001614093780517578, 0.048492431640625, 0.03436279296875, 0.04473876953125, 0.02490234375, -0.037750244140625, 0.06256103515625, 0.0489501953125, 0.006496429443359375, 0.0217437744140625, -0.0009984970092773438, 0.006084442138671875, -0.0482177734375, 0.033111572265625, 0.0151824951171875, -0.02105712890625, 0.00823974609375, 0.0113372802734375, -0.0233001708984375, 0.033447265625, 0.02947998046875, 0.0099945068359375, -0.01373291015625, -0.031982421875, -0.0194854736328125, -0.005706787109375, -0.026580810546875, 0.0889892578125, 0.05596923828125, -0.0235443115234375, 0.0679931640625, 0.048797607421875, 0.00714874267578125, -0.012939453125, -0.04058837890625, 0.00330352783203125, 0.01226806640625, 0.0193939208984375, 0.005035400390625, 0.005275726318359375, -0.01174163818359375, 0.052947998046875, 0.011444091796875, -0.0361328125, -0.0182647705078125, -0.013153076171875, -0.019317626953125, -0.00445556640625, -0.0310821533203125, -0.0016126632690429688, -0.00984954833984375, -0.03411865234375, 0.0173797607421875, -0.00980377197265625, -0.068359375, -0.0408935546875, 0.053436279296875, 0.005329132080078125, -0.00024187564849853516, 0.0162353515625, 0.038787841796875, 0.01561737060546875, 0.021759033203125, -0.014404296875, -0.0162811279296875, -0.0248260498046875, 0.01332855224609375, 0.005443572998046875, 0.0087738037109375, 0.06097412109375, -0.05035400390625, 0.05706787109375, -0.01361083984375, -0.03515625, 0.0341796875, 0.032440185546875, -0.048187255859375, -0.01346588134765625, 0.01222991943359375, 0.01898193359375, 0.006069183349609375, -0.00447845458984375, -0.02301025390625, -0.0028705596923828125, -0.00994110107421875, 0.0224456787109375, 0.0692138671875, 0.0120391845703125, -0.01363372802734375, -0.000036656856536865234, -0.029449462890625, -0.0008440017700195312, 0.01824951171875, -0.048858642578125, 0.01507568359375, 0.01654052734375, -0.05377197265625, -0.04559326171875, 0.00582122802734375, -0.021514892578125, 0.0217437744140625, -0.025054931640625, -0.03045654296875, 0.00942230224609375, -0.0303802490234375, 0.018829345703125, -0.02972412109375, -0.0023136138916015625, -0.00567626953125, 0.0009002685546875, 0.06610107421875, 0.035858154296875, -0.032318115234375, 0.0015401840209960938, -0.03558349609375, 0.0011281967163085938, 0.0301971435546875, -0.0404052734375, -0.021484375, -0.024658203125, -0.00543212890625, -0.00279998779296875, 0.0010671615600585938, -0.01708984375, -0.0229949951171875, 0.046112060546875, 0.03179931640625, 0.0289306640625, -0.00630950927734375, 0.0546875, 0.00962066650390625, 0.0227508544921875, 0.0169677734375, 0.024566650390625, -0.01806640625, -0.01180267333984375, 0.016632080078125, -0.07232666015625, -0.050079345703125, -0.0222015380859375, -0.0259857177734375, 0.062286376953125, 0.042633056640625, 0.0018949508666992188, 0.047454833984375, -0.0220184326171875, -0.00634002685546875, -0.01290130615234375, 0.00345611572265625, -0.060791015625, -0.0014410018920898438, 0.02978515625, 0.030120849609375, 0.0260162353515625, -0.03863525390625, -0.074462890625, 0.04437255859375, 0.0369873046875, 0.0250244140625, -0.0012760162353515625, -0.029693603515625, 0.042999267578125, 0.0265350341796875, -0.0202789306640625, 0.01325225830078125, 0.0263214111328125, -0.004405975341796875, -0.029266357421875, 0.0053863525390625, -0.0248565673828125, -0.006195068359375, 0.019866943359375, -0.0014429092407226562, -0.0125732421875, 0.005889892578125, -0.0080108642578125, 0.00975799560546875, 0.0626220703125, 0.050018310546875, -0.07916259765625, 0.011077880859375, -0.01552581787109375, -0.0018167495727539062, 0.0389404296875, -0.006786346435546875, -0.039764404296875, -0.021728515625, 0.039306640625, -0.0225982666015625, -0.013092041015625, 0.024261474609375, 0.0144195556640625, 0.0182037353515625, -0.004993438720703125, 0.036773681640625, -0.0155181884765625, -0.03985595703125, -0.0477294921875, 0.0404052734375, -0.03973388671875, -0.007080078125, 0.0293426513671875, -0.0229339599609375, -0.0198516845703125, -0.017578125, 0.0087890625, -0.01055145263671875, -0.01751708984375, 0.0048370361328125, -0.0136260986328125, 0.053985595703125, 0.0253448486328125, -0.0100555419921875, 0.0047149658203125, -0.008270263671875, 0.0204925537109375, 0.0279541015625, -0.01381683349609375, 0.052520751953125, -0.004085540771484375, -0.07110595703125, 0.0197296142578125, -0.02203369140625, -0.02215576171875, -0.0204620361328125, -0.00434112548828125, 0.0972900390625, -0.0307464599609375, -0.01837158203125, 0.013946533203125, 0.0213775634765625, -0.01277923583984375, 0.034393310546875, 0.0106201171875, -0.01549530029296875, 0.0008897781372070312, 0.02850341796875, -0.00429534912109375, 0.01251220703125, 0.037200927734375, -0.0116729736328125, 0.033721923828125, -0.00476837158203125, -0.0182647705078125, 0.043060302734375, 0.005138397216796875, -0.03790283203125, -0.005161285400390625, -0.011260986328125, 0.00862884521484375, -0.049896240234375, 0.0009307861328125, -0.040618896484375, 0.00975799560546875, -0.0160064697265625, 0.01012420654296875, 0.0298309326171875, 0.0083160400390625, -0.033233642578125, -0.0240631103515625, 0.039093017578125, 0.0168914794921875, -0.00887298583984375, 0.04656982421875, 0.013458251953125, -0.0023250579833984375, 0.0030155181884765625, -0.0022144317626953125, 0.0247344970703125, -0.0169830322265625, -0.0263519287109375, 0.031768798828125, 0.01515960693359375, -0.0059814453125, 0.042236328125, 0.0286102294921875, -0.0716552734375, 0.036865234375, 0.049530029296875, 0.02862548828125, 0.004016876220703125, 0.0025539398193359375, -0.00554656982421875, 0.0306854248046875, -0.00577545166015625, 0.000046372413635253906, 0.02752685546875, 0.0010051727294921875, -0.0019683837890625, -0.0165863037109375, 0.0013971328735351562, -0.01092529296875, -0.01214599609375, -0.02069091796875, 0.05047607421875, -0.030609130859375, -0.0034008026123046875, -0.019866943359375, 0.035125732421875, 0.0036258697509765625, 0.01276397705078125, -0.024871826171875, -0.0108642578125, -0.01091766357421875, -0.043426513671875, 0.0141448974609375, 0.007625579833984375, 0.0011568069458007812, -0.005931854248046875, -0.0027790069580078125, -0.036468505859375, -0.004974365234375, 0.00728607177734375, -0.02056884765625, -0.00811767578125, 0.0017328262329101562, -0.007137298583984375, 0.016815185546875, 0.027069091796875, -0.0102691650390625, -0.039459228515625, 0.0031528472900390625, 0.0206146240234375, 0.04833984375, 0.0131683349609375, 0.032562255859375, 0.007419586181640625, -0.018890380859375, -0.018646240234375, 0.0216827392578125, 0.04425048828125, -0.00913238525390625, 0.01837158203125, 0.03546142578125, 0.0227508544921875, -0.005279541015625, 0.013092041015625, -0.02392578125, 0.0259552001953125, 0.035552978515625, -0.040374755859375, -0.0284881591796875, 0.0157623291015625, -0.0172119140625, -0.049957275390625, -0.0173797607421875, 0.00009435415267944336, 0.0219268798828125, 0.0036983489990234375, 0.006000518798828125, 0.01543426513671875, 0.0162353515625, -0.025238037109375, 0.03228759765625, 0.006870269775390625, -0.0015249252319335938, -0.0206756591796875, -0.0057525634765625, -0.0194549560546875, -0.0003681182861328125, 0.0196075439453125, 0.01033782958984375, 0.007595062255859375, -0.01690673828125, -0.023223876953125, 0.0219573974609375, -0.00301361083984375, 0.006084442138671875, -0.01432037353515625, -0.0290069580078125, 0.0232086181640625, 0.01873779296875, -0.0088043212890625, -0.006175994873046875, 0.0177459716796875, -0.025482177734375, -0.03497314453125, -0.029754638671875, -0.01366424560546875, 0.045318603515625, -0.0175018310546875, 0.08197021484375, -0.03857421875, 0.0094757080078125, -0.020172119140625, -0.0158538818359375, -0.0136566162109375, -0.0064697265625, -0.004680633544921875, 0.0123748779296875, -0.0027713775634765625, -0.004322052001953125, -0.0200347900390625, 0.040924072265625, -0.0142974853515625, -0.0200958251953125, 0.0243988037109375, -0.02728271484375, 0.009918212890625, 0.01971435546875, 0.00833892822265625, -0.034210205078125, -0.055267333984375, -0.055999755859375, 0.00704193115234375, -0.0024814605712890625, 0.0006046295166015625, -0.007598876953125, 0.0217742919921875, 0.014984130859375, -0.043609619140625, 0.0259552001953125, -0.04742431640625, 0.0298309326171875, 0.034942626953125, 0.0215301513671875, -0.0445556640625, 0.0270843505859375, -0.0090789794921875, -0.001708984375, 0.0092926025390625, 0.05364990234375, -0.000186920166015625, -0.05450439453125, 0.070068359375, 0.06298828125, 0.03814697265625, -0.02728271484375, 0.017791748046875, 0.0703125, -0.013763427734375, 0.01580810546875, -0.0006642341613769531, -0.0032196044921875, -0.0234222412109375, -0.00199127197265625, 0.0147705078125, -0.003009796142578125, -0.01068878173828125, -0.05023193359375, -0.0107574462890625, 0.0191650390625, -0.0148162841796875, 0.0028858184814453125, 0.0023937225341796875, -0.04290771484375, 0.00862884521484375, -0.00893402099609375, 0.0295867919921875, -0.01373291015625, 0.01287841796875, -0.0111541748046875, -0.024383544921875, -0.0034313201904296875, 0.04736328125, 0.0010519027709960938, 0.019012451171875, 0.038421630859375, -0.010467529296875, 0.01471710205078125, 0.0125274658203125, 0.010498046875, 0.06689453125, -0.0274810791015625, -0.01824951171875, -0.003688812255859375, 0.033935546875, -0.0225677490234375, -0.09112548828125, 0.00016260147094726562, -0.0533447265625, 0.0160064697265625, -0.07501220703125, 0.03497314453125, 0.018035888671875, -0.04815673828125, -0.099853515625, -0.01380157470703125, -0.029449462890625, -0.0335693359375, -0.01160430908203125, -0.025390625, -0.00856781005859375, 0.0062713623046875, -0.0135345458984375, -0.0029811859130859375, -0.0266876220703125, 0.0301971435546875, 0.01450347900390625, 0.0372314453125, -0.018707275390625, 0.018402099609375, -0.02008056640625, 0.040130615234375, 0.031158447265625, 0.0247344970703125, -0.04803466796875, 0.01482391357421875, 0.00028514862060546875, 0.0244598388671875, -0.0218048095703125, -0.0194244384765625, 0.0236968994140625, 0.03021240234375, 0.004299163818359375, -0.026397705078125, -0.05255126953125, -0.0191650390625, 0.06488037109375, 0.0513916015625, 0.020751953125, -0.01727294921875, -0.044830322265625, -0.037750244140625, -0.0220794677734375, -0.0101318359375, 0.0238189697265625, -0.0682373046875, -0.00311279296875, 0.01538848876953125, 0.0249481201171875, 0.025543212890625, -0.0007143020629882812, 0.01325225830078125, -0.01910400390625, 0.0004246234893798828, -0.0228729248046875, -0.040802001953125, -0.057403564453125, 0.056793212890625, -0.018890380859375, 0.0262908935546875, 0.0110626220703125, 0.0278778076171875, 0.048431396484375, 0.059417724609375, 0.0014982223510742188, -0.01351165771484375, 0.015777587890625, 0.03631591796875, 0.007373809814453125, 0.00484466552734375, -0.0067138671875, -0.0233917236328125, -0.00388336181640625, 0.0116424560546875, -0.025726318359375, 0.00417327880859375, -0.00786590576171875, 0.019989013671875, -0.0174102783203125, 0.0919189453125, 0.0085601806640625, 0.018829345703125, -0.002864837646484375, 0.031646728515625, -0.03076171875, -0.006793975830078125, -0.0289154052734375, -0.0246734619140625, 0.01177215576171875, 0.0018444061279296875, -0.01318359375, -0.054168701171875, 0.02947998046875, 0.00811004638671875, 0.01067352294921875, 0.0221099853515625 ]
3c47aa6f38cab77a36ec0214f7971ded322ae4f1
Wordpress Stackexchange Q: Why declare $post globally? I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it makes no noticeable difference. Why should you declare $post explicitly? * *Example 1 (in tutorial) *Example 2 (in codex usage example) A: The $post global variable is set by $wp_query->the_post() (WP_Post) inside the loop and is accessible during the loop. $post holds the post data from the current post. When you are inside the loop, you don't need to call the $post global, as it is already accessible. When you are outside the loop, and you need to access post data, you need to make use of the $post global to make post data available for use.
Q: Why declare $post globally? I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it makes no noticeable difference. Why should you declare $post explicitly? * *Example 1 (in tutorial) *Example 2 (in codex usage example) A: The $post global variable is set by $wp_query->the_post() (WP_Post) inside the loop and is accessible during the loop. $post holds the post data from the current post. When you are inside the loop, you don't need to call the $post global, as it is already accessible. When you are outside the loop, and you need to access post data, you need to make use of the $post global to make post data available for use. A: In the tutorial (Example 1), he has to declare the global $post so that he can access the post_parent from it. In a function like that, the $post is not a global variable unless he makes it so. In the codex (Example 2), it is declared global because the sample code is just a sample, explicitly trying to tell you that the $post variable is a global one. Now, while Theme Templates are included in such a way that they are running within the global variable space (they are included from the main execution thread, not from inside a function), other code may not be. So, in the main body of a template, you would not need to specify global $post, but in a function you would. Understand also that WordPress is geared towards programmers of all skill levels. You should not need to be master programmer to be able to get things done, when your goal is simply to make a change to your theme or website or something along those lines. WordPress evolved from a basic procedural piece of code to being more object oriented and API based over time. So there are relics like these within the codebase. If you were designing a new system from the ground up, you probably would avoid using global variables entirely, for various reasons. WordPress contains a lot of them for backward compatibility and such, and "new" programmers who might not understand variable scoping might be confused when they copy a small piece of code into a place where it won't work because of that scoping. Thus, declaring things as global explicitly avoids problems and also makes the code clearer by stating that the variable in question is in the global scope. Also, and I have to say this a lot, code examples in documentation and tutorials are meant to be read and understood, not copied and pasted. But people do copy and paste them, regardless. It is better to not copy code, but to learn what it tells you and then write your own version from scratch, which does exactly what you are trying to do.
wordpress
{ "language": "en", "length": 492, "provenance": "stackexchange_00019.jsonl.gz:448868", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161469" }
[ 0.0284423828125, -0.01366424560546875, -0.0253448486328125, -0.036224365234375, -0.0029773712158203125, -0.0142669677734375, -0.0037021636962890625, -0.005336761474609375, 0.052886962890625, -0.0030345916748046875, -0.0570068359375, -0.01294708251953125, -0.0220794677734375, -0.00962066650390625, -0.0082244873046875, -0.034759521484375, 0.051666259765625, -0.047271728515625, 0.015777587890625, -0.00629425048828125, 0.010772705078125, 0.0301361083984375, 0.03515625, 0.0260467529296875, 0.042938232421875, -0.0308685302734375, -0.03857421875, -0.01534271240234375, -0.0019245147705078125, -0.0181884765625, 0.01023101806640625, 0.031036376953125, 0.0082244873046875, 0.0208282470703125, 0.00119781494140625, 0.0028705596923828125, -0.01520538330078125, 0.0200347900390625, 0.037384033203125, 0.00783538818359375, -0.011322021484375, 0.01031494140625, 0.041229248046875, -0.0134429931640625, -0.019927978515625, -0.007694244384765625, -0.003643035888671875, -0.02362060546875, 0.0126800537109375, 0.011566162109375, -0.004268646240234375, 0.036041259765625, 0.0024013519287109375, 0.01427459716796875, 0.0012922286987304688, -0.0126190185546875, 0.040496826171875, -0.057403564453125, 0.046600341796875, -0.0188751220703125, -0.060455322265625, -0.048492431640625, 0.042816162109375, -0.040283203125, 0.01490020751953125, -0.01384735107421875, -0.001068115234375, 0.0400390625, -0.06304931640625, 0.0029506683349609375, 0.04754638671875, -0.0272064208984375, 0.003955841064453125, -0.002605438232421875, 0.01187896728515625, -0.0830078125, 0.04351806640625, -0.044769287109375, -0.0101318359375, 0.039306640625, -0.0260009765625, -0.003292083740234375, -0.0292816162109375, -0.038177490234375, 0.01071929931640625, -0.0109405517578125, -0.0267181396484375, 0.003204345703125, 0.00347900390625, -0.08111572265625, -0.00759124755859375, 0.037261962890625, -0.0243072509765625, -0.051849365234375, -0.051666259765625, -0.044525146484375, -0.0089874267578125, 0.042083740234375, -0.0220947265625, -0.0100860595703125, -0.024993896484375, -0.0018815994262695312, -0.0188140869140625, -0.01450347900390625, 0.005741119384765625, 0.032745361328125, 0.0023632049560546875, -0.04486083984375, 0.010162353515625, 0.004764556884765625, -0.01386260986328125, -0.003498077392578125, 0.005954742431640625, -0.001453399658203125, -0.055908203125, -0.018524169921875, -0.04742431640625, -0.00592803955078125, 0.01279449462890625, 0.00296783447265625, 0.02667236328125, 0.044219970703125, -0.039886474609375, 0.007110595703125, -0.0304412841796875, -0.020843505859375, 0.004974365234375, -0.020263671875, -0.032745361328125, 0.06744384765625, -0.02301025390625, -0.00948333740234375, 0.056549072265625, 0.01099395751953125, -0.0235748291015625, -0.0280609130859375, -0.0195159912109375, -0.0034961700439453125, 0.00321197509765625, 0.04937744140625, -0.046875, -0.08502197265625, 0.00905609130859375, 0.0162200927734375, 0.0163421630859375, 0.04400634765625, 0.044921875, -0.002811431884765625, -0.04266357421875, -0.08441162109375, 0.015472412109375, 0.00875091552734375, 0.00435638427734375, 0.0276031494140625, 0.00861358642578125, -0.0005669593811035156, 0.03521728515625, -0.019744873046875, -0.00390625, -0.00838470458984375, 0.01226806640625, 0.0025310516357421875, -0.0113067626953125, -0.00962066650390625, -0.0167083740234375, -0.016876220703125, -0.01247406005859375, 0.00583648681640625, 0.0193634033203125, -0.029052734375, 0.037078857421875, 0.0216522216796875, 0.010986328125, 0.00261688232421875, 0.01910400390625, -0.0102691650390625, -0.01971435546875, -0.043060302734375, 0.0285186767578125, -0.00989532470703125, -0.04364013671875, -0.02618408203125, -0.0119476318359375, 0.0012340545654296875, -0.0546875, 0.0290374755859375, 0.01800537109375, 0.051544189453125, 0.01922607421875, 0.0288543701171875, 0.0303802490234375, 0.0092926025390625, -0.01035308837890625, -0.006824493408203125, 0.006710052490234375, -0.00921630859375, -0.01369476318359375, -0.003086090087890625, 0.0086669921875, -0.01580810546875, -0.01551055908203125, -0.004913330078125, -0.0093536376953125, 0.005924224853515625, -0.041534423828125, -0.0123138427734375, -0.00962066650390625, 0.018524169921875, 0.00618743896484375, -0.0160064697265625, 0.019989013671875, -0.0021228790283203125, -0.0094146728515625, -0.0631103515625, -0.060699462890625, 0.046783447265625, -0.035064697265625, 0.04412841796875, -0.006923675537109375, 0.0609130859375, -0.006694793701171875, -0.052154541015625, 0.0016880035400390625, -0.021728515625, 0.043212890625, -0.002498626708984375, -0.0145263671875, -0.021240234375, 0.008544921875, 0.004909515380859375, -0.045745849609375, 0.034149169921875, -0.0036945343017578125, -0.01305389404296875, -0.0228729248046875, -0.005863189697265625, -0.0176239013671875, -0.049468994140625, 0.0005021095275878906, 0.05657958984375, 0.035614013671875, 0.064697265625, -0.004947662353515625, 0.00829315185546875, 0.02655029296875, -0.05401611328125, 0.00299835205078125, -0.01520538330078125, 0.0172882080078125, 0.06500244140625, 0.0014362335205078125, -0.00853729248046875, 0.01041412353515625, -0.0689697265625, -0.0165252685546875, 0.025299072265625, -0.006313323974609375, -0.01727294921875, 0.003925323486328125, 0.01200103759765625, -0.0017385482788085938, 0.01189422607421875, 0.002933502197265625, -0.00182342529296875, 0.04718017578125, -0.02398681640625, 0.0208892822265625, -0.0010709762573242188, -0.0191650390625, -0.0019969940185546875, 0.0161285400390625, -0.012451171875, 0.0010576248168945312, -0.0226898193359375, -0.01534271240234375, -0.00846099853515625, -0.0312042236328125, 0.0076141357421875, 0.03662109375, -0.0310211181640625, -0.0115966796875, 0.0018510818481445312, -0.01025390625, -0.004512786865234375, 0.01300048828125, -0.02044677734375, 0.0258331298828125, 0.0247802734375, 0.0270843505859375, -0.026611328125, 0.011016845703125, 0.01268768310546875, -0.04437255859375, 0.058502197265625, 0.0015869140625, -0.046844482421875, 0.0111541748046875, -0.016357421875, 0.0018281936645507812, -0.00769805908203125, 0.03656005859375, 0.057708740234375, 0.0211181640625, -0.0083465576171875, 0.001972198486328125, 0.01837158203125, 0.01332855224609375, -0.004802703857421875, -0.0197296142578125, -0.006198883056640625, -0.051025390625, -0.0116119384765625, 0.0241241455078125, 0.06805419921875, -0.0166015625, -0.04998779296875, 0.00211334228515625, 0.031890869140625, -0.0819091796875, -0.06353759765625, -0.01235198974609375, -0.08026123046875, 0.06109619140625, -0.0240478515625, -0.020477294921875, -0.03582763671875, 0.00604248046875, 0.02545166015625, -0.0014801025390625, -0.004947662353515625, -0.0587158203125, -0.07769775390625, -0.0816650390625, -0.043212890625, -0.005279541015625, 0.0254974365234375, -0.0002930164337158203, 0.0972900390625, 0.0208892822265625, -0.031951904296875, -0.007640838623046875, -0.0296478271484375, -0.0294647216796875, -0.016143798828125, -0.0079193115234375, -0.050262451171875, -0.0007028579711914062, -0.007171630859375, -0.004364013671875, -0.006862640380859375, 0.027587890625, -0.00455474853515625, 0.0248870849609375, 0.0360107421875, 0.03570556640625, 0.017608642578125, -0.04541015625, 0.001132965087890625, -0.0114288330078125, -0.053375244140625, -0.0209808349609375, -0.007175445556640625, -0.047637939453125, -0.065673828125, 0.01641845703125, -0.0005292892456054688, -0.034881591796875, -0.00690460205078125, -0.0107421875, 0.0028095245361328125, -0.028045654296875, -0.021392822265625, 0.08026123046875, 0.00859832763671875, 0.0141754150390625, 0.017974853515625, -0.0023632049560546875, -0.025543212890625, -0.001483917236328125, -0.01161956787109375, -0.011016845703125, 0.00350189208984375, -0.002803802490234375, 0.01165008544921875, -0.053619384765625, 0.026885986328125, 0.004581451416015625, -0.0146484375, -0.0026721954345703125, -0.0124969482421875, 0.01078033447265625, 0.05780029296875, -0.0478515625, -0.0006194114685058594, -0.004909515380859375, -0.02410888671875, -0.01425933837890625, -0.01483917236328125, -0.06201171875, -0.003406524658203125, -0.0208282470703125, 0.0416259765625, 0.01302337646484375, 0.0214385986328125, -0.05169677734375, 0.07421875, -0.0142059326171875, -0.0084228515625, 0.00246429443359375, -0.0736083984375, 0.0259857177734375, 0.0160064697265625, -0.007564544677734375, 0.019195556640625, 0.0203399658203125, -0.0897216796875, -0.041534423828125, -0.01065826416015625, 0.00008052587509155273, 0.032073974609375, 0.0055999755859375, -0.019439697265625, -0.0240478515625, 0.01139068603515625, 0.01338958740234375, 0.01531219482421875, -0.020721435546875, -0.0227508544921875, 0.01026153564453125, 0.03643798828125, 0.0008921623229980469, 0.015167236328125, 0.01250457763671875, 0.01471710205078125, -0.04425048828125, 0.02008056640625, -0.0287017822265625, -0.01253509521484375, 0.0173492431640625, -0.04583740234375, -0.049713134765625, 0.00434112548828125, 0.016845703125, 0.0271759033203125, -0.0087738037109375, 0.0120697021484375, -0.01157379150390625, -0.046112060546875, 0.0258026123046875, 0.038818359375, -0.032989501953125, 0.0182342529296875, 0.046142578125, 0.0218353271484375, -0.0289764404296875, -0.0948486328125, 0.0043792724609375, 0.035491943359375, -0.00363922119140625, 0.020660400390625, 0.01311492919921875, -0.0172119140625, 0.0163116455078125, 0.0159454345703125, 0.01389312744140625, -0.006862640380859375, 0.0232086181640625, -0.019256591796875, -0.035308837890625, 0.02618408203125, -0.0258941650390625, 0.02423095703125, 0.0183563232421875, 0.008453369140625, -0.051483154296875, 0.0126495361328125, 0.043212890625, -0.01219940185546875, 0.04693603515625, -0.02178955078125, 0.0014562606811523438, 0.0027446746826171875, -0.017181396484375, 0.039520263671875, 0.03570556640625, 0.00496673583984375, -0.0099334716796875, -0.015625, 0.0311431884765625, 0.007480621337890625, 0.01390838623046875, -0.005748748779296875, 0.032806396484375, 0.036224365234375, 0.02447509765625, -0.011871337890625, -0.01107025146484375, 0.04351806640625, 0.018798828125, -0.0206451416015625, -0.001636505126953125, -0.015899658203125, 0.0270233154296875, -0.00435638427734375, -0.027313232421875, 0.02496337890625, 0.01300048828125, 0.010162353515625, 0.02386474609375, 0.00415802001953125, -0.0247344970703125, -0.01129913330078125, 0.033966064453125, 0.018768310546875, -0.004825592041015625, -0.0198211669921875, 0.09539794921875, -0.023101806640625, 0.046051025390625, -0.0166015625, 0.047637939453125, 0.0352783203125, 0.036285400390625, 0.0012025833129882812, -0.0167236328125, 0.01514434814453125, 0.0164947509765625, -0.0053558349609375, -0.0290679931640625, 0.01654052734375, 0.033111572265625, 0.0396728515625, -0.00630950927734375, -0.029388427734375, 0.0145721435546875, -0.027130126953125, -0.01151275634765625, 0.03680419921875, 0.0287322998046875, -0.025115966796875, -0.015716552734375, -0.0091400146484375, 0.0296630859375, -0.00974273681640625, 0.02117919921875, -0.028045654296875, 0.00148773193359375, 0.0200958251953125, -0.006443023681640625, 0.01380157470703125, -0.015960693359375, -0.027557373046875, -0.04852294921875, -0.0127105712890625, 0.002399444580078125, -0.0190887451171875, -0.0277862548828125, -0.01013946533203125, -0.029449462890625, 0.0325927734375, 0.0010995864868164062, 0.045074462890625, -0.0256805419921875, -0.0295867919921875, -0.01410675048828125, 0.00942230224609375, 0.044464111328125, 0.0146484375, -0.05670166015625, 0.01329803466796875, -0.04290771484375, 0.00614166259765625, 0.0177154541015625, -0.0264434814453125, -0.0408935546875, -0.0282745361328125, 0.030487060546875, 0.016448974609375, 0.00357818603515625, -0.0361328125, -0.03466796875, 0.01290130615234375, 0.0335693359375, 0.060394287109375, -0.0218658447265625, 0.007633209228515625, 0.018890380859375, -0.01003265380859375, -0.008544921875, -0.00862884521484375, 0.029510498046875, -0.022613525390625, 0.007732391357421875, -0.051483154296875, -0.0288238525390625, -0.007732391357421875, -0.01397705078125, -0.002483367919921875, -0.0099029541015625, -0.00859832763671875, 0.01971435546875, 0.0048980712890625, 0.011566162109375, 0.0038242340087890625, -0.01311492919921875, 0.0007562637329101562, -0.01332855224609375, 0.0548095703125, 0.0260772705078125, 0.0133819580078125, -0.021026611328125, -0.06512451171875, 0.042083740234375, 0.0285797119140625, 0.037689208984375, -0.01491546630859375, -0.0377197265625, 0.04876708984375, 0.10345458984375, 0.00824737548828125, 0.035797119140625, 0.0158843994140625, -0.0059967041015625, 0.0201263427734375, 0.045318603515625, -0.049468994140625, -0.036407470703125, 0.043365478515625, 0.021820068359375, -0.055755615234375, 0.01486968994140625, -0.037139892578125, 0.0281829833984375, 0.055694580078125, 0.10760498046875, -0.06488037109375, 0.00991058349609375, 0.040008544921875, -0.0195465087890625, 0.0176849365234375, 0.0098114013671875, 0.002025604248046875, -0.01016998291015625, 0.022064208984375, -0.01190948486328125, -0.01177978515625, 0.022064208984375, -0.01055908203125, 0.01125335693359375, -0.01910400390625, 0.06500244140625, 0.013763427734375, -0.09417724609375, 0.061798095703125, 0.043304443359375, 0.0277862548828125, -0.01873779296875, -0.006053924560546875, 0.007724761962890625, -0.032562255859375, -0.05267333984375, -0.0046234130859375, -0.0196685791015625, -0.0012102127075195312, 0.03338623046875, -0.01421356201171875, 0.011962890625, 0.04864501953125, -0.01496124267578125, 0.032958984375, 0.00785064697265625, 0.0053253173828125, -0.0679931640625, -0.02838134765625, 0.00777435302734375, 0.0731201171875, -0.0233001708984375, 0.04229736328125, -0.01522064208984375, -0.01873779296875, -0.013824462890625, -0.036865234375, 0.045562744140625, -0.03271484375, -0.00882720947265625, 0.00946044921875, 0.02020263671875, 0.002765655517578125, -0.015655517578125, -0.0006928443908691406, -0.0113067626953125, 0.0301055908203125, -0.032501220703125, -0.01145172119140625, -0.0060577392578125, -0.06475830078125, -0.05755615234375, 0.08984375, -0.01763916015625, 0.037933349609375, 0.0018787384033203125, 0.0203094482421875, 0.0113067626953125, 0.035675048828125, -0.0516357421875, 0.044891357421875, 0.00811767578125, 0.07379150390625, -0.08636474609375, -0.0179901123046875, 0.0196533203125, 0.058746337890625, 0.055206298828125, 0.0029506683349609375, -0.017730712890625, -0.01456451416015625, 0.044464111328125, 0.046295166015625, 0.00933837890625, 0.01427459716796875, 0.0206451416015625, 0.02252197265625, 0.0223388671875, -0.0159759521484375, 0.02532958984375, -0.044921875, -0.0007944107055664062, 0.045166015625, 0.0142669677734375, -0.028350830078125, 0.029449462890625, -0.01947021484375, -0.0307464599609375, 0.0313720703125, -0.0007419586181640625, 0.07421875, 0.00963592529296875, 0.0305328369140625, -0.0025691986083984375, -0.0118560791015625, -0.052398681640625, 0.0011386871337890625, 0.029327392578125, -0.01126861572265625, 0.04150390625, 0.07232666015625, 0.0252838134765625, 0.040252685546875, 0.01409912109375, 0.036285400390625, 0.0032749176025390625, -0.012847900390625, 0.039276123046875, 0.037841796875, 0.027252197265625, -0.039794921875, 0.013885498046875, 0.025146484375, 0.04925537109375, -0.039215087890625, 0.00670623779296875, 0.01081085205078125, 0.0023365020751953125, -0.00905609130859375, -0.06634521484375, -0.01096343994140625, 0.02056884765625, 0.01012420654296875, -0.012420654296875, 0.00502777099609375, 0.0178070068359375, 0.021514892578125, 0.00720977783203125, 0.01160430908203125, -0.06317138671875, -0.016357421875, -0.029296875, -0.04632568359375, 0.0207672119140625, 0.058624267578125, 0.051055908203125, 0.01025390625, 0.01485443115234375, -0.0195465087890625, -0.01654052734375, 0.025634765625, 0.028472900390625, 0.019256591796875, -0.0312347412109375, -0.0122833251953125, 0.045867919921875, 0.0244140625, 0.023529052734375, 0.0205535888671875, 0.049530029296875, 0.0034618377685546875, -0.053558349609375, -0.01214599609375, -0.0304718017578125, -0.0418701171875, 0.005947113037109375, -0.002208709716796875, -0.0458984375, -0.026153564453125, -0.035614013671875, -0.0159454345703125, 0.022857666015625, -0.0185394287109375, -0.00408935546875, 0.03314208984375, 0.00487518310546875, -0.06036376953125, 0.05078125, 0.00861358642578125, 0.15625, 0.026519775390625, 0.021881103515625, 0.01300048828125, -0.025726318359375, -0.054443359375, 0.01415252685546875, 0.030517578125, 0.00406646728515625, 0.006290435791015625, 0.015045166015625, -0.009307861328125, 0.03131103515625, 0.004161834716796875, -0.0197601318359375, 0.025604248046875, 0.042694091796875, 0.0110321044921875, -0.03857421875, -0.0389404296875, -0.020782470703125, 0.0411376953125, 0.04840087890625, 0.0307464599609375, 0.01113128662109375, 0.05218505859375, -0.0165557861328125, 0.0009121894836425781, -0.0079498291015625, 0.0018329620361328125, -0.0298004150390625, 0.01415252685546875, 0.031402587890625, 0.0010623931884765625, -0.0128326416015625, 0.0322265625, 0.0250244140625, -0.042022705078125, 0.01513671875, -0.00406646728515625, 0.0119476318359375, -0.0270843505859375, 0.041015625, -0.00762939453125, 0.00800323486328125, -0.00603485107421875, -0.004581451416015625, 0.0447998046875, 0.009979248046875, -0.038787841796875, -0.00021278858184814453, -0.048309326171875, -0.06658935546875, 0.0297698974609375, -0.04193115234375, -0.0186920166015625, 0.018218994140625, 0.021392822265625, -0.0130615234375, -0.0221099853515625, -0.0380859375, 0.0111083984375, -0.00130462646484375, 0.0197601318359375, -0.0189361572265625, -0.003566741943359375, -0.050567626953125, 0.0177459716796875, 0.05816650390625, 0.0210418701171875, 0.00970458984375, -0.030029296875, -0.0200042724609375, -0.0165863037109375, -0.0081939697265625, -0.014434814453125, -0.0251007080078125, -0.01035308837890625, 0.0099945068359375, -0.02569580078125, -0.058319091796875, -0.057586669921875, -0.0074462890625, 0.05096435546875, -0.002201080322265625, -0.0062103271484375, -0.03155517578125, -0.035491943359375, 0.03216552734375, 0.020660400390625, 0.0164947509765625, 0.00315093994140625, 0.0125732421875, -0.036285400390625, 0.013519287109375, -0.027374267578125, -0.01215362548828125, 0.0171661376953125, 0.038665771484375, 0.033599853515625, -0.058349609375, 0.023681640625, 0.06585693359375, 0.06005859375, 0.11004638671875, 0.0567626953125, -0.0264739990234375, 0.041839599609375, -0.00756072998046875, -0.0088348388671875, -0.05084228515625, 0.01067352294921875, -0.0645751953125, 0.0057525634765625, -0.01806640625, 0.0105438232421875, 0.0304412841796875, -0.0301513671875, -0.08612060546875, 0.046844482421875, -0.022247314453125, -0.035736083984375, -0.02044677734375, -0.015533447265625, 0.0024547576904296875, 0.0109405517578125, 0.0168304443359375, -0.05291748046875, -0.041961669921875, 0.00296783447265625, 0.00583648681640625, -0.0014219284057617188, 0.063232421875, -0.02520751953125, -0.05218505859375, -0.0275726318359375, -0.02069091796875, 0.013397216796875, 0.006988525390625, -0.0079498291015625, 0.0281219482421875, 0.024688720703125, -0.036041259765625, 0.0231781005859375, 0.01192474365234375, 0.01189422607421875, -0.016021728515625, -0.005512237548828125, 0.0088653564453125, 0.01427459716796875, 0.05633544921875, 0.02728271484375, 0.017669677734375, -0.04095458984375, -0.0009059906005859375, 0.0246734619140625, -0.060211181640625, 0.01325225830078125, 0.030548095703125, -0.033355712890625, 0.0005688667297363281, -0.01473236083984375, -0.0111846923828125, 0.03143310546875, -0.047760009765625, -0.0224609375, -0.0015039443969726562, -0.0419921875, -0.0134429931640625, -0.0010309219360351562, -0.03411865234375, 0.028106689453125, -0.0300750732421875, -0.015533447265625, 0.0301513671875, 0.01568603515625, -0.0038623809814453125, 0.053466796875, 0.0176239013671875, 0.03179931640625, -0.058990478515625, -0.0009169578552246094, 0.005340576171875, 0.03375244140625, -0.041473388671875, -0.0207672119140625, -0.033935546875, 0.00942230224609375, 0.0178680419921875, 0.005161285400390625, -0.007640838623046875, 0.054595947265625, 0.028717041015625, 0.005878448486328125, -0.0012903213500976562, 0.023834228515625, 0.01076507568359375, 0.031829833984375, -0.044189453125, -0.0013360977172851562, -0.0185546875, -0.052734375, -0.0013275146484375, -0.002094268798828125, -0.01464080810546875, -0.016998291015625, -0.005580902099609375, 0.00919342041015625, 0.00116729736328125, 0.0024814605712890625 ]
3e163ea1aae6460cc825c671d0e8fc5a987465e8
Wordpress Stackexchange Q: How to remove dashicons.min.css from frontend? Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn't use them so it's an unnecessary request. A: Try deregistering that stylesheet - add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { //wp_deregister_style( 'amethyst-dashicons-style' ); wp_deregister_style( 'dashicons' ); }
Q: How to remove dashicons.min.css from frontend? Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn't use them so it's an unnecessary request. A: Try deregistering that stylesheet - add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { //wp_deregister_style( 'amethyst-dashicons-style' ); wp_deregister_style( 'dashicons' ); } A: If you want to load dashicons only to admin user, try to put this into functions.php file: // remove dashicons in frontend to non-admin function wpdocs_dequeue_dashicon() { if (current_user_can( 'update_core' )) { return; } wp_deregister_style('dashicons'); } add_action( 'wp_enqueue_scripts', 'wpdocs_dequeue_dashicon' ); A: Here's my solution to this issue. It's similar to the ones proposed by WisdmLabs and JoseLazo above but it performs a better conditional check. The dashicons style is loaded for all logged-in users belonging to any role (and not just admins) as dashicons style is needed to properly display the frontend admin bar. // Remove dashicons in frontend for unauthenticated users add_action( 'wp_enqueue_scripts', 'bs_dequeue_dashicons' ); function bs_dequeue_dashicons() { if ( ! is_user_logged_in() ) { wp_deregister_style( 'dashicons' ); } } A: use wp_dequeue_style. http://codex.wordpress.org/Function_Reference/wp_dequeue_style it may be that some other style sheet is listing dashicons as a dependency, so if dequeueing doesn't work, check for that. A: If you want to deregister css styles from your child theme's functions.php, I would suggest navigating the parent theme and search for the wp_enqueue_style() method applied for the style sheet you want to remove. For e.g if you want to remove app.css in your child theme, search for app.css in your parent theme and find the code that enqueues this style. You may find something like wp_enqueue_style('parent_theme_style', get_template_directory_uri() . '/assets/css/app.css', false, '2.2'); Now, in your functions.php for your child theme, add the following snippet : add_action( 'wp_print_styles', 'my_deregister_styles', 200 ); function my_deregister_styles() { wp_deregister_style('parent_theme_style'); } The catch is that wp_derigster_stlye('app') won't work here. This is a small issue that some people might miss and hence posting it here. A: I found I had to both dequeue and deregister for it to work. As mentioned previously the admin requires dashicons so you only want to remove them if the user isn't logged in. add_action( 'wp_print_styles', 'zgwd_dequeue_styles' ); function zgwd_dequeue_styles() { if ( ! is_user_logged_in() ) { wp_dequeue_style( 'dashicons' ); wp_deregister_style( 'dashicons' ); } } A: A solution would be possible by combining // Remove dashicons in frontend for unauthenticated users add_action( 'wp_enqueue_scripts', 'bs_dequeue_dashicons' ); function bs_dequeue_dashicons() { if ( ! is_user_logged_in() ) { wp_deregister_style( 'dashicons' ); } } and the method, he uses to replace Dashicon set with Font Awesome in Documentation function megamenu_use_fontawesome_arrows( $vars, $location, $theme, $menu_id, $theme_id ) { $vars['arrow_font'] = "'Font Awesome 5 Free'"; $vars['arrow_font_weight'] = "900"; $vars['arrow_up'] = "'\\f106'"; $vars['arrow_down'] = "'\\f107'"; $vars['arrow_left'] = "'\\f104'"; $vars['arrow_right'] = "'\\f105'"; return $vars; } A: Not sure how the client is going to end up loading dashicons.min.css as a resource in the front end. I know that you clarified that the file is not enqueued by default and that a theme or a plugin enqueues it. I second the answer above by @marcochiesi, however, if you are looking for this answer after running lighthouse chrome audit make sure you are not logged in as an admin in WordPress by the time you run the report, because once logged any page would have the admin bar at the top,visible and accessible to lighthouse audit.
wordpress
{ "language": "en", "length": 562, "provenance": "stackexchange_00019.jsonl.gz:448871", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161476" }
[ 0.03179931640625, 0.007663726806640625, -0.0277099609375, 0.02947998046875, 0.01366424560546875, -0.047149658203125, 0.07623291015625, -0.036102294921875, -0.0069122314453125, 0.023162841796875, -0.0160369873046875, -0.011932373046875, -0.006988525390625, -0.0172576904296875, -0.0167236328125, -0.02972412109375, 0.04498291015625, -0.0216064453125, 0.052154541015625, 0.004016876220703125, 0.0189666748046875, 0.0255279541015625, 0.011322021484375, 0.0440673828125, -0.0202789306640625, -0.005390167236328125, 0.0853271484375, -0.026214599609375, -0.0323486328125, -0.0579833984375, 0.01401519775390625, 0.050994873046875, -0.0133056640625, 0.041534423828125, -0.0009341239929199219, 0.0007996559143066406, 0.0177154541015625, 0.03125, 0.0361328125, -0.01253509521484375, 0.0252532958984375, -0.0174713134765625, 0.00572967529296875, 0.0457763671875, -0.039825439453125, -0.02178955078125, 0.0091705322265625, -0.02337646484375, 0.01055145263671875, -0.056182861328125, 0.017120361328125, 0.017333984375, 0.04254150390625, -0.068359375, -0.0228118896484375, -0.0032672882080078125, -0.032623291015625, 0.02581787109375, 0.038421630859375, 0.034210205078125, -0.0095062255859375, -0.00472259521484375, -0.01143646240234375, -0.0552978515625, -0.003692626953125, -0.00870513916015625, -0.0296783447265625, 0.00557708740234375, -0.02496337890625, 0.0303497314453125, 0.038818359375, -0.03350830078125, -0.004322052001953125, -0.0176544189453125, -0.004047393798828125, 0.01366424560546875, -0.0302886962890625, -0.0100860595703125, 0.04022216796875, 0.0007810592651367188, -0.017120361328125, -0.008758544921875, -0.06658935546875, 0.0008225440979003906, 0.013885498046875, 0.0416259765625, -0.0191192626953125, -0.0175933837890625, -0.021270751953125, -0.0311126708984375, -0.017822265625, -0.0017900466918945312, -0.05035400390625, 0.007717132568359375, -0.0017633438110351562, -0.0206756591796875, 0.0310516357421875, 0.060455322265625, -0.0277252197265625, -0.037933349609375, -0.0012969970703125, -0.035797119140625, -0.030181884765625, -0.025543212890625, 0.003955841064453125, 0.0325927734375, -0.0224761962890625, 0.017791748046875, 0.0426025390625, 0.0273590087890625, 0.024444580078125, 0.00870513916015625, -0.0335693359375, -0.06451416015625, -0.018890380859375, 0.07012939453125, -0.002590179443359375, -0.0165252685546875, 0.0171661376953125, 0.0017452239990234375, 0.03759765625, 0.0289764404296875, 0.017913818359375, 0.0034427642822265625, 0.0147552490234375, 0.0186004638671875, -0.0296630859375, -0.026336669921875, 0.03558349609375, 0.057098388671875, -0.09326171875, -0.0187835693359375, 0.11376953125, 0.0135345458984375, 0.04412841796875, -0.0625, 0.0193328857421875, 0.0124359130859375, 0.02606201171875, -0.01416015625, 0.054229736328125, -0.058685302734375, -0.05712890625, 0.067626953125, -0.0177154541015625, 0.0005855560302734375, 0.007476806640625, 0.017059326171875, -0.004058837890625, -0.033233642578125, 0.024139404296875, -0.0548095703125, 0.0350341796875, 0.0439453125, -0.0164031982421875, 0.01218414306640625, 0.0762939453125, -0.027435302734375, -0.055755615234375, -0.06781005859375, -0.040008544921875, -0.0078582763671875, 0.03778076171875, -0.025360107421875, -0.006618499755859375, 0.004734039306640625, 0.0159759521484375, 0.010162353515625, 0.021484375, 0.004261016845703125, -0.01486968994140625, -0.06048583984375, 0.00319671630859375, 0.017303466796875, -0.006282806396484375, 0.06182861328125, 0.024169921875, -0.036407470703125, 0.00567626953125, -0.00390625, -0.046142578125, -0.02984619140625, 0.030853271484375, -0.03466796875, -0.077880859375, -0.0004589557647705078, 0.0259552001953125, 0.0869140625, 0.02838134765625, 0.0152587890625, 0.048492431640625, -0.0240936279296875, 0.019744873046875, -0.01007080078125, 0.01407623291015625, -0.0269012451171875, -0.02581787109375, -0.014862060546875, 0.0024204254150390625, -0.0063629150390625, -0.033538818359375, 0.03753662109375, 0.00847625732421875, 0.00965118408203125, -0.026458740234375, 0.05029296875, -0.032958984375, 0.07122802734375, -0.037353515625, -0.0226593017578125, 0.0185394287109375, -0.044097900390625, -0.0283355712890625, 0.0218658447265625, -0.0122222900390625, 0.0148468017578125, 0.007663726806640625, 0.01409912109375, 0.005191802978515625, 0.021881103515625, 0.006450653076171875, -0.01543426513671875, 0.0038814544677734375, 0.01171875, 0.0226593017578125, 0.01953125, -0.03485107421875, -0.0030155181884765625, 0.053131103515625, -0.0233001708984375, 0.039794921875, 0.039093017578125, -0.006771087646484375, 0.05029296875, 0.01279449462890625, -0.0110015869140625, -0.004108428955078125, -0.0770263671875, 0.006366729736328125, 0.0361328125, 0.039306640625, 0.03497314453125, -0.0106658935546875, 0.0159149169921875, 0.0191802978515625, -0.035919189453125, 0.0162506103515625, 0.0007305145263671875, -0.010955810546875, -0.0210113525390625, -0.013946533203125, 0.0163116455078125, 0.056854248046875, 0.01580810546875, 0.0167694091796875, 0.037506103515625, -0.050048828125, -0.07562255859375, 0.00017404556274414062, 0.02337646484375, 0.0175018310546875, 0.0162506103515625, -0.00965118408203125, 0.00867462158203125, -0.0178375244140625, 0.0276947021484375, 0.0090789794921875, 0.018341064453125, 0.007305145263671875, 0.01318359375, 0.0106658935546875, -0.0205841064453125, -0.0030117034912109375, 0.024810791015625, 0.020599365234375, 0.01427459716796875, 0.0015926361083984375, -0.002811431884765625, -0.0168304443359375, 0.004180908203125, -0.007053375244140625, -0.0198822021484375, 0.0153045654296875, -0.006565093994140625, 0.022308349609375, -0.04217529296875, 0.021087646484375, 0.0038890838623046875, 0.005218505859375, 0.040252685546875, 0.0116119384765625, 0.051177978515625, 0.00542449951171875, 0.02105712890625, 0.005718231201171875, 0.0196685791015625, -0.07049560546875, 0.0148773193359375, 0.010223388671875, -0.005840301513671875, 0.01464080810546875, 0.06512451171875, 0.0074615478515625, 0.01145172119140625, 0.018157958984375, 0.035064697265625, 0.052520751953125, -0.025482177734375, -0.0083160400390625, 0.037811279296875, -0.0277252197265625, 0.01328277587890625, 0.0206298828125, 0.02978515625, -0.00302886962890625, -0.041656494140625, -0.009552001953125, 0.01959228515625, -0.0589599609375, -0.044769287109375, 0.004520416259765625, -0.018951416015625, -0.057708740234375, -0.0082244873046875, -0.0223236083984375, 0.0267791748046875, -0.0187835693359375, -0.0106201171875, 0.03460693359375, -0.034576416015625, 0.007007598876953125, -0.00540924072265625, -0.01497650146484375, -0.0474853515625, 0.0189056396484375, -0.01385498046875, -0.007015228271484375, 0.087890625, 0.0181427001953125, -0.03045654296875, -0.0037860870361328125, -0.0244140625, -0.0164794921875, 0.00931549072265625, 0.06512451171875, -0.036865234375, -0.00960540771484375, 0.0193023681640625, -0.016021728515625, 0.020263671875, -0.0509033203125, -0.021881103515625, -0.035186767578125, -0.0205230712890625, -0.0179901123046875, 0.05426025390625, 0.04461669921875, -0.029876708984375, 0.00302886962890625, -0.032470703125, -0.051605224609375, 0.025970458984375, -0.01910400390625, 0.0325927734375, -0.03155517578125, -0.01386260986328125, 0.031097412109375, 0.04986572265625, 0.0574951171875, 0.0009365081787109375, 0.0033969879150390625, -0.0048675537109375, 0.0216522216796875, 0.018310546875, 0.04864501953125, -0.04437255859375, -0.015869140625, -0.044158935546875, 0.08685302734375, 0.006866455078125, -0.00865936279296875, 0.01013946533203125, 0.0103607177734375, 0.026123046875, -0.01522064208984375, 0.0204315185546875, -0.08203125, -0.006870269775390625, -0.01306915283203125, 0.018585205078125, -0.0018606185913085938, 0.036468505859375, -0.0161895751953125, -0.031768798828125, 0.011627197265625, 0.0305023193359375, -0.0161590576171875, -0.049285888671875, 0.0206298828125, -0.03143310546875, -0.126220703125, -0.001399993896484375, 0.0006756782531738281, -0.06341552734375, -0.00021827220916748047, -0.060272216796875, -0.08135986328125, -0.053924560546875, 0.0240936279296875, -0.027801513671875, -0.005687713623046875, 0.0103759765625, -0.021575927734375, 0.0016326904296875, -0.01529693603515625, -0.0421142578125, -0.03326416015625, -0.0041656494140625, -0.06744384765625, 0.04205322265625, 0.029571533203125, 0.002826690673828125, 0.03057861328125, 0.058563232421875, -0.01245880126953125, -0.026702880859375, -0.01375579833984375, 0.0176239013671875, -0.041290283203125, 0.025970458984375, -0.0124053955078125, 0.0088348388671875, -0.02264404296875, -0.00366973876953125, -0.034637451171875, 0.0477294921875, 0.0218353271484375, 0.0142974853515625, 0.060455322265625, -0.0172119140625, -0.0268096923828125, -0.0190582275390625, -0.007587432861328125, 0.02484130859375, 0.004505157470703125, 0.01485443115234375, -0.03857421875, -0.0183258056640625, 0.0236053466796875, 0.06414794921875, -0.0073394775390625, -0.0013685226440429688, -0.0083160400390625, 0.0104522705078125, -0.057952880859375, 0.006805419921875, 0.0302581787109375, 0.047607421875, -0.0035114288330078125, 0.0200653076171875, 0.0034637451171875, -0.0125732421875, 0.06378173828125, 0.00577545166015625, 0.02532958984375, -0.0280914306640625, 0.029541015625, -0.0170440673828125, -0.01198577880859375, 0.0223388671875, -0.0259857177734375, 0.03839111328125, 0.0423583984375, 0.02655029296875, -0.01512908935546875, 0.0484619140625, 0.009429931640625, 0.0161895751953125, -0.0574951171875, -0.00960540771484375, -0.044952392578125, 0.01168060302734375, 0.01506805419921875, 0.0482177734375, -0.0009670257568359375, 0.019622802734375, 0.049652099609375, 0.03192138671875, 0.019683837890625, -0.019683837890625, -0.046142578125, -0.044403076171875, -0.010528564453125, 0.0099945068359375, -0.01788330078125, 0.026580810546875, -0.0038013458251953125, 0.03515625, -0.0013895034790039062, -0.0312347412109375, -0.0243988037109375, 0.004482269287109375, 0.033233642578125, 0.01444244384765625, 0.0087127685546875, 0.04193115234375, 0.0003418922424316406, -0.0259552001953125, -0.0242156982421875, 0.005542755126953125, -0.053253173828125, -0.058563232421875, -0.04595947265625, 0.00370025634765625, -0.04388427734375, -0.01194000244140625, 0.007556915283203125, -0.0001876354217529297, -0.01090240478515625, 0.003204345703125, -0.005718231201171875, -0.029632568359375, -0.00652313232421875, -0.0031280517578125, 0.03582763671875, 0.039215087890625, -0.06329345703125, 0.058319091796875, -0.036407470703125, 0.01067352294921875, 0.00214385986328125, 0.03485107421875, 0.00677490234375, -0.02349853515625, 0.01132965087890625, -0.0219573974609375, 0.0017805099487304688, 0.033447265625, 0.0032062530517578125, -0.0230865478515625, -0.01105499267578125, 0.004688262939453125, 0.02203369140625, -0.0202178955078125, -0.0033931732177734375, -0.030731201171875, 0.0076141357421875, -0.0009617805480957031, 0.0274200439453125, -0.0582275390625, 0.0196533203125, 0.039703369140625, -0.0439453125, -0.03887939453125, -0.0015935897827148438, -0.10882568359375, -0.0193328857421875, -0.0165252685546875, 0.00933837890625, -0.02142333984375, -0.035675048828125, 0.0268096923828125, -0.0248565673828125, 0.0052947998046875, -0.03338623046875, 0.0214385986328125, 0.0240020751953125, 0.0265655517578125, -0.0203704833984375, -0.01519775390625, -0.06622314453125, -0.0257415771484375, -0.01354217529296875, -0.0240325927734375, -0.0219879150390625, 0.00408935546875, 0.0026836395263671875, 0.038726806640625, -0.024749755859375, -0.02490234375, 0.0252227783203125, 0.0173492431640625, -0.002986907958984375, 0.0733642578125, -0.04315185546875, 0.00579833984375, -0.002758026123046875, -0.046600341796875, -0.0169830322265625, -0.0002524852752685547, 0.068359375, -0.00823211669921875, 0.0253753662109375, -0.0234375, -0.051239013671875, -0.029083251953125, -0.0215911865234375, 0.02392578125, 0.054656982421875, -0.007171630859375, 0.0142822265625, 0.00931549072265625, 0.0133514404296875, -0.0355224609375, -0.00365447998046875, -0.0167388916015625, 0.0229339599609375, -0.014312744140625, 0.02264404296875, 0.05841064453125, -0.0240631103515625, -0.030181884765625, 0.007587432861328125, 0.00457000732421875, 0.0274200439453125, 0.0019512176513671875, 0.00885772705078125, 0.031402587890625, 0.0390625, -0.03875732421875, 0.007205963134765625, 0.035491943359375, -0.0188446044921875, -0.010772705078125, 0.0203704833984375, -0.0266571044921875, -0.0148162841796875, 0.01605224609375, -0.0014123916625976562, 0.031341552734375, 0.024932861328125, 0.00809478759765625, -0.018310546875, 0.0555419921875, 0.00962066650390625, -0.057159423828125, -0.0247039794921875, -0.031890869140625, -0.00316619873046875, 0.025115966796875, 0.01238250732421875, -0.01342010498046875, -0.033660888671875, 0.033935546875, -0.0333251953125, 0.007293701171875, 0.018310546875, -0.0213623046875, 0.004451751708984375, 0.01284027099609375, 0.04632568359375, 0.005939483642578125, -0.0234375, -0.0460205078125, 0.003726959228515625, -0.0228271484375, -0.005107879638671875, 0.0204925537109375, -0.00836181640625, -0.021820068359375, -0.01158905029296875, 0.00995635986328125, 0.007320404052734375, -0.025390625, 0.0189208984375, -0.013397216796875, 0.020294189453125, 0.00284576416015625, -0.0014505386352539062, -0.0045166015625, -0.041473388671875, 0.00601959228515625, 0.025177001953125, -0.03387451171875, 0.0206756591796875, -0.007293701171875, -0.05718994140625, 0.0186920166015625, -0.011566162109375, -0.0311279296875, -0.0255126953125, -0.04412841796875, 0.07110595703125, -0.037872314453125, -0.003940582275390625, 0.0093536376953125, 0.06036376953125, 0.0022792816162109375, -0.0360107421875, 0.04193115234375, -0.045928955078125, -0.00423431396484375, -0.0180206298828125, -0.004596710205078125, 0.007175445556640625, -0.040435791015625, -0.0882568359375, 0.07928466796875, -0.0166168212890625, 0.055084228515625, 0.0089111328125, 0.01416015625, -0.0262298583984375, -0.0186614990234375, -0.0310821533203125, 0.052703857421875, 0.043548583984375, -0.00540924072265625, 0.01087188720703125, 0.017120361328125, -0.006771087646484375, -0.0182342529296875, 0.029937744140625, 0.01004791259765625, 0.02325439453125, -0.0057525634765625, 0.0276947021484375, 0.03289794921875, -0.0157623291015625, -0.0025081634521484375, -0.039459228515625, -0.004974365234375, -0.032318115234375, -0.02813720703125, 0.01207733154296875, -0.0458984375, -0.04791259765625, -0.00801849365234375, 0.0113525390625, -0.0037441253662109375, 0.051300048828125, -0.01029205322265625, -0.047821044921875, 0.01812744140625, 0.019439697265625, -0.03546142578125, -0.0233612060546875, 0.035430908203125, 0.00807952880859375, -0.029876708984375, 0.0034732818603515625, -0.03179931640625, 0.05133056640625, 0.0119781494140625, -0.002834320068359375, -0.00894927978515625, 0.0017385482788085938, -0.0253753662109375, 0.004528045654296875, -0.01259613037109375, 0.054656982421875, -0.03411865234375, -0.011077880859375, -0.0070343017578125, 0.024078369140625, -0.031982421875, -0.00830841064453125, 0.0012416839599609375, -0.00125885009765625, -0.0027065277099609375, -0.04754638671875, 0.0047607421875, -0.0203094482421875, 0.01025390625, 0.00003457069396972656, 0.0126495361328125, -0.07562255859375, -0.06890869140625, -0.0079498291015625, -0.0185089111328125, 0.00965118408203125, 0.007068634033203125, 0.0226593017578125, 0.060150146484375, -0.0001417398452758789, -0.0360107421875, -0.0211334228515625, -0.033966064453125, -0.0052032470703125, 0.04705810546875, 0.05255126953125, 0.0290985107421875, 0.0309600830078125, -0.017120361328125, -0.0267791748046875, 0.021514892578125, 0.0184173583984375, 0.005382537841796875, -0.006103515625, 0.01324462890625, 0.0027313232421875, -0.004749298095703125, 0.0246734619140625, -0.01052093505859375, 0.0210418701171875, 0.0079803466796875, -0.006134033203125, -0.014923095703125, -0.01117706298828125, -0.01568603515625, 0.036651611328125, -0.048828125, 0.030242919921875, 0.0162506103515625, 0.0019931793212890625, -0.00743865966796875, 0.006565093994140625, 0.05316162109375, -0.039337158203125, -0.00823211669921875, 0.00278472900390625, -0.0252838134765625, 0.03057861328125, -0.02996826171875, -0.056610107421875, -0.0380859375, -0.0007786750793457031, 0.0178375244140625, -0.00823974609375, -0.00257110595703125, -0.0345458984375, 0.0012607574462890625, -0.042388916015625, 0.07183837890625, 0.028350830078125, -0.02117919921875, -0.011871337890625, -0.0163116455078125, 0.06695556640625, -0.0052642822265625, -0.025238037109375, 0.0308990478515625, -0.04248046875, -0.03179931640625, -0.00576019287109375, 0.029449462890625, 0.018829345703125, 0.01080322265625, 0.00569915771484375, 0.035247802734375, -0.0084991455078125, 0.0196380615234375, -0.01374053955078125, -0.0023193359375, 0.0269775390625, 0.0149078369140625, -0.0046844482421875, -0.01282501220703125, -0.034576416015625, 0.0293426513671875, 0.05035400390625, -0.02947998046875, 0.04248046875, 0.0165863037109375, -0.000006735324859619141, -0.045257568359375, -0.0234375, -0.022369384765625, -0.0374755859375, -0.0012559890747070312, 0.01480865478515625, 0.007297515869140625, -0.00441741943359375, -0.0235748291015625, -0.021728515625, 0.034942626953125, -0.0271453857421875, 0.040252685546875, 0.033172607421875, 0.08050537109375, 0.037933349609375, -0.0211334228515625, -0.0118408203125, -0.005809783935546875, -0.023956298828125, 0.0286865234375, -0.0176239013671875, 0.044158935546875, 0.0115814208984375, 0.00800323486328125, 0.029510498046875, 0.01433563232421875, 0.0108184814453125, -0.05352783203125, -0.00965118408203125, 0.0572509765625, -0.002391815185546875, 0.0001926422119140625, 0.0010004043579101562, 0.00032258033752441406, -0.0031566619873046875, -0.032958984375, 0.043548583984375, -0.0360107421875, -0.0290374755859375, -0.11834716796875, 0.0321044921875, 0.0012445449829101562, 0.004947662353515625, -0.061279296875, 0.0528564453125, -0.01151275634765625, 0.048309326171875, -0.0273895263671875, 0.025909423828125, -0.039581298828125, -0.0572509765625, -0.04217529296875, -0.01513671875, -0.04815673828125, 0.06396484375, -0.0127410888671875, -0.01535797119140625, 0.0011320114135742188, 0.002468109130859375, 0.040435791015625, -0.039947509765625, 0.0167236328125, 0.01172637939453125, -0.037109375, -0.01485443115234375, 0.00643157958984375, 0.01396942138671875, -0.01146697998046875, -0.05877685546875, -0.016876220703125, -0.040283203125, -0.01154327392578125, -0.008636474609375, 0.02813720703125, 0.014862060546875, -0.032958984375, -0.0843505859375, 0.0312042236328125, -0.00867462158203125, -0.035614013671875, -0.005367279052734375, 0.00548553466796875, -0.016448974609375, -0.00390625, -0.00969696044921875, -0.01103973388671875, 0.007587432861328125, 0.023345947265625, 0.0355224609375, 0.065673828125, 0.00875091552734375, 0.0105438232421875, -0.0078887939453125, 0.047576904296875, 0.023681640625, 0.070068359375, -0.046295166015625, 0.03985595703125, -0.01070404052734375, 0.02301025390625, 0.00518035888671875, -0.0021457672119140625, 0.01184844970703125, -0.0074310302734375, 0.0027294158935546875, 0.009521484375, -0.01555633544921875, -0.031890869140625, 0.033111572265625, 0.0235595703125, 0.0014638900756835938, 0.0174407958984375, -0.03765869140625, -0.0289306640625, -0.01117706298828125, -0.005878448486328125, 0.0217132568359375, -0.07708740234375, -0.00414276123046875, 0.021728515625, -0.0128173828125, 0.061981201171875, -0.043609619140625, -0.005222320556640625, 0.015625, 0.0292816162109375, 0.00487518310546875, -0.0210418701171875, 0.0264892578125, -0.026214599609375, 0.0211639404296875, 0.0501708984375, -0.0517578125, 0.000743865966796875, 0.03912353515625, 0.004119873046875, -0.0165252685546875, -0.022064208984375, -0.017181396484375, 0.061309814453125, -0.015655517578125, 0.060821533203125, -0.056732177734375, -0.007656097412109375, -0.0292205810546875, 0.0008296966552734375, 0.020721435546875, 0.006656646728515625, -0.03741455078125, 0.006229400634765625, -0.003536224365234375, -0.004863739013671875, -0.02410888671875, 0.0236968994140625, -0.00113677978515625, 0.016876220703125, -0.0141143798828125, 0.00823211669921875, 0.035247802734375, -0.0298919677734375, 0.00009578466415405273, -0.006328582763671875, -0.0111236572265625, -0.07647705078125, 0.01812744140625, -0.006343841552734375, 0.0240478515625, 0.02716064453125 ]
84a23163e401f7fbdec63940306bd5374c697860
Wordpress Stackexchange Q: Add taxonomy to already registered custom post type I want to add taxonomy to already registered custom post type. Is it possible or I have to delete and create that custom post type again?? A: You want to use the register_taxonomy_for_object_type function documented here add_action('init','fix_my_tax'); function fix_my_tax(){ register_taxonomy_for_object_type('taxonomy', 'post_type'); }
Q: Add taxonomy to already registered custom post type I want to add taxonomy to already registered custom post type. Is it possible or I have to delete and create that custom post type again?? A: You want to use the register_taxonomy_for_object_type function documented here add_action('init','fix_my_tax'); function fix_my_tax(){ register_taxonomy_for_object_type('taxonomy', 'post_type'); }
wordpress
{ "language": "en", "length": 51, "provenance": "stackexchange_00019.jsonl.gz:448933", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161687" }
[ 0.07086181640625, 0.02239990234375, -0.0015926361083984375, -0.054901123046875, 0.052215576171875, -0.0210113525390625, 0.047760009765625, -0.01483154296875, -0.032562255859375, -0.00353240966796875, -0.030487060546875, 0.021392822265625, -0.01458740234375, -0.01065826416015625, 0.0286865234375, -0.03216552734375, 0.0364990234375, -0.023223876953125, 0.04498291015625, -0.0055084228515625, 0.0195159912109375, 0.013031005859375, 0.06622314453125, 0.01146697998046875, 0.0258636474609375, -0.0164642333984375, 0.046295166015625, -0.01873779296875, 0.00665283203125, -0.0176849365234375, 0.033538818359375, 0.0022983551025390625, 0.00885009765625, 0.0177764892578125, -0.00553131103515625, 0.0251007080078125, 0.01305389404296875, 0.0185699462890625, 0.0251922607421875, 0.01337432861328125, 0.0291595458984375, -0.01175689697265625, 0.01690673828125, 0.0132904052734375, -0.00458526611328125, -0.046112060546875, 0.033966064453125, -0.03302001953125, 0.00984954833984375, -0.05462646484375, 0.027801513671875, -0.0242156982421875, 0.051605224609375, -0.0657958984375, -0.0305328369140625, -0.0199737548828125, 0.00855255126953125, -0.0081787109375, 0.04034423828125, -0.0239410400390625, -0.03924560546875, -0.0204315185546875, 0.034271240234375, -0.01419830322265625, 0.00846099853515625, 0.0255126953125, 0.024078369140625, 0.01096343994140625, -0.0911865234375, -0.001079559326171875, 0.037933349609375, -0.07733154296875, 0.004421234130859375, 0.0264434814453125, 0.004398345947265625, -0.08782958984375, 0.039886474609375, -0.037017822265625, -0.01235198974609375, 0.055206298828125, 0.0179290771484375, -0.039764404296875, 0.022216796875, 0.00826263427734375, -0.0158843994140625, 0.005664825439453125, -0.00374603271484375, -0.0034923553466796875, -0.0290069580078125, -0.049591064453125, -0.01219940185546875, -0.062408447265625, -0.048553466796875, 0.00823211669921875, 0.0133514404296875, -0.041290283203125, 0.016326904296875, 0.039703369140625, -0.01910400390625, 0.0230560302734375, -0.0153350830078125, -0.03997802734375, 0.04449462890625, -0.039337158203125, 0.032806396484375, 0.0126800537109375, -0.034515380859375, -0.051361083984375, 0.04827880859375, 0.028045654296875, -0.00859832763671875, 0.04608154296875, 0.0135040283203125, -0.0195465087890625, -0.019500732421875, -0.005176544189453125, -0.01111602783203125, 0.002300262451171875, 0.01386260986328125, -0.0160064697265625, 0.023040771484375, 0.042022705078125, 0.0325927734375, -0.04522705078125, 0.01322174072265625, 0.016632080078125, -0.020355224609375, -0.0655517578125, 0.0188446044921875, -0.01031494140625, -0.0290985107421875, 0.0269775390625, 0.042510986328125, 0.01383209228515625, -0.0019407272338867188, -0.01404571533203125, 0.0141448974609375, 0.006481170654296875, -0.01210784912109375, 0.0002751350402832031, 0.0374755859375, -0.027252197265625, -0.0245208740234375, 0.018035888671875, 0.01885986328125, 0.031707763671875, 0.0192413330078125, -0.006305694580078125, -0.0018854141235351562, -0.0126800537109375, -0.00751495361328125, -0.0182952880859375, 0.04046630859375, 0.01666259765625, -0.035400390625, -0.001476287841796875, 0.007556915283203125, -0.01922607421875, -0.036407470703125, -0.04119873046875, 0.03076171875, -0.0110931396484375, -0.017547607421875, -0.01309967041015625, -0.047576904296875, 0.0241241455078125, -0.0295257568359375, -0.00821685791015625, 0.01641845703125, -0.0115203857421875, 0.03326416015625, 0.005313873291015625, 0.0277557373046875, -0.020721435546875, -0.012542724609375, -0.024871826171875, -0.00432586669921875, 0.0140838623046875, 0.01238250732421875, 0.02850341796875, -0.0012788772583007812, -0.03875732421875, 0.0221710205078125, -0.006038665771484375, -0.048919677734375, 0.0141448974609375, 0.005107879638671875, 0.052459716796875, 0.027801513671875, 0.0157318115234375, 0.0232391357421875, -0.0016908645629882812, -0.06915283203125, -0.0090179443359375, 0.023162841796875, -0.00006341934204101562, 0.007465362548828125, -0.01605224609375, 0.015655517578125, -0.00852203369140625, -0.049072265625, 0.0013942718505859375, -0.01456451416015625, 0.01678466796875, -0.03533935546875, -0.003204345703125, -0.0033206939697265625, 0.04449462890625, -0.016448974609375, 0.0001405477523803711, 0.0194549560546875, -0.02044677734375, 0.00673675537109375, -0.055419921875, -0.0396728515625, 0.0018625259399414062, -0.025421142578125, -0.0110015869140625, 0.003448486328125, -0.01168060302734375, 0.00698089599609375, 0.016082763671875, -0.0004584789276123047, -0.0010051727294921875, 0.004611968994140625, 0.0296783447265625, -0.0360107421875, -0.001461029052734375, -0.033447265625, 0.034332275390625, -0.0677490234375, 0.0291290283203125, 0.0137176513671875, -0.0205230712890625, -0.027984619140625, -0.0108184814453125, 0.001514434814453125, -0.091552734375, 0.00811767578125, 0.0677490234375, 0.0005698204040527344, 0.01580810546875, -0.011505126953125, 0.05035400390625, 0.054229736328125, 0.01508331298828125, 0.006893157958984375, 0.0322265625, -0.0081939697265625, 0.042236328125, 0.03509521484375, 0.03363037109375, 0.006458282470703125, 0.0087738037109375, 0.0183258056640625, 0.0186920166015625, -0.029754638671875, -0.02532958984375, -0.0001036524772644043, -0.006580352783203125, 0.01316070556640625, -0.060333251953125, -0.0291748046875, -0.023773193359375, 0.050750732421875, 0.0089111328125, 0.0540771484375, 0.036651611328125, -0.014068603515625, 0.00006538629531860352, 0.0013370513916015625, -0.0244598388671875, -0.0022068023681640625, 0.0244598388671875, 0.0173187255859375, 0.00615692138671875, -0.037841796875, 0.0006127357482910156, 0.010650634765625, 0.016571044921875, -0.0036792755126953125, 0.016876220703125, -0.05401611328125, -0.01009368896484375, -0.0005583763122558594, -0.0577392578125, -0.00998687744140625, 0.040191650390625, -0.048583984375, -0.05718994140625, -0.01398468017578125, -0.00238800048828125, -0.05804443359375, 0.0161285400390625, 0.008270263671875, -0.021148681640625, -0.04278564453125, -0.03741455078125, 0.02459716796875, -0.039764404296875, 0.021575927734375, 0.052215576171875, 0.00803375244140625, -0.0023670196533203125, 0.015838623046875, -0.02984619140625, 0.01357269287109375, 0.0129547119140625, 0.00782012939453125, -0.0283660888671875, -0.0071563720703125, 0.046142578125, 0.0224151611328125, 0.0014019012451171875, 0.0170745849609375, -0.026641845703125, -0.00316619873046875, 0.0204925537109375, -0.0287628173828125, -0.0106048583984375, 0.031585693359375, 0.0029392242431640625, -0.0179443359375, -0.00957489013671875, -0.00899505615234375, -0.006839752197265625, -0.0194549560546875, -0.01251220703125, 0.04766845703125, -0.04156494140625, -0.037445068359375, -0.0638427734375, -0.06829833984375, -0.0775146484375, 0.01617431640625, -0.008544921875, 0.0218963623046875, 0.07440185546875, 0.0272216796875, -0.04034423828125, 0.06439208984375, -0.024810791015625, -0.0208892822265625, 0.07171630859375, 0.032989501953125, -0.032806396484375, 0.0308837890625, 0.00206756591796875, 0.007755279541015625, 0.05328369140625, -0.03887939453125, -0.01505279541015625, -0.0213470458984375, -0.005695343017578125, 0.00830078125, 0.007579803466796875, 0.0152435302734375, -0.0008654594421386719, 0.01204681396484375, -0.048004150390625, 0.0174560546875, 0.0278472900390625, 0.0295562744140625, -0.03656005859375, -0.07232666015625, -0.031280517578125, -0.01220703125, 0.046905517578125, -0.044677734375, -0.00791168212890625, -0.00386810302734375, -0.032135009765625, 0.04376220703125, -0.0136871337890625, -0.031524658203125, 0.002361297607421875, -0.036346435546875, -0.037078857421875, 0.0183258056640625, -0.026153564453125, 0.0254058837890625, -0.0133819580078125, 0.0303955078125, -0.049224853515625, -0.087158203125, 0.049468994140625, -0.0526123046875, -0.00868988037109375, -0.0472412109375, -0.0233306884765625, 0.005344390869140625, 0.1268310546875, -0.052703857421875, -0.00677490234375, 0.00623321533203125, 0.007476806640625, 0.0283966064453125, -0.01435089111328125, -0.037811279296875, -0.04278564453125, -0.0195465087890625, -0.0037517547607421875, 0.0016565322875976562, -0.0142059326171875, -0.04071044921875, 0.03692626953125, -0.043121337890625, -0.00897979736328125, 0.0413818359375, -0.05706787109375, 0.01296234130859375, 0.01654052734375, 0.0113677978515625, -0.023345947265625, -0.0323486328125, -0.021453857421875, -0.089599609375, -0.002681732177734375, -0.039276123046875, 0.04443359375, 0.0024433135986328125, 0.0067138671875, -0.01103973388671875, 0.0263671875, 0.041900634765625, 0.006900787353515625, 0.00274658203125, -0.0155792236328125, -0.00756072998046875, -0.02203369140625, 0.00437164306640625, -0.021881103515625, -0.016754150390625, -0.0236053466796875, -0.0084991455078125, 0.0391845703125, -0.0177001953125, 0.0298919677734375, -0.02471923828125, -0.0114288330078125, -0.0276947021484375, -0.0036487579345703125, -0.03973388671875, -0.0038909912109375, -0.0153656005859375, -0.01317596435546875, -0.0120086669921875, -0.0291748046875, 0.0079193115234375, -0.022918701171875, -0.01904296875, 0.026153564453125, 0.06866455078125, 0.0169677734375, 0.006404876708984375, -0.05255126953125, 0.0206298828125, 0.01323699951171875, 0.01617431640625, 0.0230560302734375, 0.01068878173828125, 0.00879669189453125, -0.00925445556640625, -0.008697509765625, -0.0252227783203125, -0.0218048095703125, 0.055450439453125, 0.0154876708984375, 0.0121002197265625, -0.016632080078125, -0.0380859375, 0.07763671875, -0.00786590576171875, -0.0187835693359375, -0.0222930908203125, 0.00894927978515625, 0.042572021484375, -0.035919189453125, 0.06585693359375, -0.0226898193359375, -0.0263671875, 0.033172607421875, 0.0011491775512695312, 0.00019288063049316406, 0.01062774658203125, -0.01513671875, -0.0131683349609375, -0.07257080078125, 0.0007662773132324219, 0.0294342041015625, 0.0234527587890625, 0.00872802734375, 0.033416748046875, 0.00916290283203125, 0.0006136894226074219, -0.016815185546875, 0.0026645660400390625, 0.007488250732421875, -0.005863189697265625, -0.048248291015625, -0.0106658935546875, 0.005008697509765625, 0.023193359375, 0.016448974609375, 0.01436614990234375, 0.04779052734375, 0.03692626953125, 0.01462554931640625, -0.0205841064453125, -0.034820556640625, 0.034912109375, -0.037628173828125, -0.018341064453125, 0.01222991943359375, -0.0199127197265625, 0.01155853271484375, 0.0178985595703125, -0.005199432373046875, 0.00640869140625, -0.0109710693359375, 0.056427001953125, 0.029541015625, 0.02264404296875, 0.010284423828125, 0.0014543533325195312, -0.01006317138671875, 0.0057525634765625, -0.0428466796875, -0.0266876220703125, 0.00212860107421875, -0.0197296142578125, 0.0227508544921875, -0.04498291015625, -0.038604736328125, 0.0665283203125, -0.0255889892578125, -0.0094451904296875, -0.0309295654296875, -0.024749755859375, -0.01605224609375, 0.00792694091796875, 0.03546142578125, 0.0156097412109375, -0.00792694091796875, 0.002079010009765625, 0.00806427001953125, -0.0160675048828125, 0.0538330078125, -0.072509765625, 0.04718017578125, -0.02679443359375, -0.02410888671875, -0.037200927734375, -0.01197052001953125, 0.0015478134155273438, -0.031585693359375, -0.037384033203125, 0.006473541259765625, -0.0201416015625, 0.01153564453125, 0.00350189208984375, 0.0233306884765625, -0.0188446044921875, -0.0169677734375, 0.01812744140625, -0.00775146484375, 0.04931640625, -0.013336181640625, -0.0189666748046875, -0.0015316009521484375, -0.040008544921875, -0.00624847412109375, -0.0216522216796875, -0.05633544921875, -0.01177978515625, -0.005031585693359375, 0.0225982666015625, 0.0219573974609375, -0.0093536376953125, -0.03759765625, -0.0088348388671875, 0.00502777099609375, 0.0159454345703125, 0.00274658203125, 0.0080413818359375, 0.0293731689453125, 0.01611328125, 0.03570556640625, 0.02374267578125, 0.00240325927734375, -0.0309906005859375, -0.019134521484375, -0.0257720947265625, -0.10296630859375, -0.0031986236572265625, 0.0190887451171875, -0.047760009765625, 0.0849609375, 0.0496826171875, 0.0191802978515625, 0.03619384765625, -0.0175323486328125, 0.0013017654418945312, -0.0159149169921875, 0.00150299072265625, -0.0246429443359375, 0.029510498046875, 0.0189208984375, -0.01092529296875, 0.0224609375, -0.003383636474609375, 0.01300811767578125, 0.00653076171875, -0.020751953125, 0.0192413330078125, 0.004993438720703125, -0.0174407958984375, 0.0127410888671875, -0.007144927978515625, 0.015777587890625, 0.017486572265625, -0.022125244140625, 0.0216064453125, -0.0157318115234375, 0.0089111328125, -0.05462646484375, -0.011505126953125, 0.035003662109375, 0.01351165771484375, -0.02130126953125, 0.029632568359375, -0.0267486572265625, -0.00035309791564941406, 0.052825927734375, 0.061309814453125, -0.0931396484375, 0.004123687744140625, 0.0218048095703125, 0.010223388671875, 0.01873779296875, 0.0151519775390625, 0.0128631591796875, 0.018402099609375, -0.0249481201171875, -0.001346588134765625, -0.0217742919921875, -0.0081329345703125, 0.00937652587890625, -0.0222015380859375, -0.01479339599609375, -0.00507354736328125, 0.019989013671875, 0.024169921875, 0.0174407958984375, -0.01715087890625, 0.004474639892578125, -0.01336669921875, 0.031982421875, -0.011871337890625, 0.0167999267578125, -0.0069427490234375, 0.0633544921875, -0.0260772705078125, 0.021759033203125, 0.006389617919921875, -0.0168609619140625, 0.026824951171875, 0.0248565673828125, -0.01397705078125, -0.00023877620697021484, -0.004924774169921875, -0.0212249755859375, -0.006229400634765625, -0.01412200927734375, -0.001007080078125, 0.00795745849609375, -0.0273590087890625, 0.0106964111328125, -0.029327392578125, -0.013946533203125, -0.0181884765625, -0.0281219482421875, 0.064208984375, -0.055450439453125, 0.01328277587890625, 0.030426025390625, 0.0295257568359375, -0.0036029815673828125, -0.0054168701171875, -0.0007529258728027344, -0.0276336669921875, -0.0160064697265625, -0.0127105712890625, -0.042633056640625, 0.004726409912109375, -0.0141754150390625, -0.054656982421875, 0.10919189453125, 0.00469207763671875, -0.01165008544921875, -0.0014677047729492188, 0.048095703125, -0.037506103515625, 0.03515625, -0.0113067626953125, 0.03125, -0.021820068359375, 0.010345458984375, -0.0208892822265625, 0.007030487060546875, -0.00579833984375, 0.021942138671875, 0.07672119140625, 0.0134735107421875, 0.002559661865234375, -0.0084991455078125, 0.03985595703125, 0.0094146728515625, -0.045684814453125, 0.024932861328125, -0.00588226318359375, -0.00872039794921875, 0.01197052001953125, 0.002246856689453125, 0.03558349609375, 0.00682830810546875, -0.038360595703125, 0.0189056396484375, 0.002391815185546875, 0.0009579658508300781, -0.0061187744140625, -0.035736083984375, -0.024017333984375, -0.003917694091796875, 0.0024166107177734375, 0.01528167724609375, -0.00917816162109375, 0.0145263671875, -0.02947998046875, 0.035003662109375, 0.06329345703125, -0.0271759033203125, 0.032867431640625, -0.027435302734375, 0.03900146484375, 0.01325225830078125, 0.00887298583984375, 0.0626220703125, -0.0218505859375, 0.0190887451171875, 0.01290130615234375, -0.024749755859375, 0.037689208984375, 0.00681304931640625, 0.028900146484375, -0.04010009765625, -0.0009508132934570312, 0.0121612548828125, 0.041748046875, -0.033660888671875, -0.02960205078125, 0.0256195068359375, 0.0467529296875, -0.005466461181640625, 0.0196685791015625, 0.031951904296875, -0.012176513671875, 0.049407958984375, -0.07073974609375, -0.0230560302734375, 0.0162506103515625, 0.04681396484375, -0.015167236328125, -0.021270751953125, -0.029754638671875, -0.05682373046875, -0.06378173828125, 0.018035888671875, 0.0136260986328125, 0.10107421875, 0.032470703125, 0.1065673828125, -0.0428466796875, -0.05523681640625, 0.013397216796875, 0.00437164306640625, 0.01416778564453125, -0.030975341796875, 0.01076507568359375, -0.032318115234375, 0.0171661376953125, 0.0127105712890625, 0.0007586479187011719, 0.0198822021484375, 0.039398193359375, 0.053497314453125, 0.01306915283203125, -0.019866943359375, 0.056976318359375, 0.0005741119384765625, 0.01544189453125, -0.06317138671875, 0.037628173828125, 0.01898193359375, 0.006862640380859375, 0.01303863525390625, -0.034912109375, 0.057891845703125, -0.0002110004425048828, 0.0159759521484375, 0.0064239501953125, -0.03729248046875, 0.06353759765625, 0.00556182861328125, 0.1036376953125, 0.029754638671875, -0.07489013671875, -0.0262451171875, -0.051055908203125, -0.0467529296875, 0.060028076171875, 0.04534912109375, -0.0258331298828125, 0.016998291015625, 0.034820556640625, -0.038238525390625, -0.0117950439453125, 0.042724609375, 0.0133514404296875, 0.0104827880859375, 0.019287109375, 0.01232147216796875, -0.02020263671875, -0.0166778564453125, 0.0002605915069580078, 0.03045654296875, 0.0168914794921875, 0.0382080078125, -0.01168060302734375, 0.03021240234375, -0.051300048828125, 0.048126220703125, -0.0498046875, -0.0206146240234375, 0.0153350830078125, 0.0382080078125, 0.0019817352294921875, -0.01023101806640625, -0.047760009765625, 0.0301361083984375, 0.032470703125, -0.030914306640625, 0.0362548828125, -0.00604248046875, 0.0012187957763671875, -0.0433349609375, 0.04443359375, -0.0144805908203125, 0.0010089874267578125, -0.037933349609375, -0.034576416015625, 0.045013427734375, 0.01800537109375, 0.00336456298828125, 0.0099029541015625, 0.0001983642578125, -0.0273590087890625, 0.019500732421875, -0.00836944580078125, 0.0150146484375, 0.02410888671875, -0.01233673095703125, -0.03546142578125, 0.02886962890625, -0.01300048828125, 0.0069427490234375, 0.00957489013671875, 0.035858154296875, 0.0256500244140625, -0.0621337890625, -0.01678466796875, 0.004589080810546875, 0.0175628662109375, -0.0269622802734375, 0.005107879638671875, -0.00675201416015625, -0.018798828125, 0.024139404296875, 0.01024627685546875, -0.0232086181640625, -0.03668212890625, -0.0213470458984375, 0.0014743804931640625, -0.02117919921875, -0.0394287109375, -0.044342041015625, 0.008575439453125, 0.06536865234375, 0.0026702880859375, -0.030548095703125, -0.005329132080078125, -0.035003662109375, 0.051605224609375, 0.032135009765625, -0.08856201171875, 0.03216552734375, 0.06414794921875, 0.002651214599609375, -0.01617431640625, -0.03704833984375, -0.02349853515625, -0.036407470703125, 0.0225372314453125, 0.00677490234375, -0.0384521484375, 0.022308349609375, 0.05035400390625, 0.045562744140625, 0.09539794921875, 0.05078125, -0.0218353271484375, 0.01085662841796875, -0.006298065185546875, -0.018310546875, -0.046173095703125, 0.00919342041015625, -0.07269287109375, -0.0278167724609375, -0.03662109375, 0.024505615234375, 0.03070068359375, -0.02435302734375, -0.08172607421875, 0.057464599609375, -0.02801513671875, -0.0311126708984375, -0.08392333984375, 0.0281524658203125, 0.0007710456848144531, 0.006103515625, -0.030731201171875, -0.0037689208984375, -0.0133209228515625, 0.041900634765625, 0.00844573974609375, 0.04534912109375, 0.0163421630859375, -0.0215301513671875, -0.013885498046875, 0.0134429931640625, 0.01036834716796875, 0.02398681640625, 0.03265380859375, -0.025665283203125, 0.0205078125, 0.035369873046875, -0.047515869140625, -0.0283355712890625, -0.029052734375, -0.0016927719116210938, -0.017974853515625, -0.072998046875, 0.006618499755859375, -0.0237579345703125, 0.049468994140625, -0.036529541015625, 0.0082550048828125, -0.00656890869140625, -0.03326416015625, -0.0280303955078125, -0.0345458984375, -0.01092529296875, 0.02813720703125, -0.0728759765625, 0.005954742431640625, 0.0263214111328125, 0.022125244140625, -0.042999267578125, 0.00945281982421875, -0.00603485107421875, -0.031524658203125, 0.01537322998046875, 0.00032639503479003906, -0.031341552734375, 0.0711669921875, -0.0430908203125, 0.00640106201171875, -0.010101318359375, -0.0177001953125, -0.028106689453125, -0.03302001953125, 0.005519866943359375, -0.0091094970703125, -0.00939178466796875, 0.008087158203125, -0.0003943443298339844, 0.00966644287109375, 0.0087432861328125, 0.0155029296875, 0.007740020751953125, -0.01158905029296875, 0.03363037109375, 0.016326904296875, 0.039947509765625, -0.0377197265625, 0.080810546875, 0.0254058837890625, 0.0279541015625, 0.0028362274169921875, 0.0164947509765625, -0.01470947265625, 0.03021240234375, -0.03155517578125, 0.0075836181640625, -0.014373779296875, -0.0008378028869628906, -0.0017538070678710938, 0.004058837890625, -0.00746917724609375, -0.035858154296875, 0.0390625, -0.01396942138671875, 0.00533294677734375, 0.0260009765625 ]
f111ef8fdebcb0baa2f1f5e2c81beab2e3d5e2ed
Wordpress Stackexchange Q: How to get current page ID outside the loop? How to get current page ID outside the loop? A: You can simply do, $page_id = get_queried_object_id();
Q: How to get current page ID outside the loop? How to get current page ID outside the loop? A: You can simply do, $page_id = get_queried_object_id(); A: Try global $post; echo $post->ID; or (I don't know the difference) global $wp_query; echo $wp_query->post->ID; A: For those of you who this still isn't working for, you will need to use some sort of add_action (you can choose which one you want to use). For my example, this will return the current page ID without any problems, regardless of whether in a plugin folder, functions php, or elsewhere. add_action('template_redirect', 'showid'); function showid(){ global $wp_query; $theid = intval($wp_query->queried_object->ID); echo $theid; } Good luck and happy coding! A: Outside the loop: $current_page = get_page_by_path($_SERVER['REQUEST_URI']); if(isset($current_page->ID)) { $current_page_id = $current_page->ID; } A: Outside the loop : //remember to call wp_reset_postdata(); after while loop // otherwise you will get wrong id. global $post; $post_id = $post->ID; Inside the loop: while (have_posts()) { the_post(); $post_id = the_ID(); }
wordpress
{ "language": "en", "length": 161, "provenance": "stackexchange_00019.jsonl.gz:448942", "question_score": "56", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161711" }
[ 0.051025390625, -0.0032329559326171875, 0.0104827880859375, -0.010223388671875, 0.0175018310546875, -0.03094482421875, 0.04168701171875, -0.0184173583984375, 0.02349853515625, -0.00493621826171875, -0.046630859375, 0.0008816719055175781, -0.053436279296875, -0.01116943359375, -0.006443023681640625, -0.049560546875, 0.036407470703125, -0.03302001953125, 0.020477294921875, -0.00836181640625, -0.006656646728515625, -0.004802703857421875, 0.04754638671875, 0.03778076171875, 0.05694580078125, -0.072509765625, -0.00933837890625, 0.0098876953125, 0.006519317626953125, -0.0202789306640625, 0.018890380859375, 0.03314208984375, -0.00005817413330078125, -0.000720977783203125, 0.01239013671875, -0.0258026123046875, -0.01044464111328125, 0.01318359375, 0.0374755859375, -0.01702880859375, 0.033355712890625, -0.0134124755859375, 0.0025348663330078125, 0.00916290283203125, -0.045745849609375, -0.011199951171875, 0.01751708984375, -0.00460052490234375, 0.00952911376953125, 0.043121337890625, 0.00124359130859375, 0.026336669921875, -0.0133819580078125, 0.0701904296875, -0.00605010986328125, -0.020050048828125, 0.0858154296875, -0.07098388671875, 0.0556640625, -0.07476806640625, -0.07464599609375, -0.021636962890625, 0.080078125, -0.0100555419921875, 0.006443023681640625, 0.00371551513671875, 0.002716064453125, 0.024993896484375, -0.025543212890625, -0.006992340087890625, 0.00948333740234375, -0.019500732421875, -0.00640106201171875, 0.0035400390625, -0.030059814453125, -0.037811279296875, 0.044677734375, -0.029510498046875, -0.0169830322265625, 0.02398681640625, -0.058013916015625, -0.01346588134765625, -0.11663818359375, 0.03814697265625, -0.0445556640625, 0.048919677734375, -0.0289764404296875, -0.00582122802734375, -0.0121917724609375, -0.0027751922607421875, -0.0304107666015625, 0.0297088623046875, 0.021514892578125, -0.0228118896484375, -0.06866455078125, -0.0161590576171875, 0.0219573974609375, 0.07244873046875, -0.033447265625, 0.013397216796875, -0.00782012939453125, -0.0220794677734375, 0.00927734375, -0.042022705078125, 0.0033206939697265625, 0.01055145263671875, 0.022186279296875, 0.0060272216796875, 0.0230255126953125, 0.0018453598022460938, -0.0341796875, 0.031982421875, 0.0016927719116210938, -0.0144500732421875, -0.029815673828125, 0.01377105712890625, -0.0135650634765625, -0.00794219970703125, 0.0007452964782714844, -0.0173187255859375, 0.0074615478515625, 0.0272674560546875, 0.00466156005859375, -0.0068359375, 0.00389862060546875, 0.0163116455078125, 0.0008168220520019531, -0.045867919921875, 0.004364013671875, 0.04034423828125, -0.03607177734375, -0.0194091796875, 0.038421630859375, 0.0323486328125, 0.00852203369140625, -0.0313720703125, 0.01412200927734375, -0.021392822265625, 0.00928497314453125, 0.01308441162109375, -0.006641387939453125, -0.040618896484375, -0.006130218505859375, -0.00039887428283691406, -0.037750244140625, 0.023468017578125, 0.004486083984375, 0.0226898193359375, -0.02496337890625, -0.0572509765625, 0.01322174072265625, -0.0406494140625, -0.01457977294921875, 0.00859832763671875, 0.06365966796875, -0.03546142578125, 0.0254669189453125, -0.03704833984375, 0.067626953125, -0.003910064697265625, 0.03753662109375, 0.0155181884765625, 0.03961181640625, 0.006320953369140625, -0.0240631103515625, -0.023834228515625, -0.0611572265625, -0.0237884521484375, 0.0193328857421875, 0.077392578125, 0.0298004150390625, -0.0115203857421875, 0.0018815994262695312, 0.00754547119140625, -0.0217742919921875, -0.01324462890625, -0.003299713134765625, -0.0262603759765625, -0.00415802001953125, 0.0135345458984375, -0.024200439453125, -0.052490234375, -0.0472412109375, 0.0164031982421875, -0.041839599609375, 0.049774169921875, 0.01383209228515625, 0.06494140625, -0.0013399124145507812, 0.012481689453125, 0.016876220703125, 0.0232086181640625, -0.07574462890625, 0.0298919677734375, 0.0131988525390625, 0.00537109375, 0.007282257080078125, 0.02154541015625, 0.003887176513671875, -0.059173583984375, -0.0101776123046875, 0.0003135204315185547, -0.006549835205078125, 0.0201263427734375, 0.0018463134765625, -0.007556915283203125, -0.004425048828125, 0.01378631591796875, 0.055816650390625, -0.01873779296875, -0.010498046875, -0.039306640625, 0.02685546875, -0.047454833984375, -0.083251953125, 0.0267333984375, 0.0014333724975585938, -0.0240936279296875, 0.00003975629806518555, -0.00856781005859375, -0.019256591796875, 0.02850341796875, -0.027862548828125, 0.00811767578125, 0.072509765625, -0.018310546875, -0.0274810791015625, -0.0594482421875, 0.03887939453125, -0.01395416259765625, -0.068359375, 0.047576904296875, 0.0203704833984375, 0.0290374755859375, -0.0080718994140625, -0.00432586669921875, -0.00177001953125, -0.07000732421875, 0.0103302001953125, 0.0452880859375, 0.0269012451171875, 0.035675048828125, -0.00042128562927246094, 0.006847381591796875, 0.052093505859375, -0.03118896484375, 0.0021266937255859375, -0.011016845703125, 0.0214080810546875, 0.04754638671875, 0.0010175704956054688, 0.031341552734375, 0.0179901123046875, 0.01715087890625, 0.004070281982421875, 0.037261962890625, -0.018157958984375, 0.01363372802734375, -0.03753662109375, 0.0244598388671875, 0.00038051605224609375, -0.004467010498046875, -0.0008602142333984375, -0.01654052734375, 0.01959228515625, 0.005458831787109375, 0.05926513671875, 0.0484619140625, 0.0192108154296875, -0.04730224609375, -0.0083160400390625, -0.0007624626159667969, 0.00791168212890625, 0.0286102294921875, -0.0216827392578125, -0.01308441162109375, -0.01369476318359375, -0.0030384063720703125, -0.002979278564453125, 0.00445556640625, -0.00846099853515625, -0.0009274482727050781, 0.0036640167236328125, -0.01715087890625, 0.0191192626953125, -0.0027027130126953125, -0.00594329833984375, -0.0211944580078125, -0.012786865234375, -0.0155487060546875, -0.004222869873046875, 0.05853271484375, -0.0308074951171875, 0.0625, -0.0294952392578125, -0.00562286376953125, 0.0178070068359375, -0.00438690185546875, 0.00954437255859375, -0.0245208740234375, 0.042633056640625, 0.045745849609375, -0.041900634765625, 0.0269775390625, 0.004856109619140625, -0.045318603515625, 0.0246429443359375, -0.0177459716796875, 0.003978729248046875, 0.034271240234375, -0.06494140625, 0.041473388671875, 0.011962890625, 0.05364990234375, -0.007305145263671875, -0.044219970703125, 0.0005702972412109375, 0.01788330078125, -0.0933837890625, -0.10504150390625, 0.044219970703125, -0.056488037109375, -0.037139892578125, -0.035736083984375, -0.043701171875, 0.0197906494140625, -0.0164031982421875, -0.0180206298828125, 0.024932861328125, -0.06304931640625, -0.0780029296875, -0.083251953125, -0.09356689453125, 0.003963470458984375, -0.00173187255859375, 0.016845703125, 0.0002053976058959961, 0.00537872314453125, 0.0018157958984375, -0.019775390625, -0.020111083984375, 0.006587982177734375, -0.0205535888671875, -0.055389404296875, -0.057708740234375, 0.0035533905029296875, -0.021728515625, 0.02215576171875, -0.032958984375, -0.037445068359375, 0.051177978515625, -0.00643157958984375, -0.0364990234375, -0.005695343017578125, 0.00927734375, 0.00330352783203125, 0.031646728515625, 0.02886962890625, 0.028167724609375, -0.01617431640625, -0.042022705078125, -0.002239227294921875, -0.0499267578125, -0.00408935546875, 0.0260162353515625, -0.00044083595275878906, 0.01401519775390625, -0.0008578300476074219, -0.0028400421142578125, -0.0210723876953125, -0.07366943359375, -0.00769805908203125, 0.041229248046875, 0.004283905029296875, 0.0499267578125, 0.04388427734375, 0.049896240234375, -0.0024280548095703125, 0.0036163330078125, 0.031280517578125, 0.035919189453125, 0.0267181396484375, -0.010498046875, -0.01355743408203125, -0.045928955078125, 0.050628662109375, 0.02166748046875, 0.031646728515625, -0.01824951171875, -0.053070068359375, 0.02423095703125, 0.12548828125, -0.0411376953125, -0.0263519287109375, -0.01273345947265625, 0.0001798868179321289, -0.00589752197265625, -0.01500701904296875, -0.0237884521484375, -0.0255889892578125, -0.0203399658203125, 0.01367950439453125, -0.02264404296875, 0.008575439453125, -0.02252197265625, 0.0423583984375, -0.00197601318359375, -0.0295562744140625, 0.019500732421875, -0.0341796875, -0.00017595291137695312, 0.0312347412109375, -0.021148681640625, 0.0139007568359375, -0.0303192138671875, -0.0191192626953125, -0.06939697265625, -0.0019969940185546875, -0.035888671875, 0.056060791015625, 0.01751708984375, 0.0200042724609375, -0.0204925537109375, 0.0238189697265625, -0.01125335693359375, 0.0013628005981445312, 0.01502227783203125, 0.0165557861328125, 0.0162200927734375, 0.025787353515625, 0.00890350341796875, -0.021881103515625, -0.00494384765625, -0.0281982421875, -0.01445770263671875, -0.01007080078125, -0.046295166015625, -0.0208282470703125, -0.038299560546875, -0.0026607513427734375, -0.055908203125, -0.0290679931640625, 0.0238037109375, 0.0182952880859375, -0.0211334228515625, 0.022613525390625, -0.0161590576171875, -0.0250091552734375, 0.0758056640625, 0.05511474609375, -0.002887725830078125, -0.0219573974609375, 0.060150146484375, 0.01861572265625, -0.059112548828125, -0.0227203369140625, -0.0379638671875, 0.025390625, -0.0101470947265625, 0.045745849609375, 0.0265655517578125, -0.01806640625, 0.06591796875, 0.0026226043701171875, -0.041534423828125, 0.01509857177734375, 0.0574951171875, -0.00823974609375, -0.03363037109375, 0.013214111328125, -0.066650390625, 0.02288818359375, 0.0106353759765625, -0.054901123046875, 0.002414703369140625, -0.0182037353515625, 0.04193115234375, -0.054168701171875, 0.0640869140625, -0.0286712646484375, -0.05206298828125, 0.011962890625, 0.00333404541015625, 0.0263214111328125, 0.028717041015625, -0.005069732666015625, 0.046600341796875, 0.036956787109375, 0.01904296875, 0.0251312255859375, 0.01172637939453125, 0.01678466796875, 0.039215087890625, 0.008392333984375, 0.02716064453125, -0.00179290771484375, -0.003292083740234375, 0.058837890625, -0.032073974609375, -0.029510498046875, -0.0004658699035644531, -0.0220184326171875, -0.0538330078125, 0.045989990234375, -0.0068511962890625, 0.0176849365234375, 0.00823211669921875, -0.0176239013671875, -0.01446533203125, -0.01027679443359375, -0.0076141357421875, -0.035369873046875, -0.0018444061279296875, -0.0231475830078125, 0.00460052490234375, -0.0006985664367675781, 0.09808349609375, -0.0240478515625, 0.05279541015625, -0.0253143310546875, 0.0211029052734375, 0.01212310791015625, 0.008270263671875, -0.0014543533325195312, 0.0162200927734375, 0.037841796875, -0.0237274169921875, 0.042236328125, -0.020843505859375, -0.01558685302734375, 0.0191497802734375, 0.0259857177734375, -0.0030574798583984375, -0.0029773712158203125, 0.003940582275390625, 0.004680633544921875, -0.016387939453125, 0.03997802734375, 0.033111572265625, -0.041168212890625, -0.030120849609375, 0.0012311935424804688, 0.0238494873046875, 0.011505126953125, 0.00878143310546875, -0.0026493072509765625, -0.0022182464599609375, -0.0043182373046875, -0.035675048828125, -0.017333984375, -0.0182342529296875, 0.005950927734375, -0.024139404296875, 0.000050067901611328125, -0.00722503662109375, -0.016265869140625, -0.0355224609375, -0.00392913818359375, -0.02069091796875, 0.0238189697265625, -0.0033550262451171875, 0.06640625, -0.038421630859375, -0.023529052734375, 0.0007109642028808594, -0.0177154541015625, 0.059967041015625, 0.031341552734375, -0.0027103424072265625, 0.00467681884765625, -0.06390380859375, -0.0252532958984375, 0.002105712890625, -0.04852294921875, -0.023345947265625, -0.033843994140625, 0.02740478515625, 0.03302001953125, 0.0208587646484375, 0.0016489028930664062, -0.01152801513671875, 0.0081787109375, 0.0017299652099609375, 0.051513671875, 0.0023021697998046875, 0.06939697265625, -0.004070281982421875, 0.03662109375, 0.0276641845703125, 0.044525146484375, -0.029693603515625, -0.021270751953125, -0.01270294189453125, -0.0011463165283203125, 0.01165008544921875, 0.0172576904296875, 0.00809478759765625, -0.031005859375, -0.01448822021484375, 0.01122283935546875, -0.0010747909545898438, -0.00659942626953125, 0.00750732421875, -0.0181427001953125, 0.0212249755859375, -0.0071563720703125, -0.014404296875, 0.028839111328125, -0.005962371826171875, -0.062103271484375, 0.0202484130859375, 0.037750244140625, -0.054718017578125, 0.0297088623046875, -0.058624267578125, -0.01180267333984375, -0.04888916015625, 0.05322265625, 0.07342529296875, -0.0171661376953125, 0.019989013671875, 0.01508331298828125, -0.0059356689453125, 0.0091094970703125, 0.02862548828125, -0.038604736328125, -0.026611328125, 0.08209228515625, 0.042236328125, -0.042816162109375, 0.06817626953125, -0.048858642578125, 0.01378631591796875, 0.004711151123046875, 0.05584716796875, -0.053253173828125, 0.0211639404296875, 0.01288604736328125, -0.0132293701171875, 0.005405426025390625, 0.0165557861328125, 0.0054473876953125, 0.004795074462890625, 0.033233642578125, -0.01824951171875, -0.004474639892578125, 0.0192108154296875, 0.00045418739318847656, -0.01189422607421875, -0.041900634765625, 0.0419921875, 0.018798828125, -0.007129669189453125, 0.018646240234375, 0.00021576881408691406, 0.018646240234375, -0.031494140625, 0.0232086181640625, -0.0013151168823242188, -0.00026726722717285156, -0.02032470703125, 0.05914306640625, -0.00501251220703125, 0.02008056640625, 0.01910400390625, 0.0266571044921875, 0.0015172958374023438, 0.0386962890625, 0.0140533447265625, -0.0167388916015625, 0.0025043487548828125, -0.020721435546875, 0.0295867919921875, -0.0030651092529296875, -0.0110931396484375, -0.01497650146484375, -0.0232696533203125, -0.0102386474609375, -0.042755126953125, 0.0037822723388671875, -0.0177154541015625, 0.0023956298828125, 0.06939697265625, -0.04681396484375, -0.0136871337890625, 0.03558349609375, 0.046417236328125, -0.036102294921875, -0.005634307861328125, -0.0206756591796875, -0.00007051229476928711, 0.036407470703125, -0.0058135986328125, 0.032928466796875, 0.016448974609375, -0.0126495361328125, -0.042938232421875, 0.0634765625, -0.01163482666015625, 0.0130615234375, 0.04522705078125, 0.0104217529296875, -0.033355712890625, -0.0131072998046875, -0.0238800048828125, 0.02484130859375, -0.01222991943359375, 0.0265350341796875, -0.0285797119140625, -0.01375579833984375, 0.00632476806640625, 0.030609130859375, 0.04522705078125, 0.00580596923828125, 0.00614166259765625, -0.003887176513671875, 0.0287933349609375, 0.049652099609375, -0.0090179443359375, 0.0027294158935546875, 0.037200927734375, 0.0261688232421875, 0.060943603515625, -0.040313720703125, 0.0213470458984375, -0.0204315185546875, 0.050933837890625, 0.05438232421875, 0.0204620361328125, 0.0020294189453125, 0.019927978515625, 0.0009665489196777344, -0.039642333984375, 0.0153350830078125, 0.0181427001953125, 0.0159454345703125, 0.0029010772705078125, 0.04248046875, 0.0230712890625, -0.046600341796875, -0.0038738250732421875, -0.037933349609375, 0.0360107421875, -0.01055145263671875, -0.0203399658203125, 0.03765869140625, 0.0190582275390625, 0.0523681640625, -0.020294189453125, -0.011566162109375, 0.00937652587890625, 0.01152801513671875, 0.047760009765625, 0.041168212890625, 0.01617431640625, -0.03265380859375, 0.005397796630859375, 0.033660888671875, 0.06103515625, -0.040069580078125, 0.0235137939453125, 0.029937744140625, 0.005008697509765625, -0.01114654541015625, -0.0259246826171875, 0.0294952392578125, 0.0267791748046875, -0.00202178955078125, -0.014923095703125, -0.0244598388671875, -0.0003757476806640625, 0.04571533203125, 0.00411224365234375, -0.01039886474609375, -0.0540771484375, -0.051971435546875, -0.049468994140625, -0.0025157928466796875, 0.01299285888671875, 0.0379638671875, 0.040496826171875, 0.0263214111328125, -0.0008339881896972656, -0.01898193359375, 0.005222320556640625, 0.019927978515625, 0.007251739501953125, 0.0081634521484375, -0.032196044921875, -0.0186309814453125, -0.00843048095703125, 0.04522705078125, 0.033416748046875, 0.00548553466796875, 0.0273284912109375, -0.01611328125, -0.0262603759765625, 0.007678985595703125, 0.0179595947265625, -0.03125, 0.038665771484375, -0.041961669921875, 0.0118255615234375, 0.00788116455078125, -0.00868988037109375, -0.01145172119140625, -0.019500732421875, 0.05731201171875, 0.0052490234375, 0.0343017578125, 0.002040863037109375, -0.011627197265625, -0.0021648406982421875, -0.03143310546875, 0.029449462890625, 0.015594482421875, -0.11053466796875, -0.0180206298828125, -0.051513671875, 0.01371002197265625, 0.030914306640625, 0.02978515625, 0.01113128662109375, 0.004627227783203125, 0.002887725830078125, 0.01715087890625, -0.0012254714965820312, -0.0034389495849609375, 0.0025844573974609375, 0.021942138671875, 0.03240966796875, 0.020050048828125, -0.054229736328125, -0.0255584716796875, 0.0035800933837890625, -0.003559112548828125, 0.01520538330078125, -0.0279541015625, 0.04461669921875, 0.00274658203125, 0.01396942138671875, 0.01207733154296875, -0.01416015625, 0.01062774658203125, 0.010040283203125, 0.01044464111328125, 0.0269927978515625, -0.0159149169921875, -0.03851318359375, 0.07659912109375, -0.010223388671875, 0.03924560546875, 0.052032470703125, -0.037200927734375, 0.01076507568359375, 0.0244140625, 0.01357269287109375, -0.01056671142578125, -0.005535125732421875, 0.0406494140625, 0.013458251953125, 0.016265869140625, 0.01148223876953125, -0.0254058837890625, 0.014556884765625, -0.007633209228515625, -0.00849151611328125, 0.019439697265625, 0.0105743408203125, 0.032073974609375, 0.0293731689453125, -0.04046630859375, 0.027496337890625, -0.0224609375, -0.0257110595703125, 0.032806396484375, -0.0098724365234375, -0.00699615478515625, -0.023284912109375, 0.0452880859375, 0.0145416259765625, -0.038726806640625, 0.0232086181640625, -0.0233001708984375, -0.00554656982421875, -0.01039886474609375, 0.00040340423583984375, 0.000001430511474609375, -0.055816650390625, -0.007537841796875, -0.0479736328125, -0.013580322265625, 0.012664794921875, -0.01117706298828125, -0.004138946533203125, 0.023681640625, -0.0323486328125, 0.01390838623046875, 0.01568603515625, -0.036407470703125, -0.002780914306640625, 0.017791748046875, 0.01094818115234375, -0.0139923095703125, 0.045684814453125, -0.0174407958984375, 0.0212860107421875, -0.03546142578125, 0.01139068603515625, -0.018463134765625, 0.00350189208984375, 0.02532958984375, 0.00698089599609375, 0.022186279296875, -0.024932861328125, -0.011260986328125, 0.046661376953125, 0.026092529296875, 0.0794677734375, 0.017578125, -0.01235198974609375, 0.0249481201171875, 0.00299072265625, -0.002429962158203125, -0.049713134765625, 0.0102081298828125, -0.051513671875, -0.00807952880859375, -0.005825042724609375, -0.01183319091796875, 0.01174163818359375, -0.01325225830078125, -0.0107269287109375, 0.03082275390625, 0.00304412841796875, -0.023956298828125, -0.0261383056640625, 0.0287933349609375, 0.00740814208984375, -0.04345703125, -0.01552581787109375, -0.03253173828125, -0.009918212890625, -0.003940582275390625, 0.0654296875, -0.00611114501953125, 0.049560546875, 0.031494140625, -0.07757568359375, 0.04010009765625, -0.004180908203125, 0.060089111328125, 0.00992584228515625, 0.00890350341796875, -0.01218414306640625, -0.01348876953125, -0.06591796875, -0.0222015380859375, -0.0268402099609375, 0.05303955078125, -0.0205841064453125, -0.01552581787109375, 0.0126800537109375, 0.0191802978515625, 0.044403076171875, 0.0242462158203125, 0.0243072509765625, -0.047637939453125, 0.013885498046875, -0.012664794921875, -0.040069580078125, 0.0039215087890625, 0.034912109375, -0.08392333984375, -0.017913818359375, 0.042083740234375, -0.01556396484375, -0.03765869140625, -0.0035190582275390625, -0.04852294921875, -0.013580322265625, -0.019683837890625, -0.0011281967163085938, -0.016754150390625, 0.0188140869140625, 0.0182952880859375, -0.043365478515625, -0.041290283203125, -0.003536224365234375, 0.0025844573974609375, -0.0269317626953125, -0.04705810546875, 0.009490966796875, 0.031463623046875, -0.033477783203125, -0.0182647705078125, 0.0236968994140625, 0.0401611328125, 0.0100860595703125, -0.0115966796875, -0.01424407958984375, 0.04486083984375, 0.026397705078125, 0.03338623046875, -0.0355224609375, 0.04833984375, 0.00783538818359375, 0.02093505859375, -0.009246826171875, 0.07489013671875, -0.01104736328125, 0.053863525390625, -0.0305633544921875, -0.0140380859375, 0.006107330322265625, -0.0443115234375, -0.0122222900390625, 0.009002685546875, -0.01357269287109375, -0.04638671875, 0.0369873046875, 0.0086822509765625, 0.01007080078125, 0.0286865234375 ]
ccc8fde97069b44fb23d1a0ab840fdf687f9fba3
Wordpress Stackexchange Q: Where to use $post global variable? I am confusing to use $post global variable. Is it use inside loop or outside loop? What is the advantage to use it inside and outside loop? A: The $post global is set by $wp_query->the_post(). As $post is set by the main query and the fact that templates are set within the global variable scope, it is available throughout the template, so there is no need to explicitly calling the $post global when you are within the specified template as the WP_Post objects can be accessed any where. You can access the WP_Post objects by just simply calling them directly, for example $post->ID to retrieve the page ID on a page template When you need to access post data outside of a template, for example, in a function or in a widget, you need to call the $post global to make the post data available for use.
Q: Where to use $post global variable? I am confusing to use $post global variable. Is it use inside loop or outside loop? What is the advantage to use it inside and outside loop? A: The $post global is set by $wp_query->the_post(). As $post is set by the main query and the fact that templates are set within the global variable scope, it is available throughout the template, so there is no need to explicitly calling the $post global when you are within the specified template as the WP_Post objects can be accessed any where. You can access the WP_Post objects by just simply calling them directly, for example $post->ID to retrieve the page ID on a page template When you need to access post data outside of a template, for example, in a function or in a widget, you need to call the $post global to make the post data available for use. A: Within the loop you have functions like: * *the_ID() or get_the_ID() that return $post->ID *the_title() or get_the_title() that return $post->post_title *the_content() or get_the_content() that return $post->post_content etc. But they apply filters and shortcodes for the post you are viewing. For more details on how these functions work visit the WordPress Code Reference Within a loop you should ALWAYS use the functions that are created for you. They have a reason. As I said before: they apply filters and parse shortcodes. You should also read the Global Variable article in the WordPress codex. In my own opinion you should only use $post only when you have no other option. For example: You want, for some reason, the unfiltered content of the post. Within The Loop the functions described above and their counterparts return information of the current post in the loop. If you are on a category/archive page using $post outside the loop will give you the information of the last $post in the loop(if used after) or nothing/what-ever-query happened before that initialized the value. NOTE this is a global variable that changes within The Loop and if you are using it/or a plugin uses it like I did once (if ($pageposts) : global $post; foreach ($pageposts as $post) : setup_postdata($post); ... endforeach; endif;) it will change it again because of its description and intended purpose: /** * Set up global post data. * * @since 1.5.0 * * @param object $post Post data. * @uses do_action_ref_array() Calls 'the_post' * @return bool True when finished. */ I used setup_postdata($post) in order to use the $posts designed functions within a carousel I was building that selected posts that belonged to custom post types based on post meta information, current date and etc.. My advice, if you are new to WordPress, stick with the functions implemented for you. Abstractization has its perks. It makes things easier to find, remember and use.
wordpress
{ "language": "en", "length": 473, "provenance": "stackexchange_00019.jsonl.gz:448950", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161738" }
[ 0.0406494140625, -0.0382080078125, -0.012481689453125, -0.0234832763671875, -0.00337982177734375, -0.0308074951171875, 0.031982421875, 0.01092529296875, 0.0545654296875, 0.0022830963134765625, -0.054229736328125, -0.01227569580078125, -0.0221405029296875, -0.000820159912109375, -0.0159912109375, -0.030120849609375, 0.040985107421875, -0.043670654296875, 0.00926971435546875, -0.0077056884765625, 0.01666259765625, 0.012939453125, 0.0389404296875, 0.02740478515625, 0.037109375, -0.0221710205078125, 0.0009546279907226562, -0.00936126708984375, -0.00795745849609375, -0.03350830078125, 0.0144805908203125, 0.02935791015625, 0.0374755859375, -0.004978179931640625, -0.0184783935546875, -0.0036716461181640625, -0.0340576171875, 0.00649261474609375, 0.0143585205078125, -0.008544921875, 0.01004791259765625, -0.016021728515625, 0.0234222412109375, 0.0347900390625, -0.005756378173828125, -0.0162811279296875, -0.01016998291015625, -0.06854248046875, 0.0223846435546875, 0.01049041748046875, 0.01142120361328125, 0.0144195556640625, 0.01403045654296875, 0.033203125, -0.004638671875, 0.013824462890625, 0.0158843994140625, -0.03271484375, 0.06866455078125, -0.024932861328125, -0.0736083984375, -0.0751953125, 0.053619384765625, -0.056793212890625, 0.037200927734375, -0.0101165771484375, 0.01407623291015625, 0.036041259765625, -0.06103515625, 0.01227569580078125, 0.044097900390625, -0.033599853515625, -0.01386260986328125, -0.05120849609375, 0.004528045654296875, -0.039794921875, 0.042510986328125, -0.04931640625, -0.0421142578125, 0.0193023681640625, -0.0352783203125, 0.019775390625, -0.06463623046875, -0.0269622802734375, -0.0011472702026367188, -0.0005602836608886719, -0.0275115966796875, -0.00588226318359375, -0.0157012939453125, -0.047332763671875, -0.0218505859375, 0.040863037109375, -0.01012420654296875, -0.038787841796875, -0.04986572265625, -0.0234832763671875, 0.005123138427734375, 0.0201416015625, -0.0277862548828125, 0.0075225830078125, -0.023223876953125, -0.0179443359375, 0.027984619140625, -0.0264129638671875, -0.0019779205322265625, 0.038543701171875, 0.0192108154296875, -0.007503509521484375, 0.0233612060546875, 0.002971649169921875, -0.0013360977172851562, 0.01531982421875, 0.0015430450439453125, 0.0034732818603515625, -0.0531005859375, -0.0162200927734375, -0.054840087890625, -0.007030487060546875, 0.010406494140625, -0.0009608268737792969, 0.021148681640625, 0.02557373046875, -0.0052642822265625, 0.0007190704345703125, 0.001354217529296875, 0.0016698837280273438, -0.004840850830078125, -0.037200927734375, -0.0220184326171875, 0.05755615234375, -0.019561767578125, -0.00872802734375, 0.0474853515625, 0.0037670135498046875, -0.01800537109375, -0.0335693359375, -0.036346435546875, -0.00861358642578125, 0.0104522705078125, 0.0167999267578125, -0.01485443115234375, -0.06317138671875, 0.007610321044921875, 0.034454345703125, 0.0171661376953125, 0.03863525390625, 0.026397705078125, 0.00208282470703125, -0.0115509033203125, -0.04583740234375, 0.01084136962890625, 0.002567291259765625, -0.0094451904296875, 0.035308837890625, 0.045745849609375, -0.014984130859375, 0.0528564453125, -0.039154052734375, 0.01197052001953125, -0.01432037353515625, -0.005764007568359375, 0.003368377685546875, 0.0258331298828125, -0.0218658447265625, -0.031036376953125, -0.004638671875, -0.036041259765625, -0.00661468505859375, 0.0167999267578125, 0.02459716796875, 0.0221710205078125, 0.006256103515625, -0.0099334716796875, 0.00130462646484375, 0.000024557113647460938, -0.0104827880859375, -0.038604736328125, -0.011810302734375, 0.0268096923828125, 0.003978729248046875, -0.0254058837890625, -0.043060302734375, -0.004428863525390625, 0.0006480216979980469, -0.0443115234375, 0.0030612945556640625, 0.01482391357421875, 0.0299224853515625, 0.039215087890625, 0.020111083984375, 0.026458740234375, -0.0023937225341796875, -0.0215606689453125, 0.039794921875, 0.01158905029296875, -0.004146575927734375, -0.027801513671875, 0.0147857666015625, -0.0027141571044921875, -0.049224853515625, 0.0172119140625, 0.006565093994140625, -0.00016427040100097656, -0.0110015869140625, -0.039093017578125, -0.0015544891357421875, -0.0098724365234375, 0.017822265625, -0.01708984375, -0.0171661376953125, 0.0224151611328125, -0.017822265625, 0.009521484375, -0.0799560546875, -0.051788330078125, 0.039703369140625, -0.0180511474609375, 0.0582275390625, 0.0193634033203125, 0.05377197265625, 0.01318359375, -0.047943115234375, 0.0028743743896484375, -0.0222015380859375, 0.06683349609375, 0.016815185546875, -0.0247955322265625, -0.0164031982421875, 0.01318359375, 0.0245819091796875, -0.08203125, 0.03240966796875, -0.028594970703125, -0.00994873046875, -0.0172576904296875, -0.00933837890625, -0.0161590576171875, -0.043670654296875, 0.00904083251953125, 0.042236328125, 0.033966064453125, 0.06549072265625, 0.0018291473388671875, -0.00406646728515625, 0.047882080078125, -0.04443359375, 0.00632476806640625, -0.027191162109375, 0.0196685791015625, 0.057891845703125, -0.00032401084899902344, 0.0082550048828125, 0.01244354248046875, -0.056976318359375, -0.003284454345703125, 0.031402587890625, 0.0035152435302734375, 0.0155487060546875, -0.01346588134765625, 0.035552978515625, -0.02435302734375, -0.0172576904296875, 0.0026416778564453125, -0.025146484375, 0.0416259765625, -0.033660888671875, 0.0270843505859375, 0.00033664703369140625, -0.01387786865234375, -0.04266357421875, 0.02362060546875, 0.0052490234375, 0.0135345458984375, -0.024383544921875, -0.050445556640625, -0.0025501251220703125, -0.0214996337890625, 0.017913818359375, 0.023406982421875, -0.0318603515625, -0.0311431884765625, 0.00604248046875, -0.0245513916015625, -0.00806427001953125, -0.0257110595703125, -0.024139404296875, 0.02667236328125, 0.0215606689453125, 0.0538330078125, -0.009185791015625, 0.01512908935546875, 0.01479339599609375, -0.051727294921875, 0.09222412109375, -0.0301513671875, -0.04718017578125, 0.005157470703125, -0.004299163818359375, 0.0024013519287109375, -0.0117034912109375, 0.0445556640625, 0.05645751953125, 0.002513885498046875, 0.0030689239501953125, -0.0006666183471679688, 0.01139068603515625, 0.01300811767578125, -0.01093292236328125, -0.00537109375, -0.01016998291015625, -0.01511383056640625, 0.0266876220703125, 0.004558563232421875, 0.039520263671875, -0.0235137939453125, -0.05859375, -0.005153656005859375, 0.004268646240234375, -0.0994873046875, -0.0870361328125, 0.0092620849609375, -0.09796142578125, -0.0026798248291015625, -0.0413818359375, -0.051513671875, 0.010650634765625, -0.022705078125, 0.0082550048828125, 0.01035308837890625, -0.0157928466796875, -0.057342529296875, -0.05743408203125, -0.0670166015625, -0.0345458984375, -0.007595062255859375, 0.0022182464599609375, -0.01061248779296875, 0.07403564453125, 0.0112457275390625, -0.035614013671875, -0.0261993408203125, 0.00495147705078125, -0.0161590576171875, -0.01910400390625, 0.007610321044921875, -0.0340576171875, -0.0162506103515625, 0.005718231201171875, -0.026397705078125, -0.0010480880737304688, 0.001148223876953125, -0.0099945068359375, 0.037841796875, 0.022796630859375, 0.043701171875, -0.0070037841796875, -0.04425048828125, 0.01473236083984375, 0.0016231536865234375, -0.03948974609375, -0.03564453125, -0.01427459716796875, -0.061614990234375, -0.02520751953125, 0.045074462890625, 0.01277923583984375, -0.0186767578125, 0.0001233816146850586, 0.0086822509765625, -0.0035877227783203125, -0.0306396484375, -0.031646728515625, 0.08880615234375, 0.020599365234375, 0.049591064453125, 0.01323699951171875, -0.0135955810546875, -0.0263519287109375, -0.0124053955078125, -0.0167694091796875, -0.004398345947265625, -0.00858306884765625, 0.016265869140625, -0.00290679931640625, -0.017578125, 0.03900146484375, 0.035400390625, 0.02862548828125, -0.00244903564453125, -0.042724609375, 0.0002765655517578125, 0.070556640625, -0.0213165283203125, -0.00682830810546875, -0.00875091552734375, -0.0161895751953125, -0.0264739990234375, -0.0210723876953125, -0.041107177734375, -0.001941680908203125, -0.00650787353515625, 0.0257415771484375, -0.0034313201904296875, 0.029205322265625, -0.04974365234375, 0.09283447265625, -0.0223541259765625, -0.01055908203125, 0.002521514892578125, -0.05303955078125, 0.0133056640625, 0.0034046173095703125, -0.0294036865234375, 0.01070404052734375, 0.00039458274841308594, -0.052032470703125, -0.0298004150390625, 0.0002696514129638672, 0.0166168212890625, 0.02142333984375, 0.0169219970703125, -0.037506103515625, 0.0025539398193359375, 0.0162811279296875, 0.016632080078125, 0.0287322998046875, -0.0171661376953125, -0.007205963134765625, 0.0221405029296875, -0.0019779205322265625, -0.00234222412109375, 0.0010213851928710938, 0.01189422607421875, 0.024871826171875, -0.05615234375, 0.02471923828125, -0.0206451416015625, -0.013824462890625, 0.0294647216796875, -0.045318603515625, -0.0543212890625, 0.013031005859375, 0.031585693359375, 0.032257080078125, -0.023712158203125, 0.03448486328125, 0.0090179443359375, -0.050628662109375, 0.066650390625, 0.08038330078125, -0.03533935546875, -0.01538848876953125, 0.06683349609375, 0.024932861328125, -0.060760498046875, -0.05780029296875, -0.0220794677734375, 0.040191650390625, -0.025604248046875, 0.0230865478515625, 0.045257568359375, -0.018524169921875, -0.01294708251953125, 0.021026611328125, -0.01296234130859375, -0.01451873779296875, 0.057525634765625, -0.003948211669921875, -0.0174560546875, 0.0016450881958007812, -0.0361328125, 0.032440185546875, 0.0181732177734375, -0.0215301513671875, -0.0447998046875, 0.01194000244140625, 0.06707763671875, -0.039093017578125, 0.0548095703125, -0.05169677734375, -0.03533935546875, 0.00905609130859375, -0.022369384765625, 0.035888671875, 0.0071563720703125, 0.0184326171875, -0.002227783203125, 0.0079193115234375, 0.0270843505859375, 0.03900146484375, 0.0123291015625, 0.008453369140625, 0.0294342041015625, 0.04693603515625, 0.0196990966796875, 0.009124755859375, -0.0032100677490234375, 0.025909423828125, -0.004764556884765625, -0.019927978515625, -0.004261016845703125, -0.01410675048828125, 0.035858154296875, 0.0114593505859375, -0.0238189697265625, 0.030181884765625, 0.013427734375, -0.01419830322265625, 0.0127105712890625, -0.0005564689636230469, -0.0241546630859375, -0.0294036865234375, 0.0170745849609375, 0.01348114013671875, -0.0026912689208984375, -0.043975830078125, 0.12152099609375, 0.0022411346435546875, 0.029754638671875, -0.0323486328125, 0.043487548828125, 0.042022705078125, 0.0053558349609375, 0.01177978515625, 0.0038394927978515625, 0.0258331298828125, -0.0367431640625, -0.0013322830200195312, -0.01375579833984375, -0.028778076171875, 0.0162353515625, 0.0380859375, -0.0177154541015625, 0.00980377197265625, 0.004840850830078125, -0.001857757568359375, -0.0012674331665039062, 0.048492431640625, 0.03814697265625, -0.0360107421875, -0.01041412353515625, 0.01143646240234375, 0.03167724609375, -0.013336181640625, 0.0156097412109375, -0.04339599609375, -0.0291748046875, 0.015899658203125, -0.03948974609375, 0.015533447265625, -0.006427764892578125, -0.032012939453125, -0.032257080078125, -0.017181396484375, -0.00891876220703125, -0.0155487060546875, -0.019134521484375, -0.01451873779296875, -0.0290374755859375, 0.045013427734375, -0.00826263427734375, 0.034881591796875, -0.01629638671875, -0.0219879150390625, -0.004638671875, 0.0043487548828125, 0.06048583984375, 0.0360107421875, -0.0426025390625, 0.003589630126953125, -0.041778564453125, -0.01293182373046875, 0.00061798095703125, -0.06060791015625, -0.048614501953125, -0.00891876220703125, 0.00853729248046875, 0.00847625732421875, 0.0007462501525878906, -0.01488494873046875, -0.0148162841796875, 0.01824951171875, 0.011962890625, 0.044036865234375, -0.006618499755859375, 0.057525634765625, -0.0229034423828125, 0.04608154296875, 0.00731658935546875, 0.0009722709655761719, -0.01763916015625, -0.01739501953125, -0.0017795562744140625, -0.04937744140625, -0.01102447509765625, -0.020111083984375, 0.00553131103515625, 0.0140228271484375, 0.01363372802734375, 0.0016756057739257812, 0.00983428955078125, -0.009429931640625, -0.0030002593994140625, -0.003078460693359375, 0.01071929931640625, -0.01617431640625, -0.034698486328125, 0.0721435546875, 0.0084228515625, -0.027313232421875, -0.007656097412109375, -0.042083740234375, 0.034912109375, 0.021881103515625, 0.020477294921875, -0.01995849609375, -0.047760009765625, 0.06854248046875, 0.10467529296875, 0.01294708251953125, 0.030364990234375, 0.0211181640625, -0.0013036727905273438, -0.0103912353515625, 0.04815673828125, -0.052215576171875, -0.039459228515625, 0.037628173828125, 0.0156707763671875, -0.05126953125, 0.006988525390625, -0.036163330078125, 0.017578125, 0.02972412109375, 0.07379150390625, -0.037689208984375, 0.0173187255859375, 0.043304443359375, -0.01540374755859375, 0.0077972412109375, 0.0097198486328125, -0.0110321044921875, -0.0015430450439453125, 0.04449462890625, -0.0258026123046875, -0.00519561767578125, 0.04052734375, -0.0015058517456054688, 0.02105712890625, -0.01143646240234375, 0.07867431640625, 0.0174407958984375, -0.058929443359375, 0.01080322265625, 0.0509033203125, 0.02197265625, -0.033905029296875, 0.005863189697265625, -0.00024700164794921875, -0.018951416015625, -0.059478759765625, -0.002895355224609375, -0.0240020751953125, 0.0023899078369140625, 0.0036449432373046875, -0.01535797119140625, 0.0215606689453125, 0.03533935546875, -0.01206207275390625, 0.01456451416015625, -0.0016574859619140625, 0.00614166259765625, -0.04193115234375, -0.005245208740234375, 0.0027408599853515625, 0.057281494140625, -0.01418304443359375, 0.0254364013671875, -0.022735595703125, 0.0017404556274414062, -0.006023406982421875, 0.0192413330078125, 0.045654296875, -0.0169219970703125, -0.031951904296875, 0.0191497802734375, 0.0019311904907226562, 0.0005283355712890625, -0.00861358642578125, 0.00862884521484375, -0.02020263671875, 0.014678955078125, -0.004688262939453125, -0.008941650390625, -0.0276336669921875, -0.030853271484375, -0.08056640625, 0.09783935546875, -0.004413604736328125, 0.0287322998046875, 0.0059051513671875, 0.0219268798828125, -0.022186279296875, -0.0050506591796875, -0.06317138671875, 0.0179290771484375, 0.000865936279296875, 0.0770263671875, -0.0771484375, -0.01479339599609375, 0.012481689453125, 0.043212890625, 0.050567626953125, 0.005008697509765625, -0.0002243518829345703, -0.0302886962890625, 0.0198974609375, 0.061492919921875, 0.0059356689453125, -0.01227569580078125, 0.047149658203125, 0.058929443359375, 0.03179931640625, -0.035003662109375, 0.0244903564453125, -0.03350830078125, 0.0249176025390625, 0.08282470703125, 0.01343536376953125, -0.00910186767578125, 0.042724609375, -0.002010345458984375, -0.034423828125, 0.027679443359375, 0.018524169921875, 0.024627685546875, -0.00839996337890625, 0.042449951171875, 0.00899505615234375, -0.03289794921875, -0.07745361328125, -0.016021728515625, 0.02978515625, 0.00968170166015625, 0.021087646484375, 0.03564453125, 0.0148773193359375, 0.043670654296875, -0.0025997161865234375, 0.01432037353515625, 0.0114593505859375, -0.0132293701171875, 0.03460693359375, 0.034912109375, 0.026092529296875, -0.032562255859375, 0.0211639404296875, 0.03173828125, 0.034759521484375, -0.041229248046875, 0.015167236328125, 0.013092041015625, -0.0028476715087890625, -0.032928466796875, -0.051177978515625, -0.0203704833984375, 0.02398681640625, 0.00948333740234375, -0.01168060302734375, -0.00777435302734375, 0.0209808349609375, 0.0211181640625, 0.004772186279296875, 0.003498077392578125, -0.049957275390625, -0.0172271728515625, -0.030120849609375, -0.018951416015625, 0.024749755859375, 0.06622314453125, 0.0369873046875, 0.0141448974609375, -0.013763427734375, -0.024261474609375, -0.0091400146484375, 0.0199127197265625, 0.0147552490234375, 0.0218963623046875, -0.0281219482421875, -0.007457733154296875, 0.02081298828125, 0.034942626953125, 0.033294677734375, -0.0024261474609375, 0.049285888671875, 0.011383056640625, -0.0634765625, -0.007495880126953125, -0.01201629638671875, -0.036590576171875, 0.017974853515625, -0.0054779052734375, -0.0421142578125, -0.0380859375, -0.03851318359375, -0.02093505859375, 0.025177001953125, -0.0269927978515625, -0.0226593017578125, 0.0423583984375, 0.0045928955078125, -0.0239410400390625, 0.0477294921875, 0.007015228271484375, 0.091796875, 0.014617919921875, -0.0008244514465332031, 0.0033054351806640625, -0.03033447265625, -0.074951171875, 0.0276336669921875, 0.044097900390625, -0.0053253173828125, -0.004245758056640625, 0.0198822021484375, -0.01062774658203125, 0.03338623046875, -0.006481170654296875, -0.0018167495727539062, 0.00984954833984375, 0.02569580078125, 0.00933074951171875, -0.0301971435546875, -0.0360107421875, -0.01556396484375, 0.04638671875, 0.043426513671875, 0.0016527175903320312, 0.007568359375, 0.058197021484375, 0.00295257568359375, 0.023406982421875, -0.0216827392578125, 0.005695343017578125, -0.0099945068359375, 0.0160369873046875, 0.03607177734375, -0.00897979736328125, -0.01348876953125, 0.0313720703125, 0.02935791015625, -0.0265655517578125, 0.0241546630859375, -0.027862548828125, 0.001964569091796875, -0.0229644775390625, 0.0284423828125, 0.0018339157104492188, 0.0253143310546875, 0.002613067626953125, -0.0213165283203125, 0.059600830078125, 0.030670166015625, -0.006526947021484375, 0.018524169921875, -0.05169677734375, -0.0294036865234375, 0.034881591796875, -0.03448486328125, -0.006744384765625, 0.01407623291015625, -0.021636962890625, -0.01432037353515625, -0.0118560791015625, -0.029541015625, -0.0020046234130859375, 0.00836944580078125, 0.0096588134765625, 0.0023670196533203125, -0.00788116455078125, -0.0261383056640625, 0.0008134841918945312, 0.033721923828125, -0.014617919921875, 0.004016876220703125, 0.00780487060546875, -0.0121612548828125, -0.028900146484375, -0.014404296875, -0.01267242431640625, -0.047515869140625, -0.0191497802734375, 0.00867462158203125, -0.0321044921875, -0.034576416015625, -0.03082275390625, -0.022430419921875, 0.054046630859375, -0.005023956298828125, -0.02020263671875, -0.034820556640625, -0.025726318359375, 0.04351806640625, 0.004268646240234375, -0.0009813308715820312, 0.007610321044921875, 0.02520751953125, -0.0283203125, 0.0291748046875, -0.0372314453125, -0.034820556640625, 0.008331298828125, 0.0418701171875, 0.057464599609375, -0.045013427734375, -0.003856658935546875, 0.06719970703125, 0.0484619140625, 0.10333251953125, 0.01404571533203125, -0.01995849609375, 0.0208587646484375, 0.00901031494140625, 0.0035037994384765625, -0.050140380859375, -0.0027484893798828125, -0.051177978515625, 0.0189361572265625, -0.016387939453125, 0.004543304443359375, 0.01404571533203125, -0.033111572265625, -0.06597900390625, 0.0287322998046875, -0.0145416259765625, -0.032012939453125, -0.051422119140625, -0.004650115966796875, 0.0173492431640625, 0.0163726806640625, -0.001220703125, -0.050811767578125, -0.08233642578125, -0.0045318603515625, 0.0205535888671875, -0.0024890899658203125, 0.062255859375, -0.005443572998046875, -0.06561279296875, -0.0257720947265625, -0.0494384765625, 0.02606201171875, 0.00945281982421875, -0.006378173828125, 0.009002685546875, 0.0042724609375, -0.05047607421875, 0.026275634765625, 0.01418304443359375, 0.03900146484375, -0.00882720947265625, -0.0032520294189453125, -0.022613525390625, 0.0026264190673828125, 0.06732177734375, 0.0418701171875, 0.0268096923828125, -0.050994873046875, 0.01538848876953125, -0.01558685302734375, -0.11041259765625, 0.0021648406982421875, 0.04351806640625, -0.04229736328125, 0.01398468017578125, -0.00246429443359375, -0.00705718994140625, 0.011199951171875, -0.0426025390625, -0.0223846435546875, -0.01331329345703125, -0.034423828125, -0.0076446533203125, 0.0109710693359375, -0.020599365234375, 0.0312347412109375, -0.0276031494140625, -0.00908660888671875, 0.0030059814453125, 0.0164947509765625, 0.002964019775390625, 0.0260009765625, 0.00902557373046875, 0.040679931640625, -0.07745361328125, -0.00437164306640625, -0.0164794921875, 0.01360321044921875, -0.048370361328125, 0.0008459091186523438, -0.018310546875, 0.0352783203125, 0.0017442703247070312, 0.0128326416015625, -0.0138092041015625, 0.07464599609375, 0.006649017333984375, 0.0606689453125, -0.0052642822265625, 0.048431396484375, 0.006275177001953125, 0.043609619140625, -0.0271759033203125, -0.00431060791015625, -0.004230499267578125, -0.041046142578125, -0.016815185546875, -0.01000213623046875, -0.040252685546875, -0.042449951171875, 0.0070343017578125, -0.00853729248046875, -0.0014104843139648438, 0.016265869140625 ]
aef75ce6e5773af1daf660fd41e7996970f958e3
Wordpress Stackexchange Q: Add line breaks in Category description via enter My client wants to ad line breaks in category description via keyboard enter. In the editor the white space is added, but it is not shown on the website. I can add it with &nbsp; but I have to be able to do it by enter key. I tried commenting out this in default-filters.php: foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description' ) as $filter ) { add_filter( $filter, 'wp_filter_kses' ); } But it didn't work. Neither adding this to my functions.php: $filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description'); foreach ( $filters as $filter ) { remove_filter($filter, 'wp_filter_kses'); } Thanks! A: You can use the standard PHP function nl2br for that echo nl2br(category_description( $category_id ));
Q: Add line breaks in Category description via enter My client wants to ad line breaks in category description via keyboard enter. In the editor the white space is added, but it is not shown on the website. I can add it with &nbsp; but I have to be able to do it by enter key. I tried commenting out this in default-filters.php: foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description' ) as $filter ) { add_filter( $filter, 'wp_filter_kses' ); } But it didn't work. Neither adding this to my functions.php: $filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description'); foreach ( $filters as $filter ) { remove_filter($filter, 'wp_filter_kses'); } Thanks! A: You can use the standard PHP function nl2br for that echo nl2br(category_description( $category_id )); A: There's actually a built-in Wordpress function for that: wpautop. It's more flexible than nl2br. Use the Wordpress function like so: wpautop(category_description( $category_id ) ); It will change the new and empty lines into paragraph tags automatically.
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:448967", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161841" }
[ 0.0272216796875, -0.0178070068359375, 0.003307342529296875, -0.02777099609375, -0.005939483642578125, -0.030792236328125, 0.022979736328125, -0.0038604736328125, -0.01541900634765625, 0.005706787109375, -0.00861358642578125, -0.03106689453125, 0.01482391357421875, -0.04412841796875, 0.0196685791015625, -0.0355224609375, -0.00080108642578125, -0.01373291015625, -0.002361297607421875, 0.0038604736328125, -0.0171356201171875, 0.005268096923828125, -0.018035888671875, -0.0297698974609375, -0.0220794677734375, 0.018310546875, 0.10101318359375, -0.01555633544921875, -0.007137298583984375, -0.0037784576416015625, 0.0145416259765625, -0.049468994140625, -0.005886077880859375, 0.044586181640625, -0.005565643310546875, 0.052978515625, -0.01253509521484375, 0.0228118896484375, 0.0372314453125, 0.0123138427734375, 0.0204925537109375, -0.000904083251953125, 0.030426025390625, -0.0008463859558105469, -0.005718231201171875, 0.000024378299713134766, 0.00007444620132446289, -0.0210723876953125, 0.01274871826171875, 0.0025730133056640625, -0.0078582763671875, 0.0165557861328125, 0.011138916015625, -0.046600341796875, 0.012115478515625, 0.019317626953125, -0.045196533203125, -0.031829833984375, 0.028594970703125, 0.01558685302734375, 0.01476287841796875, -0.04168701171875, 0.0290374755859375, -0.027984619140625, 0.0187530517578125, -0.01032257080078125, 0.01123046875, 0.01506805419921875, -0.032073974609375, 0.0060272216796875, 0.0321044921875, -0.028900146484375, 0.0238189697265625, -0.0582275390625, 0.02081298828125, 0.0213775634765625, -0.0259857177734375, 0.01202392578125, 0.0179290771484375, -0.0167236328125, 0.0205841064453125, -0.0120086669921875, 0.0164031982421875, -0.046905517578125, 0.027374267578125, -0.039947509765625, -0.0008482933044433594, 0.012969970703125, -0.0380859375, -0.0174560546875, -0.01251983642578125, -0.0216217041015625, -0.061859130859375, 0.025146484375, 0.0208282470703125, -0.03204345703125, -0.0212249755859375, -0.0016946792602539062, 0.003082275390625, 0.039276123046875, 0.0083465576171875, -0.04638671875, 0.0771484375, -0.04473876953125, 0.0177001953125, 0.00006967782974243164, -0.0256500244140625, -0.005405426025390625, 0.06500244140625, 0.0307464599609375, -0.009979248046875, 0.021453857421875, 0.0007796287536621094, -0.0295562744140625, 0.00917816162109375, 0.033843994140625, -0.0048980712890625, 0.0408935546875, -0.0022830963134765625, 0.03778076171875, 0.006649017333984375, 0.0076751708984375, -0.005237579345703125, 0.032073974609375, -0.029571533203125, -0.018463134765625, 0.002918243408203125, -0.0134735107421875, 0.03179931640625, -0.027679443359375, -0.00521087646484375, 0.0252532958984375, 0.033660888671875, 0.04449462890625, 0.0072174072265625, 0.0011854171752929688, 0.022735595703125, 0.014984130859375, -0.0176239013671875, 0.01207733154296875, -0.0491943359375, -0.00478363037109375, 0.0224609375, -0.05926513671875, -0.01239776611328125, 0.030731201171875, 0.00176239013671875, -0.005054473876953125, 0.014801025390625, -0.041351318359375, 0.01045989990234375, -0.053863525390625, 0.07196044921875, 0.006183624267578125, -0.07537841796875, -0.040191650390625, 0.049957275390625, -0.0523681640625, -0.037078857421875, -0.073486328125, -0.039306640625, 0.0019092559814453125, 0.052703857421875, -0.08984375, -0.05816650390625, -0.0078277587890625, -0.0499267578125, 0.00978851318359375, 0.02508544921875, 0.0164794921875, -0.0236968994140625, -0.005970001220703125, 0.04669189453125, -0.007450103759765625, -0.017852783203125, 0.0113067626953125, -0.02288818359375, -0.0079345703125, 0.05426025390625, -0.00799560546875, -0.01279449462890625, -0.0147247314453125, 0.054229736328125, -0.01055145263671875, -0.033538818359375, 0.048065185546875, 0.01015472412109375, 0.08612060546875, 0.005558013916015625, 0.02752685546875, -0.0093536376953125, 0.0037021636962890625, -0.0236053466796875, -0.0179290771484375, 0.0204925537109375, -0.050628662109375, 0.025115966796875, -0.042938232421875, 0.0280609130859375, 0.031585693359375, 0.03375244140625, 0.003017425537109375, 0.005031585693359375, -0.007770538330078125, -0.018280029296875, -0.0374755859375, 0.0123291015625, 0.01031494140625, 0.031829833984375, -0.004108428955078125, -0.019134521484375, -0.0273895263671875, 0.041046142578125, -0.06304931640625, -0.046173095703125, 0.016204833984375, 0.018646240234375, 0.042083740234375, 0.0322265625, 0.01407623291015625, 0.054779052734375, 0.01203155517578125, 0.05413818359375, 0.029541015625, 0.016021728515625, -0.052337646484375, 0.007732391357421875, -0.0284423828125, -0.00884246826171875, 0.0004284381866455078, -0.01222991943359375, 0.01483154296875, 0.09857177734375, 0.07781982421875, -0.0146026611328125, 0.014892578125, 0.0257110595703125, -0.04351806640625, -0.0260009765625, 0.0261077880859375, 0.0205535888671875, 0.01329803466796875, 0.00473785400390625, -0.00921630859375, 0.0309906005859375, -0.039947509765625, 0.01345062255859375, -0.0161895751953125, -0.03692626953125, 0.013946533203125, 0.0059967041015625, 0.0289459228515625, 0.01788330078125, -0.020477294921875, -0.007686614990234375, 0.03887939453125, -0.0013523101806640625, -0.0418701171875, 0.0263519287109375, -0.018096923828125, 0.0322265625, -0.0303192138671875, -0.035400390625, -0.00787353515625, -0.01055145263671875, 0.0010347366333007812, 0.01029205322265625, 0.00548553466796875, -0.0205078125, 0.005184173583984375, 0.03192138671875, 0.01934814453125, -0.001857757568359375, 0.055908203125, -0.084716796875, 0.02313232421875, -0.020111083984375, 0.014984130859375, -0.03192138671875, 0.0225677490234375, 0.0255584716796875, 0.06072998046875, 0.0552978515625, -0.006542205810546875, -0.006984710693359375, -0.0235595703125, 0.0308074951171875, 0.018341064453125, -0.027801513671875, -0.025909423828125, 0.017303466796875, 0.029693603515625, -0.010772705078125, 0.006561279296875, -0.042144775390625, -0.0018720626831054688, 0.054931640625, -0.0250244140625, 0.037078857421875, -0.0215911865234375, 0.038055419921875, 0.0509033203125, -0.035400390625, 0.00412750244140625, -0.0047607421875, -0.0151214599609375, -0.0005884170532226562, 0.0118865966796875, -0.0209808349609375, -0.027130126953125, -0.046844482421875, -0.01157379150390625, 0.02154541015625, 0.036651611328125, 0.00843048095703125, 0.001186370849609375, 0.0058135986328125, 0.01448822021484375, 0.001369476318359375, -0.00655364990234375, -0.0037899017333984375, -0.070556640625, -0.014251708984375, 0.05859375, -0.059478759765625, -0.0077056884765625, 0.10302734375, -0.011962890625, 0.0014410018920898438, -0.0295562744140625, -0.0335693359375, -0.027099609375, -0.0543212890625, 0.00012731552124023438, 0.00339508056640625, -0.004566192626953125, 0.0126800537109375, 0.08074951171875, 0.022125244140625, -0.021820068359375, 0.035888671875, 0.0174102783203125, -0.01323699951171875, 0.0187225341796875, -0.05047607421875, -0.0117340087890625, 0.005451202392578125, -0.008148193359375, 0.012969970703125, 0.0064544677734375, 0.0126190185546875, 0.0222015380859375, -0.017669677734375, 0.00860595703125, 0.0037746429443359375, 0.01155853271484375, 0.030364990234375, -0.0027446746826171875, -0.00299835205078125, -0.0389404296875, 0.028594970703125, -0.022125244140625, 0.012115478515625, -0.0010919570922851562, -0.000026941299438476562, -0.029266357421875, -0.06121826171875, 0.049041748046875, -0.05828857421875, -0.0197601318359375, 0.0160675048828125, -0.037750244140625, -0.004619598388671875, -0.03070068359375, -0.055023193359375, 0.0118865966796875, 0.001483917236328125, -0.01471710205078125, 0.014434814453125, -0.00977325439453125, 0.00945281982421875, -0.0228424072265625, 0.0307769775390625, -0.0278167724609375, 0.015777587890625, -0.0113983154296875, -0.05194091796875, 0.024749755859375, -0.0220947265625, 0.01442718505859375, -0.0224761962890625, 0.01145172119140625, -0.0172882080078125, -0.0283966064453125, 0.0105438232421875, 0.01343536376953125, -0.032196044921875, -0.01343536376953125, -0.015472412109375, -0.005126953125, -0.0236968994140625, -0.0012531280517578125, -0.0299530029296875, -0.00039386749267578125, -0.0323486328125, 0.0019378662109375, -0.0072174072265625, -0.028839111328125, 0.055816650390625, -0.00988006591796875, 0.01861572265625, -0.00937652587890625, 0.0003917217254638672, -0.02032470703125, -0.030670166015625, 0.001300811767578125, -0.035858154296875, -0.00331878662109375, -0.042144775390625, 0.015838623046875, 0.0259857177734375, -0.035247802734375, 0.004825592041015625, 0.045562744140625, 0.03753662109375, 0.022369384765625, 0.036163330078125, -0.006763458251953125, -0.002704620361328125, 0.008270263671875, 0.04827880859375, -0.03985595703125, -0.0259857177734375, -0.003665924072265625, 0.00894927978515625, 0.042938232421875, 0.004791259765625, -0.0338134765625, 0.037628173828125, -0.0150604248046875, -0.0653076171875, -0.049224853515625, -0.038543701171875, 0.004314422607421875, -0.0126190185546875, -0.0215606689453125, -0.0528564453125, -0.04840087890625, 0.035552978515625, 0.0029888153076171875, 0.0216827392578125, -0.0003478527069091797, 0.0689697265625, -0.0009217262268066406, -0.0145416259765625, -0.042999267578125, 0.021240234375, 0.04144287109375, -0.02117919921875, 0.025634765625, -0.002857208251953125, -0.039886474609375, 0.07342529296875, 0.004543304443359375, 0.033538818359375, -0.050201416015625, 0.058807373046875, -0.00809478759765625, 0.0011730194091796875, 0.003986358642578125, -0.00963592529296875, 0.0235443115234375, -0.0199127197265625, -0.0152435302734375, 0.0244140625, 0.0213623046875, -0.0175018310546875, 0.00681304931640625, 0.0025844573974609375, 0.025604248046875, 0.0012836456298828125, 0.007770538330078125, 0.0240631103515625, 0.02813720703125, 0.04541015625, -0.0032634735107421875, 0.0024356842041015625, -0.01641845703125, -0.0157928466796875, -0.047637939453125, -0.0289459228515625, -0.055633544921875, 0.0223541259765625, -0.0865478515625, -0.06195068359375, 0.00353240966796875, 0.00909423828125, -0.00537109375, -0.0731201171875, -0.07421875, -0.0240478515625, 0.01201629638671875, 0.04498291015625, 0.1029052734375, 0.08026123046875, -0.0225677490234375, -0.004608154296875, 0.031585693359375, 0.0133056640625, 0.09381103515625, 0.0175323486328125, 0.0165557861328125, 0.0308074951171875, 0.00226593017578125, 0.00146484375, 0.0252685546875, 0.02691650390625, -0.00982666015625, 0.027191162109375, -0.00852203369140625, 0.023406982421875, 0.01556396484375, 0.0233612060546875, 0.032684326171875, -0.0197601318359375, -0.037750244140625, 0.032012939453125, -0.045562744140625, -0.0247650146484375, -0.00457763671875, -0.00911712646484375, 0.00042700767517089844, 0.004726409912109375, -0.00775909423828125, 0.042816162109375, -0.002414703369140625, -0.00218963623046875, -0.028350830078125, -0.0269317626953125, 0.0090179443359375, -0.0191650390625, -0.0418701171875, -0.00308990478515625, 0.00330352783203125, 0.00800323486328125, -0.03131103515625, -0.00678253173828125, 0.0014696121215820312, 0.01296234130859375, -0.0045928955078125, -0.01424407958984375, 0.0008225440979003906, -0.031463623046875, -0.0206146240234375, -0.042327880859375, 0.024505615234375, 0.007610321044921875, -0.008026123046875, -0.042266845703125, 0.032257080078125, -0.0277099609375, -0.024932861328125, -0.024810791015625, 0.045257568359375, -0.012237548828125, 0.004360198974609375, 0.0657958984375, 0.032470703125, -0.01049041748046875, -0.040679931640625, -0.0341796875, -0.03363037109375, 0.00652313232421875, -0.032196044921875, -0.0173797607421875, 0.010711669921875, -0.01094818115234375, -0.000881195068359375, -0.0038909912109375, -0.0291900634765625, -0.026947021484375, 0.0367431640625, 0.0513916015625, 0.028045654296875, -0.03143310546875, 0.005733489990234375, 0.03582763671875, -0.005908966064453125, -0.030853271484375, -0.01308441162109375, 0.01227569580078125, 0.0010728836059570312, 0.024322509765625, 0.0010128021240234375, -0.02508544921875, -0.02008056640625, -0.0312042236328125, 0.00405120849609375, 0.0667724609375, -0.002803802490234375, 0.00414276123046875, 0.0203094482421875, 0.0246429443359375, -0.01824951171875, -0.0518798828125, 0.031646728515625, -0.0299530029296875, 0.01458740234375, -0.00983428955078125, 0.06146240234375, -0.03387451171875, -0.005924224853515625, 0.034912109375, -0.038238525390625, 0.058135986328125, 0.0207366943359375, -0.07025146484375, 0.045928955078125, 0.0160675048828125, 0.0294647216796875, 0.01727294921875, -0.0004591941833496094, 0.02349853515625, -0.03857421875, -0.042724609375, 0.050506591796875, 0.07647705078125, 0.05987548828125, -0.0188446044921875, 0.022125244140625, 0.0289764404296875, -0.016082763671875, 0.03558349609375, 0.0528564453125, 0.0679931640625, -0.0885009765625, 0.02569580078125, 0.02606201171875, -0.0189361572265625, 0.0230255126953125, -0.0154571533203125, 0.009002685546875, -0.022308349609375, 0.0208282470703125, -0.0235748291015625, -0.0295867919921875, -0.0019330978393554688, -0.0271453857421875, -0.005687713623046875, -0.0340576171875, 0.004474639892578125, 0.009002685546875, -0.033233642578125, 0.0166168212890625, 0.02410888671875, 0.006305694580078125, -0.04595947265625, -0.0250091552734375, 0.04327392578125, -0.008270263671875, -0.07611083984375, 0.040618896484375, -0.0189971923828125, 0.02069091796875, 0.0222625732421875, 0.02398681640625, -0.00341033935546875, 0.036376953125, 0.0031185150146484375, -0.003231048583984375, 0.03082275390625, -0.06915283203125, 0.0423583984375, 0.00447845458984375, -0.00333404541015625, 0.064208984375, -0.0090179443359375, 0.00485992431640625, 0.010772705078125, 0.0298614501953125, -0.007518768310546875, -0.03753662109375, 0.08172607421875, -0.0516357421875, -0.007358551025390625, 0.0139312744140625, -0.0161590576171875, 0.003986358642578125, 0.0006060600280761719, 0.01837158203125, -0.032867431640625, -0.005176544189453125, 0.0093994140625, -0.0039215087890625, 0.007518768310546875, 0.00719451904296875, -0.035125732421875, 0.023468017578125, 0.0065765380859375, 0.015289306640625, 0.01502227783203125, -0.00330352783203125, -0.0308990478515625, -0.015411376953125, -0.035552978515625, 0.026123046875, 0.01369476318359375, 0.034576416015625, -0.023651123046875, -0.025054931640625, 0.03619384765625, 0.068603515625, 0.01044464111328125, -0.00197601318359375, 0.008209228515625, -0.03106689453125, -0.0048828125, 0.0477294921875, 0.01058197021484375, -0.00821685791015625, 0.021820068359375, -0.012451171875, 0.0404052734375, 0.0172882080078125, 0.052276611328125, -0.0252532958984375, -0.0032863616943359375, 0.0302581787109375, 0.0186767578125, 0.032135009765625, -0.0225982666015625, 0.0033779144287109375, 0.021697998046875, -0.026092529296875, -0.0170440673828125, -0.040863037109375, -0.037994384765625, 0.08660888671875, 0.01508331298828125, -0.026031494140625, -0.0215911865234375, -0.04864501953125, 0.03948974609375, 0.0022754669189453125, 0.06878662109375, 0.04541015625, 0.019439697265625, 0.03668212890625, 0.01174163818359375, 0.04443359375, 0.0042266845703125, -0.0161285400390625, 0.0011882781982421875, 0.00800323486328125, 0.044586181640625, -0.0061187744140625, -0.0134124755859375, 0.01074981689453125, 0.00894927978515625, -0.00347137451171875, -0.016143798828125, -0.0009555816650390625, 0.0251312255859375, 0.034027099609375, -0.0023746490478515625, 0.05059814453125, -0.0013904571533203125, 0.0269012451171875, -0.01290130615234375, -0.028411865234375, -0.00418853759765625, 0.015655517578125, 0.01397705078125, 0.045440673828125, -0.016876220703125, -0.0400390625, -0.07745361328125, 0.048553466796875, 0.0101470947265625, 0.0711669921875, 0.0193328857421875, 0.0677490234375, -0.01751708984375, -0.0364990234375, -0.003940582275390625, 0.030609130859375, 0.01352691650390625, -0.00849151611328125, 0.00024235248565673828, 0.006267547607421875, -0.006946563720703125, 0.006732940673828125, 0.0018863677978515625, 0.02178955078125, 0.037322998046875, 0.005260467529296875, -0.0361328125, -0.0136260986328125, 0.01367950439453125, -0.03594970703125, -0.078125, -0.034271240234375, 0.00405120849609375, 0.08148193359375, 0.02362060546875, 0.038360595703125, -0.0176239013671875, 0.08905029296875, -0.013824462890625, 0.023162841796875, 0.01556396484375, -0.0138092041015625, 0.006214141845703125, 0.002750396728515625, 0.0111846923828125, 0.0186004638671875, -0.06842041015625, -0.0125885009765625, -0.0195770263671875, -0.0361328125, 0.034759521484375, 0.04632568359375, -0.0224456787109375, 0.02142333984375, 0.051666259765625, -0.0255126953125, 0.032562255859375, 0.01515960693359375, -0.015716552734375, -0.0170745849609375, 0.0294036865234375, -0.019744873046875, -0.042877197265625, -0.018768310546875, -0.01255035400390625, 0.032379150390625, 0.0416259765625, 0.04583740234375, 0.0233306884765625, 0.038238525390625, -0.04248046875, -0.0106353759765625, -0.023529052734375, -0.0178375244140625, -0.0357666015625, 0.017303466796875, 0.015350341796875, 0.0092926025390625, -0.0024929046630859375, 0.030029296875, 0.0572509765625, -0.010528564453125, 0.04925537109375, -0.001239776611328125, -0.006488800048828125, -0.066650390625, 0.022735595703125, -0.0118408203125, -0.00835418701171875, -0.027374267578125, -0.038482666015625, 0.05328369140625, 0.044586181640625, 0.0300140380859375, 0.036651611328125, -0.019561767578125, 0.005352020263671875, 0.03668212890625, -0.0335693359375, 0.01503753662109375, 0.0258026123046875, -0.07562255859375, 0.0259552001953125, -0.0229034423828125, -0.0242767333984375, 0.00994110107421875, 0.003887176513671875, -0.01483917236328125, 0.003078460693359375, 0.016204833984375, 0.0087890625, 0.048004150390625, 0.05780029296875, -0.0259552001953125, 0.02581787109375, 0.037322998046875, 0.0010251998901367188, 0.030303955078125, 0.022430419921875, -0.0289154052734375, -0.034942626953125, 0.0173797607421875, 0.01027679443359375, -0.001911163330078125, -0.018341064453125, -0.07904052734375, -0.0089874267578125, 0.0201416015625, -0.00965118408203125, 0.0029315948486328125, 0.00742340087890625, -0.033538818359375, 0.0004711151123046875, -0.00872039794921875, 0.01184844970703125, -0.01078033447265625, 0.01511383056640625, -0.044281005859375, -0.0206298828125, -0.0555419921875, 0.00205230712890625, -0.040496826171875, -0.01007080078125, 0.0338134765625, -0.0022563934326171875, -0.013153076171875, -0.016998291015625, 0.0243682861328125, 0.024078369140625, -0.01204681396484375, -0.022430419921875, -0.01113128662109375, 0.0208740234375, 0.0024852752685546875, -0.0179290771484375, -0.0052490234375, 0.019012451171875, -0.002147674560546875, -0.00301361083984375, 0.00566864013671875, 0.0205841064453125, -0.049041748046875, -0.077392578125, -0.0350341796875, 0.01108551025390625, -0.0450439453125, 0.0191192626953125, -0.057586669921875, -0.042938232421875, 0.037628173828125, 0.01375579833984375, 0.0015535354614257812, -0.0231475830078125, 0.037872314453125, 0.002788543701171875, 0.0687255859375, -0.004688262939453125, -0.0078887939453125, -0.0013513565063476562, 0.036956787109375, 0.02392578125, 0.00868988037109375, -0.0035648345947265625, -0.005428314208984375, 0.004405975341796875, 0.0261383056640625, -0.0384521484375, -0.059783935546875, -0.01215362548828125, -0.0150146484375, -0.01910400390625, -0.0377197265625, -0.004344940185546875, -0.01021575927734375, 0.02801513671875, 0.03155517578125, -0.007007598876953125, -0.0154571533203125, 0.06121826171875, 0.01343536376953125, 0.021514892578125, 0.0241851806640625, -0.0295562744140625, -0.006572723388671875, -0.02581787109375, 0.0212554931640625, 0.00818634033203125, 0.036834716796875, -0.035980224609375, 0.01230621337890625, -0.018157958984375, 0.0304718017578125, 0.020599365234375, -0.045257568359375, -0.05987548828125, 0.0543212890625, -0.059967041015625, -0.0750732421875, 0.0018825531005859375, 0.03662109375, -0.0367431640625, -0.03826904296875, -0.072265625, 0.037017822265625, -0.0640869140625, -0.005077362060546875, -0.0340576171875, 0.05572509765625, -0.0283660888671875, 0.056640625, 0.018463134765625, -0.00244903564453125, -0.0255584716796875, -0.016998291015625, -0.0006594657897949219, 0.0084228515625, -0.035736083984375, 0.051513671875, -0.0192108154296875, 0.0311126708984375, -0.0253448486328125, 0.05010986328125, -0.006336212158203125, -0.0032749176025390625, 0.017486572265625, -0.045379638671875, 0.0192413330078125, 0.03472900390625, -0.002468109130859375, -0.03411865234375, -0.0045318603515625, 0.034271240234375, 0.026092529296875, 0.020904541015625 ]
efa2f736e871e68676b3efe748b5613562a83ff5
Wordpress Stackexchange Q: Can't preview drafts after upgrade to 4.0! I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my computer but with no success. Also, I've checked my Site and Wordpress URLs and they were the same as before I updated my site: http://example.com/wordpress http://example.com/leicester A: Do you have any kind of cache plugin used? Perhaps to help speed up the website. If Yes that just may be the issue here. Another suggestion is change the current active theme to any default WP theme (twentyThirteen, TwentyFourteen), and then see if Preview give you an issue. If it does not, then its possible that there is an issue with your current theme. If the Preview issue persists, de-active all your plugins and check Preview with the default theme. Preview should work fine now. Next, one by one, activate each plugin and check preview until you discover which plugin is causing this problem. Hope this helps.
Q: Can't preview drafts after upgrade to 4.0! I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my computer but with no success. Also, I've checked my Site and Wordpress URLs and they were the same as before I updated my site: http://example.com/wordpress http://example.com/leicester A: Do you have any kind of cache plugin used? Perhaps to help speed up the website. If Yes that just may be the issue here. Another suggestion is change the current active theme to any default WP theme (twentyThirteen, TwentyFourteen), and then see if Preview give you an issue. If it does not, then its possible that there is an issue with your current theme. If the Preview issue persists, de-active all your plugins and check Preview with the default theme. Preview should work fine now. Next, one by one, activate each plugin and check preview until you discover which plugin is causing this problem. Hope this helps.
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:448979", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161886" }
[ 0.014190673828125, -0.040802001953125, 0.024688720703125, -0.02801513671875, -0.0328369140625, -0.01395416259765625, 0.016204833984375, -0.01009368896484375, 0.052978515625, 0.023712158203125, -0.057861328125, -0.01306915283203125, -0.02850341796875, -0.002460479736328125, -0.0697021484375, -0.046966552734375, 0.04351806640625, -0.06732177734375, 0.0016908645629882812, -0.0245513916015625, 0.01580810546875, -0.0159454345703125, 0.04449462890625, 0.059844970703125, -0.0005083084106445312, 0.047027587890625, 0.0289154052734375, -0.033233642578125, -0.007389068603515625, -0.0297698974609375, -0.0003826618194580078, -0.0014009475708007812, 0.0214080810546875, 0.021484375, -0.0341796875, 0.01314544677734375, 0.028045654296875, 0.0009455680847167969, 0.0052947998046875, 0.0216064453125, 0.0226898193359375, -0.01183319091796875, -0.04449462890625, 0.01497650146484375, -0.0338134765625, -0.05535888671875, 0.04119873046875, -0.0286102294921875, 0.0128936767578125, 0.0007047653198242188, -0.007801055908203125, -0.01605224609375, 0.00276947021484375, 0.0275421142578125, -0.02459716796875, -0.046600341796875, 0.023590087890625, 0.053955078125, 0.01113128662109375, -0.01544189453125, -0.002124786376953125, 0.06048583984375, -0.01076507568359375, 0.0162811279296875, -0.0158233642578125, 0.01183319091796875, 0.03253173828125, -0.0211944580078125, 0.02294921875, 0.004669189453125, 0.007049560546875, 0.00769805908203125, 0.01059722900390625, -0.033966064453125, 0.02911376953125, 0.02447509765625, -0.0277557373046875, -0.0010919570922851562, 0.0279388427734375, 0.01543426513671875, -0.00783538818359375, -0.004940032958984375, -0.1072998046875, -0.029937744140625, 0.02667236328125, 0.0015087127685546875, -0.0118865966796875, -0.0170745849609375, 0.0009584426879882812, 0.01207733154296875, -0.00855255126953125, -0.0667724609375, 0.05950927734375, 0.03143310546875, -0.019927978515625, -0.01410675048828125, 0.02679443359375, 0.0352783203125, -0.00647735595703125, -0.0063018798828125, -0.01419830322265625, -0.0269775390625, -0.006458282470703125, -0.028900146484375, -0.01479339599609375, 0.0120391845703125, -0.000530242919921875, 0.0178985595703125, 0.0322265625, 0.04412841796875, 0.0103912353515625, -0.00722503662109375, -0.01129913330078125, -0.0362548828125, -0.0255279541015625, 0.032135009765625, -0.01708984375, 0.02252197265625, 0.003753662109375, 0.0182952880859375, 0.004611968994140625, 0.0411376953125, -0.034149169921875, -0.0267791748046875, 0.0234222412109375, -0.0011806488037109375, -0.0127716064453125, 0.0034027099609375, 0.01318359375, 0.01873779296875, -0.02142333984375, 0.01285552978515625, 0.0186614990234375, 0.0240020751953125, -0.007068634033203125, -0.0115966796875, 0.036712646484375, -0.0214691162109375, -0.01207733154296875, 0.01116180419921875, -0.0087738037109375, -0.01470947265625, 0.01800537109375, -0.02508544921875, -0.00582122802734375, 0.0301513671875, 0.03717041015625, 0.0018148422241210938, -0.004589080810546875, -0.0277252197265625, -0.03839111328125, 0.0225372314453125, 0.018524169921875, 0.00518798828125, 0.03338623046875, -0.05657958984375, 0.0504150390625, -0.058349609375, 0.040924072265625, -0.048980712890625, 0.07440185546875, 0.007511138916015625, -0.01461029052734375, 0.007076263427734375, -0.00597381591796875, -0.0171356201171875, -0.065673828125, -0.00009381771087646484, 0.03143310546875, 0.006038665771484375, -0.002559661865234375, -0.0221405029296875, 0.050689697265625, 0.0261077880859375, -0.00833892822265625, 0.047027587890625, 0.0457763671875, -0.0157623291015625, 0.00042939186096191406, 0.0455322265625, -0.01186370849609375, -0.0156707763671875, 0.052032470703125, -0.05078125, -0.01491546630859375, -0.022308349609375, 0.00545501708984375, -0.01018524169921875, 0.0194549560546875, 0.0003223419189453125, 0.00572967529296875, 0.031524658203125, -0.01166534423828125, 0.04656982421875, 0.0209503173828125, -0.026702880859375, -0.0233306884765625, 0.00995635986328125, -0.0131683349609375, -0.0504150390625, 0.053619384765625, 0.005645751953125, 0.0335693359375, -0.034454345703125, -0.0026950836181640625, -0.004138946533203125, 0.004207611083984375, 0.0128173828125, 0.01776123046875, 0.0029087066650390625, 0.0211181640625, -0.00044083595275878906, -0.04461669921875, 0.0291595458984375, -0.041839599609375, 0.0208587646484375, -0.0018444061279296875, 0.048614501953125, 0.036529541015625, 0.008331298828125, 0.058868408203125, -0.01459503173828125, 0.05126953125, -0.005870819091796875, 0.027618408203125, -0.04583740234375, 0.0164794921875, -0.03369140625, 0.06085205078125, -0.0090179443359375, 0.0220184326171875, 0.00927734375, -0.025604248046875, 0.0178070068359375, 0.020965576171875, -0.01313018798828125, 0.0299072265625, -0.10491943359375, 0.035675048828125, 0.040618896484375, 0.03436279296875, -0.0076904296875, -0.0311126708984375, -0.046630859375, 0.0562744140625, -0.0172882080078125, 0.0110626220703125, -0.0207977294921875, 0.011138916015625, 0.051239013671875, 0.026580810546875, 0.01004791259765625, 0.006954193115234375, 0.00627899169921875, -0.006664276123046875, 0.025115966796875, 0.01262664794921875, -0.000560760498046875, -0.02056884765625, 0.01200103759765625, 0.02685546875, -0.0166015625, -0.048614501953125, 0.01114654541015625, 0.038421630859375, -0.0209808349609375, 0.0321044921875, 0.030029296875, -0.0031108856201171875, -0.01140594482421875, -0.0009646415710449219, -0.0133209228515625, 0.0244140625, 0.0288543701171875, -0.0013427734375, 0.06976318359375, -0.01450347900390625, -0.0309295654296875, 0.050201416015625, 0.035552978515625, -0.0195770263671875, 0.0389404296875, -0.0094146728515625, -0.026885986328125, -0.014495849609375, -0.0024852752685546875, -0.006496429443359375, -0.030364990234375, 0.0056610107421875, 0.007175445556640625, 0.05755615234375, -0.00910186767578125, 0.005558013916015625, -0.01091766357421875, -0.0231170654296875, -0.01239776611328125, 0.0204010009765625, -0.037628173828125, 0.03448486328125, -0.0109100341796875, 0.039276123046875, 0.07220458984375, 0.01110076904296875, 0.00396728515625, -0.006671905517578125, 0.01155853271484375, 0.0107574462890625, -0.00006300210952758789, -0.0239105224609375, 0.001094818115234375, -0.07061767578125, -0.0270538330078125, 0.031097412109375, 0.017913818359375, 0.0165252685546875, 0.0036602020263671875, -0.0162353515625, 0.045654296875, -0.00046324729919433594, 0.014190673828125, -0.0765380859375, -0.0240478515625, -0.01058197021484375, -0.0214385986328125, -0.0068359375, 0.0226593017578125, -0.0210113525390625, 0.016571044921875, -0.045318603515625, 0.0067596435546875, -0.0662841796875, -0.0693359375, -0.08111572265625, -0.038360595703125, -0.007190704345703125, 0.0489501953125, 0.0193939208984375, -0.0017251968383789062, 0.000782012939453125, -0.0140838623046875, 0.010101318359375, 0.04010009765625, -0.01068878173828125, -0.024322509765625, 0.0118255615234375, -0.0026454925537109375, 0.01267242431640625, 0.0147705078125, 0.044036865234375, 0.012176513671875, -0.0164947509765625, -0.036346435546875, -0.0355224609375, -0.045501708984375, -0.037445068359375, 0.0797119140625, 0.038482666015625, -0.049163818359375, 0.0269317626953125, -0.051849365234375, 0.01450347900390625, 0.006748199462890625, -0.0265350341796875, -0.010711669921875, 0.0290679931640625, -0.0421142578125, -0.009490966796875, -0.029327392578125, 0.0095062255859375, 0.0226593017578125, 0.047821044921875, 0.00997161865234375, 0.006916046142578125, -0.03668212890625, -0.04315185546875, -0.0467529296875, 0.04058837890625, -0.00258636474609375, 0.027862548828125, 0.0157928466796875, 0.04620361328125, 0.01515960693359375, -0.0005631446838378906, -0.033966064453125, -0.08160400390625, 0.026519775390625, -0.1373291015625, -0.0247039794921875, -0.07293701171875, 0.02239990234375, -0.0218963623046875, 0.08966064453125, -0.005519866943359375, 0.000606536865234375, 0.0040130615234375, -0.00962066650390625, -0.0207672119140625, 0.002002716064453125, -0.051483154296875, 0.00489044189453125, 0.015716552734375, -0.0118865966796875, -0.0206756591796875, -0.00571441650390625, -0.036590576171875, -0.06268310546875, 0.0285491943359375, -0.01422119140625, 0.0335693359375, -0.01444244384765625, 0.01116943359375, -0.0180816650390625, 0.001953125, -0.042388916015625, -0.00788116455078125, -0.025848388671875, -0.11199951171875, -0.0220184326171875, -0.003070831298828125, 0.060577392578125, -0.028228759765625, 0.038360595703125, -0.02410888671875, 0.05859375, -0.0041351318359375, 0.027435302734375, -0.0262298583984375, 0.023956298828125, -0.06878662109375, -0.02252197265625, -0.012054443359375, -0.0343017578125, -0.0122528076171875, -0.01904296875, -0.034423828125, 0.0019102096557617188, -0.0135650634765625, -0.001186370849609375, 0.0099639892578125, -0.0185546875, -0.0243377685546875, -0.02099609375, -0.0037670135498046875, 0.0198516845703125, -0.0020923614501953125, 0.0095672607421875, -0.041046142578125, -0.0291595458984375, 0.0103607177734375, -0.041015625, 0.00958251953125, -0.01284027099609375, 0.061279296875, 0.019561767578125, -0.00536346435546875, 0.073974609375, -0.0106201171875, 0.04083251953125, 0.001201629638671875, 0.0294952392578125, 0.023590087890625, -0.02520751953125, 0.043792724609375, 0.0141754150390625, -0.03399658203125, 0.02203369140625, -0.01299285888671875, 0.0291900634765625, -0.04180908203125, 0.001068115234375, 0.0099334716796875, 0.02587890625, 0.037353515625, 0.0050201416015625, -0.03741455078125, -0.0116424560546875, 0.06298828125, 0.00513458251953125, 0.01056671142578125, -0.044189453125, -0.055084228515625, 0.0281524658203125, -0.040435791015625, 0.026885986328125, -0.0012140274047851562, 0.0086669921875, 0.0242767333984375, 0.01255035400390625, -0.023223876953125, -0.00974273681640625, -0.0255279541015625, -0.0011615753173828125, -0.0157928466796875, 0.0201263427734375, -0.02154541015625, 0.00015616416931152344, -0.024322509765625, 0.07293701171875, 0.0205535888671875, -0.0860595703125, 0.0240478515625, 0.007007598876953125, 0.0299530029296875, 0.0020771026611328125, -0.023284912109375, -0.01030731201171875, 0.02398681640625, 0.022308349609375, 0.01031494140625, -0.02288818359375, 0.05560302734375, 0.0005893707275390625, 0.06829833984375, 0.004146575927734375, -0.0082244873046875, 0.031768798828125, 0.0023784637451171875, -0.03021240234375, 0.02117919921875, 0.01053619384765625, -0.00885772705078125, 0.037261962890625, -0.020477294921875, 0.031768798828125, 0.01922607421875, 0.0021305084228515625, -0.05133056640625, 0.04193115234375, -0.006420135498046875, -0.01551055908203125, -0.0037593841552734375, 0.01006317138671875, -0.034088134765625, -0.005672454833984375, 0.051605224609375, -0.006099700927734375, -0.006572723388671875, 0.007663726806640625, -0.0202789306640625, -0.040252685546875, 0.00943756103515625, 0.003787994384765625, -0.0233612060546875, -0.02276611328125, -0.0174713134765625, -0.0033702850341796875, 0.0052032470703125, 0.0304107666015625, -0.034912109375, -0.0183868408203125, 0.045684814453125, 0.033477783203125, -0.00455474853515625, -0.0254974365234375, 0.01097869873046875, -0.0618896484375, 0.024658203125, -0.043609619140625, -0.0195159912109375, 0.0867919921875, -0.00730133056640625, -0.00672149658203125, -0.02490234375, 0.0006632804870605469, -0.040191650390625, 0.01296234130859375, 0.00844573974609375, -0.022735595703125, -0.01210784912109375, -0.048004150390625, -0.0294952392578125, -0.048583984375, -0.005260467529296875, 0.00815582275390625, -0.0276641845703125, 0.0209503173828125, -0.003498077392578125, 0.024261474609375, -0.020782470703125, -0.00943756103515625, -0.03167724609375, 0.032867431640625, 0.02032470703125, 0.09429931640625, 0.03375244140625, 0.0167236328125, -0.01494598388671875, 0.0167236328125, 0.0233001708984375, 0.0248260498046875, -0.0234375, -0.045196533203125, 0.041534423828125, -0.0172576904296875, -0.054107666015625, -0.042755126953125, -0.0304107666015625, 0.0032558441162109375, 0.04779052734375, -0.02252197265625, -0.0234375, -0.0523681640625, 0.014007568359375, -0.02069091796875, 0.076171875, -0.0457763671875, -0.07684326171875, 0.055511474609375, -0.035430908203125, 0.040557861328125, 0.0116729736328125, 0.0292816162109375, 0.0158233642578125, -0.0474853515625, 0.021514892578125, 0.0157012939453125, -0.0256805419921875, 0.0273590087890625, 0.050567626953125, -0.007320404052734375, 0.036895751953125, 0.0134124755859375, 0.01629638671875, 0.062347412109375, -0.0006704330444335938, 0.00677490234375, -0.019378662109375, 0.055450439453125, 0.0011081695556640625, -0.0270538330078125, 0.0170745849609375, -0.039459228515625, 0.0286407470703125, 0.055755615234375, 0.0594482421875, -0.10284423828125, 0.013641357421875, 0.0089569091796875, -0.034942626953125, 0.0312042236328125, 0.01053619384765625, -0.01526641845703125, -0.047027587890625, 0.050445556640625, -0.022308349609375, 0.00439453125, 0.030120849609375, -0.01203155517578125, -0.01479339599609375, 0.00261688232421875, 0.03350830078125, 0.0218505859375, -0.0243988037109375, 0.0162811279296875, 0.01727294921875, 0.008575439453125, -0.0096588134765625, 0.0083770751953125, -0.01195526123046875, -0.04150390625, -0.0206146240234375, -0.0026760101318359375, -0.00909423828125, -0.019500732421875, 0.01178741455078125, 0.0239715576171875, 0.0111083984375, 0.031646728515625, -0.006557464599609375, 0.005672454833984375, 0.0023784637451171875, 0.035858154296875, 0.0240325927734375, -0.0012083053588867188, 0.0270843505859375, 0.01381683349609375, -0.039337158203125, 0.0247955322265625, -0.01444244384765625, -0.0006995201110839844, 0.01384735107421875, 0.024658203125, 0.01453399658203125, -0.0029964447021484375, -0.0298919677734375, 0.056915283203125, -0.0247344970703125, -0.02850341796875, 0.014312744140625, -0.001094818115234375, -0.024871826171875, 0.0005626678466796875, 0.0131683349609375, 0.004749298095703125, -0.0003314018249511719, 0.02838134765625, -0.09832763671875, 0.0760498046875, -0.0182342529296875, 0.0921630859375, 0.024993896484375, -0.0020046234130859375, -0.0322265625, -0.042266845703125, -0.00818634033203125, 0.0171051025390625, -0.04681396484375, 0.02227783203125, -0.007663726806640625, 0.00403594970703125, -0.01331329345703125, 0.037384033203125, 0.05419921875, 0.00525665283203125, 0.01088714599609375, -0.0270538330078125, 0.0535888671875, 0.039520263671875, 0.003520965576171875, -0.0046539306640625, -0.004024505615234375, -0.0065155029296875, 0.0196990966796875, 0.005893707275390625, 0.037261962890625, -0.02294921875, -0.0302581787109375, 0.0016498565673828125, 0.0010347366333007812, -0.022796630859375, -0.0240478515625, 0.05816650390625, -0.06646728515625, -0.0135040283203125, 0.0357666015625, 0.0280609130859375, 0.0011548995971679688, 0.031158447265625, 0.01806640625, -0.012481689453125, 0.021728515625, -0.02947998046875, 0.046600341796875, 0.006107330322265625, -0.00847625732421875, -0.006175994873046875, 0.01059722900390625, 0.006549835205078125, -0.0186920166015625, -0.0033130645751953125, 0.039154052734375, -0.0308837890625, 0.01324462890625, 0.027801513671875, 0.01425933837890625, 0.0006732940673828125, 0.044342041015625, 0.0732421875, 0.0253753662109375, -0.034881591796875, -0.0179595947265625, 0.01508331298828125, -0.0189056396484375, 0.0007290840148925781, -0.0277099609375, -0.005306243896484375, -0.0228118896484375, -0.011627197265625, -0.0408935546875, -0.0294036865234375, 0.017913818359375, 0.0245208740234375, -0.00013554096221923828, 0.0137481689453125, 0.0143280029296875, -0.026458740234375, -0.026519775390625, 0.007106781005859375, 0.03021240234375, 0.002960205078125, -0.03155517578125, 0.054779052734375, 0.0196990966796875, 0.018402099609375, -0.01251220703125, 0.026123046875, 0.02691650390625, -0.01360321044921875, -0.007228851318359375, -0.0140838623046875, 0.044403076171875, 0.014862060546875, -0.026153564453125, -0.046112060546875, 0.000023245811462402344, -0.006328582763671875, -0.06732177734375, -0.036407470703125, -0.0120086669921875, -0.036041259765625, -0.047821044921875, -0.03167724609375, -0.006378173828125, 0.032562255859375, 0.00841522216796875, 0.02197265625, 0.0137481689453125, 0.046142578125, -0.036468505859375, 0.04583740234375, -0.0005865097045898438, -0.00641632080078125, 0.00890350341796875, -0.0225830078125, 0.0085296630859375, -0.011016845703125, -0.0682373046875, 0.024871826171875, -0.044769287109375, -0.03564453125, 0.005657196044921875, 0.0305633544921875, -0.0233306884765625, 0.0170440673828125, -0.057220458984375, 0.015838623046875, 0.0009703636169433594, -0.02581787109375, 0.0008826255798339844, 0.032073974609375, 0.00506591796875, -0.0071868896484375, -0.05792236328125, -0.0305633544921875, -0.007617950439453125, 0.039825439453125, -0.0161285400390625, 0.11492919921875, -0.034515380859375, -0.0001277923583984375, 0.044403076171875, 0.05224609375, -0.0310821533203125, 0.0091094970703125, 0.056060791015625, -0.0477294921875, 0.0036716461181640625, -0.01526641845703125, -0.0548095703125, 0.058929443359375, -0.0189361572265625, -0.00928497314453125, 0.030731201171875, 0.01482391357421875, -0.01155853271484375, 0.015960693359375, -0.00775146484375, -0.0290069580078125, -0.0224761962890625, -0.0092010498046875, -0.00914764404296875, 0.0116729736328125, -0.019012451171875, -0.037261962890625, 0.0382080078125, 0.03778076171875, -0.006923675537109375, 0.008056640625, -0.009063720703125, 0.0033397674560546875, 0.0274810791015625, 0.0265960693359375, 0.043121337890625, -0.003173828125, -0.0223236083984375, 0.0152435302734375, 0.002956390380859375, -0.0121612548828125, -0.0288543701171875, -0.0011568069458007812, 0.0174713134765625, -0.02508544921875, -0.007625579833984375, -0.055816650390625, -0.024078369140625, 0.018768310546875, 0.0174560546875, -0.019073486328125, -0.051513671875, -0.01105499267578125, -0.051971435546875, 0.006336212158203125, 0.03314208984375, -0.0207061767578125, 0.0187835693359375, -0.0203094482421875, 0.0240325927734375, 0.02203369140625, 0.00951385498046875, -0.07220458984375, 0.0751953125, -0.032440185546875, 0.00252532958984375, -0.00844573974609375, 0.004108428955078125, 0.0113525390625, 0.043426513671875, -0.0290985107421875, -0.0233001708984375, -0.02911376953125, 0.033966064453125, -0.04779052734375, 0.00275421142578125, 0.0284881591796875, -0.01023101806640625, -0.00485992431640625, -0.0244293212890625, 0.00960540771484375, 0.01715087890625, 0.00868988037109375, -0.03460693359375, -0.0086517333984375, 0.007476806640625, 0.032012939453125, -0.0360107421875, -0.0110321044921875, -0.03363037109375, -0.0171051025390625, -0.013275146484375, 0.019744873046875, 0.031463623046875, -0.034454345703125, -0.10888671875, -0.02886962890625, -0.013946533203125, -0.050384521484375, -0.040191650390625, -0.0181732177734375, -0.0163421630859375, 0.06585693359375, 0.0003185272216796875, -0.004146575927734375, -0.0167083740234375, 0.03277587890625, -0.00862884521484375, 0.04315185546875, -0.005924224853515625, 0.0217437744140625, -0.01763916015625, 0.0197601318359375, 0.0191192626953125, -0.04119873046875, -0.041534423828125, 0.0134735107421875, -0.0171356201171875, 0.016448974609375, -0.0207672119140625, -0.062103271484375, 0.024261474609375, -0.006561279296875, 0.040496826171875, 0.0267791748046875, -0.07183837890625, -0.01253509521484375, 0.00458526611328125, 0.061859130859375, 0.01953125, -0.01541900634765625, 0.042877197265625, -0.017364501953125, -0.07196044921875, -0.005519866943359375, 0.02374267578125, -0.035003662109375, -0.002140045166015625, 0.00988006591796875, 0.0115509033203125, -0.004634857177734375, 0.0021991729736328125, -0.0270843505859375, -0.04193115234375, -0.050445556640625, 0.0008182525634765625, -0.07830810546875, -0.002048492431640625, 0.05474853515625, -0.038604736328125, -0.0205535888671875, 0.02008056640625, 0.009124755859375, 0.01401519775390625, 0.00817108154296875, -0.0165863037109375, 0.00823211669921875, -0.01006317138671875, 0.0031986236572265625, 0.011993408203125, 0.040740966796875, -0.0035839080810546875, 0.0006952285766601562, 0.0014934539794921875, -0.006191253662109375, -0.01006317138671875, -0.01433563232421875, 0.0299072265625, -0.0222625732421875, -0.040679931640625, 0.048248291015625, 0.00445556640625, -0.005702972412109375, -0.00252532958984375, 0.01375579833984375, 0.00875091552734375, -0.0276336669921875, 0.038299560546875, -0.04376220703125, 0.019561767578125, 0.00377655029296875, 0.0288543701171875, -0.00811767578125, 0.01036834716796875, -0.04327392578125, -0.004703521728515625, 0.01165008544921875 ]
23df9d2d856dbc84d49e5e0ce98b044aa9aa86f7
Wordpress Stackexchange Q: How to change/rewrite the lost password url? I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now generate a 404 Manually going to /signin?action=lostpassword works. I came across the following code below which is suppose to make the change to however after some testing it doesn't seem to work //******************************************************* //Function to change to lost password url //******************************************************** add_filter('site_url', 'wplogin_filter', 10, 3); function wplogin_filter( $url, $path, $orig_scheme ){ $old = array( "/(wp-login\.php)/"); $new = array( "signin/"); //this can be change to login or whatever or may remain there return preg_replace( $old, $new, $url, 1); } add to .htaccess RewriteRule ^signin$ wp-login.php How can i modify the above code in order to change the url for the lost password? A: the solution is simple, there is a filter to change the lost password url. Try this : add_filter( 'lostpassword_url', 'wdm_lostpassword_url', 10, 0 ); function wdm_lostpassword_url() { return site_url('/signin?action=lostpassword'); }
Q: How to change/rewrite the lost password url? I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now generate a 404 Manually going to /signin?action=lostpassword works. I came across the following code below which is suppose to make the change to however after some testing it doesn't seem to work //******************************************************* //Function to change to lost password url //******************************************************** add_filter('site_url', 'wplogin_filter', 10, 3); function wplogin_filter( $url, $path, $orig_scheme ){ $old = array( "/(wp-login\.php)/"); $new = array( "signin/"); //this can be change to login or whatever or may remain there return preg_replace( $old, $new, $url, 1); } add to .htaccess RewriteRule ^signin$ wp-login.php How can i modify the above code in order to change the url for the lost password? A: the solution is simple, there is a filter to change the lost password url. Try this : add_filter( 'lostpassword_url', 'wdm_lostpassword_url', 10, 0 ); function wdm_lostpassword_url() { return site_url('/signin?action=lostpassword'); }
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:448986", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/161908" }
[ 0.0311737060546875, -0.00537109375, 0.00501251220703125, 0.0129852294921875, -0.00415802001953125, -0.03558349609375, 0.043670654296875, -0.041107177734375, -0.0031185150146484375, 0.00846099853515625, 0.016357421875, -0.019744873046875, -0.021728515625, -0.047119140625, 0.00836944580078125, -0.03741455078125, -0.01151275634765625, 0.023162841796875, 0.0123443603515625, -0.0193023681640625, 0.0220489501953125, -0.0178375244140625, -0.01187896728515625, -0.0236968994140625, 0.002696990966796875, 0.002544403076171875, 0.09893798828125, -0.02880859375, 0.00444793701171875, -0.01514434814453125, 0.00609588623046875, -0.040252685546875, 0.046875, -0.01494598388671875, -0.0163726806640625, -0.033203125, -0.0035419464111328125, -0.0157470703125, -0.042724609375, 0.03729248046875, 0.0261077880859375, -0.01068878173828125, 0.01116180419921875, -0.0009822845458984375, -0.0026073455810546875, -0.0305328369140625, 0.045867919921875, -0.0213623046875, 0.035675048828125, 0.0217437744140625, -0.0012187957763671875, 0.05133056640625, -0.00945281982421875, 0.0018510818481445312, -0.0167694091796875, -0.01727294921875, 0.0011758804321289062, 0.006744384765625, 0.007297515869140625, 0.025665283203125, -0.00542449951171875, 0.016632080078125, -0.0139007568359375, -0.0345458984375, -0.02825927734375, 0.0179443359375, 0.007904052734375, 0.0163116455078125, -0.0219268798828125, -0.041107177734375, -0.005496978759765625, -0.0253448486328125, -0.0005431175231933594, -0.002292633056640625, -0.01457977294921875, 0.01165008544921875, -0.0159912109375, 0.02801513671875, 0.0280609130859375, -0.0023193359375, 0.01355743408203125, 0.0013132095336914062, -0.004058837890625, -0.0250701904296875, 0.047088623046875, 0.031646728515625, 0.00738525390625, -0.035675048828125, -0.0291900634765625, 0.00028395652770996094, -0.023773193359375, 0.0034618377685546875, -0.035247802734375, -0.0027923583984375, -0.0194549560546875, -0.0201416015625, 0.02392578125, 0.00003451108932495117, 0.0240936279296875, -0.0262908935546875, -0.0009870529174804688, -0.04595947265625, -0.02886962890625, 0.0031948089599609375, -0.0162811279296875, 0.06976318359375, 0.0330810546875, 0.054595947265625, 0.010650634765625, -0.00762176513671875, 0.01125335693359375, 0.004199981689453125, -0.044708251953125, -0.0367431640625, -0.01210784912109375, 0.0196380615234375, -0.05120849609375, 0.00571441650390625, 0.010589599609375, -0.0026226043701171875, -0.06207275390625, -0.024810791015625, -0.0217437744140625, 0.028350830078125, -0.007137298583984375, -0.0341796875, 0.0143280029296875, 0.040802001953125, 0.0201416015625, 0.0345458984375, -0.053741455078125, 0.021728515625, 0.093017578125, -0.02276611328125, 0.0004227161407470703, -0.031646728515625, 0.04522705078125, 0.035369873046875, -0.015777587890625, 0.04815673828125, -0.0277862548828125, -0.046875, -0.0097503662109375, -0.007396697998046875, -0.0025634765625, 0.016876220703125, 0.01349639892578125, 0.01519775390625, 0.0095367431640625, -0.0650634765625, 0.033477783203125, -0.0302276611328125, -0.003925323486328125, 0.0301513671875, 0.0289154052734375, 0.024200439453125, 0.0745849609375, -0.0240325927734375, -0.032806396484375, -0.0016794204711914062, 0.0188751220703125, -0.01248931884765625, 0.0029354095458984375, 0.0321044921875, -0.005977630615234375, 0.0133819580078125, -0.0203094482421875, 0.004062652587890625, 0.023773193359375, 0.00682830810546875, 0.0154571533203125, 0.006519317626953125, -0.0167388916015625, 0.00865936279296875, 0.00757598876953125, -0.0088043212890625, -0.05328369140625, 0.08526611328125, 0.031768798828125, 0.0207366943359375, 0.04791259765625, -0.031463623046875, 0.07891845703125, 0.0255584716796875, -0.027587890625, -0.0031986236572265625, 0.01012420654296875, 0.0296478271484375, 0.015655517578125, 0.0299072265625, 0.00902557373046875, 0.0099639892578125, -0.00447845458984375, 0.041748046875, -0.0234375, -0.04486083984375, -0.024993896484375, -0.0096435546875, -0.031097412109375, 0.0189361572265625, 0.018402099609375, 0.004314422607421875, -0.02435302734375, -0.00531005859375, -0.0207977294921875, -0.0213470458984375, 0.005046844482421875, 0.01033782958984375, -0.049102783203125, 0.00970458984375, 0.039093017578125, -0.005153656005859375, -0.04827880859375, 0.005847930908203125, 0.00738525390625, -0.00940704345703125, -0.016998291015625, 0.034088134765625, 0.01495361328125, 0.04620361328125, 0.00872802734375, 0.0037384033203125, -0.0024662017822265625, -0.04693603515625, 0.003448486328125, -0.06524658203125, 0.01343536376953125, -0.04437255859375, 0.00040984153747558594, -0.02081298828125, -0.0156402587890625, 0.031494140625, 0.006137847900390625, 0.003170013427734375, -0.06317138671875, -0.018035888671875, -0.033843994140625, -0.026611328125, -0.0034084320068359375, 0.05389404296875, 0.052764892578125, 0.0302276611328125, -0.01043701171875, -0.0240631103515625, 0.06317138671875, -0.046600341796875, 0.0124053955078125, -0.00017023086547851562, -0.0243682861328125, 0.0005936622619628906, -0.02197265625, 0.00867462158203125, 0.031707763671875, -0.0080718994140625, -0.03887939453125, 0.06341552734375, -0.01042938232421875, -0.0177154541015625, -0.0128326416015625, 0.0028133392333984375, 0.01163482666015625, -0.0509033203125, -0.044708251953125, -0.0060577392578125, -0.032501220703125, -0.00833892822265625, -0.0193023681640625, -0.0188751220703125, -0.0209808349609375, -0.0029850006103515625, 0.0304107666015625, -0.0191497802734375, 0.0011348724365234375, 0.0467529296875, 0.00506591796875, -0.0149383544921875, 0.0071258544921875, -0.0280609130859375, -0.028839111328125, 0.0123748779296875, -0.00524139404296875, -0.0086517333984375, -0.048187255859375, 0.0028018951416015625, -0.0017251968383789062, -0.02630615234375, 0.01134490966796875, 0.04107666015625, 0.0212860107421875, -0.0012693405151367188, 0.047210693359375, -0.0171966552734375, 0.004901885986328125, 0.0102691650390625, -0.0025005340576171875, -0.036163330078125, -0.0228271484375, -0.035614013671875, 0.04541015625, -0.04876708984375, 0.01470947265625, 0.048065185546875, -0.003459930419921875, -0.004001617431640625, -0.0036106109619140625, 0.003753662109375, -0.016937255859375, 0.0173187255859375, -0.02203369140625, -0.003192901611328125, -0.061676025390625, -0.0122833251953125, 0.033203125, -0.0286102294921875, 0.01416778564453125, -0.004665374755859375, -0.0369873046875, 0.00943756103515625, -0.0704345703125, -0.046722412109375, -0.09552001953125, -0.0762939453125, -0.0222320556640625, 0.0523681640625, -0.0374755859375, 0.0312042236328125, 0.07763671875, 0.026641845703125, 0.054107666015625, -0.0191650390625, -0.055633544921875, -0.0014543533325195312, -0.069091796875, -0.016387939453125, -0.0091705322265625, -0.00988006591796875, 0.0009088516235351562, 0.00803375244140625, 0.00795745849609375, -0.0115966796875, 0.00452423095703125, 0.0445556640625, 0.00970458984375, -0.030853271484375, -0.01336669921875, -0.04010009765625, -0.006839752197265625, -0.0157928466796875, 0.046142578125, 0.0014810562133789062, 0.01177978515625, 0.032806396484375, -0.02294921875, -0.0281982421875, -0.004215240478515625, 0.0163726806640625, 0.0261993408203125, -0.0274200439453125, -0.00023174285888671875, -0.04351806640625, -0.0220184326171875, 0.002910614013671875, -0.0209197998046875, 0.08416748046875, 0.007549285888671875, -0.042205810546875, 0.043975830078125, 0.01398468017578125, 0.035888671875, -0.0014286041259765625, 0.004428863525390625, -0.01338958740234375, 0.0345458984375, -0.0015316009521484375, 0.017822265625, -0.032073974609375, 0.05029296875, -0.0167236328125, -0.04302978515625, -0.0034027099609375, 0.008392333984375, 0.0246124267578125, -0.041168212890625, 0.0111236572265625, -0.037200927734375, 0.0200347900390625, -0.10064697265625, -0.0116119384765625, -0.06329345703125, 0.0219879150390625, -0.04534912109375, 0.05792236328125, -0.01340484619140625, -0.03466796875, 0.004547119140625, 0.046478271484375, -0.045501708984375, -0.036956787109375, 0.0191497802734375, -0.002765655517578125, -0.10345458984375, -0.006572723388671875, -0.0132293701171875, -0.02972412109375, 0.0288238525390625, -0.0889892578125, -0.0008482933044433594, -0.07086181640625, 0.0268707275390625, 0.01336669921875, 0.0117034912109375, 0.0254364013671875, -0.0098419189453125, 0.006458282470703125, -0.00855255126953125, 0.002262115478515625, -0.043426513671875, -0.017852783203125, -0.0009870529174804688, 0.051544189453125, 0.049835205078125, -0.06756591796875, 0.0205841064453125, 0.04888916015625, 0.0044403076171875, -0.01739501953125, 0.032440185546875, -0.00821685791015625, 0.01739501953125, 0.019805908203125, 0.002552032470703125, -0.01232147216796875, -0.009063720703125, -0.0186004638671875, -0.05889892578125, 0.007297515869140625, -0.0081024169921875, 0.01861572265625, 0.043670654296875, -0.02606201171875, -0.042144775390625, -0.0135498046875, 0.02679443359375, 0.0235443115234375, 0.01337432861328125, -0.01264190673828125, -0.01491546630859375, -0.0280303955078125, 0.048675537109375, 0.01959228515625, -0.0100555419921875, -0.019927978515625, 0.011810302734375, 0.01320648193359375, -0.036834716796875, 0.070068359375, 0.0316162109375, 0.02642822265625, 0.0052337646484375, 0.0221710205078125, 0.004062652587890625, -0.0030002593994140625, 0.00811767578125, -0.015411376953125, -0.00914764404296875, 0.0276641845703125, -0.02685546875, 0.00024890899658203125, -0.035980224609375, 0.004291534423828125, -0.00289154052734375, 0.0117645263671875, 0.0253143310546875, -0.0015087127685546875, 0.0089263916015625, -0.004962921142578125, -0.00959014892578125, -0.0108795166015625, -0.01432037353515625, -0.0031833648681640625, -0.0288848876953125, 0.030609130859375, -0.0112152099609375, 0.0185089111328125, 0.00814056396484375, -0.0022945404052734375, -0.0122528076171875, -0.0181427001953125, -0.04949951171875, -0.054931640625, -0.04010009765625, -0.004978179931640625, -0.00945281982421875, -0.047088623046875, -0.0328369140625, -0.0155792236328125, -0.0200653076171875, 0.095458984375, 0.018218994140625, -0.0474853515625, 0.029022216796875, -0.032135009765625, 0.015533447265625, 0.01715087890625, -0.0221099853515625, 0.01175689697265625, -0.0341796875, -0.0216522216796875, 0.014007568359375, -0.03631591796875, -0.03466796875, -0.032867431640625, 0.07598876953125, 0.0278778076171875, -0.004726409912109375, 0.005157470703125, 0.0445556640625, 0.02685546875, 0.0170440673828125, -0.007328033447265625, -0.005641937255859375, 0.035369873046875, 0.01174163818359375, 0.0303955078125, 0.00846099853515625, 0.00042748451232910156, -0.00481414794921875, 0.05682373046875, -0.0220184326171875, -0.02337646484375, 0.005641937255859375, 0.028564453125, -0.02374267578125, 0.007114410400390625, 0.01369476318359375, -0.0016946792602539062, 0.022064208984375, 0.0169525146484375, -0.0518798828125, -0.05181884765625, -0.01016998291015625, 0.01114654541015625, 0.032440185546875, -0.047088623046875, 0.0007457733154296875, -0.065185546875, -0.03240966796875, -0.02777099609375, -0.004375457763671875, -0.0298309326171875, -0.0114288330078125, -0.017364501953125, -0.0032672882080078125, -0.0213470458984375, -0.0239715576171875, 0.00634765625, 0.0166015625, -0.0245208740234375, -0.0080413818359375, 0.0550537109375, -0.021514892578125, 0.0181427001953125, -0.0058441162109375, -0.01186370849609375, 0.05133056640625, 0.00551605224609375, 0.0206451416015625, -0.0234375, -0.04681396484375, 0.0002434253692626953, -0.005847930908203125, -0.003589630126953125, 0.013885498046875, -0.034454345703125, -0.032958984375, -0.03399658203125, 0.007335662841796875, 0.0243072509765625, 0.0003879070281982422, 0.0016565322875976562, 0.00457000732421875, -0.0209197998046875, -0.00846099853515625, 0.001163482666015625, -0.0025234222412109375, 0.04541015625, 0.0178680419921875, -0.00368499755859375, 0.036102294921875, 0.049530029296875, -0.01053619384765625, -0.0211639404296875, 0.003681182861328125, 0.007587432861328125, -0.0037288665771484375, -0.0535888671875, 0.04351806640625, 0.01001739501953125, 0.06256103515625, -0.0006680488586425781, -0.0302886962890625, 0.00907135009765625, -0.005214691162109375, -0.03497314453125, 0.06695556640625, 0.038909912109375, 0.017547607421875, -0.01265716552734375, -0.0180511474609375, 0.00994873046875, -0.025238037109375, 0.01311492919921875, 0.01239013671875, -0.0139617919921875, 0.001861572265625, 0.0232086181640625, -0.039642333984375, 0.030853271484375, 0.064453125, -0.0009417533874511719, 0.04278564453125, 0.001247406005859375, 0.01522064208984375, 0.038665771484375, -0.054779052734375, -0.02435302734375, 0.0335693359375, 0.0379638671875, 0.0013866424560546875, -0.0035305023193359375, 0.06024169921875, -0.005962371826171875, 0.01407623291015625, 0.059417724609375, 0.0258941650390625, -0.1048583984375, 0.006809234619140625, -0.005626678466796875, 0.01168060302734375, 0.0540771484375, 0.041595458984375, 0.003337860107421875, 0.0271453857421875, -0.0238037109375, -0.044464111328125, -0.00937652587890625, 0.004673004150390625, 0.01171875, 0.0037250518798828125, -0.0036106109619140625, 0.011016845703125, 0.00341796875, -0.054595947265625, 0.01381683349609375, 0.036346435546875, 0.022857666015625, -0.036376953125, -0.009674072265625, 0.041717529296875, -0.029144287109375, -0.06402587890625, 0.0307769775390625, 0.005779266357421875, -0.01372528076171875, -0.003002166748046875, 0.0017910003662109375, 0.040069580078125, 0.04541015625, 0.00348663330078125, -0.0092926025390625, -0.011199951171875, 0.01201629638671875, 0.08697509765625, -0.0124664306640625, 0.0179290771484375, -0.00787353515625, -0.02911376953125, -0.0081787109375, 0.005496978759765625, -0.027587890625, 0.004215240478515625, -0.0011568069458007812, 0.039093017578125, -0.0305938720703125, -0.0127105712890625, 0.028594970703125, -0.0120697021484375, -0.00007009506225585938, -0.0166015625, 0.015533447265625, -0.04998779296875, -0.0174102783203125, -0.01462554931640625, -0.03143310546875, 0.004154205322265625, -0.054443359375, -0.032470703125, 0.08404541015625, -0.020538330078125, 0.0110015869140625, 0.0213470458984375, 0.037567138671875, -0.01247406005859375, 0.038055419921875, -0.01061248779296875, 0.059539794921875, -0.033966064453125, 0.0290374755859375, 0.0139617919921875, 0.0307159423828125, 0.037200927734375, -0.021026611328125, 0.03826904296875, 0.030487060546875, -0.061309814453125, -0.03472900390625, -0.0091552734375, 0.017547607421875, 0.000016570091247558594, 0.06353759765625, 0.01226043701171875, 0.043304443359375, 0.0286865234375, -0.0631103515625, 0.016143798828125, -0.023406982421875, -0.005313873291015625, 0.037689208984375, -0.00942230224609375, -0.052337646484375, 0.0016937255859375, 0.00225830078125, -0.10089111328125, 0.031005859375, 0.05206298828125, -0.00146484375, 0.0190582275390625, 0.02099609375, 0.013458251953125, 0.00820159912109375, 0.0196380615234375, -0.0223236083984375, 0.03399658203125, -0.011688232421875, 0.0340576171875, 0.03857421875, 0.0267181396484375, 0.04443359375, -0.01316070556640625, 0.00627899169921875, 0.0091094970703125, -0.00009107589721679688, 0.0684814453125, 0.059326171875, 0.04705810546875, 0.0036067962646484375, 0.0498046875, 0.039459228515625, 0.07977294921875, -0.053436279296875, -0.043914794921875, 0.003391265869140625, 0.00426483154296875, 0.048370361328125, 0.0235595703125, 0.09600830078125, -0.04345703125, -0.0202789306640625, 0.005527496337890625, -0.0006375312805175781, 0.018218994140625, -0.0167083740234375, 0.0010843276977539062, 0.0081939697265625, 0.018707275390625, 0.046142578125, -0.0025806427001953125, -0.02130126953125, 0.0300750732421875, 0.0400390625, -0.01042938232421875, 0.0257720947265625, -0.0145111083984375, -0.004669189453125, -0.037017822265625, 0.0360107421875, -0.01016998291015625, 0.0289306640625, -0.037200927734375, -0.0174102783203125, -0.0238800048828125, 0.045928955078125, 0.0293426513671875, -0.007556915283203125, 0.03985595703125, 0.01279449462890625, -0.03424072265625, -0.009490966796875, -0.0177764892578125, -0.0258636474609375, 0.058135986328125, -0.004878997802734375, 0.003528594970703125, -0.01030731201171875, -0.0274200439453125, -0.048583984375, 0.0120391845703125, 0.021148681640625, 0.004932403564453125, 0.0229339599609375, 0.005161285400390625, 0.004283905029296875, 0.0006566047668457031, 0.0177001953125, 0.002834320068359375, 0.038909912109375, -0.04034423828125, 0.001659393310546875, -0.0293731689453125, -0.05926513671875, 0.0330810546875, 0.04461669921875, 0.00249481201171875, 0.00037670135498046875, -0.00255584716796875, -0.01654052734375, 0.0208282470703125, -0.01062774658203125, -0.014404296875, -0.00669097900390625, 0.027313232421875, -0.028106689453125, -0.08441162109375, -0.045928955078125, -0.04144287109375, 0.042205810546875, 0.0154266357421875, 0.10345458984375, -0.00426483154296875, 0.0263519287109375, -0.039642333984375, 0.00115203857421875, -0.04425048828125, -0.0177459716796875, -0.048004150390625, -0.0176544189453125, 0.0009045600891113281, 0.0244903564453125, -0.05078125, 0.069091796875, -0.0179443359375, 0.035400390625, 0.05926513671875, -0.053619384765625, -0.00159454345703125, 0.0166168212890625, 0.01221466064453125, -0.0263671875, -0.0657958984375, -0.029266357421875, 0.0321044921875, -0.006481170654296875, 0.02618408203125, -0.0275115966796875, 0.039642333984375, -0.053924560546875, -0.0168304443359375, 0.021575927734375, -0.041229248046875, 0.01222991943359375, 0.022186279296875, -0.0869140625, 0.01213836669921875, 0.004108428955078125, -0.0209503173828125, 0.01198577880859375, 0.0006508827209472656, -0.005435943603515625, -0.01067352294921875, 0.0029850006103515625, -0.0215911865234375, -0.0230255126953125, -0.0066680908203125, -0.0184326171875, -0.005229949951171875, -0.0128173828125, -0.01751708984375, 0.0298309326171875, 0.0032825469970703125, -0.006504058837890625, -0.03057861328125, -0.03875732421875, -0.017913818359375, -0.030364990234375, -0.04620361328125, 0.0030498504638671875, 0.0124664306640625, 0.0253448486328125, 0.01171112060546875, -0.06829833984375, 0.034881591796875, -0.01233673095703125, 0.045623779296875, -0.0083160400390625, -0.030517578125, 0.01849365234375, 0.04119873046875, -0.061126708984375, -0.029266357421875, -0.055633544921875, -0.03265380859375, -0.07684326171875, -0.0191192626953125, 0.03363037109375, 0.01494598388671875, 0.01904296875, -0.0677490234375, -0.0494384765625, -0.0188446044921875, -0.1199951171875, -0.01206207275390625, -0.0111083984375, 0.021331787109375, -0.0096435546875, -0.025604248046875, -0.00972747802734375, 0.0105133056640625, -0.01361846923828125, 0.029571533203125, -0.0116119384765625, 0.0026264190673828125, -0.03582763671875, -0.06182861328125, -0.005588531494140625, 0.022979736328125, -0.042938232421875, -0.06964111328125, 0.00821685791015625, -0.0203399658203125, 0.06317138671875, -0.01096343994140625, 0.0098419189453125, -0.0292816162109375, 0.02313232421875, 0.0136871337890625, 0.032012939453125, -0.0200653076171875, 0.04534912109375, -0.00989532470703125, 0.061737060546875, 0.046539306640625, 0.0044403076171875, -0.00217437744140625, 0.0017490386962890625, 0.0298309326171875, 0.052520751953125, -0.0063018798828125, 0.0114593505859375, -0.0005965232849121094, -0.0191802978515625, 0.0032978057861328125, -0.040924072265625, -0.00693511962890625, -0.0236358642578125, 0.033447265625, 0.00937652587890625, 0.0013294219970703125, 0.0035247802734375, -0.0301666259765625, -0.025787353515625, -0.0196685791015625, -0.016021728515625, 0.025634765625, -0.07159423828125, -0.025177001953125, 0.0184173583984375, -0.006412506103515625, -0.004276275634765625, -0.005580902099609375, -0.0186767578125, -0.0072021484375, -0.0120086669921875, -0.032745361328125, 0.01377105712890625, -0.0060577392578125, 0.100341796875, -0.06695556640625, 0.00020897388458251953, 0.020111083984375, 0.0263824462890625, 0.04559326171875, -0.0284576416015625, 0.0182647705078125, 0.0411376953125, -0.0195465087890625, -0.0003159046173095703, 0.018402099609375, 0.0039215087890625, -0.0129852294921875, -0.02301025390625, -0.0189056396484375, 0.0085601806640625, 0.0009007453918457031, -0.0010395050048828125, 0.003997802734375, -0.00482940673828125, 0.0005297660827636719, 0.0208740234375, -0.0179901123046875, 0.0064544677734375, -0.01067352294921875, 0.01163482666015625, 0.0127716064453125, -0.01045989990234375, 0.057891845703125, 0.004322052001953125, -0.00225830078125, 0.014495849609375, 0.0330810546875, -0.039642333984375, 0.044677734375, -0.01308441162109375, 0.032958984375, 0.024383544921875 ]