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
5a23e5e5b4b5adb0ac36ebcfecf58315e21a449b
Wordpress Stackexchange Q: Automattic's eCommerce Plugin Question Does anyone know what plugin Automattic uses for their eCommerce functionality in the MU installation of WordPress located on the free sub-domains at wordpress.com? Please share where it is available, or if it even is available. I suspect that it might be proprietary, but if not, I like to try and follow Automattics lead when developing my own WP sites to ensure better long-term stability. More Plugin Details If you have a wordpress.com account, you'll find the admin panel for the plugin here: {YOUR_USER_NAME}.wordpress.com/wp-admin/paid-upgrades.php. These two related resources are pulled from the wordpress.com source code: * */wp-admin/css/store-bundles.css */wp-content/admin-plugins/wpcom-billing/images/WPCOM-Billing-Paypal-Direct.png There are also multiple references to the plugin in this .pot file... open the link in your browser and do an on-page find for: wpcom-billing. Based on the above evidence, it appears that this eCommerce plugin resides in a directory called: wp-content/admin-plugins/wpcom-billing, but I'm also wondering if this could just be a modified version of the wp-ecommerce plugin. A: According to Dion Hulse of Automattic: 100% custom, most ecommerce plugins of the time (many years ago) were not suitable for the use, its not opensource either
Q: Automattic's eCommerce Plugin Question Does anyone know what plugin Automattic uses for their eCommerce functionality in the MU installation of WordPress located on the free sub-domains at wordpress.com? Please share where it is available, or if it even is available. I suspect that it might be proprietary, but if not, I like to try and follow Automattics lead when developing my own WP sites to ensure better long-term stability. More Plugin Details If you have a wordpress.com account, you'll find the admin panel for the plugin here: {YOUR_USER_NAME}.wordpress.com/wp-admin/paid-upgrades.php. These two related resources are pulled from the wordpress.com source code: * */wp-admin/css/store-bundles.css */wp-content/admin-plugins/wpcom-billing/images/WPCOM-Billing-Paypal-Direct.png There are also multiple references to the plugin in this .pot file... open the link in your browser and do an on-page find for: wpcom-billing. Based on the above evidence, it appears that this eCommerce plugin resides in a directory called: wp-content/admin-plugins/wpcom-billing, but I'm also wondering if this could just be a modified version of the wp-ecommerce plugin. A: According to Dion Hulse of Automattic: 100% custom, most ecommerce plugins of the time (many years ago) were not suitable for the use, its not opensource either
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:415240", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/35944" }
[ 0.004581451416015625, 0.00955963134765625, 0.00989532470703125, -0.0272216796875, -0.006420135498046875, 0.0010843276977539062, -0.0260467529296875, -0.0192718505859375, 0.035064697265625, 0.005615234375, -0.035369873046875, 0.006496429443359375, 0.0154571533203125, -0.00498199462890625, 0.0034885406494140625, -0.016326904296875, 0.0137481689453125, 0.002056121826171875, 0.032867431640625, -0.0003058910369873047, 0.0054168701171875, 0.01605224609375, 0.0251922607421875, -0.03875732421875, 0.01155853271484375, 0.0401611328125, 0.09124755859375, -0.04840087890625, 0.04095458984375, -0.0009326934814453125, 0.0222015380859375, -0.05712890625, 0.0265960693359375, -0.002346038818359375, -0.0086212158203125, -0.0309906005859375, -0.00408172607421875, -0.00487518310546875, -0.008453369140625, 0.031829833984375, 0.00902557373046875, -0.012908935546875, -0.022552490234375, -0.048004150390625, -0.04071044921875, 0.0109100341796875, -0.0227203369140625, -0.0039520263671875, 0.018890380859375, -0.0137481689453125, 0.018768310546875, -0.00620269775390625, 0.03790283203125, 0.00472259521484375, -0.010833740234375, 0.0106353759765625, -0.06787109375, 0.032958984375, 0.027313232421875, 0.034332275390625, 0.00937652587890625, -0.01497650146484375, 0.0020751953125, -0.03692626953125, -0.0011730194091796875, 0.01531982421875, -0.01442718505859375, 0.006313323974609375, 0.0030803680419921875, -0.01953125, -0.023406982421875, -0.02484130859375, 0.006366729736328125, 0.036590576171875, -0.0970458984375, -0.05218505859375, 0.04827880859375, -0.037841796875, 0.0164337158203125, -0.00933074951171875, 0.0146026611328125, 0.0096282958984375, 0.03643798828125, -0.029083251953125, 0.0211334228515625, -0.011474609375, -0.0012483596801757812, -0.0003981590270996094, -0.03680419921875, -0.02374267578125, -0.03082275390625, -0.01229095458984375, -0.0411376953125, 0.00452423095703125, -0.01056671142578125, 0.0005950927734375, 0.031463623046875, 0.05120849609375, -0.00252532958984375, 0.03363037109375, 0.028106689453125, -0.060302734375, 0.061126708984375, -0.04168701171875, -0.00305938720703125, 0.01141357421875, -0.0099334716796875, 0.006267547607421875, 0.023712158203125, 0.020904541015625, -0.01461029052734375, 0.00628662109375, 0.01415252685546875, -0.043731689453125, 0.00859832763671875, 0.01546478271484375, -0.00045299530029296875, 0.03887939453125, 0.0290069580078125, 0.0211181640625, -0.01055908203125, 0.005870819091796875, 0.02154541015625, -0.0238494873046875, 0.0010576248168945312, -0.00955963134765625, -0.004131317138671875, -0.032379150390625, -0.016937255859375, -0.00948333740234375, -0.017578125, 0.0187530517578125, 0.032623291015625, 0.01617431640625, -0.00885772705078125, -0.0031795501708984375, -0.0113983154296875, 0.0141754150390625, 0.01453399658203125, -0.00743865966796875, 0.032745361328125, -0.043060302734375, -0.007427215576171875, 0.034576416015625, 0.01444244384765625, -0.0300750732421875, 0.0202789306640625, 0.04608154296875, 0.0164031982421875, 0.0198822021484375, 0.0223846435546875, 0.022247314453125, 0.0170135498046875, 0.0133209228515625, 0.044769287109375, 0.062744140625, 0.03936767578125, 0.03460693359375, -0.05596923828125, 0.034423828125, -0.01097869873046875, -0.0208587646484375, -0.0177001953125, -0.061187744140625, -0.056396484375, 0.0128631591796875, -0.043548583984375, -0.0005097389221191406, 0.0298919677734375, -0.023651123046875, 0.009063720703125, 0.01001739501953125, 0.05035400390625, 0.041412353515625, 0.01351165771484375, 0.04217529296875, -0.0199127197265625, 0.027099609375, 0.06634521484375, -0.0136566162109375, -0.020294189453125, -0.01543426513671875, 0.1365966796875, -0.045684814453125, -0.050933837890625, -0.0005259513854980469, 0.00127410888671875, 0.050567626953125, 0.035125732421875, 0.01123046875, 0.00991058349609375, -0.0238800048828125, -0.0220184326171875, 0.051483154296875, 0.0068511962890625, -0.059173583984375, 0.000690460205078125, -0.0171356201171875, 0.0081329345703125, -0.027557373046875, -0.032958984375, -0.0036029815673828125, -0.0207672119140625, 0.041107177734375, -0.020965576171875, 0.01265716552734375, -0.01128387451171875, 0.00469207763671875, -0.036346435546875, 0.03277587890625, 0.0124664306640625, -0.0266876220703125, 0.0190277099609375, -0.0362548828125, -0.00933074951171875, -0.039947509765625, -0.0096588134765625, 0.08306884765625, 0.01221466064453125, 0.030792236328125, 0.06072998046875, -0.081787109375, 0.07568359375, 0.050811767578125, -0.0005102157592773438, 0.0390625, -0.031646728515625, 0.02001953125, 0.01557159423828125, 0.0282440185546875, 0.0214385986328125, -0.004566192626953125, -0.033416748046875, 0.0080413818359375, -0.0157012939453125, -0.0240020751953125, -0.0164031982421875, -0.09002685546875, 0.033660888671875, 0.061126708984375, 0.0426025390625, 0.01192474365234375, 0.011474609375, 0.01190185546875, 0.0712890625, -0.033355712890625, 0.0003840923309326172, 0.01290130615234375, -0.0252227783203125, 0.0101165771484375, -0.02392578125, 0.0347900390625, 0.033447265625, 0.0025348663330078125, 0.0002090930938720703, 0.051483154296875, -0.037506103515625, -0.01357269287109375, 0.01313018798828125, -0.023651123046875, 0.00872039794921875, -0.06298828125, -0.00545501708984375, -0.032196044921875, 0.0299224853515625, -0.0012979507446289062, 0.054046630859375, 0.03350830078125, 0.009490966796875, -0.025848388671875, -0.0077362060546875, -0.01387786865234375, 0.00656890869140625, -0.0081024169921875, 0.0001932382583618164, 0.01006317138671875, -0.058563232421875, 0.00635528564453125, 0.034820556640625, -0.0157928466796875, 0.0139007568359375, -0.003673553466796875, -0.01111602783203125, 0.0023899078369140625, 0.02642822265625, -0.0528564453125, 0.01525115966796875, 0.0175933837890625, -0.03857421875, -0.046173095703125, 0.01155853271484375, -0.0181884765625, -0.06005859375, 0.02740478515625, -0.0164337158203125, -0.04815673828125, 0.00913238525390625, -0.0168304443359375, 0.024444580078125, -0.0243072509765625, 0.03680419921875, 0.06298828125, -0.02191162109375, 0.0164794921875, 0.0063629150390625, -0.02508544921875, 0.038543701171875, -0.0273590087890625, -0.02081298828125, 0.0222625732421875, -0.07489013671875, -0.00608062744140625, 0.00310516357421875, 0.031280517578125, -0.023468017578125, -0.058349609375, -0.0131683349609375, -0.0004897117614746094, -0.1014404296875, -0.0804443359375, 0.028533935546875, -0.06866455078125, 0.017059326171875, -0.0335693359375, -0.0386962890625, -0.0302886962890625, 0.012969970703125, -0.0030117034912109375, -0.006977081298828125, -0.0219573974609375, -0.0330810546875, -0.055877685546875, -0.058135986328125, -0.037384033203125, 0.003574371337890625, 0.003631591796875, -0.0103302001953125, 0.040557861328125, 0.0142364501953125, -0.05474853515625, -0.00701904296875, 0.0556640625, 0.00948333740234375, 0.01226806640625, 0.016937255859375, 0.014862060546875, 0.00249481201171875, 0.0216522216796875, -0.0052947998046875, 0.009979248046875, -0.021453857421875, -0.03497314453125, -0.0079193115234375, 0.01227569580078125, -0.00418853759765625, 0.01119232177734375, 0.0077667236328125, -0.0194091796875, -0.02777099609375, -0.061614990234375, -0.006221771240234375, 0.0101318359375, -0.018096923828125, 0.038726806640625, -0.0313720703125, -0.0038356781005859375, 0.030548095703125, 0.0052337646484375, 0.0264739990234375, 0.00989532470703125, 0.0017938613891601562, -0.0225677490234375, 0.038726806640625, -0.00045752525329589844, 0.0266876220703125, -0.037109375, 0.050079345703125, -0.003429412841796875, 0.007904052734375, 0.023651123046875, 0.00848388671875, 0.009674072265625, -0.04058837890625, -0.047760009765625, -0.055145263671875, 0.0292816162109375, -0.053741455078125, 0.0091552734375, -0.04736328125, -0.020721435546875, -0.00958251953125, 0.1099853515625, -0.004718780517578125, -0.01474761962890625, 0.043060302734375, 0.0246734619140625, -0.0482177734375, 0.019287109375, -0.04632568359375, 0.002765655517578125, -0.0648193359375, -0.04083251953125, -0.0087127685546875, -0.06976318359375, 0.04437255859375, -0.060089111328125, -0.022918701171875, -0.033294677734375, 0.0227203369140625, -0.040191650390625, 0.038665771484375, -0.0174102783203125, 0.0274200439453125, -0.0543212890625, 0.0157623291015625, -0.055755615234375, -0.07037353515625, -0.0140838623046875, -0.0034389495849609375, 0.035858154296875, 0.0245361328125, -0.041015625, 0.00261688232421875, 0.05450439453125, -0.01134490966796875, 0.0135498046875, -0.037872314453125, 0.01299285888671875, -0.040924072265625, -0.032623291015625, -0.0210723876953125, -0.01666259765625, -0.020172119140625, -0.0283355712890625, -0.04150390625, 0.00839996337890625, 0.0187225341796875, 0.052093505859375, 0.036376953125, -0.00632476806640625, -0.013427734375, -0.01261138916015625, -0.03582763671875, -0.006893157958984375, -0.0491943359375, 0.007518768310546875, -0.005634307861328125, -0.04498291015625, 0.03204345703125, -0.022918701171875, 0.0294189453125, 0.025146484375, 0.0792236328125, 0.0025691986083984375, -0.013427734375, -0.03985595703125, -0.0175933837890625, 0.045379638671875, 0.06024169921875, -0.0265655517578125, -0.0209808349609375, -0.049896240234375, 0.04931640625, 0.0340576171875, 0.0187835693359375, -0.0290985107421875, 0.0357666015625, 0.00881195068359375, -0.015777587890625, 0.00800323486328125, 0.00637054443359375, 0.0130615234375, -0.0046539306640625, -0.016387939453125, -0.020172119140625, -0.0005130767822265625, 0.0109405517578125, 0.01200103759765625, 0.022735595703125, -0.01251983642578125, -0.058563232421875, 0.004680633544921875, 0.0131072998046875, 0.006885528564453125, 0.016632080078125, -0.00081634521484375, 0.0222625732421875, -0.005283355712890625, 0.0103607177734375, -0.007503509521484375, -0.012542724609375, 0.019073486328125, 0.0252838134765625, 0.0171661376953125, 0.0289764404296875, -0.01593017578125, 0.00659942626953125, -0.01959228515625, -0.0110626220703125, -0.0151824951171875, -0.058258056640625, -0.0030670166015625, 0.014434814453125, 0.002262115478515625, -0.03228759765625, 0.06243896484375, 0.0288238525390625, -0.03955078125, -0.0263214111328125, -0.04998779296875, -0.00785064697265625, -0.0665283203125, -0.01219940185546875, -0.021148681640625, -0.004886627197265625, 0.028594970703125, 0.018707275390625, -0.024993896484375, 0.03271484375, -0.0068206787109375, 0.030181884765625, 0.0150146484375, 0.0565185546875, -0.02288818359375, -0.03326416015625, 0.04150390625, 0.01806640625, 0.031951904296875, -0.0300140380859375, -0.02972412109375, 0.0213623046875, 0.018798828125, -0.0182037353515625, 0.00797271728515625, 0.002918243408203125, -0.004547119140625, -0.00958251953125, -0.00965118408203125, 0.0195465087890625, 0.0166015625, -0.0093841552734375, 0.0170745849609375, 0.0077362060546875, 0.024169921875, -0.0146331787109375, -0.005828857421875, -0.050201416015625, 0.0071868896484375, 0.0080413818359375, -0.0183563232421875, -0.007205963134765625, -0.00983428955078125, 0.032318115234375, -0.007526397705078125, -0.01202392578125, -0.027374267578125, -0.01554107666015625, -0.006412506103515625, -0.0107879638671875, 0.048797607421875, -0.03387451171875, 0.0181884765625, -0.037261962890625, -0.00951385498046875, -0.05242919921875, 0.029022216796875, 0.031402587890625, 0.0244903564453125, -0.0806884765625, -0.025146484375, -0.03436279296875, -0.04541015625, -0.007694244384765625, 0.03173828125, -0.0699462890625, 0.0177764892578125, -0.0025196075439453125, 0.038726806640625, -0.0245513916015625, -0.0238800048828125, -0.010986328125, -0.0201873779296875, 0.01300811767578125, 0.045867919921875, -0.028839111328125, 0.03857421875, 0.0106964111328125, 0.01221466064453125, -0.01219940185546875, 0.0195770263671875, 0.04876708984375, -0.01393890380859375, 0.002300262451171875, -0.037445068359375, -0.044158935546875, -0.0210418701171875, -0.0343017578125, 0.07293701171875, 0.07122802734375, -0.0126190185546875, 0.003955841064453125, 0.0054931640625, 0.01358795166015625, -0.0131072998046875, -0.02752685546875, 0.00977325439453125, -0.010101318359375, 0.0077362060546875, -0.01715087890625, 0.01580810546875, 0.022430419921875, -0.006885528564453125, 0.008544921875, -0.01381683349609375, 0.0116119384765625, 0.01194000244140625, -0.04620361328125, 0.06427001953125, 0.037139892578125, -0.01222991943359375, 0.02734375, 0.01372528076171875, 0.0059967041015625, 0.0205230712890625, 0.00035309791564941406, -0.01393890380859375, -0.01983642578125, 0.02691650390625, -0.003582000732421875, -0.0294647216796875, 0.021759033203125, -0.0213623046875, 0.01169586181640625, 0.04339599609375, 0.07867431640625, -0.0360107421875, -0.00882720947265625, 0.03192138671875, -0.048248291015625, -0.04254150390625, 0.0011138916015625, -0.01003265380859375, -0.034912109375, 0.0247344970703125, -0.0133819580078125, -0.016754150390625, -0.0010690689086914062, -0.0023593902587890625, -0.0202178955078125, 0.04541015625, -0.024017333984375, -0.0015506744384765625, -0.01641845703125, -0.018157958984375, 0.01189422607421875, 0.007801055908203125, -0.01331329345703125, -0.003662109375, 0.0287628173828125, -0.038543701171875, -0.046295166015625, 0.03167724609375, -0.0213470458984375, -0.0014562606811523438, -0.03790283203125, 0.02081298828125, 0.058349609375, 0.0692138671875, -0.0177459716796875, 0.002803802490234375, 0.06219482421875, 0.058563232421875, 0.049774169921875, -0.0246734619140625, 0.005786895751953125, 0.059539794921875, -0.0709228515625, 0.01009368896484375, -0.003993988037109375, 0.0198516845703125, 0.00446319580078125, 0.035400390625, 0.033966064453125, 0.00205230712890625, -0.030426025390625, 0.046630859375, -0.0058135986328125, -0.00975799560546875, -0.009002685546875, 0.041595458984375, -0.056060791015625, -0.0158538818359375, 0.01386260986328125, -0.0089569091796875, -0.0116424560546875, 0.0108489990234375, -0.016021728515625, 0.070556640625, -0.0072021484375, -0.0538330078125, 0.00951385498046875, 0.041351318359375, -0.018829345703125, 0.0208892822265625, -0.03802490234375, 0.02081298828125, 0.01056671142578125, -0.0262298583984375, -0.036468505859375, 0.00249481201171875, -0.055267333984375, -0.0272216796875, 0.0176544189453125, 0.0211334228515625, -0.067626953125, 0.0015411376953125, 0.01580810546875, -0.0023250579833984375, -0.005084991455078125, 0.0806884765625, 0.0027313232421875, 0.006809234619140625, 0.025909423828125, -0.023101806640625, 0.0328369140625, -0.041015625, 0.009490966796875, 0.021759033203125, 0.00823974609375, 0.021942138671875, -0.0238037109375, 0.00603485107421875, -0.01404571533203125, -0.0205841064453125, 0.022430419921875, -0.046905517578125, 0.037994384765625, -0.01387786865234375, -0.010040283203125, 0.041015625, -0.019378662109375, 0.019989013671875, 0.023193359375, -0.00868988037109375, -0.0084381103515625, 0.0295257568359375, 0.0124969482421875, -0.0023860931396484375, -0.0343017578125, -0.00582122802734375, -0.01279449462890625, -0.0218505859375, -0.034942626953125, -0.0186767578125, 0.0155181884765625, -0.0113525390625, 0.03143310546875, 0.03411865234375, -0.02978515625, -0.0081634521484375, -0.0321044921875, -0.0011548995971679688, -0.01220703125, 0.032989501953125, -0.0063323974609375, 0.01971435546875, -0.08941650390625, -0.0694580078125, -0.00771331787109375, -0.0026569366455078125, 0.045196533203125, -0.0191802978515625, 0.0254058837890625, 0.051239013671875, -0.029052734375, -0.01177978515625, 0.0013065338134765625, -0.033721923828125, 0.0174102783203125, 0.051544189453125, -0.0188751220703125, 0.0797119140625, -0.042266845703125, -0.0158233642578125, -0.0277862548828125, 0.0504150390625, 0.0206756591796875, 0.0307464599609375, -0.0679931640625, -0.0372314453125, 0.0199127197265625, 0.0479736328125, -0.01366424560546875, -0.00484466552734375, -0.00583648681640625, 0.055755615234375, 0.03997802734375, -0.01236724853515625, 0.04119873046875, 0.01410675048828125, 0.0165252685546875, -0.039337158203125, -0.01331329345703125, 0.004749298095703125, -0.002780914306640625, -0.0033664703369140625, -0.0172882080078125, 0.033966064453125, -0.0211639404296875, 0.01015472412109375, -0.01209259033203125, -0.046142578125, 0.01195526123046875, -0.005161285400390625, 0.048858642578125, -0.0126953125, -0.0616455078125, -0.0107879638671875, -0.05072021484375, 0.0272979736328125, -0.0223388671875, -0.0012483596801757812, 0.01468658447265625, 0.0167694091796875, -0.04266357421875, 0.018646240234375, -0.00418853759765625, -0.01154327392578125, -0.013763427734375, -0.0258026123046875, 0.01459503173828125, -0.0106048583984375, 0.006931304931640625, -0.0016584396362304688, -0.0240020751953125, 0.03839111328125, 0.01543426513671875, 0.06597900390625, -0.0328369140625, 0.0197906494140625, -0.0135955810546875, 0.00669097900390625, -0.03143310546875, -0.039154052734375, 0.0252227783203125, -0.034027099609375, -0.0243072509765625, 0.0138702392578125, -0.03778076171875, -0.03509521484375, 0.04656982421875, -0.04058837890625, -0.027252197265625, -0.015838623046875, 0.03790283203125, -0.0019550323486328125, 0.07647705078125, -0.011627197265625, -0.06964111328125, -0.080322265625, -0.0131072998046875, 0.02215576171875, 0.06884765625, 0.015350341796875, -0.001773834228515625, -0.0014142990112304688, 0.0070343017578125, 0.018096923828125, 0.031341552734375, 0.0205230712890625, 0.0207977294921875, -0.05615234375, 0.005054473876953125, 0.0496826171875, -0.0019130706787109375, 0.0036640167236328125, 0.0210418701171875, 0.048187255859375, 0.0181884765625, -0.01490020751953125, 0.019012451171875, 0.040802001953125, -0.00974273681640625, -0.072998046875, -0.0012445449829101562, 0.0655517578125, -0.01708984375, 0.034515380859375, -0.04901123046875, -0.002162933349609375, -0.034454345703125, -0.031829833984375, 0.00214385986328125, -0.0131378173828125, -0.0093536376953125, 0.01508331298828125, -0.01477813720703125, 0.050872802734375, 0.018646240234375, -0.0611572265625, 0.00597381591796875, -0.004642486572265625, 0.049224853515625, 0.017547607421875, 0.02130126953125, -0.0293731689453125, -0.027008056640625, -0.044586181640625, -0.012420654296875, -0.06768798828125, 0.0206756591796875, -0.0254974365234375, -0.01345062255859375, 0.01537322998046875, -0.02301025390625, -0.042724609375, -0.02734375, 0.0104522705078125, 0.005901336669921875, 0.0230560302734375, -0.01543426513671875, 0.0341796875, -0.002399444580078125, -0.01126861572265625, -0.031158447265625, -0.031158447265625, 0.01113128662109375, 0.01177215576171875, -0.031829833984375, 0.009796142578125, 0.00562286376953125, -0.0247802734375, 0.0117950439453125, -0.0350341796875, 0.01641845703125, -0.02099609375, -0.09783935546875, 0.04608154296875, 0.0141754150390625, 0.0017986297607421875, -0.035369873046875, 0.004695892333984375, -0.0228271484375, 0.04766845703125, 0.0247344970703125, 0.032073974609375, 0.0028514862060546875, 0.01279449462890625, -0.00875091552734375, 0.03369140625, 0.0205535888671875, 0.00013113021850585938, 0.0097503662109375, -0.0010156631469726562, 0.02655029296875, 0.05267333984375, -0.0186004638671875, -0.0281219482421875, -0.016845703125, -0.0292816162109375, 0.00609588623046875, 0.0284423828125, 0.006290435791015625, -0.021728515625, -0.003841400146484375, 0.0027713775634765625, -0.002620697021484375, 0.014984130859375, 0.0233612060546875, 0.01045989990234375, -0.0196990966796875, 0.0256195068359375, -0.001422882080078125, 0.0019588470458984375, 0.006256103515625, -0.0026912689208984375, -0.031829833984375, -0.0215606689453125, 0.048187255859375, -0.048553466796875, -0.00937652587890625, -0.00370025634765625, -0.04168701171875, -0.017333984375, 0.0180511474609375, 0.00921630859375, -0.03167724609375, -0.040283203125, 0.00928497314453125, -0.0135345458984375, -0.0192718505859375, 0.0044708251953125, 0.0238189697265625, 0.034423828125, -0.058502197265625, 0.00818634033203125, -0.01282501220703125, 0.0416259765625, -0.058837890625, -0.01534271240234375, -0.04827880859375, 0.01526641845703125, 0.0029888153076171875, 0.000766754150390625, -0.0185089111328125, 0.045623779296875, 0.025604248046875, 0.07891845703125, 0.03509521484375, -0.062744140625, -0.01227569580078125, 0.045928955078125, -0.008331298828125, -0.04180908203125, 0.0036373138427734375, -0.06640625, 0.01849365234375, 0.01395416259765625, 0.01441192626953125, -0.0004546642303466797, -0.0079498291015625, -0.026580810546875, -0.02178955078125, -0.0012960433959960938 ]
aaddf10daf3bb78dfd194dd42c65cf93a7a6d6f7
Wordpress Stackexchange Q: Removing Shortcodes from Child Theme I'm trying to remove the shortcodes from a child theme. In my functions.php file (for the child theme), I've put: function my_remove_shortcode(){ return ''; } add_shortcode('entry-twitter-link', 'my_remove_shortcode'); Where entry-twitter-link is a shortcode created in the parent. However, the entry still shows up on my posts. Ideas on what's wrong? A: Try this out. Remove the already added shortcode then add the new shortcode on the init hook. function shortcode_cleaner() { remove_shortcode( 'entry-twitter-link' ); // Not exactly required add_shortcode( 'entry-twitter-link', 'my_remove_shortcode' ); } add_action( 'init', 'shortcode_cleaner' ); function my_remove_shortcode(){ return ''; }
Q: Removing Shortcodes from Child Theme I'm trying to remove the shortcodes from a child theme. In my functions.php file (for the child theme), I've put: function my_remove_shortcode(){ return ''; } add_shortcode('entry-twitter-link', 'my_remove_shortcode'); Where entry-twitter-link is a shortcode created in the parent. However, the entry still shows up on my posts. Ideas on what's wrong? A: Try this out. Remove the already added shortcode then add the new shortcode on the init hook. function shortcode_cleaner() { remove_shortcode( 'entry-twitter-link' ); // Not exactly required add_shortcode( 'entry-twitter-link', 'my_remove_shortcode' ); } add_action( 'init', 'shortcode_cleaner' ); function my_remove_shortcode(){ return ''; } A: Thanks to Joshua's answer, and that's life saving indeed. :) BTW, I can propose a slightly different method. Suppose you have created a plugin and now you are going to release its pro version - so you have the full control over both the plugins, so you can follow something like this: Actual Plugin: if( !function_exists('wpse36092_shortcode') { function wpse36092_shortcode() { echo 'This'; //existing content } } add_shortcode( 'wpse36092', 'wpse36092_shortcode' ); Pro Plugin: function wpse36092_shortcode() { echo 'That'; //overwriting content } add_shortcode( 'wpse36092', 'wpse36092_shortcode' ); In this method, the name of the function should remain exact same. You can do the same thing in your Parent theme and Child theme too. But again, Joshua's answer was great.
wordpress
{ "language": "en", "length": 214, "provenance": "stackexchange_00019.jsonl.gz:415281", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36089" }
[ 0.044921875, 0.0006127357482910156, 0.034759521484375, 0.00678253173828125, -0.0008783340454101562, -0.0281829833984375, 0.0650634765625, -0.050689697265625, -0.044830322265625, 0.036346435546875, 0.018585205078125, -0.0015716552734375, -0.053192138671875, -0.0146484375, -0.045623779296875, -0.046539306640625, 0.01214599609375, -0.016632080078125, 0.004913330078125, -0.0155181884765625, -0.0021038055419921875, -0.007038116455078125, 0.01329803466796875, 0.0019407272338867188, 0.00653076171875, -0.036529541015625, 0.085693359375, -0.008270263671875, -0.004039764404296875, -0.0284423828125, 0.01483917236328125, 0.0177459716796875, 0.0147857666015625, 0.04058837890625, -0.04058837890625, 0.03131103515625, -0.0289306640625, 0.0148773193359375, 0.0018987655639648438, 0.0272216796875, 0.00662994384765625, -0.00661468505859375, 0.006317138671875, -0.00821685791015625, -0.0122528076171875, -0.03240966796875, 0.0179595947265625, -0.0357666015625, -0.052886962890625, -0.0181427001953125, 0.07501220703125, 0.00616455078125, 0.1033935546875, -0.0183868408203125, -0.00933837890625, 0.01433563232421875, -0.01322174072265625, -0.01403045654296875, 0.01490020751953125, 0.0080413818359375, 0.0007963180541992188, 0.009124755859375, 0.00502777099609375, -0.0038318634033203125, 0.0069122314453125, -0.003307342529296875, -0.0097808837890625, 0.0390625, -0.05712890625, 0.0165557861328125, 0.0345458984375, -0.0438232421875, -0.006305694580078125, -0.02685546875, -0.01381683349609375, 0.028839111328125, 0.00649261474609375, -0.0086669921875, -0.00036406517028808594, -0.009033203125, -0.00536346435546875, -0.01190948486328125, -0.032379150390625, 0.01116943359375, -0.0005817413330078125, 0.033294677734375, -0.01629638671875, -0.015533447265625, -0.0304718017578125, 0.01268768310546875, -0.02459716796875, -0.0247344970703125, -0.016357421875, 0.0274810791015625, 0.0025177001953125, 0.0154876708984375, 0.0445556640625, 0.06671142578125, -0.00860595703125, 0.006443023681640625, -0.0160675048828125, -0.037445068359375, 0.028778076171875, -0.05242919921875, -0.00262451171875, 0.01971435546875, -0.021636962890625, 0.012939453125, 0.04931640625, 0.052734375, 0.01195526123046875, 0.0073699951171875, -0.0238800048828125, 0.0025043487548828125, -0.022674560546875, 0.0177764892578125, -0.039825439453125, 0.00042176246643066406, -0.02142333984375, 0.01226806640625, 0.01337432861328125, -0.004199981689453125, 0.0140228271484375, 0.0080413818359375, 0.01171875, 0.005157470703125, -0.06085205078125, -0.0011396408081054688, 0.03094482421875, -0.01497650146484375, -0.06378173828125, 0.00946044921875, 0.09906005859375, 0.033721923828125, 0.0361328125, -0.0229644775390625, -0.01922607421875, -0.033782958984375, 0.023681640625, -0.01456451416015625, 0.060211181640625, -0.046173095703125, -0.0157470703125, 0.048797607421875, 0.0171356201171875, 0.0341796875, 0.0025730133056640625, 0.005977630615234375, 0.028411865234375, -0.040771484375, 0.01611328125, -0.05029296875, 0.0675048828125, -0.0096435546875, -0.00826263427734375, -0.043914794921875, 0.08343505859375, -0.056304931640625, -0.03643798828125, -0.06866455078125, 0.002529144287109375, -0.030364990234375, -0.01284027099609375, -0.011566162109375, -0.051544189453125, 0.0291595458984375, 0.0029087066650390625, 0.0009975433349609375, 0.008392333984375, -0.0014057159423828125, 0.033660888671875, -0.02093505859375, -0.06805419921875, 0.002895355224609375, 0.0269012451171875, 0.01453399658203125, -0.029083251953125, -0.0240936279296875, 0.034393310546875, -0.0012941360473632812, -0.012786865234375, -0.0239410400390625, 0.0031948089599609375, 0.0214996337890625, -0.0853271484375, 0.0204315185546875, 0.0266571044921875, 0.058349609375, -0.0026378631591796875, 0.01351165771484375, 0.0914306640625, 0.04083251953125, -0.00800323486328125, -0.02801513671875, 0.055450439453125, -0.03253173828125, -0.03656005859375, -0.047637939453125, 0.0095977783203125, 0.005664825439453125, -0.015380859375, -0.00267791748046875, 0.0245208740234375, -0.039947509765625, -0.0538330078125, 0.00609588623046875, -0.031707763671875, 0.0528564453125, -0.03302001953125, -0.006622314453125, 0.01806640625, -0.03411865234375, -0.0321044921875, 0.042938232421875, 0.0157623291015625, 0.050140380859375, -0.00850677490234375, 0.052947998046875, 0.004791259765625, 0.018798828125, 0.0232086181640625, -0.0166473388671875, 0.03167724609375, 0.006252288818359375, 0.03509521484375, -0.0325927734375, -0.0270538330078125, -0.04058837890625, -0.035064697265625, -0.007678985595703125, -0.08538818359375, 0.0679931640625, -0.0031280517578125, 0.006092071533203125, -0.053131103515625, -0.01435089111328125, -0.0302734375, 0.010833740234375, -0.006378173828125, 0.028472900390625, 0.052520751953125, 0.0557861328125, 0.01152801513671875, -0.0167694091796875, 0.10400390625, 0.01222991943359375, 0.0401611328125, -0.042236328125, 0.0296173095703125, 0.0703125, 0.022125244140625, -0.01389312744140625, -0.01239776611328125, -0.048553466796875, 0.0175323486328125, 0.0180206298828125, -0.0124359130859375, -0.037841796875, 0.0213165283203125, -0.003986358642578125, 0.014129638671875, -0.058135986328125, -0.045074462890625, -0.0174713134765625, 0.07073974609375, 0.026397705078125, 0.04302978515625, 0.033294677734375, -0.04656982421875, 0.0396728515625, 0.0158538818359375, -0.014617919921875, -0.007312774658203125, 0.043426513671875, 0.052642822265625, 0.0112152099609375, -0.033111572265625, -0.0159912109375, -0.01178741455078125, 0.04217529296875, 0.0203399658203125, 0.040069580078125, 0.056793212890625, -0.002826690673828125, -0.003498077392578125, -0.019866943359375, 0.0207672119140625, 0.01436614990234375, 0.0035400390625, -0.003692626953125, -0.0175323486328125, 0.0789794921875, -0.0010051727294921875, 0.051666259765625, 0.04132080078125, 0.0170135498046875, 0.032745361328125, -0.02398681640625, 0.036102294921875, -0.022247314453125, 0.0007677078247070312, 0.05523681640625, -0.01419830322265625, 0.0159454345703125, 0.006954193115234375, -0.027984619140625, -0.0345458984375, 0.00931549072265625, 0.00444793701171875, 0.01715087890625, -0.03924560546875, 0.06573486328125, 0.03277587890625, 0.0528564453125, 0.0160369873046875, -0.026519775390625, 0.022369384765625, 0.052734375, -0.02935791015625, -0.0592041015625, -0.00974273681640625, -0.0037899017333984375, -0.00411224365234375, -0.007106781005859375, -0.00714111328125, -0.0092620849609375, -0.00218963623046875, 0.0009560585021972656, 0.0263671875, -0.03460693359375, 0.004833221435546875, -0.00951385498046875, -0.035675048828125, -0.0033245086669921875, 0.021942138671875, 0.00414276123046875, 0.0034542083740234375, 0.0950927734375, 0.0201873779296875, -0.037200927734375, 0.0137939453125, -0.005870819091796875, -0.0256805419921875, 0.01206207275390625, 0.007350921630859375, -0.010345458984375, -0.0205841064453125, 0.0120086669921875, -0.03582763671875, 0.0055389404296875, -0.0025653839111328125, -0.0205078125, -0.0038814544677734375, -0.01080322265625, 0.0284881591796875, 0.025848388671875, -0.01006317138671875, -0.00832366943359375, 0.044036865234375, -0.038787841796875, -0.0235595703125, -0.023223876953125, -0.0457763671875, 0.0259857177734375, 0.0189666748046875, 0.007808685302734375, -0.01535797119140625, 0.0172882080078125, 0.050933837890625, 0.0228729248046875, 0.05029296875, 0.006671905517578125, 0.04290771484375, -0.0042266845703125, 0.00732421875, -0.08331298828125, 0.0100250244140625, -0.02655029296875, 0.00957489013671875, -0.01187896728515625, 0.01409912109375, -0.01369476318359375, 0.0287017822265625, -0.0182342529296875, -0.01251983642578125, 0.0299530029296875, -0.004337310791015625, 0.022918701171875, -0.019805908203125, -0.009002685546875, -0.0202178955078125, 0.03802490234375, -0.05474853515625, -0.0220947265625, -0.0199127197265625, -0.003787994384765625, 0.0157470703125, -0.00684356689453125, -0.0146331787109375, -0.03277587890625, -0.0841064453125, 0.0187835693359375, 0.0014390945434570312, -0.001834869384765625, -0.044830322265625, 0.046661376953125, -0.05108642578125, -0.0142059326171875, 0.040435791015625, -0.0147705078125, 0.0177459716796875, -0.027130126953125, 0.000438690185546875, -0.047698974609375, -0.01221466064453125, -0.0202178955078125, -0.01467132568359375, 0.01000213623046875, -0.05108642578125, 0.00890350341796875, 0.0494384765625, -0.03179931640625, 0.0162200927734375, 0.024627685546875, -0.0063934326171875, 0.0095977783203125, -0.01375579833984375, -0.00125885009765625, -0.05120849609375, 0.0660400390625, 0.0151519775390625, 0.007843017578125, 0.0028095245361328125, 0.0199127197265625, -0.0198822021484375, 0.052459716796875, -0.0023441314697265625, 0.0230865478515625, 0.04168701171875, -0.03387451171875, -0.04449462890625, -0.027801513671875, -0.0447998046875, 0.00475311279296875, -0.0169677734375, 0.0016908645629882812, -0.055145263671875, -0.052215576171875, 0.031341552734375, 0.01299285888671875, -0.034210205078125, -0.004215240478515625, 0.0294342041015625, 0.0263824462890625, -0.0306243896484375, 0.0213165283203125, 0.0244903564453125, 0.04693603515625, 0.00951385498046875, 0.05987548828125, 0.043243408203125, -0.02374267578125, 0.03863525390625, 0.036102294921875, 0.0028858184814453125, -0.0097198486328125, 0.059417724609375, 0.0189056396484375, 0.020660400390625, -0.0070648193359375, 0.02825927734375, -0.004917144775390625, -0.01181793212890625, -0.034088134765625, 0.01055908203125, -0.01273345947265625, 0.015655517578125, 0.0144500732421875, 0.0028972625732421875, -0.0391845703125, -0.02685546875, 0.02447509765625, 0.01776123046875, -0.01392364501953125, -0.0021457672119140625, 0.0064849853515625, -0.027130126953125, -0.03729248046875, 0.0197601318359375, -0.019012451171875, 0.00437164306640625, -0.06951904296875, 0.0489501953125, -0.0479736328125, -0.027008056640625, 0.00203704833984375, -0.01070404052734375, 0.05303955078125, 0.04144287109375, -0.0020542144775390625, 0.0025119781494140625, -0.0127716064453125, -0.01345062255859375, -0.0594482421875, 0.02313232421875, 0.02752685546875, -0.0095062255859375, 0.0079498291015625, 0.005146026611328125, -0.0222930908203125, 0.00719451904296875, -0.029754638671875, -0.04388427734375, -0.034942626953125, -0.0223388671875, 0.00870513916015625, -0.02166748046875, -0.0775146484375, 0.0225830078125, 0.022369384765625, -0.0176544189453125, -0.0023097991943359375, 0.0061187744140625, 0.02325439453125, -0.0090789794921875, 0.0305328369140625, -0.03265380859375, 0.04937744140625, -0.043914794921875, -0.033050537109375, 0.0440673828125, 0.05426025390625, -0.032012939453125, -0.0186614990234375, 0.00736236572265625, -0.005580902099609375, -0.026611328125, 0.0147705078125, 0.0202484130859375, -0.0042724609375, -0.0004520416259765625, 0.0022945404052734375, 0.00485992431640625, 0.032257080078125, 0.0162200927734375, -0.0389404296875, -0.0252227783203125, -0.0296173095703125, 0.04022216796875, -0.03326416015625, -0.039215087890625, -0.04656982421875, -0.0264739990234375, -0.01174163818359375, -0.017425537109375, -0.04632568359375, -0.057373046875, 0.0190887451171875, 0.0130157470703125, 0.0054779052734375, -0.0158233642578125, 0.015594482421875, -0.0294342041015625, 0.0120391845703125, -0.0281524658203125, -0.00739288330078125, 0.063720703125, 0.0215301513671875, -0.06683349609375, 0.01160430908203125, -0.048492431640625, 0.01262664794921875, -0.0391845703125, -0.06011962890625, -0.04010009765625, -0.0014734268188476562, -0.0285491943359375, 0.0202178955078125, -0.031280517578125, -0.007080078125, -0.00225830078125, 0.01528167724609375, -0.01399993896484375, 0.02471923828125, -0.01885986328125, 0.017791748046875, 0.0291290283203125, 0.01505279541015625, 0.034027099609375, 0.039276123046875, 0.054290771484375, -0.0675048828125, 0.040802001953125, -0.0401611328125, -0.0440673828125, -0.004283905029296875, -0.0187835693359375, -0.016143798828125, 0.0035495758056640625, -0.01580810546875, 0.01183319091796875, -0.01415252685546875, 0.00806427001953125, -0.0194854736328125, 0.0255584716796875, -0.004207611083984375, 0.00357818603515625, 0.01471710205078125, -0.01380157470703125, 0.0167999267578125, -0.02227783203125, 0.005893707275390625, -0.00949859619140625, -0.01280975341796875, -0.00839996337890625, 0.018310546875, -0.03814697265625, 0.0858154296875, 0.06085205078125, -0.025848388671875, 0.030303955078125, 0.0196990966796875, 0.00592803955078125, 0.01474761962890625, 0.048675537109375, 0.013702392578125, -0.0142974853515625, 0.057861328125, 0.0066375732421875, -0.004283905029296875, 0.0147552490234375, -0.03009033203125, -0.0226898193359375, 0.031219482421875, 0.02728271484375, -0.045135498046875, -0.00948333740234375, 0.0098419189453125, -0.0055389404296875, -0.007534027099609375, 0.01116180419921875, 0.010650634765625, -0.004184722900390625, -0.03045654296875, 0.012451171875, -0.0152587890625, -0.0024509429931640625, 0.00689697265625, 0.005825042724609375, -0.00025177001953125, 0.0836181640625, -0.0024242401123046875, -0.041412353515625, -0.01446533203125, 0.0215911865234375, 0.005847930908203125, -0.0372314453125, -0.005786895751953125, 0.0206756591796875, -0.052947998046875, -0.0797119140625, 0.0011692047119140625, 0.003223419189453125, -0.0008206367492675781, 0.007350921630859375, -0.0225830078125, 0.0002925395965576172, 0.034271240234375, -0.054443359375, 0.036651611328125, 0.0060577392578125, -0.022308349609375, 0.008087158203125, -0.026611328125, 0.0272216796875, -0.032318115234375, -0.059600830078125, -0.00039196014404296875, -0.04302978515625, -0.0262603759765625, -0.00994110107421875, -0.03790283203125, 0.057830810546875, -0.06500244140625, -0.0010223388671875, 0.014312744140625, -0.0058746337890625, -0.0032558441162109375, -0.0207366943359375, 0.0157623291015625, -0.04058837890625, -0.0185089111328125, -0.0150299072265625, -0.0357666015625, 0.0051422119140625, -0.043304443359375, -0.1259765625, 0.143798828125, 0.0168609619140625, 0.0772705078125, -0.0103759765625, 0.04791259765625, -0.0435791015625, 0.005428314208984375, -0.0257110595703125, 0.049560546875, 0.0665283203125, 0.01898193359375, -0.005764007568359375, -0.0240631103515625, 0.025634765625, 0.0352783203125, 0.04364013671875, 0.013641357421875, 0.029510498046875, -0.0197296142578125, 0.007659912109375, -0.005535125732421875, -0.050537109375, 0.0186614990234375, 0.0084686279296875, -0.037841796875, 0.01548004150390625, 0.012481689453125, 0.036102294921875, -0.0253448486328125, -0.0113677978515625, 0.01395416259765625, 0.01523590087890625, -0.007801055908203125, 0.0288543701171875, -0.00811767578125, -0.00807952880859375, 0.01532745361328125, -0.003902435302734375, 0.0014581680297851562, -0.002593994140625, 0.04296875, -0.0003311634063720703, 0.0021686553955078125, -0.051544189453125, -0.011871337890625, 0.028350830078125, 0.008575439453125, 0.060455322265625, 0.004093170166015625, 0.0277252197265625, -0.0023136138916015625, -0.0099639892578125, 0.0413818359375, 0.0572509765625, -0.077880859375, 0.0280609130859375, 0.0100250244140625, 0.03277587890625, -0.0323486328125, 0.0158233642578125, 0.0182647705078125, 0.03143310546875, -0.033966064453125, -0.025146484375, 0.0247344970703125, 0.016845703125, -0.0259246826171875, -0.01192474365234375, -0.0143280029296875, -0.03265380859375, 0.021575927734375, -0.0142059326171875, -0.00882720947265625, 0.020721435546875, 0.04351806640625, 0.0130462646484375, 0.04742431640625, -0.055328369140625, -0.037384033203125, -0.0028705596923828125, -0.0191802978515625, -0.01140594482421875, 0.01511383056640625, 0.02874755859375, 0.033966064453125, -0.003955841064453125, -0.0117645263671875, -0.026641845703125, 0.02294921875, 0.005626678466796875, 0.0240478515625, -0.05126953125, -0.0171966552734375, 0.0162353515625, 0.035003662109375, 0.00690460205078125, 0.0090484619140625, 0.02398681640625, 0.02484130859375, -0.01314544677734375, -0.00850677490234375, 0.036346435546875, -0.01422882080078125, -0.0094757080078125, -0.0250091552734375, -0.0216827392578125, -0.007686614990234375, -0.00791168212890625, -0.007572174072265625, -0.0045013427734375, 0.0111541748046875, -0.031768798828125, 0.03839111328125, -0.011077880859375, -0.0210113525390625, 0.0204620361328125, 0.0202178955078125, 0.0236358642578125, 0.0111236572265625, -0.035400390625, -0.003452301025390625, -0.0089263916015625, -0.038299560546875, 0.0290374755859375, 0.0421142578125, -0.0206756591796875, 0.0269317626953125, 0.01617431640625, -0.029571533203125, -0.0136260986328125, 0.048309326171875, -0.009246826171875, -0.019073486328125, 0.0153961181640625, -0.0167388916015625, -0.0247955322265625, -0.02203369140625, 0.0023441314697265625, 0.0308837890625, 0.0302581787109375, -0.005069732666015625, 0.01189422607421875, 0.0266265869140625, -0.02215576171875, -0.036285400390625, 0.0170135498046875, -0.015655517578125, 0.0247650146484375, 0.0020008087158203125, -0.0258941650390625, -0.022003173828125, -0.043731689453125, 0.0496826171875, 0.028472900390625, 0.0190887451171875, 0.040557861328125, -0.007099151611328125, 0.007701873779296875, -0.01241302490234375, -0.00998687744140625, -0.02001953125, -0.006175994873046875, -0.01200103759765625, -0.0151214599609375, 0.01666259765625, -0.005992889404296875, -0.01416778564453125, 0.019561767578125, 0.052093505859375, -0.036376953125, 0.04949951171875, -0.0229949951171875, 0.042816162109375, 0.0190887451171875, 0.04443359375, -0.00975799560546875, 0.050384521484375, -0.00878143310546875, 0.00942230224609375, 0.03167724609375, 0.016937255859375, 0.0391845703125, -0.087158203125, 0.01073455810546875, 0.0269622802734375, 0.0379638671875, -0.00849151611328125, -0.002986907958984375, 0.01293182373046875, -0.01605224609375, 0.02301025390625, 0.00687408447265625, 0.002063751220703125, -0.0299835205078125, -0.007541656494140625, 0.0275726318359375, -0.01136016845703125, 0.007785797119140625, -0.0304718017578125, 0.01364898681640625, 0.0276336669921875, 0.027191162109375, -0.078857421875, 0.03863525390625, 0.003536224365234375, 0.0277557373046875, 0.01534271240234375, 0.036376953125, -0.0259552001953125, -0.045867919921875, -0.04156494140625, -0.043365478515625, -0.042999267578125, 0.061676025390625, -0.0266876220703125, 0.0015115737915039062, 0.0205230712890625, -0.00650787353515625, 0.01849365234375, 0.00806427001953125, 0.0214385986328125, 0.056549072265625, -0.012725830078125, -0.030029296875, 0.022552490234375, 0.0075836181640625, -0.01554107666015625, -0.05206298828125, 0.0035381317138671875, -0.0589599609375, 0.00966644287109375, -0.00963592529296875, -0.0012960433959960938, 0.019622802734375, -0.030303955078125, -0.09783935546875, 0.07489013671875, -0.014434814453125, -0.046844482421875, -0.0200653076171875, 0.01141357421875, -0.0073089599609375, -0.00881195068359375, 0.004291534423828125, -0.0158538818359375, -0.01453399658203125, 0.024139404296875, 0.0189971923828125, 0.036468505859375, 0.005321502685546875, 0.005428314208984375, -0.016082763671875, 0.0162811279296875, 0.00013434886932373047, 0.0189056396484375, 0.008056640625, -0.0127410888671875, 0.041839599609375, 0.032196044921875, -0.043548583984375, 0.0232391357421875, -0.0018796920776367188, -0.00896453857421875, -0.0015859603881835938, -0.07177734375, 0.009307861328125, -0.0274200439453125, 0.0304107666015625, -0.025421142578125, -0.00511932373046875, 0.015228271484375, -0.047698974609375, 0.0001665353775024414, 0.0285491943359375, 0.01136016845703125, 0.0007076263427734375, -0.04840087890625, 0.011749267578125, 0.014801025390625, 0.00920867919921875, 0.041595458984375, -0.051666259765625, -0.021392822265625, -0.01488494873046875, -0.0253143310546875, 0.005657196044921875, -0.055633544921875, 0.03924560546875, 0.02349853515625, -0.02655029296875, 0.03155517578125, -0.0357666015625, 0.0013742446899414062, 0.038543701171875, -0.0181121826171875, 0.029693603515625, 0.042022705078125, -0.0262908935546875, 0.0159912109375, 0.036956787109375, 0.036285400390625, -0.015838623046875, -0.023834228515625, -0.006725311279296875, 0.006221771240234375, -0.01007843017578125, 0.0021038055419921875, -0.0037994384765625, 0.0285491943359375, -0.00011444091796875, 0.044891357421875, -0.019134521484375, 0.0677490234375, -0.0271453857421875, 0.03924560546875, -0.035430908203125, 0.0164794921875, 0.00396728515625, -0.003475189208984375, 0.0015630722045898438, 0.030242919921875, 0.01593017578125, -0.054534912109375, 0.0230712890625, -0.016845703125, 0.040557861328125, 0.014678955078125 ]
1b21b3b937caf3cb07977622421e9e47096e62f3
Wordpress Stackexchange Q: WP_Post_List_Table::get_views - Have post counts account for filters? Toward the top of the edit.php screens there is a list that displays post statuses along with the post count. I believe this is generated by WP_Post_List_Table::get_views. For example All (7) | Published (6) | Draft (1) Unfortunately, those post counts do not respect filters. I am using pre_get_posts to exclude certain posts. Even though only four posts are visible to the user, the numbers still reflect the total post count. I would like to see All (4) | Published (3) | Draft (1) I can't seem to find an action/filter to override these numbers (without using JavaScript). A: You might want to remove those counts and replace them with your own. function insert_post_counts($views){ //Run your query to count posts //use wp_cache_set and wp_cache_get to optimize performance $edit_url = admin_url( 'edit.php' ); $views['all'] = 'All <a href="'.$edit_url.'">('.$all_count.')</a>'; $views['publish'] = 'Published <a href="'.$edit_url.'?post_status=publish">('.$publish_count.')</a>'; $views['draft'] = 'Draft <a href="'.$edit_url.'?post_status=draft">('.$draft_count.')</a>'; $views['trash'] = 'Trash <a href="'.$edit_url.'?post_status=trash">('.$draft_count.')</a>'; return $views; } add_filter('views_edit-post, 'insert_post_counts', 10, 1); You can reference how wp_count_posts works to generate the native post counts. Hope this helps!
Q: WP_Post_List_Table::get_views - Have post counts account for filters? Toward the top of the edit.php screens there is a list that displays post statuses along with the post count. I believe this is generated by WP_Post_List_Table::get_views. For example All (7) | Published (6) | Draft (1) Unfortunately, those post counts do not respect filters. I am using pre_get_posts to exclude certain posts. Even though only four posts are visible to the user, the numbers still reflect the total post count. I would like to see All (4) | Published (3) | Draft (1) I can't seem to find an action/filter to override these numbers (without using JavaScript). A: You might want to remove those counts and replace them with your own. function insert_post_counts($views){ //Run your query to count posts //use wp_cache_set and wp_cache_get to optimize performance $edit_url = admin_url( 'edit.php' ); $views['all'] = 'All <a href="'.$edit_url.'">('.$all_count.')</a>'; $views['publish'] = 'Published <a href="'.$edit_url.'?post_status=publish">('.$publish_count.')</a>'; $views['draft'] = 'Draft <a href="'.$edit_url.'?post_status=draft">('.$draft_count.')</a>'; $views['trash'] = 'Trash <a href="'.$edit_url.'?post_status=trash">('.$draft_count.')</a>'; return $views; } add_filter('views_edit-post, 'insert_post_counts', 10, 1); You can reference how wp_count_posts works to generate the native post counts. Hope this helps! A: Resurrecting an old thread... There were a couple of minor code errors in the example above, as well as only the parenthetical counts being within the link tags. The following is something you can copy and paste directly in and use as a starting point: function wp_insert_post_counts($views){ //Run your query to count posts $all_count = 100; $publish_count = 200; $future_count = 250; $draft_count = 300; $trash_count = 400; //use wp_cache_set and wp_cache_get to optimize performance $view_slugs = array(array('all', NULL, 'All', $all_count), array('publish', 'publish', 'Published', $publish_count), array('future', 'future', 'Scheduled', $future_count), array('draft', 'draft', 'Draft', $draft_count), array('trash', 'trash', 'Trash', $trash_count) ); $post_status_var = get_query_var('post_status'); $edit_url = admin_url( 'edit.php' ); $view_count = count($view_slugs); for ($x = 0; $x < $view_count; $x++) { $class = ($post_status_var == $view_slugs[$x][1]) ? ' class="current"' : ''; $post_status_temp = $view_slugs[$x][1]; if($post_status_temp != '') { $post_status_temp = '?post_status='.$view_slugs[$x][1]; } $views[$view_slugs[$x][0]] = sprintf(__('<a href="' . $edit_url . $post_status_temp . '"' . $class . ' >' . $view_slugs[$x][2] . ' <span class="count">(%d)</span></a>'), $view_slugs[$x][3]); } return $views; } add_filter('views_edit-post', 'wp_insert_post_counts', 10, 1); As suggested above, look at wp_count_posts to understand more about implementing your own post counts.
wordpress
{ "language": "en", "length": 368, "provenance": "stackexchange_00019.jsonl.gz:415291", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36117" }
[ 0.04962158203125, 0.0098114013671875, 0.0072174072265625, -0.05621337890625, 0.0192413330078125, -0.02252197265625, 0.033294677734375, -0.01629638671875, 0.052947998046875, -0.00576019287109375, -0.0187530517578125, -0.05035400390625, -0.04254150390625, -0.039764404296875, -0.030120849609375, -0.04583740234375, 0.03936767578125, -0.045166015625, 0.01552581787109375, 0.004047393798828125, -0.021392822265625, 0.011993408203125, 0.0546875, 0.0034618377685546875, -0.0026493072509765625, 0.029205322265625, 0.0224761962890625, -0.046600341796875, -0.0098876953125, -0.0362548828125, -0.0015306472778320312, 0.0208740234375, 0.017669677734375, -0.01255035400390625, -0.0020084381103515625, 0.0230865478515625, 0.0169525146484375, -0.0088653564453125, 0.003551483154296875, 0.0026493072509765625, 0.0477294921875, -0.03265380859375, 0.04443359375, -0.02447509765625, 0.01226806640625, 0.0087432861328125, 0.050445556640625, -0.0204315185546875, 0.0269012451171875, 0.0032329559326171875, 0.0166015625, 0.0382080078125, 0.0198974609375, 0.00641632080078125, -0.02288818359375, -0.005352020263671875, 0.05206298828125, 0.0005478858947753906, 0.04620361328125, -0.0469970703125, -0.06500244140625, 0.0113677978515625, 0.035491943359375, -0.020538330078125, -0.03192138671875, -0.0026416778564453125, 0.01062774658203125, 0.01776123046875, -0.01251983642578125, -0.051910400390625, -0.005855560302734375, 0.015960693359375, -0.0010051727294921875, -0.00087738037109375, 0.005222320556640625, -0.0173797607421875, 0.01058197021484375, 0.0015687942504882812, 0.004840850830078125, 0.024627685546875, 0.01727294921875, 0.0061492919921875, -0.0249481201171875, 0.04046630859375, -0.04193115234375, 0.0243072509765625, -0.0207366943359375, -0.00984954833984375, -0.0286865234375, 0.00855255126953125, -0.00821685791015625, -0.0219879150390625, -0.0235748291015625, 0.01708984375, 0.0313720703125, -0.033660888671875, 0.03668212890625, 0.06988525390625, -0.003368377685546875, -0.0233001708984375, 0.0091400146484375, -0.033233642578125, -0.0455322265625, -0.01934814453125, 0.0186614990234375, 0.021270751953125, -0.0095367431640625, 0.066650390625, 0.073486328125, 0.0308990478515625, 0.01180267333984375, 0.0126953125, -0.0125885009765625, 0.0250244140625, -0.0567626953125, -0.0184173583984375, -0.058929443359375, -0.0247650146484375, -0.0292205810546875, -0.006702423095703125, -0.0188446044921875, 0.0010957717895507812, -0.0316162109375, 0.00861358642578125, 0.003513336181640625, -0.01319122314453125, 0.0014190673828125, -0.0018291473388671875, 0.0240631103515625, 0.039276123046875, -0.04486083984375, 0.0103302001953125, 0.05450439453125, -0.00319671630859375, -0.0124969482421875, -0.02362060546875, 0.02410888671875, -0.03155517578125, -0.04058837890625, 0.033721923828125, -0.040069580078125, -0.003932952880859375, 0.032958984375, -0.062164306640625, 0.0054779052734375, 0.034088134765625, 0.0214385986328125, -0.01168060302734375, -0.01255035400390625, -0.053863525390625, 0.0014925003051757812, -0.030670166015625, 0.034149169921875, 0.01117706298828125, -0.0112152099609375, -0.0166778564453125, -0.006320953369140625, -0.01617431640625, -0.0005588531494140625, -0.00888824462890625, 0.07464599609375, 0.00763702392578125, -0.035552978515625, -0.0207672119140625, -0.067626953125, -0.0024204254150390625, -0.0467529296875, -0.0179443359375, 0.01020050048828125, 0.002655029296875, -0.0079498291015625, 0.003887176513671875, -0.00588226318359375, -0.01200103759765625, -0.0159149169921875, 0.00441741943359375, -0.006366729736328125, -0.016326904296875, 0.0124053955078125, 0.037750244140625, -0.0174713134765625, -0.0308380126953125, -0.00720977783203125, 0.0004935264587402344, -0.033233642578125, 0.024169921875, 0.005077362060546875, 0.01751708984375, -0.007633209228515625, -0.004199981689453125, 0.03350830078125, 0.0345458984375, -0.0009946823120117188, 0.03399658203125, -0.008758544921875, -0.053375244140625, 0.007778167724609375, -0.0090484619140625, -0.01181793212890625, -0.0026226043701171875, 0.044097900390625, -0.00818634033203125, 0.043975830078125, -0.00872802734375, -0.041015625, 0.019622802734375, -0.032501220703125, 0.036468505859375, -0.03955078125, 0.039154052734375, 0.049713134765625, 0.017425537109375, -0.0545654296875, 0.0272216796875, 0.01192474365234375, -0.037689208984375, 0.00539398193359375, -0.01715087890625, -0.01165008544921875, -0.0012607574462890625, -0.019622802734375, 0.0242462158203125, -0.03546142578125, 0.0113525390625, 0.06890869140625, -0.056396484375, 0.01245880126953125, -0.060760498046875, 0.03802490234375, -0.03955078125, -0.0008640289306640625, 0.07135009765625, 0.04833984375, 0.06427001953125, -0.02069091796875, -0.0280914306640625, -0.0328369140625, -0.09100341796875, 0.007755279541015625, 0.06829833984375, 0.03466796875, 0.0306396484375, -0.0037860870361328125, -0.01507568359375, 0.0733642578125, -0.0124664306640625, 0.0124664306640625, -0.0252685546875, 0.0124969482421875, 0.07659912109375, 0.0145721435546875, 0.016693115234375, -0.004261016845703125, -0.07537841796875, 0.0000807046890258789, 0.04296875, -0.00887298583984375, 0.0191192626953125, -0.0165557861328125, -0.0027561187744140625, 0.009185791015625, -0.0162506103515625, -0.0117340087890625, -0.01215362548828125, 0.0240020751953125, -0.0042266845703125, 0.045135498046875, 0.0384521484375, -0.010467529296875, -0.0180511474609375, 0.0021800994873046875, 0.004547119140625, -0.0170745849609375, 0.001865386962890625, -0.03790283203125, -0.01041412353515625, -0.0286407470703125, 0.03173828125, -0.0115509033203125, -0.0362548828125, -0.02703857421875, 0.006565093994140625, 0.00957489013671875, -0.00740814208984375, -0.0096893310546875, -0.07232666015625, 0.0201873779296875, -0.0013628005981445312, 0.01401519775390625, 0.00937652587890625, 0.01311492919921875, 0.0280914306640625, -0.001499176025390625, 0.045867919921875, 0.0269012451171875, -0.014373779296875, 0.01198577880859375, -0.1021728515625, 0.060882568359375, -0.061309814453125, 0.07037353515625, 0.08734130859375, -0.017120361328125, 0.0189208984375, 0.0004546642303466797, -0.00986480712890625, -0.01549530029296875, 0.002529144287109375, -0.01032257080078125, -0.003383636474609375, -0.07183837890625, 0.00798797607421875, 0.033447265625, 0.0345458984375, 0.006404876708984375, -0.021240234375, -0.00469970703125, 0.0285491943359375, -0.056884765625, -0.0228424072265625, 0.0009012222290039062, -0.01251220703125, -0.0260772705078125, 0.00041413307189941406, -0.0180511474609375, 0.01294708251953125, -0.0092010498046875, -0.00991058349609375, -0.07171630859375, 0.01806640625, -0.031524658203125, -0.025360107421875, -0.0391845703125, 0.033843994140625, -0.00555419921875, 0.0333251953125, 0.010040283203125, 0.0908203125, 0.0178680419921875, -0.05914306640625, 0.0155029296875, 0.02679443359375, -0.029693603515625, 0.012451171875, -0.024749755859375, 0.01401519775390625, -0.0280914306640625, 0.01499176025390625, 0.0197601318359375, -0.00848388671875, -0.006206512451171875, -0.0034046173095703125, -0.028717041015625, -0.01568603515625, 0.0159454345703125, 0.01342010498046875, 0.0210723876953125, 0.00702667236328125, 0.044189453125, -0.0225830078125, -0.0181121826171875, -0.0010280609130859375, -0.032073974609375, -0.0186004638671875, -0.0010824203491210938, 0.01202392578125, -0.00031065940856933594, 0.0045013427734375, 0.0113067626953125, 0.017120361328125, 0.040130615234375, -0.0003802776336669922, 0.0016584396362304688, -0.018310546875, -0.0251922607421875, -0.042694091796875, -0.00916290283203125, -0.00411224365234375, 0.0233917236328125, -0.01056671142578125, 0.04290771484375, 0.00848388671875, 0.006526947021484375, -0.027191162109375, -0.0265350341796875, 0.027923583984375, -0.0211334228515625, -0.0007567405700683594, -0.03179931640625, -0.00792694091796875, -0.0099639892578125, 0.051361083984375, -0.026275634765625, -0.03900146484375, -0.043792724609375, 0.02166748046875, -0.002521514892578125, -0.073974609375, 0.0482177734375, -0.0090179443359375, -0.06585693359375, 0.01369476318359375, -0.00759124755859375, -0.0070343017578125, -0.03253173828125, 0.0200653076171875, -0.040069580078125, -0.0268707275390625, 0.036224365234375, -0.019256591796875, -0.005901336669921875, 0.0117645263671875, -0.0153350830078125, -0.01119232177734375, -0.0299224853515625, -0.0102386474609375, -0.00833892822265625, -0.009796142578125, 0.01345062255859375, -0.01364898681640625, -0.02392578125, 0.020233154296875, 0.01549530029296875, 0.031951904296875, 0.004119873046875, 0.03131103515625, -0.042236328125, -0.01203155517578125, -0.05987548828125, 0.00567626953125, -0.01666259765625, -0.01470184326171875, -0.01287841796875, -0.04559326171875, -0.05303955078125, -0.044921875, -0.02764892578125, 0.0411376953125, 0.0013227462768554688, -0.0171966552734375, -0.043304443359375, -0.046630859375, -0.020751953125, 0.0035343170166015625, -0.0191497802734375, -0.0094146728515625, -0.058746337890625, -0.04449462890625, 0.036956787109375, -0.0221405029296875, -0.02947998046875, 0.0117645263671875, 0.0760498046875, 0.0132293701171875, -0.0146331787109375, -0.0080413818359375, -0.01045989990234375, 0.04638671875, -0.01477813720703125, 0.044891357421875, 0.06292724609375, -0.0279998779296875, -0.016815185546875, 0.03070068359375, -0.0202789306640625, 0.022125244140625, -0.0188140869140625, 0.0186920166015625, -0.00884246826171875, -0.029205322265625, 0.0068206787109375, 0.065673828125, 0.041259765625, -0.0164642333984375, 0.005222320556640625, 0.020965576171875, 0.0199737548828125, -0.033843994140625, 0.01451873779296875, -0.002964019775390625, -0.0196380615234375, -0.0048370361328125, 0.023040771484375, 0.059051513671875, 0.0307464599609375, -0.00023066997528076172, 0.040863037109375, 0.04693603515625, 0.0199737548828125, 0.0181121826171875, 0.032867431640625, -0.018157958984375, 0.0309906005859375, 0.04547119140625, -0.0107269287109375, -0.0031681060791015625, -0.016082763671875, 0.044525146484375, -0.02838134765625, -0.077880859375, 0.032501220703125, -0.01351165771484375, -0.015594482421875, 0.0201568603515625, -0.0030498504638671875, 0.008331298828125, 0.036102294921875, -0.033416748046875, -0.02032470703125, 0.0189208984375, -0.017303466796875, -0.04119873046875, 0.034454345703125, 0.018463134765625, -0.0121307373046875, 0.0290985107421875, 0.0489501953125, -0.036346435546875, 0.0518798828125, 0.0027618408203125, 0.025482177734375, 0.040130615234375, 0.004337310791015625, 0.0171356201171875, -0.0032138824462890625, -0.01078033447265625, -0.00598907470703125, 0.0089263916015625, -0.009521484375, -0.02850341796875, 0.025970458984375, 0.0018186569213867188, 0.005374908447265625, 0.0219879150390625, -0.006542205810546875, 0.0133056640625, -0.035797119140625, 0.01218414306640625, 0.00598907470703125, -0.02484130859375, -0.0191192626953125, 0.0148468017578125, 0.0038280487060546875, 0.0228118896484375, -0.002838134765625, -0.033111572265625, -0.020538330078125, -0.0031185150146484375, -0.042816162109375, -0.0048980712890625, -0.0225372314453125, -0.01285552978515625, -0.01369476318359375, 0.00029659271240234375, 0.00862884521484375, -0.0426025390625, -0.031890869140625, -0.01178741455078125, 0.00035119056701660156, 0.0843505859375, -0.020050048828125, 0.033660888671875, -0.0204315185546875, -0.013153076171875, 0.019012451171875, 0.004711151123046875, 0.037811279296875, 0.0023517608642578125, 0.0189971923828125, -0.03802490234375, -0.0305023193359375, -0.051544189453125, 0.03094482421875, 0.036651611328125, -0.035400390625, -0.0040283203125, 0.02777099609375, 0.0169219970703125, -0.0194244384765625, -0.0750732421875, -0.0191192626953125, -0.011871337890625, 0.034942626953125, 0.01055145263671875, 0.04345703125, 0.07049560546875, -0.032073974609375, 0.060577392578125, 0.0310211181640625, 0.02288818359375, -0.06646728515625, -0.03851318359375, 0.0162200927734375, -0.0311737060546875, -0.007778167724609375, -0.007701873779296875, -0.011077880859375, -0.0161895751953125, 0.00972747802734375, -0.006542205810546875, 0.01409912109375, -0.015838623046875, 0.00777435302734375, -0.0196533203125, 0.0038394927978515625, -0.01715087890625, -0.0192718505859375, 0.031036376953125, -0.003467559814453125, -0.0007476806640625, -0.0163116455078125, 0.0445556640625, -0.0404052734375, -0.0087127685546875, -0.032196044921875, -0.01305389404296875, -0.032806396484375, 0.053497314453125, 0.0831298828125, 0.022369384765625, 0.058197021484375, 0.016265869140625, 0.021942138671875, 0.03289794921875, -0.03289794921875, 0.01151275634765625, 0.006557464599609375, 0.05914306640625, -0.01380157470703125, 0.009033203125, 0.07318115234375, -0.0238037109375, 0.012847900390625, 0.054443359375, 0.0279388427734375, -0.06634521484375, 0.004619598388671875, -0.005863189697265625, -0.0282440185546875, 0.01190185546875, -0.00824737548828125, 0.001384735107421875, -0.030364990234375, 0.0616455078125, -0.02252197265625, -0.01343536376953125, 0.00856781005859375, -0.01348114013671875, 0.010162353515625, 0.009185791015625, -0.002574920654296875, -0.0036983489990234375, -0.00011980533599853516, -0.0498046875, 0.0005135536193847656, -0.01296234130859375, -0.039093017578125, 0.0200958251953125, -0.0006070137023925781, 0.037841796875, -0.0252685546875, 0.06744384765625, -0.01366424560546875, 0.02838134765625, 0.003025054931640625, -0.0153350830078125, 0.0161285400390625, 0.06103515625, -0.034423828125, 0.02423095703125, 0.04534912109375, -0.053802490234375, -0.0205841064453125, 0.0245361328125, 0.019317626953125, 0.0023040771484375, 0.00004398822784423828, 0.005008697509765625, -0.041656494140625, -0.009368896484375, 0.00951385498046875, 0.03350830078125, 0.08233642578125, -0.049346923828125, -0.0118865966796875, 0.05157470703125, -0.0020389556884765625, -0.0211029052734375, -0.006664276123046875, 0.014068603515625, -0.058837890625, -0.043548583984375, 0.0111541748046875, -0.03759765625, -0.0146636962890625, 0.000012516975402832031, -0.0640869140625, 0.1116943359375, -0.02728271484375, 0.053955078125, 0.0222015380859375, 0.039764404296875, -0.0266571044921875, 0.01229095458984375, -0.057098388671875, 0.062042236328125, -0.01023101806640625, 0.040252685546875, -0.05804443359375, -0.005260467529296875, -0.000926971435546875, 0.04864501953125, 0.07269287109375, 0.0202789306640625, -0.064453125, -0.037933349609375, 0.0328369140625, 0.03997802734375, 0.011322021484375, 0.043487548828125, 0.0207061767578125, 0.051910400390625, 0.07373046875, -0.06524658203125, 0.023712158203125, -0.00925445556640625, 0.036041259765625, 0.04693603515625, 0.0188140869140625, 0.023834228515625, -0.02923583984375, 0.006336212158203125, -0.060333251953125, -0.00576019287109375, 0.035980224609375, 0.04376220703125, 0.0088043212890625, 0.04486083984375, 0.046722412109375, -0.072021484375, -0.05133056640625, -0.021209716796875, 0.03271484375, 0.0174102783203125, 0.018157958984375, 0.027862548828125, 0.0146636962890625, 0.059356689453125, -0.0164642333984375, -0.00220489501953125, 0.005176544189453125, 0.0037937164306640625, 0.04766845703125, 0.0263519287109375, 0.0252685546875, -0.025726318359375, 0.009979248046875, 0.01959228515625, 0.047210693359375, -0.0390625, 0.0100860595703125, 0.01806640625, 0.018524169921875, -0.034332275390625, -0.00823974609375, 0.007312774658203125, -0.005645751953125, 0.01065826416015625, -0.03631591796875, -0.043731689453125, -0.0033283233642578125, 0.026214599609375, -0.0097198486328125, -0.038055419921875, 0.044769287109375, -0.047454833984375, -0.049102783203125, -0.02191162109375, 0.02093505859375, 0.07733154296875, 0.0404052734375, 0.023284912109375, -0.02178955078125, -0.03436279296875, -0.020660400390625, 0.0093994140625, 0.002162933349609375, 0.0138397216796875, -0.037811279296875, -0.024627685546875, 0.032684326171875, 0.0275115966796875, -0.005580902099609375, -0.0162200927734375, 0.0298004150390625, 0.032867431640625, -0.042510986328125, -0.024810791015625, 0.0211029052734375, -0.034027099609375, -0.035888671875, -0.0343017578125, -0.0212554931640625, 0.0240325927734375, 0.005664825439453125, 0.037322998046875, 0.0117034912109375, 0.0245208740234375, -0.040924072265625, 0.0171356201171875, -0.012359619140625, -0.03369140625, 0.0411376953125, 0.00614166259765625, 0.047821044921875, -0.01385498046875, -0.07403564453125, 0.00942230224609375, -0.0479736328125, -0.07470703125, 0.03948974609375, 0.03692626953125, -0.05499267578125, 0.04278564453125, -0.0207672119140625, -0.009613037109375, 0.0118560791015625, -0.00760650634765625, 0.0033111572265625, 0.013916015625, 0.01134490966796875, -0.01313018798828125, -0.0163421630859375, -0.02783203125, 0.009368896484375, 0.06463623046875, -0.00821685791015625, 0.07562255859375, -0.051177978515625, 0.0110931396484375, 0.0163116455078125, 0.0231475830078125, -0.0196380615234375, 0.0029315948486328125, 0.006504058837890625, -0.024017333984375, 0.015716552734375, 0.00279998779296875, -0.033966064453125, -0.03497314453125, 0.044952392578125, -0.048248291015625, -0.013092041015625, -0.0223846435546875, 0.0250244140625, -0.01776123046875, 0.0261383056640625, -0.02313232421875, 0.01372528076171875, 0.00823211669921875, -0.022979736328125, 0.0233612060546875, 0.0005354881286621094, 0.031402587890625, 0.07080078125, -0.003414154052734375, 0.00614166259765625, 0.018798828125, -0.053070068359375, 0.035003662109375, 0.03179931640625, -0.0478515625, 0.031463623046875, 0.031951904296875, -0.00823211669921875, -0.005344390869140625, 0.039642333984375, -0.026214599609375, 0.0161590576171875, -0.00737762451171875, -0.021484375, -0.0291748046875, 0.0186920166015625, -0.0285186767578125, 0.019287109375, -0.02911376953125, 0.031829833984375, 0.01132965087890625, 0.040496826171875, 0.00925445556640625, 0.0021266937255859375, -0.043304443359375, -0.0296478271484375, 0.0029201507568359375, -0.06573486328125, 0.01702880859375, 0.004581451416015625, -0.007259368896484375, -0.006374359130859375, -0.0283966064453125, 0.0374755859375, -0.0129547119140625, -0.00728607177734375, -0.032867431640625, 0.0250701904296875, -0.00885009765625, 0.0188751220703125, -0.035003662109375, 0.0093841552734375, -0.039581298828125, 0.006565093994140625, -0.016632080078125, 0.00075531005859375, 0.0309906005859375, -0.0222320556640625, -0.040008544921875, -0.03741455078125, -0.004543304443359375, -0.01195526123046875, 0.01561737060546875, -0.0204925537109375, -0.02032470703125, 0.020111083984375, 0.0091705322265625, -0.07269287109375, 0.0008492469787597656, -0.053619384765625, -0.0256195068359375, 0.006977081298828125, 0.007740020751953125, 0.0296478271484375, -0.0306396484375, -0.09100341796875, 0.0472412109375, -0.0237884521484375, -0.0380859375, -0.043731689453125, -0.03619384765625, 0.00344085693359375, -0.00788116455078125, -0.00960540771484375, -0.0340576171875, -0.054962158203125, 0.0310516357421875, -0.0284881591796875, 0.0186614990234375, 0.00635528564453125, -0.03570556640625, -0.0648193359375, -0.020263671875, -0.0092620849609375, -0.028594970703125, 0.002254486083984375, -0.0037174224853515625, 0.042205810546875, 0.039337158203125, -0.01337432861328125, 0.022674560546875, 0.004238128662109375, -0.007030487060546875, 0.021514892578125, -0.05859375, -0.05126953125, -0.0478515625, 0.0758056640625, -0.0036525726318359375, 0.031097412109375, -0.005588531494140625, 0.01522064208984375, -0.03826904296875, -0.048126220703125, 0.002101898193359375, 0.014373779296875, -0.038909912109375, -0.008758544921875, 0.0186920166015625, -0.007274627685546875, -0.024688720703125, -0.027679443359375, -0.0196990966796875, -0.0303955078125, -0.0310211181640625, -0.005939483642578125, 0.00783538818359375, 0.0201416015625, -0.0259246826171875, -0.010498046875, -0.035247802734375, 0.017242431640625, -0.006259918212890625, -0.04803466796875, 0.046234130859375, -0.0029888153076171875, -0.0479736328125, 0.0176849365234375, 0.0221710205078125, 0.01349639892578125, -0.002010345458984375, -0.00420379638671875, -0.0232086181640625, 0.00138092041015625, -0.01031494140625, -0.01442718505859375, -0.0248260498046875, 0.0085601806640625, 0.0034732818603515625, -0.024505615234375, 0.07769775390625, -0.0267791748046875, 0.01548004150390625, -0.01239776611328125, 0.00830841064453125, -0.01824951171875, 0.005401611328125, 0.0284423828125, -0.013427734375, -0.0048675537109375, 0.000347137451171875, -0.04132080078125, -0.0357666015625, 0.014678955078125, 0.029205322265625, -0.010467529296875, 0.015472412109375 ]
9d9f2fdb6344f393810f741a43de7103ec35b9fe
Wordpress Stackexchange Q: How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button I have a custom post type (called contacts). Since this post type is not working like a post, I don't want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date. The only options I want to show are PUBLISH & Move to Trash buttons. Is there a way to hide these other options? If not, how do I create a new PUBLISH & Move to Trash that I can add to a new metabox? A: You can simply hide the options using CSS. This will add a display:none style to the misc and minor publishing actions on the post.php and post-new.php pages. It checks for a specific post type as well since all post types use these two files. function hide_publishing_actions(){ $my_post_type = 'POST_TYPE'; global $post; if($post->post_type == $my_post_type){ echo ' <style type="text/css"> #misc-publishing-actions, #minor-publishing-actions{ display:none; } </style> '; } } add_action('admin_head-post.php', 'hide_publishing_actions'); add_action('admin_head-post-new.php', 'hide_publishing_actions');
Q: How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button I have a custom post type (called contacts). Since this post type is not working like a post, I don't want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date. The only options I want to show are PUBLISH & Move to Trash buttons. Is there a way to hide these other options? If not, how do I create a new PUBLISH & Move to Trash that I can add to a new metabox? A: You can simply hide the options using CSS. This will add a display:none style to the misc and minor publishing actions on the post.php and post-new.php pages. It checks for a specific post type as well since all post types use these two files. function hide_publishing_actions(){ $my_post_type = 'POST_TYPE'; global $post; if($post->post_type == $my_post_type){ echo ' <style type="text/css"> #misc-publishing-actions, #minor-publishing-actions{ display:none; } </style> '; } } add_action('admin_head-post.php', 'hide_publishing_actions'); add_action('admin_head-post-new.php', 'hide_publishing_actions'); A: In this example you can easily set on which post types you want to hide the publishing options, the example hides them for the build-in pots type type page and the custom post type cpt_portfolio. /** * Hides with CSS the publishing options for the types page and cpt_portfolio */ function wpse_36118_hide_minor_publishing() { $screen = get_current_screen(); if( in_array( $screen->id, array( 'page', 'cpt_portfolio' ) ) ) { echo '<style>#minor-publishing { display: none; }</style>'; } } // Hook to admin_head for the CSS to be applied earlier add_action( 'admin_head', 'wpse_36118_hide_minor_publishing' ); Important update I would also suggest you force a post status of "Published" to avoid saving posts as drafts: /** * Sets the post status to published */ function wpse_36118_force_published( $post ) { if( 'trash' !== $post[ 'post_status' ] ) { /* We still want to use the trash */ if( in_array( $post[ 'post_type' ], array( 'page', 'cpt_portfolio' ) ) ) { $post['post_status'] = 'publish'; } return $post; } } // Hook to wp_insert_post_data add_filter( 'wp_insert_post_data', 'wpse_36118_force_published' );
wordpress
{ "language": "en", "length": 329, "provenance": "stackexchange_00019.jsonl.gz:415292", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36118" }
[ 0.02276611328125, 0.007221221923828125, -0.0199432373046875, -0.0008382797241210938, -0.0035247802734375, -0.037445068359375, 0.01314544677734375, -0.0181732177734375, 0.037628173828125, 0.02484130859375, 0.01543426513671875, -0.02093505859375, 0.00148773193359375, -0.053314208984375, -0.0165557861328125, -0.007617950439453125, 0.04840087890625, 0.0156402587890625, 0.0853271484375, -0.00737762451171875, 0.0163421630859375, 0.0058441162109375, 0.081298828125, 0.0215606689453125, 0.00952911376953125, -0.045867919921875, 0.05828857421875, -0.038818359375, 0.0269317626953125, -0.01183319091796875, 0.0185089111328125, -0.001007080078125, -0.011932373046875, 0.03466796875, -0.005523681640625, 0.0452880859375, 0.00991058349609375, 0.025543212890625, 0.0207061767578125, 0.016143798828125, 0.0221710205078125, -0.0169677734375, -0.00980377197265625, -0.0296783447265625, -0.0168609619140625, -0.0080718994140625, 0.007965087890625, -0.02996826171875, 0.029998779296875, 0.00018131732940673828, 0.005443572998046875, 0.0029201507568359375, 0.0260467529296875, -0.0308380126953125, -0.0122833251953125, -0.010284423828125, -0.0142059326171875, 0.0142669677734375, 0.02276611328125, 0.044464111328125, -0.01364898681640625, 0.02569580078125, -0.0184173583984375, -0.06695556640625, -0.0019464492797851562, -0.0161895751953125, -0.0036067962646484375, 0.00189971923828125, -0.06024169921875, 0.004119873046875, 0.05828857421875, -0.04034423828125, 0.0216064453125, -0.029266357421875, 0.00127410888671875, 0.00542449951171875, -0.007293701171875, 0.013336181640625, 0.020721435546875, -0.008331298828125, 0.027740478515625, -0.0010251998901367188, -0.03302001953125, -0.006427764892578125, 0.0210723876953125, 0.0272216796875, -0.009490966796875, -0.0170745849609375, -0.005947113037109375, -0.02117919921875, -0.01032257080078125, -0.0743408203125, 0.007274627685546875, 0.009002685546875, 0.01474761962890625, -0.065673828125, 0.0139312744140625, 0.043365478515625, -0.0195770263671875, -0.0137481689453125, -0.008514404296875, -0.01378631591796875, -0.00939178466796875, -0.028961181640625, 0.0189361572265625, 0.028076171875, -0.01552581787109375, 0.0180206298828125, 0.06524658203125, 0.03387451171875, 0.0260467529296875, -0.002719879150390625, -0.02386474609375, 0.039398193359375, -0.04034423828125, -0.0128631591796875, -0.059326171875, 0.0306854248046875, -0.041656494140625, 0.055755615234375, 0.030853271484375, 0.033355712890625, 0.01430511474609375, -0.052764892578125, 0.0232391357421875, -0.0008645057678222656, -0.043853759765625, -0.0226287841796875, 0.041534423828125, 0.020538330078125, -0.050933837890625, 0.006450653076171875, 0.082275390625, 0.014801025390625, 0.02099609375, -0.0293731689453125, 0.0169525146484375, 0.0052642822265625, -0.0058135986328125, 0.0203857421875, -0.007476806640625, -0.05499267578125, -0.0008974075317382812, 0.0031585693359375, -0.02587890625, 0.0280609130859375, 0.0147552490234375, -0.0032825469970703125, -0.0024814605712890625, -0.02581787109375, -0.046173095703125, -0.0194854736328125, 0.047210693359375, 0.0189208984375, -0.0214385986328125, 0.004749298095703125, 0.055084228515625, -0.0240478515625, -0.055084228515625, -0.04705810546875, 0.03619384765625, 0.025299072265625, 0.036651611328125, 0.005374908447265625, -0.0158538818359375, -0.0297698974609375, -0.05078125, -0.0194244384765625, 0.00713348388671875, 0.0036945343017578125, 0.01495361328125, 0.0053863525390625, -0.00409698486328125, -0.0240631103515625, -0.02178955078125, -0.01690673828125, 0.0195159912109375, 0.023223876953125, 0.011138916015625, -0.007411956787109375, -0.039276123046875, -0.0467529296875, 0.0657958984375, -0.046966552734375, -0.072998046875, 0.052398681640625, 0.01629638671875, 0.00608062744140625, -0.022491455078125, -0.0247039794921875, 0.1187744140625, 0.0694580078125, -0.046783447265625, -0.00982666015625, 0.0149078369140625, 0.02447509765625, 0.004741668701171875, 0.00621795654296875, 0.0139312744140625, -0.0214996337890625, -0.053558349609375, 0.0178070068359375, 0.0102081298828125, 0.0303497314453125, -0.0272216796875, 0.032440185546875, -0.034271240234375, 0.054351806640625, -0.050537109375, 0.015716552734375, 0.04058837890625, -0.003589630126953125, -0.036407470703125, -0.007160186767578125, 0.004978179931640625, 0.0007157325744628906, -0.00582122802734375, 0.01514434814453125, -0.00318145751953125, 0.003711700439453125, 0.0018491744995117188, -0.01332855224609375, -0.0015306472778320312, 0.0208282470703125, 0.09405517578125, -0.0296630859375, 0.01068878173828125, -0.034942626953125, 0.08929443359375, -0.007511138916015625, -0.0147857666015625, 0.0215911865234375, 0.0094451904296875, 0.006572723388671875, -0.01519012451171875, 0.00833892822265625, 0.0125579833984375, -0.058929443359375, -0.00836181640625, 0.04681396484375, 0.0124664306640625, 0.02642822265625, 0.01561737060546875, 0.06787109375, 0.047027587890625, -0.0268402099609375, 0.00384521484375, 0.0273284912109375, 0.00843048095703125, 0.029052734375, -0.037200927734375, -0.01134490966796875, 0.04107666015625, -0.050994873046875, 0.009918212890625, 0.042327880859375, 0.00444793701171875, -0.0174560546875, 0.031219482421875, -0.0289306640625, 0.0235595703125, -0.0284423828125, -0.0631103515625, 0.0107421875, 0.0233154296875, -0.0191802978515625, 0.035552978515625, 0.0233612060546875, -0.0019054412841796875, -0.031951904296875, 0.01477813720703125, 0.0185089111328125, 0.0019931793212890625, 0.022979736328125, 0.00606536865234375, 0.00209808349609375, 0.00476837158203125, -0.0181121826171875, -0.0163116455078125, 0.0090179443359375, -0.01244354248046875, 0.00966644287109375, 0.012786865234375, -0.00769805908203125, 0.01471710205078125, -0.005939483642578125, 0.01678466796875, -0.0287933349609375, 0.04693603515625, -0.005340576171875, -0.000514984130859375, 0.0203094482421875, -0.0159454345703125, 0.0689697265625, 0.037261962890625, -0.0421142578125, -0.012420654296875, -0.07525634765625, 0.0517578125, -0.06048583984375, 0.034820556640625, 0.07586669921875, -0.01325225830078125, 0.02423095703125, -0.00533294677734375, -0.00015020370483398438, -0.041412353515625, 0.049041748046875, 0.0006804466247558594, -0.043670654296875, -0.037445068359375, -0.01898193359375, 0.00701141357421875, -0.021484375, -0.0103912353515625, -0.033477783203125, -0.01102447509765625, -0.0023822784423828125, -0.04302978515625, 0.0164031982421875, -0.0156402587890625, -0.051788330078125, -0.00557708740234375, 0.00249481201171875, -0.0298919677734375, 0.00464630126953125, 0.03485107421875, 0.012908935546875, -0.03924560546875, 0.0120391845703125, 0.007579803466796875, 0.01136016845703125, 0.0180816650390625, 0.01532745361328125, 0.006195068359375, -0.014556884765625, 0.0050506591796875, 0.1302490234375, 0.0335693359375, -0.08465576171875, 0.0230255126953125, -0.00612640380859375, -0.03057861328125, 0.07550048828125, 0.0228729248046875, -0.037628173828125, 0.0020008087158203125, -0.002170562744140625, 0.036895751953125, 0.0107421875, -0.01605224609375, -0.00830078125, -0.01512908935546875, -0.02410888671875, 0.0198516845703125, 0.047515869140625, -0.01334381103515625, -0.005619049072265625, 0.056549072265625, -0.0322265625, -0.0217132568359375, 0.0191650390625, -0.0242156982421875, -0.01393890380859375, -0.01528167724609375, -0.01285552978515625, 0.0038204193115234375, 0.02728271484375, 0.042938232421875, 0.035003662109375, 0.045440673828125, 0.0294952392578125, -0.032562255859375, -0.007411956787109375, 0.011077880859375, -0.0516357421875, -0.005359649658203125, -0.01538848876953125, 0.0537109375, 0.004413604736328125, 0.012664794921875, -0.01197052001953125, 0.050201416015625, -0.0202178955078125, -0.054229736328125, 0.0176239013671875, -0.0760498046875, -0.03741455078125, -0.020111083984375, 0.0228118896484375, 0.0142669677734375, 0.04913330078125, -0.0238800048828125, -0.007251739501953125, -0.024169921875, 0.00439453125, -0.0333251953125, -0.040435791015625, -0.0110626220703125, 0.0125274658203125, -0.0885009765625, 0.03857421875, -0.0018405914306640625, -0.0160675048828125, -0.01175689697265625, -0.00507354736328125, -0.036590576171875, -0.050628662109375, 0.038726806640625, 0.039276123046875, -0.0063629150390625, 0.03399658203125, -0.008636474609375, 0.00624847412109375, -0.0226287841796875, 0.01311492919921875, -0.034454345703125, -0.0015306472778320312, -0.0235137939453125, 0.01349639892578125, -0.0171051025390625, 0.04730224609375, -0.0182342529296875, 0.0158233642578125, -0.010467529296875, -0.004695892333984375, -0.031951904296875, 0.008453369140625, -0.01263427734375, -0.00838470458984375, -0.0209808349609375, -0.0128021240234375, 0.00156402587890625, 0.022247314453125, -0.0116729736328125, 0.0230712890625, -0.0295867919921875, -0.033355712890625, 0.023040771484375, -0.03350830078125, -0.006084442138671875, -0.054443359375, -0.0517578125, 0.0209197998046875, -0.024810791015625, -0.0016870498657226562, -0.08258056640625, -0.03582763671875, 0.019744873046875, -0.049530029296875, -0.001972198486328125, 0.0193328857421875, 0.083984375, 0.02459716796875, 0.00647735595703125, -0.015716552734375, -0.017913818359375, 0.022674560546875, 0.002971649169921875, 0.01386260986328125, 0.00922393798828125, -0.00719451904296875, 0.0048675537109375, -0.01195526123046875, 0.00579071044921875, -0.047332763671875, 0.09771728515625, -0.034881591796875, -0.016357421875, 0.0211334228515625, -0.07818603515625, 0.047454833984375, 0.03668212890625, 0.01007843017578125, -0.0261688232421875, -0.004520416259765625, 0.039306640625, 0.00039196014404296875, 0.0016241073608398438, -0.029205322265625, 0.01470184326171875, -0.0201873779296875, 0.005329132080078125, 0.050323486328125, 0.058135986328125, -0.01131439208984375, 0.01461029052734375, 0.016693115234375, -0.0016317367553710938, -0.0242156982421875, -0.018310546875, -0.031768798828125, 0.0072784423828125, 0.01363372802734375, -0.0267181396484375, 0.00009775161743164062, 0.0030345916748046875, -0.0207977294921875, -0.02789306640625, -0.050140380859375, -0.04925537109375, 0.0132904052734375, 0.05377197265625, 0.02685546875, 0.003620147705078125, 0.006099700927734375, 0.0467529296875, 0.01149749755859375, -0.00016570091247558594, 0.03515625, 0.0295562744140625, -0.01806640625, -0.0260162353515625, 0.0134124755859375, -0.0117034912109375, 0.041473388671875, 0.0477294921875, -0.0203704833984375, 0.048431396484375, -0.02685546875, 0.05267333984375, 0.037445068359375, -0.020050048828125, 0.004947662353515625, 0.03125, 0.017486572265625, -0.061859130859375, -0.00994110107421875, 0.00433349609375, -0.003124237060546875, 0.046295166015625, -0.005672454833984375, 0.00991058349609375, 0.00948333740234375, -0.006855010986328125, 0.008819580078125, -0.049041748046875, 0.033966064453125, 0.04296875, -0.023773193359375, -0.0289306640625, -0.0156402587890625, 0.0034046173095703125, 0.04571533203125, -0.00446319580078125, -0.0161590576171875, -0.03057861328125, -0.02593994140625, -0.01058197021484375, -0.053924560546875, 0.0009870529174804688, 0.02410888671875, -0.020538330078125, -0.0004146099090576172, 0.0144805908203125, -0.0452880859375, -0.037017822265625, -0.00017786026000976562, -0.00846099853515625, 0.01216888427734375, -0.044830322265625, 0.01316070556640625, -0.044921875, 0.046234130859375, -0.0228729248046875, 0.0121002197265625, 0.05877685546875, 0.0321044921875, 0.019012451171875, -0.0156097412109375, -0.0011434555053710938, -0.00336456298828125, -0.05029296875, -0.06951904296875, -0.01038360595703125, -0.007602691650390625, 0.01947021484375, 0.018218994140625, -0.006832122802734375, -0.0274505615234375, -0.023345947265625, 0.015899658203125, 0.0203094482421875, 0.025604248046875, -0.0191802978515625, 0.06866455078125, -0.0132598876953125, 0.0697021484375, -0.004756927490234375, -0.00688934326171875, -0.058135986328125, 0.00482940673828125, -0.01268768310546875, -0.038970947265625, -0.006252288818359375, 0.0027599334716796875, 0.002410888671875, 0.0249786376953125, 0.03009033203125, -0.0060882568359375, -0.003509521484375, -0.004150390625, -0.002361297607421875, -0.036346435546875, 0.03887939453125, 0.00574493408203125, 0.04254150390625, -0.052490234375, -0.031829833984375, -0.016754150390625, -0.00179290771484375, -0.01364898681640625, 0.032073974609375, -0.022186279296875, 0.01425933837890625, 0.020294189453125, -0.02130126953125, 0.0258636474609375, 0.0357666015625, 0.004367828369140625, 0.057891845703125, 0.0025730133056640625, 0.0304107666015625, 0.05291748046875, -0.02008056640625, -0.01025390625, 0.00827789306640625, 0.0621337890625, 0.00974273681640625, -0.0055389404296875, 0.0745849609375, -0.0152435302734375, 0.0160064697265625, 0.04754638671875, 0.04180908203125, -0.08843994140625, 0.01316070556640625, 0.013153076171875, 0.021392822265625, 0.043212890625, -0.007305145263671875, -0.00873565673828125, -0.024810791015625, -0.01375579833984375, 0.0016126632690429688, -0.034576416015625, -0.0017290115356445312, -0.003154754638671875, 0.00289154052734375, -0.03338623046875, -0.02386474609375, -0.005886077880859375, -0.039398193359375, 0.036712646484375, 0.0333251953125, -0.0013303756713867188, -0.0281982421875, -0.0004591941833496094, -0.004974365234375, -0.030517578125, -0.0660400390625, -0.01221466064453125, -0.01514434814453125, -0.003078460693359375, 0.0198974609375, 0.00821685791015625, 0.0013113021850585938, 0.045166015625, -0.0322265625, 0.032867431640625, 0.01317596435546875, -0.0240478515625, -0.07769775390625, -0.0272064208984375, 0.01383209228515625, 0.0036220550537109375, -0.039764404296875, 0.030242919921875, -0.03350830078125, -0.031097412109375, -0.01125335693359375, -0.01488494873046875, 0.09197998046875, -0.01336669921875, -0.039276123046875, 0.004779815673828125, 0.00699615478515625, -0.00800323486328125, 0.021728515625, 0.0156402587890625, -0.032073974609375, -0.0172882080078125, 0.00029015541076660156, -0.035369873046875, -0.002506256103515625, 0.0157318115234375, -0.06158447265625, 0.052001953125, -0.00046324729919433594, 0.024688720703125, 0.00894927978515625, 0.01039886474609375, -0.0200347900390625, -0.0005669593811035156, -0.0252838134765625, 0.06390380859375, -0.0177459716796875, 0.01471710205078125, -0.0267181396484375, 0.0024356842041015625, 0.0033473968505859375, 0.00939178466796875, 0.0576171875, 0.01406097412109375, -0.044097900390625, -0.0182647705078125, 0.048309326171875, 0.03314208984375, -0.007518768310546875, 0.0391845703125, -0.011383056640625, 0.0229339599609375, 0.01549530029296875, -0.02764892578125, 0.02020263671875, 0.0044708251953125, -0.03973388671875, 0.0170745849609375, 0.01666259765625, 0.025146484375, -0.03485107421875, 0.016082763671875, 0.0096893310546875, -0.022369384765625, 0.0013284683227539062, 0.00812530517578125, 0.00380706787109375, -0.01837158203125, 0.01222991943359375, -0.1025390625, -0.01401519775390625, -0.02545166015625, 0.03302001953125, 0.03131103515625, 0.0210113525390625, 0.021087646484375, 0.016204833984375, 0.033599853515625, -0.0197906494140625, 0.01097869873046875, -0.005374908447265625, -0.00853729248046875, 0.03497314453125, 0.0095977783203125, 0.0220947265625, -0.041290283203125, 0.030670166015625, 0.032135009765625, 0.037078857421875, -0.03399658203125, -0.05560302734375, 0.0019197463989257812, -0.00189971923828125, 0.0013246536254882812, -0.006534576416015625, 0.019073486328125, -0.0291290283203125, 0.017425537109375, -0.0625, -0.002231597900390625, 0.01904296875, 0.002689361572265625, -0.0160064697265625, 0.011810302734375, -0.0041046142578125, -0.005901336669921875, -0.053131103515625, -0.022705078125, 0.021209716796875, 0.0831298828125, 0.06671142578125, 0.03912353515625, 0.01361083984375, -0.036712646484375, -0.0213775634765625, 0.003925323486328125, -0.004543304443359375, 0.032867431640625, -0.057373046875, -0.002315521240234375, 0.011810302734375, 0.0418701171875, 0.0227813720703125, 0.031982421875, 0.045166015625, 0.034820556640625, 0.00460052490234375, -0.0033054351806640625, 0.04730224609375, -0.00989532470703125, 0.01058197021484375, -0.031707763671875, 0.007091522216796875, -0.00911712646484375, -0.0034923553466796875, -0.01381683349609375, 0.0323486328125, 0.0015277862548828125, -0.05072021484375, 0.016387939453125, -0.00665283203125, -0.054168701171875, 0.04461669921875, -0.0186614990234375, 0.06890869140625, -0.01336669921875, -0.0158538818359375, -0.00557708740234375, -0.037322998046875, 0.025421142578125, 0.0086212158203125, 0.013336181640625, -0.0081329345703125, 0.055084228515625, 0.00415802001953125, 0.018280029296875, -0.020751953125, -0.0149993896484375, 0.0222930908203125, 0.0286102294921875, 0.01256561279296875, 0.033355712890625, -0.009674072265625, -0.0215606689453125, 0.0008397102355957031, 0.058258056640625, -0.0247955322265625, 0.07940673828125, -0.0540771484375, 0.01003265380859375, -0.04156494140625, 0.04364013671875, -0.057403564453125, -0.0400390625, 0.01288604736328125, 0.01183319091796875, 0.015594482421875, 0.00962066650390625, 0.024200439453125, -0.01540374755859375, 0.053253173828125, -0.054718017578125, -0.00806427001953125, -0.01177215576171875, 0.0252838134765625, -0.04327392578125, -0.01287078857421875, -0.02850341796875, 0.01071929931640625, -0.023712158203125, -0.006641387939453125, 0.03118896484375, -0.015899658203125, -0.05218505859375, 0.01395416259765625, 0.049224853515625, -0.046112060546875, 0.047943115234375, -0.0377197265625, 0.09356689453125, 0.043975830078125, 0.0194549560546875, 0.006847381591796875, 0.0297698974609375, -0.009490966796875, 0.0158538818359375, 0.0203704833984375, 0.0171661376953125, 0.01318359375, -0.0205841064453125, -0.0435791015625, -0.020355224609375, -0.0175628662109375, -0.03564453125, -0.01560211181640625, 0.01068115234375, -0.0166473388671875, -0.042938232421875, 0.032562255859375, -0.01145172119140625, 0.0210113525390625, -0.0433349609375, -0.006591796875, -0.0035190582275390625, -0.075439453125, -0.04315185546875, -0.026153564453125, 0.0139617919921875, 0.02032470703125, -0.0640869140625, 0.02142333984375, 0.007472991943359375, 0.01456451416015625, -0.00007581710815429688, 0.046966552734375, -0.025299072265625, 0.012542724609375, -0.00489044189453125, -0.0160064697265625, -0.0208740234375, 0.05841064453125, -0.002368927001953125, -0.0136871337890625, -0.01092529296875, 0.001041412353515625, -0.0013065338134765625, -0.028839111328125, -0.019134521484375, 0.0162811279296875, 0.01042938232421875, -0.022857666015625, -0.0672607421875, 0.032318115234375, 0.00537109375, -0.036895751953125, 0.0290374755859375, -0.05096435546875, -0.056182861328125, 0.022186279296875, -0.0303497314453125, -0.004024505615234375, -0.0208587646484375, -0.0221405029296875, 0.07830810546875, 0.01363372802734375, -0.014129638671875, -0.016876220703125, 0.0277252197265625, 0.02581787109375, 0.01461029052734375, -0.0055694580078125, 0.000324249267578125, -0.02520751953125, -0.0241546630859375, -0.0280914306640625, 0.006755828857421875, 0.0225067138671875, -0.046539306640625, -0.00955963134765625, -0.0241241455078125, 0.002857208251953125, -0.057769775390625, -0.0307159423828125, 0.0267486572265625, -0.01203155517578125, 0.014373779296875, -0.01531219482421875, -0.00818634033203125, 0.00782012939453125, 0.010223388671875, -0.0006275177001953125, -0.0325927734375, -0.052947998046875, -0.035400390625, 0.07574462890625, 0.0439453125, 0.0270843505859375, -0.020355224609375, 0.057159423828125, 0.007480621337890625, -0.058807373046875, 0.0018701553344726562, 0.0162353515625, -0.031524658203125, -0.0261077880859375, 0.00966644287109375, 0.029052734375, 0.00022494792938232422, -0.0106964111328125, 0.01483154296875, -0.03802490234375, 0.01255035400390625, 0.00533294677734375, -0.044921875, 0.0311279296875, 0.019439697265625, -0.0241241455078125, -0.0184478759765625, 0.01009368896484375, -0.0301666259765625, 0.010589599609375, 0.0292816162109375, -0.05615234375, -0.031005859375, 0.01512908935546875, 0.0309906005859375, -0.031036376953125, 0.0275115966796875, -0.02264404296875, 0.0223236083984375, -0.00496673583984375, 0.00482940673828125, -0.004016876220703125, -0.006420135498046875, -0.039581298828125, 0.0635986328125, -0.00290679931640625, 0.04644775390625, -0.037628173828125, 0.0291748046875, -0.02593994140625, 0.01372528076171875, 0.0191802978515625, 0.00717926025390625, 0.083251953125, -0.0055694580078125, 0.0034008026123046875, -0.024566650390625, -0.0159912109375, -0.04132080078125, -0.005626678466796875, 0.014801025390625, -0.015869140625, 0.017822265625 ]
b0d466012180168074aff531f7cdb4ce872305f3
Wordpress Stackexchange Q: How to remove Filters from post admin page? On a custom post type, I want to remove the filters that show up on /edit.php (where all of the posts are listed out). I have a custom taxonomy that shows up as a filter that I WANT to keep, but I want to REMOVE the 'Show all dates' and 'View all categories' filters. Any ideas? A: There is a filter for the dropdown dates since WP 3.7.0 (sorry I did not check the others but I assume they also have filters). The filter is: months_dropdown_results This example below removed the dates dropdown from the admin pages filter but not for posts. function remove_date_drop(){ $screen = get_current_screen(); if ( 'page' == $screen->post_type ){ add_filter('months_dropdown_results', '__return_empty_array'); } } add_action('admin_head', 'remove_date_drop');
Q: How to remove Filters from post admin page? On a custom post type, I want to remove the filters that show up on /edit.php (where all of the posts are listed out). I have a custom taxonomy that shows up as a filter that I WANT to keep, but I want to REMOVE the 'Show all dates' and 'View all categories' filters. Any ideas? A: There is a filter for the dropdown dates since WP 3.7.0 (sorry I did not check the others but I assume they also have filters). The filter is: months_dropdown_results This example below removed the dates dropdown from the admin pages filter but not for posts. function remove_date_drop(){ $screen = get_current_screen(); if ( 'page' == $screen->post_type ){ add_filter('months_dropdown_results', '__return_empty_array'); } } add_action('admin_head', 'remove_date_drop'); A: This is a very similar question to the one you posted here: How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button Please check my answer. You would simply need to add the IDs of the elements you wish to hide. You can traverse the DOM to target the elements you need: #posts-filter .tablenav select[name=m], #posts-filter .tablenav select[name=cat], #posts-filter .tablenav #post-query-submit{ display:none; } A: Hiding by css also affect other post/page types. At least I was able to remove Actions for an specific cpt using this hook add_filter('bulk_actions-edit-mycpt', '__return_empty_array'); A: Since WordPress 4.2.0, removing the All Dates dropdown filter menu is much easier thanks to the disable_months_dropdown filter. To disable the dates filter menu everywhere, use the __return_true helper: add_filter('disable_months_dropdown', '__return_true'); To disable the dates filter menu for a specific post_type, use a simple function like this: add_filter( 'disable_months_dropdown', function ($disable, $type) { return $type === 'my_post_type'; }, 10, 2, );
wordpress
{ "language": "en", "length": 284, "provenance": "stackexchange_00019.jsonl.gz:415294", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36120" }
[ 0.07525634765625, 0.00952911376953125, 0.015350341796875, -0.043304443359375, 0.0243682861328125, -0.04443359375, 0.0478515625, -0.0296630859375, 0.046295166015625, -0.0022430419921875, 0.0009407997131347656, -0.038665771484375, -0.01538848876953125, -0.052032470703125, -0.0207672119140625, -0.0178985595703125, 0.022613525390625, -0.017791748046875, 0.0236053466796875, -0.010162353515625, 0.01385498046875, 0.007122039794921875, 0.018585205078125, 0.01068115234375, -0.003948211669921875, 0.0193939208984375, 0.0245513916015625, -0.01505279541015625, 0.005039215087890625, -0.020751953125, 0.0019254684448242188, 0.00726318359375, 0.0003135204315185547, 0.03167724609375, 0.014923095703125, 0.0137939453125, -0.0274658203125, 0.0304412841796875, 0.03253173828125, -0.0251007080078125, 0.003803253173828125, 0.0007648468017578125, -0.0057525634765625, 0.0262603759765625, -0.027618408203125, -0.018402099609375, -0.0005025863647460938, -0.02398681640625, 0.0014028549194335938, -0.0361328125, 0.001995086669921875, -0.0021514892578125, 0.034912109375, -0.0689697265625, -0.0310211181640625, -0.040069580078125, -0.01323699951171875, 0.03717041015625, 0.03607177734375, 0.0103759765625, -0.046600341796875, 0.005161285400390625, 0.00603485107421875, -0.05743408203125, -0.0111236572265625, -0.008392333984375, 0.00786590576171875, -0.0023860931396484375, -0.04840087890625, -0.01245880126953125, 0.051116943359375, -0.0262908935546875, 0.01065826416015625, -0.0257110595703125, 0.0157318115234375, -0.014862060546875, -0.0016527175903320312, -0.01056671142578125, 0.017730712890625, 0.00949859619140625, 0.002941131591796875, -0.004302978515625, -0.037841796875, 0.01244354248046875, -0.00426483154296875, 0.0175323486328125, -0.01364898681640625, -0.0053863525390625, -0.0240478515625, -0.005702972412109375, -0.0191192626953125, -0.02313232421875, -0.040679931640625, 0.01605224609375, 0.01519775390625, -0.0218048095703125, 0.0474853515625, 0.048065185546875, 0.00662994384765625, -0.005512237548828125, -0.0196990966796875, -0.0234832763671875, -0.0226898193359375, -0.015869140625, 0.00959014892578125, 0.029510498046875, -0.0161285400390625, 0.040924072265625, 0.057891845703125, 0.036468505859375, 0.0231170654296875, 0.01251220703125, -0.0305328369140625, -0.00778961181640625, -0.0221099853515625, 0.0212249755859375, -0.0178070068359375, -0.023956298828125, -0.013336181640625, -0.00787353515625, 0.01334381103515625, 0.0088958740234375, -0.0083465576171875, -0.00942230224609375, 0.026947021484375, -0.0004925727844238281, -0.04266357421875, -0.006740570068359375, 0.0240936279296875, -0.00926971435546875, -0.0489501953125, 0.0218658447265625, 0.04559326171875, 0.0196990966796875, 0.0240936279296875, -0.0127716064453125, 0.00846099853515625, -0.000499725341796875, -0.00833892822265625, 0.0158233642578125, 0.032135009765625, -0.03076171875, -0.017333984375, 0.006389617919921875, -0.00858306884765625, 0.020111083984375, 0.0166473388671875, 0.009918212890625, 0.0127716064453125, -0.0213470458984375, -0.034515380859375, 0.00901031494140625, 0.058197021484375, 0.01509857177734375, -0.039398193359375, -0.0024280548095703125, 0.0697021484375, -0.040069580078125, -0.05206298828125, -0.06591796875, 0.0178680419921875, 0.014678955078125, 0.002716064453125, -0.0018033981323242188, -0.02764892578125, -0.00914764404296875, -0.018310546875, 0.0018606185913085938, 0.0260162353515625, -0.055328369140625, 0.03326416015625, -0.0297088623046875, 0.0098114013671875, 0.00038123130798339844, 0.006954193115234375, 0.041351318359375, 0.016265869140625, -0.0006341934204101562, 0.01389312744140625, 0.01904296875, -0.027130126953125, -0.04644775390625, 0.0236053466796875, -0.035003662109375, -0.050140380859375, -0.0172576904296875, 0.0211029052734375, 0.0111236572265625, 0.00925445556640625, 0.016937255859375, 0.0660400390625, 0.024627685546875, -0.0146026611328125, 0.00382232666015625, 0.0257720947265625, -0.01898193359375, -0.026153564453125, -0.00914764404296875, 0.00164794921875, -0.004673004150390625, -0.0188751220703125, 0.051025390625, -0.0256805419921875, 0.03887939453125, -0.017120361328125, 0.0297088623046875, -0.0177764892578125, 0.041259765625, -0.0298614501953125, 0.029541015625, 0.03326416015625, 0.0140533447265625, -0.06634521484375, 0.047088623046875, 0.0019512176513671875, -0.00240325927734375, 0.0063629150390625, 0.001708984375, -0.020721435546875, -0.0040130615234375, 0.00846099853515625, -0.04754638671875, -0.004444122314453125, 0.052642822265625, 0.079833984375, -0.0206451416015625, -0.004913330078125, -0.0296478271484375, 0.06915283203125, -0.0197601318359375, -0.01279449462890625, 0.047698974609375, 0.040008544921875, 0.0244140625, -0.050506591796875, -0.01277923583984375, -0.01187896728515625, -0.048980712890625, -0.007701873779296875, 0.05426025390625, 0.031646728515625, 0.061492919921875, -0.0021800994873046875, -0.01371002197265625, 0.06781005859375, -0.0672607421875, -0.006519317626953125, -0.0161895751953125, 0.0092926025390625, 0.00704193115234375, 0.03131103515625, 0.0007495880126953125, 0.0243682861328125, -0.0011224746704101562, 0.05206298828125, 0.0238189697265625, 0.005100250244140625, -0.019927978515625, 0.0164947509765625, -0.00672149658203125, 0.01922607421875, -0.0276947021484375, -0.050537109375, 0.006511688232421875, 0.03289794921875, 0.0016813278198242188, 0.03955078125, 0.022918701171875, -0.0311431884765625, -0.0141754150390625, 0.033935546875, 0.01358795166015625, -0.007450103759765625, -0.00989532470703125, 0.01418304443359375, -0.036041259765625, -0.0260772705078125, 0.022430419921875, -0.025909423828125, -0.03173828125, -0.0086822509765625, 0.059295654296875, 0.0276947021484375, -0.007320404052734375, -0.0084991455078125, -0.043548583984375, 0.013824462890625, -0.00466156005859375, 0.006587982177734375, -0.0204010009765625, 0.01100921630859375, -0.0030956268310546875, -0.01513671875, 0.01666259765625, 0.0328369140625, -0.04559326171875, -0.028900146484375, -0.0302886962890625, 0.02978515625, -0.0465087890625, 0.0186309814453125, 0.062347412109375, 0.00438690185546875, 0.0016202926635742188, 0.00922393798828125, -0.0225982666015625, 0.02496337890625, 0.0135650634765625, 0.007724761962890625, 0.005496978759765625, -0.03662109375, 0.01425933837890625, 0.00870513916015625, -0.029449462890625, 0.005779266357421875, -0.0272064208984375, -0.013519287109375, -0.004791259765625, -0.06182861328125, 0.004009246826171875, -0.0261383056640625, -0.012603759765625, -0.0309906005859375, 0.00007200241088867188, -0.021484375, 0.0243682861328125, -0.0025959014892578125, 0.00787353515625, 0.01074981689453125, 0.004299163818359375, -0.037200927734375, 0.013336181640625, -0.02252197265625, 0.01186370849609375, -0.01261138916015625, -0.0128021240234375, 0.00205230712890625, 0.1597900390625, 0.0221710205078125, -0.113525390625, -0.007579803466796875, -0.010101318359375, -0.037109375, 0.06500244140625, 0.026214599609375, -0.0267333984375, 0.0165863037109375, 0.0006661415100097656, 0.02362060546875, 0.021636962890625, -0.021881103515625, -0.0161895751953125, -0.015716552734375, 0.01351165771484375, 0.00489044189453125, -0.0304412841796875, 0.01291656494140625, 0.00675201416015625, -0.0205230712890625, -0.042083740234375, -0.0116119384765625, -0.01224517822265625, -0.02020263671875, 0.044952392578125, -0.003932952880859375, -0.00524139404296875, 0.0151519775390625, 0.03399658203125, 0.0040740966796875, -0.01140594482421875, 0.012725830078125, -0.029998779296875, 0.0213775634765625, 0.004962921142578125, 0.026092529296875, -0.0206756591796875, 0.0030574798583984375, -0.03436279296875, 0.0274200439453125, 0.00669097900390625, -0.007354736328125, 0.023529052734375, -0.027557373046875, 0.0239410400390625, -0.0880126953125, 0.055145263671875, -0.022613525390625, -0.0279693603515625, -0.031768798828125, -0.0214996337890625, 0.024261474609375, 0.103271484375, -0.055572509765625, -0.020355224609375, -0.006305694580078125, -0.003093719482421875, 0.0202484130859375, -0.02130126953125, -0.01763916015625, -0.025177001953125, -0.1424560546875, 0.01708984375, 0.0010652542114257812, -0.03387451171875, -0.04034423828125, 0.0311126708984375, -0.11639404296875, -0.039947509765625, 0.0472412109375, -0.0341796875, -0.0094451904296875, 0.019683837890625, -0.0190277099609375, -0.0272369384765625, -0.039886474609375, 0.01184844970703125, -0.047637939453125, -0.0066070556640625, 0.003490447998046875, 0.025177001953125, -0.010528564453125, 0.0171966552734375, -0.03289794921875, 0.00853729248046875, 0.07501220703125, 0.00983428955078125, 0.0038394927978515625, -0.0648193359375, 0.016998291015625, 0.0123748779296875, 0.0291290283203125, -0.0167388916015625, -0.01403045654296875, -0.0204620361328125, -0.01505279541015625, 0.00859832763671875, -0.01259613037109375, 0.037628173828125, 0.00574493408203125, -0.006717681884765625, -0.007465362548828125, -0.0222625732421875, -0.07037353515625, -0.005413055419921875, -0.06097412109375, 0.0047454833984375, -0.0225677490234375, -0.044158935546875, 0.0230560302734375, 0.00867462158203125, -0.0296783447265625, 0.007312774658203125, 0.03460693359375, 0.0168609619140625, -0.032440185546875, -0.03729248046875, 0.021728515625, 0.039642333984375, -0.040802001953125, 0.0902099609375, 0.0225372314453125, -0.01529693603515625, 0.08514404296875, -0.01386260986328125, -0.012054443359375, -0.06402587890625, 0.08050537109375, -0.0017118453979492188, 0.01102447509765625, -0.0027523040771484375, -0.05572509765625, 0.0836181640625, 0.0257415771484375, -0.0016717910766601562, -0.02728271484375, 0.01505279541015625, 0.038787841796875, -0.0059814453125, -0.00414276123046875, -0.0281524658203125, -0.020263671875, 0.0156402587890625, -0.0094451904296875, 0.01306915283203125, 0.01142120361328125, 0.0012865066528320312, -0.00707244873046875, -0.007312774658203125, 0.0160369873046875, -0.037200927734375, 0.0224761962890625, -0.043731689453125, 0.044189453125, -0.0216522216796875, -0.00665283203125, -0.034698486328125, -0.0010194778442382812, 0.00400543212890625, -0.021240234375, -0.040740966796875, -0.01195526123046875, -0.01018524169921875, 0.0173492431640625, 0.0279388427734375, -0.0203704833984375, 0.020904541015625, 0.0169525146484375, 0.0028972625732421875, 0.00004798173904418945, -0.0185089111328125, -0.0155029296875, -0.029693603515625, -0.01081085205078125, 0.0016222000122070312, -0.00966644287109375, 0.043060302734375, 0.037506103515625, -0.01337432861328125, 0.04058837890625, -0.0179595947265625, 0.032135009765625, 0.0296478271484375, 0.01873779296875, 0.01172637939453125, -0.003803253173828125, 0.0088958740234375, 0.0024566650390625, 0.007354736328125, -0.02606201171875, -0.048004150390625, 0.01043701171875, -0.002735137939453125, -0.007335662841796875, 0.01000213623046875, 0.03350830078125, 0.055755615234375, -0.0291290283203125, 0.03765869140625, 0.038055419921875, -0.0272979736328125, -0.0242919921875, -0.0178070068359375, 0.0009751319885253906, 0.007259368896484375, -0.007137298583984375, 0.0017194747924804688, -0.031005859375, 0.0085296630859375, 0.0101165771484375, -0.007534027099609375, -0.0284423828125, -0.028350830078125, -0.00615692138671875, -0.0264739990234375, 0.00921630859375, -0.063232421875, -0.018829345703125, -0.015838623046875, 0.01316070556640625, 0.0416259765625, -0.0295562744140625, 0.031951904296875, 0.002124786376953125, -0.0214385986328125, 0.024078369140625, 0.0075225830078125, 0.06695556640625, 0.039093017578125, -0.06298828125, -0.004360198974609375, -0.05133056640625, -0.0121917724609375, -0.08294677734375, -0.0638427734375, -0.036834716796875, 0.0224151611328125, 0.0194091796875, 0.0252838134765625, 0.017730712890625, -0.0158843994140625, -0.0066986083984375, 0.00557708740234375, 0.01384735107421875, 0.0455322265625, -0.0021800994873046875, 0.073974609375, -0.01641845703125, 0.0635986328125, 0.01421356201171875, 0.0182647705078125, -0.0291290283203125, -0.01213836669921875, 0.0229339599609375, -0.051116943359375, -0.0467529296875, -0.00679779052734375, -0.07525634765625, 0.01751708984375, 0.041473388671875, -0.016937255859375, 0.0210723876953125, -0.0282135009765625, -0.0063629150390625, -0.036468505859375, 0.02587890625, -0.0268707275390625, 0.0007843971252441406, 0.0080413818359375, -0.0163421630859375, 0.038177490234375, 0.005218505859375, 0.00490570068359375, 0.02227783203125, -0.0288238525390625, 0.032684326171875, 0.01520538330078125, -0.0018100738525390625, 0.039154052734375, 0.037811279296875, 0.01108551025390625, 0.042938232421875, 0.00795745849609375, 0.0322265625, 0.00855255126953125, -0.034271240234375, -0.0213775634765625, -0.01505279541015625, 0.03387451171875, 0.0031890869140625, 0.013702392578125, 0.058258056640625, -0.00450897216796875, -0.00812530517578125, 0.074462890625, 0.032867431640625, -0.10125732421875, -0.00002568960189819336, 0.01505279541015625, 0.039581298828125, 0.047607421875, 0.006092071533203125, -0.01134490966796875, -0.023651123046875, -0.0223541259765625, 0.0119171142578125, -0.028594970703125, -0.0009016990661621094, 0.0233306884765625, -0.005031585693359375, -0.00970458984375, 0.028839111328125, 0.0085296630859375, 0.0010738372802734375, -0.0261993408203125, -0.00269317626953125, -0.003757476806640625, -0.00707244873046875, 0.01503753662109375, 0.004589080810546875, -0.045166015625, -0.08343505859375, -0.0300140380859375, -0.0035266876220703125, -0.0460205078125, 0.03765869140625, -0.01001739501953125, -0.013458251953125, 0.037841796875, -0.035247802734375, 0.035980224609375, -0.0081634521484375, -0.0217132568359375, -0.053253173828125, -0.040802001953125, -0.0099334716796875, 0.00817108154296875, -0.017669677734375, 0.0279998779296875, -0.016510009765625, -0.0372314453125, 0.00609588623046875, -0.0106048583984375, 0.0626220703125, -0.0161895751953125, -0.032318115234375, -0.00695037841796875, -0.0258941650390625, 0.01389312744140625, 0.0211181640625, 0.02557373046875, -0.0144500732421875, 0.00717926025390625, 0.017333984375, -0.0140380859375, -0.004138946533203125, 0.0195465087890625, -0.0654296875, 0.08355712890625, -0.020355224609375, 0.031829833984375, 0.021728515625, 0.0206298828125, -0.0433349609375, -0.0068817138671875, -0.03143310546875, 0.048553466796875, 0.058868408203125, 0.0201416015625, -0.0182647705078125, -0.01004791259765625, 0.00893402099609375, 0.0294036865234375, 0.053955078125, 0.0013399124145507812, -0.006267547607421875, -0.016448974609375, 0.07415771484375, 0.0955810546875, 0.04193115234375, -0.0188140869140625, 0.0031299591064453125, 0.0146026611328125, 0.0207366943359375, -0.03497314453125, 0.0278167724609375, -0.0271453857421875, 0.0027103424072265625, 0.0283203125, 0.00492095947265625, 0.031646728515625, 0.00801849365234375, -0.032196044921875, 0.00870513916015625, -0.0025463104248046875, -0.0010528564453125, -0.024871826171875, 0.03192138671875, 0.00740814208984375, 0.03179931640625, -0.08428955078125, -0.03826904296875, -0.01213836669921875, 0.039794921875, 0.01678466796875, 0.0263824462890625, 0.01256561279296875, 0.0195159912109375, 0.010498046875, -0.023712158203125, 0.0168304443359375, 0.0107269287109375, -0.03363037109375, 0.03472900390625, 0.004924774169921875, 0.0193023681640625, -0.01392364501953125, 0.00882720947265625, -0.005786895751953125, 0.01143646240234375, -0.022705078125, -0.0684814453125, 0.01470947265625, 0.006008148193359375, 0.006572723388671875, 0.0234527587890625, -0.009124755859375, -0.035797119140625, 0.041351318359375, -0.056121826171875, 0.0072784423828125, 0.0226287841796875, 0.027740478515625, -0.01099395751953125, -0.0072021484375, -0.0291595458984375, 0.0018987655639648438, -0.0394287109375, -0.0006270408630371094, 0.0006866455078125, 0.044891357421875, 0.0335693359375, 0.029449462890625, -0.0227813720703125, -0.023956298828125, -0.0005159378051757812, -0.00896453857421875, -0.0105743408203125, -0.0082244873046875, -0.039276123046875, -0.0235137939453125, -0.0022296905517578125, 0.031585693359375, -0.007465362548828125, -0.001712799072265625, 0.03509521484375, 0.03570556640625, -0.0242767333984375, -0.025970458984375, -0.005733489990234375, -0.0203399658203125, -0.0296783447265625, -0.042236328125, -0.0118865966796875, 0.00984954833984375, -0.01134490966796875, 0.0255889892578125, -0.00968170166015625, 0.0294647216796875, -0.0161590576171875, 0.001708984375, 0.0008902549743652344, -0.058013916015625, 0.02716064453125, -0.009124755859375, 0.06597900390625, -0.01153564453125, -0.0772705078125, -0.007144927978515625, -0.036102294921875, -0.040313720703125, 0.0231781005859375, 0.0280303955078125, -0.04217529296875, 0.038970947265625, 0.0279541015625, -0.0296783447265625, 0.0092010498046875, 0.01174163818359375, -0.004154205322265625, -0.049835205078125, 0.005336761474609375, -0.03271484375, -0.029998779296875, -0.016754150390625, -0.003147125244140625, 0.032745361328125, -0.0230255126953125, 0.06488037109375, -0.0246429443359375, -0.0033702850341796875, -0.040740966796875, 0.035614013671875, -0.0697021484375, -0.032623291015625, 0.036865234375, -0.0210723876953125, -0.01100921630859375, 0.019439697265625, -0.023773193359375, 0.00829315185546875, 0.0538330078125, -0.05145263671875, 0.011505126953125, 0.0237579345703125, -0.0007081031799316406, -0.054595947265625, 0.0252227783203125, -0.011444091796875, 0.01216888427734375, 0.021484375, -0.007198333740234375, 0.0240478515625, 0.026885986328125, 0.023193359375, 0.001613616943359375, 0.024017333984375, 0.00525665283203125, 0.021148681640625, 0.03515625, 0.036895751953125, 0.04168701171875, -0.058349609375, 0.00391387939453125, 0.0220794677734375, 0.0034942626953125, 0.01474761962890625, 0.031494140625, -0.00983428955078125, 0.043548583984375, 0.01520538330078125, -0.03326416015625, -0.0213165283203125, 0.0228424072265625, 0.0059967041015625, -0.0003314018249511719, -0.036865234375, -0.0082855224609375, -0.041748046875, 0.0179901123046875, -0.031585693359375, -0.034576416015625, -0.0269927978515625, 0.01117706298828125, -0.0308685302734375, -0.05926513671875, -0.09625244140625, 0.00841522216796875, 0.0310516357421875, 0.02545166015625, -0.0911865234375, 0.07537841796875, -0.023162841796875, 0.024139404296875, 0.006587982177734375, 0.0014705657958984375, -0.01148223876953125, 0.01959228515625, -0.0038299560546875, -0.0037078857421875, -0.0521240234375, 0.0179290771484375, -0.0205535888671875, -0.026031494140625, 0.01244354248046875, 0.0045928955078125, -0.0206146240234375, -0.0240020751953125, -0.0186767578125, 0.0159759521484375, -0.02911376953125, -0.00725555419921875, 0.010345458984375, 0.03485107421875, -0.031402587890625, -0.048492431640625, -0.004657745361328125, 0.0174407958984375, 0.0058746337890625, 0.025115966796875, -0.001644134521484375, 0.0304718017578125, -0.0183563232421875, -0.07122802734375, 0.072265625, -0.01447296142578125, -0.02459716796875, 0.002086639404296875, 0.01277923583984375, -0.0170135498046875, 0.047210693359375, 0.02569580078125, -0.039398193359375, -0.0113677978515625, 0.00400543212890625, 0.02911376953125, 0.044158935546875, 0.0164337158203125, 0.022979736328125, -0.0212249755859375, 0.03338623046875, 0.0007205009460449219, 0.03125, -0.0082855224609375, -0.01015472412109375, 0.042694091796875, 0.05535888671875, -0.0124359130859375, -0.01800537109375, 0.017791748046875, -0.02703857421875, 0.00021898746490478516, -0.040374755859375, -0.0848388671875, -0.060302734375, 0.10601806640625, 0.07635498046875, 0.052001953125, -0.00830078125, -0.033843994140625, -0.023284912109375, -0.0026569366455078125, -0.0357666015625, 0.01194000244140625, -0.048004150390625, 0.0013666152954101562, -0.0194854736328125, -0.01456451416015625, 0.030975341796875, -0.036773681640625, -0.022308349609375, 0.0020008087158203125, 0.01102447509765625, 0.00846099853515625, -0.052703857421875, 0.06451416015625, -0.0535888671875, -0.005462646484375, -0.0202178955078125, -0.031768798828125, -0.017822265625, -0.040252685546875, -0.006580352783203125, -0.0194854736328125, -0.042236328125, 0.015228271484375, 0.03887939453125, -0.0109100341796875, 0.0141448974609375, -0.025787353515625, -0.00823211669921875, -0.01485443115234375, 0.01091766357421875, -0.005992889404296875, -0.0016088485717773438, -0.00701904296875, 0.034210205078125, 0.003147125244140625, 0.044036865234375, 0.01433563232421875, 0.0509033203125, -0.00020837783813476562, 0.035736083984375, 0.01348876953125, -0.0467529296875, 0.034576416015625, -0.037353515625, -0.01641845703125, 0.00009232759475708008, -0.04949951171875, -0.052734375, -0.0026264190673828125, -0.0193023681640625, -0.00867462158203125, 0.0114593505859375 ]
dae9592ad808195ce2f23ef72f949c6e91521f79
Wordpress Stackexchange Q: How to disable posts and use pages only I am new to Wordpress theming and I would like to set up a Website that only has static content. Therefore would it make sense to disable posts and only use static pages? If so, is there an easy way to do that? A: I would recommend you to leave the post only for the admin user... literally the "admin", and create another user to manage the page, so I case you need it in the future for scalability you can go back to it with your admin account. Just add the following code to your functions.php function remove_menus () { global $menu; $user = wp_get_current_user(); if ($user->ID!=1) { // Is not administrator, $restricted = array(__(__('Posts')); end ($menu); while (prev($menu)){ $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} } } } add_action('admin_menu', 'remove_menus');
Q: How to disable posts and use pages only I am new to Wordpress theming and I would like to set up a Website that only has static content. Therefore would it make sense to disable posts and only use static pages? If so, is there an easy way to do that? A: I would recommend you to leave the post only for the admin user... literally the "admin", and create another user to manage the page, so I case you need it in the future for scalability you can go back to it with your admin account. Just add the following code to your functions.php function remove_menus () { global $menu; $user = wp_get_current_user(); if ($user->ID!=1) { // Is not administrator, $restricted = array(__(__('Posts')); end ($menu); while (prev($menu)){ $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} } } } add_action('admin_menu', 'remove_menus'); A: Have you thought about just renaming "Posts" to something like "News" ? So that the user (yourself or a client) could still post news, press releases, articles, etc. to prevent stagnant content on the site. It's quite simple to do. Just pop this in your functions file. function change_post_menu_label() { global $menu; global $submenu; $menu[5][0] = 'News'; $submenu['edit.php'][5][0] = 'News'; $submenu['edit.php'][10][0] = 'Add Article'; $submenu['edit.php'][15][0] = 'News Categories'; // Change name for categories $submenu['edit.php'][16][0] = 'News Article Tags'; // Change name for tags } function change_post_object_label() { global $wp_post_types; $labels = &$wp_post_types['post']->labels; $labels->name = 'News'; $labels->singular_name = 'News'; $labels->add_new = 'Add Article'; $labels->add_new_item = 'Add Article'; $labels->edit_item = 'Edit Article'; $labels->new_item = 'News Article'; $labels->view_item = 'View Article'; $labels->search_items = 'Search News'; $labels->not_found = 'No Articles found'; $labels->not_found_in_trash = 'No Articles found in Trash'; } add_action( 'init', 'change_post_object_label' ); add_action( 'admin_menu', 'change_post_menu_label' ); And now you can have news that everyone can benefit from. Hope this helps! A: You can simply hide the posts menu by adding the following to your functions.php file: function remove_posts_menu() { remove_menu_page('edit.php'); } add_action('admin_menu', 'remove_posts_menu'); WordPress does not permit the disabling of the actual post type with the unregister_post_type() function. The condition is here: https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-includes/post.php#L1754 // Do not allow unregistering internal post types. if ( $post_type_object->_builtin ) { return new WP_Error( 'invalid_post_type', __( 'Unregistering a built-in post type is not allowed' ) ); } A: posts / page are essentially the same - they are only different by definition of usage (and other minute things) . more or less like "blog" and "website" . A page is actually a "kind" of post (as far as wp is concerned) There are a ton of ways you can "disable" one or another . you can disable them by taxonomies, by hiding the menus, by not using one or another in the theme files... but in order to know what is the best way , can you explain a bit more WHY you need to "disable" them ? I suggest that before you start to "disable" things, install WP and start to play with it a bit - you will then understand much better. A: Would it make sense to disable posts and only use static pages? No. Unless you only want a small amount of pages. I would use Posts as they are more flexible. You can disable specific features for posts which you don't want to use like comments and RSS feed etc but you'll find posts are better to use if you want to add content on a regular basis. Otherwise, yes, you can simply use static pages. You'll find adding useful, relevant content on a regular basis will increase traffic to your site and increase your websites visibility on the internet.
wordpress
{ "language": "en", "length": 601, "provenance": "stackexchange_00019.jsonl.gz:415295", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36123" }
[ 0.1053466796875, -0.00701141357421875, 0.0390625, 0.00405120849609375, 0.0259246826171875, -0.052947998046875, 0.09661865234375, -0.059906005859375, 0.017852783203125, 0.016143798828125, 0.0038623809814453125, -0.027069091796875, -0.0014591217041015625, -0.03839111328125, -0.0073089599609375, -0.02581787109375, 0.01184844970703125, 0.0477294921875, 0.049407958984375, -0.0092620849609375, 0.0252532958984375, -0.00598907470703125, 0.00545501708984375, 0.053466796875, 0.0229034423828125, -0.060302734375, 0.00873565673828125, -0.00948333740234375, -0.00476837158203125, -0.0279541015625, 0.0185394287109375, 0.02593994140625, -0.0028095245361328125, 0.0193634033203125, 0.0144805908203125, -0.016510009765625, -0.0162506103515625, 0.026519775390625, 0.03814697265625, -0.0343017578125, 0.023162841796875, 0.00011044740676879883, -0.0090789794921875, 0.04217529296875, -0.0263214111328125, -0.043212890625, 0.035919189453125, -0.0093841552734375, -0.009796142578125, -0.0197906494140625, 0.01312255859375, -0.00433349609375, 0.034393310546875, 0.0034961700439453125, -0.02410888671875, -0.00888824462890625, 0.04290771484375, -0.06292724609375, 0.045684814453125, 0.0022411346435546875, -0.043853759765625, -0.0290069580078125, 0.0208740234375, -0.052581787109375, 0.017333984375, -0.00920867919921875, 0.018890380859375, 0.031585693359375, -0.10247802734375, 0.0158233642578125, 0.08856201171875, -0.0633544921875, -0.0014324188232421875, -0.01113128662109375, 0.007640838623046875, 0.0164031982421875, -0.0292510986328125, -0.00321197509765625, 0.0262908935546875, 0.01261138916015625, -0.0006594657897949219, 0.029998779296875, -0.056365966796875, -0.00821685791015625, -0.01338958740234375, -0.0009937286376953125, -0.0196533203125, -0.00714111328125, -0.01020050048828125, -0.0156402587890625, -0.02032470703125, 0.0178680419921875, -0.00026035308837890625, -0.0081939697265625, -0.031951904296875, -0.006969451904296875, 0.049957275390625, 0.03955078125, 0.00795745849609375, -0.017730712890625, -0.01102447509765625, -0.043975830078125, 0.006072998046875, -0.00917816162109375, 0.0189666748046875, 0.05010986328125, -0.0095672607421875, -0.01029205322265625, 0.040374755859375, 0.014617919921875, 0.01544189453125, 0.002849578857421875, -0.0123291015625, -0.01430511474609375, -0.03302001953125, -0.007633209228515625, -0.04620361328125, 0.006195068359375, 0.007488250732421875, -0.007572174072265625, -0.0300750732421875, 0.02337646484375, -0.016632080078125, 0.0146026611328125, 0.00733184814453125, 0.03082275390625, 0.011505126953125, -0.034271240234375, 0.02276611328125, 0.019134521484375, -0.036285400390625, -0.0121612548828125, 0.06646728515625, 0.041839599609375, 0.0250701904296875, -0.0238037109375, 0.006450653076171875, -0.03717041015625, -0.0014638900756835938, 0.018585205078125, -0.00937652587890625, -0.0498046875, -0.005645751953125, -0.006053924560546875, 0.00563812255859375, 0.01456451416015625, 0.01410675048828125, 0.00817108154296875, 0.00927734375, -0.01261138916015625, -0.01953125, -0.011566162109375, 0.0270538330078125, 0.022216796875, -0.0262451171875, 0.01462554931640625, 0.0265045166015625, -0.0159149169921875, -0.0330810546875, -0.04119873046875, 0.00499725341796875, 0.01715087890625, 0.050537109375, -0.03167724609375, -0.028106689453125, -0.0360107421875, -0.04473876953125, -0.0093231201171875, 0.0160064697265625, -0.003826141357421875, 0.0103759765625, -0.01091766357421875, -0.01122283935546875, -0.003326416015625, 0.0150909423828125, 0.027923583984375, -0.0194854736328125, -0.0186004638671875, 0.02001953125, 0.0233917236328125, 0.002162933349609375, -0.015106201171875, -0.0052642822265625, 0.01549530029296875, -0.061370849609375, 0.0191802978515625, 0.0018968582153320312, 0.038726806640625, 0.0158843994140625, 0.0203857421875, 0.06158447265625, 0.00623321533203125, 0.0063629150390625, -0.01934814453125, 0.048095703125, -0.034088134765625, -0.057159423828125, -0.051971435546875, 0.0007023811340332031, -0.00421905517578125, 0.045196533203125, -0.00807952880859375, 0.0054473876953125, -0.03228759765625, -0.055938720703125, -0.01861572265625, -0.0204620361328125, 0.0221405029296875, -0.02227783203125, 0.0142364501953125, 0.017822265625, -0.016632080078125, -0.0178070068359375, 0.00193023681640625, -0.018951416015625, -0.007564544677734375, -0.0121002197265625, 0.0215911865234375, -0.0029811859130859375, 0.0283203125, 0.032012939453125, -0.046356201171875, 0.0241546630859375, 0.0245361328125, 0.044952392578125, -0.040069580078125, 0.007564544677734375, -0.047576904296875, 0.0157012939453125, -0.0184478759765625, -0.0272979736328125, 0.0489501953125, 0.014404296875, 0.0238189697265625, -0.02117919921875, 0.0236968994140625, 0.0206298828125, 0.00823974609375, -0.0186920166015625, 0.020416259765625, 0.0303802490234375, 0.01849365234375, -0.0433349609375, -0.032562255859375, 0.0131072998046875, -0.07611083984375, -0.0160980224609375, 0.004245758056640625, -0.0128173828125, 0.013458251953125, 0.0123748779296875, 0.00640869140625, 0.0171051025390625, 0.0239410400390625, 0.003177642822265625, 0.017120361328125, -0.01824951171875, 0.0061187744140625, 0.026092529296875, -0.03717041015625, 0.0147552490234375, 0.02008056640625, -0.0103607177734375, -0.0022602081298828125, 0.0136260986328125, 0.01702880859375, 0.00992584228515625, 0.0201873779296875, -0.0297393798828125, 0.0106658935546875, 0.0369873046875, 0.004108428955078125, 0.0010061264038085938, -0.0005216598510742188, 0.05157470703125, -0.0231781005859375, -0.036163330078125, -0.0215911865234375, 0.020965576171875, -0.00909423828125, -0.039276123046875, -0.004123687744140625, -0.0058135986328125, -0.0126495361328125, -0.00791168212890625, -0.058624267578125, 0.0216217041015625, -0.006992340087890625, 0.007572174072265625, -0.005344390869140625, 0.004486083984375, 0.0116119384765625, -0.0137176513671875, 0.0168609619140625, 0.0177764892578125, -0.0212860107421875, 0.0214080810546875, -0.03662109375, 0.0172271728515625, -0.00457763671875, 0.06646728515625, 0.0609130859375, 0.02197265625, -0.006771087646484375, 0.01334381103515625, 0.01117706298828125, 0.0252227783203125, 0.023895263671875, 0.0057220458984375, 0.00018358230590820312, -0.03497314453125, -0.011322021484375, 0.0037136077880859375, -0.00453948974609375, -0.00966644287109375, -0.031768798828125, -0.02178955078125, -0.0036163330078125, -0.0814208984375, -0.023162841796875, 0.00403594970703125, -0.053466796875, 0.0263671875, 0.0265960693359375, -0.01317596435546875, -0.03802490234375, 0.076171875, 0.015167236328125, -0.01849365234375, 0.0045166015625, -0.0217742919921875, -0.0017290115356445312, -0.0221099853515625, 0.0266571044921875, -0.021575927734375, -0.00543975830078125, 0.0022487640380859375, 0.0772705078125, 0.00682830810546875, -0.07879638671875, 0.0080108642578125, 0.0199737548828125, -0.0243377685546875, 0.036102294921875, -0.01507568359375, 0.034423828125, 0.01071929931640625, 0.01340484619140625, 0.0157470703125, -0.0010156631469726562, -0.0174560546875, -0.03448486328125, -0.0143585205078125, 0.0057525634765625, 0.0184783935546875, -0.009552001953125, 0.017364501953125, 0.0131988525390625, -0.0128326416015625, -0.044525146484375, -0.04351806640625, -0.0287628173828125, -0.06488037109375, -0.01457977294921875, 0.0287628173828125, 0.0277557373046875, -0.03521728515625, 0.018585205078125, 0.0014314651489257812, 0.0018281936645507812, 0.0183258056640625, 0.00691986083984375, 0.012237548828125, -0.017425537109375, -0.01099395751953125, -0.0179290771484375, 0.0159759521484375, -0.0301055908203125, 0.0159149169921875, 0.00428009033203125, -0.0122222900390625, -0.0137176513671875, 0.005947113037109375, -0.0228118896484375, -0.0180816650390625, 0.026092529296875, -0.0114593505859375, 0.0120697021484375, 0.0017366409301757812, -0.0131378173828125, 0.0109100341796875, 0.06927490234375, -0.0921630859375, -0.0078582763671875, -0.0282135009765625, -0.0009946823120117188, 0.02655029296875, -0.0518798828125, -0.0209808349609375, -0.022857666015625, -0.10382080078125, 0.0027332305908203125, -0.0309600830078125, -0.00882720947265625, -0.018707275390625, -0.018829345703125, -0.048736572265625, -0.048553466796875, 0.018890380859375, -0.03460693359375, 0.0141448974609375, 0.012451171875, -0.0162811279296875, -0.0080108642578125, -0.0184783935546875, -0.032806396484375, -0.057830810546875, -0.01108551025390625, 0.00179290771484375, 0.052642822265625, 0.031646728515625, -0.01554107666015625, -0.0167388916015625, 0.0265960693359375, 0.01079559326171875, 0.02020263671875, 0.0114898681640625, 0.0134735107421875, 0.0185546875, -0.0287322998046875, -0.006999969482421875, -0.03143310546875, 0.0265960693359375, 0.0303802490234375, 0.005889892578125, 0.0345458984375, -0.034423828125, -0.0289154052734375, 0.01349639892578125, -0.046783447265625, -0.07177734375, -0.039764404296875, -0.029632568359375, 0.0016241073608398438, -0.02886962890625, -0.004241943359375, -0.033935546875, -0.06756591796875, 0.0268096923828125, 0.004993438720703125, -0.0225372314453125, 0.00017154216766357422, 0.048248291015625, 0.02252197265625, -0.0224609375, -0.005138397216796875, 0.022308349609375, 0.03924560546875, -0.0168914794921875, 0.049224853515625, 0.0285797119140625, -0.0178070068359375, 0.045166015625, 0.0105743408203125, -0.0290069580078125, -0.0435791015625, 0.06341552734375, -0.017364501953125, -0.0386962890625, 0.0286102294921875, -0.046234130859375, 0.053497314453125, 0.03338623046875, -0.00818634033203125, -0.002368927001953125, -0.01372528076171875, 0.037384033203125, 0.0227508544921875, -0.042266845703125, -0.06793212890625, -0.0024776458740234375, -0.024505615234375, 0.0016641616821289062, 0.021087646484375, 0.038055419921875, 0.00908660888671875, 0.007160186767578125, 0.0693359375, -0.002712249755859375, 0.021697998046875, 0.05462646484375, -0.0081634521484375, 0.03265380859375, 0.00933837890625, -0.0193939208984375, -0.0267791748046875, -0.0025997161865234375, 0.045135498046875, -0.00897216796875, -0.055419921875, -0.042694091796875, 0.0126495361328125, 0.06103515625, 0.0134735107421875, -0.007198333740234375, 0.04864501953125, -0.038360595703125, -0.01458740234375, -0.0139923095703125, -0.0276947021484375, -0.06243896484375, -0.0477294921875, -0.0109100341796875, 0.023651123046875, -0.025665283203125, 0.0274658203125, 0.0543212890625, -0.0010242462158203125, 0.033355712890625, -0.0310821533203125, 0.03631591796875, 0.037109375, 0.022735595703125, -0.00910186767578125, 0.024169921875, -0.0196990966796875, 0.01169586181640625, 0.00905609130859375, -0.017669677734375, -0.03125, 0.0305023193359375, 0.022552490234375, 0.01503753662109375, 0.0240631103515625, -0.0284271240234375, 0.0046539306640625, -0.040069580078125, 0.0458984375, -0.034454345703125, -0.07977294921875, -0.0511474609375, 0.016387939453125, 0.053558349609375, -0.02484130859375, -0.015716552734375, 0.03533935546875, -0.006725311279296875, 0.0291290283203125, 0.0072479248046875, -0.02923583984375, 0.0212249755859375, 0.048858642578125, -0.030426025390625, -0.01788330078125, 0.03717041015625, -0.0709228515625, -0.01995849609375, -0.009735107421875, 0.0005269050598144531, -0.0041351318359375, -0.01580810546875, 0.0292816162109375, -0.0160369873046875, -0.012542724609375, 0.0093536376953125, 0.004467010498046875, 0.040740966796875, 0.016632080078125, -0.07269287109375, 0.01251983642578125, -0.055267333984375, -0.0089569091796875, -0.0390625, -0.01349639892578125, -0.059051513671875, -0.00598907470703125, 0.03753662109375, 0.008941650390625, 0.0250701904296875, -0.0214996337890625, -0.0116119384765625, 0.0203399658203125, 0.0274810791015625, 0.045989990234375, -0.0156097412109375, 0.07275390625, -0.0157012939453125, 0.046539306640625, 0.0194091796875, 0.043670654296875, -0.0268402099609375, -0.01654052734375, 0.02728271484375, -0.0211029052734375, -0.06414794921875, -0.01006317138671875, -0.06390380859375, 0.029022216796875, 0.063232421875, -0.01666259765625, 0.01372528076171875, -0.0158843994140625, 0.01187896728515625, -0.04180908203125, -0.0222930908203125, -0.061248779296875, -0.005828857421875, -0.0249786376953125, -0.0175628662109375, 0.012664794921875, -0.0128326416015625, -0.044281005859375, 0.059906005859375, -0.0160369873046875, 0.053192138671875, 0.0132904052734375, -0.03179931640625, 0.050323486328125, 0.07379150390625, 0.0036716461181640625, 0.044677734375, 0.0181427001953125, 0.0117950439453125, 0.007465362548828125, -0.0198516845703125, -0.032012939453125, 0.0210113525390625, 0.03729248046875, 0.005657196044921875, 0.0020046234130859375, 0.049407958984375, -0.0167083740234375, 0.018402099609375, 0.11236572265625, 0.07037353515625, -0.121337890625, -0.004741668701171875, -0.0040435791015625, -0.0338134765625, 0.01495361328125, 0.003322601318359375, -0.00986480712890625, -0.036163330078125, 0.0531005859375, -0.007808685302734375, 0.0011606216430664062, 0.01374053955078125, -0.0120391845703125, -0.002620697021484375, 0.00458526611328125, 0.050048828125, 0.002227783203125, -0.00695037841796875, -0.01070404052734375, 0.0068511962890625, 0.00490570068359375, -0.0203704833984375, -0.0214385986328125, 0.004444122314453125, -0.04193115234375, -0.0841064453125, -0.0160980224609375, -0.038360595703125, 0.0067596435546875, 0.041839599609375, 0.0272064208984375, -0.0298309326171875, 0.067138671875, -0.036346435546875, 0.053955078125, 0.02093505859375, -0.02972412109375, -0.06622314453125, -0.0238189697265625, 0.019775390625, 0.0207061767578125, 0.0006804466247558594, 0.0361328125, -0.015655517578125, -0.054351806640625, -0.0259246826171875, -0.032470703125, 0.1185302734375, -0.004947662353515625, -0.048828125, -0.018310546875, -0.000690460205078125, -0.0011873245239257812, -0.035491943359375, 0.0114593505859375, -0.035919189453125, 0.0128173828125, -0.02734375, 0.00876617431640625, -0.002079010009765625, -0.053863525390625, -0.049072265625, 0.0968017578125, -0.048065185546875, 0.0191650390625, -0.0031261444091796875, 0.0513916015625, 0.0158843994140625, 0.04473876953125, -0.03936767578125, 0.061065673828125, 0.0107421875, 0.07586669921875, -0.039306640625, -0.004581451416015625, 0.03759765625, 0.042816162109375, 0.03973388671875, 0.0182342529296875, -0.0193634033203125, -0.00408172607421875, 0.0180511474609375, 0.0147247314453125, -0.0176849365234375, 0.0384521484375, -0.04388427734375, 0.018646240234375, -0.01165008544921875, -0.055450439453125, 0.0248260498046875, -0.031219482421875, -0.06939697265625, -0.0142364501953125, 0.0173492431640625, 0.0167236328125, -0.00472259521484375, 0.010406494140625, -0.0264739990234375, 0.0011415481567382812, 0.0198516845703125, 0.0081939697265625, 0.00540924072265625, 0.0169830322265625, 0.031402587890625, -0.02001953125, -0.0037517547607421875, -0.0194854736328125, 0.030548095703125, 0.0206756591796875, 0.027252197265625, 0.0101776123046875, 0.0302276611328125, 0.0008864402770996094, -0.036712646484375, 0.017791748046875, 0.01152801513671875, -0.06048583984375, 0.0316162109375, 0.03778076171875, 0.0308990478515625, -0.0171356201171875, -0.00909423828125, 0.01120758056640625, 0.0374755859375, -0.0221710205078125, -0.0325927734375, 0.01056671142578125, 0.0093536376953125, 0.031982421875, 0.022979736328125, 0.061126708984375, 0.0118560791015625, 0.0360107421875, -0.0295257568359375, 0.0249481201171875, 0.052703857421875, 0.0002739429473876953, -0.00782012939453125, 0.039794921875, -0.049835205078125, 0.0323486328125, -0.022369384765625, -0.0213165283203125, 0.00983428955078125, 0.0214385986328125, 0.01285552978515625, 0.0259857177734375, 0.016815185546875, -0.007328033447265625, -0.002777099609375, 0.0238189697265625, -0.01995849609375, 0.018402099609375, -0.08154296875, -0.08447265625, 0.00037407875061035156, 0.054931640625, -0.0120086669921875, 0.0049591064453125, 0.0215911865234375, 0.03900146484375, -0.0094451904296875, -0.0128326416015625, 0.050872802734375, -0.01031494140625, -0.020477294921875, 0.004150390625, -0.046173095703125, -0.0159759521484375, -0.0244903564453125, 0.01416015625, 0.045928955078125, -0.0250396728515625, -0.006549835205078125, 0.0166473388671875, 0.00327301025390625, -0.01050567626953125, 0.030517578125, 0.0179443359375, 0.0120849609375, 0.03271484375, -0.095947265625, -0.0288238525390625, -0.032684326171875, -0.0198974609375, 0.0214385986328125, 0.031585693359375, -0.026458740234375, 0.034759521484375, 0.016845703125, 0.041748046875, -0.004058837890625, -0.032135009765625, 0.0031147003173828125, 0.024627685546875, 0.03997802734375, 0.032012939453125, -0.005077362060546875, -0.0066070556640625, -0.0126953125, 0.04937744140625, 0.0068359375, 0.06744384765625, -0.0261993408203125, 0.0305023193359375, -0.057220458984375, 0.007656097412109375, -0.03118896484375, -0.0206451416015625, -0.032135009765625, 0.028228759765625, -0.0015430450439453125, 0.0007476806640625, -0.0269622802734375, 0.0408935546875, 0.0272674560546875, -0.0182037353515625, 0.0340576171875, -0.01788330078125, 0.00018513202667236328, -0.01425933837890625, 0.0159912109375, -0.01230621337890625, 0.000774383544921875, -0.019195556640625, -0.020172119140625, 0.0265655517578125, 0.00632476806640625, -0.00372314453125, 0.0282440185546875, -0.03564453125, -0.0338134765625, 0.0172119140625, -0.030609130859375, -0.0157623291015625, 0.0184326171875, 0.0211029052734375, -0.02349853515625, 0.0125885009765625, 0.0006871223449707031, -0.003337860107421875, 0.0290985107421875, -0.0208892822265625, 0.0379638671875, -0.041473388671875, 0.0009407997131347656, 0.00763702392578125, 0.0277099609375, 0.004291534423828125, -0.0008678436279296875, 0.00347137451171875, -0.0189361572265625, -0.017486572265625, 0.0013341903686523438, -0.0236663818359375, -0.01206207275390625, -0.00839996337890625, 0.0232391357421875, -0.0208740234375, -0.0579833984375, -0.08538818359375, -0.0020503997802734375, 0.0298004150390625, 0.02838134765625, -0.07537841796875, 0.06610107421875, -0.007389068603515625, 0.007236480712890625, -0.0177764892578125, 0.011810302734375, -0.023223876953125, -0.0025081634521484375, -0.021453857421875, -0.0203704833984375, -0.043121337890625, 0.031097412109375, -0.02587890625, 0.0215606689453125, 0.0634765625, -0.01050567626953125, -0.005481719970703125, -0.00400543212890625, -0.0209808349609375, 0.049102783203125, -0.041717529296875, 0.01305389404296875, 0.0130615234375, 0.019561767578125, -0.0411376953125, -0.0487060546875, 0.025390625, -0.029876708984375, -0.0208892822265625, 0.0078125, -0.0080413818359375, 0.026214599609375, -0.0228424072265625, -0.043243408203125, 0.031463623046875, 0.006988525390625, -0.0323486328125, 0.00254058837890625, -0.036529541015625, -0.023895263671875, -0.00901031494140625, -0.0014486312866210938, -0.037200927734375, -0.016937255859375, 0.034515380859375, 0.0209197998046875, 0.03717041015625, 0.01451873779296875, 0.022369384765625, -0.0367431640625, 0.017486572265625, -0.0200042724609375, 0.005260467529296875, 0.014404296875, 0.001392364501953125, 0.029571533203125, 0.043853759765625, -0.03717041015625, 0.047607421875, -0.0108642578125, 0.0031223297119140625, -0.03765869140625, -0.0092315673828125, -0.03179931640625, -0.0287322998046875, 0.08831787109375, 0.083251953125, 0.0287628173828125, -0.0182342529296875, -0.032012939453125, -0.042266845703125, -0.0203399658203125, -0.0303497314453125, 0.01776123046875, -0.0704345703125, 0.003475189208984375, -0.0203704833984375, -0.0058135986328125, -0.0017299652099609375, -0.004123687744140625, -0.02630615234375, -0.006282806396484375, -0.00013566017150878906, 0.003665924072265625, -0.0272064208984375, -0.0012149810791015625, 0.024688720703125, -0.0291290283203125, 0.006389617919921875, -0.027801513671875, 0.0181121826171875, 0.010711669921875, -0.001926422119140625, -0.0272369384765625, -0.0229034423828125, -0.0333251953125, 0.041351318359375, -0.0183563232421875, 0.029388427734375, -0.041778564453125, 0.0029010772705078125, -0.0164794921875, 0.025604248046875, 0.0194091796875, 0.032958984375, -0.02032470703125, 0.01447296142578125, 0.0244140625, -0.005733489990234375, -0.00399017333984375, 0.050537109375, 0.0005960464477539062, 0.037506103515625, -0.00537872314453125, -0.0179443359375, 0.041229248046875, -0.05718994140625, -0.0033702850341796875, -0.01381683349609375, -0.016357421875, -0.07208251953125, 0.0391845703125, -0.012664794921875, 0.0128173828125, 0.033447265625 ]
e9eedc6b32fdf930f017e7b69b20bb6e9d2eb453
Wordpress Stackexchange Q: What is the best way to handle deprecated functions? Wordpress 3.3 has deprecated the add_contextual_help() functions and it's filters, so in order to continue supporting 3.0 - 3.2.1 and also comply with 3.3, I have done the following: global $wp_version; if ($wp_version >= '3.3') { // New method add_action("load-$admin_page", 'CrayonSettingsWP::help_screen'); } else { // Depreciated method add_filter('contextual_help', 'CrayonSettingsWP::cont_help', 10, 3); } Is there a better approach? A: I don't see anything wrong with your approach. But I'm going to take a different track: don't support older versions of WP. The general impression I've gotten from the WP community is one of progress. By supporting the current version and forward you're helping to push the community towards using the most up to date version of WordPress. Excerpted from WordPress Plugin Development (which is a great book!): In the WordPress development community, backward compatibility may sometimes be even looked down upon. Users are expected to stay updated with the latest version of the software.
Q: What is the best way to handle deprecated functions? Wordpress 3.3 has deprecated the add_contextual_help() functions and it's filters, so in order to continue supporting 3.0 - 3.2.1 and also comply with 3.3, I have done the following: global $wp_version; if ($wp_version >= '3.3') { // New method add_action("load-$admin_page", 'CrayonSettingsWP::help_screen'); } else { // Depreciated method add_filter('contextual_help', 'CrayonSettingsWP::cont_help', 10, 3); } Is there a better approach? A: I don't see anything wrong with your approach. But I'm going to take a different track: don't support older versions of WP. The general impression I've gotten from the WP community is one of progress. By supporting the current version and forward you're helping to push the community towards using the most up to date version of WordPress. Excerpted from WordPress Plugin Development (which is a great book!): In the WordPress development community, backward compatibility may sometimes be even looked down upon. Users are expected to stay updated with the latest version of the software. A: Better for your version check is that you use the default functions of PHP for this requirement; see the example. if ( version_compare( $GLOBALS['wp_version'], '3.3alpha', '>=' ) ) { The version in PHP is more as the 3 strings, liek 3.3! that it is important to check for versions smaller the stable release.
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:415296", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36132" }
[ 0.0877685546875, 0.0307464599609375, -0.0253753662109375, -0.111572265625, 0.049560546875, -0.031005859375, -0.0123138427734375, -0.0125885009765625, 0.07391357421875, 0.00946044921875, -0.05084228515625, -0.02960205078125, -0.01227569580078125, -0.0089263916015625, -0.047760009765625, -0.028472900390625, 0.06475830078125, -0.0662841796875, 0.00884246826171875, -0.00472259521484375, -0.005950927734375, 0.0294342041015625, 0.035369873046875, 0.060394287109375, 0.0131988525390625, -0.0977783203125, 0.08038330078125, -0.010467529296875, 0.032958984375, 0.00016939640045166016, 0.0138702392578125, -0.00542449951171875, 0.02178955078125, 0.0535888671875, -0.0400390625, 0.041900634765625, 0.0239715576171875, 0.00476837158203125, 0.0238189697265625, 0.0261688232421875, 0.0124969482421875, -0.0010004043579101562, -0.0135650634765625, 0.0013885498046875, -0.025421142578125, -0.03326416015625, 0.01526641845703125, -0.007061004638671875, -0.0163421630859375, 0.01271820068359375, 0.0226593017578125, -0.0083770751953125, 0.033233642578125, -0.03668212890625, 0.00047469139099121094, -0.00864410400390625, -0.01146697998046875, -0.013092041015625, 0.002155303955078125, 0.03814697265625, 0.001583099365234375, 0.0186309814453125, 0.0042572021484375, -0.017578125, 0.015594482421875, 0.0244903564453125, 0.033447265625, 0.020538330078125, -0.050933837890625, -0.01398468017578125, 0.0014247894287109375, -0.039581298828125, -0.0195159912109375, -0.0278778076171875, 0.010223388671875, 0.00907135009765625, 0.0136871337890625, -0.0170745849609375, -0.00023865699768066406, 0.0225372314453125, -0.0189056396484375, -0.026885986328125, -0.0157012939453125, -0.0148773193359375, 0.01082611083984375, 0.0151519775390625, -0.0123291015625, 0.005771636962890625, -0.0186767578125, -0.02685546875, -0.01316070556640625, -0.03155517578125, -0.0345458984375, 0.024505615234375, 0.00696563720703125, -0.0171661376953125, 0.0251312255859375, 0.02398681640625, -0.0084686279296875, -0.019500732421875, 0.01264190673828125, -0.02899169921875, -0.00873565673828125, -0.0199737548828125, 0.01224517822265625, 0.07861328125, -0.004154205322265625, -0.027252197265625, 0.004245758056640625, 0.004001617431640625, 0.003108978271484375, -0.03607177734375, 0.010894775390625, -0.030975341796875, 0.0118255615234375, 0.0330810546875, -0.001678466796875, 0.043731689453125, 0.0004661083221435547, 0.029327392578125, -0.004802703857421875, -0.0007529258728027344, 0.036346435546875, -0.02130126953125, -0.00415802001953125, -0.027740478515625, -0.052337646484375, -0.0093994140625, 0.033966064453125, 0.0129547119140625, -0.03192138671875, 0.02130126953125, 0.052978515625, -0.0188751220703125, -0.0232086181640625, -0.02105712890625, 0.04022216796875, -0.007198333740234375, -0.0015306472778320312, 0.0208587646484375, 0.0027217864990234375, -0.009979248046875, 0.01369476318359375, 0.0022487640380859375, 0.0212860107421875, -0.0034961700439453125, 0.005260467529296875, 0.027008056640625, 0.0177764892578125, -0.006626129150390625, 0.053070068359375, -0.044158935546875, 0.0416259765625, -0.019439697265625, -0.0200958251953125, -0.0313720703125, 0.0250701904296875, -0.048187255859375, -0.031646728515625, -0.05126953125, -0.00896453857421875, -0.0220184326171875, -0.01342010498046875, -0.0640869140625, -0.056732177734375, 0.0226593017578125, -0.035552978515625, 0.001132965087890625, 0.0166473388671875, 0.0024509429931640625, 0.00627899169921875, -0.0272369384765625, -0.01424407958984375, 0.01334381103515625, 0.007686614990234375, 0.0296173095703125, -0.00713348388671875, 0.059844970703125, 0.0333251953125, 0.02191162109375, 0.0169830322265625, -0.0238494873046875, 0.133056640625, -0.034881591796875, -0.07080078125, -0.0182037353515625, -0.0007405281066894531, 0.038665771484375, 0.053680419921875, 0.0008459091186523438, 0.03857421875, -0.038360595703125, 0.01541900634765625, 0.01080322265625, 0.01076507568359375, -0.06524658203125, -0.0110626220703125, -0.020050048828125, -0.0220184326171875, 0.021331787109375, 0.02606201171875, 0.060943603515625, -0.023773193359375, 0.01139068603515625, -0.074951171875, 0.038848876953125, -0.03155517578125, 0.050933837890625, -0.00925445556640625, 0.01445770263671875, 0.00984954833984375, -0.0036182403564453125, -0.0271453857421875, 0.06561279296875, 0.007232666015625, 0.0321044921875, -0.0242462158203125, 0.042388916015625, 0.0038242340087890625, 0.041259765625, 0.00270843505859375, -0.02825927734375, -0.0017614364624023438, -0.0135345458984375, 0.01605224609375, -0.0239410400390625, 0.00348663330078125, -0.007526397705078125, 0.0083465576171875, 0.004970550537109375, 0.02960205078125, 0.01361083984375, 0.013336181640625, 0.0343017578125, -0.004467010498046875, -0.01299285888671875, -0.006488800048828125, -0.061431884765625, 0.007305145263671875, 0.049285888671875, 0.0416259765625, 0.0293121337890625, -0.01015472412109375, -0.027130126953125, 0.029510498046875, -0.07275390625, -0.0037078857421875, -0.01210784912109375, -0.0025119781494140625, 0.0300445556640625, 0.06402587890625, -0.00548553466796875, 0.006771087646484375, -0.009857177734375, 0.001956939697265625, 0.01114654541015625, -0.052032470703125, -0.0433349609375, 0.004436492919921875, -0.048126220703125, 0.040252685546875, -0.1138916015625, -0.07586669921875, -0.0160064697265625, -0.0122528076171875, -0.029296875, 0.0240020751953125, 0.0186614990234375, 0.03173828125, -0.06103515625, 0.01049041748046875, 0.031280517578125, -0.0032978057861328125, 0.0119476318359375, -0.0032138824462890625, 0.032958984375, -0.0775146484375, 0.0168304443359375, 0.03228759765625, 0.01412200927734375, 0.0189208984375, 0.054931640625, -0.0107269287109375, -0.004871368408203125, -0.0221099853515625, -0.0089263916015625, 0.004856109619140625, 0.0255126953125, 0.042724609375, 0.01500701904296875, 0.0244140625, 0.03131103515625, 0.00040340423583984375, 0.045989990234375, 0.01212310791015625, -0.0291595458984375, 0.0010023117065429688, -0.009124755859375, 0.0038356781005859375, -0.003093719482421875, -0.0146026611328125, 0.04339599609375, 0.01812744140625, -0.0177001953125, -0.0107879638671875, 0.0141448974609375, 0.0004494190216064453, -0.0012407302856445312, -0.0142669677734375, -0.00011157989501953125, -0.032440185546875, 0.006938934326171875, 0.025970458984375, 0.07562255859375, -0.0362548828125, -0.062042236328125, -0.0118560791015625, 0.033782958984375, -0.07708740234375, -0.054901123046875, -0.0217437744140625, -0.0826416015625, 0.023956298828125, -0.0091552734375, -0.0343017578125, -0.004669189453125, 0.033599853515625, 0.0245208740234375, 0.0154876708984375, -0.0206298828125, -0.040985107421875, -0.0439453125, -0.0823974609375, -0.0306243896484375, -0.003360748291015625, 0.01617431640625, -0.0019855499267578125, 0.019317626953125, 0.01107025146484375, -0.023193359375, 0.026275634765625, -0.013336181640625, -0.01546478271484375, 0.0028629302978515625, 0.041748046875, -0.0227813720703125, 0.0171661376953125, -0.0009541511535644531, 0.001983642578125, 0.041412353515625, -0.034759521484375, -0.01175689697265625, -0.0225067138671875, -0.01277923583984375, -0.0238494873046875, 0.0106353759765625, 0.040008544921875, -0.01285552978515625, -0.0149993896484375, -0.046661376953125, -0.0012216567993164062, 0.034637451171875, -0.00472259521484375, 0.0494384765625, 0.003894805908203125, -0.0548095703125, 0.039886474609375, -0.007724761962890625, -0.01486968994140625, 0.01511383056640625, 0.03619384765625, 0.01209259033203125, -0.05450439453125, -0.02337646484375, -0.031646728515625, -0.01187896728515625, 0.0439453125, -0.0104827880859375, 0.0269622802734375, 0.039031982421875, 0.03094482421875, 0.0406494140625, -0.0311737060546875, 0.01163482666015625, -0.00839996337890625, 0.0445556640625, 0.0086822509765625, 0.031402587890625, -0.0258941650390625, -0.027099609375, -0.03936767578125, 0.056488037109375, -0.01146697998046875, -0.0099029541015625, 0.01210784912109375, 0.0169525146484375, -0.035552978515625, -0.0400390625, -0.0404052734375, -0.0218048095703125, 0.0228271484375, -0.006038665771484375, -0.0201873779296875, 0.0181884765625, -0.0305633544921875, 0.035247802734375, 0.02435302734375, -0.0034465789794921875, 0.0396728515625, -0.03277587890625, 0.01190948486328125, 0.07232666015625, 0.00879669189453125, 0.015594482421875, -0.027130126953125, -0.03179931640625, -0.10809326171875, -0.020416259765625, -0.0263214111328125, 0.09014892578125, 0.0362548828125, -0.056396484375, -0.02142333984375, 0.0345458984375, 0.030426025390625, 0.0304107666015625, 0.0243682861328125, -0.02154541015625, 0.0252532958984375, -0.018768310546875, 0.030426025390625, -0.0295867919921875, -0.014892578125, -0.034912109375, -0.038299560546875, -0.06854248046875, -0.030731201171875, -0.046783447265625, 0.007843017578125, -0.025665283203125, 0.0005145072937011719, -0.0218353271484375, -0.0200347900390625, 0.0165557861328125, -0.0017518997192382812, -0.0118865966796875, -0.0271759033203125, -0.0192108154296875, 0.0115509033203125, 0.01206207275390625, -0.01447296142578125, 0.0104827880859375, 0.061767578125, 0.021392822265625, -0.01702880859375, -0.03240966796875, 0.004451751708984375, 0.0294342041015625, -0.03424072265625, 0.0309295654296875, -0.00484466552734375, -0.0218963623046875, 0.048309326171875, -0.0260009765625, 0.02880859375, -0.02777099609375, 0.0297698974609375, 0.000316619873046875, -0.0245361328125, 0.0391845703125, -0.0098114013671875, -0.0036296844482421875, -0.0003883838653564453, -0.0166473388671875, -0.01071929931640625, -0.0037288665771484375, 0.052764892578125, 0.0018062591552734375, 0.00701141357421875, -0.05718994140625, -0.06121826171875, 0.031982421875, -0.02587890625, 0.0308837890625, -0.005481719970703125, 0.0109405517578125, 0.03790283203125, 0.01305389404296875, -0.0007052421569824219, -0.0036468505859375, 0.03631591796875, -0.0187530517578125, 0.060211181640625, -0.0298614501953125, -0.006015777587890625, -0.030120849609375, -0.01309967041015625, 0.07122802734375, -0.0233001708984375, -0.0374755859375, -0.0268707275390625, -0.017547607421875, 0.0027332305908203125, 0.0243377685546875, -0.048858642578125, 0.0498046875, 0.053314208984375, -0.0169219970703125, -0.0017805099487304688, -0.060028076171875, 0.01096343994140625, -0.044219970703125, -0.043792724609375, -0.0205230712890625, -0.013916015625, -0.015869140625, 0.0260467529296875, -0.0258331298828125, 0.02386474609375, -0.0030422210693359375, -0.01702880859375, -0.0042266845703125, 0.00739288330078125, 0.017242431640625, 0.02178955078125, 0.00959014892578125, -0.0131378173828125, 0.0531005859375, -0.00829315185546875, -0.050201416015625, 0.01229095458984375, 0.0007982254028320312, -0.042022705078125, 0.03814697265625, -0.00788116455078125, 0.02294921875, 0.01355743408203125, 0.01561737060546875, -0.00508880615234375, -0.0277099609375, -0.0007915496826171875, 0.00839996337890625, 0.01381683349609375, -0.03460693359375, 0.00705718994140625, 0.033477783203125, -0.0067291259765625, -0.01010894775390625, -0.01342010498046875, -0.0390625, -0.03558349609375, 0.01271820068359375, -0.0252685546875, -0.047515869140625, -0.0305328369140625, 0.0016937255859375, 0.0164947509765625, -0.006191253662109375, -0.0259552001953125, -0.004177093505859375, -0.00919342041015625, 0.0382080078125, -0.00965118408203125, -0.03594970703125, 0.024566650390625, 0.01317596435546875, 0.033660888671875, 0.006351470947265625, -0.05322265625, -0.004871368408203125, -0.025421142578125, -0.00766754150390625, -0.06988525390625, -0.06494140625, -0.0218505859375, 0.0165557861328125, 0.01161956787109375, -0.01352691650390625, 0.0011281967163085938, -0.01415252685546875, -0.0015325546264648438, 0.07183837890625, 0.026092529296875, 0.054412841796875, -0.0088043212890625, 0.0214385986328125, -0.00022411346435546875, 0.022369384765625, -0.0016384124755859375, 0.02484130859375, 0.01230621337890625, -0.0291900634765625, 0.0130615234375, -0.032318115234375, -0.017669677734375, -0.03515625, -0.0106201171875, 0.020172119140625, 0.069091796875, -0.01030731201171875, -0.0021038055419921875, -0.00830078125, -0.0021076202392578125, -0.0194091796875, 0.01305389404296875, -0.01122283935546875, -0.027618408203125, 0.0206451416015625, -0.0254364013671875, 0.029754638671875, 0.034576416015625, 0.039398193359375, -0.010009765625, -0.0423583984375, -0.002513885498046875, 0.03131103515625, -0.0278778076171875, 0.036285400390625, 0.04351806640625, 0.0283355712890625, 0.04620361328125, 0.006664276123046875, 0.0299224853515625, -0.01861572265625, -0.001399993896484375, 0.0055999755859375, 0.0160675048828125, 0.034881591796875, 0.008087158203125, 0.019195556640625, 0.017425537109375, 0.0020847320556640625, 0.017303466796875, 0.0513916015625, 0.06597900390625, -0.044769287109375, -0.006824493408203125, 0.0093841552734375, -0.043212890625, 0.0236663818359375, -0.00588226318359375, -0.03436279296875, -0.048431396484375, 0.057342529296875, -0.029510498046875, -0.01062774658203125, 0.0248260498046875, -0.0081787109375, -0.016510009765625, -0.005046844482421875, 0.0145263671875, 0.0175933837890625, 0.0119476318359375, -0.0038909912109375, 0.01074981689453125, 0.013153076171875, 0.0267181396484375, -0.008270263671875, -0.0171051025390625, -0.07421875, -0.06585693359375, -0.057952880859375, -0.0115203857421875, -0.04986572265625, 0.0236053466796875, 0.0246429443359375, 0.0021877288818359375, 0.046905517578125, -0.0234832763671875, 0.032623291015625, 0.0083465576171875, -0.004726409912109375, -0.0218353271484375, -0.043975830078125, 0.01812744140625, 0.0306549072265625, -0.04852294921875, 0.0372314453125, -0.0099639892578125, -0.0430908203125, -0.006130218505859375, -0.004688262939453125, 0.06414794921875, -0.03173828125, -0.021881103515625, 0.0153350830078125, -0.00026035308837890625, 0.00969696044921875, -0.0254364013671875, 0.0178680419921875, -0.101806640625, -0.06549072265625, -0.0098114013671875, -0.060821533203125, 0.01372528076171875, -0.02081298828125, -0.05255126953125, 0.05987548828125, 0.0226898193359375, -0.00400543212890625, 0.022186279296875, 0.008758544921875, -0.040435791015625, -0.0021381378173828125, 0.0005102157592773438, 0.0186920166015625, -0.044647216796875, 0.01555633544921875, 0.0069427490234375, 0.020477294921875, 0.00742340087890625, -0.00466156005859375, -0.038848876953125, 0.00042438507080078125, -0.00933837890625, 0.0029964447021484375, 0.0031185150146484375, 0.0238189697265625, 0.005748748779296875, 0.01070404052734375, -0.002330780029296875, -0.0704345703125, -0.022552490234375, 0.0168609619140625, 0.039154052734375, -0.064208984375, -0.0010051727294921875, -0.000762939453125, 0.039031982421875, 0.053466796875, -0.0347900390625, 0.04302978515625, -0.07281494140625, -0.0077667236328125, 0.058441162109375, -0.004032135009765625, -0.001087188720703125, -0.00615692138671875, -0.049468994140625, 0.027801513671875, -0.01546478271484375, -0.003597259521484375, 0.01045989990234375, -0.01128387451171875, 0.01419830322265625, 0.04473876953125, 0.023834228515625, 0.0457763671875, -0.031524658203125, -0.00470733642578125, -0.01959228515625, -0.00612640380859375, 0.06280517578125, 0.00263214111328125, 0.03857421875, -0.01256561279296875, 0.044921875, 0.004665374755859375, 0.04046630859375, -0.041778564453125, -0.020172119140625, 0.008392333984375, 0.00921630859375, 0.007266998291015625, 0.00255584716796875, 0.048126220703125, 0.0156402587890625, 0.026885986328125, -0.02655029296875, 0.00554656982421875, 0.014556884765625, -0.01373291015625, 0.0007205009460449219, 0.0301055908203125, 0.007511138916015625, 0.01335906982421875, -0.00836944580078125, -0.005062103271484375, 0.01280975341796875, 0.027984619140625, -0.005809783935546875, 0.020172119140625, -0.030670166015625, 0.003444671630859375, -0.0229644775390625, 0.0089569091796875, 0.01186370849609375, 0.0195770263671875, -0.033721923828125, -0.02398681640625, 0.0131072998046875, 0.038909912109375, 0.0379638671875, 0.005947113037109375, 0.03558349609375, 0.026336669921875, -0.0266265869140625, 0.0131683349609375, 0.08929443359375, -0.0030364990234375, 0.00777435302734375, -0.037445068359375, -0.0140228271484375, -0.0096588134765625, -0.020843505859375, 0.008026123046875, -0.030120849609375, 0.0193328857421875, -0.0247344970703125, -0.01171112060546875, 0.0011548995971679688, -0.03936767578125, 0.06903076171875, -0.013031005859375, 0.07135009765625, 0.004154205322265625, -0.00530242919921875, -0.0031147003173828125, -0.0167694091796875, 0.015045166015625, 0.007175445556640625, 0.01190185546875, -0.005260467529296875, 0.032012939453125, 0.013458251953125, -0.004627227783203125, 0.00351715087890625, 0.01195526123046875, -0.028106689453125, -0.050445556640625, 0.035186767578125, -0.034088134765625, 0.0100555419921875, 0.0091094970703125, 0.005908966064453125, 0.02020263671875, 0.04864501953125, 0.08282470703125, -0.0258026123046875, 0.0222930908203125, 0.031890869140625, 0.006977081298828125, -0.02606201171875, 0.02984619140625, -0.040283203125, -0.04034423828125, 0.004730224609375, 0.0118408203125, -0.0242919921875, 0.0290374755859375, 0.018646240234375, -0.01557159423828125, -0.0017976760864257812, 0.0313720703125, 0.003021240234375, -0.003154754638671875, 0.002056121826171875, -0.036285400390625, -0.023284912109375, -0.004116058349609375, -0.006351470947265625, -0.0052490234375, -0.0248565673828125, 0.00907135009765625, -0.040618896484375, 0.042938232421875, -0.017730712890625, 0.007843017578125, 0.060516357421875, 0.0153656005859375, 0.033843994140625, 0.006053924560546875, 0.034912109375, 0.0191497802734375, -0.021331787109375, 0.045135498046875, -0.004566192626953125, -0.005016326904296875, 0.01277923583984375, -0.0439453125, -0.006946563720703125, 0.01229095458984375, 0.032928466796875, -0.033935546875, 0.007232666015625, 0.004375457763671875, 0.004467010498046875, 0.0112762451171875, -0.0194854736328125, -0.020050048828125, -0.0176849365234375, -0.0308380126953125, 0.0183868408203125, -0.02667236328125, -0.0550537109375, -0.056396484375, 0.0110015869140625, 0.03741455078125, 0.0230712890625, -0.07513427734375, 0.023193359375, 0.0006437301635742188, 0.06842041015625, -0.0010061264038085938, 0.00836944580078125, -0.00823974609375, 0.0299224853515625, 0.00594329833984375, -0.0301666259765625, -0.020965576171875, 0.050079345703125, -0.011077880859375, 0.037811279296875, 0.05181884765625, -0.0200042724609375, 0.0036487579345703125, 0.037322998046875, 0.019866943359375, 0.0850830078125, -0.0426025390625, -0.008697509765625, 0.0458984375, -0.025543212890625, -0.05120849609375, -0.02532958984375, 0.035247802734375, -0.0928955078125, -0.0265350341796875, 0.0625, -0.0157928466796875, 0.0386962890625, -0.0207366943359375, -0.0810546875, 0.044219970703125, 0.0149078369140625, -0.0435791015625, -0.0284271240234375, -0.03411865234375, -0.009521484375, 0.01552581787109375, 0.0002111196517944336, -0.06158447265625, -0.035797119140625, 0.03570556640625, 0.00033092498779296875, 0.06781005859375, 0.006500244140625, -0.004566192626953125, -0.0025348663330078125, 0.00875091552734375, -0.01151275634765625, 0.007843017578125, -0.0016736984252929688, -0.0252532958984375, 0.049041748046875, 0.029266357421875, -0.035614013671875, -0.002254486083984375, 0.0242767333984375, 0.02130126953125, -0.000018298625946044922, -0.060272216796875, -0.0096893310546875, -0.0352783203125, 0.035675048828125, -0.002017974853515625, 0.00909423828125, -0.005672454833984375, 0.031036376953125, 0.006649017333984375, -0.01136016845703125, 0.01094818115234375, 0.00701141357421875, -0.033843994140625, -0.0263824462890625, 0.029144287109375, -0.0277862548828125, 0.005542755126953125, 0.0139617919921875, -0.0264892578125, 0.0099639892578125, -0.0027866363525390625, -0.029022216796875, -0.01200103759765625, -0.0279083251953125, 0.05804443359375, -0.03936767578125, -0.004352569580078125, 0.0265960693359375, 0.00775146484375, 0.01800537109375, 0.04779052734375, 0.0460205078125, 0.035675048828125, -0.02978515625, -0.01219940185546875, 0.043670654296875, 0.01212310791015625, 0.00414276123046875, -0.04583740234375, 0.00836181640625, 0.005855560302734375, 0.01059722900390625, 0.0156707763671875, -0.01788330078125, -0.0013828277587890625, -0.019775390625, 0.0140380859375, -0.0252838134765625, 0.050140380859375, -0.0318603515625, 0.046661376953125, 0.0182952880859375, -0.0056610107421875, 0.055694580078125, 0.01084136962890625, 0.0246734619140625, 0.00797271728515625, 0.0462646484375, -0.03173828125, 0.044464111328125, 0.0264129638671875, 0.013641357421875, 0.0199432373046875 ]
ca3acfec2dd8a5d33b14f8ce867d0afadbfff211
Wordpress Stackexchange Q: How to place random widgets in the Wordpress sidebar? My pages have a sidebar with too many widgets, and it looks bad when the content is short and the sidebar is too long. I want to randomize the widgets I'm showing in the sidebar. Meaning I will add all the potential widgets to the sidebar, and it will randomly only display a few. I would also like some control over this, for example to have a few widgets always appear, and only the rest randomized. I tried finding relevant plugins, but the only ones I found just randomized images or posts.. never different types of widgets. A: Though not completely answering your question, you could use the code presented on this page as a starting point. It's just about randomizing the order, but with a few modifications you could make this function do exactly what you need...
Q: How to place random widgets in the Wordpress sidebar? My pages have a sidebar with too many widgets, and it looks bad when the content is short and the sidebar is too long. I want to randomize the widgets I'm showing in the sidebar. Meaning I will add all the potential widgets to the sidebar, and it will randomly only display a few. I would also like some control over this, for example to have a few widgets always appear, and only the rest randomized. I tried finding relevant plugins, but the only ones I found just randomized images or posts.. never different types of widgets. A: Though not completely answering your question, you could use the code presented on this page as a starting point. It's just about randomizing the order, but with a few modifications you could make this function do exactly what you need... A: Here comes the workaround solution discussed in the comments: functions.php: add_action( 'widgets_init', 'talfluxive_register_sidebars' ); function talfluxive_register_sidebars() { // register five random widget areas register_sidebars( 5, array( 'name' => 'Random Widget Area %d' ) ); // register two fixed widget areas register_sidebars( 2, array( 'name' => 'Fixed Widget Area %d' ) ); } sidebar.php dynamic_sidebar( 'Fixed Widget Area 1' ); dynamic_sidebar( 'Random Widget Area ' . rand( 1, 5 ) ); dynamic_sidebar( 'Fixed Widget Area 2' ); This example code is very minimal and could be improved in many ways but it works and should serve as a good starting point. PS: I really like the random widget idea. I will look for a better solution when I have more time. It's a good plugin inspiration :)
wordpress
{ "language": "en", "length": 275, "provenance": "stackexchange_00019.jsonl.gz:415301", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36149" }
[ 0.031646728515625, 0.0004963874816894531, 0.01320648193359375, 0.035888671875, 0.0202789306640625, -0.0278778076171875, 0.07598876953125, -0.0655517578125, -0.028656005859375, 0.032806396484375, -0.0301513671875, 0.016387939453125, -0.03289794921875, 0.003963470458984375, -0.0173797607421875, -0.037933349609375, 0.037445068359375, 0.025238037109375, 0.048583984375, -0.0071868896484375, 0.00418853759765625, 0.028472900390625, 0.0134124755859375, 0.06427001953125, 0.0160369873046875, 0.004695892333984375, 0.07061767578125, -0.03485107421875, 0.0115509033203125, -0.0252227783203125, 0.03558349609375, -0.023834228515625, 0.04351806640625, -0.031707763671875, 0.0299224853515625, 0.05712890625, -0.013916015625, -0.00904083251953125, 0.0167999267578125, -0.00598907470703125, 0.0513916015625, -0.02362060546875, 0.01493072509765625, 0.0252227783203125, -0.01058197021484375, 0.0004911422729492188, 0.01288604736328125, -0.028717041015625, 0.009063720703125, 0.00301361083984375, 0.0231475830078125, -0.034210205078125, 0.041412353515625, -0.041473388671875, -0.030242919921875, -0.018463134765625, 0.037567138671875, -0.021453857421875, 0.051605224609375, -0.0209197998046875, -0.061920166015625, -0.03173828125, 0.05145263671875, -0.02734375, -0.0023059844970703125, -0.029205322265625, -0.03204345703125, 0.0107269287109375, -0.036407470703125, 0.0116119384765625, 0.06463623046875, -0.036773681640625, 0.003498077392578125, -0.02880859375, -0.00823974609375, 0.003925323486328125, -0.01215362548828125, -0.0009899139404296875, 0.0104827880859375, -0.021697998046875, -0.004241943359375, 0.0167388916015625, -0.025909423828125, -0.01556396484375, -0.0166473388671875, -0.00872802734375, -0.026458740234375, -0.006557464599609375, -0.011474609375, 0.00832366943359375, 0.0012216567993164062, -0.062042236328125, -0.0109710693359375, 0.0665283203125, 0.02081298828125, -0.010223388671875, 0.03271484375, 0.03692626953125, -0.005870819091796875, 0.0195159912109375, 0.0128021240234375, -0.049468994140625, 0.03387451171875, -0.048614501953125, 0.0006818771362304688, 0.01360321044921875, -0.0203094482421875, -0.0287322998046875, 0.0203704833984375, 0.046234130859375, 0.001773834228515625, -0.020782470703125, -0.0003254413604736328, -0.00730133056640625, -0.047119140625, -0.001499176025390625, -0.0179595947265625, -0.00302886962890625, 0.0098114013671875, 0.0160980224609375, -0.0034999847412109375, 0.00893402099609375, 0.040618896484375, 0.01537322998046875, -0.0010099411010742188, 0.019378662109375, -0.0193023681640625, -0.05145263671875, -0.040435791015625, 0.0177001953125, -0.0400390625, 0.024566650390625, 0.05194091796875, 0.03472900390625, 0.00914764404296875, -0.0081329345703125, 0.0212860107421875, -0.0147705078125, 0.004974365234375, -0.004215240478515625, -0.014068603515625, -0.0019092559814453125, 0.036834716796875, -0.03466796875, 0.04046630859375, 0.02325439453125, 0.00433349609375, 0.001544952392578125, 0.049957275390625, 0.034423828125, -0.036895751953125, -0.00603485107421875, -0.01177215576171875, 0.050567626953125, 0.05096435546875, 0.037078857421875, 0.050048828125, -0.022552490234375, 0.001697540283203125, -0.00634765625, -0.0208282470703125, -0.0120086669921875, 0.00562286376953125, -0.0210723876953125, -0.0116424560546875, 0.01788330078125, 0.0033168792724609375, 0.0202484130859375, 0.01526641845703125, 0.036346435546875, -0.043212890625, -0.01172637939453125, 0.00020682811737060547, 0.0214385986328125, -0.0174407958984375, 0.049896240234375, 0.010009765625, 0.01027679443359375, 0.00730133056640625, 0.0273895263671875, -0.010498046875, -0.03814697265625, 0.037628173828125, -0.0056610107421875, -0.03863525390625, -0.0263824462890625, -0.00015056133270263672, 0.038787841796875, 0.054840087890625, 0.022216796875, -0.0070343017578125, -0.033447265625, -0.049224853515625, 0.02606201171875, 0.0035400390625, -0.0022830963134765625, -0.045806884765625, -0.0023651123046875, -0.020843505859375, -0.036102294921875, 0.00098419189453125, -0.0347900390625, 0.036529541015625, -0.0131988525390625, -0.0225830078125, -0.0023956298828125, -0.0166168212890625, 0.032470703125, 0.0406494140625, 0.037628173828125, -0.0009860992431640625, 0.0282135009765625, -0.020233154296875, -0.0194244384765625, -0.040740966796875, -0.01433563232421875, 0.040985107421875, 0.05169677734375, 0.006656646728515625, -0.010894775390625, 0.01093292236328125, -0.0321044921875, 0.01197052001953125, 0.058990478515625, 0.084716796875, -0.0322265625, -0.015655517578125, -0.062225341796875, 0.039459228515625, 0.00452423095703125, -0.10455322265625, 0.0648193359375, -0.030517578125, 0.00926971435546875, -0.0308990478515625, -0.0211944580078125, -0.0053863525390625, 0.0141448974609375, 0.02459716796875, 0.0163726806640625, 0.04168701171875, 0.036590576171875, 0.0238494873046875, 0.0202178955078125, 0.046295166015625, -0.055023193359375, 0.0253448486328125, -0.0220489501953125, 0.0121002197265625, 0.036773681640625, 0.0026493072509765625, 0.005645751953125, 0.01465606689453125, -0.0298919677734375, 0.01776123046875, 0.0204620361328125, -0.0101776123046875, 0.03387451171875, -0.034393310546875, 0.0171966552734375, -0.01319122314453125, 0.0063934326171875, 0.02001953125, -0.0249481201171875, 0.033233642578125, -0.0282135009765625, 0.02655029296875, 0.00965118408203125, 0.0233001708984375, -0.020172119140625, -0.005157470703125, -0.073974609375, 0.004669189453125, 0.00916290283203125, 0.027801513671875, -0.0146331787109375, -0.044281005859375, -0.01085662841796875, 0.032562255859375, -0.005695343017578125, -0.01183319091796875, 0.043731689453125, -0.00801849365234375, -0.021942138671875, -0.03009033203125, -0.08111572265625, -0.0079193115234375, 0.0032482147216796875, 0.0079803466796875, 0.00618743896484375, -0.00574493408203125, 0.0863037109375, 0.032440185546875, 0.03118896484375, 0.019683837890625, 0.02813720703125, -0.00913238525390625, -0.0191192626953125, 0.0256805419921875, -0.0235748291015625, 0.01194000244140625, 0.056304931640625, -0.0027828216552734375, -0.001056671142578125, -0.0023555755615234375, 0.06793212890625, 0.03643798828125, 0.006134033203125, 0.0012750625610351562, -0.02532958984375, -0.0455322265625, -0.06597900390625, 0.0222320556640625, 0.0224761962890625, 0.03497314453125, -0.0189208984375, 0.01971435546875, 0.024444580078125, -0.028411865234375, -0.0782470703125, 0.07025146484375, 0.01023101806640625, -0.0521240234375, -0.0017747879028320312, -0.01435089111328125, -0.012939453125, -0.01270294189453125, -0.03594970703125, -0.0270233154296875, -0.0230865478515625, 0.0031490325927734375, -0.0208892822265625, -0.01031494140625, 0.014984130859375, -0.0072021484375, -0.005962371826171875, 0.0012378692626953125, 0.03179931640625, -0.0031833648681640625, -0.0584716796875, 0.0006413459777832031, 0.0231475830078125, -0.0287322998046875, 0.0020275115966796875, 0.0321044921875, -0.0284881591796875, -0.01036834716796875, 0.001697540283203125, 0.0697021484375, 0.038909912109375, -0.054656982421875, 0.0007295608520507812, -0.010040283203125, 0.01434326171875, -0.00786590576171875, -0.006092071533203125, 0.007801055908203125, -0.01788330078125, -0.041168212890625, -0.0501708984375, 0.01419830322265625, 0.0228424072265625, -0.01177215576171875, -0.0450439453125, -0.034881591796875, -0.0250244140625, -0.003173828125, -0.0032138824462890625, -0.0135498046875, -0.025360107421875, -0.005420684814453125, -0.0335693359375, 0.0335693359375, 0.0036163330078125, 0.011505126953125, 0.0102996826171875, -0.06195068359375, -0.06036376953125, 0.02923583984375, -0.046417236328125, -0.023651123046875, -0.043365478515625, 0.056732177734375, -0.029693603515625, -0.002655029296875, 0.033050537109375, 0.0095672607421875, 0.032318115234375, 0.008697509765625, -0.026763916015625, 0.042205810546875, 0.085693359375, -0.049072265625, -0.0170135498046875, -0.039581298828125, 0.00931549072265625, -0.04931640625, -0.068115234375, -0.028839111328125, -0.005321502685546875, -0.07220458984375, 0.0361328125, 0.0177001953125, -0.041107177734375, -0.027008056640625, 0.002689361572265625, -0.058197021484375, -0.0178070068359375, 0.0196075439453125, -0.0322265625, 0.032745361328125, -0.0229949951171875, 0.003986358642578125, -0.0285186767578125, 0.01364898681640625, -0.057373046875, -0.06005859375, -0.0040283203125, -0.0279388427734375, 0.026611328125, 0.0285797119140625, -0.05633544921875, -0.0086212158203125, 0.0308380126953125, -0.01387786865234375, -0.060455322265625, 0.04742431640625, 0.034759521484375, 0.0034637451171875, 0.0214080810546875, 0.01477813720703125, -0.030609130859375, 0.004024505615234375, 0.012237548828125, -0.0255279541015625, -0.01374053955078125, -0.0218048095703125, -0.052520751953125, 0.040435791015625, -0.051422119140625, -0.0364990234375, -0.03662109375, 0.00872039794921875, 0.0295867919921875, -0.032012939453125, 0.050048828125, -0.04571533203125, -0.0242919921875, -0.006290435791015625, -0.00496673583984375, -0.01397705078125, 0.0162353515625, 0.04327392578125, 0.0149688720703125, -0.0030975341796875, -0.022613525390625, -0.0296478271484375, 0.0237884521484375, 0.040435791015625, -0.0007143020629882812, 0.0128326416015625, -0.020294189453125, -0.004749298095703125, 0.0293731689453125, -0.016571044921875, 0.0222320556640625, 0.081787109375, 0.004207611083984375, -0.003787994384765625, 0.00342559814453125, -0.0200347900390625, -0.031768798828125, 0.040802001953125, -0.0022335052490234375, 0.0008721351623535156, -0.00685882568359375, 0.01837158203125, 0.01560211181640625, -0.05645751953125, -0.04443359375, -0.0073089599609375, -0.002613067626953125, 0.0010128021240234375, 0.0303802490234375, 0.0192108154296875, 0.0009407997131347656, -0.00974273681640625, 0.004993438720703125, -0.01105499267578125, 0.050384521484375, -0.0109405517578125, 0.00136566162109375, -0.0086517333984375, 0.031280517578125, -0.03302001953125, 0.0498046875, -0.0100250244140625, 0.0635986328125, 0.041473388671875, -0.018951416015625, 0.01055908203125, 0.0037326812744140625, -0.015411376953125, -0.020263671875, 0.043212890625, 0.0024242401123046875, -0.01253509521484375, -0.0248870849609375, 0.025299072265625, 0.007648468017578125, 0.00811004638671875, -0.0248565673828125, 0.04150390625, 0.0019550323486328125, 0.0059051513671875, 0.006244659423828125, 0.0216064453125, -0.017120361328125, 0.0258331298828125, -0.00988006591796875, 0.055145263671875, 0.07806396484375, 0.01043701171875, 0.0221099853515625, 0.00836181640625, -0.02093505859375, -0.029144287109375, -0.02435302734375, -0.0296783447265625, -0.0007443428039550781, 0.02215576171875, 0.0301055908203125, -0.03350830078125, -0.045989990234375, 0.035491943359375, -0.03717041015625, -0.01702880859375, 0.053314208984375, -0.01062774658203125, -0.034088134765625, -0.0540771484375, -0.03131103515625, 0.039306640625, -0.014801025390625, 0.0082550048828125, -0.017059326171875, -0.036590576171875, -0.01129150390625, 0.01206207275390625, -0.01065826416015625, -0.022979736328125, -0.03448486328125, -0.045989990234375, -0.003620147705078125, -0.0035877227783203125, -0.0413818359375, -0.0618896484375, 0.0212554931640625, -0.0012369155883789062, 0.005542755126953125, -0.029754638671875, 0.0224761962890625, -0.033477783203125, 0.016510009765625, -0.01483917236328125, 0.02880859375, -0.00931549072265625, -0.0201568603515625, -0.046356201171875, -0.0227508544921875, -0.04803466796875, -0.0293426513671875, -0.04669189453125, -0.041656494140625, -0.053955078125, 0.01209259033203125, 0.006504058837890625, 0.04400634765625, -0.011810302734375, -0.01145172119140625, -0.01226043701171875, -0.01451873779296875, -0.0180816650390625, 0.0286712646484375, -0.037506103515625, 0.0110321044921875, 0.0178985595703125, 0.0494384765625, -0.016571044921875, -0.022857666015625, -0.005863189697265625, -0.01329803466796875, 0.042022705078125, 0.002986907958984375, -0.058807373046875, -0.040435791015625, -0.030426025390625, -0.0552978515625, 0.0303955078125, -0.04071044921875, 0.061309814453125, -0.049407958984375, -0.0128326416015625, 0.00555419921875, 0.0274200439453125, -0.054779052734375, 0.0296630859375, 0.05059814453125, -0.046630859375, -0.0404052734375, 0.011810302734375, -0.0229644775390625, -0.0017423629760742188, 0.0136566162109375, -0.031280517578125, 0.006969451904296875, -0.07623291015625, 0.0838623046875, 0.0787353515625, 0.05340576171875, 0.08782958984375, 0.002552032470703125, 0.049407958984375, 0.024383544921875, -0.038818359375, 0.04058837890625, 0.021240234375, 0.06585693359375, -0.0171051025390625, -0.022918701171875, 0.03839111328125, -0.04034423828125, -0.007503509521484375, 0.055999755859375, 0.038665771484375, -0.06732177734375, -0.01654052734375, -0.0290679931640625, -0.01849365234375, 0.02679443359375, -0.005382537841796875, -0.02618408203125, -0.04766845703125, 0.08514404296875, -0.00983428955078125, -0.00943756103515625, 0.039276123046875, -0.0081939697265625, -0.01009368896484375, -0.0091094970703125, 0.029327392578125, 0.0154876708984375, -0.039886474609375, 0.003025054931640625, 0.0284271240234375, -0.00884246826171875, 0.006023406982421875, 0.00824737548828125, 0.0024776458740234375, -0.0241851806640625, -0.038787841796875, 0.01080322265625, -0.011688232421875, -0.021942138671875, 0.017822265625, -0.0299835205078125, 0.052398681640625, 0.0214385986328125, 0.0015077590942382812, -0.00406646728515625, -0.0242919921875, 0.01334381103515625, 0.032012939453125, -0.00919342041015625, 0.004425048828125, -0.0258331298828125, -0.0278778076171875, 0.0036792755126953125, -0.02587890625, -0.02252197265625, -0.02313232421875, 0.00769805908203125, 0.1103515625, -0.045196533203125, -0.0245208740234375, 0.0237884521484375, 0.041839599609375, -0.020355224609375, -0.0231781005859375, 0.0426025390625, -0.07733154296875, -0.01551055908203125, 0.009124755859375, -0.00582122802734375, -0.0262603759765625, 0.0002028942108154297, -0.02642822265625, 0.07696533203125, -0.0032176971435546875, 0.020477294921875, 0.021636962890625, 0.03302001953125, -0.01010894775390625, 0.030792236328125, -0.001941680908203125, 0.044189453125, -0.07855224609375, 0.03131103515625, -0.0200653076171875, 0.0309295654296875, 0.00684356689453125, -0.0109405517578125, 0.039093017578125, 0.0033702850341796875, 0.04010009765625, -0.0048828125, 0.040618896484375, 0.0304718017578125, -0.007049560546875, 0.0017375946044921875, -0.00347900390625, -0.0105743408203125, -0.0097503662109375, 0.0240936279296875, 0.034637451171875, -0.004878997802734375, -0.04193115234375, 0.034393310546875, 0.015350341796875, 0.006946563720703125, -0.0262603759765625, 0.05963134765625, -0.019500732421875, -0.023773193359375, 0.01357269287109375, 0.0086517333984375, 0.01959228515625, 0.0748291015625, 0.0543212890625, -0.0068359375, 0.0006480216979980469, -0.03070068359375, 0.06121826171875, -0.0220794677734375, 0.02703857421875, -0.02740478515625, 0.0092010498046875, 0.0226593017578125, 0.0009751319885253906, 0.01284027099609375, 0.03955078125, -0.0513916015625, 0.0240478515625, 0.0221405029296875, 0.0416259765625, -0.034088134765625, -0.01375579833984375, 0.01983642578125, 0.048309326171875, -0.024261474609375, -0.040863037109375, 0.0200347900390625, 0.00601959228515625, -0.00902557373046875, 0.01155853271484375, -0.0091094970703125, -0.03631591796875, 0.00926971435546875, -0.008392333984375, -0.02294921875, -0.015655517578125, 0.06890869140625, 0.0035762786865234375, -0.024444580078125, -0.009033203125, -0.070556640625, -0.00983428955078125, 0.005977630615234375, 0.0206451416015625, 0.04730224609375, -0.01776123046875, 0.029693603515625, -0.044677734375, -0.01995849609375, -0.00823211669921875, -0.0156097412109375, 0.004352569580078125, 0.00005644559860229492, -0.00860595703125, 0.004886627197265625, 0.0024051666259765625, 0.019195556640625, 0.01355743408203125, -0.007053375244140625, 0.0220947265625, 0.0265045166015625, -0.0078125, -0.01141357421875, 0.0465087890625, -0.0057830810546875, 0.00455474853515625, -0.019683837890625, -0.008575439453125, 0.0173797607421875, -0.02056884765625, -0.00302886962890625, 0.00208282470703125, 0.03875732421875, -0.007511138916015625, 0.0296630859375, -0.0016050338745117188, 0.00667572021484375, 0.0290985107421875, -0.0276947021484375, 0.022857666015625, 0.0173492431640625, -0.09564208984375, -0.03204345703125, 0.0002818107604980469, -0.027130126953125, 0.0157623291015625, 0.0416259765625, -0.036651611328125, 0.03375244140625, 0.041412353515625, -0.0389404296875, -0.01041412353515625, 0.017822265625, 0.03619384765625, -0.0013675689697265625, -0.0019025802612304688, 0.0171051025390625, -0.12408447265625, -0.043914794921875, -0.0256195068359375, 0.0111236572265625, 0.01166534423828125, 0.01334381103515625, 0.05615234375, 0.01800537109375, -0.021453857421875, -0.025299072265625, 0.004299163818359375, -0.0222930908203125, 0.0550537109375, 0.004322052001953125, -0.035247802734375, -0.01464080810546875, 0.02899169921875, 0.0221099853515625, 0.012359619140625, -0.042388916015625, -0.0076751708984375, -0.039764404296875, 0.022705078125, 0.010833740234375, 0.032440185546875, -0.0185699462890625, -0.00469970703125, -0.0218048095703125, 0.001003265380859375, 0.037139892578125, -0.0224151611328125, -0.048065185546875, 0.00618743896484375, -0.007419586181640625, -0.038299560546875, 0.004337310791015625, -0.0178375244140625, -0.01511383056640625, 0.020751953125, 0.048309326171875, -0.06365966796875, 0.0075836181640625, -0.01493072509765625, -0.00750732421875, 0.01473236083984375, 0.0587158203125, 0.0055389404296875, -0.0107421875, 0.017669677734375, 0.025421142578125, 0.029754638671875, -0.0390625, -0.0006513595581054688, 0.0227813720703125, 0.006305694580078125, -0.0024394989013671875, 0.037322998046875, -0.00910186767578125, -0.023956298828125, 0.004974365234375, 0.0180511474609375, 0.002422332763671875, 0.019439697265625, -0.026092529296875, 0.03955078125, 0.0238494873046875, 0.003101348876953125, -0.049468994140625, 0.05560302734375, -0.0242156982421875, 0.0192108154296875, -0.006298065185546875, 0.01166534423828125, 0.0029850006103515625, 0.061370849609375, -0.0115966796875, -0.032684326171875, -0.015228271484375, 0.038726806640625, -0.019287109375, 0.00629425048828125, 0.0291748046875, -0.0194091796875, 0.013671875, 0.02081298828125, -0.001312255859375, 0.060821533203125, 0.0011854171752929688, -0.01143646240234375, 0.057708740234375, 0.01323699951171875, -0.0189971923828125, -0.05938720703125, -0.01461029052734375, -0.01242828369140625, 0.06396484375, -0.03851318359375, 0.0112457275390625, 0.0095062255859375, -0.04461669921875, -0.06585693359375, 0.046234130859375, -0.024505615234375, -0.032928466796875, 0.0010042190551757812, 0.0142822265625, -0.031097412109375, -0.01001739501953125, 0.0085906982421875, -0.040924072265625, 0.018402099609375, 0.029541015625, 0.02044677734375, 0.040496826171875, 0.01047515869140625, 0.01142120361328125, -0.036041259765625, 0.0189208984375, 0.0079498291015625, 0.044281005859375, -0.019622802734375, -0.0223236083984375, 0.006252288818359375, 0.0338134765625, -0.034637451171875, -0.06951904296875, 0.006519317626953125, 0.0196380615234375, 0.0160980224609375, -0.05987548828125, -0.039764404296875, -0.02130126953125, 0.054107666015625, 0.0606689453125, 0.037017822265625, -0.045196533203125, 0.0061798095703125, 0.02362060546875, -0.031280517578125, -0.0225067138671875, 0.0130767822265625, -0.045684814453125, -0.0235137939453125, -0.01523590087890625, -0.008636474609375, 0.01143646240234375, 0.007320404052734375, -0.016754150390625, -0.004974365234375, 0.0214385986328125, 0.006946563720703125, -0.056884765625, 0.028839111328125, 0.026702880859375, -0.0213470458984375, 0.034454345703125, -0.036468505859375, 0.0030307769775390625, 0.029571533203125, -0.010772705078125, -0.01108551025390625, 0.0142364501953125, -0.0633544921875, 0.01165008544921875, -0.0181884765625, 0.054351806640625, -0.04705810546875, 0.004261016845703125, -0.0306549072265625, 0.00978851318359375, 0.007381439208984375, 0.00405120849609375, 0.01316070556640625, 0.043975830078125, 0.027099609375, 0.0132293701171875, -0.03314208984375, 0.0382080078125, -0.0196990966796875, 0.03741455078125, -0.0180816650390625, 0.01280975341796875, 0.02935791015625, -0.0280303955078125, 0.007534027099609375, -0.0009937286376953125, 0.03057861328125, -0.01335906982421875, 0.003925323486328125, -0.0029735565185546875, -0.0008807182312011719, 0.005645751953125 ]
ef6217cf08e9c181941827871ee2ea63f77c8386
Wordpress Stackexchange Q: posts_per_page no limit I want to return ALL posts with query_posts. I tried setting posts_per_page to a really high number, but query_posts freaks out and doesn't return any posts. What is the correct way to query posts without a limit? $args = array( 'post_type' => 'post', 'cat' => '22,47,67', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'depth' => 1, 'posts_per_page' => ? ); A: From your child themes functions file: add_action( 'pre_get_posts', 'wpsites_no_limit_posts' ); function wpsites_no_limit_posts( $query ) { if( $query->is_main_query() && !is_admin() && is_home() ) { $query->set( 'posts_per_page', '-1' ); $query->set( 'order', 'ASC' ); $query->set( 'post_type', 'post' ); $query->set( 'cat', '22,47,67' ); $query->set( 'orderby', 'name' ); $query->set( 'order', 'ASC' ); $query->set( 'hide_empty', '1' ); $query->set( 'depth', '1' ); } }
Q: posts_per_page no limit I want to return ALL posts with query_posts. I tried setting posts_per_page to a really high number, but query_posts freaks out and doesn't return any posts. What is the correct way to query posts without a limit? $args = array( 'post_type' => 'post', 'cat' => '22,47,67', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'depth' => 1, 'posts_per_page' => ? ); A: From your child themes functions file: add_action( 'pre_get_posts', 'wpsites_no_limit_posts' ); function wpsites_no_limit_posts( $query ) { if( $query->is_main_query() && !is_admin() && is_home() ) { $query->set( 'posts_per_page', '-1' ); $query->set( 'order', 'ASC' ); $query->set( 'post_type', 'post' ); $query->set( 'cat', '22,47,67' ); $query->set( 'orderby', 'name' ); $query->set( 'order', 'ASC' ); $query->set( 'hide_empty', '1' ); $query->set( 'depth', '1' ); } } A: Or alternatively you can pass WP_Query(which is what query_posts uses) the nopaging argument, which basically does the same thing.. $args = array( 'nopaging' => true // Your other args, etc.. ); It will do exactly the same, but if you have to look back at it later and can't remember what you were doing, i personally feel it will be more clear to you, what it is you were intending with that parameter inside the args array. As i mentioned however, they'll both actually achieve the same. Can't hurt to have more than one approach, and it's always nice to share what you know, suffice to say that's the reason for my answer, despite you already having a sufficient one.. ;) A: Using Ricardo's with some modification: static $paged; $post_ids = []; do { $paged++; $defaults = [ 'fields' => 'ids', // Only return the ID field to make this query faster. 'post_type' => 'post', 'posts_per_page' => 100, 'no_found_rows' => false, // We need pagination & the count for all posts found. 'paged' => $paged, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, ]; $query = new WP_Query($defaults); if ($query->have_posts()) { foreach ($query->posts as $id) { $post_ids[] = $id; } } } while ($query->max_num_pages > $paged); return $post_ids; This will dramatically increase the query time by only querying against the ID row and avoiding updating term and meta cache. A: -1 is your answer! Look for posts_per_page here. $args = array( 'post_type' => 'post', 'cat' => '22,47,67', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'depth' => 1, 'posts_per_page' => -1 ); Important caveat: This can result in a very huge query that can bring the site down. Do this only if you are sure your database can handle it. Not in public themes or plugins. A: The right answer for your issue is 'posts_per_page' => -1 because -1 will return unlimited posts per page As the others users answer. I just want to add an add-on to this Q/A, If you want to get the number of posts per page from the reading setting on WordPress Administration Panel you have to call the get_option() function and pass posts_per_page as a string to it. $args = array( 'post_type' => 'post', 'cat' => '22,47,67', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'depth' => 1, 'posts_per_page' => get_option('posts_per_page') ); I hope this answer will help someone as it help me. Happy Coding Stackexchange Users A: Or.. function getAll($arg, $posts_per_page = 50) { $data = array(); $page = 1; do{ $arg['paged'] = $page; $arg['posts_per_page'] = $posts_per_page; $query = new WP_Query($arg); foreach ($query->posts as $post){ $data[] = $post; } $page++; }while(count($query->posts) === $posts_per_page); return $data; }
wordpress
{ "language": "en", "length": 568, "provenance": "stackexchange_00019.jsonl.gz:415305", "question_score": "53", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36160" }
[ 0.06402587890625, -0.017974853515625, 0.03680419921875, 0.004459381103515625, 0.00493621826171875, -0.019622802734375, 0.0643310546875, -0.048126220703125, 0.005558013916015625, 0.01352691650390625, -0.03173828125, -0.026947021484375, -0.00814056396484375, -0.036376953125, -0.014892578125, -0.0540771484375, 0.059478759765625, -0.02447509765625, 0.01366424560546875, -0.004116058349609375, 0.005413055419921875, 0.031982421875, 0.040496826171875, 0.06903076171875, 0.01287078857421875, 0.0158233642578125, 0.050201416015625, -0.04150390625, 0.0172882080078125, -0.0283050537109375, 0.01824951171875, -0.017852783203125, 0.0269622802734375, -0.0099334716796875, 0.008026123046875, 0.005672454833984375, 0.006439208984375, -0.013427734375, 0.00490570068359375, 0.016510009765625, 0.017669677734375, -0.00876617431640625, -0.0251617431640625, 0.044189453125, -0.0267333984375, -0.041351318359375, 0.01242828369140625, -0.0311279296875, 0.01416015625, -0.02606201171875, 0.01084136962890625, 0.01418304443359375, 0.029541015625, -0.0252227783203125, -0.0282135009765625, 0.001369476318359375, 0.035003662109375, -0.0167999267578125, 0.031890869140625, -0.0667724609375, -0.0625, -0.0299835205078125, 0.0576171875, -0.004276275634765625, -0.0164947509765625, -0.0024890899658203125, 0.0236053466796875, 0.01153564453125, -0.043548583984375, -0.02911376953125, 0.038726806640625, -0.0087738037109375, 0.0005345344543457031, -0.000010371208190917969, -0.0207672119140625, -0.0210418701171875, -0.02325439453125, -0.04022216796875, 0.043487548828125, 0.01000213623046875, -0.0157012939453125, -0.009918212890625, -0.068115234375, 0.01198577880859375, -0.032257080078125, 0.0004553794860839844, -0.0249481201171875, 0.00923919677734375, -0.0194549560546875, -0.00618743896484375, -0.0172271728515625, 0.0040283203125, -0.015655517578125, 0.0009021759033203125, -0.0074310302734375, -0.0281982421875, -0.00652313232421875, 0.0220947265625, -0.02838134765625, 0.00905609130859375, -0.03643798828125, -0.01322174072265625, 0.01137542724609375, -0.029998779296875, 0.0248565673828125, 0.01299285888671875, -0.03338623046875, -0.00409698486328125, 0.061279296875, 0.033843994140625, 0.0128631591796875, 0.03057861328125, 0.00565338134765625, 0.0220794677734375, -0.03521728515625, -0.030364990234375, -0.051849365234375, 0.016357421875, 0.000331878662109375, 0.02423095703125, 0.00811767578125, 0.024383544921875, -0.01690673828125, -0.0212554931640625, -0.01003265380859375, -0.006744384765625, -0.0034008026123046875, -0.023773193359375, 0.033782958984375, 0.0479736328125, -0.031585693359375, -0.017669677734375, 0.02191162109375, -0.00011563301086425781, 0.003143310546875, -0.030029296875, -0.00426483154296875, -0.05999755859375, -0.0027065277099609375, 0.01094818115234375, 0.012298583984375, -0.037139892578125, 0.004779815673828125, 0.0146636962890625, 0.00782012939453125, 0.0188140869140625, 0.02532958984375, -0.0021457672119140625, -0.001590728759765625, -0.0132293701171875, -0.0294952392578125, -0.01305389404296875, 0.046905517578125, -0.00795745849609375, -0.06549072265625, -0.01490020751953125, -0.034759521484375, -0.00365447998046875, -0.034637451171875, -0.0211029052734375, 0.0251617431640625, 0.0015001296997070312, 0.02349853515625, -0.048309326171875, -0.055511474609375, -0.022216796875, -0.044342041015625, -0.012451171875, 0.0153961181640625, 0.0064544677734375, 0.0323486328125, -0.029998779296875, -0.01261138916015625, -0.01143646240234375, 0.0012969970703125, 0.0019664764404296875, -0.01313018798828125, 0.013519287109375, 0.0158843994140625, -0.004550933837890625, -0.019134521484375, -0.04864501953125, 0.020782470703125, 0.00644683837890625, -0.06756591796875, 0.03094482421875, -0.0034656524658203125, 0.0206756591796875, 0.0244903564453125, -0.0001760721206665039, 0.06866455078125, 0.0279693603515625, -0.048614501953125, 0.02447509765625, 0.0013065338134765625, -0.055816650390625, 0.0010347366333007812, -0.02984619140625, 0.0029735565185546875, 0.0223236083984375, 0.0015783309936523438, -0.0267181396484375, 0.031341552734375, 0.0069122314453125, 0.00156402587890625, 0.00677490234375, -0.00385284423828125, 0.0102691650390625, -0.00899505615234375, 0.035614013671875, 0.0295867919921875, 0.025665283203125, -0.043548583984375, -0.00423431396484375, -0.00476837158203125, -0.0067596435546875, 0.0106658935546875, 0.0579833984375, -0.004558563232421875, 0.006343841552734375, -0.0013685226440429688, -0.077880859375, -0.0188751220703125, 0.03375244140625, 0.104248046875, -0.02215576171875, -0.0164031982421875, -0.055328369140625, 0.06005859375, -0.021148681640625, -0.050994873046875, 0.06396484375, 0.0308074951171875, 0.07611083984375, -0.0024814605712890625, -0.01512908935546875, 0.01366424560546875, -0.02532958984375, 0.0217437744140625, 0.02734375, 0.03302001953125, 0.0167083740234375, -0.0018529891967773438, -0.00812530517578125, 0.041259765625, -0.0506591796875, -0.0009088516235351562, 0.00012242794036865234, 0.00711822509765625, 0.02081298828125, 0.024169921875, -0.00725555419921875, 0.0285491943359375, 0.0107879638671875, 0.00173187255859375, 0.026763916015625, 0.015655517578125, 0.029510498046875, -0.0167694091796875, -0.007366180419921875, 0.00507354736328125, -0.01468658447265625, -0.0172576904296875, 0.00812530517578125, -0.0156707763671875, 0.02520751953125, 0.025787353515625, 0.02593994140625, -0.0272369384765625, 0.014556884765625, 0.0162353515625, 0.0018796920776367188, 0.0125579833984375, -0.0280609130859375, -0.056915283203125, -0.03070068359375, -0.01544952392578125, 0.0316162109375, -0.002643585205078125, -0.0465087890625, 0.0095367431640625, 0.04248046875, 0.006916046142578125, -0.0009245872497558594, -0.027374267578125, -0.02471923828125, 0.0130767822265625, 0.039520263671875, 0.01110076904296875, 0.028106689453125, 0.032196044921875, 0.046356201171875, -0.0169525146484375, 0.06744384765625, -0.038909912109375, 0.016632080078125, 0.0160980224609375, -0.10205078125, 0.0616455078125, -0.068603515625, 0.09942626953125, 0.08978271484375, -0.0364990234375, 0.054168701171875, -0.0032711029052734375, 0.00791168212890625, 0.00423431396484375, 0.0173797607421875, -0.010650634765625, -0.02520751953125, -0.0477294921875, -0.0067901611328125, 0.036773681640625, 0.04779052734375, 0.027374267578125, -0.0178375244140625, 0.0263671875, 0.05023193359375, -0.03692626953125, -0.0731201171875, 0.001926422119140625, -0.057891845703125, -0.005519866943359375, -0.012176513671875, -0.023529052734375, -0.00667572021484375, -0.00994873046875, 0.0034885406494140625, -0.0026378631591796875, -0.0252532958984375, -0.0224151611328125, -0.0215606689453125, -0.042877197265625, 0.01271820068359375, 0.014739990234375, 0.01171875, 0.0010595321655273438, 0.0921630859375, 0.0161590576171875, -0.07745361328125, -0.02581787109375, 0.0127410888671875, -0.04241943359375, 0.0036106109619140625, -0.0065155029296875, -0.0056610107421875, 0.04046630859375, -0.0029087066650390625, -0.0076904296875, 0.042572021484375, -0.005130767822265625, -0.00484466552734375, 0.0019283294677734375, -0.01230621337890625, 0.0333251953125, 0.020050048828125, -0.0195465087890625, 0.03009033203125, 0.050018310546875, -0.013763427734375, -0.045257568359375, -0.032623291015625, -0.07940673828125, 0.016571044921875, 0.05548095703125, 0.0257568359375, -0.00634765625, -0.013214111328125, 0.0279693603515625, 0.01153564453125, 0.033782958984375, -0.03363037109375, -0.0007839202880859375, 0.0259552001953125, 0.045074462890625, -0.0285797119140625, 0.041290283203125, 0.0014934539794921875, -0.00605010986328125, 0.0234832763671875, 0.01312255859375, 0.0124053955078125, 0.0015459060668945312, -0.01335906982421875, -0.029571533203125, 0.033966064453125, 0.0022411346435546875, -0.0017528533935546875, -0.038543701171875, -0.033172607421875, -0.038604736328125, 0.040924072265625, -0.038604736328125, -0.0134735107421875, -0.025299072265625, 0.01165771484375, -0.0287322998046875, -0.06414794921875, 0.0021839141845703125, 0.0087890625, -0.0087738037109375, -0.0016756057739257812, -0.020660400390625, -0.01442718505859375, -0.0037059783935546875, -0.05865478515625, -0.00646209716796875, -0.0189666748046875, 0.036102294921875, -0.027008056640625, -0.01129913330078125, 0.002178192138671875, -0.0159149169921875, -0.038055419921875, -0.015777587890625, -0.0023040771484375, -0.09124755859375, -0.026824951171875, 0.0226898193359375, 0.046295166015625, -0.01319122314453125, -0.0274200439453125, -0.033172607421875, 0.046630859375, 0.00513458251953125, 0.024810791015625, 0.02069091796875, 0.034637451171875, -0.03680419921875, -0.0606689453125, 0.01128387451171875, -0.06951904296875, -0.038360595703125, -0.0301666259765625, 0.043609619140625, 0.01261138916015625, -0.03570556640625, -0.04742431640625, -0.0328369140625, 0.013763427734375, -0.07037353515625, -0.028228759765625, -0.0138397216796875, 0.009307861328125, -0.042816162109375, 0.0138702392578125, -0.04022216796875, -0.08599853515625, 0.0216064453125, -0.006061553955078125, -0.026275634765625, 0.0068817138671875, 0.05853271484375, 0.01059722900390625, -0.017425537109375, -0.074951171875, -0.018951416015625, 0.0103607177734375, 0.0247344970703125, 0.034332275390625, -0.01318359375, -0.0194091796875, 0.052520751953125, 0.00368499755859375, -0.01453399658203125, -0.01024627685546875, 0.021209716796875, -0.0181121826171875, -0.042724609375, 0.0255279541015625, -0.039825439453125, 0.037261962890625, 0.0292205810546875, -0.007534027099609375, -0.033782958984375, -0.005756378173828125, 0.06317138671875, -0.0157470703125, 0.017303466796875, -0.04052734375, -0.0283355712890625, 0.0028629302978515625, 0.0242919921875, 0.0214385986328125, 0.00098419189453125, 0.02105712890625, -0.004367828369140625, 0.00732421875, -0.0071563720703125, 0.040283203125, 0.08428955078125, -0.01143646240234375, 0.041656494140625, 0.0188446044921875, -0.01494598388671875, -0.0219573974609375, -0.01177215576171875, 0.07257080078125, -0.004482269287109375, -0.036163330078125, -0.0164337158203125, -0.0218048095703125, 0.0291290283203125, 0.01044464111328125, -0.0027332305908203125, 0.0193023681640625, 0.0205535888671875, 0.0247039794921875, -0.00640869140625, -0.0123443603515625, 0.00171661376953125, -0.0278167724609375, 0.049224853515625, 0.0164947509765625, 0.00389862060546875, 0.009552001953125, 0.0738525390625, -0.0070648193359375, 0.038604736328125, -0.0133819580078125, -0.0093231201171875, 0.0188751220703125, 0.0269012451171875, 0.023345947265625, -0.00766754150390625, 0.00475311279296875, 0.0049896240234375, 0.0259857177734375, -0.028839111328125, -0.025115966796875, 0.033843994140625, 0.00858306884765625, 0.012603759765625, 0.02679443359375, 0.0005559921264648438, 0.0313720703125, -0.026611328125, 0.04046630859375, 0.06494140625, 0.0019073486328125, -0.047210693359375, -0.05804443359375, 0.005889892578125, 0.015899658203125, 0.01514434814453125, -0.01401519775390625, 0.01296234130859375, 0.031890869140625, -0.029998779296875, 0.010772705078125, 0.00873565673828125, 0.007080078125, -0.03912353515625, -0.040252685546875, 0.010101318359375, 0.00365447998046875, 0.03631591796875, -0.02996826171875, -0.049835205078125, 0.04132080078125, -0.0179443359375, 0.07666015625, -0.04742431640625, -0.0290985107421875, -0.0509033203125, 0.0305023193359375, 0.0104827880859375, 0.034942626953125, -0.02020263671875, -0.0012722015380859375, -0.03363037109375, -0.0141754150390625, 0.056243896484375, 0.007366180419921875, -0.01727294921875, -0.025421142578125, 0.0096282958984375, 0.002941131591796875, 0.007610321044921875, -0.040557861328125, -0.054473876953125, -0.0084075927734375, 0.0281982421875, -0.0117034912109375, -0.02886962890625, 0.054412841796875, 0.005462646484375, 0.0141448974609375, 0.00836944580078125, 0.01360321044921875, 0.04180908203125, -0.01171875, 0.036651611328125, -0.061126708984375, -0.04791259765625, -0.0027103424072265625, -0.0628662109375, -0.0180206298828125, -0.017730712890625, -0.0190582275390625, 0.03790283203125, -0.023895263671875, -0.00965118408203125, -0.003910064697265625, -0.0128631591796875, -0.0308074951171875, 0.01462554931640625, 0.043792724609375, 0.0231170654296875, 0.03192138671875, -0.02520751953125, -0.0667724609375, 0.0213775634765625, 0.032562255859375, 0.0156707763671875, -0.0292510986328125, -0.0232086181640625, 0.0229949951171875, 0.0748291015625, 0.0162200927734375, 0.039642333984375, 0.0245361328125, 0.01947021484375, 0.01485443115234375, 0.0006394386291503906, -0.005107879638671875, 0.014801025390625, 0.0654296875, 0.009979248046875, -0.007801055908203125, 0.049407958984375, -0.01947021484375, 0.007781982421875, -0.00267791748046875, 0.04583740234375, -0.025787353515625, 0.0273284912109375, 0.024322509765625, -0.01180267333984375, 0.024505615234375, 0.00881195068359375, 0.020538330078125, 0.0297698974609375, 0.020233154296875, -0.031402587890625, -0.01288604736328125, 0.0027637481689453125, -0.01629638671875, -0.011444091796875, -0.04095458984375, 0.0213470458984375, 0.00634765625, -0.0197601318359375, 0.02398681640625, 0.0093536376953125, 0.006633758544921875, -0.0294036865234375, -0.0007338523864746094, -0.0029468536376953125, -0.0152130126953125, -0.077392578125, 0.004566192626953125, -0.0150146484375, 0.00836944580078125, 0.059844970703125, -0.0229339599609375, -0.0140380859375, 0.035400390625, -0.0247039794921875, 0.0311126708984375, 0.00923919677734375, -0.042266845703125, -0.031402587890625, -0.023284912109375, 0.00836181640625, 0.0193023681640625, 0.0058441162109375, 0.027069091796875, -0.0018415451049804688, -0.0379638671875, -0.0197296142578125, -0.039947509765625, 0.049285888671875, -0.017852783203125, -0.01352691650390625, 0.01490020751953125, 0.0357666015625, 0.0028514862060546875, 0.0126190185546875, 0.01226806640625, -0.0260009765625, 0.00482940673828125, 0.007717132568359375, 0.00374603271484375, -0.0125274658203125, 0.01290130615234375, -0.053741455078125, 0.09564208984375, -0.0077667236328125, 0.019256591796875, 0.0296783447265625, 0.025970458984375, -0.03802490234375, 0.00951385498046875, -0.03570556640625, 0.055816650390625, 0.035797119140625, 0.023284912109375, -0.058319091796875, -0.01432037353515625, 0.00310516357421875, 0.043121337890625, 0.048858642578125, 0.01177215576171875, -0.046539306640625, 0.005008697509765625, 0.062744140625, 0.03350830078125, 0.00965118408203125, 0.046051025390625, 0.0224609375, 0.06842041015625, 0.07623291015625, -0.036041259765625, 0.04376220703125, -0.0191192626953125, -0.00991058349609375, 0.04345703125, 0.0218658447265625, 0.0333251953125, -0.0240020751953125, -0.01678466796875, -0.04986572265625, -0.001384735107421875, 0.045440673828125, -0.009521484375, 0.00286865234375, 0.04168701171875, 0.07586669921875, -0.06884765625, -0.0439453125, -0.02947998046875, 0.0540771484375, 0.03192138671875, 0.0261077880859375, 0.071044921875, 0.0232696533203125, 0.09661865234375, -0.051971435546875, 0.00894927978515625, -0.022369384765625, -0.0165863037109375, 0.04217529296875, 0.0179290771484375, 0.02960205078125, -0.037078857421875, -0.01168060302734375, 0.06060791015625, 0.06866455078125, -0.033966064453125, -0.0535888671875, 0.005008697509765625, 0.00589752197265625, 0.0182342529296875, 0.00293731689453125, 0.0183563232421875, 0.041290283203125, 0.057342529296875, -0.059112548828125, 0.005451202392578125, 0.0304718017578125, 0.01134490966796875, -0.02001953125, -0.00789642333984375, -0.00666046142578125, -0.0153350830078125, -0.01392364501953125, -0.0093536376953125, 0.010009765625, 0.0172576904296875, 0.0003046989440917969, 0.012298583984375, -0.005496978759765625, 0.00980377197265625, -0.01110076904296875, 0.0232696533203125, -0.0038471221923828125, 0.0245819091796875, -0.034759521484375, -0.01837158203125, -0.00665283203125, 0.0260162353515625, 0.05010986328125, 0.00504302978515625, 0.017730712890625, 0.0200653076171875, 0.0107269287109375, 0.017730712890625, 0.0207977294921875, -0.003734588623046875, -0.00677490234375, -0.0275421142578125, -0.0115814208984375, 0.01224517822265625, -0.01213836669921875, 0.0180816650390625, 0.014739990234375, 0.0108642578125, 0.024658203125, -0.01404571533203125, 0.0148773193359375, -0.03369140625, 0.024810791015625, 0.007694244384765625, 0.050079345703125, 0.035552978515625, -0.07513427734375, -0.038116455078125, -0.0258636474609375, 0.005352020263671875, 0.036376953125, 0.03948974609375, 0.0043487548828125, 0.01242828369140625, -0.01053619384765625, -0.01503753662109375, 0.00453948974609375, -0.0012531280517578125, 0.01490020751953125, 0.01125335693359375, -0.004215240478515625, 0.0027561187744140625, -0.039459228515625, -0.036773681640625, -0.006622314453125, 0.02044677734375, 0.01641845703125, 0.03448486328125, 0.00798797607421875, 0.01003265380859375, 0.0212860107421875, 0.033843994140625, -0.0275115966796875, -0.00641632080078125, 0.05206298828125, -0.0305023193359375, -0.0003330707550048828, -0.009613037109375, -0.0010442733764648438, -0.00792694091796875, 0.035430908203125, -0.061309814453125, 0.0062408447265625, -0.036895751953125, 0.0204315185546875, -0.01837158203125, -0.0192718505859375, -0.0191802978515625, 0.0038585662841796875, -0.0092926025390625, -0.02093505859375, 0.0243072509765625, 0.0035400390625, -0.021026611328125, 0.03662109375, -0.0008325576782226562, -0.0205841064453125, 0.054351806640625, -0.060791015625, 0.08270263671875, 0.035491943359375, -0.03570556640625, 0.0156707763671875, 0.0009298324584960938, -0.0206298828125, -0.01009368896484375, 0.0362548828125, -0.045135498046875, 0.01116180419921875, -0.006351470947265625, -0.0172576904296875, 0.0209197998046875, 0.034881591796875, -0.0225830078125, 0.005519866943359375, 0.02032470703125, -0.0232696533203125, -0.0261688232421875, 0.0276641845703125, -0.0216827392578125, -0.0113067626953125, -0.024749755859375, -0.0161285400390625, -0.0196075439453125, -0.033935546875, -0.008270263671875, 0.015380859375, 0.021759033203125, 0.0008649826049804688, -0.045562744140625, 0.0272674560546875, -0.029388427734375, 0.02587890625, -0.0276947021484375, -0.0166473388671875, 0.0038433074951171875, 0.01457977294921875, -0.0006227493286132812, 0.04046630859375, -0.02984619140625, -0.03082275390625, 0.0128021240234375, -0.0073394775390625, 0.0306549072265625, -0.0019016265869140625, -0.0242767333984375, 0.004909515380859375, -0.0213775634765625, 0.0311279296875, -0.00606536865234375, 0.005096435546875, 0.0287017822265625, 0.01800537109375, -0.054901123046875, -0.11676025390625, 0.0167694091796875, -0.0855712890625, 0.027099609375, 0.004611968994140625, 0.009368896484375, 0.03338623046875, -0.0287628173828125, -0.050537109375, 0.060211181640625, -0.0015001296997070312, -0.0240478515625, -0.0212554931640625, -0.01548004150390625, -0.018341064453125, 0.03021240234375, 0.0182037353515625, -0.03411865234375, -0.040008544921875, 0.022674560546875, 0.00379180908203125, 0.032806396484375, -0.004222869873046875, 0.01934814453125, -0.08001708984375, 0.000827789306640625, -0.0231170654296875, 0.00481414794921875, 0.0033512115478515625, 0.01392364501953125, 0.0303192138671875, 0.03924560546875, -0.01136016845703125, 0.03228759765625, 0.01032257080078125, -0.033477783203125, 0.019744873046875, -0.0147552490234375, -0.0595703125, -0.017578125, 0.048736572265625, 0.052093505859375, 0.03509521484375, -0.03778076171875, -0.03497314453125, -0.033447265625, -0.0164947509765625, -0.031402587890625, 0.031463623046875, -0.08673095703125, -0.0129547119140625, 0.01995849609375, -0.017822265625, 0.015472412109375, -0.0125885009765625, -0.03082275390625, -0.00815582275390625, -0.045440673828125, -0.0192718505859375, -0.031524658203125, 0.0195770263671875, -0.004688262939453125, -0.02947998046875, -0.058563232421875, -0.016815185546875, -0.0066680908203125, -0.056121826171875, -0.0303192138671875, -0.03857421875, 0.040191650390625, -0.01337432861328125, -0.00951385498046875, 0.003665924072265625, -0.010040283203125, 0.0147247314453125, 0.044586181640625, -0.01001739501953125, 0.0228424072265625, 0.014739990234375, 0.0135955810546875, -0.00333404541015625, 0.04693603515625, 0.0297393798828125, 0.0308074951171875, -0.0203399658203125, 0.06292724609375, 0.0170135498046875, 0.0077667236328125, 0.00521087646484375, -0.00705718994140625, 0.06610107421875, -0.03619384765625, -0.0011415481567382812, -0.0083770751953125, -0.01316070556640625, -0.0196380615234375, 0.007511138916015625, 0.0235443115234375, -0.0183563232421875, 0.003170013427734375 ]
de66a4bdd2b661a58dda774cebbe924fbe36cbfb
Wordpress Stackexchange Q: How can i put "posted x minutes ago on my posts? wordpress by default writes the the date on posts, but how can I transform it to : "x" time ago ?? like 3 days ago, or 5 minutes ago ?? A: Wordpress has a built-in funtion called human_time_diff() that allows you to do this. Just place this code in your functions.php function time_ago( $type = 'post' ) { $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time'; return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago'); } To use it anywhere in your theme (for example, on single.php), place this code where you want the "time ago" feature displayed: <?php echo time_ago(); ?> Let me know if it worked for you.
Q: How can i put "posted x minutes ago on my posts? wordpress by default writes the the date on posts, but how can I transform it to : "x" time ago ?? like 3 days ago, or 5 minutes ago ?? A: Wordpress has a built-in funtion called human_time_diff() that allows you to do this. Just place this code in your functions.php function time_ago( $type = 'post' ) { $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time'; return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago'); } To use it anywhere in your theme (for example, on single.php), place this code where you want the "time ago" feature displayed: <?php echo time_ago(); ?> Let me know if it worked for you. A: function k99_relative_time() { $post_date = get_the_time('U'); $delta = time() - $post_date; if ( $delta < 60 ) { echo 'Less than a minute ago'; } elseif ($delta > 60 && $delta < 120){ echo 'About a minute ago'; } elseif ($delta > 120 && $delta < (60*60)){ echo strval(round(($delta/60),0)), ' minutes ago'; } elseif ($delta > (60*60) && $delta < (120*60)){ echo 'About an hour ago'; } elseif ($delta > (120*60) && $delta < (24*60*60)){ echo strval(round(($delta/3600),0)), ' hours ago'; } else { echo the_time('j\<\s\u\p\>S\<\/\s\u\p\> M y g:i a'); } } then put k99_relative_time(); in theme file where you want this to appear.
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:415313", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36184" }
[ 0.07989501953125, -0.0203857421875, 0.004741668701171875, 0.007785797119140625, 0.0155487060546875, -0.057098388671875, 0.07855224609375, -0.0310821533203125, 0.037689208984375, -0.002758026123046875, -0.0802001953125, -0.0022182464599609375, -0.00006437301635742188, -0.000022411346435546875, -0.007373809814453125, -0.0269775390625, 0.05108642578125, -0.00792694091796875, 0.031707763671875, 0.0107421875, -0.02093505859375, 0.034393310546875, 0.050537109375, 0.0440673828125, 0.0322265625, 0.0477294921875, 0.10858154296875, -0.062744140625, 0.0670166015625, -0.006103515625, 0.04083251953125, -0.094482421875, 0.0228271484375, 0.033203125, -0.043701171875, 0.0584716796875, -0.006298065185546875, 0.0183868408203125, 0.003238677978515625, 0.01702880859375, 0.037933349609375, -0.01142120361328125, 0.0025577545166015625, -0.020233154296875, -0.0129852294921875, -0.018402099609375, 0.0262603759765625, -0.01023101806640625, 0.037353515625, -0.0105438232421875, -0.00699615478515625, -0.027130126953125, 0.016204833984375, -0.001506805419921875, -0.035369873046875, -0.0250396728515625, -0.027587890625, 0.0426025390625, 0.022705078125, -0.06427001953125, -0.0197296142578125, -0.0036640167236328125, 0.03924560546875, 0.0543212890625, -0.011444091796875, 0.0310211181640625, 0.0860595703125, -0.01007843017578125, -0.048614501953125, -0.0234222412109375, 0.025482177734375, -0.00861358642578125, 0.00257110595703125, -0.0218048095703125, -0.018646240234375, -0.0009870529174804688, 0.0175018310546875, -0.0100250244140625, -0.004901885986328125, -0.00116729736328125, 0.0117340087890625, 0.016021728515625, -0.016845703125, -0.025390625, 0.0033054351806640625, -0.02081298828125, -0.0112457275390625, -0.00958251953125, -0.06182861328125, -0.02001953125, -0.03826904296875, -0.04803466796875, -0.07855224609375, 0.01265716552734375, 0.01325225830078125, 5.960464477539063e-8, 0.0113983154296875, 0.060638427734375, -0.055389404296875, -0.0202789306640625, -0.045654296875, 0.0216217041015625, -0.0517578125, -0.0136566162109375, 0.0009813308715820312, 0.01024627685546875, 0.004001617431640625, 0.007633209228515625, 0.032318115234375, 0.0282440185546875, -0.0079803466796875, 0.0306396484375, 0.011688232421875, -0.043426513671875, -0.01148223876953125, 0.0266876220703125, 0.0229034423828125, 0.007778167724609375, 0.02947998046875, -0.013427734375, -0.0084686279296875, 0.0160064697265625, 0.0016498565673828125, -0.01209259033203125, 0.0092315673828125, -0.013153076171875, -0.027740478515625, -0.01244354248046875, 0.07904052734375, 0.02032470703125, -0.04229736328125, 0.005401611328125, 0.00921630859375, -0.0182952880859375, -0.0094757080078125, -0.0175628662109375, 0.0452880859375, -0.035552978515625, -0.033233642578125, 0.033172607421875, -0.022552490234375, -0.031707763671875, -0.0150146484375, -0.036163330078125, -0.03759765625, 0.006702423095703125, 0.0201568603515625, 0.0240020751953125, -0.0178375244140625, -0.0892333984375, 0.041351318359375, -0.0361328125, 0.0222015380859375, -0.02276611328125, 0.002803802490234375, -0.0190277099609375, -0.0137786865234375, -0.0130767822265625, 0.0002982616424560547, 0.0077362060546875, 0.02044677734375, -0.0174713134765625, -0.02899169921875, -0.027862548828125, -0.026275634765625, 0.01412200927734375, -0.024017333984375, 0.0091400146484375, 0.01416015625, -0.020965576171875, 0.0013256072998046875, -0.03570556640625, 0.021636962890625, 0.004608154296875, -0.007537841796875, 0.040374755859375, -0.03369140625, 0.009521484375, 0.001983642578125, 0.0247039794921875, 0.00295257568359375, -0.034088134765625, 0.00910186767578125, 0.0128936767578125, -0.023681640625, -0.0123291015625, 0.0125579833984375, 0.0095977783203125, 0.006916046142578125, 0.0179901123046875, -0.006832122802734375, 0.0265655517578125, -0.0323486328125, 0.02789306640625, -0.0308074951171875, -0.02337646484375, 0.004093170166015625, 0.00826263427734375, -0.036468505859375, 0.019866943359375, -0.0005993843078613281, 0.0237274169921875, -0.044525146484375, 0.0060882568359375, -0.10858154296875, -0.0009298324584960938, -0.0509033203125, 0.038543701171875, 0.00145721435546875, 0.01544189453125, 0.00811004638671875, -0.0002567768096923828, -0.01015472412109375, -0.0232696533203125, -0.04412841796875, -0.002063751220703125, -0.01293182373046875, 0.01529693603515625, -0.006244659423828125, 0.017486572265625, -0.0298309326171875, -0.0047454833984375, -0.0306396484375, 0.0011663436889648438, 0.00356292724609375, -0.027496337890625, -0.01708984375, -0.023345947265625, -0.0340576171875, 0.014617919921875, -0.04522705078125, 0.0292205810546875, 0.00004094839096069336, -0.01605224609375, -0.048309326171875, -0.0182952880859375, -0.01561737060546875, -0.04400634765625, 0.007213592529296875, 0.060760498046875, 0.0338134765625, -0.0007452964782714844, 0.0280303955078125, 0.0513916015625, 0.050811767578125, -0.04840087890625, 0.0138397216796875, 0.0195465087890625, -0.0135650634765625, 0.0322265625, -0.01132965087890625, 0.0224761962890625, 0.0154266357421875, -0.06732177734375, -0.0004794597625732422, 0.062225341796875, -0.041412353515625, -0.00765228271484375, -0.0239715576171875, 0.01522064208984375, 0.01541900634765625, -0.04119873046875, -0.006244659423828125, -0.03076171875, 0.049163818359375, -0.037567138671875, 0.015655517578125, 0.0036602020263671875, -0.021759033203125, -0.0031833648681640625, 0.018951416015625, -0.01340484619140625, 0.0113067626953125, -0.0231475830078125, -0.05389404296875, 0.0295257568359375, -0.0169677734375, 0.020904541015625, -0.00018990039825439453, -0.02435302734375, -0.00563812255859375, 0.0322265625, 0.0015811920166015625, -0.00014960765838623047, -0.018402099609375, -0.038421630859375, 0.0189361572265625, 0.03582763671875, 0.0243682861328125, -0.01910400390625, 0.0225830078125, -0.0160675048828125, -0.03717041015625, 0.0390625, 0.02655029296875, -0.05584716796875, -0.05792236328125, -0.045196533203125, 0.029022216796875, -0.03857421875, 0.0099945068359375, 0.062408447265625, 0.01467132568359375, 0.01024627685546875, 0.01453399658203125, -0.0203704833984375, 0.0069122314453125, 0.034912109375, 0.006511688232421875, 0.01438140869140625, -0.054595947265625, 0.029998779296875, -0.0016584396362304688, 0.02764892578125, -0.054290771484375, -0.07171630859375, -0.03179931640625, -0.027862548828125, -0.10601806640625, -0.060394287109375, -0.0089263916015625, -0.135986328125, -0.006725311279296875, -0.0147552490234375, -0.0662841796875, 0.020599365234375, 0.0230560302734375, 0.0213470458984375, 0.0297088623046875, 0.020111083984375, -0.01373291015625, 0.01026153564453125, -0.044464111328125, -0.042999267578125, -0.00644683837890625, 0.0024166107177734375, -0.01053619384765625, 0.1025390625, 0.00623321533203125, -0.05401611328125, -0.04840087890625, -0.036041259765625, -0.0181427001953125, -0.01151275634765625, 0.0242919921875, -0.019683837890625, 0.031646728515625, 0.017303466796875, -0.0011196136474609375, 0.050445556640625, -0.0305023193359375, -0.0165863037109375, -0.017181396484375, 0.00279998779296875, -0.00457000732421875, 0.022735595703125, 0.0203857421875, 0.0267791748046875, 0.02325439453125, -0.01885986328125, -0.0059967041015625, -0.00921630859375, -0.035064697265625, 0.00586700439453125, 0.00905609130859375, -0.01470184326171875, -0.0205841064453125, 0.0165252685546875, -0.032470703125, -0.024261474609375, 0.041412353515625, -0.031524658203125, -0.0106964111328125, -0.0047149658203125, -0.027374267578125, 0.002658843994140625, -0.0267486572265625, -0.013702392578125, 0.052886962890625, -0.0007419586181640625, 0.035858154296875, -0.01409149169921875, 0.0626220703125, -0.045928955078125, -0.014739990234375, 0.023834228515625, -0.045806884765625, -0.005641937255859375, -0.030792236328125, -0.007221221923828125, -0.0124664306640625, 0.055816650390625, -0.08441162109375, -0.0186920166015625, 0.0241851806640625, 0.01499176025390625, -0.0198822021484375, -0.00021791458129882812, -0.07464599609375, -0.0266876220703125, -0.0692138671875, 0.05255126953125, -0.0016117095947265625, 0.011077880859375, -0.08245849609375, 0.08563232421875, -0.072265625, -0.022705078125, 0.0215606689453125, -0.00026798248291015625, -0.01145172119140625, 0.01015472412109375, -0.0352783203125, -0.0071868896484375, -0.0212249755859375, -0.005672454833984375, -0.037078857421875, -0.03271484375, -0.008544921875, 0.06103515625, 0.0323486328125, -0.034912109375, 0.0018091201782226562, 0.04595947265625, 0.044921875, 0.037872314453125, -0.0085906982421875, -0.048980712890625, 0.028076171875, 0.030181884765625, 0.0275726318359375, 0.00445556640625, -0.029754638671875, -0.04638671875, -0.0004646778106689453, -0.0028133392333984375, -0.032501220703125, 0.00806427001953125, -0.043426513671875, 0.0087127685546875, -0.01300811767578125, -0.0389404296875, -0.0305938720703125, 0.034881591796875, -0.036865234375, 0.0174713134765625, -0.055419921875, -0.0408935546875, 0.061431884765625, 0.00885009765625, -0.0023212432861328125, -0.0049285888671875, 0.08782958984375, 0.0140380859375, -0.0284881591796875, -0.0445556640625, 0.01446533203125, 0.024505615234375, -0.005062103271484375, 0.01629638671875, -0.0137176513671875, -0.01345062255859375, 0.037994384765625, -0.0140838623046875, -0.0134735107421875, -0.038787841796875, 0.0667724609375, -0.0088043212890625, -0.029022216796875, 0.021148681640625, -0.043426513671875, 0.0423583984375, 0.0238037109375, 0.0033054351806640625, -0.0186920166015625, -0.01458740234375, 0.031280517578125, -0.006435394287109375, 0.043121337890625, -0.0292205810546875, -0.035797119140625, 0.0183258056640625, -0.06744384765625, -0.00824737548828125, 0.03936767578125, -0.01239776611328125, -0.001270294189453125, 0.00034236907958984375, -0.00986480712890625, -0.0251007080078125, -0.034576416015625, -0.037811279296875, 0.0140380859375, -0.0287628173828125, -0.04998779296875, 0.0189056396484375, -0.0160980224609375, 0.0673828125, 0.0287322998046875, -0.0263824462890625, 0.01580810546875, -0.023681640625, 0.0250701904296875, -0.0258941650390625, -0.023345947265625, 0.010284423828125, 0.0277557373046875, -0.010772705078125, 0.0112152099609375, -0.0269012451171875, 0.03729248046875, -0.024169921875, 0.01418304443359375, -0.01326751708984375, -0.007648468017578125, 0.039306640625, -0.006256103515625, 0.01885986328125, -0.0020503997802734375, -0.04473876953125, 0.0260772705078125, 0.027557373046875, 0.04150390625, 0.0266876220703125, -0.045806884765625, -0.0103607177734375, 0.0109100341796875, -0.0168914794921875, 0.0016489028930664062, -0.0230560302734375, 0.0236358642578125, 0.0085906982421875, 0.002574920654296875, 0.03594970703125, -0.0279693603515625, -0.001300811767578125, -0.0136566162109375, -0.00464630126953125, 0.04449462890625, 0.00681304931640625, 0.0135650634765625, 0.022369384765625, -0.01422119140625, 0.018341064453125, -0.000762939453125, 0.041839599609375, -0.0211334228515625, 0.05731201171875, -0.030303955078125, 0.057525634765625, -0.052459716796875, -0.058624267578125, -0.034515380859375, -0.0286407470703125, -0.042083740234375, 0.01242828369140625, 0.0005235671997070312, 0.002429962158203125, -0.0175628662109375, 0.01617431640625, 0.009674072265625, 0.01396942138671875, -0.0191650390625, -0.0068511962890625, -0.027130126953125, -0.002826690673828125, 0.0189056396484375, -0.0184478759765625, -0.033477783203125, -0.025848388671875, -0.056884765625, -0.03692626953125, -0.042083740234375, -0.00494384765625, -0.0258331298828125, 0.01885986328125, -0.02056884765625, 0.022857666015625, -0.01180267333984375, 0.005901336669921875, -0.0162200927734375, 0.00728607177734375, 0.002765655517578125, 0.0465087890625, 0.0157928466796875, 0.049346923828125, -0.00415802001953125, 0.0665283203125, 0.034423828125, 0.047454833984375, -0.0205841064453125, -0.058502197265625, 0.025390625, 0.0135498046875, -0.033203125, -0.030548095703125, -0.020660400390625, -0.052276611328125, 0.01090240478515625, -0.01168060302734375, 0.005126953125, -0.004543304443359375, 0.0226898193359375, -0.027618408203125, 0.0020542144775390625, -0.02197265625, -0.01053619384765625, -0.001434326171875, -0.0128173828125, 0.01364898681640625, -0.0157623291015625, 0.01035308837890625, -0.001190185546875, -0.0158538818359375, 0.0092620849609375, -0.00212860107421875, -0.00901031494140625, 0.01331329345703125, 0.07696533203125, 0.01198577880859375, 0.048797607421875, 0.018829345703125, 0.01226806640625, 0.01494598388671875, 0.021026611328125, -0.0078887939453125, -0.020965576171875, 0.032867431640625, 0.01241302490234375, -0.0185394287109375, 0.0220489501953125, -0.0106201171875, 0.037628173828125, 0.0474853515625, 0.056182861328125, -0.07318115234375, 0.02374267578125, -0.0104827880859375, -0.018341064453125, 0.07159423828125, 0.004596710205078125, -0.0104522705078125, -0.00772857666015625, 0.0245208740234375, -0.0007839202880859375, -0.0182952880859375, 0.01788330078125, 0.0321044921875, -0.01364898681640625, -0.0278167724609375, 0.0367431640625, 0.023193359375, -0.055938720703125, 0.042022705078125, 0.03741455078125, 0.009521484375, -0.045684814453125, -0.007381439208984375, -0.030975341796875, 0.00891876220703125, -0.040802001953125, 0.01255035400390625, -0.035186767578125, 0.0623779296875, 0.0206146240234375, 0.005481719970703125, 0.0223236083984375, 0.035980224609375, -0.00830078125, 0.0022373199462890625, 0.00923919677734375, 0.0017080307006835938, -0.024078369140625, -0.033355712890625, 0.0036411285400390625, 0.048980712890625, -0.0345458984375, 0.038665771484375, -0.0066680908203125, -0.031341552734375, -0.00318145751953125, 0.0161285400390625, 0.06292724609375, -0.020477294921875, -0.036865234375, 0.00962066650390625, 0.026214599609375, 0.01214599609375, -0.008148193359375, 0.01114654541015625, -0.014678955078125, 0.0308990478515625, -0.01045989990234375, -0.0013666152954101562, 0.005115509033203125, -0.012481689453125, -0.05914306640625, 0.09716796875, -0.004505157470703125, 0.0190887451171875, -0.0028228759765625, 0.037994384765625, -0.01232147216796875, 0.017425537109375, -0.0005183219909667969, 0.04998779296875, -0.03521728515625, 0.057586669921875, -0.031707763671875, -0.002887725830078125, 0.0296173095703125, 0.041229248046875, 0.042938232421875, 0.01464080810546875, -0.0211181640625, -0.002094268798828125, 0.043609619140625, 0.039398193359375, -0.004627227783203125, 0.0241546630859375, -0.01148223876953125, 0.017822265625, 0.0323486328125, -0.012908935546875, 0.0390625, -0.0204315185546875, -0.017608642578125, -0.003589630126953125, 0.006137847900390625, 0.0010318756103515625, -0.0251922607421875, -0.0024166107177734375, -0.0226898193359375, -0.0168304443359375, 0.006565093994140625, -0.01507568359375, 0.016754150390625, 0.0234375, 0.022735595703125, -0.0312042236328125, -0.06787109375, -0.00812530517578125, 0.032012939453125, -0.0005273818969726562, 0.04376220703125, 0.050262451171875, 0.0237884521484375, -0.0006394386291503906, -0.017364501953125, 0.02532958984375, -0.0014410018920898438, -0.0372314453125, 0.0791015625, 0.0506591796875, 0.03729248046875, -0.0203704833984375, -0.04388427734375, 0.01837158203125, 0.09332275390625, -0.021728515625, 0.0265045166015625, 0.003131866455078125, -0.01081085205078125, -0.0007948875427246094, -0.05999755859375, 0.00559234619140625, 0.0016679763793945312, -0.041900634765625, 0.02789306640625, -0.0262908935546875, 0.0267333984375, 0.02569580078125, 0.032196044921875, 0.034454345703125, -0.0313720703125, -0.0206451416015625, -0.043731689453125, -0.00623321533203125, 0.002330780029296875, 0.0265350341796875, 0.032379150390625, 0.01064300537109375, 0.021484375, -0.006465911865234375, 0.0269622802734375, 0.00841522216796875, 0.0165863037109375, -0.061370849609375, 0.03106689453125, -0.011138916015625, -0.0213775634765625, -0.0100555419921875, -0.0169830322265625, -0.0062103271484375, 0.0428466796875, 0.00846099853515625, -0.10107421875, -0.02386474609375, -0.019866943359375, -0.06463623046875, -0.028961181640625, -0.0032901763916015625, -0.00620269775390625, 0.01084136962890625, -0.00621795654296875, 0.01099395751953125, 0.047576904296875, 0.007602691650390625, -0.0281219482421875, 0.0254364013671875, 0.001956939697265625, -0.0063934326171875, 0.034149169921875, -0.005779266357421875, -0.00354766845703125, -0.017242431640625, 0.01235198974609375, -0.01284027099609375, -0.0009260177612304688, -0.02825927734375, 0.0155487060546875, 0.015594482421875, -0.01593017578125, 0.024078369140625, 0.0092315673828125, -0.01291656494140625, 0.0182952880859375, 0.00279998779296875, -0.005580902099609375, 0.0286102294921875, 0.038238525390625, -0.008880615234375, -0.03460693359375, -0.00669097900390625, -0.045745849609375, 0.030303955078125, 0.05084228515625, -0.0214996337890625, 0.0269012451171875, 0.058441162109375, -0.05438232421875, 0.00005996227264404297, -0.05242919921875, -0.058380126953125, 0.041473388671875, -0.0031490325927734375, -0.027313232421875, 0.005672454833984375, 0.0016498565673828125, 0.03277587890625, 0.0150909423828125, -0.0270233154296875, 0.01291656494140625, -0.0131072998046875, 0.022247314453125, 0.002178192138671875, -0.0242919921875, -0.0280303955078125, -0.00212860107421875, 0.047393798828125, 0.01515960693359375, -0.0111846923828125, -0.042510986328125, -0.0126800537109375, 0.051300048828125, 0.0655517578125, -0.0210113525390625, 0.0021495819091796875, -0.0277557373046875, 0.03558349609375, 0.042694091796875, 0.01496124267578125, 0.01259613037109375, -0.0107421875, -0.0254058837890625, 0.00943756103515625, -0.00022971630096435547, 0.007534027099609375, -0.0110931396484375, -0.0086669921875, -0.0141143798828125, -0.0073394775390625, 0.00823974609375, -0.03570556640625, -0.0089569091796875, 0.0041046142578125, -0.01457977294921875, -0.00490570068359375, -0.026458740234375, -0.0377197265625, -0.07830810546875, 0.032196044921875, 0.04339599609375, -0.04998779296875, -0.0006890296936035156, -0.0833740234375, -0.006927490234375, -0.006084442138671875, -0.01212310791015625, -0.014068603515625, 0.004878997802734375, 0.004241943359375, 0.012542724609375, -0.0250091552734375, -0.036407470703125, 0.00258636474609375, 0.0269012451171875, -0.003322601318359375, -0.04010009765625, -0.0413818359375, 0.033294677734375, -0.0423583984375, 0.004058837890625, 0.03582763671875, -0.00621795654296875, -0.0243072509765625, -0.00518035888671875, -0.006122589111328125, 0.046051025390625, -0.053863525390625, -0.00821685791015625, 0.01348876953125, 0.0023174285888671875, -0.0618896484375, -0.037689208984375, 0.048675537109375, -0.0660400390625, -0.0156707763671875, 0.0299530029296875, -0.01548004150390625, 0.007175445556640625, -0.0182952880859375, -0.044586181640625, 0.0389404296875, 0.0013866424560546875, -0.03472900390625, -0.01100921630859375, 0.004894256591796875, -0.00150299072265625, 0.007549285888671875, -0.007205963134765625, 0.007572174072265625, -0.01233673095703125, -0.004467010498046875, -0.0083465576171875, 0.04486083984375, -0.003742218017578125, -0.01419830322265625, -0.0154876708984375, 0.000029981136322021484, -0.0018463134765625, 0.00887298583984375, 0.00888824462890625, 0.01012420654296875, 0.034271240234375, 0.042572021484375, -0.0243377685546875, 0.02728271484375, 0.004093170166015625, 0.01214599609375, -0.016387939453125, -0.00843048095703125, -0.04290771484375, -0.0185089111328125, 0.09197998046875, 0.04449462890625, 0.027740478515625, -0.034698486328125, 0.024017333984375, -0.0008263587951660156, -0.022125244140625, -0.003269195556640625, 0.0016870498657226562, -0.0295867919921875, -0.0252685546875, -0.01105499267578125, -0.01319122314453125, 0.0239105224609375, 0.01491546630859375, -0.011688232421875, 0.005146026611328125, 0.0335693359375, -0.012664794921875, -0.053436279296875, 0.00832366943359375, 0.0176544189453125, -0.0204315185546875, -0.00292205810546875, -0.005840301513671875, -0.001129150390625, -0.0003790855407714844, 0.0207977294921875, 0.041015625, 0.030853271484375, -0.0239715576171875, -0.020050048828125, 0.051788330078125, -0.0021381378173828125, 0.01531219482421875, -0.046630859375, 0.004459381103515625, -0.016754150390625, -0.0206756591796875, -0.046722412109375, 0.046417236328125, -0.0384521484375, -0.030731201171875, 0.060302734375, -0.0190582275390625, 0.0401611328125, -0.01371002197265625, 0.0205535888671875, -0.022430419921875, 0.0172576904296875, 0.017120361328125, -0.02838134765625, -0.0033512115478515625, -0.0087738037109375, 0.00003349781036376953, -0.050689697265625, 0.04345703125, -0.023681640625, -0.007251739501953125, 0.0303192138671875 ]
d41e5474ffb87ab74de771cac13ed100bfe145a8
Wordpress Stackexchange Q: Reordering themes in admin panel I've been searching for a hook to change the order in which themes are displayed in the admin panel (i.e. wp-admin/themes.php) but so far haven't been successful. Is there an existing hook to do this, or another workaround so I can have a custom non-alphabetical ordering - i.e. have certain themes display before the rest? A: The get_themes function passes the available themes to the theme list table class and is hardcoded with a call to asort the array, with no filters available anywhere along the way that i can see. So in short, not possible at present due to an absence of hooks(at least as far as my observations go). Relevant files: http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/theme.php http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/theme.php http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/class-wp-themes-list-table.php
Q: Reordering themes in admin panel I've been searching for a hook to change the order in which themes are displayed in the admin panel (i.e. wp-admin/themes.php) but so far haven't been successful. Is there an existing hook to do this, or another workaround so I can have a custom non-alphabetical ordering - i.e. have certain themes display before the rest? A: The get_themes function passes the available themes to the theme list table class and is hardcoded with a call to asort the array, with no filters available anywhere along the way that i can see. So in short, not possible at present due to an absence of hooks(at least as far as my observations go). Relevant files: http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/theme.php http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/theme.php http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/class-wp-themes-list-table.php
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:415321", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36220" }
[ 0.0198822021484375, -0.001811981201171875, 0.009002685546875, -0.005489349365234375, 0.01082611083984375, -0.02490234375, 0.0278778076171875, -0.035186767578125, -0.01021575927734375, 0.041717529296875, -0.00713348388671875, -0.020721435546875, 0.0215301513671875, -0.01528167724609375, -0.0236968994140625, -0.0302581787109375, 0.021942138671875, -0.027435302734375, 0.025604248046875, -0.008026123046875, 0.01499176025390625, 0.0035533905029296875, 0.030426025390625, 0.0226898193359375, 0.02093505859375, -0.0232391357421875, 0.060943603515625, -0.031341552734375, 0.038604736328125, -0.0155487060546875, 0.02099609375, -0.0135955810546875, 0.006866455078125, -0.01282501220703125, 0.032440185546875, -0.016693115234375, 0.01316070556640625, -0.00572967529296875, 0.0244140625, 0.0034236907958984375, 0.006381988525390625, 0.004047393798828125, 0.01091766357421875, 0.045928955078125, -0.009979248046875, -0.042816162109375, -0.0007185935974121094, -0.0367431640625, 0.0078887939453125, -0.023101806640625, 0.0127105712890625, 0.0137176513671875, 0.0400390625, -0.04754638671875, -0.007457733154296875, 0.006999969482421875, -0.0232391357421875, 0.0222320556640625, 0.0031833648681640625, -0.015838623046875, -0.0074005126953125, 0.0206451416015625, 0.0010919570922851562, 0.00791168212890625, -0.0234832763671875, 0.008087158203125, 0.037933349609375, 0.00843048095703125, -0.077880859375, -0.0322265625, 0.0435791015625, -0.01508331298828125, -0.0095062255859375, -0.039703369140625, 0.0187530517578125, 0.029144287109375, -0.00390625, -0.01104736328125, 0.0219879150390625, 0.00897216796875, -0.01140594482421875, 0.0027103424072265625, 0.01253509521484375, -0.03826904296875, -0.0033054351806640625, -0.0169830322265625, -0.01439666748046875, 0.00655364990234375, -0.0250396728515625, -0.0298309326171875, -0.0338134765625, -0.0163116455078125, -0.0126953125, 0.002376556396484375, -0.020660400390625, 0.0102386474609375, 0.0413818359375, 0.050811767578125, 0.0011882781982421875, -0.001399993896484375, -0.00890350341796875, -0.039581298828125, 0.0166778564453125, -0.0279388427734375, -0.016387939453125, -0.052978515625, 0.0081024169921875, 0.01407623291015625, 0.012908935546875, 0.054840087890625, -0.047119140625, 0.01467132568359375, 0.00653076171875, -0.0306549072265625, -0.0218353271484375, -0.017364501953125, -0.0173492431640625, 0.002323150634765625, 0.0182037353515625, -0.005313873291015625, 0.00571441650390625, 0.0135040283203125, 0.00010323524475097656, 0.0037384033203125, 0.0003037452697753906, -0.0035152435302734375, -0.034637451171875, -0.0193328857421875, -0.0194091796875, 0.0257415771484375, -0.038604736328125, 0.008575439453125, 0.058013916015625, 0.054718017578125, 0.0218048095703125, -0.0196075439453125, -0.0016546249389648438, 0.00920867919921875, -0.0194244384765625, 0.0128173828125, 0.01136016845703125, -0.01207733154296875, -0.004611968994140625, -0.023345947265625, -0.00954437255859375, 0.0303802490234375, -0.0106658935546875, -0.005153656005859375, -0.00677490234375, -0.04632568359375, 0.0250244140625, -0.080322265625, 0.022247314453125, 0.04156494140625, 0.0118560791015625, 0.01155853271484375, 0.0701904296875, -0.025604248046875, -0.028533935546875, -0.036529541015625, -0.0253448486328125, -0.01116180419921875, -0.00533294677734375, -0.0305938720703125, -0.03857421875, 0.0355224609375, 0.0107879638671875, -0.0011911392211914062, 0.02630615234375, 0.004756927490234375, 0.0390625, -0.01702880859375, 0.067138671875, 0.01593017578125, -0.01348876953125, 0.019989013671875, 0.038726806640625, -0.035125732421875, 0.0110626220703125, 0.0357666015625, -0.0164947509765625, -0.035308837890625, -0.01244354248046875, -0.019500732421875, -0.051971435546875, 0.0283203125, 0.01416015625, 0.067138671875, 0.0237274169921875, 0.024200439453125, 0.028900146484375, 0.005504608154296875, -0.00867462158203125, 0.004436492919921875, -0.007053375244140625, -0.0029010772705078125, -0.0282745361328125, 0.049835205078125, -0.0240325927734375, -0.023345947265625, -0.0210418701171875, 0.00727081298828125, -0.01837158203125, -0.00789642333984375, -0.0163421630859375, -0.030426025390625, 0.004604339599609375, 0.032684326171875, 0.0267791748046875, 0.0291900634765625, -0.00894927978515625, 0.00429534912109375, -0.0250091552734375, -0.011474609375, -0.0380859375, 0.0179901123046875, -0.01861572265625, 0.0308685302734375, -0.00007224082946777344, 0.0357666015625, 0.00020134449005126953, -0.02880859375, -0.00009006261825561523, 0.0013399124145507812, 0.02569580078125, 0.01172637939453125, -0.0257110595703125, -0.0086517333984375, 0.028045654296875, 0.010345458984375, 0.0035800933837890625, 0.0217742919921875, 0.0128021240234375, 0.064208984375, -0.025665283203125, -0.0151214599609375, 0.012908935546875, -0.013275146484375, 0.018218994140625, 0.01413726806640625, 0.03619384765625, 0.02899169921875, -0.0017910003662109375, -0.0020999908447265625, 0.05224609375, -0.03155517578125, 0.0208587646484375, -0.0203704833984375, 0.005550384521484375, 0.04840087890625, 0.01308441162109375, 0.02838134765625, 0.0073089599609375, 0.01546478271484375, 0.00803375244140625, 0.032257080078125, 0.012786865234375, 0.014312744140625, -0.017181396484375, 0.00628662109375, 0.0107574462890625, -0.0298614501953125, -0.047149658203125, -0.004596710205078125, 0.04083251953125, -0.032501220703125, -0.023223876953125, -0.0447998046875, -0.0517578125, -0.0043792724609375, 0.056243896484375, -0.0104217529296875, 0.000035822391510009766, 0.030303955078125, -0.02117919921875, -0.0064849853515625, -0.036529541015625, 0.00496673583984375, 0.00872039794921875, -0.002773284912109375, -0.018402099609375, 0.034912109375, -0.0482177734375, -0.01418304443359375, -0.0260162353515625, -0.07562255859375, -0.00473785400390625, 0.024871826171875, -0.01218414306640625, -0.00933074951171875, -0.01000213623046875, 0.042144775390625, -0.048919677734375, 0.046295166015625, -0.02508544921875, 0.003910064697265625, -0.05352783203125, -0.0350341796875, 0.0303497314453125, -0.0281524658203125, -0.0008244514465332031, 0.0643310546875, 0.0183563232421875, -0.005077362060546875, 0.027313232421875, 0.0029239654541015625, 0.01024627685546875, 0.032196044921875, 0.0196380615234375, 0.021820068359375, -0.070556640625, 0.03314208984375, 0.043304443359375, 0.03466796875, 0.033447265625, -0.04718017578125, 0.0183868408203125, 0.036468505859375, -0.050140380859375, -0.0955810546875, -0.0214080810546875, -0.0218963623046875, -0.0059356689453125, 0.0066986083984375, -0.0131072998046875, -0.0019359588623046875, 0.001247406005859375, 0.00920867919921875, 0.0167694091796875, -0.032867431640625, -0.0110931396484375, -0.0176239013671875, -0.03076171875, -0.0118255615234375, 0.015655517578125, -0.01125335693359375, -0.00933074951171875, 0.07586669921875, -0.0003876686096191406, -0.081298828125, -0.0161895751953125, 0.0294952392578125, -0.005161285400390625, 0.01251983642578125, 0.046661376953125, -0.0845947265625, 0.004901885986328125, -0.006488800048828125, 0.01296234130859375, 0.0283050537109375, -0.01505279541015625, 0.002727508544921875, -0.04510498046875, -0.0352783203125, -0.0090179443359375, 0.0295257568359375, 0.04412841796875, -0.0287017822265625, 0.006961822509765625, -0.05462646484375, -0.03759765625, 0.04046630859375, -0.0172119140625, 0.0019178390502929688, -0.0248870849609375, -0.0181427001953125, 0.0134429931640625, 0.01120758056640625, 0.00992584228515625, -0.00983428955078125, -0.04693603515625, 0.007785797119140625, 0.051727294921875, 0.0010223388671875, 0.022552490234375, -0.005786895751953125, -0.016326904296875, -0.0228729248046875, -0.035736083984375, -0.0223541259765625, 0.039764404296875, -0.0111846923828125, 0.0201263427734375, -0.0423583984375, -0.0672607421875, 0.042724609375, -0.0360107421875, 0.02410888671875, -0.047943115234375, -0.02862548828125, 0.0085601806640625, 0.12384033203125, -0.06988525390625, -0.016326904296875, -0.004150390625, 0.039520263671875, -0.04296875, -0.050048828125, -0.032958984375, -0.026519775390625, -0.1282958984375, -0.005992889404296875, -0.014495849609375, -0.04608154296875, -0.0160064697265625, 0.03851318359375, -0.07659912109375, -0.04083251953125, 0.0275421142578125, -0.002933502197265625, -0.0167236328125, 0.01345062255859375, -0.020904541015625, -0.01340484619140625, -0.00659942626953125, -0.004467010498046875, -0.08978271484375, -0.0248565673828125, -0.033172607421875, 0.06622314453125, 0.035980224609375, -0.042022705078125, -0.005977630615234375, 0.053558349609375, 0.0015878677368164062, 0.0258941650390625, 0.0082244873046875, 0.0302581787109375, -0.0019025802612304688, -0.046722412109375, 0.00445556640625, -0.0509033203125, -0.0028743743896484375, -0.03875732421875, -0.0311126708984375, 0.0153656005859375, -0.0129852294921875, 0.01184844970703125, 0.00995635986328125, -0.020111083984375, -0.0007224082946777344, -0.01508331298828125, -0.04852294921875, 0.00595855712890625, -0.027099609375, 0.00022923946380615234, -0.02020263671875, -0.022247314453125, 0.007434844970703125, -0.0102691650390625, -0.01535797119140625, 0.0164947509765625, 0.07666015625, 0.0281982421875, -0.01218414306640625, -0.061431884765625, 0.01279449462890625, 0.0435791015625, 0.0172882080078125, 0.0054931640625, -0.02459716796875, -0.04144287109375, 0.0791015625, 0.0018243789672851562, -0.052154541015625, 0.0231475830078125, 0.036224365234375, 0.0088348388671875, -0.0299072265625, 0.0001442432403564453, -0.02252197265625, 0.03619384765625, -0.00531005859375, -0.006511688232421875, -0.0194549560546875, -0.019378662109375, 0.0297698974609375, 0.0165863037109375, 0.002857208251953125, -0.042938232421875, -0.0304412841796875, 0.01593017578125, -0.0033016204833984375, 0.0149993896484375, 0.01493072509765625, 0.0026721954345703125, 0.0090484619140625, 0.032073974609375, 0.01406097412109375, 0.01885986328125, 0.040985107421875, -0.00708770751953125, 0.048370361328125, 0.0088348388671875, 0.0052490234375, -0.0035343170166015625, -0.017608642578125, 0.089111328125, -0.0008516311645507812, -0.04052734375, -0.0280914306640625, -0.0214385986328125, 0.047271728515625, 0.01535797119140625, -0.048492431640625, 0.0101776123046875, 0.0254364013671875, 0.004802703857421875, 0.00655364990234375, -0.05072021484375, 0.005828857421875, -0.033294677734375, 0.03460693359375, 0.0160980224609375, -0.0128021240234375, 0.023712158203125, 0.018646240234375, 0.007049560546875, 0.0168914794921875, -0.0173492431640625, -0.004253387451171875, 0.0177154541015625, 0.00643157958984375, 0.00902557373046875, 0.0009369850158691406, 0.01409149169921875, -0.0190887451171875, 0.05059814453125, -0.0205535888671875, 0.0226593017578125, -0.009674072265625, 0.0073699951171875, -0.0003819465637207031, -0.0147857666015625, 0.033355712890625, -0.0154571533203125, -0.01534271240234375, 0.0457763671875, 0.01251983642578125, -0.04534912109375, -0.035736083984375, -0.01214599609375, 0.0249481201171875, -0.016265869140625, -0.0245819091796875, 0.01922607421875, -0.04034423828125, -0.01149749755859375, 0.0157928466796875, -0.03143310546875, -0.0015172958374023438, 0.002956390380859375, -0.072509765625, 0.01024627685546875, 0.032012939453125, -0.080078125, -0.09710693359375, 0.035308837890625, -0.00823974609375, 0.015380859375, 0.0038433074951171875, 0.04443359375, -0.02197265625, -0.0284881591796875, -0.05657958984375, 0.006916046142578125, 0.05181884765625, 0.024017333984375, -0.046661376953125, 0.031585693359375, -0.0833740234375, -0.01873779296875, -0.06976318359375, -0.058990478515625, -0.07244873046875, 0.0018339157104492188, 0.005615234375, 0.020355224609375, -0.0165863037109375, -0.05523681640625, -0.0182952880859375, 0.0008096694946289062, 0.0204010009765625, 0.0204620361328125, -0.0013074874877929688, 0.0557861328125, -0.032379150390625, 0.03985595703125, -0.002361297607421875, 0.023162841796875, 0.0009069442749023438, -0.0084228515625, 0.0157318115234375, -0.033538818359375, -0.0251312255859375, 0.0237274169921875, -0.061767578125, -0.0208892822265625, 0.01605224609375, -0.0201263427734375, 0.024688720703125, -0.0123138427734375, 0.00891876220703125, -0.0240478515625, -0.01084136962890625, -0.04071044921875, 0.0008111000061035156, -0.00348663330078125, -0.0024776458740234375, -0.0004992485046386719, -0.0165863037109375, -0.02789306640625, 0.0228118896484375, 0.025390625, 0.0026721954345703125, -0.000766754150390625, -0.0867919921875, 0.07110595703125, 0.047637939453125, 0.06829833984375, 0.0460205078125, -0.0229644775390625, 0.0300445556640625, -0.0301361083984375, -0.0032863616943359375, 0.0274658203125, -0.021026611328125, 0.044036865234375, 0.005191802978515625, 0.0229644775390625, 0.042755126953125, -0.0208740234375, 0.00044465065002441406, 0.038177490234375, 0.03375244140625, -0.056732177734375, -0.00162506103515625, -0.01036834716796875, -0.005695343017578125, 0.0216522216796875, -0.0188446044921875, -0.01044464111328125, 0.003696441650390625, 0.05755615234375, -0.03692626953125, -0.01934814453125, 0.0213775634765625, -0.026519775390625, -0.01091766357421875, -0.02197265625, -0.01119232177734375, 0.0001748800277709961, -0.0003504753112792969, -0.00450897216796875, -0.0119476318359375, -0.0010423660278320312, -0.00617218017578125, 0.0009784698486328125, -0.00742340087890625, -0.0276641845703125, -0.041839599609375, -0.010009765625, -0.01468658447265625, -0.0277557373046875, 0.0006489753723144531, -0.0081024169921875, 0.00284576416015625, 0.052886962890625, -0.03289794921875, 0.0006499290466308594, 0.0219268798828125, -0.0244293212890625, 0.034759521484375, -0.0007190704345703125, 0.01441192626953125, -0.03662109375, -0.034576416015625, -0.00021564960479736328, -0.03790283203125, -0.028167724609375, -0.01250457763671875, -0.0122833251953125, 0.0689697265625, -0.0184326171875, -0.010467529296875, 0.0361328125, 0.0118560791015625, -0.01549530029296875, 0.02685546875, 0.0285797119140625, -0.03192138671875, -0.021575927734375, 0.04254150390625, -0.018341064453125, -0.02313232421875, 0.036895751953125, -0.04302978515625, 0.06646728515625, -0.01482391357421875, 0.01396942138671875, 0.0211334228515625, 0.032318115234375, -0.033355712890625, 0.01806640625, -0.022735595703125, 0.01556396484375, -0.00762939453125, 0.0408935546875, -0.05072021484375, 0.0029506683349609375, -0.00267791748046875, 0.032806396484375, 0.027130126953125, -0.002788543701171875, -0.0567626953125, 0.0206298828125, 0.10723876953125, 0.07867431640625, 0.059661865234375, 0.02294921875, -0.009002685546875, 0.0159149169921875, -0.00446319580078125, -0.0146331787109375, 0.01062774658203125, -0.00505828857421875, -0.055023193359375, 0.0276031494140625, 0.0272216796875, 0.04095458984375, 0.017974853515625, -0.005329132080078125, -0.06671142578125, 0.005359649658203125, 0.0618896484375, -0.0545654296875, -0.00983428955078125, 0.0200958251953125, 0.00966644287109375, -0.041015625, -0.034576416015625, -0.0190582275390625, 0.0335693359375, 0.0031604766845703125, 0.0222625732421875, -0.00717926025390625, 0.01788330078125, -0.0013208389282226562, -0.0266571044921875, -0.0020313262939453125, 0.0270233154296875, -0.06439208984375, 0.03399658203125, 0.0028553009033203125, 0.0218505859375, -0.043121337890625, 0.00616455078125, 0.01482391357421875, 0.032440185546875, -0.037689208984375, -0.04632568359375, 0.014892578125, 0.002384185791015625, 0.006237030029296875, 0.005767822265625, -0.0153045654296875, -0.007160186767578125, -0.000396728515625, -0.0181732177734375, -0.0290374755859375, 0.036651611328125, 0.047210693359375, 0.0006570816040039062, 0.0050506591796875, -0.0117950439453125, -0.053497314453125, -0.03961181640625, 0.052764892578125, 0.046295166015625, 0.031890869140625, -0.050018310546875, 0.08392333984375, -0.007640838623046875, 0.00811767578125, -0.01479339599609375, 0.0128631591796875, -0.052520751953125, 0.01326751708984375, -0.052642822265625, -0.0609130859375, -0.02337646484375, 0.050048828125, 0.01027679443359375, -0.006671905517578125, 0.04156494140625, 0.0745849609375, 0.004673004150390625, -0.017425537109375, 0.0625, 0.008453369140625, -0.01561737060546875, -0.046905517578125, 0.040985107421875, 0.022003173828125, 0.01448822021484375, 0.01497650146484375, 0.02227783203125, 0.033233642578125, -0.0196075439453125, 0.019012451171875, 0.004611968994140625, -0.00986480712890625, -0.00601959228515625, -0.0236663818359375, 0.01161956787109375, 0.004299163818359375, -0.0721435546875, -0.003265380859375, -0.049774169921875, -0.024871826171875, 0.023040771484375, 0.0389404296875, 0.0014934539794921875, 0.008148193359375, 0.0311431884765625, -0.035888671875, -0.04046630859375, 0.0250091552734375, 0.049224853515625, 0.00601959228515625, -0.007965087890625, 0.0281524658203125, -0.07574462890625, -0.05224609375, -0.03631591796875, 0.03302001953125, -0.01541900634765625, 0.054779052734375, 0.0076904296875, 0.0091552734375, -0.0288238525390625, -0.0033206939697265625, -0.03326416015625, -0.061248779296875, 0.09735107421875, -0.0179901123046875, -0.04034423828125, 0.0007538795471191406, -0.03326416015625, -0.00495147705078125, 0.053955078125, -0.048583984375, 0.0031871795654296875, -0.0179595947265625, 0.0290679931640625, -0.04791259765625, 0.00926971435546875, -0.0263519287109375, -0.055908203125, -0.0245361328125, 0.02471923828125, -0.0249481201171875, 0.012939453125, 0.0010595321655273438, 0.0013704299926757812, 0.010223388671875, -0.0164031982421875, 0.01409912109375, 0.026153564453125, 0.0265960693359375, 0.033203125, -0.01396942138671875, -0.0253143310546875, 0.004810333251953125, -0.01715087890625, 0.03314208984375, -0.0013446807861328125, 0.061920166015625, 0.004367828369140625, -0.005451202392578125, 0.0286102294921875, 0.04766845703125, 0.0693359375, 0.01287841796875, 0.0296783447265625, 0.017333984375, -0.013275146484375, 0.0008220672607421875, -0.0019063949584960938, -0.0284576416015625, -0.002414703369140625, 0.0094451904296875, 0.0301055908203125, 0.0249176025390625, 0.00962066650390625, -0.09759521484375, 0.0240325927734375, 0.041412353515625, 0.00738525390625, -0.06756591796875, 0.03173828125, -0.02215576171875, 0.04840087890625, 0.0038204193115234375, 0.0029354095458984375, 0.01316070556640625, 0.01276397705078125, -0.036834716796875, -0.0178375244140625, -0.02679443359375, 0.0082550048828125, -0.032379150390625, -0.01226043701171875, 0.01163482666015625, 0.006717681884765625, 0.015716552734375, -0.0258636474609375, -0.039825439453125, 0.036468505859375, -0.00817108154296875, 0.0014810562133789062, 0.028656005859375, 0.0187835693359375, -0.045135498046875, -0.098876953125, 0.0104827880859375, -0.042083740234375, 0.031707763671875, -0.00824737548828125, -0.00652313232421875, 0.01529693603515625, -0.0311126708984375, -0.067138671875, 0.034942626953125, -0.009429931640625, -0.037750244140625, -0.021087646484375, 0.0276641845703125, -0.022369384765625, 0.010711669921875, 0.0162811279296875, -0.042633056640625, 0.010284423828125, 0.0318603515625, 0.0162200927734375, 0.031463623046875, -0.00843048095703125, 0.03369140625, -0.05633544921875, 0.0249176025390625, -0.005126953125, 0.0201873779296875, -0.0123138427734375, -0.0210723876953125, 0.032684326171875, 0.0330810546875, -0.0227203369140625, -0.0215606689453125, 0.01395416259765625, 0.0215606689453125, -0.01305389404296875, -0.06475830078125, -0.025299072265625, -0.04681396484375, 0.055328369140625, 0.04449462890625, 0.006275177001953125, -0.0005135536193847656, -0.0093231201171875, -0.00284576416015625, -0.0008554458618164062, -0.03619384765625, 0.0196990966796875, -0.09649658203125, -0.043731689453125, 0.0259857177734375, -0.0120391845703125, 0.008209228515625, 0.0009131431579589844, -0.04241943359375, -0.00258636474609375, -0.0177459716796875, 0.01216888427734375, -0.09332275390625, -0.0243988037109375, 0.029083251953125, -0.03070068359375, -0.002521514892578125, -0.009490966796875, 0.0377197265625, -0.0010395050048828125, -0.01059722900390625, -0.00287628173828125, -0.00446319580078125, -0.01432037353515625, 0.0213470458984375, 0.0009398460388183594, 0.01551055908203125, -0.0321044921875, -0.0062103271484375, -0.01482391357421875, 0.006404876708984375, -0.00911712646484375, -0.006488800048828125, 0.01113128662109375, 0.01442718505859375, -0.0144805908203125, 0.080322265625, -0.0115814208984375, 0.04254150390625, 0.0115509033203125, 0.0194244384765625, -0.0091552734375, -0.004199981689453125, 0.0361328125, -0.040679931640625, 0.0183868408203125, 0.0220184326171875, 0.06744384765625, 0.02008056640625, -0.00360870361328125, 0.0037517547607421875, 0.020416259765625, -0.00400543212890625 ]
986e30cc61c2333415c8eb3a34b349f9504ed685
Wordpress Stackexchange Q: Can posts have parents? Are posts supposed to have parents? If so, what would that mean for a post to have a parent? Also, if there are some constraints to posts having parents, then where is that enforced? Not in the DB as I see it. A: Out of the box, no, posts can't have parents. They can be assigned to categories, which can be organised hierarchically. Pages, however, can have parents and you can build a menu structure out of them by using that feature. As to where this is enforced: The parent of a post is stored in the column "post_parent" in "wp_posts". It's not really enforced as such, just the default UI doesn't give you an option to set it and default WP coding doesn't use that value for Posts. It wouldn't be too difficult to create a custom post type to have posts with parents though.
Q: Can posts have parents? Are posts supposed to have parents? If so, what would that mean for a post to have a parent? Also, if there are some constraints to posts having parents, then where is that enforced? Not in the DB as I see it. A: Out of the box, no, posts can't have parents. They can be assigned to categories, which can be organised hierarchically. Pages, however, can have parents and you can build a menu structure out of them by using that feature. As to where this is enforced: The parent of a post is stored in the column "post_parent" in "wp_posts". It's not really enforced as such, just the default UI doesn't give you an option to set it and default WP coding doesn't use that value for Posts. It wouldn't be too difficult to create a custom post type to have posts with parents though. A: Wp has built in "Pages" (hierarchical, parents allowed) and "Posts" (non-hierarchical). There are also other post types, but let's leave that away. If the Q results in: Can I have hierarchical posts? Then the answer is Yes,… you can have "posts" that are hierarchical. But as they are not built in, you'll have to register your own Custom Post Type - see Arguments » hierarchical. Such "Posts" (or articles, whatever, …) will then - in case they have a parent post - have set the parent ID inside their object. So in a loop you could do the following: if ( have_posts ) { the_post(); // etc. global $post; // call parent: http://codex.wordpress.org/Function_Reference/get_post $parent = get_post( $post->post_parent ); echo "<h2>{$post->post_title} is a child of {$parent->post_title}"; // etc. } // endif; A: I know this is an old post. However none of these answers are correct, and I wanted to post the solution I used to solve this problem. The best way to set a parent page through all of your posts is through the (Appearance -> Customize) menu. You can set a static page for your home page or posts page. When you set a static post page, that page will be the parent for every individual blog post. A: Suppose you want to append blog before post in url than make sure that your blog page's slug name is blog . Then go to WP-admin-panel > settings > permalink and choose the last option "custom structure" and add following in it: /blog/%postname%/ and save changes. It will be only applied to your blog page, other page will not display blog as parent. A: From a search engine perspective, two of these answers combined will help Google to track the hierarchy of your posts, as well as users of course. * *Add a page and use it to host your posts. "The best way to set a parent page through all of your posts is through the (Appearance -> Customize) menu. You can set a static page for your home page or posts page. When you set a static post page, that page will be the parent for every individual blog post." *Change the permalink structure to /blog/%postname% as mentioned above. "Suppose you want to append blog before post in url than make sure that your blog page's slug name is blog . Then go to WP-admin-panel > settings > permalink and choose the last option "custom structure" and add following in it: /blog/%postname%/ and save changes. It will be only applied to your blog page, other page will not display blog as parent." This way, Google sees the hierarchy in sitemaps as domain.com/page/post (in that order) and will also find the content in the same place. As will users. Job done.
wordpress
{ "language": "en", "length": 614, "provenance": "stackexchange_00019.jsonl.gz:415344", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36300" }
[ 0.037384033203125, 0.006256103515625, 0.0034465789794921875, 0.0210723876953125, 0.0004839897155761719, -0.00879669189453125, 0.0655517578125, -0.033843994140625, -0.0034847259521484375, 0.003879547119140625, -0.0269012451171875, -0.0057220458984375, -0.041229248046875, -0.0252227783203125, -0.007518768310546875, -0.043670654296875, 0.05010986328125, -0.0241546630859375, 0.0228729248046875, -0.02197265625, 0.01245880126953125, -0.00160980224609375, 0.05096435546875, 0.03314208984375, 0.0599365234375, 0.0192718505859375, -0.003856658935546875, -0.03228759765625, 0.04315185546875, 0.01873779296875, 0.03955078125, -0.042266845703125, 0.01849365234375, -0.0281219482421875, 0.0438232421875, -0.041229248046875, -0.01044464111328125, -0.004058837890625, 0.002819061279296875, 0.007457733154296875, -0.016937255859375, 0.0286712646484375, 0.0263214111328125, 0.020751953125, -0.029205322265625, -0.0235595703125, -0.0174407958984375, -0.038299560546875, 0.0606689453125, -0.07135009765625, 0.0069427490234375, 0.011016845703125, 0.0206451416015625, -0.057098388671875, -0.0380859375, -0.006732940673828125, 0.0208587646484375, -0.01081085205078125, 0.05401611328125, -0.058349609375, -0.042999267578125, -0.032196044921875, 0.04412841796875, 0.00884246826171875, 0.01004791259765625, 0.0027313232421875, 0.00176239013671875, 0.026824951171875, -0.059722900390625, 0.0221099853515625, 0.0487060546875, -0.03802490234375, 0.016082763671875, -0.025421142578125, 0.01885986328125, -0.039154052734375, -0.000014901161193847656, -0.0328369140625, -0.01201629638671875, 0.04425048828125, -0.006450653076171875, 0.0108642578125, -0.05694580078125, -0.00431060791015625, -0.0216522216796875, -0.01641845703125, -0.021514892578125, -0.0016183853149414062, -0.030426025390625, -0.0231475830078125, -0.0209197998046875, -0.04180908203125, -0.035491943359375, 0.0697021484375, -0.005615234375, -0.00579071044921875, 0.044586181640625, 0.057342529296875, -0.047821044921875, 0.00579833984375, -0.043304443359375, -0.00003147125244140625, 0.00472259521484375, -0.0242156982421875, 0.0167999267578125, -0.0020694732666015625, -0.0443115234375, -0.0224609375, 0.05206298828125, 0.04595947265625, -0.0180511474609375, 0.0309295654296875, 0.00916290283203125, -0.037109375, -0.03814697265625, 0.0443115234375, 0.0017147064208984375, -0.005428314208984375, 0.017242431640625, 0.034942626953125, -0.01800537109375, 0.0105438232421875, 0.00894927978515625, -0.00603485107421875, 0.0029754638671875, -0.0029201507568359375, -0.01119232177734375, -0.0186004638671875, 0.0223388671875, 0.0271453857421875, -0.03253173828125, -0.005016326904296875, 0.06268310546875, 0.0338134765625, 0.013580322265625, -0.019287109375, -0.010772705078125, -0.04339599609375, -0.01509857177734375, -0.0028743743896484375, -0.01277923583984375, -0.039093017578125, 0.0283203125, -0.02130126953125, 0.0034809112548828125, 0.0201568603515625, 0.03131103515625, 0.0269622802734375, -0.03436279296875, -0.02392578125, 0.00437164306640625, 0.00807952880859375, 0.033477783203125, -0.0171051025390625, 0.00632476806640625, -0.035552978515625, -0.0117034912109375, -0.017059326171875, 0.00047707557678222656, -0.01702880859375, -0.01270294189453125, 0.01495361328125, 0.08062744140625, -0.01326751708984375, -0.01313018798828125, 0.00684356689453125, -0.06689453125, -0.0229339599609375, 0.0290985107421875, 0.0027599334716796875, 0.040496826171875, -0.037994384765625, -0.01267242431640625, 0.01348114013671875, 0.0107879638671875, 0.017303466796875, -0.033660888671875, -0.05621337890625, 0.037628173828125, 0.049041748046875, 0.01235198974609375, -0.013519287109375, -0.04278564453125, 0.05096435546875, 0.01192474365234375, 0.006591796875, 0.020965576171875, 0.0240478515625, -0.026885986328125, 0.0310211181640625, -0.0227508544921875, 0.034942626953125, -0.0221710205078125, 0.007587432861328125, -0.0021533966064453125, -0.0038928985595703125, -0.02655029296875, 0.004802703857421875, -0.00470733642578125, -0.0028095245361328125, 0.00011837482452392578, -0.01120758056640625, -0.01412200927734375, -0.01190185546875, -0.03399658203125, -0.0206451416015625, -0.01129913330078125, 0.0273284912109375, 0.0196533203125, 0.01432037353515625, 0.0070037841796875, 0.00025081634521484375, 0.0034770965576171875, -0.054473876953125, -0.0278778076171875, 0.035888671875, -0.00875091552734375, -0.0072479248046875, -0.0254058837890625, -0.023773193359375, -0.049468994140625, 0.002872467041015625, -0.05072021484375, 0.02496337890625, 0.055755615234375, 0.0003921985626220703, -0.01395416259765625, -0.0009870529174804688, 0.0178375244140625, 0.043426513671875, -0.07965087890625, -0.00460052490234375, 0.0169525146484375, -0.03106689453125, -0.050079345703125, 0.00785064697265625, 0.01434326171875, -0.0301361083984375, 0.0004138946533203125, 0.046539306640625, 0.033782958984375, 0.007640838623046875, 0.00447845458984375, 0.02374267578125, 0.00778961181640625, -0.0787353515625, -0.006282806396484375, 0.009735107421875, 0.01372528076171875, 0.06982421875, -0.027069091796875, -0.0017271041870117188, -0.0014638900756835938, -0.0643310546875, -0.006458282470703125, 0.0341796875, 0.0037021636962890625, -0.01020050048828125, -0.0231781005859375, 0.0205841064453125, 0.00638580322265625, -0.002254486083984375, -0.0216064453125, 0.0019931793212890625, 0.00827789306640625, 0.006999969482421875, 0.01265716552734375, 0.005603790283203125, -0.035369873046875, 0.018829345703125, 0.024169921875, -0.016326904296875, 0.0010900497436523438, 0.0074005126953125, 0.0080413818359375, 0.029388427734375, -0.00653076171875, -0.01922607421875, 0.011749267578125, 0.007328033447265625, -0.0187225341796875, -0.026031494140625, -0.0133209228515625, -0.0009984970092773438, -0.0015077590942382812, -0.04541015625, 0.055084228515625, 0.056396484375, 0.0015115737915039062, -0.00525665283203125, 0.01751708984375, 0.0241241455078125, -0.011810302734375, 0.03204345703125, 0.025787353515625, -0.0120391845703125, -0.034393310546875, -0.0266571044921875, 0.04498291015625, -0.0391845703125, -0.0005846023559570312, 0.0509033203125, -0.004364013671875, 0.001560211181640625, -0.0027618408203125, 0.0286712646484375, 0.0014934539794921875, 0.01338958740234375, -0.0024929046630859375, -0.0233154296875, -0.0100860595703125, 0.00333404541015625, 0.011932373046875, 0.064697265625, -0.01543426513671875, -0.0472412109375, -0.006618499755859375, 0.042877197265625, -0.043914794921875, -0.039398193359375, 0.004901885986328125, -0.032989501953125, -0.029205322265625, -0.01163482666015625, -0.01617431640625, -0.00128936767578125, 0.0006952285766601562, 0.0009794235229492188, -0.0557861328125, -0.00698089599609375, -0.01800537109375, -0.03839111328125, -0.0438232421875, 0.0184478759765625, 0.006839752197265625, 0.0207672119140625, -0.006412506103515625, 0.08892822265625, 0.023406982421875, -0.07232666015625, -0.051361083984375, 0.0228118896484375, -0.0237884521484375, 0.001270294189453125, -0.01503753662109375, -0.01052093505859375, 0.00024259090423583984, 0.0005745887756347656, -0.0501708984375, -0.002002716064453125, 0.012908935546875, -0.0267486572265625, 0.007686614990234375, 0.06707763671875, 0.0182952880859375, 0.0036163330078125, 0.01404571533203125, 0.04632568359375, -0.0025882720947265625, -0.01568603515625, -0.0245513916015625, -0.050445556640625, -0.0760498046875, -0.0108642578125, 0.0379638671875, 0.042816162109375, -0.0528564453125, 0.005702972412109375, -0.0007433891296386719, -0.01430511474609375, 0.0180206298828125, -0.019866943359375, 0.033355712890625, 0.0034885406494140625, -0.0036468505859375, -0.0188140869140625, 0.0014286041259765625, -0.034881591796875, 0.017913818359375, -0.0230255126953125, 0.0008392333984375, -0.0298614501953125, 0.054443359375, -0.054168701171875, -0.07562255859375, 0.031585693359375, -0.045440673828125, 0.02191162109375, -0.0391845703125, -0.015777587890625, 0.01800537109375, 0.1136474609375, -0.041351318359375, -0.0106964111328125, -0.0298614501953125, 0.0260009765625, -0.08367919921875, -0.0657958984375, -0.038787841796875, 0.00229644775390625, 0.011627197265625, 0.0167999267578125, 0.014404296875, 0.001735687255859375, -0.02996826171875, 0.04376220703125, -0.003398895263671875, 0.0087890625, 0.03729248046875, -0.00827789306640625, -0.007232666015625, 0.01061248779296875, -0.0021762847900390625, 0.001285552978515625, -0.03570556640625, 0.0143585205078125, -0.0743408203125, -0.0254364013671875, 0.016693115234375, 0.04278564453125, -0.00646209716796875, -0.039642333984375, -0.006587982177734375, 0.056549072265625, 0.02423095703125, 0.02972412109375, 0.015106201171875, 0.01149749755859375, -0.0262908935546875, -0.042755126953125, 0.013458251953125, -0.041412353515625, -0.01531219482421875, -0.01861572265625, 0.007495880126953125, 0.0305023193359375, -0.021240234375, -0.0038967132568359375, -0.00421142578125, -0.00803375244140625, 0.005336761474609375, -0.0340576171875, -0.05743408203125, 0.0380859375, -0.023223876953125, 0.0030422210693359375, -0.0675048828125, -0.053436279296875, -0.0042266845703125, 0.03546142578125, 0.00872802734375, 0.0140838623046875, 0.0655517578125, 0.012786865234375, -0.01091766357421875, -0.04766845703125, -0.00041675567626953125, 0.007251739501953125, 0.035552978515625, 0.0296478271484375, 0.01204681396484375, 0.015106201171875, -0.01904296875, 0.0031909942626953125, -0.031890869140625, -0.003314971923828125, 0.0540771484375, 0.01145172119140625, -0.009185791015625, 0.01476287841796875, -0.00952911376953125, 0.0206298828125, 0.0263671875, -0.0272064208984375, -0.0233917236328125, -0.040435791015625, 0.0665283203125, -0.044464111328125, 0.05194091796875, -0.061798095703125, -0.022735595703125, 0.004459381103515625, -0.03857421875, -0.02032470703125, 0.024871826171875, -0.0134735107421875, -0.01216888427734375, -0.0088653564453125, 0.0266876220703125, -0.04864501953125, -0.0219268798828125, -0.0172882080078125, 0.041015625, -0.043365478515625, 0.0195465087890625, -0.0083770751953125, -0.0005173683166503906, 0.043487548828125, -0.0022144317626953125, -0.054931640625, 0.01654052734375, -0.0181121826171875, 0.018524169921875, 0.01554107666015625, -0.000911712646484375, 0.00384521484375, 0.018402099609375, -0.01708984375, -0.004451751708984375, 0.0218658447265625, 0.0013036727905273438, -0.0130615234375, -0.03369140625, 0.01446533203125, -0.014251708984375, 0.006771087646484375, 0.042266845703125, 0.0177154541015625, 0.0037784576416015625, -0.0256500244140625, 0.016510009765625, 0.01537322998046875, 0.046539306640625, 0.03271484375, -0.0185089111328125, 0.009185791015625, -0.01096343994140625, 0.004405975341796875, -0.04815673828125, -0.01715087890625, 0.041015625, 0.0538330078125, 0.005123138427734375, -0.0194854736328125, 0.00160980224609375, -0.01306915283203125, -0.0272979736328125, -0.00655364990234375, 0.008819580078125, -0.017669677734375, 0.014434814453125, 0.0015096664428710938, -0.0242462158203125, 0.036407470703125, -0.035797119140625, -0.004299163818359375, -0.059326171875, 0.0155029296875, 0.0217132568359375, -0.0174560546875, 0.03515625, 0.00933837890625, -0.043609619140625, -0.00830841064453125, 0.02838134765625, -0.049896240234375, -0.009674072265625, -0.0302581787109375, -0.036712646484375, 0.053802490234375, -0.0141754150390625, 0.0292816162109375, -0.023223876953125, -0.006938934326171875, 0.0097198486328125, 0.004993438720703125, 0.07061767578125, 0.03631591796875, -0.027679443359375, -0.0160675048828125, -0.0509033203125, -0.033782958984375, -0.02996826171875, -0.0038604736328125, -0.0411376953125, 0.0161285400390625, -0.0203704833984375, -0.0008625984191894531, -0.011383056640625, -0.005443572998046875, -0.043121337890625, 0.0182037353515625, 0.01629638671875, -0.006710052490234375, 0.0018491744995117188, 0.09075927734375, -0.034942626953125, 0.048492431640625, 0.0235137939453125, 0.06634521484375, -0.0128021240234375, -0.0161895751953125, 0.03973388671875, -0.054046630859375, -0.0404052734375, -0.03997802734375, -0.02850341796875, -0.0160980224609375, -0.00091552734375, -0.020294189453125, 0.038665771484375, -0.0274658203125, 0.00841522216796875, -0.0117950439453125, 0.009033203125, -0.06500244140625, 0.007778167724609375, 0.0255889892578125, -0.00786590576171875, 0.0172576904296875, -0.01169586181640625, 0.00682830810546875, 0.024688720703125, -0.02593994140625, 0.033721923828125, -0.0026702880859375, -0.036285400390625, 0.0606689453125, 0.053741455078125, 0.00624847412109375, 0.034515380859375, 0.02471923828125, 0.024322509765625, -0.009002685546875, 0.0272216796875, -0.038330078125, -0.025360107421875, 0.04693603515625, 0.0173797607421875, -0.034149169921875, 0.02947998046875, -0.042083740234375, -0.01227569580078125, 0.0008573532104492188, 0.01204681396484375, -0.01280975341796875, 0.0034465789794921875, 0.0006437301635742188, -0.0106353759765625, 0.0291900634765625, 0.014007568359375, 0.03643798828125, 0.071044921875, 0.0240936279296875, -0.0283966064453125, -0.0094757080078125, 0.03497314453125, -0.032012939453125, -0.01174163818359375, -0.0259857177734375, 0.044891357421875, 0.01313018798828125, -0.0003597736358642578, -0.002490997314453125, 0.0016279220581054688, -0.0010089874267578125, -0.0345458984375, 0.0202178955078125, -0.025482177734375, 0.00756072998046875, -0.045379638671875, 0.0008845329284667969, -0.020355224609375, 0.0215911865234375, 0.033447265625, -0.00423431396484375, 0.0113525390625, 0.028533935546875, -0.026031494140625, 0.017974853515625, -0.004734039306640625, -0.035400390625, -0.06982421875, -0.0274505615234375, 0.0611572265625, 0.036895751953125, -0.05572509765625, 0.038848876953125, -0.0364990234375, -0.0413818359375, -0.004413604736328125, -0.0309600830078125, 0.0160675048828125, -0.04656982421875, 0.005176544189453125, 0.0003266334533691406, 0.02349853515625, 0.0333251953125, -0.000911712646484375, -0.0374755859375, 0.0200653076171875, 0.04254150390625, -0.041168212890625, -0.0157012939453125, 0.0122222900390625, -0.043304443359375, -0.058502197265625, 0.08758544921875, 0.00377655029296875, 0.032806396484375, 0.003223419189453125, 0.0283966064453125, -0.0159149169921875, 0.006038665771484375, -0.0433349609375, 0.06866455078125, 0.0193023681640625, 0.05548095703125, -0.06292724609375, -0.033233642578125, 0.0013523101806640625, 0.05615234375, 0.0229949951171875, -0.00681304931640625, -0.0173492431640625, 0.0087127685546875, 0.05938720703125, 0.02069091796875, 0.005146026611328125, 0.040557861328125, -0.003387451171875, 0.031524658203125, 0.022369384765625, -0.0316162109375, 0.039794921875, -0.031768798828125, -0.02557373046875, 0.00600433349609375, 0.00608062744140625, -0.00655364990234375, -0.016021728515625, 0.0173187255859375, 0.01139068603515625, -0.021575927734375, -0.0162506103515625, -0.0382080078125, 0.0051422119140625, 0.05499267578125, 0.0587158203125, -0.07916259765625, -0.058624267578125, -0.0283355712890625, 0.0604248046875, 0.0006422996520996094, 0.04718017578125, 0.000278472900390625, 0.0159912109375, -0.0018110275268554688, 0.0107879638671875, 0.035247802734375, 0.049468994140625, -0.07513427734375, 0.03564453125, 0.033294677734375, 0.0274200439453125, -0.0283966064453125, 0.0011310577392578125, 0.02471923828125, 0.0634765625, -0.0340576171875, -0.02313232421875, 0.0066070556640625, -0.00859832763671875, 0.004974365234375, -0.01540374755859375, -0.0081787109375, 0.026947021484375, 0.036773681640625, -0.015625, -0.0227508544921875, 0.032012939453125, 0.04461669921875, 0.016326904296875, 0.0257415771484375, -0.038238525390625, -0.0374755859375, 0.00812530517578125, -0.056915283203125, 0.003520965576171875, 0.034423828125, 0.040924072265625, -0.016021728515625, -0.0352783203125, -0.0006160736083984375, 0.01430511474609375, 0.0004382133483886719, 0.0246429443359375, -0.00940704345703125, -0.0145111083984375, -0.01434326171875, 0.0175018310546875, 0.01229095458984375, 0.041534423828125, 0.073974609375, 0.06597900390625, 0.031982421875, -0.02728271484375, 0.00206756591796875, 0.0255584716796875, -0.03118896484375, 0.01308441162109375, -0.020233154296875, -0.00608062744140625, 0.0147247314453125, -0.020782470703125, 0.01363372802734375, 0.0169830322265625, 0.0161590576171875, -0.001567840576171875, 0.01457977294921875, 0.00807952880859375, -0.0027065277099609375, 0.059173583984375, 0.046142578125, 0.045684814453125, 0.0404052734375, -0.05731201171875, -0.04010009765625, 0.0211029052734375, -0.036285400390625, 0.0194244384765625, 0.05474853515625, 0.0032596588134765625, -0.0240325927734375, 0.0321044921875, -0.039398193359375, -0.01348876953125, 0.043487548828125, 0.0198974609375, -0.005039215087890625, 0.0081939697265625, 0.005153656005859375, -0.0198516845703125, -0.01358795166015625, 0.0162506103515625, 0.0233001708984375, 0.0482177734375, 0.0175933837890625, 0.01551055908203125, 0.03485107421875, -0.034942626953125, 0.040283203125, -0.06103515625, -0.03094482421875, 0.034881591796875, -0.02618408203125, -0.0099945068359375, 0.005001068115234375, -0.034942626953125, 0.0276336669921875, 0.0230560302734375, -0.0313720703125, 0.043304443359375, -0.016510009765625, -0.0014362335205078125, -0.044891357421875, 0.053497314453125, 0.0009303092956542969, -0.0200347900390625, -0.02447509765625, -0.01293182373046875, 0.045318603515625, 0.060821533203125, -0.020263671875, 0.031280517578125, 0.003955841064453125, -0.036865234375, 0.040496826171875, -0.0697021484375, 0.069091796875, 0.02593994140625, -0.0035152435302734375, -0.04046630859375, 0.0345458984375, 0.00222015380859375, -0.0085296630859375, 0.031951904296875, 0.034912109375, 0.040435791015625, -0.051300048828125, -0.00749969482421875, 0.052459716796875, 0.035858154296875, -0.012176513671875, 0.0161285400390625, 0.01253509521484375, -0.037750244140625, 0.0022487640380859375, 0.0015859603881835938, -0.0227203369140625, -0.04364013671875, -0.0223236083984375, -0.01442718505859375, -0.03704833984375, -0.06488037109375, -0.022735595703125, 0.0029888153076171875, 0.037872314453125, 0.01326751708984375, -0.061370849609375, 0.0372314453125, -0.01476287841796875, 0.0189666748046875, 0.00902557373046875, 0.0136871337890625, 0.007503509521484375, -0.022552490234375, -0.057464599609375, 0.0265655517578125, -0.0047607421875, -0.020477294921875, 0.0116424560546875, 0.0478515625, 0.02020263671875, -0.0537109375, 0.0002067089080810547, 0.06683349609375, 0.05889892578125, 0.0989990234375, 0.0679931640625, -0.04071044921875, -0.0211639404296875, 0.023651123046875, 0.0035648345947265625, 0.003147125244140625, 0.017913818359375, -0.032257080078125, -0.0136260986328125, -0.04058837890625, 0.03216552734375, 0.03497314453125, -0.035552978515625, -0.0777587890625, 0.0986328125, -0.0419921875, -0.03564453125, -0.0117034912109375, 0.0149688720703125, -0.0157928466796875, 0.0341796875, 0.0234832763671875, -0.03338623046875, 0.0010013580322265625, 0.0066986083984375, 0.00473785400390625, 0.0032482147216796875, 0.0006909370422363281, -0.0080413818359375, -0.06427001953125, 0.0097808837890625, 0.01236724853515625, 0.0006799697875976562, 0.0113983154296875, 0.0148773193359375, 0.005435943603515625, 0.07110595703125, -0.03411865234375, 0.00943756103515625, -0.027801513671875, 0.00038433074951171875, 0.007167816162109375, -0.0181427001953125, 0.0003943443298339844, -0.006168365478515625, 0.002178192138671875, 0.01540374755859375, -0.0033740997314453125, -0.0135040283203125, -0.0191650390625, -0.08624267578125, -0.06805419921875, -0.0116119384765625, 0.0203857421875, -0.052978515625, 0.032073974609375, 0.01019287109375, 0.0125579833984375, -0.027923583984375, -0.0160064697265625, -0.0146636962890625, -0.03765869140625, 0.0022296905517578125, -0.004886627197265625, 0.01166534423828125, -0.0233154296875, -0.02020263671875, 0.00791168212890625, 0.01922607421875, -0.0096435546875, 0.012908935546875, 0.00675201416015625, 0.09149169921875, 0.018463134765625, 0.0182037353515625, -0.0201263427734375, -0.0003859996795654297, 0.0198974609375, 0.026641845703125, -0.00347137451171875, 0.0013895034790039062, -0.0295257568359375, 0.01392364501953125, 0.0243377685546875, -0.005859375, -0.037567138671875, 0.07568359375, 0.044708251953125, 0.0179595947265625, 0.0057220458984375, -0.0160064697265625, -0.00637054443359375, 0.037445068359375, -0.04205322265625, -0.008544921875, -0.0234832763671875, -0.03167724609375, -0.004428863525390625, -0.00968170166015625, 0.015899658203125, -0.0295867919921875, 0.010894775390625, 0.0038890838623046875, 0.007160186767578125, 0.0254058837890625 ]
5d155a9e9879b220b1bf70b0ec6e0e76881c4f7f
Wordpress Stackexchange Q: delete attachment from front end logged in as admin and trying to code that deletes posts to delete an attachment. got, <?php if (current_user_can('edit_post', $attachment->ID)) echo "<a href='" . wp_nonce_url("/wp-admin/post.php?action=delete&amp;post=".$attachment->ID."", 'delete-post_' . $attachment->ID) . "'>Delete</a>" ?> but it just takes me to a page that says; Are you sure you want to do this? Please try again. and the please try again links back to the post... is it something to do with the delete-post_ best, dan. A: ended up using ajax in the end... html; <a class="remImage" name="<?php echo $attachment->ID; ?>" href="#"><?php _e('delete');?></a> <input type="hidden" id="att_remove" name="att_remove[]" value="<?php echo $attachment->ID; ?>" /> <input type="hidden" name="nonce" id="nonce" value="<?php echo wp_create_nonce( 'delete_attachment' ); ?>" /> jquery $('.remImage').live('click', function() { var attID = jQuery(this).attr('name'); jQuery.ajax({ type: 'post', url: '/wp-admin/admin-ajax.php', data: { action: 'delete_attachment', att_ID: jQuery(this).attr('name'), _ajax_nonce: jQuery('#nonce').val(), post_type: 'attachment' }, success: function() { console.log('#file-'+attID) $('#file-'+attID).fadeOut(); } }); in functions.php add_action( 'wp_ajax_delete_attachment', 'delete_attachment' ); function delete_attachment( $post ) { //echo $_POST['att_ID']; $msg = 'Attachment ID [' . $_POST['att_ID'] . '] has been deleted!'; if( wp_delete_attachment( $_POST['att_ID'], true )) { echo $msg; } die(); }
Q: delete attachment from front end logged in as admin and trying to code that deletes posts to delete an attachment. got, <?php if (current_user_can('edit_post', $attachment->ID)) echo "<a href='" . wp_nonce_url("/wp-admin/post.php?action=delete&amp;post=".$attachment->ID."", 'delete-post_' . $attachment->ID) . "'>Delete</a>" ?> but it just takes me to a page that says; Are you sure you want to do this? Please try again. and the please try again links back to the post... is it something to do with the delete-post_ best, dan. A: ended up using ajax in the end... html; <a class="remImage" name="<?php echo $attachment->ID; ?>" href="#"><?php _e('delete');?></a> <input type="hidden" id="att_remove" name="att_remove[]" value="<?php echo $attachment->ID; ?>" /> <input type="hidden" name="nonce" id="nonce" value="<?php echo wp_create_nonce( 'delete_attachment' ); ?>" /> jquery $('.remImage').live('click', function() { var attID = jQuery(this).attr('name'); jQuery.ajax({ type: 'post', url: '/wp-admin/admin-ajax.php', data: { action: 'delete_attachment', att_ID: jQuery(this).attr('name'), _ajax_nonce: jQuery('#nonce').val(), post_type: 'attachment' }, success: function() { console.log('#file-'+attID) $('#file-'+attID).fadeOut(); } }); in functions.php add_action( 'wp_ajax_delete_attachment', 'delete_attachment' ); function delete_attachment( $post ) { //echo $_POST['att_ID']; $msg = 'Attachment ID [' . $_POST['att_ID'] . '] has been deleted!'; if( wp_delete_attachment( $_POST['att_ID'], true )) { echo $msg; } die(); }
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:415358", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36361" }
[ 0.042999267578125, -0.0006232261657714844, -0.040679931640625, -0.0015001296997070312, 0.037200927734375, -0.045684814453125, 0.0531005859375, -0.023101806640625, 0.0164031982421875, 0.0189056396484375, 0.00746917724609375, -0.020416259765625, 0.01525115966796875, -0.033966064453125, -0.0209503173828125, -0.006313323974609375, 0.05224609375, -0.048919677734375, 0.03082275390625, 0.024993896484375, -0.0404052734375, 0.0626220703125, 0.045440673828125, -0.0379638671875, -0.00848388671875, 0.045684814453125, 0.083984375, -0.003787994384765625, -0.0225067138671875, -0.026947021484375, 0.0160369873046875, -0.0044708251953125, 0.02252197265625, 0.019378662109375, -0.039794921875, 0.0198822021484375, 0.003711700439453125, 0.008819580078125, -0.0016536712646484375, 0.02532958984375, 0.0222930908203125, -0.01141357421875, 0.01409912109375, 0.007171630859375, -0.020263671875, -0.04302978515625, 0.03204345703125, -0.036773681640625, 0.02734375, 0.022064208984375, 0.025238037109375, -0.0035953521728515625, 0.02789306640625, -0.00001913309097290039, -0.013946533203125, 0.0009598731994628906, -0.061187744140625, 0.009185791015625, 0.033721923828125, 0.05029296875, 0.006381988525390625, -0.03173828125, 0.01082611083984375, -0.046783447265625, -0.0026226043701171875, -0.01033782958984375, 0.0115814208984375, 0.01190948486328125, -0.07855224609375, -0.00823974609375, 0.061737060546875, -0.040863037109375, -0.002674102783203125, -0.03369140625, 0.01114654541015625, 0.010223388671875, 0.00910186767578125, 0.00951385498046875, -0.01277923583984375, -0.007129669189453125, 0.03656005859375, 0.01544189453125, -0.03143310546875, 0.035430908203125, -0.010467529296875, 0.040618896484375, -0.014068603515625, -0.05126953125, -0.0181732177734375, -0.0347900390625, -0.01239776611328125, -0.05035400390625, 0.0272064208984375, -0.01198577880859375, -0.05511474609375, -0.011810302734375, 0.0052490234375, 0.0165252685546875, 0.0245208740234375, -0.0009365081787109375, 0.04052734375, -0.053192138671875, -0.00238037109375, -0.0287322998046875, -0.006862640380859375, 0.0243988037109375, 0.03564453125, 0.0288848876953125, -0.0005574226379394531, -0.0022640228271484375, -0.033294677734375, 0.01104736328125, 0.0184326171875, 0.01108551025390625, -0.0119171142578125, -0.049957275390625, -0.04437255859375, 0.052825927734375, 0.0096893310546875, 0.0235137939453125, -0.029083251953125, -0.032684326171875, 0.006908416748046875, 0.0081939697265625, 0.0276641845703125, 0.01873779296875, -0.00887298583984375, -0.007633209228515625, 0.037322998046875, -0.0105133056640625, -0.050079345703125, 0.04608154296875, 0.0711669921875, -0.01198577880859375, 0.00962066650390625, -0.011962890625, 0.03594970703125, 0.0013599395751953125, 0.01293182373046875, -0.0036792755126953125, 0.0516357421875, 0.00583648681640625, -0.0034351348876953125, 0.0219573974609375, -0.0016269683837890625, 0.047271728515625, 0.00981903076171875, -0.005611419677734375, -0.0169830322265625, -0.045379638671875, 0.0231781005859375, -0.073974609375, 0.064697265625, -0.014404296875, 0.00795745849609375, -0.0271148681640625, 0.1142578125, -0.067626953125, -0.05352783203125, -0.07891845703125, 0.060699462890625, 0.0157470703125, -0.0004634857177734375, -0.023345947265625, -0.05615234375, -0.03564453125, -0.06524658203125, -0.0223388671875, 0.01526641845703125, 0.0132598876953125, 0.0004215240478515625, -0.06640625, -0.0130157470703125, -0.003063201904296875, -0.017333984375, 0.04833984375, -0.002292633056640625, -0.0034961700439453125, 0.0289154052734375, 0.01316070556640625, -0.0167999267578125, -0.0394287109375, 0.03741455078125, -0.02337646484375, -0.038543701171875, 0.0028171539306640625, 0.032806396484375, 0.0489501953125, 0.00603485107421875, 0.01174163818359375, 0.044097900390625, 0.00791168212890625, 0.0350341796875, 0.015625, -0.00522613525390625, -0.06768798828125, -0.04156494140625, -0.0250244140625, -0.031585693359375, 0.0189361572265625, 0.00110626220703125, 0.02099609375, 0.002384185791015625, -0.0054168701171875, -0.03594970703125, 0.005565643310546875, -0.007659912109375, 0.040924072265625, -0.07501220703125, -0.0102386474609375, 0.053863525390625, 0.0071868896484375, -0.0258636474609375, -0.053375244140625, 0.01277923583984375, 0.0272064208984375, -0.030792236328125, 0.01073455810546875, -0.0284881591796875, 0.05645751953125, -0.061737060546875, -0.04571533203125, -0.060455322265625, -0.00939178466796875, 0.032867431640625, 0.0313720703125, -0.0406494140625, -0.005092620849609375, 0.01360321044921875, 0.01861572265625, -0.02801513671875, 0.033599853515625, 0.03192138671875, 0.0011568069458007812, -0.046783447265625, -0.019805908203125, -0.02911376953125, -0.09405517578125, 0.00396728515625, 0.07568359375, 0.0298919677734375, 0.0306243896484375, -0.006015777587890625, -0.00914764404296875, 0.06524658203125, -0.0117645263671875, 0.0213165283203125, -0.0032558441162109375, -0.0136566162109375, 0.003620147705078125, -0.022125244140625, 0.023529052734375, 0.024169921875, -0.05682373046875, -0.0008730888366699219, 0.07916259765625, -0.01453399658203125, -0.01531219482421875, -0.00983428955078125, 0.03369140625, -0.007282257080078125, 0.0081329345703125, 0.01245880126953125, -0.0009260177612304688, 0.08349609375, -0.021728515625, 0.0377197265625, 0.006336212158203125, -0.0350341796875, 0.0364990234375, 0.00995635986328125, -0.0391845703125, -0.0115814208984375, 0.03839111328125, 0.05426025390625, 0.0260467529296875, -0.047698974609375, -0.01148223876953125, 0.03692626953125, 0.036407470703125, 0.0047149658203125, 0.03515625, 0.042449951171875, -0.00708770751953125, 0.0142059326171875, 0.0071868896484375, 0.0233612060546875, -0.018035888671875, 0.01042938232421875, 0.035369873046875, 0.04290771484375, 0.01468658447265625, -0.010162353515625, 0.018798828125, 0.043701171875, -0.00865936279296875, 0.01131439208984375, -0.0247802734375, 0.041046142578125, -0.0222930908203125, 0.053192138671875, 0.0721435546875, -0.0157928466796875, 0.05267333984375, -0.0021953582763671875, -0.000583648681640625, 0.033935546875, -0.0100860595703125, -0.00850677490234375, -0.03668212890625, 0.01239776611328125, 0.0003440380096435547, 0.0208740234375, 0.0494384765625, -0.0306243896484375, -0.05133056640625, -0.0189971923828125, 0.0162200927734375, -0.0899658203125, -0.09246826171875, 0.0038604736328125, -0.07989501953125, 0.031219482421875, 0.0024566650390625, -0.04315185546875, -0.0175933837890625, 0.04425048828125, 0.01424407958984375, -0.023895263671875, -0.0025634765625, 0.00638580322265625, 0.01444244384765625, -0.00701904296875, -0.01364898681640625, -0.00746917724609375, -0.01029205322265625, 0.007427215576171875, 0.01377105712890625, -0.004703521728515625, -0.043609619140625, 0.01534271240234375, 0.01849365234375, 0.01513671875, 0.0290985107421875, 0.01171112060546875, 0.0082855224609375, -0.02447509765625, 0.0035552978515625, 0.0254058837890625, 0.02130126953125, -0.032501220703125, -0.01219940185546875, -0.0057220458984375, -0.00785064697265625, 0.0172271728515625, 0.031341552734375, -0.00054168701171875, -0.00567626953125, 0.033050537109375, -0.037139892578125, 0.0014486312866210938, -0.036590576171875, -0.0207672119140625, 0.02642822265625, -0.01474761962890625, 0.02130126953125, 0.0283355712890625, 0.0197601318359375, 0.023223876953125, 0.00798797607421875, 0.01580810546875, -0.00507354736328125, 0.0027484893798828125, -0.02008056640625, 0.003208160400390625, -0.0244293212890625, 0.0300445556640625, -0.016754150390625, -0.0208282470703125, -0.0104217529296875, 0.0137481689453125, -0.0016698837280273438, -0.0185089111328125, -0.0161895751953125, -0.052734375, 0.06683349609375, 0.01551055908203125, -0.03155517578125, 0.01003265380859375, -0.025177001953125, 0.023223876953125, 0.047149658203125, -0.038543701171875, -0.019439697265625, -0.006771087646484375, 0.0194549560546875, -0.03717041015625, -0.059722900390625, -0.01019287109375, -0.003635406494140625, -0.08837890625, -0.00919342041015625, -0.021209716796875, -0.00815582275390625, -0.019775390625, 0.05999755859375, -0.034576416015625, -0.06463623046875, 0.0321044921875, -0.06292724609375, 0.030364990234375, -0.01568603515625, -0.016326904296875, -0.0237884521484375, -0.02618408203125, -0.057464599609375, -0.045074462890625, -0.007625579833984375, -0.015533447265625, 0.02545166015625, 0.000675201416015625, 0.003551483154296875, -0.0015392303466796875, 0.0469970703125, -0.0007305145263671875, -0.0280609130859375, -0.0016527175903320312, -0.0034427642822265625, -0.0458984375, -0.00666046142578125, -0.027496337890625, -0.0217437744140625, -0.0051422119140625, -0.02227783203125, -0.031524658203125, -0.0281524658203125, -0.033905029296875, -0.0304718017578125, -0.0010290145874023438, -0.03302001953125, -0.0704345703125, -0.0322265625, -0.0286407470703125, -0.0095672607421875, -0.033203125, 0.005809783935546875, -0.01560211181640625, -0.0731201171875, 0.028289794921875, -0.036407470703125, -0.00899505615234375, 0.009490966796875, 0.0672607421875, 0.0100555419921875, 0.004062652587890625, -0.0175628662109375, 0.0159759521484375, 0.027008056640625, -0.057037353515625, 0.04241943359375, 0.034454345703125, 0.0249481201171875, 0.0029850006103515625, -0.0160980224609375, 0.033203125, -0.035491943359375, 0.0361328125, -0.01143646240234375, -0.0214996337890625, 0.03167724609375, 0.0009918212890625, -0.0037860870361328125, -0.01708984375, -0.0321044921875, 0.023162841796875, 0.044097900390625, 0.0111541748046875, -0.03350830078125, 0.03125, -0.0022487640380859375, -0.03546142578125, 0.0155792236328125, -0.05572509765625, 0.04766845703125, 0.024688720703125, -0.0125732421875, 0.02685546875, 0.0192108154296875, 0.0009059906005859375, -0.0194549560546875, -0.0129852294921875, 0.005855560302734375, 0.0260772705078125, -0.01009368896484375, 0.0013532638549804688, -0.012237548828125, -0.007373809814453125, 0.0171966552734375, -0.006549835205078125, -0.0200958251953125, -0.04638671875, 0.00011986494064331055, 0.015655517578125, 0.0135040283203125, -0.01442718505859375, 0.00849151611328125, 0.038116455078125, 0.00970458984375, 0.0039825439453125, -0.0036773681640625, 0.018310546875, -0.01934814453125, 0.00879669189453125, 0.006565093994140625, 0.0076446533203125, 0.041046142578125, 0.06085205078125, 0.0011920928955078125, 0.061004638671875, -0.031341552734375, 0.042236328125, 0.0252532958984375, 0.0152587890625, 0.0270538330078125, -0.01091766357421875, -0.00865936279296875, -0.00717926025390625, -0.042022705078125, -0.04071044921875, -0.0127105712890625, 0.008819580078125, 0.08148193359375, -0.026885986328125, -0.01049041748046875, 0.01068878173828125, -0.024200439453125, -0.02734375, 0.0330810546875, 0.043914794921875, -0.040069580078125, 0.0011453628540039062, 0.050689697265625, 0.008544921875, 0.006496429443359375, -0.0033702850341796875, -0.0104217529296875, -0.011932373046875, 0.01153564453125, -0.0224456787109375, -0.00196075439453125, 0.0126190185546875, 0.01317596435546875, 0.01490020751953125, -0.0123748779296875, -0.0186767578125, 0.0180511474609375, 0.016204833984375, -0.018280029296875, -0.0138397216796875, 0.05413818359375, 0.0310821533203125, 0.020233154296875, -0.0013227462768554688, -0.03857421875, -0.0215301513671875, -0.025115966796875, 0.053863525390625, -0.0010251998901367188, 0.004199981689453125, -0.0251922607421875, -0.023773193359375, -0.0312042236328125, 0.015533447265625, -0.0025177001953125, -0.0298004150390625, -0.00015175342559814453, -0.039306640625, 0.02978515625, -0.038665771484375, 0.0031147003173828125, 0.009918212890625, 0.01003265380859375, -0.00894927978515625, 0.0662841796875, 0.01224517822265625, 0.037689208984375, -0.0231475830078125, 0.0095367431640625, 0.01541900634765625, 0.02557373046875, -0.02215576171875, -0.01788330078125, 0.004245758056640625, -0.0280609130859375, 0.01959228515625, 0.009796142578125, -0.0043792724609375, -0.037109375, 0.008819580078125, -0.002788543701171875, -0.005039215087890625, 0.0004887580871582031, -0.01605224609375, -0.027496337890625, 0.031494140625, 0.014678955078125, 0.0404052734375, -0.0229644775390625, -0.046112060546875, -0.025726318359375, 0.0137481689453125, 0.0093994140625, -0.00998687744140625, -0.0303192138671875, -0.034820556640625, 0.0577392578125, 0.030426025390625, 0.0030727386474609375, 0.09088134765625, -0.02178955078125, 0.03912353515625, 0.0343017578125, -0.004993438720703125, 0.035797119140625, 0.0152130126953125, -0.0272064208984375, -0.0102691650390625, 0.060211181640625, 0.0130157470703125, -0.0269775390625, 0.0167236328125, -0.0258026123046875, 0.017547607421875, 0.033843994140625, 0.0640869140625, -0.056396484375, 0.016632080078125, 0.01812744140625, 0.007419586181640625, 0.048980712890625, -0.017913818359375, 0.037384033203125, 0.00890350341796875, 0.0225830078125, 0.00463104248046875, -0.03240966796875, -0.0172271728515625, -0.031005859375, -0.00498199462890625, -0.0224456787109375, -0.014312744140625, -0.005886077880859375, -0.032989501953125, 0.0006165504455566406, 0.0174102783203125, -0.00930023193359375, -0.0460205078125, -0.0024929046630859375, 0.02850341796875, -0.0167694091796875, -0.07415771484375, 0.029876708984375, 0.005344390869140625, -0.004947662353515625, 0.0029277801513671875, -0.00264739990234375, 0.01512908935546875, 0.03741455078125, -0.01739501953125, 0.0008091926574707031, 0.0311431884765625, -0.0184783935546875, -0.02984619140625, -0.034393310546875, 0.003551483154296875, 0.0197906494140625, -0.0682373046875, 0.026458740234375, -0.0253753662109375, -0.007904052734375, -0.00708770751953125, 0.0178985595703125, 0.038482666015625, -0.0265655517578125, -0.01158905029296875, 0.0731201171875, 0.06353759765625, -0.06207275390625, 0.01247406005859375, -0.0153961181640625, -0.06494140625, -0.034881591796875, 0.00481414794921875, -0.03265380859375, 0.01538848876953125, 0.0089263916015625, -0.0821533203125, 0.0870361328125, -0.004486083984375, 0.038726806640625, -0.012908935546875, 0.0257110595703125, -0.0118408203125, -0.002857208251953125, -0.03814697265625, 0.0279541015625, -0.0185546875, 0.01873779296875, -0.033294677734375, 0.022125244140625, 0.006381988525390625, -0.018310546875, 0.057098388671875, 0.0166778564453125, 0.01099395751953125, -0.0134124755859375, 0.0443115234375, 0.01568603515625, -0.01309967041015625, 0.016265869140625, 0.025054931640625, -0.01157379150390625, 0.00738525390625, -0.0169830322265625, 0.00524139404296875, -0.01447296142578125, 0.01001739501953125, 0.07110595703125, 0.015472412109375, 0.0113372802734375, 0.0160980224609375, 0.042449951171875, -0.0732421875, 0.019256591796875, 0.05426025390625, -0.038330078125, -0.0247039794921875, 0.0254058837890625, 0.0330810546875, -0.041656494140625, -0.032745361328125, -0.0273590087890625, 0.04046630859375, 0.031890869140625, -0.01171112060546875, 0.029693603515625, 0.004947662353515625, 0.017822265625, -0.002155303955078125, -0.00676727294921875, 0.01134490966796875, 0.0104217529296875, 0.0171051025390625, 0.004486083984375, 0.02154541015625, -0.049591064453125, -0.035675048828125, 0.070556640625, 0.05633544921875, -0.02679443359375, -0.027740478515625, 0.005420684814453125, 0.02655029296875, 0.016357421875, -0.002811431884765625, 0.046875, -0.030792236328125, 0.00856781005859375, -0.017730712890625, 0.0063934326171875, 0.039154052734375, 0.0205841064453125, 0.010986328125, 0.01558685302734375, -0.053680419921875, 0.004772186279296875, -0.05615234375, 0.0006351470947265625, 0.0289764404296875, 0.0221710205078125, 0.01715087890625, 0.0092315673828125, 0.0308837890625, 0.0003552436828613281, 0.0010395050048828125, 0.01416015625, -0.0038890838623046875, -0.011932373046875, -0.032928466796875, -0.0413818359375, 0.0051422119140625, 0.034912109375, 0.0311737060546875, 0.06463623046875, 0.06878662109375, -0.0021839141845703125, -0.0166473388671875, 0.006923675537109375, -0.0308074951171875, -0.0313720703125, 0.0230255126953125, -0.0235137939453125, 0.01438140869140625, -0.0170135498046875, -0.01007080078125, -0.01971435546875, 0.01318359375, 0.00913238525390625, -0.05841064453125, 0.032684326171875, -0.014739990234375, -0.0189971923828125, 0.07763671875, -0.024993896484375, 0.048004150390625, -0.0347900390625, -0.0623779296875, 0.012298583984375, -0.062103271484375, -0.050872802734375, 0.008026123046875, 0.02227783203125, -0.04071044921875, 0.041412353515625, -0.004787445068359375, -0.02850341796875, 0.025634765625, -0.0026397705078125, 0.0072174072265625, 0.046478271484375, 0.0189971923828125, 0.0032672882080078125, -0.00852203369140625, 0.0019741058349609375, 0.01800537109375, 0.01157379150390625, 0.0112457275390625, 0.0030536651611328125, 0.004520416259765625, 0.01076507568359375, -0.01165008544921875, 0.05810546875, -0.0413818359375, -0.0173187255859375, 0.0418701171875, 0.0040130615234375, -0.00830841064453125, -0.01422119140625, -0.02703857421875, 0.06121826171875, -0.016021728515625, -0.0202178955078125, 0.0274658203125, -0.0208282470703125, -0.0017576217651367188, 0.0171661376953125, 0.034942626953125, -0.00909423828125, -0.0282745361328125, -0.0192718505859375, -0.00826263427734375, 0.0299530029296875, 0.0236663818359375, -0.002777099609375, 0.0226593017578125, 0.00848388671875, 0.00336456298828125, 0.03326416015625, -0.004840850830078125, 0.03741455078125, 0.0237274169921875, -0.0190887451171875, -0.0195770263671875, -0.01146697998046875, -0.0154876708984375, -0.022552490234375, 0.01261138916015625, 0.008026123046875, 0.00609588623046875, -0.0055694580078125, -0.037933349609375, -0.01194000244140625, 0.0219573974609375, 0.0010194778442382812, 0.015838623046875, -0.052032470703125, 0.00518035888671875, -0.005916595458984375, 0.0215301513671875, -0.00522613525390625, -0.044677734375, -0.00574493408203125, 0.01399993896484375, -0.01947021484375, 0.005878448486328125, -0.0254669189453125, -0.0023975372314453125, 0.046417236328125, 0.017333984375, -0.07281494140625, 0.009521484375, 0.011474609375, 0.0377197265625, -0.0211029052734375, 0.01800537109375, -0.058807373046875, -0.03851318359375, -0.01934814453125, -0.06390380859375, -0.08221435546875, 0.08551025390625, -0.05511474609375, 0.033294677734375, 0.03924560546875, -0.03515625, -0.006275177001953125, -0.0038089752197265625, 0.019500732421875, 0.0521240234375, 0.032806396484375, -0.04144287109375, -0.01407623291015625, 0.0178680419921875, 0.007747650146484375, -0.030609130859375, -0.0032482147216796875, -0.029541015625, 0.005321502685546875, 0.00402069091796875, 0.0313720703125, 0.06689453125, -0.012481689453125, -0.0731201171875, 0.059326171875, -0.01885986328125, -0.035308837890625, -0.033355712890625, 0.01348114013671875, 0.020263671875, -0.0168914794921875, -0.0112152099609375, -0.033050537109375, -0.044891357421875, -0.0004291534423828125, 0.014739990234375, -0.005382537841796875, 0.01458740234375, 0.033721923828125, -0.004688262939453125, 0.02020263671875, 0.01088714599609375, -0.0295867919921875, -0.006687164306640625, 0.01959228515625, 0.0390625, 0.06768798828125, -0.002716064453125, 0.017608642578125, -0.0018310546875, -0.05084228515625, 0.0015697479248046875, 0.00799560546875, -0.043701171875, 0.0128021240234375, 0.0670166015625, 0.05474853515625, 0.0172119140625, -0.031707763671875, 0.0002543926239013672, -0.035369873046875, -0.050445556640625, -0.0310821533203125, 0.03228759765625, -0.07672119140625, -0.019287109375, 0.0113677978515625, -0.017120361328125, -0.054931640625, 0.0292510986328125, -0.044921875, 0.0012035369873046875, 0.0343017578125, 0.0137176513671875, -0.032135009765625, -0.00576019287109375, 0.07745361328125, -0.0400390625, -0.0030975341796875, 0.01275634765625, 0.01503753662109375, 0.04180908203125, 0.001712799072265625, 0.0020656585693359375, -0.004817962646484375, 0.00012826919555664062, -0.001117706298828125, 0.0194244384765625, 0.0098724365234375, 0.002685546875, -0.01194000244140625, 0.00018262863159179688, 0.0215606689453125, -0.00909423828125, 0.0272674560546875, -0.004360198974609375, 0.0323486328125, 0.00914764404296875, 0.0070037841796875, -0.0234222412109375, -0.0146942138671875, -0.01009368896484375, 0.02264404296875, 0.0237884521484375, -0.0064544677734375, 0.080078125, -0.05224609375, 0.0016050338745117188, 0.0254058837890625, 0.00577545166015625, -0.02838134765625, 0.029815673828125, 0.057647705078125, 0.0216064453125, 0.0198822021484375 ]
d3ad631a9a935126b719f219b539e324f39d1292
Wordpress Stackexchange Q: WP 3.3 Tooltips API? Does anyone have a tutorial on how to implement the new Tooltips API into a theme or plugin? I'm eager to tap into this to help first time users of my theme and plugins. From mashable'e excellent intro to 3.3... * *New Tooltips This may seem a bit annoying to more experienced users, but it can prove quite useful for most. Tooltip popup bubbles now display to help guide users through the new features found in WordPress. You’ll see one of these immediately upon upgrading, which points to the new admin bar. > Developers are able to use these popups to add their own feature tours. This will prove useful for theme and plugin authors who need an easy way to walk their customers through their WordPress products A: I can't come up with good quote, but as far as I understand from chatter - pointers are not considered public (available for use outside core) for version 3.3 So essentially there is no API to use yet.
Q: WP 3.3 Tooltips API? Does anyone have a tutorial on how to implement the new Tooltips API into a theme or plugin? I'm eager to tap into this to help first time users of my theme and plugins. From mashable'e excellent intro to 3.3... * *New Tooltips This may seem a bit annoying to more experienced users, but it can prove quite useful for most. Tooltip popup bubbles now display to help guide users through the new features found in WordPress. You’ll see one of these immediately upon upgrading, which points to the new admin bar. > Developers are able to use these popups to add their own feature tours. This will prove useful for theme and plugin authors who need an easy way to walk their customers through their WordPress products A: I can't come up with good quote, but as far as I understand from chatter - pointers are not considered public (available for use outside core) for version 3.3 So essentially there is no API to use yet. A: As @Rarst points out, the feature pointers are not intended to be used by the public as of yet. If you want a solid quote, here's one from UX lead Jane Wells: I wanted them to be core only for 3.3, make plugin-ready in 3.4 after we’ve worked out any kinks and people have gotten over the thrill. That said, it's perfectly acceptable for you to use them now if you really have the need. I recommend it in cases where your theme/plugin is used only on private sites (i.e. not hosted in the official repository, or only used on 1 or 2 client sites). Or if you're fairly sure no one will use it with another plugin that implements the pointers (i.e. Yoast's SEO plugin). The reasoning behind this is simple: If too many plugins use pointers, you overload the end user with popups. There isn't logic in the system yet to handle multiple pointers. If you want a quick and simple demonstration of how to add a feature pointer with a plugin, I posted code from my presentation at the WordPress Portland Meetup group on how to do exactly that: http://mindsharestrategy.com/2011/wordpress-portland/
wordpress
{ "language": "en", "length": 366, "provenance": "stackexchange_00019.jsonl.gz:415365", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36380" }
[ 0.04876708984375, -0.031707763671875, 0.038726806640625, 0.00830078125, -0.014129638671875, -0.012054443359375, 0.072021484375, -0.032318115234375, 0.0428466796875, 0.038238525390625, -0.079833984375, 0.00345611572265625, 0.00768280029296875, 0.023529052734375, -0.0574951171875, -0.03070068359375, 0.060791015625, -0.03045654296875, 0.0225677490234375, -0.00001537799835205078, -0.01158905029296875, 0.036651611328125, 0.01050567626953125, 0.10272216796875, 0.023529052734375, -0.05108642578125, 0.0679931640625, -0.031097412109375, 0.04364013671875, -0.0103607177734375, 0.03326416015625, -0.0253753662109375, -0.01084136962890625, 0.087890625, -0.05975341796875, 0.02838134765625, 0.01006317138671875, 0.0372314453125, 0.04302978515625, 0.00032448768615722656, 0.0279998779296875, -0.021881103515625, -0.050140380859375, 0.007022857666015625, -0.0523681640625, 0.005748748779296875, -0.00890350341796875, 0.00739288330078125, 0.022186279296875, 0.0029754638671875, 0.011383056640625, -0.026123046875, 0.02001953125, -0.0157928466796875, -0.020294189453125, -0.032989501953125, 0.0076446533203125, 0.0255889892578125, 0.040069580078125, 0.006565093994140625, -0.023773193359375, 0.0144805908203125, -0.00003707408905029297, -0.042755126953125, -0.015899658203125, 0.0011997222900390625, 0.0277862548828125, 0.022125244140625, 0.0037841796875, -0.016204833984375, -0.02288818359375, 0.009368896484375, -0.0023899078369140625, -0.01039886474609375, 0.00478363037109375, -0.0009593963623046875, 0.027557373046875, 0.007480621337890625, -0.00594329833984375, 0.0222015380859375, -0.0130157470703125, -0.005527496337890625, 0.004878997802734375, -0.0223541259765625, 0.00020229816436767578, 0.009674072265625, -0.01399993896484375, -0.007526397705078125, -0.0042572021484375, 0.0010471343994140625, -0.0180816650390625, -0.028594970703125, -0.019073486328125, 0.050140380859375, 0.01337432861328125, -0.0106964111328125, 0.0162353515625, 0.0273284912109375, -0.01079559326171875, 0.018402099609375, -0.007373809814453125, -0.038665771484375, 0.039703369140625, -0.036529541015625, 0.006450653076171875, 0.032135009765625, -0.006237030029296875, -0.06951904296875, 0.008270263671875, 0.0194854736328125, -0.0013189315795898438, 0.0087890625, 0.0235137939453125, 0.00803375244140625, -0.01995849609375, -0.00890350341796875, -0.010223388671875, 0.00489044189453125, -0.01401519775390625, 0.0115966796875, -0.0310211181640625, 0.002735137939453125, -0.00858306884765625, 0.01433563232421875, 0.028289794921875, 0.01265716552734375, -0.0005674362182617188, -0.0128021240234375, -0.0221405029296875, -0.021270751953125, 0.01230621337890625, 0.037078857421875, 0.006740570068359375, 0.0174560546875, -0.0279388427734375, -0.00121307373046875, 0.030548095703125, -0.006671905517578125, 0.0169525146484375, -0.003955841064453125, 0.0263671875, -0.00994873046875, 0.0021648406982421875, 0.0081787109375, 0.026275634765625, -0.01556396484375, -0.0029850006103515625, 0.04156494140625, 0.0369873046875, -0.0037384033203125, 0.033935546875, -0.01263427734375, 0.0218048095703125, -0.012664794921875, 0.0206146240234375, -0.026275634765625, -0.007320404052734375, -0.0205078125, 0.01041412353515625, -0.005779266357421875, -0.01079559326171875, -0.0166778564453125, -0.0135955810546875, -0.015869140625, -0.0247955322265625, 0.0181732177734375, 0.0254974365234375, 0.015625, 0.017974853515625, 0.049468994140625, -0.003932952880859375, -0.05865478515625, -0.0367431640625, -0.00380706787109375, -0.02154541015625, 0.009979248046875, 0.02685546875, 0.0345458984375, 0.039154052734375, 0.0081329345703125, -0.0046844482421875, -0.02557373046875, 0.1309814453125, -0.0430908203125, -0.038787841796875, 0.0177764892578125, 0.0211639404296875, 0.0440673828125, -0.0233612060546875, 0.01114654541015625, 0.038848876953125, 0.0435791015625, 0.0158843994140625, -0.0064849853515625, -0.019622802734375, -0.0535888671875, -0.0284271240234375, -0.01236724853515625, -0.0259246826171875, 0.022918701171875, -0.050994873046875, 0.035400390625, -0.0340576171875, 0.059051513671875, -0.00833892822265625, 0.024627685546875, -0.016693115234375, 0.02899169921875, 0.01227569580078125, -0.0009002685546875, 0.01251220703125, -0.0238800048828125, -0.0211181640625, 0.043426513671875, -0.027435302734375, 0.00858306884765625, -0.02899169921875, 0.0341796875, -0.004180908203125, 0.0265045166015625, 0.038116455078125, -0.0310821533203125, 0.037384033203125, 0.0084228515625, -0.0160369873046875, -0.0262908935546875, 0.00832366943359375, -0.0093231201171875, -0.0003218650817871094, 0.01654052734375, 0.030487060546875, -0.01580810546875, 0.02685546875, 0.06353759765625, 0.01220703125, -0.0225677490234375, 0.011688232421875, -0.07965087890625, 0.03302001953125, 0.048126220703125, 0.039031982421875, 0.0251007080078125, -0.009552001953125, -0.032318115234375, 0.0323486328125, -0.027984619140625, 0.0175323486328125, -0.045440673828125, 0.01235198974609375, 0.031402587890625, -0.03564453125, -0.027069091796875, 0.019775390625, -0.053955078125, -0.007671356201171875, 0.03814697265625, 0.01479339599609375, -0.0056915283203125, -0.032745361328125, 0.012420654296875, 0.02459716796875, -0.03814697265625, -0.05828857421875, -0.003261566162109375, 0.049530029296875, -0.01401519775390625, 0.04864501953125, 0.0293426513671875, -0.01357269287109375, -0.0176849365234375, 0.0165252685546875, 0.00438690185546875, 0.00846099853515625, 0.0017385482788085938, 0.0310211181640625, 0.0222015380859375, -0.023345947265625, -0.0183258056640625, 0.059356689453125, 0.01328277587890625, -0.01739501953125, 0.023040771484375, -0.002559661865234375, -0.01329803466796875, -0.0012340545654296875, -0.0160675048828125, -0.006549835205078125, -0.0237884521484375, 0.0069580078125, -0.0031147003173828125, 0.0238800048828125, 0.030120849609375, -0.002513885498046875, 0.0206756591796875, 0.024322509765625, -0.00431060791015625, -0.023345947265625, -0.03717041015625, 0.037628173828125, -0.040435791015625, -0.01322174072265625, 0.055206298828125, 0.0004630088806152344, -0.002227783203125, 0.0010700225830078125, -0.00675201416015625, -0.0206298828125, 0.03179931640625, 0.01351165771484375, -0.00994873046875, 0.007755279541015625, 0.0736083984375, 0.0151824951171875, 0.0267791748046875, -0.0245208740234375, -0.057586669921875, -0.0167999267578125, 0.0018777847290039062, -0.09442138671875, -0.0687255859375, 0.031097412109375, -0.082275390625, -0.0282135009765625, -0.027374267578125, -0.07000732421875, 0.01029205322265625, 0.01004791259765625, -0.014984130859375, 0.01308441162109375, -0.016082763671875, 0.001735687255859375, -0.01513671875, -0.040771484375, -0.0271759033203125, 0.0091094970703125, 0.00818634033203125, 0.002208709716796875, 0.03265380859375, -0.016937255859375, -0.048309326171875, -0.039031982421875, 0.0204315185546875, 0.002605438232421875, -0.036376953125, 0.05780029296875, 0.0164642333984375, -0.003871917724609375, 0.0251312255859375, -0.03033447265625, 0.0457763671875, -0.06915283203125, -0.0540771484375, -0.00824737548828125, 0.00445556640625, 0.0074310302734375, -0.020965576171875, -0.006511688232421875, -0.001438140869140625, -0.01062774658203125, -0.04949951171875, 0.005558013916015625, 0.048248291015625, -0.00775909423828125, -0.05975341796875, -0.005645751953125, -0.045196533203125, 0.0018463134765625, -0.0269317626953125, 0.01131439208984375, 0.00428009033203125, -0.005702972412109375, -0.0109100341796875, 0.025390625, -0.0090179443359375, 0.005435943603515625, -0.0220184326171875, -0.0232696533203125, -0.020965576171875, 0.0562744140625, 0.0006008148193359375, 0.01528167724609375, -0.038116455078125, 0.06463623046875, -0.0306549072265625, 0.0092010498046875, 0.0225677490234375, -0.0172576904296875, 0.00983428955078125, -0.0045318603515625, -0.007709503173828125, 0.01355743408203125, 0.040802001953125, -0.0767822265625, 0.006519317626953125, -0.01090240478515625, -0.01323699951171875, -0.0218963623046875, 0.0196685791015625, -0.08599853515625, 0.0004055500030517578, -0.053131103515625, 0.01552581787109375, 0.0176849365234375, -0.0283355712890625, -0.0504150390625, 0.09954833984375, -0.041839599609375, -0.0019292831420898438, 0.0285797119140625, -0.04937744140625, -0.004810333251953125, 0.0167999267578125, -0.0097503662109375, -0.0240936279296875, -0.00960540771484375, -0.03399658203125, -0.0670166015625, -0.012908935546875, -0.0222320556640625, 0.045684814453125, 0.0209503173828125, -0.0631103515625, -0.011627197265625, 0.037017822265625, 0.02044677734375, 0.0294952392578125, 0.0026683807373046875, -0.0030689239501953125, -0.026336669921875, 0.0149078369140625, 0.0265350341796875, -0.01039886474609375, -0.0142974853515625, -0.052093505859375, -0.09429931640625, -0.037200927734375, -0.005035400390625, 0.038848876953125, 0.016448974609375, -0.02630615234375, -0.01428985595703125, -0.049041748046875, 0.0192108154296875, 0.010284423828125, 0.018524169921875, 0.003551483154296875, -0.05511474609375, 0.0003376007080078125, 0.01187896728515625, -0.0121917724609375, 0.0228118896484375, 0.01837158203125, 0.029144287109375, 0.00543975830078125, -0.01215362548828125, -0.0208282470703125, -0.0020809173583984375, 0.04730224609375, 0.0072479248046875, -0.00627899169921875, -0.01195526123046875, -0.04852294921875, 0.04693603515625, 0.016448974609375, 0.0382080078125, -0.041229248046875, 0.0124053955078125, -0.0035991668701171875, -0.01244354248046875, 0.0213470458984375, 0.01702880859375, 0.0121917724609375, -0.00923919677734375, -0.0174713134765625, -0.026641845703125, -0.053619384765625, 0.04583740234375, 0.0010786056518554688, 0.0784912109375, -0.04315185546875, -0.02398681640625, 0.0198974609375, 0.042449951171875, 0.0040130615234375, -0.0007114410400390625, 0.0028228759765625, -0.00024306774139404297, -0.015960693359375, -0.01094818115234375, 0.01009368896484375, 0.05169677734375, -0.0213775634765625, 0.03216552734375, -0.0118865966796875, -0.037384033203125, -0.04559326171875, -0.0176849365234375, 0.1373291015625, 0.004085540771484375, -0.04229736328125, -0.01708984375, -0.037109375, 0.053558349609375, 0.0148773193359375, -0.017822265625, 0.0537109375, 0.0518798828125, -0.005046844482421875, 0.0005884170532226562, -0.03802490234375, 0.0275115966796875, -0.04290771484375, -0.0082244873046875, -0.00441741943359375, -0.0182647705078125, -0.0266876220703125, 0.0430908203125, -0.029693603515625, 0.00749969482421875, 0.015869140625, -0.0057525634765625, -0.0281829833984375, 0.019805908203125, 0.00628662109375, 0.026824951171875, 0.0166778564453125, -0.0149383544921875, 0.03790283203125, -0.02032470703125, -0.00714874267578125, 0.0173492431640625, 0.0198822021484375, 0.00061798095703125, -0.015350341796875, 0.01348876953125, -0.026336669921875, -0.022308349609375, -0.01039886474609375, 0.010040283203125, 0.002227783203125, 0.005115509033203125, 0.069580078125, 0.037445068359375, 0.042694091796875, -0.0088043212890625, -0.00482940673828125, -0.05316162109375, -0.0259246826171875, 0.01385498046875, -0.0289459228515625, -0.026275634765625, -0.03363037109375, -0.0379638671875, -0.02069091796875, -0.00417327880859375, -0.0241546630859375, -0.0217132568359375, -0.00643157958984375, -0.0250701904296875, 0.0253143310546875, -0.02972412109375, -0.005542755126953125, -0.0173492431640625, 0.0238189697265625, -0.06365966796875, 0.0202789306640625, 0.046661376953125, 0.034912109375, -0.044708251953125, -0.01235198974609375, -0.048980712890625, -0.022979736328125, -0.04522705078125, -0.06866455078125, -0.0482177734375, 0.0016069412231445312, 0.007038116455078125, -0.0012445449829101562, -0.00849151611328125, -0.024566650390625, -0.033905029296875, 0.03289794921875, 0.0276641845703125, 0.01355743408203125, -0.002330780029296875, 0.0289306640625, -0.0204315185546875, 0.0064239501953125, 0.00373077392578125, 0.008270263671875, 0.004764556884765625, -0.01076507568359375, 0.0272674560546875, -0.039794921875, -0.03826904296875, 0.002483367919921875, -0.07012939453125, 0.01361846923828125, 0.056976318359375, -0.025543212890625, 0.0333251953125, -0.0274505615234375, 0.011444091796875, -0.00539398193359375, 0.031494140625, -0.030059814453125, -0.0063934326171875, 0.05792236328125, 0.00751495361328125, 0.0260162353515625, -0.01166534423828125, 0.01247406005859375, -0.01558685302734375, 0.0174560546875, 0.00238800048828125, -0.0174102783203125, -0.045806884765625, 0.041748046875, 0.056365966796875, 0.0035648345947265625, 0.037322998046875, 0.00437164306640625, 0.004573822021484375, -0.00676727294921875, -0.0250244140625, 0.061737060546875, 0.011932373046875, 0.0787353515625, 0.003147125244140625, -0.038116455078125, 0.039306640625, -0.07122802734375, 0.0183563232421875, -0.0011777877807617188, 0.04718017578125, -0.017242431640625, 0.0128173828125, 0.007244110107421875, -0.039154052734375, 0.03497314453125, 0.00440216064453125, -0.01235198974609375, -0.062744140625, 0.04486083984375, -0.008209228515625, 0.01267242431640625, 0.0192108154296875, -0.00902557373046875, -0.005161285400390625, 0.015625, 0.0285491943359375, 0.0033855438232421875, -0.032073974609375, -0.00719451904296875, 0.0119781494140625, 0.007808685302734375, 0.0013399124145507812, -0.0024261474609375, 0.041412353515625, -0.043731689453125, -0.042083740234375, 0.043060302734375, -0.01313018798828125, -0.031768798828125, 0.04571533203125, -0.01378631591796875, 0.0307464599609375, 0.054168701171875, -0.0172271728515625, 0.0294647216796875, 0.0072021484375, 0.040130615234375, 0.0236358642578125, -0.012847900390625, 0.0338134765625, 0.0308837890625, -0.059112548828125, 0.0269317626953125, -0.0192718505859375, -0.0021152496337890625, 0.0090484619140625, 0.070556640625, 0.067626953125, 0.0162353515625, -0.05316162109375, 0.046356201171875, -0.0184783935546875, -0.032928466796875, -0.00872039794921875, 0.0027217864990234375, -0.051666259765625, -0.02618408203125, -0.0184173583984375, -0.0259857177734375, 0.027801513671875, -0.01483917236328125, -0.036865234375, 0.11541748046875, 0.0240631103515625, 0.004497528076171875, 0.0003044605255126953, 0.043060302734375, -0.0487060546875, 0.0216064453125, -0.00775146484375, 0.0177001953125, -0.05389404296875, 0.02313232421875, -0.060150146484375, -0.01300811767578125, -0.03173828125, 0.0648193359375, 0.016387939453125, 0.0016584396362304688, -0.003879547119140625, -0.01132965087890625, 0.00461578369140625, -0.0192108154296875, -0.0298004150390625, 0.0298614501953125, 0.01056671142578125, -0.0255279541015625, 0.0273590087890625, -0.0115966796875, 0.035919189453125, -0.02691650390625, 0.0179595947265625, 0.02032470703125, 0.0007991790771484375, -0.01335906982421875, 0.0126953125, -0.0217742919921875, 0.0190582275390625, -0.00858306884765625, -0.032135009765625, -0.002544403076171875, -0.01605224609375, -0.003078460693359375, -0.04010009765625, 0.00799560546875, -0.00569915771484375, -0.010589599609375, 0.011627197265625, -0.005382537841796875, 0.0275726318359375, -0.0071868896484375, 0.0181732177734375, -0.0114898681640625, 0.01233673095703125, 0.0091705322265625, 0.06463623046875, -0.04412841796875, 0.054290771484375, 0.0225372314453125, 0.0264739990234375, -0.047088623046875, -0.033233642578125, 0.0013599395751953125, 0.055633544921875, -0.0231475830078125, -0.0673828125, -0.0079193115234375, -0.0063018798828125, 0.0478515625, 0.026824951171875, 0.0643310546875, 0.0012178421020507812, 0.0225677490234375, 0.0160980224609375, -0.0029926300048828125, 0.001224517822265625, 0.01418304443359375, 0.016876220703125, 0.017364501953125, -0.037322998046875, -0.0051727294921875, 0.001941680908203125, -0.0250244140625, 0.003444671630859375, 0.0017442703247070312, -0.0050811767578125, 0.016265869140625, 0.00951385498046875, 0.01428985595703125, 0.021697998046875, -0.00954437255859375, 0.04583740234375, -0.050537109375, 0.0208282470703125, -0.00783538818359375, 0.03765869140625, 0.0036487579345703125, 0.010711669921875, 0.0233154296875, 0.041046142578125, 0.0173492431640625, -0.0479736328125, 0.00431060791015625, 0.06524658203125, -0.0238037109375, -0.0239105224609375, -0.0224609375, -0.0009899139404296875, 0.041168212890625, -0.00612640380859375, 0.0289459228515625, 0.025726318359375, 0.031768798828125, -0.060791015625, 0.05572509765625, -0.0248260498046875, -0.033477783203125, 0.030975341796875, -0.040557861328125, 0.07958984375, -0.038055419921875, -0.01593017578125, -0.00211334228515625, 0.004390716552734375, 0.0030765533447265625, -0.0177001953125, 0.01544952392578125, -0.0104217529296875, 0.033111572265625, -0.0198974609375, 0.00970458984375, 0.0200958251953125, -0.03948974609375, 0.001949310302734375, -0.040313720703125, 0.0009183883666992188, -0.033905029296875, -0.02227783203125, -0.007843017578125, 0.036041259765625, 0.0013513565063476562, -0.006320953369140625, 0.02520751953125, 0.0122222900390625, -0.00759124755859375, -0.0267333984375, 0.0082855224609375, -0.04754638671875, -0.026336669921875, -0.01800537109375, -0.00281524658203125, 0.0134735107421875, 0.0192718505859375, -0.06689453125, 0.03302001953125, 0.0153961181640625, 0.01171112060546875, 0.048919677734375, -0.0222625732421875, 0.0202789306640625, 0.0037860870361328125, 0.0250701904296875, -0.03448486328125, -0.046783447265625, -0.054595947265625, -0.01328277587890625, -0.00836944580078125, -0.0147552490234375, -0.005031585693359375, -0.0121612548828125, 0.066162109375, 0.0009655952453613281, -0.00911712646484375, 0.04345703125, -0.004199981689453125, 0.031951904296875, 0.005908966064453125, 0.0162811279296875, 0.03009033203125, -0.019989013671875, 0.0222930908203125, -0.003509521484375, 0.052642822265625, -0.018890380859375, 0.0007562637329101562, 0.026397705078125, -0.030975341796875, 0.00174713134765625, -0.060028076171875, -0.0242156982421875, 0.0291595458984375, 0.02667236328125, -0.0263214111328125, 0.0239715576171875, -0.0130462646484375, -0.0248565673828125, -0.00443267822265625, 0.0245361328125, -0.035308837890625, 0.01248931884765625, -0.09564208984375, 0.0038433074951171875, 0.0168914794921875, 0.0011920928955078125, -0.0662841796875, 0.00447845458984375, 0.004810333251953125, 0.06689453125, -0.03729248046875, 0.03802490234375, 0.0011272430419921875, 0.0195159912109375, -0.022430419921875, -0.0035858154296875, -0.0050201416015625, 0.0186920166015625, 0.01166534423828125, 0.022918701171875, 0.00592803955078125, -0.030609130859375, -0.0034465789794921875, 0.05853271484375, 0.0401611328125, 0.0914306640625, 0.00579833984375, -0.01262664794921875, -0.00033354759216308594, 0.007602691650390625, -0.025054931640625, -0.02178955078125, 0.032745361328125, -0.043487548828125, -0.03778076171875, -0.04656982421875, -0.007808685302734375, -0.012908935546875, -0.06976318359375, -0.111572265625, 0.028778076171875, -0.0295867919921875, -0.035552978515625, -0.021514892578125, -0.019073486328125, 0.0135650634765625, -0.0051116943359375, -0.0026569366455078125, -0.027679443359375, -0.054412841796875, 0.00888824462890625, 0.0174560546875, 0.05389404296875, 0.00751495361328125, 0.0206298828125, -0.020599365234375, 0.01033782958984375, -0.01788330078125, -0.004108428955078125, -0.01226806640625, -0.0087738037109375, -0.01007843017578125, 0.016387939453125, -0.052886962890625, -0.08465576171875, -0.0192413330078125, 0.035614013671875, -0.0224456787109375, -0.03448486328125, -0.0101470947265625, -0.0032787322998046875, 0.03955078125, 0.056732177734375, 0.0022125244140625, -0.04669189453125, 0.02789306640625, 0.0264892578125, -0.044158935546875, -0.0162811279296875, 0.018951416015625, -0.046051025390625, -0.020965576171875, -0.0311126708984375, 0.01355743408203125, -0.0199127197265625, 0.0269012451171875, 0.00173187255859375, -0.01036834716796875, 0.039215087890625, -0.0218658447265625, -0.024871826171875, -0.0638427734375, 0.061920166015625, -0.0386962890625, -0.040191650390625, -0.006679534912109375, 0.056488037109375, -0.024383544921875, -0.054931640625, 0.0369873046875, -0.0367431640625, -0.01163482666015625, 0.02410888671875, 0.009521484375, 0.028778076171875, -0.011932373046875, -0.06036376953125, 0.0085906982421875, 0.01666259765625, 0.00881195068359375, 0.03515625, -0.0242156982421875, 0.0011472702026367188, -0.0021209716796875, -0.021392822265625, 0.01904296875, 0.0286712646484375, -0.0179901123046875, 0.05377197265625, -0.02117919921875, -0.02886962890625, -0.0206298828125, -0.01107025146484375, 0.012603759765625, 0.0596923828125, 0.0221405029296875, -0.006561279296875, 0.0013217926025390625, 0.03125, 0.022216796875, -0.005970001220703125 ]
8894d32249fdee6f883ccc554f87e1a93d1651d1
Wordpress Stackexchange Q: 3.3: How do you hide the new dashboard welcome panel? I have tried various versions of this here: unset($wp_meta_boxes['dashboard']['normal']['high']['dashboard_wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['welcome_panel']); I have tried looking this up but as there is not much documentation (there is but there isn't ) on it yet it is kind of hard. I was wondering if someone could please help me out. I would really appreciate it. Thanks. :) A: @EAMann's solution hides the welcome panel from all users, but still allows the panel to be turned back on in the screen options. My solution, which should work in any installation (single or multisite), will remove it completely: add_action( 'load-index.php', 'remove_welcome_panel' ); function remove_welcome_panel() { remove_action('welcome_panel', 'wp_welcome_panel'); $user_id = get_current_user_id(); if (0 !== get_user_meta( $user_id, 'show_welcome_panel', true ) ) { update_user_meta( $user_id, 'show_welcome_panel', 0 ); } } This removes the welcome panel action, which removes the welcome panel from the dashboard altogether. It then sets the user preference to hide the welcome panel for good measure. FYI, the preference can be set to 0 (hide), 1 (show or single site creator) or 2 (multisite site owner).
Q: 3.3: How do you hide the new dashboard welcome panel? I have tried various versions of this here: unset($wp_meta_boxes['dashboard']['normal']['high']['dashboard_wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['wp_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_welcome_panel']); unset($wp_meta_boxes['dashboard']['normal']['core']['welcome_panel']); I have tried looking this up but as there is not much documentation (there is but there isn't ) on it yet it is kind of hard. I was wondering if someone could please help me out. I would really appreciate it. Thanks. :) A: @EAMann's solution hides the welcome panel from all users, but still allows the panel to be turned back on in the screen options. My solution, which should work in any installation (single or multisite), will remove it completely: add_action( 'load-index.php', 'remove_welcome_panel' ); function remove_welcome_panel() { remove_action('welcome_panel', 'wp_welcome_panel'); $user_id = get_current_user_id(); if (0 !== get_user_meta( $user_id, 'show_welcome_panel', true ) ) { update_user_meta( $user_id, 'show_welcome_panel', 0 ); } } This removes the welcome panel action, which removes the welcome panel from the dashboard altogether. It then sets the user preference to hide the welcome panel for good measure. FYI, the preference can be set to 0 (hide), 1 (show or single site creator) or 2 (multisite site owner). A: If you're using multisite, there's a plugin you can network activate to disable the welcome panel on all new sites. It's aptly named "Hide Welcome Panel for Multisite." If you just want to do this for a typical (single site) installation, it's also pretty easy. The welcome screen is shown for a user if a specific meta key is set. So, add the following to a plugin and activate it ... add_action( 'load-index.php', 'hide_welcome_panel' ); function hide_welcome_panel() { $user_id = get_current_user_id(); if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) ) update_user_meta( $user_id, 'show_welcome_panel', 0 ); } This code is adapted directly from the above-mentioned plugin, but I haven't had a chance to personally test it ...
wordpress
{ "language": "en", "length": 303, "provenance": "stackexchange_00019.jsonl.gz:415370", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36402" }
[ 0.0450439453125, 0.004486083984375, -0.031585693359375, -0.012542724609375, 0.050323486328125, -0.0546875, 0.059234619140625, -0.0164947509765625, 0.00917816162109375, 0.041046142578125, 0.005466461181640625, -0.029510498046875, -0.01294708251953125, -0.017669677734375, -0.05645751953125, -0.03875732421875, 0.020965576171875, -0.0236968994140625, 0.00801849365234375, -0.0172882080078125, 0.01165008544921875, -0.00116729736328125, 0.015289306640625, 0.047027587890625, -0.00862884521484375, -0.039337158203125, 0.022064208984375, 0.0165557861328125, -0.0278778076171875, -0.025360107421875, 0.007205963134765625, 0.038726806640625, -0.0229949951171875, 0.0751953125, -0.0284881591796875, 0.03375244140625, -0.009124755859375, 0.050689697265625, 0.0552978515625, 0.00424957275390625, 0.026824951171875, 0.0005660057067871094, -0.03759765625, 0.017822265625, -0.0295257568359375, -0.0335693359375, 0.0157318115234375, -0.0312042236328125, 0.038299560546875, -0.009307861328125, 0.01114654541015625, 0.0149383544921875, 0.0281219482421875, -0.04052734375, -0.03375244140625, -0.025543212890625, -0.029876708984375, -0.017669677734375, 0.0281524658203125, 0.07391357421875, 0.019866943359375, -0.007724761962890625, -0.0271148681640625, -0.0838623046875, -0.014068603515625, -0.00714874267578125, -0.03857421875, 0.022186279296875, -0.038238525390625, 0.01458740234375, 0.041259765625, -0.037445068359375, 0.0177154541015625, -0.0577392578125, -0.0137786865234375, 0.031097412109375, -0.00849151611328125, -0.022430419921875, 0.01494598388671875, -0.030242919921875, 0.002193450927734375, 0.001987457275390625, -0.034149169921875, -0.028839111328125, 0.04827880859375, 0.0278778076171875, -0.01284027099609375, -0.01323699951171875, -0.0286407470703125, -0.006488800048828125, -0.0222015380859375, -0.042816162109375, -0.021240234375, 0.033203125, -0.0037593841552734375, -0.0005478858947753906, 0.044769287109375, 0.061187744140625, -0.0155181884765625, -0.046478271484375, -0.010833740234375, -0.00974273681640625, -0.04876708984375, -0.01213836669921875, 0.0008983612060546875, 0.0185089111328125, -0.007282257080078125, -0.0239410400390625, 0.0107879638671875, 0.032684326171875, -0.013031005859375, -0.0134735107421875, -0.034088134765625, 0.0055084228515625, -0.052215576171875, 0.01324462890625, -0.05047607421875, -0.01983642578125, -0.0244293212890625, 0.027313232421875, -0.0277099609375, -0.019134521484375, -0.03472900390625, 0.02197265625, 0.0249786376953125, -0.0174102783203125, -0.0310211181640625, 0.059722900390625, -0.035858154296875, 0.00882720947265625, -0.041168212890625, -0.007305145263671875, 0.08612060546875, 0.0738525390625, 0.038482666015625, -0.0248565673828125, 0.06341552734375, -0.0177764892578125, 0.0136871337890625, 0.0311431884765625, -0.03607177734375, -0.06060791015625, -0.021087646484375, -0.0213165283203125, -0.01042938232421875, 0.000270843505859375, 0.0014295578002929688, 0.0201568603515625, 0.002429962158203125, -0.0318603515625, -0.0100555419921875, -0.027069091796875, 0.0167999267578125, 0.038818359375, 0.0121002197265625, 0.0416259765625, 0.07525634765625, -0.0024890899658203125, -0.0596923828125, -0.0186614990234375, 0.0106964111328125, -0.00669097900390625, 0.0117340087890625, -0.005146026611328125, -0.038299560546875, 0.00909423828125, -0.01401519775390625, -0.0134124755859375, 0.0184783935546875, 0.0261688232421875, -0.01381683349609375, -0.020050048828125, 0.00720977783203125, -0.00266265869140625, -0.019683837890625, 0.019439697265625, 0.00916290283203125, 0.0643310546875, -0.004390716552734375, 0.0165863037109375, 0.001361846923828125, -0.0528564453125, 0.0172576904296875, -0.004207611083984375, -0.08880615234375, 0.0872802734375, -0.004199981689453125, 0.061370849609375, 0.0126190185546875, -0.0275115966796875, 0.06976318359375, 0.057861328125, 0.025543212890625, -0.02642822265625, 0.0143890380859375, -0.00728607177734375, -0.04150390625, -0.0079345703125, -0.0219268798828125, 0.016876220703125, 0.053009033203125, 0.006160736083984375, 0.0102996826171875, -0.01009368896484375, -0.10260009765625, 0.0265350341796875, -0.0369873046875, 0.036651611328125, -0.008270263671875, 0.01172637939453125, 0.018829345703125, 0.0146484375, -0.032745361328125, 0.0082550048828125, 0.0100555419921875, 0.018035888671875, -0.019012451171875, 0.0550537109375, -0.01137542724609375, 0.038970947265625, -0.0002079010009765625, -0.044830322265625, 0.0276947021484375, 0.0128936767578125, 0.0634765625, -0.0026874542236328125, -0.0196533203125, -0.0146331787109375, 0.061676025390625, -0.0164337158203125, 0.005855560302734375, 0.035430908203125, -0.00960540771484375, 0.005702972412109375, -0.01216888427734375, 0.0152740478515625, 0.03717041015625, -0.0226898193359375, -0.0031185150146484375, 0.01727294921875, 0.0147705078125, 0.03118896484375, -0.03338623046875, 0.008880615234375, 0.034210205078125, -0.061187744140625, -0.003734588623046875, 0.0224456787109375, 0.0015716552734375, 0.033966064453125, -0.028289794921875, 0.027069091796875, 0.026641845703125, -0.01099395751953125, 0.0119476318359375, 0.052398681640625, -0.0268096923828125, -0.004657745361328125, 0.0033321380615234375, -0.0232696533203125, 0.00475311279296875, -0.0614013671875, -0.02020263671875, -0.03570556640625, -0.0115509033203125, -0.030059814453125, 0.0034351348876953125, 0.0013446807861328125, -0.00559234619140625, -0.04327392578125, 0.021881103515625, 0.0194244384765625, -0.0207061767578125, 0.0030002593994140625, 0.048492431640625, 0.006549835205078125, -0.053924560546875, 0.004642486572265625, -0.000980377197265625, 0.007022857666015625, -0.01690673828125, 0.0263214111328125, 0.011444091796875, -0.00865936279296875, 0.002811431884765625, -0.0172882080078125, 0.01125335693359375, -0.0316162109375, 0.00902557373046875, -0.005321502685546875, 0.0228271484375, 0.0168914794921875, -0.0185089111328125, 0.042755126953125, -0.0238037109375, -0.0169830322265625, -0.04412841796875, -0.033843994140625, 0.0277099609375, -0.0169677734375, 0.035186767578125, 0.07952880859375, 0.0228424072265625, 0.00948333740234375, 0.01076507568359375, 0.014495849609375, -0.003047943115234375, 0.009185791015625, -0.006378173828125, -0.0027065277099609375, -0.043060302734375, 0.025482177734375, 0.02520751953125, -0.0372314453125, 0.02685546875, -0.01129150390625, 0.0024814605712890625, -0.00890350341796875, -0.037139892578125, -0.0264434814453125, -0.01525115966796875, -0.040283203125, -0.042633056640625, -0.037567138671875, -0.0268707275390625, 0.0279693603515625, -0.03424072265625, -0.007274627685546875, -0.01361846923828125, 0.01253509521484375, -0.0267333984375, 0.007122039794921875, -0.01560211181640625, -0.0054779052734375, -0.01910400390625, -0.0228118896484375, 0.00807952880859375, 0.06744384765625, 0.01271820068359375, -0.02386474609375, 0.0014982223510742188, 0.005352020263671875, -0.01126861572265625, -0.020233154296875, 0.0095062255859375, -0.0228118896484375, 0.004180908203125, 0.0028228759765625, -0.0119171142578125, -0.0019521713256835938, 0.01312255859375, -0.021514892578125, -0.0169219970703125, -0.051483154296875, -0.03369140625, 0.05596923828125, 0.0276031494140625, -0.06475830078125, 0.006137847900390625, -0.059356689453125, 0.010284423828125, 0.01328277587890625, -0.01898193359375, -0.028472900390625, -0.0139617919921875, -0.03265380859375, 0.0270233154296875, -0.03521728515625, 0.0037689208984375, 0.02423095703125, 0.0183868408203125, 0.0194091796875, 0.0228729248046875, -0.035003662109375, -0.049163818359375, -0.04461669921875, 0.00879669189453125, -0.03521728515625, 0.0048370361328125, -0.0104827880859375, -0.00726318359375, -0.01080322265625, -0.016845703125, -0.011077880859375, -0.0152587890625, 0.03485107421875, -0.02801513671875, 0.0030269622802734375, -0.038970947265625, -0.0110626220703125, -0.0189666748046875, 0.05596923828125, -0.07806396484375, 0.00327301025390625, 0.033416748046875, 0.004024505615234375, -0.0016193389892578125, -0.007659912109375, -0.0928955078125, -0.0218505859375, -0.1300048828125, -0.0010843276977539062, 0.01309967041015625, -0.0670166015625, -0.0155792236328125, -0.0298614501953125, -0.07855224609375, -0.050445556640625, 0.045806884765625, 0.032684326171875, -0.0101165771484375, -0.0102081298828125, 0.01137542724609375, -0.05023193359375, -0.019378662109375, 0.01141357421875, -0.0275726318359375, -0.018524169921875, -0.0071563720703125, 0.0289306640625, -0.002040863037109375, 0.022979736328125, 0.0008726119995117188, 0.0306396484375, 0.020538330078125, 0.0067596435546875, -0.010009765625, -0.01953125, 0.00830078125, 0.016204833984375, 0.0108642578125, -0.00030994415283203125, -0.017547607421875, 0.0024814605712890625, -0.037078857421875, 0.0211334228515625, -0.01666259765625, -0.0006222724914550781, 0.0279083251953125, -0.02545166015625, -0.0465087890625, -0.0733642578125, -0.04962158203125, 0.0018253326416015625, -0.0328369140625, 0.01262664794921875, -0.07073974609375, -0.0753173828125, 0.0064697265625, 0.03387451171875, -0.0295867919921875, 0.0174560546875, 0.01531982421875, 0.01104736328125, -0.0328369140625, -0.048553466796875, -0.01042938232421875, 0.0230560302734375, 0.01483154296875, 0.0171051025390625, -0.00440216064453125, -0.0106048583984375, 0.038604736328125, -0.0067291259765625, 0.01128387451171875, -0.036224365234375, 0.061065673828125, -0.0299835205078125, -0.053741455078125, 0.0594482421875, -0.05755615234375, -0.0038280487060546875, -0.00002956390380859375, 0.0225830078125, 0.0160369873046875, 0.01153564453125, -0.0038776397705078125, 0.046112060546875, -0.080810546875, -0.021148681640625, -0.0306549072265625, 0.003997802734375, 0.042572021484375, -0.00868988037109375, -0.00460052490234375, 0.026397705078125, -0.0240020751953125, 0.00844573974609375, -0.011810302734375, 0.026580810546875, -0.010009765625, -0.007160186767578125, 0.00838470458984375, 0.041412353515625, -0.02203369140625, 0.03387451171875, 0.0026950836181640625, 0.0102996826171875, 0.004207611083984375, -0.045654296875, -0.060516357421875, 0.0274505615234375, 0.08087158203125, 0.003009796142578125, -0.011383056640625, 0.0445556640625, 0.029541015625, -0.017181396484375, -0.0308990478515625, 0.031341552734375, -0.035552978515625, -0.04766845703125, -0.0396728515625, -0.0191650390625, -0.00775146484375, 0.0189666748046875, 0.04315185546875, -0.0380859375, 0.0438232421875, -0.00428009033203125, 0.036468505859375, 0.024017333984375, 0.0190277099609375, -0.017822265625, 0.040924072265625, 0.01103973388671875, 0.004451751708984375, 0.0272064208984375, -0.035491943359375, -0.01934814453125, 0.06781005859375, 0.0382080078125, 0.037841796875, 0.00559234619140625, -0.04364013671875, -0.0015268325805664062, -0.02288818359375, 0.0950927734375, -0.0019006729125976562, -0.08966064453125, -0.056549072265625, 0.00640869140625, 0.03924560546875, -0.040374755859375, 0.01064300537109375, -0.002567291259765625, -0.034881591796875, 0.0028018951416015625, 0.03076171875, -0.0075225830078125, -0.0494384765625, -0.04168701171875, -0.0494384765625, 0.0024738311767578125, 0.01117706298828125, -0.060333251953125, -0.047637939453125, -0.0016107559204101562, -0.021270751953125, 0.0265960693359375, 0.0222320556640625, 0.0010957717895507812, -0.058197021484375, 0.0239105224609375, 0.006114959716796875, -0.0248260498046875, 0.047393798828125, -0.0251312255859375, -0.041229248046875, 0.003971099853515625, -0.047576904296875, -0.0118865966796875, -0.046630859375, -0.06390380859375, -0.0269012451171875, 0.004299163818359375, 0.0029621124267578125, 0.01617431640625, 0.016204833984375, 0.0423583984375, 0.0028057098388671875, 0.006092071533203125, -0.0020847320556640625, 0.059478759765625, -0.0191802978515625, 0.044189453125, 0.03521728515625, 0.045166015625, 0.03033447265625, 0.04498291015625, 0.00922393798828125, -0.047027587890625, 0.0183563232421875, 0.0173187255859375, -0.01357269287109375, -0.0232391357421875, 0.04583740234375, -0.045257568359375, 0.0034809112548828125, -0.033660888671875, -0.00308990478515625, 0.001560211181640625, 0.01519775390625, -0.031524658203125, 0.01076507568359375, -0.0034923553466796875, -0.01824951171875, 0.001796722412109375, -0.005825042724609375, 0.0170440673828125, -0.01174163818359375, -0.0008649826049804688, -0.0287933349609375, -0.0014104843139648438, -0.0194854736328125, 0.01099395751953125, -0.06280517578125, 0.08148193359375, 0.10382080078125, -0.0101470947265625, 0.045013427734375, 0.0245208740234375, 0.0178375244140625, 0.043426513671875, -0.0214080810546875, -0.048797607421875, 0.0004534721374511719, 0.002109527587890625, -0.002162933349609375, 0.001743316650390625, 0.03729248046875, 0.0115203857421875, 0.0013523101806640625, 0.0347900390625, 0.033233642578125, -0.071533203125, 0.00946044921875, 0.007411956787109375, 0.01702880859375, 0.04339599609375, -0.0166473388671875, 0.0023441314697265625, -0.02301025390625, 0.0233612060546875, -0.021087646484375, -0.035003662109375, -0.0024261474609375, -0.00405120849609375, 0.000919342041015625, -0.0224609375, 0.0212860107421875, -0.001148223876953125, -0.02252197265625, -0.016357421875, 0.0154571533203125, -0.0181427001953125, 0.0003712177276611328, -0.027679443359375, 0.031890869140625, -0.0806884765625, -0.1192626953125, -0.049285888671875, -0.0016756057739257812, -0.058319091796875, 0.059722900390625, 0.00397491455078125, 0.00897216796875, 0.038330078125, -0.024078369140625, 0.03656005859375, -0.0097198486328125, -0.00896453857421875, 0.00949859619140625, -0.0272064208984375, 0.034271240234375, -0.01163482666015625, -0.041412353515625, 0.032318115234375, -0.010223388671875, -0.0576171875, -0.0280914306640625, -0.01934814453125, 0.0675048828125, -0.024200439453125, -0.01390838623046875, 0.0007076263427734375, 0.045318603515625, 0.0009069442749023438, 0.0262298583984375, 0.01507568359375, -0.03289794921875, -0.035675048828125, 0.01357269287109375, -0.06011962890625, -0.01238250732421875, 0.0070953369140625, -0.0906982421875, 0.03973388671875, 0.00160980224609375, 0.041900634765625, -0.005725860595703125, 0.005588531494140625, -0.029296875, -0.0321044921875, 0.0018634796142578125, 0.033966064453125, 0.033477783203125, 0.0150299072265625, -0.002544403076171875, -0.01520538330078125, 0.004528045654296875, 0.0372314453125, -0.0007886886596679688, 0.01552581787109375, 0.007312774658203125, -0.0215911865234375, -0.0364990234375, 0.0184783935546875, -0.0168304443359375, 0.01727294921875, -0.0084686279296875, 0.060394287109375, 0.0367431640625, -0.0806884765625, 0.01531982421875, -0.016510009765625, -0.0191650390625, 0.0139007568359375, 0.03271484375, 0.03741455078125, 0.0010004043579101562, 0.0487060546875, -0.020263671875, 0.01444244384765625, 0.028411865234375, 0.0114898681640625, -0.0057525634765625, -0.001598358154296875, 0.0020599365234375, -0.0102996826171875, 0.03131103515625, -0.030914306640625, 0.036834716796875, 0.0311126708984375, 0.00966644287109375, 0.01512908935546875, 0.0277099609375, -0.042510986328125, 0.0274505615234375, 0.01360321044921875, 0.048431396484375, -0.0301361083984375, 0.01537322998046875, 0.0032520294189453125, 0.0307769775390625, -0.037445068359375, 0.004451751708984375, 0.02166748046875, 0.04315185546875, -0.0204315185546875, -0.059234619140625, 0.007476806640625, 0.012359619140625, 0.0117340087890625, 0.0197296142578125, 0.033538818359375, -0.01824951171875, 0.039825439453125, -0.018707275390625, 0.003398895263671875, 0.014190673828125, 0.001552581787109375, 0.0008521080017089844, 0.055145263671875, -0.0034046173095703125, 0.005374908447265625, -0.0168609619140625, -0.008514404296875, 0.002956390380859375, 0.00949859619140625, 0.0010824203491210938, 0.0254974365234375, 0.013885498046875, 0.00629425048828125, -0.0269775390625, -0.0064849853515625, 0.0160369873046875, 0.0307159423828125, -0.0679931640625, -0.0253753662109375, 0.05792236328125, 0.056121826171875, 0.059722900390625, 0.005237579345703125, 0.032928466796875, 0.0227813720703125, 0.0193634033203125, 0.0167236328125, 0.01552581787109375, -0.00406646728515625, 0.0236358642578125, -0.0166473388671875, 0.016998291015625, -0.006908416748046875, -0.01093292236328125, -0.00853729248046875, 0.031890869140625, 0.017486572265625, -0.04620361328125, -0.033477783203125, -0.0057373046875, -0.05816650390625, 0.035369873046875, -0.007747650146484375, 0.024688720703125, -0.0250091552734375, -0.0240020751953125, -0.01363372802734375, -0.00908660888671875, 0.02288818359375, -0.005992889404296875, 0.01509857177734375, -0.01557159423828125, 0.04144287109375, 0.024993896484375, 0.040069580078125, -0.0149688720703125, -0.03826904296875, 0.0090179443359375, -0.0166778564453125, 0.04156494140625, 0.0179290771484375, -0.0601806640625, -0.024505615234375, -0.0183258056640625, 0.018096923828125, 0.00435638427734375, 0.062103271484375, 0.004337310791015625, 0.0132598876953125, 0.0030193328857421875, 0.01194000244140625, -0.004474639892578125, -0.0209197998046875, 0.028533935546875, -0.00235748291015625, -0.003940582275390625, -0.0199127197265625, -0.060150146484375, 0.036102294921875, 0.02264404296875, 0.0200958251953125, 0.056640625, -0.004962921142578125, 0.0023937225341796875, -0.0207061767578125, -0.0014247894287109375, -0.039794921875, -0.0360107421875, -0.06854248046875, -0.0229949951171875, 0.022857666015625, -0.021392822265625, -0.0196380615234375, 0.020233154296875, -0.002307891845703125, -0.0195159912109375, 0.001987457275390625, 0.0053558349609375, -0.01947021484375, 0.01378631591796875, 0.0241546630859375, 0.0033016204833984375, 0.0123443603515625, -0.005397796630859375, 0.0293121337890625, 0.017791748046875, -0.004909515380859375, 0.044647216796875, -0.0272674560546875, -0.0159759521484375, 0.0120849609375, -0.0143585205078125, -0.047332763671875, -0.0132598876953125, 0.03509521484375, -0.03692626953125, -0.003467559814453125, -0.00968170166015625, -0.0145416259765625, 0.00008118152618408203, -0.01947021484375, 0.01537322998046875, -0.00980377197265625, -0.07061767578125, -0.05975341796875, 0.0210418701171875, 0.048797607421875, 0.0186004638671875, -0.0867919921875, 0.053253173828125, -0.0242919921875, 0.053466796875, 0.0135650634765625, 0.01580810546875, -0.0048828125, 0.00836181640625, -0.0273590087890625, 0.01377105712890625, -0.0218353271484375, 0.0008101463317871094, -0.002773284912109375, -0.0391845703125, 0.005615234375, 0.035247802734375, 0.0216064453125, -0.061553955078125, -0.07269287109375, -0.00804901123046875, -0.084716796875, -0.034332275390625, -0.0228118896484375, 0.006343841552734375, 0.0177764892578125, -0.031951904296875, -0.005878448486328125, -0.03662109375, -0.024169921875, 0.01885986328125, -0.025909423828125, -0.003978729248046875, -0.040557861328125, -0.05511474609375, 0.04095458984375, 0.01120758056640625, -0.03729248046875, -0.004932403564453125, 0.013519287109375, -0.02630615234375, 0.01348114013671875, 0.01433563232421875, -0.031005859375, 0.022064208984375, 0.0284271240234375, 0.024139404296875, 0.01007843017578125, 0.03033447265625, -0.0222320556640625, -0.001407623291015625, 0.0164642333984375, 0.0233001708984375, 0.02020263671875, -0.0184326171875, 0.005924224853515625, 0.00818634033203125, 0.0174560546875, -0.038299560546875, 0.00014269351959228516, 0.0088348388671875, 0.0232391357421875, 0.004795074462890625, 0.0008974075317382812, 0.0006837844848632812, -0.0174713134765625, 0.0249176025390625, -0.0205230712890625, 0.00250244140625, 0.01415252685546875, -0.033172607421875, -0.0391845703125, -0.004940032958984375, -0.0312042236328125, 0.0248870849609375, -0.0943603515625, -0.0287017822265625, 0.0318603515625, -0.02044677734375, 0.025726318359375, -0.01029205322265625, -0.0242462158203125, 0.006824493408203125, 0.0272064208984375, 0.00949859619140625, -0.03515625, 0.006134033203125, 0.0242919921875, -0.02789306640625, -0.0207061767578125, -0.00774383544921875, 0.0013628005981445312, -0.0005164146423339844, -0.0149383544921875, -0.03314208984375, 0.00710296630859375, -0.0164337158203125, 0.0394287109375, -0.0078582763671875, 0.02032470703125, -0.05718994140625, 0.006900787353515625, -0.0022678375244140625, 0.0108642578125, -0.0021305084228515625, 0.0128173828125, -0.0005202293395996094, 0.0024738311767578125, 0.007427215576171875, -0.012451171875, -0.0430908203125, 0.0030841827392578125, -0.0201263427734375, -0.00835418701171875, 0.0081634521484375, 0.0244598388671875, 0.0645751953125, 0.005001068115234375, 0.007595062255859375, 0.033294677734375, 0.035491943359375, -0.032470703125, 0.0308074951171875, -0.005512237548828125, 0.04034423828125, 0.01187896728515625 ]
ea85d13ff20db906cb4600ad1aa63e7bf27b7a4d
Wordpress Stackexchange Q: Create a dropdown with Custom Post Types as option in admin I need to create a dropdown menu with "posts from a custom post type" as option. This dropdown will be placed as custom meta box. For example, I want all posts with the custom type "Video" as option in the select. <select> <option>post title n°1<option> <option>post title n°2<option> .... </select> Thanks A: wp_dropdown_pages(array('post_type'=>'video')); See: http://codex.wordpress.org/Function_Reference/wp_dropdown_pages
Q: Create a dropdown with Custom Post Types as option in admin I need to create a dropdown menu with "posts from a custom post type" as option. This dropdown will be placed as custom meta box. For example, I want all posts with the custom type "Video" as option in the select. <select> <option>post title n°1<option> <option>post title n°2<option> .... </select> Thanks A: wp_dropdown_pages(array('post_type'=>'video')); See: http://codex.wordpress.org/Function_Reference/wp_dropdown_pages A: Here is the code I'm using in a project I'm working on. function generate_post_select($select_id, $post_type, $selected = 0) { $post_type_object = get_post_type_object($post_type); $label = $post_type_object->label; $posts = get_posts(array('post_type'=> $post_type, 'post_status'=> 'publish', 'suppress_filters' => false, 'posts_per_page'=>-1)); echo '<select name="'. $select_id .'" id="'.$select_id.'">'; echo '<option value = "" >All '.$label.' </option>'; foreach ($posts as $post) { echo '<option value="', $post->ID, '"', $selected == $post->ID ? ' selected="selected"' : '', '>', $post->post_title, '</option>'; } echo '</select>'; } $select_id is used as the name and id of the select, $post_type is the type you want to be made into the select and $selected is the post id you want selected in the select box. A: If you already know how to make the custom meta box, you can use wp_dropdown_categories(); maybe like so : wp_dropdown_categories('taxonomy=your_texonomy&hide_empty=0&orderby=name&name=types&show_option_none=Select type); A: Since my last answer was considered more of a question. I'll answer with more of an answer. You could use the Magic Fields plugin 2 (note the 2 because that is a different but improved plugin). You can choose a 'related type' field from the admin boxes they offer. Of course you still can excavate how it's done in this plugin if you want to create this function yourself, but at least there is somebody who figured it out.
wordpress
{ "language": "en", "length": 280, "provenance": "stackexchange_00019.jsonl.gz:415413", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36551" }
[ 0.0269622802734375, 0.00531768798828125, 0.0191802978515625, 0.0207366943359375, 0.00612640380859375, -0.016510009765625, 0.068115234375, -0.06231689453125, -0.0142974853515625, -0.01183319091796875, -0.0077667236328125, -0.00798797607421875, -0.06134033203125, -0.046875, -0.004367828369140625, -0.0687255859375, 0.0312042236328125, -0.004055023193359375, 0.03692626953125, -0.01087188720703125, 0.0301361083984375, 0.0104827880859375, 0.023681640625, 0.01654052734375, 0.007568359375, -0.0136871337890625, 0.0115814208984375, -0.004756927490234375, 0.0037994384765625, 0.00890350341796875, 0.01427459716796875, -0.0021209716796875, 0.0010900497436523438, -0.0209808349609375, 0.05889892578125, 0.0290985107421875, 0.011474609375, 0.0014104843139648438, 0.05206298828125, -0.026824951171875, 0.004703521728515625, 0.004764556884765625, 0.04425048828125, 0.0247344970703125, -0.016143798828125, -0.0208587646484375, 0.006317138671875, -0.031982421875, 0.00490570068359375, -0.045318603515625, -0.00968170166015625, -0.00444793701171875, 0.029937744140625, -0.08514404296875, -0.01416778564453125, -0.029296875, 0.01177978515625, 0.038970947265625, 0.044830322265625, -0.025482177734375, -0.054443359375, 0.002635955810546875, 0.012115478515625, -0.0160369873046875, 0.0029544830322265625, -0.00742340087890625, -0.01206207275390625, 0.019378662109375, -0.03466796875, -0.0037631988525390625, 0.026092529296875, -0.0169219970703125, 0.01197052001953125, -0.032501220703125, -0.00295257568359375, -0.005954742431640625, 0.004596710205078125, -0.0294952392578125, 0.014739990234375, -0.0020008087158203125, 0.04156494140625, 0.005847930908203125, 0.052734375, -0.05230712890625, 0.0191192626953125, -0.038970947265625, -0.005168914794921875, 0.002185821533203125, -0.01204681396484375, -0.02142333984375, -0.01153564453125, -0.058685302734375, -0.0274658203125, 0.038330078125, 0.0029811859130859375, -0.001922607421875, -0.0026569366455078125, -0.0020618438720703125, 0.01288604736328125, 0.02655029296875, -0.0027065277099609375, -0.047637939453125, 0.06683349609375, -0.034393310546875, 0.0258941650390625, 0.016204833984375, -0.034423828125, -0.035064697265625, 0.049835205078125, 0.04205322265625, -0.0092926025390625, 0.03314208984375, -0.002532958984375, 0.005859375, -0.02813720703125, -0.023529052734375, -0.01071929931640625, -0.005481719970703125, -0.0030498504638671875, -0.0143280029296875, 0.0276031494140625, 0.0259552001953125, 0.06634521484375, -0.043304443359375, 0.0078277587890625, 0.01192474365234375, -0.04388427734375, -0.079833984375, 0.01210784912109375, 0.0406494140625, -0.058929443359375, 0.007568359375, 0.10125732421875, 0.0218658447265625, 0.0156402587890625, -0.036163330078125, -0.006000518798828125, -0.02679443359375, -0.004486083984375, 0.01372528076171875, 0.03106689453125, -0.0296783447265625, 0.005306243896484375, 0.0187835693359375, 0.0208892822265625, 0.040924072265625, 0.0011653900146484375, -0.01102447509765625, 0.01261138916015625, -0.038055419921875, -0.01338958740234375, -0.0284423828125, 0.03460693359375, 0.00289154052734375, -0.0062103271484375, -0.01174163818359375, 0.02618408203125, -0.0264739990234375, -0.00846099853515625, -0.03271484375, -0.004489898681640625, 0.00780487060546875, 0.0310821533203125, -0.0109405517578125, -0.0201873779296875, 0.0056610107421875, -0.032440185546875, -0.00460052490234375, 0.02044677734375, 0.011444091796875, 0.0237579345703125, -0.03704833984375, 0.009185791015625, 0.00974273681640625, -0.009918212890625, 0.017913818359375, -0.0003147125244140625, -0.0260772705078125, 0.025054931640625, 0.00876617431640625, -0.0139007568359375, -0.0225830078125, 0.01580810546875, -0.003192901611328125, -0.0504150390625, 0.050323486328125, 0.01458740234375, 0.06817626953125, 0.0027942657470703125, 0.0254974365234375, 0.00632476806640625, 0.0240325927734375, -0.036285400390625, -0.004344940185546875, 0.007320404052734375, -0.032867431640625, -0.00927734375, -0.0267791748046875, -0.0016155242919921875, 0.036712646484375, -0.0281829833984375, 0.0328369140625, -0.01401519775390625, 0.037109375, -0.0160064697265625, 0.01995849609375, -0.01386260986328125, 0.041778564453125, 0.0227203369140625, 0.0006966590881347656, 0.0011243820190429688, -0.01617431640625, 0.0026531219482421875, -0.031707763671875, -0.04608154296875, 0.0221405029296875, -0.011749267578125, 0.003307342529296875, -0.041015625, 0.00449371337890625, -0.034759521484375, -0.0423583984375, -0.03936767578125, 0.047882080078125, 0.0611572265625, 0.024139404296875, -0.026824951171875, 0.0001379251480102539, 0.0491943359375, 0.0231475830078125, -0.01629638671875, 0.0215911865234375, 0.0013599395751953125, -0.01192474365234375, -0.047637939453125, -0.026580810546875, -0.0118255615234375, -0.058990478515625, 0.00986480712890625, 0.06109619140625, 0.0180816650390625, 0.07098388671875, 0.006237030029296875, 0.0176239013671875, 0.058074951171875, -0.01450347900390625, 0.01161956787109375, 0.00022399425506591797, -0.023193359375, -0.0084228515625, 0.05767822265625, 0.0063629150390625, 0.01015472412109375, -0.01043701171875, 0.048126220703125, 0.005245208740234375, -0.0235443115234375, 0.0190887451171875, 0.009124755859375, -0.0213470458984375, -0.0025920867919921875, 0.01320648193359375, 0.014434814453125, -0.006847381591796875, 0.09063720703125, -0.0140228271484375, 0.044158935546875, 0.0221710205078125, -0.041259765625, 0.004154205322265625, 0.014678955078125, -0.01204681396484375, -0.0127105712890625, 0.00629425048828125, 0.03790283203125, -0.036468505859375, -0.0408935546875, 0.01003265380859375, 0.0163421630859375, -0.0149993896484375, -0.01393890380859375, 0.03387451171875, -0.0389404296875, -0.0157623291015625, 0.00732421875, -0.07232666015625, -0.017974853515625, 0.00298309326171875, 0.00494384765625, -0.0271759033203125, 0.007904052734375, -0.004642486572265625, -0.0255126953125, 0.029754638671875, 0.035858154296875, -0.033355712890625, 0.07281494140625, -0.055908203125, 0.059539794921875, -0.0247955322265625, 0.0418701171875, 0.0657958984375, -0.0169830322265625, 0.021881103515625, -0.01076507568359375, 0.0235137939453125, -0.01280975341796875, 0.051544189453125, 0.006359100341796875, -0.050445556640625, 0.0028533935546875, -0.0168609619140625, 0.01580810546875, 0.0002015829086303711, 0.0204620361328125, -0.006938934326171875, 0.0002562999725341797, 0.0211944580078125, -0.0172271728515625, 0.00823211669921875, 0.0474853515625, -0.07098388671875, 0.030364990234375, -0.0469970703125, -0.0291900634765625, -0.022186279296875, -0.0194549560546875, 0.0008563995361328125, -0.0201263427734375, 0.013458251953125, -0.03338623046875, -0.015838623046875, -0.041015625, -0.00586700439453125, -0.0098876953125, 0.01093292236328125, 0.00988006591796875, 0.0811767578125, 0.0135955810546875, -0.07757568359375, 0.00849151611328125, 0.043060302734375, -0.022613525390625, 0.0234527587890625, 0.040496826171875, -0.0472412109375, 0.010406494140625, -0.0033168792724609375, 0.0134429931640625, 0.02911376953125, -0.017486572265625, -0.013824462890625, -0.03082275390625, 0.005184173583984375, 0.022918701171875, -0.0182037353515625, 0.017425537109375, 0.03216552734375, 0.0212249755859375, -0.033538818359375, 0.0005521774291992188, 0.0007328987121582031, -0.009552001953125, -0.005481719970703125, -0.0323486328125, -0.00533294677734375, -0.01221466064453125, 0.04962158203125, -0.0007028579711914062, -0.0008959770202636719, 0.026031494140625, -0.0255279541015625, 0.0239410400390625, 0.003475189208984375, 0.01039886474609375, -0.01364898681640625, 0.0055389404296875, -0.0302886962890625, 0.0443115234375, 0.0074920654296875, -0.004383087158203125, -0.0011320114135742188, 0.01068115234375, -0.00589752197265625, -0.12359619140625, 0.0771484375, -0.0214691162109375, -0.022705078125, -0.03704833984375, -0.059600830078125, 0.035064697265625, 0.1429443359375, -0.038909912109375, -0.007648468017578125, -0.015899658203125, -0.01104736328125, 0.02471923828125, -0.003299713134765625, -0.0328369140625, -0.0251007080078125, -0.0870361328125, 0.01151275634765625, 0.018463134765625, -0.0345458984375, -0.04144287109375, 0.04486083984375, -0.093017578125, -0.01922607421875, 0.0404052734375, -0.056549072265625, 0.0254364013671875, 0.0208740234375, 0.0187530517578125, -0.021575927734375, -0.019012451171875, -0.03216552734375, -0.0726318359375, -0.0099639892578125, -0.0012149810791015625, 0.039154052734375, 0.0025272369384765625, -0.01009368896484375, -0.017364501953125, 0.034454345703125, 0.04290771484375, -0.0010623931884765625, 0.022918701171875, -0.019134521484375, 0.0149688720703125, -0.00519561767578125, 0.0238189697265625, -0.033294677734375, -0.032012939453125, -0.035186767578125, 0.00496673583984375, 0.0241546630859375, 0.0025081634521484375, 0.034149169921875, -0.00580596923828125, 0.007480621337890625, -0.062103271484375, -0.0246124267578125, -0.0179290771484375, 0.006134033203125, 0.00202178955078125, -0.0166168212890625, -0.0160675048828125, -0.06268310546875, 0.0179901123046875, 0.0183868408203125, -0.00984954833984375, 0.0166168212890625, 0.038970947265625, 0.00688934326171875, -0.0236358642578125, -0.061920166015625, -0.0259246826171875, 0.0282745361328125, -0.03131103515625, 0.057220458984375, 0.0171661376953125, -0.0090179443359375, 0.073486328125, -0.01776123046875, 0.01076507568359375, -0.0284271240234375, 0.0287933349609375, 0.0044403076171875, -0.016021728515625, 0.0202789306640625, -0.01238250732421875, 0.0304107666015625, 0.042572021484375, -0.003604888916015625, -0.032257080078125, -0.0223541259765625, 0.046173095703125, -0.00933837890625, 0.0105438232421875, -0.029388427734375, -0.022613525390625, 0.00862884521484375, -0.0225830078125, 0.025604248046875, 0.0277099609375, -0.004344940185546875, 0.017913818359375, -0.00946044921875, 0.02166748046875, 0.01262664794921875, 0.03387451171875, -0.0147247314453125, 0.053863525390625, 0.0031261444091796875, -0.001140594482421875, -0.003551483154296875, -0.00667572021484375, 0.041229248046875, 0.0002014636993408203, -0.036224365234375, -0.037109375, 0.006717681884765625, 0.04705810546875, 0.01491546630859375, 0.018310546875, 0.03790283203125, 0.0262451171875, -0.01483154296875, -0.013153076171875, -0.00630950927734375, 0.0022106170654296875, -0.044952392578125, 0.019927978515625, 0.0201416015625, 0.00423431396484375, -0.01113128662109375, 0.11016845703125, 0.01256561279296875, 0.04827880859375, -0.0268402099609375, 0.046875, 0.04461669921875, 0.022308349609375, 0.0217132568359375, -0.01026153564453125, -0.007781982421875, -0.002002716064453125, -0.032012939453125, -0.0229644775390625, -0.01540374755859375, 0.0034084320068359375, 0.0153350830078125, -0.00652313232421875, -0.0049896240234375, 0.0237274169921875, -0.006622314453125, -0.0107269287109375, 0.0009374618530273438, 0.01248931884765625, -0.02996826171875, -0.00009304285049438477, 0.01146697998046875, 0.0053558349609375, -0.01654052734375, -0.0171051025390625, 0.00653076171875, -0.0120391845703125, 0.040069580078125, -0.0159149169921875, -0.006038665771484375, 0.0204620361328125, 0.01617431640625, -0.0202484130859375, -0.0079498291015625, 0.00629425048828125, -0.08544921875, -0.047821044921875, -0.0019273757934570312, 0.008697509765625, 0.04888916015625, -0.04541015625, 0.01398468017578125, -0.01325225830078125, 0.022186279296875, -0.035736083984375, 0.02392578125, 0.01198577880859375, 0.01543426513671875, -0.01238250732421875, 0.0006103515625, -0.019500732421875, -0.0146331787109375, -0.00420379638671875, -0.055694580078125, -0.04034423828125, -0.032318115234375, 0.009429931640625, -0.0035343170166015625, 0.0273895263671875, -0.0035800933837890625, -0.0218505859375, 0.0181121826171875, 0.019256591796875, -0.0173797607421875, -0.0151214599609375, 0.06060791015625, -0.0028400421142578125, 0.044769287109375, 0.001857757568359375, 0.0168304443359375, -0.028656005859375, 0.007080078125, -0.01441192626953125, -0.058135986328125, -0.0186767578125, 0.008544921875, -0.0156097412109375, 0.07550048828125, 0.07586669921875, 0.0104827880859375, 0.04339599609375, -0.0210723876953125, 0.00159454345703125, -0.006534576416015625, -0.01473236083984375, -0.00775909423828125, 0.039794921875, 0.038787841796875, -0.030792236328125, 0.01062774658203125, 0.0018262863159179688, -0.00818634033203125, 0.0114593505859375, -0.0243072509765625, 0.0152435302734375, 0.04461669921875, -0.042388916015625, 0.05126953125, 0.0638427734375, 0.0180816650390625, 0.04522705078125, -0.004947662353515625, 0.01348114013671875, 0.00432586669921875, 0.00919342041015625, -0.0416259765625, -0.01523590087890625, 0.053131103515625, 0.0133514404296875, -0.02703857421875, 0.049591064453125, -0.0207061767578125, 0.016326904296875, 0.0682373046875, 0.082275390625, -0.0849609375, 0.014312744140625, 0.032318115234375, 0.0127105712890625, 0.04595947265625, -0.01904296875, -0.0007252693176269531, -0.0139007568359375, -0.0012950897216796875, 0.012847900390625, -0.036468505859375, -0.01462554931640625, 0.00806427001953125, -0.0142059326171875, -0.0185699462890625, -0.0015850067138671875, -0.00014400482177734375, 0.006801605224609375, -0.01158905029296875, -0.035888671875, -0.0002522468566894531, -0.00560760498046875, 0.032196044921875, -0.0335693359375, -0.005626678466796875, -0.03936767578125, 0.012847900390625, -0.0198822021484375, 0.00743865966796875, 0.0183563232421875, 0.0094146728515625, 0.0215301513671875, 0.05206298828125, -0.01641845703125, 0.0103302001953125, 0.0102996826171875, 0.005725860595703125, -0.06524658203125, -0.0238800048828125, 0.00974273681640625, 0.006649017333984375, -0.001251220703125, 0.0338134765625, -0.0140533447265625, -0.043853759765625, 0.0020008087158203125, 0.0164947509765625, 0.0704345703125, -0.00690460205078125, -0.034912109375, 0.029541015625, -0.0052337646484375, -0.0158233642578125, 0.0030345916748046875, 0.0137481689453125, -0.03155517578125, -0.0058441162109375, -0.00861358642578125, -0.048797607421875, -0.01143646240234375, -0.00527191162109375, -0.03009033203125, 0.07305908203125, -0.05108642578125, 0.0022830963134765625, 0.035980224609375, 0.034088134765625, -0.02105712890625, 0.0265960693359375, -0.039794921875, 0.051025390625, 0.0140228271484375, 0.043243408203125, -0.0516357421875, -0.01947021484375, 0.004970550537109375, 0.04656982421875, -0.006679534912109375, -0.00849151611328125, 0.0071563720703125, -0.007053375244140625, 0.06744384765625, 0.08447265625, 0.0546875, -0.01971435546875, -0.006999969482421875, 0.030364990234375, 0.055145263671875, -0.0289154052734375, 0.039306640625, 0.0027408599853515625, -0.010467529296875, 0.0093231201171875, 0.00002002716064453125, 0.003757476806640625, -0.0035076141357421875, -0.005405426025390625, 0.00852203369140625, -0.0196685791015625, -0.01169586181640625, 0.00032830238342285156, 0.00592803955078125, 0.029296875, 0.052276611328125, -0.0540771484375, 0.00855255126953125, -0.032867431640625, 0.045257568359375, 0.01153564453125, -0.00669097900390625, 0.019805908203125, 0.019134521484375, -0.040985107421875, -0.0172271728515625, 0.0013427734375, 0.008331298828125, -0.01168060302734375, 0.042572021484375, 0.0012044906616210938, 0.01210784912109375, -0.051727294921875, -0.005962371826171875, 0.015838623046875, 0.04833984375, -0.045379638671875, -0.0465087890625, 0.00048422813415527344, 0.0098419189453125, 0.0154571533203125, 0.0017557144165039062, 0.035186767578125, 0.0181427001953125, 0.032257080078125, -0.06719970703125, 0.006923675537109375, 0.01708984375, 0.0276031494140625, -0.025848388671875, -0.018218994140625, -0.019287109375, -0.00977325439453125, -0.028564453125, -0.0197296142578125, 0.01904296875, 0.0635986328125, 0.042327880859375, 0.0008425712585449219, -0.0269622802734375, -0.0273590087890625, 0.0174407958984375, -0.00780487060546875, 0.0169219970703125, -0.027862548828125, -0.017791748046875, -0.035125732421875, 0.0228271484375, 0.0218353271484375, 0.01806640625, 0.058349609375, 0.052886962890625, 0.0201416015625, -0.00310516357421875, 0.006988525390625, 0.0382080078125, -0.0179901123046875, -0.046356201171875, -0.0279083251953125, -0.0186309814453125, 0.0198211669921875, -0.0099639892578125, 0.0198516845703125, 0.00806427001953125, 0.0283203125, -0.00555419921875, 0.032440185546875, -0.0008273124694824219, -0.0107421875, 0.01806640625, -0.02056884765625, 0.024993896484375, 0.002223968505859375, -0.08856201171875, -0.018768310546875, -0.024749755859375, -0.0841064453125, 0.040283203125, 0.0567626953125, -0.0284881591796875, -0.01471710205078125, -0.0185546875, -0.004360198974609375, 0.01190948486328125, 0.0024700164794921875, -0.004070281982421875, 0.038299560546875, 0.029876708984375, 0.0091705322265625, -0.0963134765625, -0.05413818359375, -0.031646728515625, 0.03802490234375, 0.00311279296875, 0.03363037109375, 0.0183563232421875, 0.023590087890625, -0.04522705078125, -0.00970458984375, -0.0251007080078125, -0.04168701171875, 0.03302001953125, 0.015869140625, -0.01507568359375, -0.00234222412109375, 0.029693603515625, 0.0183563232421875, 0.034332275390625, -0.060882568359375, -0.021453857421875, -0.01392364501953125, 0.0177001953125, -0.0159454345703125, -0.0018835067749023438, -0.0323486328125, 0.01244354248046875, -0.0095672607421875, -0.0230865478515625, 0.0303497314453125, 0.01450347900390625, 0.00449371337890625, 0.02203369140625, -0.031524658203125, 0.00876617431640625, 0.0037822723388671875, -0.006072998046875, -0.01093292236328125, 0.03369140625, -0.06561279296875, -0.004512786865234375, 0.04736328125, -0.002315521240234375, 0.0211944580078125, 0.0187225341796875, 0.01287841796875, 0.046417236328125, -0.0253143310546875, 0.004703521728515625, 0.000732421875, 0.033538818359375, 0.004535675048828125, -0.00841522216796875, -0.014892578125, -0.00588226318359375, -0.0196685791015625, 0.0367431640625, -0.02337646484375, -0.0330810546875, -0.00353240966796875, 0.01308441162109375, -0.00608062744140625, -0.0204010009765625, -0.07000732421875, 0.0013103485107421875, 0.025634765625, 0.01245880126953125, -0.0555419921875, 0.0313720703125, -0.005634307861328125, 0.020843505859375, 0.0006961822509765625, -0.0288238525390625, 0.0272979736328125, 0.0775146484375, -0.00336456298828125, -0.002468109130859375, 0.011688232421875, -0.0134429931640625, -0.00984954833984375, 0.0316162109375, 0.04022216796875, -0.0474853515625, -0.046722412109375, 0.055511474609375, 0.045257568359375, 0.08160400390625, 0.04864501953125, 0.0025882720947265625, 0.0017642974853515625, 0.0177459716796875, -0.0517578125, -0.06622314453125, 0.0232391357421875, -0.056060791015625, -0.0277252197265625, 0.0205230712890625, -0.004608154296875, 0.032623291015625, -0.0209197998046875, -0.07269287109375, 0.069091796875, -0.01372528076171875, -0.024993896484375, -0.0222320556640625, 0.0253448486328125, -0.01203155517578125, 0.032745361328125, 0.01483917236328125, -0.0380859375, -0.00432586669921875, -0.0005488395690917969, 0.00899505615234375, 0.03472900390625, 0.036163330078125, -0.01241302490234375, -0.044158935546875, -0.0206756591796875, -0.0291595458984375, 0.01506805419921875, 0.012176513671875, -0.0240936279296875, 0.031585693359375, 0.039398193359375, -0.044677734375, -0.07733154296875, -0.0260772705078125, -0.0044097900390625, 0.032440185546875, -0.05767822265625, -0.058258056640625, -0.06597900390625, 0.0304412841796875, 0.023773193359375, 0.01953125, -0.0023193359375, -0.040740966796875, -0.0711669921875, -0.0187530517578125, -0.0200653076171875, -0.00337982177734375, -0.0496826171875, 0.023193359375, -0.002681732177734375, -0.00670623779296875, 0.01105499267578125, 0.02239990234375, -0.01308441162109375, 0.002124786376953125, 0.0341796875, -0.00217437744140625, -0.0631103515625, 0.027069091796875, 0.039154052734375, -0.03729248046875, -0.00577545166015625, 0.0227508544921875, -0.01506805419921875, 0.03192138671875, 0.0406494140625, -0.021331787109375, -0.05010986328125, -0.007373809814453125, 0.03857421875, -0.032135009765625, 0.059478759765625, -0.03680419921875, -0.02130126953125, -0.03082275390625, 0.0204315185546875, 0.003223419189453125, 0.02740478515625, -0.0283050537109375, 0.068115234375, 0.036590576171875, 0.024871826171875, 0.0005445480346679688, 0.02655029296875, -0.0035228729248046875, 0.020263671875, 0.016387939453125, -0.0175933837890625, 0.0310821533203125, -0.0307464599609375, 0.012237548828125, -0.03778076171875, -0.034912109375, -0.0257568359375, -0.00013005733489990234, 0.0528564453125, -0.048583984375, 0.0230255126953125 ]
79945a4d91e4d059f4488544cfd5a39b27e77eda
Wordpress Stackexchange Q: How can I add the featured image functionality to a custom taxonomy? I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a featured image. I will then use the featured image in a custom template that will show all of the collection, their titles and featured images. I need the uploaded image to be resized into the custom image sizes that I have set in my theme. There is a similar question here: Can I set a default featured image for a category? However, the top answer won't work for me, and I can't rely on a plugin. Can anyone help? Many thanks, Keith A: It's a little complex, but you can add custom meta to taxonomies. http://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/ You could pretty easily integrate a WP media uploader field that would allow you to enter an image into the field.
Q: How can I add the featured image functionality to a custom taxonomy? I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a featured image. I will then use the featured image in a custom template that will show all of the collection, their titles and featured images. I need the uploaded image to be resized into the custom image sizes that I have set in my theme. There is a similar question here: Can I set a default featured image for a category? However, the top answer won't work for me, and I can't rely on a plugin. Can anyone help? Many thanks, Keith A: It's a little complex, but you can add custom meta to taxonomies. http://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/ You could pretty easily integrate a WP media uploader field that would allow you to enter an image into the field. A: With Advanced Custom Fields you can achieve this very easily: https://www.advancedcustomfields.com/resources/adding-fields-taxonomy-term/
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:415422", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36582" }
[ 0.04693603515625, -0.0035381317138671875, 0.024658203125, -0.006076812744140625, 0.0186309814453125, -0.015869140625, 0.0655517578125, -0.0517578125, 0.0245819091796875, 0.01910400390625, -0.025604248046875, -0.004634857177734375, -0.04156494140625, -0.0093994140625, -0.0389404296875, -0.041534423828125, 0.039764404296875, 0.0006799697875976562, 0.06414794921875, 0.0036754608154296875, 0.00652313232421875, 0.03985595703125, 0.029541015625, -0.01203155517578125, 0.004791259765625, 0.00202178955078125, 0.043914794921875, -0.02447509765625, 0.0018672943115234375, -0.0048980712890625, 0.012298583984375, -0.00545501708984375, 0.01654052734375, 0.0070343017578125, 0.00888824462890625, -0.00556182861328125, 0.03143310546875, -0.005161285400390625, -0.0019474029541015625, 0.0233001708984375, 0.0209197998046875, 0.0034809112548828125, 0.0248870849609375, 0.025299072265625, -0.003185272216796875, -0.03009033203125, 0.0006990432739257812, -0.04290771484375, 0.00986480712890625, -0.0266571044921875, 0.0145721435546875, -0.0009937286376953125, 0.0362548828125, -0.06304931640625, -0.01837158203125, -0.0079345703125, -0.038970947265625, 0.0236358642578125, 0.0277099609375, -0.01227569580078125, -0.0088043212890625, -0.02587890625, 0.0323486328125, -0.002849578857421875, 0.011016845703125, 0.0108184814453125, 0.0223236083984375, 0.007312774658203125, -0.0303802490234375, -0.00994873046875, 0.00603485107421875, -0.036102294921875, 0.0157928466796875, -0.01221466064453125, -0.005069732666015625, -0.0199737548828125, 0.0093841552734375, -0.01142120361328125, 0.018035888671875, -0.0086822509765625, 0.021331787109375, -0.029632568359375, 0.03558349609375, 0.002376556396484375, 0.03240966796875, 0.033538818359375, -0.006103515625, -0.017608642578125, -0.019805908203125, -0.0117645263671875, -0.016845703125, -0.044830322265625, -0.050384521484375, 0.06329345703125, 0.018524169921875, -0.0027942657470703125, 0.0279083251953125, 0.04150390625, -0.0280914306640625, 0.032379150390625, -0.00041174888610839844, -0.050933837890625, 0.06854248046875, -0.0526123046875, 0.021942138671875, 0.02178955078125, -0.01296234130859375, -0.044403076171875, 0.0272674560546875, 0.023162841796875, 0.0016727447509765625, 0.007488250732421875, 0.0192718505859375, -0.0260467529296875, 0.0006208419799804688, 0.006855010986328125, -0.004154205322265625, 0.02166748046875, 0.012298583984375, -0.0174407958984375, 0.034881591796875, 0.0484619140625, 0.0181884765625, -0.0469970703125, 0.01305389404296875, 0.022216796875, -0.035186767578125, -0.069091796875, -0.0162200927734375, 0.031829833984375, -0.0439453125, 0.0254669189453125, 0.07684326171875, -0.00027942657470703125, -0.00888824462890625, -0.0245208740234375, 0.030792236328125, 0.00304412841796875, 0.0163726806640625, -0.00562286376953125, -0.008758544921875, 0.0054779052734375, 0.045684814453125, -0.017791748046875, 0.031951904296875, 0.022216796875, 0.0015897750854492188, 0.0074005126953125, 0.02734375, -0.03350830078125, 0.026763916015625, -0.03192138671875, 0.03924560546875, 0.018524169921875, -0.002899169921875, 0.0073394775390625, 0.04681396484375, -0.00867462158203125, -0.038604736328125, -0.036712646484375, 0.01678466796875, -0.003650665283203125, -0.00124359130859375, 0.003009796142578125, -0.0031452178955078125, 0.01045989990234375, -0.0194854736328125, 0.0056915283203125, 0.0285186767578125, -0.01479339599609375, 0.033935546875, -0.002132415771484375, 0.0254669189453125, -0.006786346435546875, -0.01375579833984375, -0.004932403564453125, -0.00621795654296875, 0.06005859375, 0.0006756782531738281, 0.0521240234375, 0.013916015625, -0.049102783203125, 0.080810546875, -0.0328369140625, -0.01552581787109375, -0.0104217529296875, 0.0156402587890625, 0.0308685302734375, 0.018035888671875, 0.0263519287109375, -0.007396697998046875, -0.005733489990234375, -0.0771484375, -0.00048804283142089844, 0.025146484375, 0.01488494873046875, -0.0450439453125, -0.02789306640625, 0.0096282958984375, 0.004055023193359375, -0.0277252197265625, -0.01271820068359375, 0.005771636962890625, 0.001430511474609375, -0.0021514892578125, -0.004058837890625, -0.0053558349609375, 0.026092529296875, 0.0027637481689453125, -0.0027370452880859375, -0.0037212371826171875, -0.0179595947265625, 0.01047515869140625, -0.059112548828125, -0.03338623046875, 0.00771331787109375, -0.01535797119140625, 0.0007977485656738281, 0.0044708251953125, 0.0179901123046875, -0.0010509490966796875, 0.01392364501953125, -0.0054168701171875, 0.0014934539794921875, 0.0288238525390625, 0.053558349609375, -0.05047607421875, 0.005168914794921875, -0.0016765594482421875, 0.049652099609375, -0.08209228515625, 0.0209197998046875, -0.0145263671875, -0.0169830322265625, -0.040740966796875, -0.01424407958984375, -0.0115966796875, -0.080078125, 0.010467529296875, 0.058013916015625, 0.0115966796875, 0.00431060791015625, -0.0143890380859375, 0.0230560302734375, 0.057403564453125, 0.07720947265625, 0.04388427734375, -0.0181884765625, 0.0005955696105957031, -0.0207672119140625, 0.0021114349365234375, -0.00415802001953125, 0.0426025390625, -0.03668212890625, 0.05352783203125, 0.026519775390625, -0.020904541015625, -0.041351318359375, 0.00933837890625, -0.0033321380615234375, 0.02252197265625, -0.0080413818359375, -0.0419921875, 0.00257110595703125, 0.035491943359375, 0.03204345703125, 0.02899169921875, 0.02996826171875, -0.0304107666015625, 0.0254364013671875, 0.007720947265625, -0.03509521484375, 0.0007314682006835938, 0.0330810546875, 0.018646240234375, 0.020172119140625, -0.02276611328125, -0.01549530029296875, 0.0192413330078125, 0.0140380859375, -0.0233306884765625, -0.00926971435546875, -0.054351806640625, -0.00499725341796875, -0.01161956787109375, -0.07952880859375, 0.00635528564453125, 0.03033447265625, -0.0086669921875, -0.023529052734375, 0.00739288330078125, 0.0399169921875, 0.0006403923034667969, 0.024383544921875, -0.004177093505859375, -0.00887298583984375, -0.033843994140625, -0.06427001953125, 0.06170654296875, -0.0595703125, 0.0298919677734375, 0.057647705078125, -0.02984619140625, 0.0254058837890625, 0.00862884521484375, -0.019989013671875, -0.00533294677734375, 0.03045654296875, 0.0095977783203125, -0.02459716796875, -0.038909912109375, 0.012115478515625, 0.0306549072265625, -0.00872802734375, 0.01059722900390625, 0.0010595321655273438, -0.02032470703125, 0.00829315185546875, -0.037445068359375, -0.0138092041015625, -0.0002593994140625, -0.055084228515625, -0.01904296875, -0.0018701553344726562, -0.048614501953125, -0.0095367431640625, 0.03057861328125, -0.002506256103515625, -0.01177978515625, -0.0243988037109375, -0.0114288330078125, -0.06427001953125, -0.0628662109375, -0.06317138671875, 0.01259613037109375, -0.0026836395263671875, 0.00791168212890625, 0.0692138671875, 0.016357421875, -0.032196044921875, 0.032989501953125, 0.00659942626953125, -0.0185546875, 0.0193634033203125, 0.043182373046875, -0.017059326171875, -0.02532958984375, 0.0065155029296875, 0.0023822784423828125, 0.039947509765625, -0.04864501953125, -0.0160369873046875, -0.03936767578125, -0.0193634033203125, -0.0300445556640625, 0.0286865234375, 0.062347412109375, -0.00803375244140625, 0.0112457275390625, -0.038177490234375, 0.0118865966796875, -0.0318603515625, -0.0226287841796875, -0.0268096923828125, -0.02191162109375, 0.0158538818359375, -0.04229736328125, 0.038360595703125, 0.00022101402282714844, 0.0174713134765625, -0.00360870361328125, -0.0313720703125, 0.033538818359375, -0.0013141632080078125, 0.0052642822265625, -0.0033435821533203125, 0.0015592575073242188, -0.015106201171875, 0.050018310546875, -0.0024623870849609375, 0.050018310546875, -0.030242919921875, 0.05450439453125, -0.0684814453125, -0.04638671875, 0.0290374755859375, -0.030670166015625, 0.01580810546875, -0.0194091796875, -0.0224761962890625, 0.006649017333984375, 0.08551025390625, -0.0309600830078125, -0.02764892578125, -0.029205322265625, -0.01070404052734375, 0.0164947509765625, 0.0223236083984375, -0.0210418701171875, -0.0138092041015625, -0.058990478515625, -0.0034923553466796875, 0.0011463165283203125, -0.0291900634765625, -0.017547607421875, 0.013519287109375, -0.05133056640625, -0.02490234375, 0.02862548828125, -0.048919677734375, 0.011383056640625, 0.0269927978515625, -0.01309967041015625, 0.0018672943115234375, -0.01165771484375, -0.043365478515625, -0.06964111328125, -0.005657196044921875, -0.0216217041015625, 0.038177490234375, -0.010040283203125, 0.01373291015625, -0.02886962890625, 0.03778076171875, 0.01556396484375, 0.0050201416015625, 0.0045928955078125, 0.00727081298828125, -0.0061798095703125, -0.0275115966796875, 0.00606536865234375, -0.038482666015625, -0.038238525390625, -0.0114593505859375, -0.021484375, -0.00605010986328125, 0.0019474029541015625, -0.0177001953125, 0.033447265625, -0.02392578125, -0.0253753662109375, -0.0232391357421875, -0.0296173095703125, -0.0006971359252929688, -0.0106353759765625, -0.0291748046875, -0.0304107666015625, -0.0270233154296875, 0.03350830078125, -0.006381988525390625, 0.01296234130859375, 0.0203094482421875, 0.10369873046875, 0.005458831787109375, -0.015411376953125, -0.10113525390625, 0.00844573974609375, 0.0489501953125, 0.0016384124755859375, -0.004749298095703125, 0.0059051513671875, -0.0323486328125, 0.0294342041015625, 0.0165863037109375, 0.016815185546875, -0.025848388671875, 0.032562255859375, 0.00024819374084472656, -0.00799560546875, 0.0011959075927734375, -0.00873565673828125, 0.0302734375, 0.0138702392578125, -0.0164031982421875, -0.04510498046875, -0.031585693359375, 0.041015625, -0.0214080810546875, 0.06805419921875, -0.022735595703125, -0.039154052734375, 0.015167236328125, -0.01910400390625, 0.02056884765625, -0.0102386474609375, -0.0078887939453125, 0.0028400421142578125, -0.00662994384765625, -0.00884246826171875, 0.006938934326171875, -0.041656494140625, 0.0199127197265625, 0.007061004638671875, 0.02142333984375, 0.01097869873046875, 0.02325439453125, -0.0017843246459960938, 0.009490966796875, -0.02191162109375, -0.046966552734375, -0.048858642578125, -0.004764556884765625, 0.0283355712890625, 0.0187835693359375, -0.00420379638671875, 0.051116943359375, 0.027984619140625, 0.004177093505859375, 0.0088958740234375, -0.05609130859375, 0.021636962890625, -0.0389404296875, -0.0282440185546875, 0.02020263671875, -0.0399169921875, 0.01120758056640625, 0.01074981689453125, -0.0299530029296875, 0.005519866943359375, 0.00626373291015625, 0.029052734375, 0.0379638671875, 0.0273895263671875, -0.006023406982421875, 0.027557373046875, -0.022857666015625, 0.021209716796875, 0.00998687744140625, -0.020233154296875, 0.0034847259521484375, -0.051483154296875, 0.027679443359375, -0.052642822265625, -0.03765869140625, 0.07000732421875, -0.04510498046875, -0.01251983642578125, -0.02008056640625, -0.08001708984375, -0.04119873046875, -0.031402587890625, -0.0006160736083984375, 0.052215576171875, -0.00635528564453125, -0.0275421142578125, 0.03826904296875, -0.0255889892578125, 0.03839111328125, -0.0175933837890625, -0.004016876220703125, 0.01348114013671875, 0.00899505615234375, -0.05621337890625, -0.006000518798828125, 0.01435089111328125, 0.00011742115020751953, -0.035491943359375, -0.014801025390625, -0.035675048828125, 0.04071044921875, -0.03729248046875, 0.0281219482421875, -0.0118408203125, -0.0196075439453125, -0.004039764404296875, 0.0242919921875, 0.00782012939453125, 0.0008563995361328125, -0.0301666259765625, 0.00882720947265625, -0.03472900390625, 0.0008158683776855469, 0.0367431640625, -0.060882568359375, -0.00417327880859375, -0.04107666015625, 0.007640838623046875, 0.030303955078125, 0.0014486312866210938, -0.015625, -0.01474761962890625, 0.017669677734375, 0.033355712890625, 0.056854248046875, 0.006038665771484375, -0.0017681121826171875, 0.0074615478515625, 0.040069580078125, 0.009521484375, -0.0161895751953125, -0.0050048828125, -0.047882080078125, -0.055450439453125, -0.0889892578125, 0.0230255126953125, 0.04620361328125, -0.0166168212890625, 0.08233642578125, 0.058746337890625, 0.0509033203125, 0.002506256103515625, -0.0290069580078125, -0.00226593017578125, -0.0271148681640625, 0.0301513671875, -0.021728515625, -0.00977325439453125, 0.0157623291015625, -0.0168914794921875, 0.03936767578125, -0.01708984375, -0.0018672943115234375, 0.0167083740234375, -0.036224365234375, 0.01507568359375, 0.039520263671875, 0.0009489059448242188, 0.0066986083984375, 0.0185394287109375, 0.0159149169921875, 0.0250396728515625, 0.005878448486328125, 0.0170135498046875, -0.0246429443359375, 0.034820556640625, -0.01363372802734375, -0.052947998046875, 0.022430419921875, 0.01300811767578125, 0.007083892822265625, 0.02301025390625, -0.0096588134765625, 0.004085540771484375, -0.0230865478515625, 0.024444580078125, 0.00833892822265625, 0.01390838623046875, 0.0226593017578125, -0.005702972412109375, 0.039520263671875, 0.0128631591796875, -0.000995635986328125, -0.00489044189453125, 0.00481414794921875, -0.034393310546875, -0.018218994140625, -0.002960205078125, 0.00323486328125, -0.019287109375, -0.00215911865234375, -0.0008540153503417969, 0.0287017822265625, -0.0070953369140625, -0.0238189697265625, 0.0227508544921875, -0.0224609375, 0.008941650390625, 0.05047607421875, -0.06292724609375, 0.01885986328125, 0.0115814208984375, 0.031494140625, -0.0256805419921875, 0.005115509033203125, 0.04638671875, -0.0198211669921875, 0.0290985107421875, 0.051239013671875, -0.00362396240234375, 0.01155853271484375, 0.0036525726318359375, -0.015838623046875, 0.045806884765625, -0.0290069580078125, -0.003955841064453125, -0.000047326087951660156, -0.032012939453125, -0.000179290771484375, -0.006534576416015625, -0.00963592529296875, -0.0125732421875, -0.0506591796875, 0.074462890625, -0.048095703125, -0.004116058349609375, 0.0029087066650390625, 0.0491943359375, 0.0031108856201171875, 0.0005908012390136719, 0.056671142578125, -0.038330078125, -0.0154876708984375, 0.019134521484375, -0.0269775390625, -0.0086669921875, -0.003131866455078125, -0.044281005859375, 0.103515625, -0.0011072158813476562, 0.004512786865234375, -0.01029205322265625, 0.055908203125, 0.00045752525329589844, 0.03631591796875, -0.00775146484375, 0.0071563720703125, -0.07794189453125, 0.0264892578125, -0.02532958984375, 0.0246734619140625, -0.00023627281188964844, 0.024566650390625, 0.09246826171875, 0.025238037109375, -0.0225982666015625, -0.0263519287109375, 0.034027099609375, 0.048248291015625, -0.01122283935546875, 0.0220947265625, -0.0195465087890625, -0.0189666748046875, -0.005413055419921875, -0.006076812744140625, 0.0145111083984375, 0.017974853515625, -0.0477294921875, 0.01132965087890625, 0.0261993408203125, 0.04656982421875, 0.029083251953125, 0.036407470703125, -0.032958984375, 0.0272674560546875, 0.0589599609375, -0.05084228515625, 0.0174713134765625, 0.0110931396484375, -0.0180511474609375, 0.0108795166015625, 0.04913330078125, -0.00665283203125, 0.0311737060546875, -0.021728515625, 0.044219970703125, 0.0010662078857421875, 0.007129669189453125, 0.0198822021484375, 0.005962371826171875, 0.0249786376953125, 0.039031982421875, -0.0301513671875, 0.0268707275390625, -0.016326904296875, 0.006500244140625, -0.069091796875, -0.011077880859375, 0.035400390625, 0.04669189453125, -0.03985595703125, -0.04412841796875, 0.0140838623046875, 0.006011962890625, 0.021881103515625, 0.005191802978515625, 0.00411224365234375, -0.01041412353515625, 0.035369873046875, -0.0288238525390625, 0.006221771240234375, 0.036346435546875, 0.0286407470703125, 0.005107879638671875, 0.005931854248046875, -0.05419921875, -0.007793426513671875, -0.03955078125, 0.01641845703125, 0.00787353515625, 0.0489501953125, 0.0035762786865234375, 0.059539794921875, -0.03704833984375, -0.007625579833984375, -0.0224761962890625, 0.058563232421875, 0.016143798828125, 0.01224517822265625, -0.0015096664428710938, -0.0197601318359375, 0.002307891845703125, 0.015625, -0.005855560302734375, -0.0233612060546875, 0.0284881591796875, 0.03863525390625, -0.05780029296875, -0.034515380859375, 0.033050537109375, -0.020904541015625, 0.0078887939453125, -0.05291748046875, 0.029693603515625, 0.042816162109375, -0.0078582763671875, 0.0138397216796875, -0.043487548828125, 0.10430908203125, -0.036651611328125, 0.031494140625, -0.01312255859375, -0.039031982421875, 0.0404052734375, -0.02947998046875, 0.0970458984375, -0.0079345703125, -0.11810302734375, -0.0088653564453125, -0.07061767578125, -0.08306884765625, 0.069580078125, 0.06304931640625, -0.037567138671875, -0.0001157522201538086, -0.004482269287109375, -0.01067352294921875, 0.0016241073608398438, 0.0007867813110351562, -0.0009007453918457031, -0.00420379638671875, 0.0164642333984375, -0.00443267822265625, -0.02252197265625, -0.0189971923828125, 0.01024627685546875, 0.043487548828125, -0.003963470458984375, 0.053680419921875, -0.01285552978515625, 0.01470184326171875, -0.0270233154296875, 0.01357269287109375, -0.043243408203125, -0.0270233154296875, 0.03582763671875, -0.0089263916015625, -0.01381683349609375, -0.01221466064453125, -0.0160675048828125, 0.00850677490234375, 0.03564453125, -0.037139892578125, -0.01430511474609375, -0.007747650146484375, 0.0097198486328125, 0.01198577880859375, 0.0208587646484375, -0.032562255859375, -0.015960693359375, -0.058929443359375, -0.043914794921875, 0.0355224609375, 0.0032978057861328125, 0.01165771484375, 0.019500732421875, 0.0182952880859375, -0.0015726089477539062, 0.0267791748046875, -0.0309600830078125, 0.0662841796875, 0.04913330078125, -0.045684814453125, -0.05859375, -0.0025310516357421875, -0.00939178466796875, -0.01120758056640625, -0.015045166015625, 0.0535888671875, 0.004749298095703125, -0.04351806640625, 0.04022216796875, -0.00994873046875, 0.011199951171875, -0.045654296875, -0.019500732421875, 0.0241241455078125, -0.0020122528076171875, -0.004085540771484375, -0.01824951171875, -0.0127105712890625, -0.05645751953125, -0.0203399658203125, 0.0284576416015625, -0.041534423828125, -0.003871917724609375, -0.0711669921875, 0.0052032470703125, 0.0267791748046875, 0.0192413330078125, -0.061859130859375, 0.042236328125, -0.00811004638671875, 0.020172119140625, 0.0087738037109375, -0.0618896484375, 0.02081298828125, 0.060150146484375, -0.020294189453125, -0.038848876953125, -0.039947509765625, -0.0251617431640625, -0.0673828125, 0.0182952880859375, 0.007572174072265625, -0.03778076171875, 0.028350830078125, 0.046295166015625, 0.0274658203125, 0.09649658203125, 0.025909423828125, -0.030426025390625, -0.0150146484375, -0.003322601318359375, 0.0097503662109375, -0.00019633769989013672, 0.024810791015625, -0.021881103515625, -0.050567626953125, -0.0445556640625, 0.0249786376953125, 0.016448974609375, -0.042388916015625, -0.11785888671875, 0.044586181640625, -0.036346435546875, -0.042327880859375, -0.0462646484375, 0.0271148681640625, -0.0086517333984375, 0.035003662109375, 0.0027008056640625, -0.0229644775390625, 0.01087188720703125, 0.037261962890625, 0.00003993511199951172, -0.0158233642578125, 0.0654296875, 0.00382232666015625, -0.019256591796875, -0.0152130126953125, -0.0038547515869140625, -0.033660888671875, 0.020111083984375, -0.03546142578125, 0.0242919921875, 0.0247955322265625, -0.0701904296875, -0.05419921875, -0.0251617431640625, 0.02288818359375, -0.036102294921875, -0.0260009765625, -0.004489898681640625, -0.0101165771484375, 0.0831298828125, 0.0125732421875, 0.000598907470703125, -0.01300811767578125, -0.018585205078125, -0.073486328125, 0.009979248046875, -0.01525115966796875, 0.00374603271484375, -0.078369140625, -0.0131683349609375, 0.05938720703125, -0.0151214599609375, -0.00665283203125, -0.01284027099609375, -0.052001953125, 0.002140045166015625, -0.0164794921875, 0.0244598388671875, -0.05828857421875, 0.0609130859375, 0.01374053955078125, -0.03436279296875, -0.0026874542236328125, -0.0150909423828125, -0.024871826171875, -0.007144927978515625, -0.03656005859375, -0.028656005859375, 0.0022487640380859375, 0.01861572265625, 0.0207672119140625, 0.00011873245239257812, -0.0018291473388671875, 0.0075225830078125, 0.032867431640625, -0.006649017333984375, 0.0165863037109375, 0.0015850067138671875, 0.03631591796875, -0.01067352294921875, 0.0167388916015625, -0.00511932373046875, 0.034454345703125, -0.033203125, -0.012359619140625, -0.038116455078125, 0.0254974365234375, -0.05206298828125, 0.00867462158203125, -0.017059326171875, -0.0133056640625, 0.0171051025390625, 0.0248260498046875, 0.0011568069458007812, 0.002269744873046875, 0.006381988525390625, -0.003574371337890625, -0.00711822509765625, -0.0008497238159179688 ]
5dd0157bdb3417e8a6266d8370e76a145add6d67
Wordpress Stackexchange Q: How can I put a custom meta box above the editor but below the title section on the edit post page? I have a custom meta box for a custom post type that my client wants placed between the title/permalink section and the post editor in the admin panel. Is this possible and if so is there a hook/filter/etc that I would need to use? A: Instead of moving everything in the advanced section to the top, why not create a new section and move that to the top: // Create 'top' section and move that to the top add_action('edit_form_after_title', function() { global $post, $wp_meta_boxes; do_meta_boxes(get_current_screen(), 'top', $post); unset($wp_meta_boxes[get_post_type($post)]['top']); }); Now all you need to do is register the meta box using top for the section and high for the priority. It's working on WordPress 4.4.2 for me. I haven't tested this on other WP versions.
Q: How can I put a custom meta box above the editor but below the title section on the edit post page? I have a custom meta box for a custom post type that my client wants placed between the title/permalink section and the post editor in the admin panel. Is this possible and if so is there a hook/filter/etc that I would need to use? A: Instead of moving everything in the advanced section to the top, why not create a new section and move that to the top: // Create 'top' section and move that to the top add_action('edit_form_after_title', function() { global $post, $wp_meta_boxes; do_meta_boxes(get_current_screen(), 'top', $post); unset($wp_meta_boxes[get_post_type($post)]['top']); }); Now all you need to do is register the meta box using top for the section and high for the priority. It's working on WordPress 4.4.2 for me. I haven't tested this on other WP versions. A: * *Simply add a meta box using the advanced context, and high priority *Then, latch on to the edit_form_after_title hook *Print your meta boxes out there, then remove it so it doesn't appear twice. // Move all "advanced" metaboxes above the default editor add_action('edit_form_after_title', function() { global $post, $wp_meta_boxes; do_meta_boxes(get_current_screen(), 'advanced', $post); unset($wp_meta_boxes[get_post_type($post)]['advanced']); }); A: Here is how you can move specific meta boxes above the editor, but before I post the code I just would like to thank Andrew and mhulse. You guys rock! function foo_deck( $post_type ) { if ( in_array( $post_type, array( 'post', 'page' ) ) ) { add_meta_box( 'contact_details_meta', 'Contact Details', 'contact_details_meta', $post_type, 'test', // change to something other then normal, advanced or side 'high' ); } } add_action('add_meta_boxes', 'foo_deck'); function foo_move_deck() { # Get the globals: global $post, $wp_meta_boxes; # Output the "advanced" meta boxes: do_meta_boxes( get_current_screen(), 'test', $post ); # Remove the initial "advanced" meta boxes: unset($wp_meta_boxes['post']['test']); } add_action('edit_form_after_title', 'foo_move_deck'); A: To provide a full code example based on Andrew's answer ... I needed a way to include a "Deck" (aka subhead) to my posts; I wanted the deck field to appear after the main title bar. /** * Add a "deck" (aka subhead) meta box to post page(s) and position it * under the title. * * @todo Move to class. * @see http://codex.wordpress.org/Function_Reference/add_meta_box * @see http://wordpress.org/extend/ideas/topic/add-meta-box-to-multiple-post-types * @see https://github.com/Horttcore/WordPress-Subtitle * @see http://codex.wordpress.org/Function_Reference/wp_nonce_field */ # Adds a box to the main column on the Post and Page edit screens: function foo_deck($post_type) { # Allowed post types to show meta box: $post_types = array('post', 'page'); if (in_array($post_type, $post_types)) { # Add a meta box to the administrative interface: add_meta_box( 'foo-deck-meta-box', // HTML 'id' attribute of the edit screen section. 'Deck', // Title of the edit screen section, visible to user. 'foo_deck_meta_box', // Function that prints out the HTML for the edit screen section. $post_type, // The type of Write screen on which to show the edit screen section. 'advanced', // The part of the page where the edit screen section should be shown. 'high' // The priority within the context where the boxes should show. ); } } # Callback that prints the box content: function foo_deck_meta_box($post) { # Use `get_post_meta()` to retrieve an existing value from the database and use the value for the form: $deck = get_post_meta($post->ID, '_deck', true); # Form field to display: ?> <label class="screen-reader-text" for="foo_deck">Deck</label> <input id="foo_deck" type="text" autocomplete="off" value="<?=esc_attr($deck)?>" name="foo_deck" placeholder="Deck"> <?php # Display the nonce hidden form field: wp_nonce_field( plugin_basename(__FILE__), // Action name. 'foo_deck_meta_box' // Nonce name. ); } /** * @see https://wordpress.stackexchange.com/a/16267/32387 */ # Save our custom data when the post is saved: function foo_deck_save_postdata($post_id) { # Is the current user is authorised to do this action? if ((($_POST['post_type'] === 'page') && current_user_can('edit_page', $post_id) || current_user_can('edit_post', $post_id))) { // If it's a page, OR, if it's a post, can the user edit it? # Stop WP from clearing custom fields on autosave: if ((( ! defined('DOING_AUTOSAVE')) || ( ! DOING_AUTOSAVE)) && (( ! defined('DOING_AJAX')) || ( ! DOING_AJAX))) { # Nonce verification: if (wp_verify_nonce($_POST['foo_deck_meta_box'], plugin_basename(__FILE__))) { # Get the posted deck: $deck = sanitize_text_field($_POST['foo_deck']); # Add, update or delete? if ($deck !== '') { # Deck exists, so add OR update it: add_post_meta($post_id, '_deck', $deck, true) OR update_post_meta($post_id, '_deck', $deck); } else { # Deck empty or removed: delete_post_meta($post_id, '_deck'); } } } } } # Get the deck: function foo_get_deck($post_id = FALSE) { $post_id = ($post_id) ? $post_id : get_the_ID(); return apply_filters('foo_the_deck', get_post_meta($post_id, '_deck', TRUE)); } # Display deck (this will feel better when OOP): function foo_the_deck() { echo foo_get_deck(get_the_ID()); } # Conditional checker: function foo_has_subtitle($post_id = FALSE) { if (foo_get_deck($post_id)) return TRUE; } # Define the custom box: add_action('add_meta_boxes', 'foo_deck'); # Do something with the data entered: add_action('save_post', 'foo_deck_save_postdata'); /** * @see https://wordpress.stackexchange.com/questions/36600 * @see https://wordpress.stackexchange.com/questions/94530/ */ # Now move advanced meta boxes after the title: function foo_move_deck() { # Get the globals: global $post, $wp_meta_boxes; # Output the "advanced" meta boxes: do_meta_boxes(get_current_screen(), 'advanced', $post); # Remove the initial "advanced" meta boxes: unset($wp_meta_boxes['post']['advanced']); } add_action('edit_form_after_title', 'foo_move_deck'); Obviously, the code above could use some more work, but it should help others trying to do the same stuff (Andrew's answer shined light, but I thought it might be helpful to actually provide a working example). This answer also helped. Improvements that could be made: * *Make OOP/class(es). *Add styles/js to make it look/feel/behave like the title field. I plan on making the above improvements at some point in future, but at least the above code should help others trying to figure this out. See source code here for more inspiration (they opted to use jQuery to move the "sub-title"). A: There is an other way, by the way we can put the editor to any position: * *Remove editor from support param when you register post_type *add a fake metabox add_meta_box( 'does-not-matter', __( 'Description'), function($post){ wp_editor($post->post_content,'post_content',array('name'=>'post_content')); }, 'post_type_type', 'advanced', 'high' );
wordpress
{ "language": "en", "length": 963, "provenance": "stackexchange_00019.jsonl.gz:415430", "question_score": "36", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36600" }
[ 0.06268310546875, -0.0153045654296875, 0.035736083984375, -0.0299835205078125, -0.0009431838989257812, -0.01471710205078125, 0.042694091796875, -0.03558349609375, 0.0287017822265625, 0.0186614990234375, 0.0093536376953125, -0.031982421875, -0.00536346435546875, -0.03717041015625, -0.031524658203125, -0.022674560546875, 0.02252197265625, -0.0290374755859375, 0.011749267578125, -0.0138092041015625, 0.0251007080078125, -0.0162353515625, 0.0276336669921875, -0.0249176025390625, 0.0022335052490234375, -0.00856781005859375, 0.06085205078125, -0.012542724609375, -0.0087127685546875, -0.0186309814453125, 0.00914764404296875, 0.01152801513671875, -0.004772186279296875, 0.0104827880859375, 0.01995849609375, 0.01033782958984375, 0.0038852691650390625, 0.008819580078125, 0.021881103515625, 0.01468658447265625, 0.006824493408203125, 0.0102996826171875, -0.0014810562133789062, 0.06195068359375, -0.01934814453125, -0.042388916015625, 0.01065826416015625, -0.0416259765625, 0.060394287109375, -0.02703857421875, -0.0273284912109375, 0.013885498046875, 0.0033931732177734375, -0.08001708984375, -0.033660888671875, -0.0280609130859375, -0.0013303756713867188, -0.0230560302734375, 0.03399658203125, 0.016143798828125, -0.0049896240234375, -0.0145263671875, 0.0128631591796875, -0.043975830078125, -0.01342010498046875, -0.008819580078125, -0.005451202392578125, -0.00714111328125, -0.0191802978515625, 0.015167236328125, 0.043792724609375, -0.028961181640625, 0.00849151611328125, -0.0289154052734375, -0.01024627685546875, -0.002178192138671875, 0.00040531158447265625, -0.0242767333984375, 0.02484130859375, -0.0169525146484375, 0.01312255859375, 0.038177490234375, 0.036651611328125, -0.04742431640625, 0.0260162353515625, -0.0217437744140625, -0.0196075439453125, -0.0086669921875, 0.00521087646484375, -0.04534912109375, -0.00978851318359375, -0.069091796875, -0.0227813720703125, 0.03216552734375, 0.00370025634765625, -0.04315185546875, 0.0259552001953125, 0.038970947265625, -0.02874755859375, -0.003021240234375, 0.004741668701171875, -0.031494140625, 0.030059814453125, -0.03179931640625, -0.00991058349609375, -0.009368896484375, -0.0152435302734375, -0.057769775390625, -0.00048422813415527344, 0.041473388671875, -0.02532958984375, -0.0496826171875, 0.0023441314697265625, -0.007171630859375, -0.02850341796875, 0.01071929931640625, -0.01480865478515625, -0.0190887451171875, -0.0077972412109375, -0.01412200927734375, 0.008026123046875, 0.02392578125, 0.0300140380859375, -0.0450439453125, 0.006256103515625, 0.0014810562133789062, -0.038848876953125, -0.0479736328125, -0.047393798828125, 0.0325927734375, -0.040008544921875, -0.00537109375, 0.07440185546875, 0.08721923828125, 0.046600341796875, -0.02813720703125, 0.01910400390625, -0.0202178955078125, -0.016998291015625, -0.0004329681396484375, -0.0015163421630859375, -0.002605438232421875, 0.015625, -0.0177459716796875, -0.04742431640625, 0.0562744140625, 0.01381683349609375, -0.01146697998046875, -0.0262603759765625, -0.102294921875, 0.0011224746704101562, -0.07110595703125, 0.02459716796875, 0.01163482666015625, 0.0021038055419921875, -0.00955963134765625, 0.06982421875, -0.03399658203125, -0.01457977294921875, -0.0457763671875, 0.0164337158203125, 0.0248565673828125, 0.0266265869140625, -0.01558685302734375, -0.0274505615234375, -0.01546478271484375, -0.05340576171875, -0.0121612548828125, 0.016754150390625, -0.003147125244140625, 0.04705810546875, 0.0325927734375, -0.006866455078125, -0.0242462158203125, -0.00693511962890625, -0.040985107421875, 0.027618408203125, 0.0440673828125, -0.0076446533203125, 0.0195465087890625, -0.003406524658203125, -0.049896240234375, 0.036407470703125, -0.02203369140625, -0.030364990234375, 0.012481689453125, 0.01198577880859375, 0.00820159912109375, -0.006328582763671875, 0.0110015869140625, 0.045684814453125, 0.0364990234375, -0.047882080078125, 0.0007991790771484375, -0.0181732177734375, -0.003337860107421875, 0.02215576171875, 0.00640869140625, -0.0069580078125, 0.0286102294921875, -0.05859375, 0.01355743408203125, 0.02099609375, 0.00399017333984375, 0.0163726806640625, 0.0153350830078125, -0.0086212158203125, 0.05303955078125, 0.0330810546875, -0.007266998291015625, 0.00618743896484375, -0.01441192626953125, 0.00873565673828125, -0.055419921875, -0.05206298828125, 0.032073974609375, -0.0102386474609375, 0.04937744140625, -0.0120697021484375, 0.03509521484375, -0.0024318695068359375, -0.041168212890625, -0.0063018798828125, -0.0020999908447265625, 0.06304931640625, 0.0110015869140625, -0.020721435546875, -0.01247406005859375, 0.0439453125, 0.03631591796875, -0.0634765625, 0.003795623779296875, 0.0274810791015625, 0.02630615234375, -0.045806884765625, -0.01030731201171875, -0.021087646484375, -0.034515380859375, -0.00887298583984375, 0.055908203125, 0.003917694091796875, 0.048980712890625, 0.01824951171875, 0.08905029296875, 0.018280029296875, -0.052825927734375, -0.006290435791015625, 0.042205810546875, -0.00496673583984375, 0.01424407958984375, -0.0181121826171875, -0.0120086669921875, 0.0237274169921875, -0.052947998046875, 0.00428009033203125, 0.044281005859375, -0.007259368896484375, -0.01389312744140625, 0.024444580078125, -0.033905029296875, 0.0224609375, -0.0250244140625, -0.053009033203125, 0.00893402099609375, 0.06884765625, 0.00783538818359375, 0.0791015625, 0.061309814453125, -0.0233612060546875, -0.0071258544921875, -0.01030731201171875, 0.031280517578125, -0.00574493408203125, -0.015411376953125, 0.003864288330078125, -0.0023326873779296875, -0.04290771484375, 0.0218658447265625, 0.0163726806640625, -0.013214111328125, -0.010498046875, 0.01241302490234375, -0.0212554931640625, -0.00635528564453125, 0.016632080078125, -0.016876220703125, -0.0036449432373046875, -0.004177093505859375, -0.008575439453125, -0.043731689453125, 0.0206451416015625, -0.0438232421875, -0.057952880859375, 0.0305938720703125, 0.01192474365234375, -0.06298828125, 0.018310546875, -0.0386962890625, 0.052886962890625, -0.040283203125, 0.0528564453125, 0.061248779296875, -0.04327392578125, 0.03240966796875, -0.018524169921875, 0.01654052734375, -0.043853759765625, 0.020233154296875, -0.0089263916015625, -0.04998779296875, -0.0307464599609375, 0.005771636962890625, 0.033935546875, 0.037384033203125, 0.027374267578125, -0.020355224609375, 0.0225982666015625, 0.040985107421875, -0.0184478759765625, -0.0193634033203125, 0.052581787109375, -0.036376953125, -0.0177764892578125, -0.00933074951171875, -0.03375244140625, -0.0227813720703125, 0.019561767578125, -0.0153350830078125, -0.01540374755859375, -0.006195068359375, 0.0157012939453125, -0.028900146484375, -0.04864501953125, -0.060394287109375, 0.0196990966796875, 0.0121307373046875, 0.007282257080078125, 0.0584716796875, 0.007965087890625, -0.07275390625, -0.0008668899536132812, 0.014617919921875, -0.0076141357421875, 0.03216552734375, 0.04925537109375, -0.055084228515625, 0.0268402099609375, 0.0021457672119140625, -0.006866455078125, 0.031890869140625, -0.0210723876953125, -0.0177459716796875, -0.0611572265625, -0.0207061767578125, -0.00789642333984375, 0.01290130615234375, 0.048095703125, -0.00862884521484375, 0.0264892578125, -0.044677734375, -0.022796630859375, 0.0199127197265625, -0.037353515625, -0.02972412109375, -0.007061004638671875, 0.0015459060668945312, -0.01203155517578125, 0.0249176025390625, 0.039581298828125, 0.031158447265625, 0.056610107421875, 0.01480865478515625, -0.021087646484375, -0.020538330078125, -0.01073455810546875, -0.07342529296875, -0.0013017654418945312, -0.011749267578125, 0.06488037109375, 0.00501251220703125, 0.012237548828125, -0.02667236328125, 0.052398681640625, -0.0447998046875, -0.078857421875, 0.072265625, -0.031646728515625, 0.0033855438232421875, -0.06256103515625, -0.04864501953125, 0.0030956268310546875, 0.1356201171875, -0.05548095703125, -0.0084228515625, 0.032470703125, 0.0025844573974609375, -0.01013946533203125, 0.0194549560546875, -0.06707763671875, -0.02093505859375, -0.11920166015625, 0.02191162109375, 0.026458740234375, -0.049774169921875, -0.034637451171875, 0.1070556640625, -0.09405517578125, -0.0264129638671875, 0.044219970703125, -0.054840087890625, 0.0021991729736328125, 0.05181884765625, -0.01319122314453125, 0.004390716552734375, -0.04156494140625, -0.029998779296875, -0.08123779296875, -0.0164947509765625, -0.0246124267578125, 0.05865478515625, -0.016265869140625, 0.0301513671875, -0.054046630859375, 0.0236358642578125, 0.004547119140625, 0.035369873046875, -0.0019969940185546875, 0.02691650390625, 0.0096893310546875, -0.054840087890625, -0.0020160675048828125, -0.046966552734375, 0.01258087158203125, 0.0255126953125, -0.0283050537109375, 0.02825927734375, -0.033203125, -0.0078887939453125, 0.00841522216796875, -0.0443115234375, -0.0240936279296875, -0.051422119140625, -0.0538330078125, 0.002292633056640625, -0.0229034423828125, -0.01088714599609375, -0.06292724609375, -0.060211181640625, -0.0254364013671875, -0.0181121826171875, -0.0196990966796875, 0.0274658203125, 0.0325927734375, 0.032196044921875, 0.0078277587890625, -0.0175628662109375, -0.015899658203125, 0.0243377685546875, -0.015960693359375, 0.008056640625, -0.006725311279296875, -0.02294921875, 0.03314208984375, -0.0226898193359375, 0.00017976760864257812, -0.0113372802734375, 0.039764404296875, -0.00077056884765625, -0.040924072265625, 0.0216064453125, -0.0362548828125, 0.01213836669921875, 0.0172576904296875, -0.0105438232421875, -0.00807952880859375, -0.034210205078125, 0.0228118896484375, -0.00478363037109375, 0.0234375, -0.0187530517578125, -0.01407623291015625, 0.0060577392578125, 0.004276275634765625, 0.035369873046875, 0.031768798828125, -0.00531768798828125, 0.0190887451171875, -0.009613037109375, -0.00395965576171875, 0.0072479248046875, -0.0299072265625, 0.0032501220703125, 0.00829315185546875, 0.03204345703125, -0.018341064453125, 0.0266571044921875, 0.006893157958984375, 0.03326416015625, 0.0010833740234375, -0.035736083984375, -0.0465087890625, 0.01035308837890625, 0.0367431640625, -0.0016870498657226562, -0.0055084228515625, 0.014404296875, 0.01654052734375, 0.0032253265380859375, 0.00653076171875, 0.01348876953125, -0.0021800994873046875, -0.01500701904296875, 0.00960540771484375, 0.0256500244140625, -0.0169830322265625, -0.031524658203125, 0.0587158203125, 0.01230621337890625, 0.0020294189453125, -0.003833770751953125, 0.018524169921875, 0.0273284912109375, 0.0233917236328125, 0.036590576171875, -0.02691650390625, 0.00887298583984375, -0.0168304443359375, -0.007648468017578125, -0.040924072265625, -0.021087646484375, 0.0009016990661621094, 0.0474853515625, 0.010498046875, 0.01007843017578125, 0.01015472412109375, -0.0128326416015625, -0.042816162109375, 0.0143890380859375, 0.0308074951171875, -0.060394287109375, -0.0032825469970703125, 0.01058197021484375, -0.0221405029296875, 0.00698089599609375, -0.01099395751953125, 0.042266845703125, -0.0114898681640625, 0.038421630859375, -0.00494384765625, 0.000965118408203125, -0.00849151611328125, -0.00829315185546875, -0.022705078125, 0.032012939453125, 0.0211639404296875, -0.042083740234375, -0.07080078125, 0.0097198486328125, -0.0133819580078125, 0.05072021484375, -0.0218963623046875, 0.011322021484375, -0.038726806640625, 0.028656005859375, -0.03192138671875, 0.018218994140625, 0.005481719970703125, -0.0173797607421875, -0.039093017578125, -0.005527496337890625, -0.04779052734375, 0.0040130615234375, -0.033477783203125, -0.049072265625, -0.02215576171875, -0.00982666015625, 0.0279693603515625, 0.0416259765625, -0.01377105712890625, -0.060211181640625, -0.0033206939697265625, -0.0133819580078125, 0.0144805908203125, 0.05615234375, -0.0052337646484375, 0.06427001953125, -0.007350921630859375, 0.051910400390625, 0.0247650146484375, 0.04010009765625, -0.004978179931640625, -0.03204345703125, 0.01546478271484375, -0.047698974609375, -0.0567626953125, -0.020751953125, -0.0144500732421875, 0.042083740234375, 0.05120849609375, -0.0185394287109375, 0.01953125, -0.0277862548828125, 0.01219940185546875, -0.0239410400390625, 0.0007634162902832031, -0.05047607421875, -0.02288818359375, 0.03167724609375, -0.03668212890625, 0.0119781494140625, -0.00023567676544189453, -0.0231170654296875, 0.046722412109375, -0.0310821533203125, 0.031585693359375, 0.046783447265625, -0.06317138671875, 0.048004150390625, 0.0401611328125, 0.02398681640625, 0.054931640625, -0.0101165771484375, 0.03271484375, 0.02264404296875, -0.007335662841796875, 0.0115203857421875, 0.005146026611328125, 0.062042236328125, 0.00945281982421875, -0.00566864013671875, 0.05511474609375, -0.0176239013671875, 0.016387939453125, 0.0308685302734375, 0.076416015625, -0.062347412109375, 0.01331329345703125, 0.01495361328125, -0.00029468536376953125, 0.047821044921875, -0.01861572265625, 0.0164794921875, -0.032318115234375, 0.060821533203125, -0.0189971923828125, -0.0022296905517578125, 0.0290069580078125, -0.036224365234375, -0.025115966796875, -0.040771484375, -0.00749969482421875, 0.0058746337890625, 0.0237274169921875, -0.0004012584686279297, -0.028594970703125, 0.003116607666015625, -0.00789642333984375, -0.01824951171875, 0.00989532470703125, -0.03680419921875, -0.06890869140625, -0.02069091796875, -0.028564453125, -0.0123443603515625, 0.032806396484375, 0.01007843017578125, 0.0084686279296875, 0.0474853515625, -0.007190704345703125, 0.022796630859375, 0.002292633056640625, -0.008087158203125, -0.0243072509765625, -0.03656005859375, 0.002002716064453125, -0.016448974609375, -0.0156402587890625, 0.01416015625, -0.01263427734375, -0.044921875, -0.0027256011962890625, 0.0081634521484375, 0.054443359375, -0.00423431396484375, -0.04095458984375, 0.04205322265625, -0.0014019012451171875, -0.033416748046875, 0.0188446044921875, 0.0214996337890625, -0.0308837890625, 0.006435394287109375, 0.0102691650390625, -0.00905609130859375, -0.016937255859375, 0.0171966552734375, -0.049957275390625, 0.0899658203125, -0.0214996337890625, 0.0218048095703125, 0.01800537109375, 0.03302001953125, -0.022064208984375, 0.01666259765625, -0.006183624267578125, 0.0290069580078125, -0.01291656494140625, 0.016937255859375, -0.032318115234375, -0.01433563232421875, 0.003864288330078125, 0.0599365234375, 0.04412841796875, 0.012176513671875, -0.050079345703125, -0.0169677734375, 0.0279693603515625, 0.05743408203125, 0.0168609619140625, 0.02447509765625, 0.0191192626953125, 0.020263671875, 0.0023593902587890625, 0.01216888427734375, 0.042572021484375, -0.0343017578125, -0.04949951171875, 0.0270233154296875, 0.0280303955078125, 0.0191650390625, -0.0034770965576171875, 0.034027099609375, -0.0299072265625, -0.00968170166015625, 0.03729248046875, -0.0240478515625, -0.024658203125, 0.00782012939453125, 0.0098876953125, -0.04351806640625, -0.006282806396484375, -0.0224761962890625, 0.03448486328125, 0.0313720703125, 0.0161285400390625, 0.0299072265625, 0.0277099609375, -0.0170135498046875, -0.00611114501953125, 0.01531982421875, 0.0109100341796875, -0.0267333984375, 0.040557861328125, 0.005397796630859375, 0.00885772705078125, -0.02557373046875, 0.039703369140625, 0.0253143310546875, 0.0430908203125, -0.0478515625, -0.020111083984375, 0.00908660888671875, -0.00433349609375, -0.004840850830078125, -0.022979736328125, -0.0172882080078125, 0.017974853515625, 0.032928466796875, -0.04827880859375, -0.01385498046875, 0.015869140625, 0.03997802734375, -0.00733184814453125, -0.0108795166015625, -0.0209808349609375, -0.0264434814453125, -0.0606689453125, 0.0164794921875, 0.01480865478515625, 0.0538330078125, 0.0413818359375, 0.041290283203125, 0.032867431640625, -0.02545166015625, -0.01239776611328125, 0.005352020263671875, -0.01520538330078125, 0.0191802978515625, -0.05108642578125, -0.029815673828125, 0.0000013709068298339844, 0.045989990234375, 0.04864501953125, 0.0255889892578125, 0.042022705078125, 0.01210784912109375, 0.0254364013671875, 0.0165863037109375, 0.0010004043579101562, -0.0139007568359375, 0.00495147705078125, -0.0196075439453125, 0.04833984375, 0.041778564453125, 0.0247344970703125, -0.0250396728515625, 0.040771484375, 0.055145263671875, 0.0066070556640625, -0.01071929931640625, 0.0210418701171875, -0.007266998291015625, 0.02117919921875, 0.006000518798828125, -0.00545501708984375, 0.0220184326171875, -0.0304718017578125, 0.0030422210693359375, -0.017852783203125, -0.06768798828125, 0.011566162109375, 0.04449462890625, -0.006267547607421875, -0.0135650634765625, -0.007965087890625, -0.01377105712890625, 0.0228424072265625, -0.0159759521484375, 0.019989013671875, 0.0794677734375, 0.0086212158203125, 0.029052734375, -0.042205810546875, -0.02093505859375, -0.00658416748046875, 0.03546142578125, -0.00039768218994140625, 0.050750732421875, -0.00872802734375, 0.01678466796875, -0.050201416015625, 0.0211944580078125, -0.03741455078125, -0.04034423828125, 0.0259552001953125, 0.0007953643798828125, -0.0015735626220703125, 0.0006608963012695312, -0.0281524658203125, 0.0008893013000488281, 0.05718994140625, -0.03558349609375, 0.00011754035949707031, 0.01007843017578125, 0.0182342529296875, -0.033843994140625, 0.01296234130859375, -0.0328369140625, 0.005062103271484375, -0.034027099609375, -0.033935546875, 0.03704833984375, -0.00516510009765625, -0.01151275634765625, 0.0192413330078125, 0.02435302734375, 0.011749267578125, 0.0237884521484375, 0.0016613006591796875, 0.0452880859375, 0.033111572265625, -0.042236328125, -0.00672149658203125, 0.01558685302734375, -0.0033550262451171875, 0.0216217041015625, 0.0203094482421875, -0.0149993896484375, 0.036712646484375, -0.05816650390625, 0.0102691650390625, 0.01506805419921875, 0.0282745361328125, -0.0205078125, 0.00183868408203125, 0.0058746337890625, -0.01544189453125, -0.00890350341796875, -0.00040435791015625, -0.0227508544921875, -0.01309967041015625, 0.0067138671875, 0.033966064453125, 0.00885772705078125, -0.00782012939453125, -0.088623046875, 0.0173187255859375, 0.0129241943359375, -0.0063934326171875, -0.044189453125, 0.032806396484375, -0.02655029296875, 0.0301361083984375, -0.01052093505859375, -0.0194549560546875, 0.0216522216796875, 0.07794189453125, -0.010589599609375, -0.02227783203125, -0.007152557373046875, 0.0007200241088867188, -0.04083251953125, 0.01158905029296875, 0.038299560546875, -0.01235198974609375, -0.036346435546875, -0.0076904296875, -0.0061798095703125, 0.042572021484375, -0.01511383056640625, -0.01197052001953125, -0.0101318359375, 0.0135345458984375, 0.005970001220703125, -0.038177490234375, 0.00035762786865234375, -0.01003265380859375, -0.02606201171875, 0.01081085205078125, -0.0157623291015625, 0.024871826171875, -0.019775390625, -0.0198211669921875, 0.0128326416015625, 0.018768310546875, -0.02630615234375, -0.03741455078125, 0.001644134521484375, -0.011138916015625, 0.070556640625, 0.01435089111328125, -0.0302276611328125, -0.01450347900390625, 0.013397216796875, -0.00373077392578125, 0.00275421142578125, 0.031494140625, -0.001003265380859375, -0.034149169921875, -0.01493072509765625, -0.006336212158203125, -0.0297088623046875, -0.031951904296875, -0.0012989044189453125, 0.02423095703125, -0.006908416748046875, -0.032806396484375, 0.01430511474609375, 0.03350830078125, 0.02703857421875, -0.0088653564453125, -0.0479736328125, -0.027130126953125, -0.0237579345703125, 0.06439208984375, 0.034393310546875, 0.0136871337890625, -0.03106689453125, 0.027679443359375, -0.025054931640625, -0.0270843505859375, 0.0006237030029296875, 0.00818634033203125, -0.0323486328125, -0.01507568359375, 0.0294342041015625, -0.0122222900390625, 0.0212860107421875, -0.00539398193359375, -0.0159149169921875, 0.0044403076171875, 0.0232391357421875, 0.002338409423828125, -0.0782470703125, 0.006938934326171875, 0.08563232421875, -0.059356689453125, -0.01552581787109375, 0.0278167724609375, -0.01175689697265625, 0.034881591796875, 0.01049041748046875, -0.0175018310546875, -0.00931549072265625, -0.0276031494140625, 0.021392822265625, -0.0283660888671875, 0.09185791015625, -0.045196533203125, -0.021270751953125, -0.04632568359375, 0.019073486328125, 0.01078033447265625, 0.00960540771484375, -0.03851318359375, 0.0433349609375, 0.027862548828125, 0.07574462890625, -0.0204925537109375, 0.046142578125, -0.0108795166015625, 0.0263671875, 0.0164031982421875, 0.0022716522216796875, 0.044464111328125, -0.01468658447265625, 0.02099609375, -0.002597808837890625, 0.0213470458984375, -0.0035610198974609375, -0.01390838623046875, 0.0033721923828125, -0.010711669921875, 0.004283905029296875 ]
8c90dbd67b2d6f65176e736c701dbb4cf4533563
Wordpress Stackexchange Q: wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i'm confused * *I've been reading up a bit on this subject, but the more I read - the more confused I get. *Can someone explain to me in short what's the exact difference between wp_enqueue_scripts, wp_register_scripts and wp_print_scripts? *For example, I have the following code in my functions.php - and it's working, but I do not understand why I can not use wp_print_scripts for the stylesheets, whereas the code still works if I use wp_enqueue_scripts for the javascript files: add_action('wp_print_scripts', 'add_my_js'); function add_my_js(){ if(!is_admin()){ wp_enqueue_script('default', get_bloginfo('stylesheet_directory').'/js/default.js', array('jquery')); } } add_action('wp_enqueue_scripts', 'add_my_stylesheet'); function add_my_stylesheet() { wp_register_style('default', get_bloginfo( 'stylesheet_url')); wp_enqueue_style( 'default'); } A: wp_print_scripts is the action that runs when scripts are output to the template. wp_register_script and wp_enqueue_script are functions for registering/enqueueing scripts to be output when wp_print_scripts runs. you can't register or enqueue styles in the wp_print_scripts action hook because styles have already been output in the wp_print_styles hook, which runs before wp_print_scripts. refer to the action reference to see the order things are executed in in a request: 22. wp_head 23. wp_enqueue_scripts 24. wp_print_styles 25. wp_print_scripts
Q: wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i'm confused * *I've been reading up a bit on this subject, but the more I read - the more confused I get. *Can someone explain to me in short what's the exact difference between wp_enqueue_scripts, wp_register_scripts and wp_print_scripts? *For example, I have the following code in my functions.php - and it's working, but I do not understand why I can not use wp_print_scripts for the stylesheets, whereas the code still works if I use wp_enqueue_scripts for the javascript files: add_action('wp_print_scripts', 'add_my_js'); function add_my_js(){ if(!is_admin()){ wp_enqueue_script('default', get_bloginfo('stylesheet_directory').'/js/default.js', array('jquery')); } } add_action('wp_enqueue_scripts', 'add_my_stylesheet'); function add_my_stylesheet() { wp_register_style('default', get_bloginfo( 'stylesheet_url')); wp_enqueue_style( 'default'); } A: wp_print_scripts is the action that runs when scripts are output to the template. wp_register_script and wp_enqueue_script are functions for registering/enqueueing scripts to be output when wp_print_scripts runs. you can't register or enqueue styles in the wp_print_scripts action hook because styles have already been output in the wp_print_styles hook, which runs before wp_print_scripts. refer to the action reference to see the order things are executed in in a request: 22. wp_head 23. wp_enqueue_scripts 24. wp_print_styles 25. wp_print_scripts
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:415469", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36744" }
[ -0.00020837783813476562, 0.0048065185546875, -0.041900634765625, -0.00617218017578125, 0.00876617431640625, -0.0535888671875, 0.0210418701171875, 0.00147247314453125, -0.05938720703125, 0.0146484375, -0.039337158203125, 0.033477783203125, -0.050689697265625, -0.00653839111328125, 0.0233612060546875, -0.0716552734375, 0.06622314453125, -0.06671142578125, -0.0045623779296875, -0.006473541259765625, 0.0161285400390625, 0.0268096923828125, 0.037353515625, 0.118896484375, -0.010009765625, -0.0230255126953125, 0.0946044921875, -0.00909423828125, 0.005825042724609375, -0.0081939697265625, 0.011474609375, -0.031097412109375, 0.0187835693359375, 0.02996826171875, -0.02545166015625, 0.0175628662109375, 0.038482666015625, -0.0001634359359741211, 0.01229095458984375, 0.03155517578125, 0.01432037353515625, 0.00775146484375, 0.0153350830078125, -0.0199737548828125, -0.0162506103515625, -0.0245361328125, 0.0153961181640625, -0.004638671875, -0.0088348388671875, 0.03765869140625, 0.002765655517578125, -0.00759124755859375, -0.005584716796875, 0.0223846435546875, 0.0007147789001464844, 0.006549835205078125, -0.008819580078125, -0.02093505859375, 0.01465606689453125, 0.069091796875, 0.01346588134765625, 0.01702880859375, -0.0101776123046875, -0.07183837890625, -0.01045989990234375, 0.00498199462890625, -0.00974273681640625, 0.004169464111328125, -0.006610870361328125, -0.006984710693359375, 0.00911712646484375, -0.023529052734375, -0.004550933837890625, -0.0236053466796875, -0.01385498046875, 0.0276641845703125, -0.0066986083984375, -0.00704193115234375, 0.03057861328125, -0.00939178466796875, -0.021270751953125, -0.032684326171875, -0.0243377685546875, 0.021728515625, -0.0249481201171875, 0.022552490234375, -0.018280029296875, -0.0139007568359375, -0.034820556640625, -0.034393310546875, -0.0258636474609375, -0.041961669921875, -0.0163116455078125, -0.04071044921875, -0.0172119140625, -0.038726806640625, 0.043365478515625, 0.071044921875, 0.0194091796875, 0.037628173828125, -0.0273895263671875, -0.0322265625, 0.00910186767578125, -0.040496826171875, 0.003864288330078125, 0.0794677734375, 0.00513458251953125, -0.005359649658203125, 0.015045166015625, 0.00601959228515625, 0.0233306884765625, -0.0198822021484375, 0.015869140625, -0.01044464111328125, -0.00868988037109375, -0.02093505859375, -0.0274810791015625, 0.025665283203125, 0.00850677490234375, 0.00864410400390625, 0.0232086181640625, 0.043731689453125, 0.037506103515625, -0.044830322265625, -0.00849151611328125, -0.00830841064453125, -0.01125335693359375, -0.07928466796875, 0.0205535888671875, 0.0404052734375, -0.00177764892578125, -0.010528564453125, 0.035552978515625, 0.00753021240234375, -0.0206298828125, -0.0181427001953125, 0.04766845703125, 0.0194244384765625, -0.01467132568359375, 0.0034332275390625, -0.002532958984375, -0.0267333984375, -0.00965118408203125, -0.00963592529296875, -0.026031494140625, 0.0042572021484375, 0.0271148681640625, 0.0201873779296875, -0.023956298828125, -0.032684326171875, 0.0008816719055175781, 0.0007228851318359375, 0.026641845703125, -0.01209259033203125, 0.0159454345703125, -0.04931640625, 0.0165557861328125, -0.025848388671875, 0.0196075439453125, -0.0211181640625, -0.034820556640625, 0.017120361328125, 0.0178070068359375, -0.04754638671875, -0.017608642578125, -0.038299560546875, 0.00726318359375, 0.00893402099609375, 0.0286407470703125, -0.012176513671875, -0.006439208984375, -0.057403564453125, 0.049072265625, -0.00408172607421875, -0.0247344970703125, 0.0496826171875, -0.0273590087890625, 0.017120361328125, 0.052581787109375, -0.044097900390625, -0.04827880859375, -0.032562255859375, 0.060882568359375, -0.032379150390625, -0.062103271484375, -0.0189208984375, 0.032684326171875, 0.06622314453125, 0.036346435546875, 0.0277252197265625, 0.07928466796875, -0.0262451171875, -0.0189971923828125, -0.003345489501953125, -0.0059814453125, -0.00553131103515625, 0.024139404296875, 0.0177154541015625, 0.009857177734375, -0.0206298828125, 0.01300811767578125, -0.007106781005859375, 0.035369873046875, -0.01641845703125, -0.04510498046875, 0.01416778564453125, -0.033721923828125, 0.047607421875, -0.036041259765625, 0.0036258697509765625, 0.0106201171875, -0.0095062255859375, 0.0013780593872070312, -0.02685546875, -0.0164031982421875, 0.01222991943359375, -0.0313720703125, 0.0667724609375, 0.0141448974609375, 0.01468658447265625, 0.0273590087890625, -0.038543701171875, 0.04925537109375, 0.0075531005859375, 0.005329132080078125, -0.03680419921875, -0.00923919677734375, -0.042633056640625, 0.0018224716186523438, -0.01332855224609375, -0.00799560546875, 0.06939697265625, -0.01251983642578125, 0.06549072265625, 0.00365447998046875, -0.029083251953125, 0.00989532470703125, -0.00809478759765625, 0.05316162109375, 0.00959014892578125, 0.02740478515625, 0.026336669921875, 0.005584716796875, 0.0252838134765625, 0.045166015625, -0.005435943603515625, 0.029296875, -0.01168060302734375, -0.006725311279296875, -0.003448486328125, 0.0099945068359375, 0.01483154296875, 0.0236968994140625, -0.042816162109375, 0.0131988525390625, 0.0496826171875, -0.0160064697265625, 0.00017142295837402344, -0.0190277099609375, 0.01461029052734375, 0.0125885009765625, 0.01442718505859375, 0.007442474365234375, 0.005649566650390625, -0.0160675048828125, -0.004154205322265625, -0.01010894775390625, -0.017608642578125, -0.0251922607421875, -0.00563812255859375, 0.032806396484375, -0.016510009765625, -0.0005440711975097656, 0.041168212890625, 0.00466156005859375, -0.0258331298828125, -0.00739288330078125, -0.015716552734375, -0.02105712890625, 0.006591796875, 0.004680633544921875, 0.042572021484375, -0.04345703125, -0.0169830322265625, -0.00910186767578125, -0.06475830078125, -0.0187835693359375, 0.02783203125, 0.0187835693359375, 0.004207611083984375, 0.03021240234375, 0.03240966796875, 0.01338958740234375, 0.003326416015625, 0.02984619140625, -0.023345947265625, 0.059295654296875, -0.0016660690307617188, 0.019439697265625, -0.0265960693359375, 0.027984619140625, 0.03399658203125, -0.023468017578125, 0.003452301025390625, 0.00006091594696044922, 0.02813720703125, 0.0268096923828125, -0.0172271728515625, -0.0111846923828125, -0.0150299072265625, -0.04547119140625, -0.01381683349609375, 0.0394287109375, 0.0294647216796875, 0.020660400390625, -0.0214996337890625, -0.0111541748046875, 0.023651123046875, -0.08270263671875, -0.0938720703125, -0.0489501953125, -0.11138916015625, 0.040313720703125, -0.0223541259765625, -0.041534423828125, -0.00548553466796875, 0.019683837890625, 0.03759765625, 0.0003733634948730469, -0.01303863525390625, 0.01091766357421875, -0.03131103515625, -0.044525146484375, -0.037933349609375, 0.01094818115234375, -0.01007080078125, 0.0163421630859375, 0.05633544921875, 0.01934814453125, -0.031646728515625, 0.045501708984375, -0.03790283203125, -0.020294189453125, 0.036956787109375, 0.02978515625, -0.058807373046875, -0.045074462890625, 0.0050048828125, -0.0142364501953125, 0.004093170166015625, 0.00988006591796875, 0.004913330078125, -0.01316070556640625, -0.0504150390625, 0.0016155242919921875, 0.060760498046875, 0.01000213623046875, -0.04205322265625, 0.053619384765625, -0.058868408203125, -0.03369140625, 0.0010232925415039062, -0.031982421875, 0.061431884765625, 0.01534271240234375, -0.01702880859375, 0.01555633544921875, 0.03790283203125, 0.02252197265625, 0.00460052490234375, 0.00897979736328125, -0.007457733154296875, 0.05096435546875, -0.00690460205078125, 0.007293701171875, -0.040252685546875, 0.02301025390625, -0.0227813720703125, 0.0229339599609375, 0.0022640228271484375, 0.005939483642578125, -0.0019044876098632812, -0.01065826416015625, -0.021331787109375, -0.047119140625, 0.012481689453125, -0.043701171875, 0.0109710693359375, -0.0297698974609375, 0.012359619140625, -0.005565643310546875, 0.06451416015625, -0.037811279296875, -0.0209197998046875, 0.0325927734375, 0.044281005859375, -0.07440185546875, -0.061126708984375, -0.014739990234375, 0.00742340087890625, -0.08453369140625, 0.0018482208251953125, -0.043304443359375, -0.013916015625, -0.00399017333984375, -0.026885986328125, -0.044769287109375, -0.07928466796875, 0.04388427734375, 0.019378662109375, -0.01593017578125, 0.01181793212890625, -0.006557464599609375, -0.024658203125, -0.01290130615234375, 0.01641845703125, -0.08453369140625, -0.01371002197265625, -0.0726318359375, 0.087890625, 0.05352783203125, -0.027008056640625, 0.01322174072265625, 0.046356201171875, -0.004924774169921875, 0.01490020751953125, 0.037353515625, 0.038055419921875, -0.0166778564453125, -0.04736328125, 0.0230255126953125, -0.06658935546875, -0.0248260498046875, 0.0015716552734375, -0.059234619140625, -0.0016679763793945312, 0.008575439453125, -0.009857177734375, 0.0654296875, -0.034149169921875, -0.0250244140625, 0.0235137939453125, 0.0322265625, -0.006252288818359375, 0.028717041015625, -0.03485107421875, 0.0220947265625, -0.0038280487060546875, -0.00966644287109375, -0.05328369140625, -0.0127716064453125, -0.0089874267578125, 0.0335693359375, 0.047515869140625, 0.0156402587890625, 0.073974609375, -0.004055023193359375, 0.0015802383422851562, 0.029937744140625, 0.023529052734375, -0.00041484832763671875, 0.004795074462890625, -0.004970550537109375, 0.0003685951232910156, -0.0255584716796875, 0.0006093978881835938, 0.0679931640625, 0.0138397216796875, -0.006927490234375, -0.0166168212890625, -0.0171661376953125, 0.0024814605712890625, -0.00911712646484375, 0.00762939453125, -0.0097198486328125, 0.02960205078125, 0.0019092559814453125, -0.0086822509765625, 0.006069183349609375, -0.00015306472778320312, 0.021820068359375, -0.026702880859375, 0.0294036865234375, 0.0489501953125, 0.045745849609375, -0.0153961181640625, -0.016357421875, 0.04046630859375, -0.0028934478759765625, 0.03173828125, 0.0175018310546875, 0.0225982666015625, 0.04168701171875, 0.0166778564453125, 0.0181427001953125, 0.0016765594482421875, -0.002471923828125, -0.0023097991943359375, -0.0204010009765625, -0.05084228515625, -0.051666259765625, 0.0119171142578125, 0.10394287109375, 0.0181427001953125, 0.0447998046875, 0.061370849609375, 0.031097412109375, -0.0394287109375, -0.042694091796875, 0.0268707275390625, -0.004329681396484375, -0.06756591796875, 0.0035533905029296875, -0.0246429443359375, -0.0189056396484375, -0.0181427001953125, 0.0249786376953125, 0.0019969940185546875, -0.00940704345703125, -0.005855560302734375, 0.012237548828125, -0.026824951171875, 0.03973388671875, 0.0110321044921875, -0.0207977294921875, 0.00830078125, 0.0236053466796875, 0.007293701171875, -0.00014579296112060547, 0.044281005859375, 0.01922607421875, 0.0179290771484375, -0.0083465576171875, -0.0278167724609375, 0.0189971923828125, -0.03961181640625, -0.031463623046875, 0.0007548332214355469, 0.0164947509765625, 0.007221221923828125, -0.007495880126953125, -0.0216217041015625, 0.01195526123046875, 0.039794921875, 0.0195770263671875, 0.027069091796875, 0.032318115234375, 0.040252685546875, -0.0278472900390625, 0.01019287109375, -0.01122283935546875, 0.0016927719116210938, -0.0186309814453125, 0.00811004638671875, -0.001708984375, -0.036468505859375, -0.039520263671875, -0.0022144317626953125, -0.0187530517578125, 0.0228729248046875, -0.0154876708984375, 0.0030155181884765625, -0.0411376953125, 0.0171356201171875, -0.058013916015625, -0.0014028549194335938, 0.06005859375, 0.028961181640625, -0.0005817413330078125, -0.032684326171875, -0.036376953125, -0.0304107666015625, -0.038116455078125, -0.0421142578125, 0.0018711090087890625, 0.0112152099609375, -0.007755279541015625, 0.0021724700927734375, -0.0307464599609375, -0.0271759033203125, -0.043121337890625, 0.047271728515625, 0.049835205078125, 0.07928466796875, -0.020263671875, 0.0716552734375, 0.009368896484375, -0.0027790069580078125, 0.0080413818359375, 0.035064697265625, -0.0020885467529296875, -0.007568359375, -0.0194549560546875, -0.07696533203125, 0.007259368896484375, -0.0116729736328125, -0.0033435821533203125, 0.050201416015625, 0.051727294921875, 0.0226898193359375, 0.01317596435546875, 0.038055419921875, 0.005420684814453125, -0.0056915283203125, -0.047882080078125, 0.0638427734375, 0.019195556640625, 0.039337158203125, -0.00717926025390625, 0.035552978515625, -0.005313873291015625, 0.0168304443359375, 0.036041259765625, -0.036834716796875, 0.0469970703125, -0.0097198486328125, -0.0386962890625, 0.0206756591796875, -0.031463623046875, 0.0111541748046875, -0.01126861572265625, -0.04107666015625, 0.01053619384765625, -0.032318115234375, 0.019378662109375, -0.01152801513671875, -0.034210205078125, 0.04498291015625, -0.01263427734375, 0.0093994140625, 0.0286102294921875, -0.00786590576171875, 0.0205078125, 0.048065185546875, 0.035369873046875, -0.08935546875, 0.017913818359375, -0.0009245872497558594, -0.0032100677490234375, 0.0261993408203125, -0.01812744140625, -0.004791259765625, -0.01282501220703125, 0.074462890625, 0.021514892578125, -0.0053863525390625, 0.04473876953125, 0.00852203369140625, 0.0018777847290039062, -0.02215576171875, -0.0205535888671875, -0.0026226043701171875, -0.0189666748046875, -0.0030498504638671875, 0.0278778076171875, -0.0241851806640625, -0.010406494140625, 0.0150909423828125, 0.002941131591796875, -0.022064208984375, -0.030792236328125, 0.0281982421875, -0.0261077880859375, -0.016632080078125, 0.0037593841552734375, -0.0030002593994140625, 0.035430908203125, 0.01453399658203125, 0.0088348388671875, -0.00688934326171875, -0.0102081298828125, 0.0218353271484375, 0.003955841064453125, -0.025665283203125, 0.03277587890625, 0.0428466796875, -0.057891845703125, 0.0287322998046875, 0.0174102783203125, -0.027069091796875, -0.0010957717895507812, -0.01708984375, 0.052001953125, -0.0394287109375, -0.018341064453125, -0.017425537109375, 0.0064544677734375, 0.0362548828125, -0.038116455078125, 0.022491455078125, -0.0927734375, -0.07147216796875, -0.01108551025390625, -0.08197021484375, -0.010101318359375, -0.056121826171875, -0.0125274658203125, 0.05718994140625, -0.035186767578125, -0.00762176513671875, 0.0421142578125, 0.01629638671875, -0.02069091796875, -0.005130767822265625, -0.003814697265625, 0.037933349609375, -0.0073394775390625, -0.00801849365234375, -0.00324249267578125, 0.00893402099609375, 0.0191802978515625, 0.01715087890625, 0.038543701171875, -0.0007643699645996094, -0.0086669921875, -0.007579803466796875, 0.058837890625, 0.05047607421875, 0.0193634033203125, -0.01161956787109375, 0.007396697998046875, 0.003589630126953125, 0.00853729248046875, -0.03240966796875, 0.02301025390625, -0.037261962890625, -0.020111083984375, 0.026702880859375, -0.0116119384765625, -0.0102386474609375, -0.01541900634765625, 0.01580810546875, -0.041229248046875, 0.007480621337890625, 0.018310546875, 0.03857421875, -0.054840087890625, 0.06103515625, -0.0249481201171875, 0.00434112548828125, -0.041717529296875, -0.034454345703125, 0.0100250244140625, -0.005657196044921875, 0.0088958740234375, 0.038482666015625, 0.01082611083984375, 0.0194244384765625, 0.024139404296875, 0.0207672119140625, 0.029052734375, 0.002330780029296875, 0.033599853515625, 0.021240234375, 0.03369140625, 0.0140838623046875, 0.0152740478515625, -0.010833740234375, 0.00971221923828125, -0.02728271484375, 0.00897979736328125, 0.02166748046875, 0.033966064453125, -0.0016679763793945312, -0.021636962890625, 0.0241241455078125, -0.0684814453125, -0.0182952880859375, -0.039154052734375, -0.0305938720703125, 0.0247802734375, -0.0081939697265625, -0.006999969482421875, -0.01114654541015625, 0.0305023193359375, 0.0010194778442382812, -0.06353759765625, 0.0322265625, 0.0265960693359375, 0.0704345703125, 0.00687408447265625, 0.061187744140625, -0.03814697265625, -0.04571533203125, -0.058258056640625, 0.039764404296875, 0.01204681396484375, 0.065185546875, -0.05560302734375, 0.027618408203125, -0.00865936279296875, 0.042755126953125, 0.01361846923828125, -0.0198822021484375, 0.024688720703125, -0.00946044921875, -0.0797119140625, -0.006046295166015625, 0.0213623046875, -0.0367431640625, -0.0170440673828125, 0.0018339157104492188, 0.0024776458740234375, -0.0033779144287109375, -0.007381439208984375, 0.00202178955078125, 0.0732421875, -0.0294036865234375, -0.0791015625, 0.031402587890625, -0.0017337799072265625, -0.027923583984375, 0.03387451171875, 0.012939453125, 0.05084228515625, -0.0251312255859375, -0.0548095703125, -0.0214996337890625, -0.00817108154296875, 0.01708984375, 0.0272979736328125, 0.0281219482421875, -0.0275421142578125, 0.0535888671875, 0.07421875, -0.03143310546875, 0.0095672607421875, 0.0260467529296875, 0.0247802734375, 0.0141448974609375, 0.02276611328125, 0.0380859375, -0.02679443359375, -0.0183563232421875, -0.005313873291015625, 0.048553466796875, 0.003452301025390625, 0.0266265869140625, -0.0253143310546875, 0.01983642578125, 0.044769287109375, 0.0245513916015625, -0.0007691383361816406, -0.0181732177734375, 0.059326171875, -0.039703369140625, 0.0201568603515625, -0.00800323486328125, -0.052093505859375, 0.0013418197631835938, 0.0206756591796875, -0.018707275390625, -0.00020623207092285156, 0.0034542083740234375, 0.0152435302734375, -0.0094451904296875, 0.0241546630859375, -0.0380859375, -0.040618896484375, -0.026123046875, 0.014251708984375, -0.00867462158203125, -0.024749755859375, -0.00787353515625, 0.0008411407470703125, 0.0284423828125, -0.03216552734375, 0.02716064453125, -0.0060577392578125, 0.04840087890625, 0.0224761962890625, 0.022705078125, 0.0272369384765625, 0.0099945068359375, -0.0176239013671875, 0.0218353271484375, 0.010406494140625, 0.01605224609375, -0.006847381591796875, 0.005084991455078125, -0.03887939453125, 0.035064697265625, 0.0294952392578125, 0.00797271728515625, 0.0233154296875, 0.017486572265625, -0.040679931640625, -0.0199127197265625, -0.0277862548828125, -0.01336669921875, -0.047576904296875, -0.017242431640625, 0.0013370513916015625, -0.018280029296875, -0.021881103515625, 0.00591278076171875, -0.0127716064453125, 0.01461029052734375, -0.01166534423828125, -0.01355743408203125, 0.0189056396484375, -0.049652099609375, -0.0167236328125, -0.0272369384765625, 0.011627197265625, -0.00885772705078125, -0.0124969482421875, -0.066162109375, -0.00965118408203125, -0.049774169921875, 0.0121307373046875, -0.0374755859375, 0.00021648406982421875, 0.02569580078125, -0.00879669189453125, 0.00695037841796875, 0.0179443359375, 0.01102447509765625, 0.064453125, -0.0185394287109375, -0.0198822021484375, -0.020721435546875, 0.03253173828125, 0.01430511474609375, -0.04620361328125, -0.0189666748046875, 0.00897216796875, 0.003673553466796875, 0.014312744140625, -0.010040283203125, 0.0125274658203125, -0.032684326171875, -0.08258056640625, 0.023284912109375, -0.0014801025390625, -0.04144287109375, -0.054229736328125, -0.0010509490966796875, 0.0167236328125, -0.018646240234375, -0.03173828125, -0.005733489990234375, -0.06048583984375, 0.01329803466796875, 0.0179443359375, 0.01441192626953125, 0.043487548828125, -0.0357666015625, -0.0292510986328125, 0.00716400146484375, 0.0114288330078125, 0.0198211669921875, -0.0170135498046875, -0.002384185791015625, 0.033447265625, 0.0248565673828125, -0.0117034912109375, 0.0504150390625, 0.02374267578125, -0.0021572113037109375, 0.00539398193359375, 0.0116424560546875, -0.043792724609375, 0.0174713134765625, 0.0921630859375, 0.032958984375, 0.0217132568359375, -0.033905029296875, -0.0148773193359375, -0.025360107421875, -0.00624847412109375, -0.0031490325927734375, 0.016632080078125, -0.03338623046875, 0.004520416259765625, 0.0007491111755371094, 0.006195068359375, -0.060821533203125, -0.032196044921875, -0.03729248046875, -0.045928955078125, -0.0252685546875, 0.034149169921875, -0.00765228271484375, -0.06182861328125, 0.07318115234375, -0.0175628662109375, 0.043975830078125, 0.01314544677734375, 0.04833984375, 0.052886962890625, 0.05389404296875, -0.0379638671875, 0.039459228515625, -0.05963134765625, -0.00846099853515625, -0.026580810546875, -0.005916595458984375, -0.0308837890625, 0.032318115234375, 0.0182342529296875, -0.0062103271484375, -0.006221771240234375, 0.0022830963134765625, 0.003902435302734375, -0.01080322265625, -0.027313232421875, 0.00736236572265625, -0.0293121337890625, 0.022674560546875, -0.015625, -0.0024356842041015625, 0.0121002197265625, 0.01435089111328125, 0.05767822265625, -0.003620147705078125, 0.0028400421142578125, -0.00951385498046875, -0.0006394386291503906, -0.033660888671875, 0.0012731552124023438, -0.0302581787109375, -0.0012388229370117188, 0.0189056396484375 ]
31ef920c999fa77dad57cc624c846de8b613db03
Wordpress Stackexchange Q: Adding rel="next" & rel="prev" for paginated archives Does someone perhaps know a plugin or snippet (besides Yoast's WordPress SEO) to accomplish this perhaps? Pagination with rel=“next” and rel=“prev” The only thing I've come across seems to be an 3-month old Trac ticket. A: Try putting this snippet in your functions.php <?php function rel_next_prev(){ global $paged; if ( get_previous_posts_link() ) { ?> <link rel="prev" href="<?php echo get_pagenum_link( $paged - 1 ); ?>" /><?php } if ( get_next_posts_link() ) { ?> <link rel="next" href="<?php echo get_pagenum_link( $paged +1 ); ?>" /><?php } } add_action( 'wp_head', 'rel_next_prev' ); ?> And if you don't want the next and prev rel links to show up on the singular pages just wrap the output markup in a !is_singular() if condition
Q: Adding rel="next" & rel="prev" for paginated archives Does someone perhaps know a plugin or snippet (besides Yoast's WordPress SEO) to accomplish this perhaps? Pagination with rel=“next” and rel=“prev” The only thing I've come across seems to be an 3-month old Trac ticket. A: Try putting this snippet in your functions.php <?php function rel_next_prev(){ global $paged; if ( get_previous_posts_link() ) { ?> <link rel="prev" href="<?php echo get_pagenum_link( $paged - 1 ); ?>" /><?php } if ( get_next_posts_link() ) { ?> <link rel="next" href="<?php echo get_pagenum_link( $paged +1 ); ?>" /><?php } } add_action( 'wp_head', 'rel_next_prev' ); ?> And if you don't want the next and prev rel links to show up on the singular pages just wrap the output markup in a !is_singular() if condition A: This pretty much does exactly that, as a plugin - http://wordpress.org/extend/plugins/pagination-rel-links/ A: Ok then this will be a good solution: $('YOUR_PAGINATION_A_ID').attr('rel', 'next'); $('YOUR_PAGINATION_A_ID').attr('rel', 'prev'); Try this, it might help you.
wordpress
{ "language": "en", "length": 156, "provenance": "stackexchange_00019.jsonl.gz:415485", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36800" }
[ 0.0955810546875, 0.0003752708435058594, 0.0631103515625, -0.068115234375, 0.0126190185546875, 0.00193023681640625, 0.021728515625, -0.056365966796875, 0.03228759765625, 0.0019664764404296875, -0.0060882568359375, -0.00250244140625, -0.0019969940185546875, -0.03125, 0.0058135986328125, -0.01308441162109375, 0.02886962890625, -0.0325927734375, 0.0270843505859375, 0.0090789794921875, -0.00817108154296875, 0.0188140869140625, 0.0474853515625, 0.0345458984375, 0.029205322265625, -0.0215911865234375, 0.097412109375, -0.037017822265625, 0.039459228515625, -0.0231781005859375, 0.0290069580078125, -0.02947998046875, 0.0193634033203125, -0.00109100341796875, -0.0055389404296875, -0.037750244140625, 0.00930023193359375, -0.006999969482421875, -0.007770538330078125, 0.01204681396484375, 0.0052032470703125, 0.0157318115234375, 0.02093505859375, -0.04522705078125, -0.0122833251953125, -0.031036376953125, 0.002750396728515625, -0.020111083984375, -0.0352783203125, 0.00714874267578125, 0.042816162109375, 0.030242919921875, 0.046661376953125, 0.01386260986328125, 0.006702423095703125, -0.0074920654296875, -0.0063629150390625, -0.035552978515625, 0.0294189453125, -0.01849365234375, 0.003826141357421875, -0.029937744140625, 0.024566650390625, -0.005275726318359375, -0.0189056396484375, -0.0141143798828125, -0.011260986328125, 0.038604736328125, -0.010040283203125, -0.06109619140625, -0.005229949951171875, 0.016448974609375, -0.007415771484375, -0.02587890625, -0.0269012451171875, 0.023895263671875, 0.0225982666015625, 0.000980377197265625, -0.007518768310546875, -0.00482940673828125, -0.01364898681640625, 0.00659942626953125, 0.00353240966796875, -0.0233154296875, -0.0026378631591796875, -0.01233673095703125, -0.020751953125, 0.0014638900756835938, -0.058319091796875, -0.0195770263671875, -0.04345703125, -0.00811004638671875, -0.0178375244140625, -0.044403076171875, -0.029815673828125, -0.0003514289855957031, 0.0220489501953125, 0.05364990234375, -0.0094757080078125, -0.004741668701171875, 0.00638580322265625, -0.032684326171875, -0.0044097900390625, -0.042694091796875, 0.00646209716796875, -0.000011861324310302734, 0.0075836181640625, 0.054534912109375, 0.060333251953125, 0.033843994140625, 0.000720977783203125, 0.05596923828125, -0.006317138671875, -0.00887298583984375, -0.03558349609375, 0.0134429931640625, -0.04766845703125, -0.008148193359375, 0.0032405853271484375, -0.009429931640625, 0.0036182403564453125, 0.024658203125, -0.026153564453125, -0.00396728515625, 0.022247314453125, 0.006175994873046875, 0.0024166107177734375, -0.02093505859375, 0.029998779296875, 0.06231689453125, -0.04071044921875, 0.0090484619140625, 0.029815673828125, -0.02880859375, -0.0233306884765625, -0.04351806640625, 0.0131072998046875, -0.0061798095703125, 0.014556884765625, 0.007022857666015625, -0.026702880859375, 0.00653839111328125, 0.0302886962890625, -0.032012939453125, 0.012176513671875, 0.03314208984375, 0.01556396484375, 0.00386810302734375, -0.0239410400390625, -0.051300048828125, 0.024749755859375, -0.035858154296875, 0.04998779296875, -0.01837158203125, -0.0460205078125, -0.0245361328125, -0.0260772705078125, 0.0053863525390625, -0.0177154541015625, -0.034515380859375, 0.0102996826171875, -0.01352691650390625, -0.00353240966796875, -0.09075927734375, -0.09478759765625, 0.017852783203125, -0.056304931640625, -0.00846099853515625, 0.0289459228515625, 0.043121337890625, 0.03582763671875, -0.03350830078125, 0.022674560546875, 0.01184844970703125, -0.014923095703125, 0.00856781005859375, 0.0183563232421875, -0.0120086669921875, 0.0202789306640625, 0.04315185546875, 0.006927490234375, -0.021636962890625, 0.057403564453125, -0.0157623291015625, -0.04876708984375, 0.056243896484375, 0.00821685791015625, 0.07330322265625, 0.003917694091796875, 0.019683837890625, 0.00980377197265625, 0.03277587890625, -0.0165863037109375, -0.0233306884765625, 0.0063629150390625, -0.002635955810546875, 0.01039886474609375, -0.0030422210693359375, 0.00992584228515625, -0.00930023193359375, -0.0182647705078125, -0.004009246826171875, -0.019439697265625, 0.0219268798828125, -0.03216552734375, -0.0096435546875, -0.01299285888671875, 0.0186767578125, -0.02154541015625, 0.00777435302734375, 0.01078033447265625, -0.0272674560546875, -0.0056915283203125, -0.040252685546875, -0.0199127197265625, 0.033966064453125, 0.0026721954345703125, -0.0108795166015625, 0.01483154296875, 0.00435638427734375, 0.0382080078125, 0.018798828125, 0.0177764892578125, 0.0018358230590820312, 0.0408935546875, -0.0252532958984375, -0.02587890625, -0.03424072265625, -0.03173828125, -0.0015630722045898438, -0.07940673828125, 0.07684326171875, 0.038055419921875, 0.0404052734375, -0.0172882080078125, 0.0084991455078125, 0.02410888671875, -0.009063720703125, -0.0034542083740234375, 0.027008056640625, 0.02337646484375, 0.0179290771484375, 0.000629425048828125, -0.00406646728515625, -0.00354766845703125, -0.03497314453125, 0.0386962890625, -0.032012939453125, -0.052978515625, -0.0119781494140625, 0.053192138671875, 0.025726318359375, 0.01007843017578125, 0.033355712890625, -0.0220184326171875, 0.03253173828125, 0.0199432373046875, 0.0177459716796875, -0.00577545166015625, 0.0096282958984375, -0.006313323974609375, 0.0277252197265625, -0.0023975372314453125, -0.004192352294921875, 0.00864410400390625, -0.0119781494140625, 0.00998687744140625, 0.006038665771484375, -0.0008263587951660156, -0.0272216796875, 0.0031833648681640625, -0.000021517276763916016, 0.014068603515625, 0.0310516357421875, -0.0306243896484375, 0.020843505859375, -0.0006966590881347656, -0.00206756591796875, 0.01580810546875, -0.006763458251953125, -0.004276275634765625, 0.0276947021484375, -0.00045299530029296875, -0.00916290283203125, -0.0054473876953125, -0.046173095703125, -0.0000699162483215332, 0.006023406982421875, -0.032745361328125, -0.00750732421875, 0.021514892578125, 0.04168701171875, -0.0184326171875, 0.0173187255859375, -0.01230621337890625, 0.005584716796875, -0.00662994384765625, -0.049163818359375, 0.065673828125, -0.07879638671875, -0.0002472400665283203, 0.055206298828125, -0.0430908203125, 0.040985107421875, -0.0004372596740722656, -0.0149383544921875, -0.038238525390625, 0.006465911865234375, -0.0260467529296875, -0.018798828125, -0.0557861328125, 0.016021728515625, 0.0305328369140625, 0.01505279541015625, 0.025848388671875, -0.027130126953125, 0.01303863525390625, 0.044158935546875, -0.06494140625, -0.054412841796875, 0.0221405029296875, -0.100341796875, -0.0131072998046875, 0.06597900390625, -0.0802001953125, -0.0223388671875, 0.1298828125, 0.004581451416015625, 0.0233154296875, -0.03887939453125, -0.06256103515625, -0.058319091796875, -0.0806884765625, 0.0214996337890625, 0.00417327880859375, 0.00873565673828125, -0.0187225341796875, 0.04913330078125, -0.01290130615234375, -0.044036865234375, -0.025299072265625, -0.033416748046875, 0.004932403564453125, -0.014801025390625, -0.0306396484375, -0.016815185546875, 0.002841949462890625, -0.0111846923828125, 0.042205810546875, 0.0260467529296875, -0.0007352828979492188, 0.03704833984375, -0.006885528564453125, 0.0208740234375, 0.032440185546875, 0.0214691162109375, -0.005001068115234375, 0.02520751953125, 0.044586181640625, -0.01316070556640625, -0.01265716552734375, -0.0207672119140625, -0.055328369140625, -0.00618743896484375, 0.048980712890625, -0.01207733154296875, -0.0364990234375, -0.006622314453125, -0.0287017822265625, -0.0307464599609375, 0.005756378173828125, -0.029449462890625, 0.006809234619140625, -0.00733184814453125, -0.0193634033203125, 0.00733184814453125, 0.032012939453125, 0.01568603515625, -0.0141448974609375, 0.0009927749633789062, 0.04144287109375, -0.0013637542724609375, 0.0021533966064453125, -0.06658935546875, -0.046844482421875, 0.0294647216796875, -0.0389404296875, 0.037841796875, -0.0567626953125, -0.01549530029296875, -0.033599853515625, 0.06878662109375, -0.06640625, -0.034332275390625, 0.004421234130859375, 0.0191802978515625, 0.035125732421875, -0.0270233154296875, -0.0002346038818359375, -0.060791015625, -0.0677490234375, 0.0024280548095703125, -0.0260009765625, -0.01983642578125, -0.00919342041015625, 0.0299072265625, -0.0159149169921875, -0.0372314453125, 0.0231475830078125, 0.001941680908203125, -0.01245880126953125, 0.0400390625, -0.03271484375, 0.03021240234375, -0.030029296875, -0.0249176025390625, -0.07861328125, -0.0270233154296875, 0.0163116455078125, 0.08319091796875, 0.0244140625, -0.0736083984375, -0.035491943359375, 0.045257568359375, 0.0198974609375, -0.0113677978515625, 0.034912109375, 0.0035800933837890625, 0.007434844970703125, 0.005367279052734375, 0.01454925537109375, -0.02679443359375, 0.0154876708984375, 0.015716552734375, -0.0065460205078125, 0.0070343017578125, -0.0511474609375, -0.0230560302734375, -0.019561767578125, -0.0333251953125, -0.0643310546875, -0.03607177734375, 0.0218353271484375, 0.0496826171875, 0.004093170166015625, 0.01006317138671875, -0.054473876953125, -0.05731201171875, -0.01025390625, 0.002094268798828125, -0.04791259765625, 0.0203399658203125, -0.00275421142578125, 0.043060302734375, -0.01340484619140625, -0.005645751953125, 0.007320404052734375, 0.04339599609375, -0.01091766357421875, 0.040496826171875, 0.0133056640625, -0.01385498046875, 0.05615234375, -0.0016756057739257812, 0.0188140869140625, -0.0226898193359375, -0.01229095458984375, 0.00897979736328125, -0.034912109375, 0.029815673828125, -0.0029506683349609375, 0.02789306640625, -0.006397247314453125, -0.0255126953125, -0.0271453857421875, -0.0006856918334960938, 0.06536865234375, -0.020355224609375, 0.07684326171875, -0.0313720703125, -0.0208587646484375, -0.00926971435546875, 0.0423583984375, 0.0662841796875, 0.0287933349609375, 0.002712249755859375, 0.040557861328125, 0.05316162109375, -0.032684326171875, 0.0058135986328125, 0.036773681640625, 0.0263671875, 0.016571044921875, -0.016204833984375, -0.02728271484375, -0.04559326171875, -0.00750732421875, 0.0728759765625, 0.019775390625, -0.0124664306640625, -0.0181427001953125, -0.013824462890625, -0.009765625, -0.006656646728515625, -0.00035309791564941406, 0.034027099609375, 0.0165863037109375, 0.01404571533203125, 0.01181793212890625, -0.018707275390625, 0.00815582275390625, -0.03521728515625, 0.0138702392578125, -0.0188751220703125, 0.0157623291015625, 0.0225372314453125, 0.07818603515625, -0.0005998611450195312, 0.06390380859375, -0.0210723876953125, -0.01386260986328125, 0.011749267578125, 0.01275634765625, 0.021392822265625, 0.0013494491577148438, -0.0070037841796875, 0.0024280548095703125, 0.060028076171875, -0.0400390625, -0.0003383159637451172, 0.030517578125, 0.04571533203125, 0.026336669921875, -0.00928497314453125, 0.0013942718505859375, 0.0010862350463867188, -0.02484130859375, 0.0212860107421875, 0.05340576171875, -0.0245208740234375, -0.005626678466796875, 0.01561737060546875, 0.0122528076171875, 0.0131072998046875, -0.0251007080078125, 0.04443359375, -0.00811004638671875, 0.035980224609375, -0.006168365478515625, -0.005687713623046875, 0.006626129150390625, 0.016937255859375, 0.007640838623046875, -0.00566864013671875, 0.0278167724609375, -0.003467559814453125, 0.033233642578125, -0.037017822265625, -0.0302581787109375, 0.027099609375, -0.005458831787109375, 0.07275390625, -0.037750244140625, -0.03839111328125, -0.0313720703125, -0.0027179718017578125, 0.045135498046875, 0.0274505615234375, -0.0316162109375, 0.0289306640625, -0.04620361328125, -0.0307769775390625, 0.01107025146484375, -0.006587982177734375, -0.036712646484375, -0.0265655517578125, 0.0254364013671875, 0.05108642578125, -0.04071044921875, -0.0426025390625, 0.00635528564453125, 0.0010080337524414062, -0.00922393798828125, 0.0701904296875, 0.0011081695556640625, 0.05987548828125, 0.01145172119140625, 0.0428466796875, 0.0186920166015625, 0.01401519775390625, -0.045013427734375, -0.00193023681640625, 0.034881591796875, -0.034271240234375, -0.04638671875, -0.029205322265625, -0.0419921875, 0.034637451171875, 0.05523681640625, -0.019073486328125, 0.02783203125, 0.0021228790283203125, 0.00949859619140625, 0.0093536376953125, -0.0279541015625, 0.0222320556640625, -0.01073455810546875, 0.0748291015625, 0.01605224609375, 0.03271484375, 0.0024814605712890625, -0.0309906005859375, 0.00714874267578125, 0.0188446044921875, 0.005157470703125, -0.00405120849609375, -0.045928955078125, 0.028289794921875, 0.062469482421875, 0.03515625, 0.058837890625, 0.0011844635009765625, 0.0280609130859375, 0.04010009765625, -0.02691650390625, 0.054962158203125, 0.0345458984375, 0.0675048828125, -0.0254974365234375, 0.01403045654296875, 0.05267333984375, -0.030975341796875, -0.004425048828125, -0.00928497314453125, 0.012054443359375, 0.007091522216796875, -0.0205078125, -0.004730224609375, -0.03436279296875, 0.01393890380859375, -0.006687164306640625, 0.00893402099609375, 0.0005488395690917969, 0.0447998046875, 0.00855255126953125, 0.0140533447265625, 0.029998779296875, -0.006313323974609375, -0.0165863037109375, -0.033416748046875, -0.0308380126953125, 0.0018339157104492188, -0.0220184326171875, 0.00836181640625, 0.0156402587890625, -0.0304412841796875, -0.023468017578125, 0.003204345703125, -0.0014553070068359375, -0.0210418701171875, -0.047576904296875, 0.01233673095703125, 0.0118408203125, 0.003978729248046875, 0.0252685546875, -0.0013971328735351562, 0.035125732421875, 0.03338623046875, 0.0225067138671875, -0.034454345703125, 0.00797271728515625, -0.04071044921875, 0.014801025390625, -0.004306793212890625, 0.0142364501953125, -0.0325927734375, -0.022796630859375, -0.008087158203125, -0.04083251953125, -0.01751708984375, -0.018218994140625, -0.0271759033203125, 0.0821533203125, -0.0297088623046875, -0.012725830078125, 0.01029205322265625, 0.015777587890625, -0.00201416015625, -0.01070404052734375, 0.00908660888671875, -0.0618896484375, -0.01019287109375, -0.0037174224853515625, -0.0009074211120605469, 0.025115966796875, -0.01131439208984375, -0.0821533203125, 0.057830810546875, -0.0017547607421875, 0.04144287109375, 0.005413055419921875, 0.01125335693359375, -0.0099029541015625, -0.00959014892578125, -0.00978851318359375, 0.02984619140625, 0.006839752197265625, 0.05322265625, -0.0167388916015625, -0.0200958251953125, 0.040008544921875, 0.07244873046875, 0.0263519287109375, 0.006511688232421875, -0.050262451171875, -0.01378631591796875, 0.04669189453125, 0.0592041015625, 0.0295867919921875, 0.0343017578125, -0.0220489501953125, 0.02459716796875, 0.0254058837890625, -0.048095703125, 0.01232147216796875, 0.00872802734375, -0.02685546875, 0.0045013427734375, 0.0162353515625, 0.0081329345703125, -0.005649566650390625, 0.0279693603515625, -0.087890625, 0.0264892578125, 0.047515869140625, 0.0182952880859375, 0.0188751220703125, 0.08648681640625, 0.040130615234375, -0.0430908203125, -0.0253143310546875, -0.04071044921875, 0.0467529296875, -0.037353515625, 0.027191162109375, 0.039703369140625, 0.0141448974609375, 0.06256103515625, 0.00988006591796875, 0.019561767578125, 0.0214385986328125, 0.0125274658203125, 0.060882568359375, 0.0209197998046875, 0.0220489501953125, -0.06512451171875, -0.032318115234375, 0.0582275390625, 0.0694580078125, -0.047637939453125, -0.032135009765625, 0.00024437904357910156, -0.006313323974609375, 0.02001953125, -0.0078277587890625, -0.00040650367736816406, -0.02655029296875, 0.005107879638671875, -0.0003657341003417969, -0.05023193359375, -0.012847900390625, 0.030731201171875, 0.0147705078125, 0.03387451171875, 0.007175445556640625, -0.06451416015625, -0.017913818359375, -0.00909423828125, -0.0008783340454101562, 0.053955078125, 0.021453857421875, 0.029327392578125, -0.01111602783203125, -0.0026226043701171875, -0.0007076263427734375, 0.04339599609375, -0.036773681640625, 0.0003337860107421875, -0.041229248046875, -0.042236328125, -0.045989990234375, 0.0295867919921875, 0.031585693359375, 0.006771087646484375, 0.00945281982421875, 0.018585205078125, 0.0166473388671875, -0.0007510185241699219, 0.04791259765625, -0.01047515869140625, 0.0253143310546875, -0.0310516357421875, 0.0699462890625, 0.0290069580078125, 0.01137542724609375, -0.031341552734375, 0.049835205078125, 0.034088134765625, -0.0309600830078125, 0.02935791015625, -0.00919342041015625, -0.0305023193359375, 0.040313720703125, -0.030364990234375, 0.0648193359375, 0.0034542083740234375, -0.07421875, 0.00670623779296875, -0.057525634765625, -0.050872802734375, 0.00830078125, 0.02874755859375, -0.023468017578125, 0.0259552001953125, 0.0307464599609375, -0.01407623291015625, 0.007396697998046875, -0.00992584228515625, 0.02655029296875, 0.004413604736328125, 0.00849151611328125, 0.0063018798828125, -0.018157958984375, -0.0156402587890625, -0.0022640228271484375, 0.03759765625, 0.0252227783203125, 0.0220794677734375, -0.00513458251953125, 0.0191192626953125, 0.005527496337890625, 0.0274200439453125, -0.0194244384765625, -0.0219268798828125, 0.05816650390625, -0.00017774105072021484, 0.02130126953125, -0.0263519287109375, -0.061065673828125, 0.037384033203125, 0.00897979736328125, -0.028533935546875, 0.044952392578125, -0.032958984375, 0.00341796875, -0.0247344970703125, -0.003368377685546875, -0.01654052734375, -0.037841796875, -0.01306915283203125, 0.0264892578125, 0.00554656982421875, -0.005214691162109375, -0.08160400390625, 0.031402587890625, 0.02227783203125, -0.00417327880859375, 0.0222015380859375, -0.0236663818359375, 0.035430908203125, 0.029571533203125, -0.005023956298828125, 0.00545501708984375, -0.0005593299865722656, -0.0232696533203125, 0.01560211181640625, 0.004085540771484375, -0.002315521240234375, -0.01629638671875, 0.013641357421875, -0.006198883056640625, 0.0168609619140625, 0.04443359375, -0.0062408447265625, 0.0193634033203125, 0.001575469970703125, 0.004913330078125, -0.01296234130859375, -0.038299560546875, -0.037567138671875, -0.0504150390625, -0.00899505615234375, 0.020751953125, -0.0115203857421875, -0.037689208984375, -0.04913330078125, -0.0140838623046875, 0.0234527587890625, 0.01910400390625, -0.0657958984375, 0.02008056640625, 0.0224609375, 0.036468505859375, -0.02392578125, -0.0184173583984375, -0.00968170166015625, -0.00787353515625, -0.0184173583984375, -0.042327880859375, -0.053741455078125, 0.04559326171875, -0.041107177734375, -0.020904541015625, 0.007640838623046875, -0.006069183349609375, -0.007404327392578125, -0.0479736328125, -0.00661468505859375, 0.003143310546875, 0.0211181640625, 0.0133819580078125, 0.0509033203125, -0.0017242431640625, -0.0428466796875, -0.07403564453125, 0.007038116455078125, -0.050018310546875, -0.0087127685546875, 0.025848388671875, -0.02166748046875, 0.0011053085327148438, -0.03887939453125, -0.06988525390625, 0.057861328125, -0.0012750625610351562, -0.03350830078125, -0.02728271484375, 0.023773193359375, 0.002964019775390625, -0.0119171142578125, 0.00736236572265625, -0.019287109375, -0.018829345703125, -0.0095367431640625, 0.0277862548828125, 0.0601806640625, -0.0043487548828125, 0.0428466796875, 0.00466156005859375, 0.04754638671875, 0.01502227783203125, 0.01031494140625, -0.017242431640625, 0.018707275390625, -0.0030422210693359375, 0.01389312744140625, -0.036956787109375, 0.02703857421875, -0.00579071044921875, 0.0226898193359375, 0.018402099609375, -0.0136260986328125, -0.038482666015625, -0.0302886962890625, 0.051513671875, 0.019378662109375, 0.019744873046875, -0.0029144287109375, 0.0123443603515625, 0.020904541015625, -0.050384521484375, 0.01108551025390625, 0.023101806640625, -0.044097900390625, -0.0092315673828125, 0.0008726119995117188, -0.004177093505859375, -0.03399658203125, -0.026458740234375, -0.06475830078125, -0.013214111328125, -0.062286376953125, 0.02813720703125, -0.0210113525390625, 0.0377197265625, 0.045440673828125, -0.04443359375, 0.002590179443359375, -0.00125885009765625, 0.0011272430419921875, 0.0019741058349609375, -0.0357666015625, -0.01465606689453125, 0.0340576171875, -0.037872314453125, -0.024200439453125, 0.0110321044921875, 0.0270233154296875, -0.015655517578125, 0.01690673828125, -0.0197906494140625, 0.016937255859375, 0.00885009765625, 0.01016998291015625, -0.025146484375, 0.0167236328125, 0.00732421875, 0.038818359375, -0.0159454345703125, 0.07647705078125, 0.01384735107421875, 0.0254058837890625, -0.0307159423828125, 0.018310546875, 0.00235748291015625, -0.031524658203125, 0.0030193328857421875, 0.0036792755126953125, -0.002285003662109375, -0.000008761882781982422, -0.0286712646484375, 0.035400390625, 0.002201080322265625, 0.00287628173828125 ]
8b3c54032d1be189f7a0b90eac100e4fb84ed373
Wordpress Stackexchange Q: Admin bar and fixed header issue? I've styled my header to have a fixed top position. While logged in to wordpress, the wp admin nav bar covers the top section of my header making imposible to access my top navigation. I would like for the wp admin nav to push my top navigation below so both are visible. Does anyone know of any solution to fix this problem? An example of my problem can be found at... www.nickriversdesign.com/dev A: Try adding this to your CSS file: body.admin-bar #branding-wrap{top: 28px;} body.admin-bar #wrapper{margin-top: 145px;} the body.admin-bardeclaration at the front will make sure that these styles only get applied when the admin bar is visible.
Q: Admin bar and fixed header issue? I've styled my header to have a fixed top position. While logged in to wordpress, the wp admin nav bar covers the top section of my header making imposible to access my top navigation. I would like for the wp admin nav to push my top navigation below so both are visible. Does anyone know of any solution to fix this problem? An example of my problem can be found at... www.nickriversdesign.com/dev A: Try adding this to your CSS file: body.admin-bar #branding-wrap{top: 28px;} body.admin-bar #wrapper{margin-top: 145px;} the body.admin-bardeclaration at the front will make sure that these styles only get applied when the admin bar is visible. A: Try this for WordPress 4+. It checks if the admin bar is present and if so move the fixed header down a bit to compensate. //fix for admin bar if ($('#wpadminbar')[0]) $('.site-header').css('top', '32px') A: This works as well body.logged-in > header { margin-top: 32px; } A: in your css you could try something like: body.logged-in{margin-top:20px;} or if this doesnt work some other code using the .logged-in class A: I believe, on devices with smaller widths, wpadminbar is not positioned fixed. So if you scroll the document in a smartphone, the admin bar will follow the scroll and will not stay at the top of the window. With keeping this in mind, why not add some javascript in the footer of your theme just after the wp_head() call. This way we can target the device width and whether or not the document has the adminbar. Then simply make some CSS rules and append it to the document head - like below! <script> ( function(e) { var ab = document.getElementById( 'wpadminbar' ); if ( typeof( ab ) === 'object' && window.innerWidth >= 610 ) { var abh = ab.offsetHeight || ab.clientHeight || ab.scrollHeight; var style = document.createElement( 'style' ); style.id = 'adminbar_main_nav_controle_rules'; document.getElementsByTagName( 'head' )[0].appendChild( style ); var rules = document.createTextNode( 'body.admin-bar .main-navigation.fixed { margin-top: ' + abh + 'px !important; }' ); style.appendChild( rules ); console.debug( 'wpadmibar space is covered' ); } })(); </script> Assuming your nav has a class 'main-navigation' and on scroll you add another class named 'fixed' to it. Change the CSS to target your navigation panel by replacing 'body.admin-bar .main-navigation.fixed' with howsoever you would want to target yours. It can be further improved for example checking if the admin bar is fixed or not, but for now, I hope it will helps. A: I just used this CSS. body.admin-bar #main-header { padding-top: 32px } A: I read all answers but didn't find that one: Why not use wp function: is_admin_bar_showing() example header.php theme file <nav class="nav-default" style="<?php echo is_admin_bar_showing() ? 'top: 32px' : ''; ?>"> A: give the top navbar .navbar-fixed-top { border-width: 0 0 1px; padding: 0; position: relative! } A: Try this, it is works fine $(document).ready(function() { if ($('#wpadminbar')[0]) { $('header').css('top', '32px') } });
wordpress
{ "language": "en", "length": 484, "provenance": "stackexchange_00019.jsonl.gz:415512", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36898" }
[ 0.0687255859375, -0.0083465576171875, 0.042327880859375, 0.0084991455078125, 0.0033855438232421875, -0.02532958984375, 0.05609130859375, -0.06475830078125, -0.0034332275390625, -0.0011014938354492188, -0.0179901123046875, -0.010040283203125, -0.0084686279296875, -0.03411865234375, 0.0274505615234375, -0.0423583984375, 0.005214691162109375, 0.007144927978515625, 0.0187835693359375, -0.00989532470703125, -0.02056884765625, -0.00582122802734375, 0.00859832763671875, 0.007808685302734375, 0.00704193115234375, 0.005748748779296875, 0.083251953125, -0.0313720703125, 0.00922393798828125, -0.0100555419921875, 0.0103912353515625, -0.016021728515625, -0.0178375244140625, 0.00753021240234375, 0.0521240234375, -0.01116180419921875, -0.00661468505859375, 0.024627685546875, 0.046234130859375, -0.03082275390625, -0.010589599609375, 0.0272979736328125, 0.0452880859375, 0.039886474609375, -0.009307861328125, -0.058319091796875, -0.005329132080078125, -0.043975830078125, 0.025665283203125, -0.0167999267578125, -0.002712249755859375, 0.012420654296875, 0.01421356201171875, -0.020843505859375, -0.011138916015625, 0.022857666015625, 0.0120849609375, -0.069091796875, 0.0188446044921875, 0.02435302734375, 0.00873565673828125, -0.031646728515625, 0.0246124267578125, -0.044189453125, -0.01323699951171875, 0.01030731201171875, 0.021636962890625, -0.00400543212890625, -0.0276641845703125, -0.0146026611328125, 0.0302886962890625, -0.031768798828125, -0.0112457275390625, 0.04736328125, -0.018951416015625, -0.08514404296875, 0.0203857421875, -0.0261993408203125, 0.02734375, 0.03125, 0.031951904296875, 0.06146240234375, -0.0272216796875, -0.0255889892578125, 0.007030487060546875, 0.0094757080078125, -0.0203399658203125, -0.032440185546875, -0.005947113037109375, 0.00003546476364135742, -0.00882720947265625, 0.01081085205078125, -0.006549835205078125, 0.03826904296875, -0.0193023681640625, -0.01027679443359375, 0.030853271484375, 0.041015625, -0.01473236083984375, -0.002002716064453125, -0.00013113021850585938, -0.033935546875, 0.00019979476928710938, -0.037017822265625, -0.00931549072265625, 0.027069091796875, 0.01751708984375, 0.03997802734375, 0.04010009765625, 0.018096923828125, 0.0062713623046875, 0.0263824462890625, -0.01126861572265625, -0.02862548828125, 0.00469970703125, 0.006465911865234375, -0.0458984375, 0.019744873046875, 0.0045623779296875, -0.0154266357421875, -0.003910064697265625, 0.018524169921875, -0.04766845703125, 0.01141357421875, 0.01331329345703125, 0.01165008544921875, -0.00972747802734375, 0.0202789306640625, -0.02825927734375, 0.0014142990112304688, -0.0159912109375, 0.0284423828125, 0.0550537109375, 0.031707763671875, 0.01540374755859375, -0.00495147705078125, 0.0286865234375, 0.0428466796875, 0.00848388671875, 0.01143646240234375, -0.002384185791015625, 0.01309967041015625, 0.036865234375, -0.0148773193359375, -0.04364013671875, 0.005126953125, 0.0069580078125, 0.031951904296875, -0.0222930908203125, -0.05126953125, 0.01239776611328125, -0.03070068359375, 0.0306549072265625, 0.031524658203125, -0.031982421875, 0.0221099853515625, 0.03271484375, 0.003543853759765625, -0.058441162109375, -0.0208587646484375, -0.01203155517578125, 0.029449462890625, 0.037506103515625, -0.044952392578125, -0.0287933349609375, -0.035552978515625, -0.053314208984375, 0.00019562244415283203, 0.0231781005859375, -0.0009260177612304688, 0.0196380615234375, -0.0091400146484375, 0.0045318603515625, 0.0032978057861328125, 0.003124237060546875, 0.010040283203125, 0.033416748046875, 0.01206207275390625, 0.023284912109375, 0.0149993896484375, -0.01226806640625, -0.034576416015625, 0.059722900390625, -0.033843994140625, -0.01036834716796875, 0.001895904541015625, 0.0164031982421875, 0.040008544921875, -0.0031890869140625, 0.03399658203125, 0.01442718505859375, 0.0033092498779296875, -0.0062103271484375, -0.014007568359375, -0.0161590576171875, 0.00817108154296875, -0.00992584228515625, 0.0304718017578125, -0.017608642578125, 0.006893157958984375, -0.0623779296875, 0.029052734375, -0.0208282470703125, 0.004489898681640625, 0.0218658447265625, -0.0131378173828125, 0.01030731201171875, 0.053131103515625, 0.0509033203125, 0.03350830078125, -0.0211639404296875, 0.013916015625, -0.0025501251220703125, -0.0428466796875, -0.04095458984375, -0.004360198974609375, -0.016693115234375, 0.076171875, -0.011322021484375, 0.056610107421875, -0.01380157470703125, -0.044525146484375, 0.004306793212890625, -0.0236053466796875, 0.04071044921875, -0.004795074462890625, -0.01751708984375, -0.015167236328125, 0.041229248046875, 0.006439208984375, -0.0255279541015625, 0.0248565673828125, 0.0033702850341796875, 0.0111236572265625, -0.02764892578125, -0.010345458984375, -0.00525665283203125, -0.053863525390625, 0.026336669921875, 0.034393310546875, 0.031463623046875, 0.0200958251953125, -0.0003917217254638672, 0.060791015625, -0.0015478134155273438, -0.06585693359375, -0.0083465576171875, 0.02642822265625, -0.00832366943359375, -0.008087158203125, 0.0308837890625, -0.038848876953125, 0.032470703125, -0.0302276611328125, 0.0159912109375, 0.01922607421875, -0.009185791015625, -0.02935791015625, -0.042327880859375, 0.051483154296875, -0.00698089599609375, -0.008026123046875, -0.0160980224609375, -0.0141754150390625, 0.005420684814453125, -0.00904083251953125, 0.039276123046875, 0.024139404296875, -0.0232696533203125, -0.040191650390625, 0.032135009765625, 0.08551025390625, -0.00830841064453125, 0.0267791748046875, 0.0477294921875, -0.0202178955078125, -0.0386962890625, -0.01812744140625, 0.0047454833984375, -0.00258636474609375, -0.0106964111328125, 0.02459716796875, 0.0291748046875, -0.01165771484375, -0.021453857421875, 0.00600433349609375, 0.040008544921875, 0.0208740234375, -0.0029544830322265625, 0.0015707015991210938, 0.01385498046875, 0.0304718017578125, -0.001857757568359375, 0.037078857421875, 0.003772735595703125, -0.00606536865234375, 0.003753662109375, -0.024505615234375, 0.0308837890625, -0.020477294921875, 0.07855224609375, 0.070068359375, 0.0024738311767578125, -0.0002586841583251953, -0.0205841064453125, 0.02337646484375, -0.020050048828125, 0.0007405281066894531, -0.00968170166015625, -0.039093017578125, 0.01983642578125, 0.0255889892578125, 0.02886962890625, 0.036224365234375, 0.0015382766723632812, -0.0275115966796875, -0.0275726318359375, 0.02911376953125, -0.043914794921875, -0.04248046875, -0.052978515625, -0.027130126953125, 0.005924224853515625, 0.0254974365234375, -0.00811767578125, 0.00437164306640625, 0.0384521484375, 0.0091705322265625, 0.0290985107421875, 0.0068206787109375, -0.038604736328125, -0.0074615478515625, -0.057403564453125, -0.044830322265625, -0.018524169921875, -0.0088958740234375, 0.0024166107177734375, -0.005390167236328125, -0.01282501220703125, -0.048583984375, -0.0207977294921875, 0.03070068359375, 0.01338958740234375, -0.00927734375, 0.01203155517578125, -0.033172607421875, -0.022796630859375, 0.01363372802734375, -0.07147216796875, -0.010223388671875, 0.019561767578125, -0.027587890625, -0.026641845703125, -0.08013916015625, -0.0202178955078125, 0.018768310546875, 0.0206146240234375, -0.05511474609375, 0.00811767578125, -0.069580078125, 0.0007481575012207031, -0.00839996337890625, -0.04937744140625, -0.039886474609375, 0.036895751953125, -0.01163482666015625, 0.01049041748046875, -0.066650390625, 0.022216796875, -0.0154876708984375, -0.00446319580078125, -0.02850341796875, 0.034423828125, 0.00907135009765625, 0.052734375, -0.0111541748046875, 0.0090179443359375, -0.0305023193359375, 0.046600341796875, 0.00930023193359375, -0.0247650146484375, -0.026275634765625, 0.046051025390625, 0.018157958984375, -0.0592041015625, 0.056488037109375, 0.01146697998046875, 0.0145416259765625, -0.007205963134765625, -0.042205810546875, 0.01837158203125, 0.10601806640625, -0.0296173095703125, -0.0037136077880859375, 0.01166534423828125, 0.01236724853515625, -0.0330810546875, -0.0082855224609375, -0.077880859375, -0.0154266357421875, -0.0897216796875, 0.02215576171875, 0.004390716552734375, -0.03143310546875, -0.01392364501953125, 0.03167724609375, -0.06256103515625, -0.039764404296875, 0.0193328857421875, -0.0177154541015625, -0.0158538818359375, 0.028228759765625, -0.048736572265625, 0.005035400390625, -0.00531768798828125, -0.034881591796875, -0.046234130859375, -0.01250457763671875, -0.0175018310546875, 0.048187255859375, 0.0004742145538330078, 0.0003590583801269531, -0.026611328125, 0.019287109375, -0.006744384765625, 0.004627227783203125, -0.007415771484375, 0.0089874267578125, 0.01451873779296875, -0.021636962890625, -0.0208587646484375, -0.014892578125, -0.001178741455078125, 0.0100555419921875, -0.06201171875, -0.005615234375, -0.0160980224609375, -0.0036411285400390625, 0.06341552734375, -0.047027587890625, -0.048828125, -0.05181884765625, -0.0148773193359375, 0.0065155029296875, -0.00533294677734375, 0.00835418701171875, -0.034423828125, -0.03912353515625, 0.007381439208984375, -0.0343017578125, -0.01160430908203125, 0.030242919921875, 0.0262603759765625, 0.012298583984375, -0.0006918907165527344, -0.0148773193359375, 0.0015325546264648438, 0.040557861328125, 0.0225982666015625, 0.047332763671875, 0.024078369140625, -0.026763916015625, 0.056060791015625, 0.02581787109375, 0.0013294219970703125, 0.035247802734375, 0.020721435546875, 0.0123291015625, -0.041046142578125, 0.0248260498046875, 0.0038700103759765625, -0.0548095703125, 0.018463134765625, -0.030181884765625, 0.0335693359375, -0.07098388671875, -0.00806427001953125, 0.043853759765625, -0.07073974609375, -0.048919677734375, 0.0280303955078125, -0.0139007568359375, -0.039825439453125, 0.081298828125, 0.03753662109375, -0.00017726421356201172, -0.0194091796875, 0.02191162109375, -0.0006580352783203125, -0.006072998046875, -0.0222625732421875, -0.03912353515625, 0.0084075927734375, 0.01395416259765625, -0.02239990234375, 0.0205230712890625, -0.0195159912109375, 0.09014892578125, 0.03265380859375, -0.046661376953125, 0.0164031982421875, -0.01245880126953125, 0.041168212890625, 0.004180908203125, 0.01047515869140625, 0.0286102294921875, -0.033355712890625, -0.0045318603515625, -0.008697509765625, -0.00603485107421875, -0.033447265625, -0.0271453857421875, 0.08660888671875, 0.049652099609375, -0.0030612945556640625, 0.0022735595703125, 0.059967041015625, 0.04150390625, 0.0129547119140625, -0.02227783203125, 0.003528594970703125, -0.023529052734375, 0.0306396484375, 0.0012674331665039062, 0.0105743408203125, 0.0234527587890625, -0.0161590576171875, 0.04205322265625, -0.0226287841796875, 0.0246124267578125, -0.01654052734375, 0.031585693359375, 0.054046630859375, -0.0072479248046875, 0.016937255859375, -0.041717529296875, -0.012298583984375, 0.022857666015625, -0.0253448486328125, -0.07305908203125, 0.0017147064208984375, 0.0400390625, 0.0226593017578125, -0.0306396484375, -0.01023101806640625, 0.00865936279296875, -0.049224853515625, -0.01007080078125, -0.0250091552734375, -0.00714874267578125, -0.019561767578125, -0.031646728515625, -0.011566162109375, -0.00687408447265625, 0.004619598388671875, -0.07025146484375, -0.0160980224609375, -0.030548095703125, -0.0020580291748046875, 0.06689453125, -0.040374755859375, 0.019256591796875, -0.03118896484375, 0.012115478515625, -0.058319091796875, 0.01678466796875, 0.022735595703125, 0.03448486328125, -0.06732177734375, -0.0089263916015625, -0.03228759765625, 0.00079345703125, -0.05810546875, -0.033172607421875, -0.040496826171875, 0.0142364501953125, 0.04766845703125, 0.0243988037109375, 0.005031585693359375, -0.07513427734375, -0.019989013671875, 0.019805908203125, 0.0618896484375, 0.05914306640625, -0.0333251953125, 0.02740478515625, -0.01143646240234375, 0.0013751983642578125, -0.0252532958984375, 0.0063018798828125, 0.037506103515625, -0.005645751953125, 0.00981903076171875, 0.01424407958984375, -0.0369873046875, -0.0008974075317382812, -0.0197601318359375, -0.002166748046875, 0.061614990234375, -0.0131378173828125, 0.037567138671875, -0.0203094482421875, 0.0261688232421875, -0.0338134765625, -0.0140228271484375, -0.07659912109375, -0.0276641845703125, -0.00299072265625, 0.04620361328125, 0.0797119140625, -0.0679931640625, -0.03765869140625, 0.0106658935546875, 0.01861572265625, 0.059478759765625, -0.043365478515625, -0.0526123046875, 0.07403564453125, 0.09698486328125, 0.033843994140625, 0.0572509765625, 0.02471923828125, 0.028106689453125, -0.01727294921875, 0.0158233642578125, 0.0311279296875, -0.01087188720703125, 0.040740966796875, -0.00833892822265625, 0.004756927490234375, 0.0243988037109375, -0.022735595703125, 0.007568359375, 0.04095458984375, 0.043243408203125, -0.07489013671875, 0.00975799560546875, -0.0016660690307617188, -0.0280609130859375, 0.033477783203125, 0.009552001953125, -0.0196075439453125, -0.04473876953125, 0.01207733154296875, -0.04034423828125, -0.023101806640625, -0.005405426025390625, -0.00968170166015625, -0.0199737548828125, -0.009429931640625, -0.0014438629150390625, 0.004764556884765625, -0.00876617431640625, -0.0216827392578125, -0.01438140869140625, -0.02020263671875, 0.00563812255859375, -0.01763916015625, 0.01107025146484375, -0.035003662109375, -0.0379638671875, 0.006591796875, -0.0369873046875, -0.01110076904296875, 0.0394287109375, 0.0325927734375, 0.004367828369140625, 0.034698486328125, -0.01136016845703125, 0.0312347412109375, -0.0092010498046875, 0.0194091796875, 0.048248291015625, 0.004764556884765625, 0.032135009765625, 0.008514404296875, -0.00484466552734375, 0.007843017578125, 0.0072021484375, -0.0281524658203125, -0.01221466064453125, -0.0247955322265625, 0.0780029296875, -0.05902099609375, 0.00856781005859375, 0.0128021240234375, 0.032073974609375, 0.003742218017578125, 0.0019063949584960938, 0.0640869140625, -0.062255859375, -0.0202178955078125, 0.02947998046875, -0.006420135498046875, -0.024261474609375, 0.026153564453125, -0.0169525146484375, 0.0130615234375, -0.020355224609375, 0.00824737548828125, 0.041534423828125, -0.001834869384765625, -0.0229034423828125, -0.01398468017578125, 0.00220489501953125, 0.044189453125, -0.0003647804260253906, -0.0275726318359375, -0.01556396484375, -0.002758026123046875, -0.0130767822265625, 0.0252838134765625, 0.005489349365234375, 0.006916046142578125, -0.038726806640625, 0.017974853515625, 0.049072265625, 0.037506103515625, 0.02392578125, 0.045684814453125, -0.0214080810546875, -0.0263671875, -0.0478515625, 0.0020694732666015625, 0.0271148681640625, -0.040802001953125, -0.07012939453125, 0.0026836395263671875, 0.01279449462890625, 0.0018301010131835938, 0.047637939453125, 0.049041748046875, -0.07159423828125, 0.021392822265625, 0.061492919921875, -0.055572509765625, -0.01349639892578125, 0.00406646728515625, 0.004730224609375, -0.04962158203125, 0.057342529296875, -0.040740966796875, 0.038299560546875, 0.00931549072265625, -0.00951385498046875, -0.00582122802734375, 0.0140228271484375, -0.0260162353515625, -0.0204010009765625, -0.00577545166015625, 0.0298004150390625, -0.036285400390625, 0.05548095703125, 0.0081634521484375, 0.066650390625, -0.03802490234375, -0.06121826171875, -0.024505615234375, 0.049468994140625, -0.001995086669921875, -0.045684814453125, 0.0233154296875, 0.0091705322265625, -0.012359619140625, 0.01763916015625, 0.0014896392822265625, -0.0416259765625, 0.0355224609375, 0.02783203125, -0.0030002593994140625, 0.0229034423828125, -0.0128326416015625, 0.025543212890625, 0.03704833984375, -0.0072021484375, 0.0399169921875, -0.036956787109375, -0.0033817291259765625, -0.0035343170166015625, 0.055999755859375, 0.046142578125, 0.016815185546875, -0.0286712646484375, -0.02923583984375, -0.00913238525390625, 0.00919342041015625, -0.0115509033203125, -0.0026950836181640625, -0.0157928466796875, -0.0185699462890625, -0.01214599609375, 0.0138702392578125, -0.01428985595703125, -0.0184173583984375, 0.010223388671875, 0.01036834716796875, -0.0254669189453125, -0.0189666748046875, 0.0285491943359375, -0.0206298828125, 0.00948333740234375, -0.0242919921875, 0.034637451171875, 0.00864410400390625, 0.007843017578125, -0.01013946533203125, 0.042694091796875, 0.0254974365234375, 0.031768798828125, -0.0166168212890625, 0.0263519287109375, -0.012298583984375, 0.0004429817199707031, 0.01213836669921875, -0.0294342041015625, 0.054931640625, -0.033355712890625, -0.0389404296875, 0.017852783203125, -0.051544189453125, 0.042572021484375, 0.05902099609375, 0.0058441162109375, -0.0290679931640625, 0.00931549072265625, -0.006511688232421875, -0.022247314453125, -0.02154541015625, 0.04461669921875, 0.01081085205078125, -0.006595611572265625, 0.0256195068359375, -0.035003662109375, -0.029510498046875, -0.0231475830078125, 0.048248291015625, 0.0159759521484375, -0.00023424625396728516, 0.0205841064453125, 0.03741455078125, -0.06884765625, 0.035858154296875, -0.0733642578125, -0.0206756591796875, -0.00615692138671875, 0.01445770263671875, -0.0177459716796875, 0.0047607421875, -0.11602783203125, 0.002605438232421875, 0.049163818359375, -0.033050537109375, 0.041290283203125, 0.033416748046875, -0.01087188720703125, -0.07183837890625, -0.00787353515625, -0.0300140380859375, -0.0382080078125, -0.00637054443359375, 0.006511688232421875, -0.00980377197265625, 0.01898193359375, 0.01239013671875, 0.041290283203125, 0.006855010986328125, -0.01425933837890625, 0.01459503173828125, -0.033721923828125, 0.02227783203125, 0.03643798828125, -0.00916290283203125, 0.0082244873046875, -0.01123046875, -0.018157958984375, 0.020477294921875, -0.0092620849609375, -0.000028192996978759766, -0.004634857177734375, -0.0072479248046875, 0.0278167724609375, 0.06036376953125, 0.0489501953125, -0.0251312255859375, 0.019561767578125, 0.03997802734375, -0.00933837890625, 0.01041412353515625, 0.0102386474609375, -0.0293121337890625, 0.005138397216796875, -0.0258331298828125, 0.02685546875, -0.0013017654418945312, -0.06756591796875, -0.1552734375, 0.03448486328125, 0.035003662109375, -0.011260986328125, -0.0204315185546875, 0.005924224853515625, -0.036956787109375, 0.0657958984375, 0.006816864013671875, 0.029754638671875, -0.004383087158203125, 0.007167816162109375, -0.053436279296875, -0.0246429443359375, -0.02178955078125, 0.0193939208984375, -0.033416748046875, -0.035797119140625, -0.012298583984375, 0.019195556640625, 0.0280914306640625, -0.047515869140625, -0.03533935546875, 0.0023288726806640625, -0.0246734619140625, -0.01113128662109375, -0.01363372802734375, 0.01261138916015625, -0.00614166259765625, -0.0189208984375, 0.0093994140625, -0.00576019287109375, -0.01409149169921875, -0.0173492431640625, -0.00605010986328125, 0.005580902099609375, -0.02569580078125, -0.0110931396484375, 0.01314544677734375, 0.019256591796875, -0.0220794677734375, -0.00325775146484375, 0.00812530517578125, -0.0252532958984375, 0.01861572265625, 0.003398895263671875, -0.040679931640625, 0.018707275390625, 0.0465087890625, 0.0211181640625, -0.0098419189453125, 0.045928955078125, -0.0325927734375, -0.006977081298828125, -0.0021915435791015625, 0.01314544677734375, 0.01495361328125, -0.04559326171875, 0.01483917236328125, 0.00041103363037109375, 0.01094818115234375, -0.01421356201171875, -0.0294952392578125, 0.02899169921875, -0.004138946533203125, 0.00371551513671875, 0.00955963134765625, -0.014892578125, -0.0003142356872558594, 0.0029048919677734375, 0.054901123046875, 0.0036258697509765625, -0.0189361572265625, 0.00623321533203125, -0.033416748046875, -0.0214691162109375, -0.0247802734375, 0.01280975341796875, -0.06829833984375, -0.0218505859375, 0.022918701171875, -0.005229949951171875, -0.0128631591796875, 0.0126190185546875, -0.00746917724609375, -0.00730133056640625, 0.005481719970703125, -0.0122222900390625, -0.00855255126953125, -0.03363037109375, 0.036712646484375, -0.04052734375, -0.05181884765625, 0.0069427490234375, 0.033416748046875, -0.0295867919921875, -0.0321044921875, 0.011138916015625, -0.00927734375, -0.043731689453125, -0.0024662017822265625, -0.002513885498046875, 0.0134735107421875, -0.03167724609375, -0.0195770263671875, -0.0263214111328125, 0.0139312744140625, 0.0025959014892578125, 0.003955841064453125, 0.002223968505859375, 0.017608642578125, 0.017547607421875, 0.048095703125, 0.0149078369140625, 0.03204345703125, -0.01250457763671875, 0.07525634765625, 0.00025391578674316406, -0.041229248046875, -0.002002716064453125, -0.033935546875, -0.0009016990661621094, 0.0360107421875, 0.044891357421875, -0.058349609375, 0.03045654296875, -0.0281829833984375, 0.07293701171875, 0.027374267578125 ]
13abe257cd8e127832bf31f32750e98a3a0f6ae4
Wordpress Stackexchange Q: Using chunk theme from wordpress.com on my own host I am new to wordpress so please excuse this question if it is obvious, but I was not able to find a good answer here or via the more general internet. I want to use the Chunk theme from wordpress.com but: * *I can't find it via the theme admin area of my local wordpress installation *I can't find a way to download a .zip file Is there a way to do this? If any further information is required I can provide as needed. A: The Chunk theme is currently under review. It has been set as unapproved by the WordPress.org theme review team. If the author makes the corrections it will be available in the WordPress theme repository.
Q: Using chunk theme from wordpress.com on my own host I am new to wordpress so please excuse this question if it is obvious, but I was not able to find a good answer here or via the more general internet. I want to use the Chunk theme from wordpress.com but: * *I can't find it via the theme admin area of my local wordpress installation *I can't find a way to download a .zip file Is there a way to do this? If any further information is required I can provide as needed. A: The Chunk theme is currently under review. It has been set as unapproved by the WordPress.org theme review team. If the author makes the corrections it will be available in the WordPress theme repository. A: The theme may be under review, but it is available via SVN at http://themes.svn.wordpress.org/chunk/1.0/ or via zip at http://wordpress.org/extend/themes/download/chunk.1.0.zip?nostats=1 So you can download it and use it with self-hosted Wordpress. A: This might help: http://themes.trac.wordpress.org/ticket/5249
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:415526", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/36938" }
[ -0.005992889404296875, -0.0330810546875, -0.020599365234375, -0.045135498046875, -0.029754638671875, -0.005619049072265625, -0.019317626953125, 0.02099609375, -0.00661468505859375, 0.01678466796875, -0.024139404296875, 0.00653076171875, 0.0064849853515625, -0.018463134765625, 0.0017547607421875, -0.01161956787109375, 0.035369873046875, -0.0090179443359375, 0.03033447265625, -0.0020656585693359375, -0.0005211830139160156, 0.02899169921875, -0.00992584228515625, 0.06585693359375, 0.05426025390625, 0.04974365234375, 0.05096435546875, -0.009796142578125, 0.04534912109375, 0.0165252685546875, 0.039337158203125, -0.08331298828125, 0.0289306640625, 0.03289794921875, -0.073486328125, -0.0537109375, -0.0171966552734375, 0.01019287109375, -0.0260162353515625, 0.043182373046875, 0.0007510185241699219, 0.011688232421875, 0.0201416015625, 0.044281005859375, -0.0220947265625, -0.034759521484375, -0.0195465087890625, -0.03790283203125, -0.0213623046875, -0.016448974609375, 0.0237274169921875, 0.009735107421875, 0.041717529296875, -0.0132598876953125, 0.01018524169921875, 0.006954193115234375, 0.0163421630859375, 0.039459228515625, 0.043609619140625, -0.079833984375, -0.055267333984375, 0.009735107421875, 0.0406494140625, 0.032012939453125, 0.01270294189453125, 0.01457977294921875, 0.0300445556640625, 0.02056884765625, -0.048370361328125, 0.0236663818359375, 0.0236663818359375, -0.04345703125, 0.0006237030029296875, -0.0286407470703125, 0.001705169677734375, -0.017486572265625, -0.0259246826171875, -0.034576416015625, 0.0285491943359375, 0.0272369384765625, 0.0181884765625, 0.0020427703857421875, -0.07391357421875, -0.0015764236450195312, 0.0205841064453125, 0.0384521484375, -0.015106201171875, -0.039581298828125, -0.00511932373046875, -0.005680084228515625, -0.016937255859375, -0.004550933837890625, 0.005924224853515625, 0.00891876220703125, -0.02581787109375, -0.005245208740234375, 0.062744140625, 0.032958984375, 0.01552581787109375, 0.0167694091796875, 0.007152557373046875, -0.05950927734375, 0.043304443359375, -0.0305023193359375, 0.018463134765625, 0.0003077983856201172, -0.0191802978515625, -0.02728271484375, 0.03265380859375, 0.026275634765625, -0.0181121826171875, 0.0186309814453125, -0.011627197265625, -0.03131103515625, -0.011322021484375, 0.02880859375, -0.0305938720703125, 0.0022125244140625, 0.0021762847900390625, 0.00211334228515625, 0.021087646484375, 0.044158935546875, 0.0311737060546875, 0.031005859375, -0.0290985107421875, 0.01255035400390625, -0.002521514892578125, -0.09234619140625, 0.01861572265625, 0.00925445556640625, -0.015411376953125, 0.00933837890625, -0.0027618408203125, 0.01140594482421875, -0.0288848876953125, -0.006748199462890625, 0.031646728515625, -0.005619049072265625, 0.004180908203125, -0.025115966796875, 0.032958984375, 0.02154541015625, -0.0034694671630859375, -0.00909423828125, -0.005428314208984375, 0.020660400390625, 0.005298614501953125, 0.006999969482421875, 0.00177001953125, -0.033050537109375, 0.0053863525390625, -0.0289306640625, 0.020843505859375, 0.034881591796875, 0.043609619140625, -0.01317596435546875, 0.053375244140625, -0.0278167724609375, -0.0078582763671875, -0.0357666015625, -0.0006856918334960938, -0.0244140625, 0.000698089599609375, 0.02459716796875, -0.005279541015625, 0.0428466796875, 0.013214111328125, 0.0092010498046875, 0.019317626953125, -0.047576904296875, 0.033172607421875, -0.01195526123046875, 0.08416748046875, 0.00492095947265625, 0.006641387939453125, 0.019317626953125, 0.031890869140625, 0.0027923583984375, -0.0020847320556640625, 0.0753173828125, 0.03424072265625, -0.0274810791015625, 0.02069091796875, -0.0015201568603515625, -0.038970947265625, 0.01062774658203125, 0.0180816650390625, 0.0499267578125, 0.0214996337890625, 0.0214080810546875, -0.0166168212890625, -0.00432586669921875, -0.02337646484375, 0.006504058837890625, -0.030364990234375, 0.009002685546875, -0.034820556640625, 0.0282440185546875, -0.0260772705078125, 0.00146484375, 0.0046234130859375, -0.0034160614013671875, 0.01708984375, -0.02130126953125, -0.0172882080078125, -0.01513671875, -0.005214691162109375, 0.0301666259765625, 0.015411376953125, 0.0293121337890625, -0.0060577392578125, -0.01038360595703125, 0.0170440673828125, -0.05462646484375, -0.030029296875, 0.01012420654296875, -0.009735107421875, 0.0239715576171875, -0.01187896728515625, 0.01422119140625, -0.0012750625610351562, -0.047698974609375, -0.01274871826171875, -0.0022735595703125, 0.01800537109375, 0.0284423828125, -0.0452880859375, -0.009521484375, -0.038543701171875, 0.0127105712890625, -0.0305938720703125, 0.0694580078125, -0.020172119140625, 0.046234130859375, 0.01041412353515625, -0.01248931884765625, -0.005496978759765625, -0.0307159423828125, 0.0194549560546875, 0.028106689453125, 0.042572021484375, 0.08013916015625, 0.00728607177734375, -0.02056884765625, 0.083984375, -0.050018310546875, 0.01502227783203125, -0.0228271484375, -0.021087646484375, -0.033660888671875, 0.04925537109375, -0.03668212890625, 0.0189971923828125, -0.0579833984375, -0.010955810546875, 0.01369476318359375, -0.0263519287109375, 0.00164794921875, 0.004390716552734375, 0.01006317138671875, -0.00811767578125, -0.0184783935546875, 0.00016796588897705078, -0.0276947021484375, -0.005008697509765625, 0.007106781005859375, 0.026611328125, 0.01617431640625, -0.00870513916015625, -0.0045928955078125, 0.016632080078125, 0.01245880126953125, 0.01139068603515625, 0.037017822265625, 0.029296875, 0.032501220703125, -0.02587890625, -0.0154876708984375, 0.022613525390625, 0.0225067138671875, -0.0408935546875, -0.05059814453125, -0.0234527587890625, -0.0013647079467773438, -0.010833740234375, -0.087646484375, 0.05718994140625, 0.0419921875, 0.0037994384765625, -0.00556182861328125, 0.0160675048828125, 0.007476806640625, -0.0287628173828125, 0.0247802734375, -0.0013780593872070312, -0.0252685546875, -0.007221221923828125, -0.056976318359375, 0.0243377685546875, -0.0162811279296875, 0.06329345703125, 0.08111572265625, 0.001941680908203125, 0.0173492431640625, 0.01535797119140625, -0.0025920867919921875, 0.0285797119140625, -0.00884246826171875, -0.0207672119140625, 0.0136871337890625, -0.061767578125, -0.01251983642578125, 0.020050048828125, -0.0221099853515625, 0.033660888671875, -0.020965576171875, -0.0150604248046875, 0.003009796142578125, -0.08453369140625, -0.07806396484375, -0.0279998779296875, -0.04217529296875, 0.0106964111328125, -0.036041259765625, -0.00881195068359375, -0.00926971435546875, -0.026824951171875, 0.0102691650390625, 0.020538330078125, -0.0552978515625, -0.02154541015625, -0.060211181640625, -0.078369140625, -0.025848388671875, 0.0252532958984375, 0.01520538330078125, 0.0027179718017578125, 0.052581787109375, -0.006847381591796875, -0.07269287109375, -0.0301055908203125, 0.053314208984375, -0.0011377334594726562, -0.0023651123046875, -0.00897979736328125, -0.006195068359375, -0.004055023193359375, 0.00437164306640625, 0.032989501953125, -0.01474761962890625, -0.00498199462890625, -0.0174102783203125, -0.0301971435546875, -0.0146942138671875, -0.01885986328125, 0.03692626953125, 0.036956787109375, -0.0465087890625, 0.006191253662109375, -0.05975341796875, -0.03851318359375, 0.0439453125, -0.0291900634765625, 0.021820068359375, 0.00983428955078125, -0.040252685546875, 0.007904052734375, 0.0136566162109375, 0.00777435302734375, -0.004665374755859375, -0.0009784698486328125, -0.0243682861328125, 0.06072998046875, -0.006618499755859375, 0.01025390625, -0.02423095703125, 0.00865936279296875, -0.01380157470703125, 0.04205322265625, -0.007053375244140625, 0.0027523040771484375, -0.047271728515625, 0.05157470703125, -0.08709716796875, -0.040618896484375, 0.038543701171875, 0.0018939971923828125, 0.004711151123046875, 0.0098724365234375, -0.01458740234375, 0.017242431640625, 0.05712890625, -0.0286865234375, 0.0006060600280761719, 0.006908416748046875, -0.00988006591796875, 0.0081939697265625, 0.007663726806640625, -0.05218505859375, -0.01641845703125, -0.047454833984375, 0.0005841255187988281, -0.0177764892578125, -0.0205230712890625, 0.0011129379272460938, -0.0032901763916015625, -0.0185089111328125, -0.04345703125, 0.0157623291015625, -0.040863037109375, 0.00385284423828125, 0.0033779144287109375, -0.0024871826171875, -0.0303497314453125, -0.01125335693359375, -0.0284576416015625, -0.057861328125, -0.00841522216796875, -0.047821044921875, 0.0439453125, 0.0265655517578125, 0.005428314208984375, 0.008331298828125, 0.037353515625, 0.0128326416015625, 0.0355224609375, -0.032806396484375, -0.0250244140625, 0.002277374267578125, -0.01251983642578125, -0.0297393798828125, 0.000980377197265625, -0.0195465087890625, -0.0211639404296875, -0.07037353515625, -0.019012451171875, 0.00493621826171875, 0.01934814453125, 0.05755615234375, -0.0243682861328125, -0.0175933837890625, -0.0128173828125, -0.006439208984375, 0.020660400390625, -0.02239990234375, 0.01457977294921875, -0.0278167724609375, -0.01983642578125, 0.049163818359375, 0.029937744140625, -0.0093994140625, 0.006465911865234375, 0.048675537109375, 0.011322021484375, -0.042205810546875, -0.059173583984375, 0.029388427734375, 0.056671142578125, -0.019256591796875, 0.04412841796875, 0.0245361328125, -0.03765869140625, 0.07855224609375, 0.01390838623046875, -0.006519317626953125, -0.012481689453125, -0.01488494873046875, 0.0217742919921875, 0.0226287841796875, -0.0159912109375, 0.0302886962890625, 0.061859130859375, 0.0130157470703125, 0.007099151611328125, -0.0211181640625, 0.010986328125, 0.0300750732421875, 0.0103607177734375, -0.01568603515625, -0.0296173095703125, -0.04095458984375, 0.0006113052368164062, -0.047821044921875, 0.04925537109375, 0.0215911865234375, -0.00522613525390625, 0.04486083984375, 0.032135009765625, -0.0026149749755859375, -0.020843505859375, -0.035675048828125, -0.0024051666259765625, 0.003101348876953125, -0.01126861572265625, -0.0021495819091796875, 0.007045745849609375, -0.0153045654296875, 0.04473876953125, 0.01111602783203125, -0.04168701171875, -0.02532958984375, 0.02264404296875, 0.03192138671875, 0.00843048095703125, 0.004550933837890625, 0.0127716064453125, 0.0261993408203125, -0.00878143310546875, 0.0255279541015625, 0.033599853515625, -0.01528167724609375, -0.01800537109375, -0.029205322265625, 0.010498046875, -0.035186767578125, 0.01554107666015625, -0.003322601318359375, -0.01248931884765625, -0.006717681884765625, 0.00417327880859375, 0.0051422119140625, 0.03680419921875, -0.01788330078125, 0.0116424560546875, 0.0269927978515625, 0.023193359375, -0.063232421875, 0.04461669921875, -0.033477783203125, -0.01033782958984375, 0.0010938644409179688, 0.048675537109375, -0.0132293701171875, -0.01739501953125, 0.027130126953125, -0.0228118896484375, 0.02545166015625, -0.0169830322265625, -0.0704345703125, -0.0296478271484375, 0.01727294921875, 0.0247039794921875, 0.0277557373046875, -0.042022705078125, -0.0276641845703125, -0.00399017333984375, -0.031951904296875, 0.00838470458984375, 0.055572509765625, -0.056640625, 0.0208587646484375, 0.020660400390625, 0.04949951171875, 0.0008211135864257812, -0.0223846435546875, -0.031768798828125, -0.022003173828125, -0.016387939453125, 0.040435791015625, 0.06292724609375, -0.027679443359375, -0.01462554931640625, -0.0157928466796875, 0.008392333984375, -0.0618896484375, -0.0118255615234375, 0.06201171875, 0.0289306640625, -0.0933837890625, -0.0122833251953125, -0.056610107421875, 0.00881195068359375, 0.0090179443359375, -0.042938232421875, -0.018585205078125, 0.005035400390625, -0.00330352783203125, 0.016265869140625, -0.036651611328125, -0.046051025390625, -0.0195770263671875, 0.0197906494140625, 0.019073486328125, 0.013946533203125, -0.0170135498046875, 0.01473236083984375, -0.001987457275390625, 0.0238494873046875, -0.01338958740234375, -0.0162506103515625, 0.01116943359375, -0.009918212890625, 0.01311492919921875, -0.054931640625, -0.0231170654296875, 0.017425537109375, -0.051300048828125, 0.01404571533203125, 0.01374053955078125, -0.0031280517578125, 0.02105712890625, -0.056427001953125, 0.0027828216552734375, -0.020263671875, 0.083251953125, -0.058074951171875, -0.0172576904296875, 0.045745849609375, -0.021148681640625, -0.0099029541015625, -0.00305938720703125, -0.035919189453125, 0.004718780517578125, 0.0129547119140625, -0.02880859375, 0.023101806640625, -0.037109375, 0.06597900390625, 0.07220458984375, -0.003879547119140625, 0.03839111328125, 0.02239990234375, 0.002918243408203125, -0.024200439453125, 0.025238037109375, -0.0360107421875, -0.04205322265625, 0.0078125, 0.01165008544921875, 0.0036945343017578125, 0.02142333984375, -0.010772705078125, 0.0012083053588867188, 0.03436279296875, 0.06170654296875, -0.041412353515625, -0.004863739013671875, 0.036834716796875, -0.016845703125, -0.0301666259765625, 0.00811004638671875, -0.039520263671875, -0.033416748046875, 0.038299560546875, 0.0010833740234375, 0.0000655055046081543, 0.0186920166015625, 0.0146942138671875, 0.01149749755859375, -0.0017843246459960938, 0.02752685546875, 0.0008401870727539062, -0.0814208984375, 0.025177001953125, 0.03204345703125, 0.0285491943359375, -0.015106201171875, 0.0198516845703125, -0.0000054836273193359375, -0.00690460205078125, -0.0239105224609375, 0.039703369140625, -0.01788330078125, 0.01053619384765625, -0.03582763671875, 0.032379150390625, 0.004283905029296875, 0.045257568359375, -0.02197265625, 0.00971221923828125, 0.0316162109375, -0.00772857666015625, 0.046600341796875, -0.0113525390625, 0.0006947517395019531, 0.0028095245361328125, -0.029815673828125, -0.0089569091796875, -0.0034999847412109375, -0.022125244140625, -0.01238250732421875, 0.0016984939575195312, 0.0538330078125, -0.0106658935546875, -0.021026611328125, 0.041839599609375, 0.0220794677734375, -0.0137176513671875, 0.0257720947265625, 0.0167083740234375, -0.0184783935546875, 0.00801849365234375, 0.036865234375, 0.01493072509765625, -0.0151214599609375, 0.05548095703125, -0.0240478515625, 0.1300048828125, -0.01042938232421875, -0.006591796875, 0.0211334228515625, 0.0791015625, -0.036956787109375, 0.04547119140625, -0.038482666015625, 0.03912353515625, 0.002979278564453125, 0.0272064208984375, -0.053466796875, -0.0065460205078125, -0.01025390625, 0.039703369140625, -0.0068817138671875, -0.0012140274047851562, -0.00861358642578125, -0.0011339187622070312, 0.05169677734375, 0.0190887451171875, 0.006870269775390625, 0.031219482421875, -0.0204010009765625, 0.008758544921875, -0.019500732421875, -0.0139923095703125, 0.02239990234375, -0.0173492431640625, -0.05633544921875, 0.01076507568359375, 0.023895263671875, 0.0215911865234375, 0.035736083984375, 0.007083892822265625, -0.02880859375, 0.022674560546875, 0.0269012451171875, 0.005908966064453125, -0.032684326171875, 0.04351806640625, 0.0283355712890625, -0.08990478515625, -0.0162200927734375, -0.059906005859375, 0.05511474609375, -0.01434326171875, 0.005603790283203125, -0.038970947265625, -0.01216888427734375, 0.0219879150390625, -0.0225067138671875, -0.0211029052734375, 0.05889892578125, -0.0269775390625, 0.0155181884765625, 0.007476806640625, 0.03436279296875, -0.047882080078125, -0.022918701171875, 0.0309295654296875, 0.036224365234375, -0.01189422607421875, -0.032989501953125, 0.0009870529174804688, -0.035919189453125, 0.0095672607421875, -0.018402099609375, -0.0010013580322265625, -0.008270263671875, -0.0186920166015625, -0.0103607177734375, -0.025604248046875, -0.0030498504638671875, 0.00830078125, -0.005657196044921875, 0.006824493408203125, 0.0343017578125, -0.006500244140625, 0.0018749237060546875, -0.01373291015625, 0.03955078125, 0.0265960693359375, 0.00202178955078125, 0.029388427734375, -0.0030574798583984375, 0.0008401870727539062, 0.0016307830810546875, 0.01505279541015625, -0.0024089813232421875, 0.0037937164306640625, -0.0283355712890625, -0.03594970703125, 0.0355224609375, 0.028533935546875, -0.0267333984375, -0.0298004150390625, 0.007537841796875, 0.0272674560546875, -0.0367431640625, -0.035858154296875, 0.034942626953125, -0.0210418701171875, 0.0210723876953125, -0.062225341796875, 0.0009326934814453125, 0.004863739013671875, -0.00939178466796875, 0.01959228515625, -0.06195068359375, 0.07965087890625, -0.0009813308715820312, 0.0175018310546875, 0.007793426513671875, -0.043060302734375, -0.042694091796875, -0.02056884765625, 0.019683837890625, 0.0158843994140625, -0.0863037109375, -0.0205230712890625, -0.03082275390625, -0.0019741058349609375, 0.0204620361328125, 0.039154052734375, 0.00495147705078125, 0.01256561279296875, -0.005157470703125, -0.0008034706115722656, 0.0210723876953125, 0.003437042236328125, -0.0160675048828125, -0.028594970703125, 0.0222015380859375, -0.0295867919921875, -0.030609130859375, -0.049560546875, -0.032867431640625, 0.06915283203125, 0.0035419464111328125, 0.1307373046875, -0.06732177734375, 0.01406097412109375, 0.0261077880859375, 0.0002932548522949219, 0.00966644287109375, 0.02752685546875, -0.0226898193359375, -0.00534820556640625, 0.006717681884765625, -0.020355224609375, -0.06494140625, -0.003936767578125, 0.0305023193359375, -0.031707763671875, -0.0250701904296875, 0.0249786376953125, 0.01467132568359375, -0.0023746490478515625, 0.01131439208984375, -0.023223876953125, -0.07281494140625, 0.008453369140625, 0.06353759765625, -0.039398193359375, 0.01355743408203125, 0.00261688232421875, 0.01189422607421875, -0.00506591796875, -0.01232147216796875, 0.01166534423828125, 0.00920867919921875, 0.01270294189453125, 0.0252227783203125, -0.03277587890625, -0.034210205078125, 0.045654296875, 0.002552032470703125, 0.0277099609375, 0.00885009765625, 0.0711669921875, 0.024444580078125, -0.038482666015625, 0.041046142578125, 0.005706787109375, 0.0262908935546875, -0.036712646484375, -0.00916290283203125, 0.01812744140625, 0.01108551025390625, 0.025421142578125, -0.0030651092529296875, -0.0141754150390625, -0.039794921875, -0.0135650634765625, 0.0301361083984375, -0.0203857421875, 0.020599365234375, -0.047119140625, -0.03375244140625, 0.03961181640625, 0.00634002685546875, -0.0216827392578125, -0.0036487579345703125, -0.0036258697509765625, -0.0031871795654296875, 0.00018894672393798828, 0.0108795166015625, 0.0081024169921875, 0.01268768310546875, -0.05108642578125, -0.0196380615234375, -0.020233154296875, -0.0007719993591308594, -0.0304412841796875, 0.024200439453125, 0.0657958984375, -0.0347900390625, -0.0328369140625, 0.023895263671875, 0.0191802978515625, 0.08160400390625, -0.0254974365234375, -0.005214691162109375, 0.003719329833984375, -0.01096343994140625, -0.050628662109375, -0.044281005859375, 0.033355712890625, -0.08184814453125, -0.029815673828125, -0.022552490234375, 0.018218994140625, 0.0240631103515625, -0.062286376953125, -0.10760498046875, 0.0291595458984375, -0.0263671875, -0.044830322265625, -0.07122802734375, 0.025543212890625, 0.0178375244140625, -0.065185546875, -0.0391845703125, 0.01444244384765625, -0.039825439453125, 0.018646240234375, 0.00688934326171875, 0.0135345458984375, 0.001033782958984375, 0.0252685546875, -0.0091705322265625, 0.046630859375, 0.0526123046875, -0.00833892822265625, -0.01495361328125, -0.0033817291259765625, 0.01220703125, 0.057464599609375, -0.01517486572265625, -0.055511474609375, -0.0112457275390625, -0.028472900390625, -0.006610870361328125, 0.00547027587890625, -0.0016794204711914062, -0.005985260009765625, 0.03436279296875, 0.042236328125, 0.0003535747528076172, -0.0020618438720703125, -0.05914306640625, -0.04461669921875, -0.051513671875, 0.01019287109375, 0.045928955078125, -0.0784912109375, 0.025634765625, 0.034271240234375, -0.033416748046875, 0.022705078125, 0.00844573974609375, -0.038238525390625, 0.004558563232421875, -0.0364990234375, -0.04815673828125, -0.037506103515625, -0.0215301513671875, 0.0204925537109375, -0.006103515625, 0.0187835693359375, 0.0077056884765625, 0.01534271240234375, 0.0160064697265625, 0.04840087890625, 0.00417327880859375, 0.0272979736328125, -0.029449462890625, 0.009979248046875, 0.005840301513671875, 0.0111846923828125, -0.01474761962890625, 0.00202178955078125, -0.004180908203125, 0.018707275390625, -0.004375457763671875, 0.0201263427734375, -0.0213165283203125, 0.00374603271484375, -0.0200958251953125, 0.053497314453125, 0.00567626953125, -0.056488037109375, -0.0290679931640625, 0.0596923828125, 0.00629425048828125, -0.0307769775390625, 0.036773681640625, -0.028076171875, 0.002216339111328125, -0.007213592529296875, -0.01195526123046875, -0.0280914306640625, 0.009613037109375, -0.05548095703125, -0.01482391357421875, 0.015899658203125 ]
001f68f0402207e604955a027f0eb51d703acf2d
Wordpress Stackexchange Q: How Do I Protect My Premium WordPress App Theme from Copying? They say WordPress is GPL, and therefore all plugins and themes made with it are supposed to be GPL. Fine, but if I spent three months coding an extremely complex app theme with the intent on selling it repeatedly for profit, such as a medical office scheduling system theme, then how can I protect my investment, if even a moderate amount? A: If you want to apply some legal restrictions to your product and stay in line with GPL practices of WordPress your best option is split license: * *PHP code under GPL; *other components (such as design, images, CSS) under license of your choice.
Q: How Do I Protect My Premium WordPress App Theme from Copying? They say WordPress is GPL, and therefore all plugins and themes made with it are supposed to be GPL. Fine, but if I spent three months coding an extremely complex app theme with the intent on selling it repeatedly for profit, such as a medical office scheduling system theme, then how can I protect my investment, if even a moderate amount? A: If you want to apply some legal restrictions to your product and stay in line with GPL practices of WordPress your best option is split license: * *PHP code under GPL; *other components (such as design, images, CSS) under license of your choice. A: In addition to the other two suggestions, there is another possible approach: move all of your custom-app functionality out of the Theme, and into a hosted web service, to which the Theme connects via API key. That way, redistribution of the Theme itself does not impact your custom app-based business model, because the app would require Theme plus valid API key. This approach may or may not work, depending on the nature of your custom app, but it is a successful model for some commercial Plugins, and is fully GPL compliant. A: Legality aside, I generally look at it this way, write good code and offer good support and people will come to you. There are many premiume themes that are GPL and are doing great. Look at WooThemes,Headway,StudioPress (Genesis) to name just a few companies that write quality, fully GPL themes and make a living doing so. In my opinion some of their sucess is credited to providing quility support and pricing their themes at an amount which they can afford to live but others can afford to pay for them. I think this idea of "If I make my theme GPL someone is going to steal it and all my work is going to be gone" is just false. Sure, maybe someone will steal it, give it away. But if you offer support people will still be come to you and get it. Not to mention the fact that they know what they are getting. Free/stole premium themes (and some non-premium ones) often contain spyware/malware. I'd rather pay someone for something I know works then deal with a virus later. One last example (and maybe my favorite) is Justin Tadlock's Theme Hybrid, He releases it for free as GPL and charges $25 a year for support. A fee I gladly pay because his support is amazing. Bottom line, if you create a trusted environment and people will come. Another solution would be a terr solution, $X for the product, $Y for support, $Z for additional add-ons PS: personally I don't buy anything for WordPress that is NOT full-GPL. A: Something that hasn't been mentioned in this thread are the topics Encryption and Obfuscation. Encrypting your code with IonCube or Zend Encoder are but two popular methods for protection themes and or plugins that I've seen in use. The problem with encryption is that with enough will and desire you can decrypt the files back into their original state. Sometimes the results will vary and depending upon how well the the type of encryption methodology is understood will often determine the success or failure in decrypting files. There are unscrupulous individuals who have become quite skilled at the art of decrypting files from IonCube, Zend and others. For the average person, the hassle with often outweigh the worth. The next methodology is obfuscation which I have rarely if ever seen used. In my opinion it can make it near impossible to decipher files that have been properly obfuscated which in turn also means you can not edit files with obfuscation in the traditional manner and need to keep copies of your master files for any modifications, updates, bug fixes which usually isn't a problem. However a combination of both encryption and obfuscation would make it near impossible if not absolutely impossible steal your proprietary code. It wont stop people from using it, assuming it functions, but it will stop people from modifying it or copying functionality to create their own similar product. Using an API Key as mentioned above is the other great method to help secure your products BUT there is a downside to this method and that is by storing some of your application logic out of the original theme or plugin means that the user needs to connect to your server to retrieve that logic in order for the theme or plugin to operate properly. This sounds like a great thing and it is for the most part but consider what happens if your server were to go offline even for an hour or two. Would this render your theme or plugin unusable? No doubt it would. Then you'd need to consider what kind of impact that would have on the end user. You could circumvent this, as best as possible, by having some failsafe server locations handle the distribution of your API logic such as using cloud based services from reliable companies such as Amazon and more in addition to directly accessing logic from your server. Then you'd need to weigh up the cost in overhead and ultimately the worth to you. Is it really worth the time? I guess that's project specific and dependant but considerations one must make ultimately. The bottom line is that most people who will pirate or steal your product, theme or plugin are most likely to have never bought your product, theme or plugin in the first place. There are often thought to be three types of people in our environment, * *Someone who will steal and pirate anything, always. *Someone who will attempt to steal or pirate anything, before purchasing a product. *Someone who will simply buy your product, because its the right thing to do and the most reliable way to guarantee that your product operates as described. Although pirating and stealing of themes and plugins in rife around the Internet, the amount of people who actually use your themes or plugins consistently enough to warrant any damage to your bottom-line is somewhat miniscule. Its not to say that we shouldn't do everything within our power to minimize that loss, but often your efforts would be better spent in creating more products and or marketing existing products further, as well as diversifying the way in which you offer your product. With the rate at which many products either update with new features or fix bugs, it often renders previously pirated products useless or not as fruitful had it been paid for. As mentioned above, Encrypting and Obfuscating code, combined, are two methods well worth further investigation in addition to API style integration, to help secure your products, themes or plugins in the best possible manner. A: If you are selling it then it doesn't need to be under GPL as you can't sell it on WordPress's Sites. You can just distribute it yourself under whatever license you like. The GPL restriction is just for the Wordpress.org repository's, and seen as you can't sell it under Wordpress.org, you can have whatever license you like.
wordpress
{ "language": "en", "length": 1204, "provenance": "stackexchange_00019.jsonl.gz:415545", "question_score": "34", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37011" }
[ 0.01416015625, -0.007038116455078125, 0.04071044921875, -0.0030765533447265625, -0.00798797607421875, 0.01812744140625, 0.002933502197265625, -0.043701171875, -0.0498046875, 0.013916015625, 0.0450439453125, 0.0091094970703125, -0.0288543701171875, -0.058502197265625, 0.025909423828125, -0.02490234375, 0.00988006591796875, 0.002910614013671875, 0.014129638671875, -0.0205230712890625, 0.007556915283203125, -0.0245819091796875, 0.005126953125, 0.031280517578125, 0.059600830078125, -0.037872314453125, 0.0419921875, -0.0164794921875, 0.052520751953125, -0.0002758502960205078, 0.0496826171875, -0.043731689453125, 0.0153961181640625, 0.00675201416015625, -0.005016326904296875, 0.0111541748046875, 0.0026187896728515625, 0.01123809814453125, 0.03570556640625, -0.0107574462890625, 0.01715087890625, -0.0069732666015625, -0.00888824462890625, 0.0300445556640625, -0.0330810546875, -0.04754638671875, 0.029541015625, -0.016265869140625, -0.022216796875, -0.0149688720703125, 0.0254974365234375, 0.0196990966796875, 0.044647216796875, 0.029052734375, 0.0012683868408203125, 0.019775390625, 0.022430419921875, -0.007770538330078125, 0.03570556640625, -0.03369140625, -0.052032470703125, -0.01309967041015625, 0.0308685302734375, 0.002323150634765625, 0.021697998046875, -0.0131988525390625, -0.037994384765625, 0.05224609375, -0.043121337890625, 0.00452423095703125, 0.01302337646484375, -0.053009033203125, 0.021697998046875, -0.06573486328125, 0.0180816650390625, 0.032440185546875, -0.0006699562072753906, 0.0025177001953125, 0.00884246826171875, -0.0145263671875, 0.0234375, -0.01129913330078125, -0.01470947265625, -0.007427215576171875, -0.01025390625, -0.0094757080078125, -0.000568389892578125, -0.006366729736328125, -0.0163726806640625, -0.0123291015625, -0.007476806640625, 0.008697509765625, -0.0199432373046875, 0.00562286376953125, -0.00428009033203125, -0.01800537109375, 0.016815185546875, 0.06732177734375, -0.00795745849609375, 0.040283203125, -0.01513671875, -0.050018310546875, 0.057647705078125, -0.058624267578125, -0.0294952392578125, 0.06231689453125, 0.007114410400390625, 0.0189971923828125, -0.01195526123046875, 0.0254058837890625, 0.0039043426513671875, -0.053680419921875, 0.0197906494140625, -0.036224365234375, -0.0017528533935546875, 0.03350830078125, 0.012481689453125, 0.0211029052734375, -0.0005717277526855469, 0.0255126953125, -0.031982421875, 0.00016820430755615234, -0.01395416259765625, -0.003971099853515625, 0.0017042160034179688, -0.01503753662109375, -0.0171051025390625, 0.02728271484375, -0.003055572509765625, 0.042999267578125, 0.0113677978515625, 0.007083892822265625, -0.039154052734375, -0.0024013519287109375, -0.04595947265625, -0.0104522705078125, 0.038299560546875, 0.0251312255859375, -0.04779052734375, 0.0258636474609375, -0.0209197998046875, -0.01302337646484375, -0.003856658935546875, -0.05865478515625, 0.031280517578125, 0.0098724365234375, 0.0006742477416992188, 0.02752685546875, 0.040771484375, -0.00537109375, 0.031585693359375, -0.038787841796875, 0.005157470703125, 0.0272216796875, 0.049407958984375, -0.04119873046875, 0.050994873046875, -0.04205322265625, 0.032867431640625, -0.040435791015625, -0.03167724609375, -0.0220794677734375, 0.01531982421875, -0.0017213821411132812, -0.0124969482421875, 0.0279388427734375, 0.024566650390625, 0.01361846923828125, 0.016876220703125, 0.01593017578125, -0.036773681640625, 0.0077362060546875, 0.0221710205078125, 0.01473236083984375, -0.0030384063720703125, 0.0298919677734375, 0.0254364013671875, 0.035552978515625, 0.031585693359375, 0.0194549560546875, -0.005290985107421875, -0.0266265869140625, 0.094970703125, -0.03271484375, -0.042510986328125, -0.01242828369140625, 0.0013856887817382812, 0.0209503173828125, 0.039794921875, -0.00035881996154785156, 0.040252685546875, -0.03167724609375, 0.0075225830078125, 0.0158843994140625, -0.0192413330078125, -0.038482666015625, 0.01751708984375, 0.01898193359375, -0.01404571533203125, -0.016265869140625, -0.0196533203125, 0.0235137939453125, -0.0233917236328125, 0.005825042724609375, -0.00852203369140625, -0.007335662841796875, -0.00010478496551513672, 0.0171356201171875, -0.014862060546875, 0.050567626953125, 0.018280029296875, 0.001651763916015625, -0.0247039794921875, 0.019012451171875, -0.0008358955383300781, -0.0279693603515625, -0.01309967041015625, 0.031890869140625, 0.021148681640625, -0.014984130859375, 0.036376953125, -0.0141754150390625, 0.0218505859375, 0.0065460205078125, -0.00931549072265625, 0.00490570068359375, -0.0149383544921875, -0.0008950233459472656, -0.0032863616943359375, 0.01258087158203125, 0.01410675048828125, 0.00777435302734375, 0.0008478164672851562, 0.020843505859375, -0.0189971923828125, -0.03875732421875, -0.0220184326171875, -0.06292724609375, 0.024505615234375, 0.05999755859375, 0.0219879150390625, 0.060272216796875, -0.01261138916015625, -0.00695037841796875, 0.080322265625, -0.059814453125, -0.0220184326171875, 0.02154541015625, 0.02911376953125, 0.05108642578125, 0.01412200927734375, -0.033203125, 0.0015506744384765625, -0.07891845703125, 0.0205230712890625, 0.0081939697265625, -0.025299072265625, -0.010711669921875, 0.03021240234375, -0.01097869873046875, -0.0011739730834960938, 0.0020160675048828125, -0.0069732666015625, 0.00020802021026611328, -0.07550048828125, 0.027984619140625, -0.01336669921875, 0.010162353515625, -0.012054443359375, -0.0201416015625, 0.022247314453125, 0.0465087890625, -0.008636474609375, 0.032867431640625, 0.0177459716796875, 0.0689697265625, -0.023956298828125, -0.00797271728515625, 0.0009450912475585938, 0.047454833984375, -0.016754150390625, 0.0190582275390625, -0.056640625, -0.017547607421875, -0.005802154541015625, -0.0384521484375, -0.0188140869140625, -0.007099151611328125, -0.0152130126953125, -0.004955291748046875, 0.017974853515625, 0.0266876220703125, -0.0177154541015625, 0.0140838623046875, -0.0028820037841796875, -0.010772705078125, 0.0287628173828125, -0.00647735595703125, 0.01160430908203125, -0.022186279296875, 0.015167236328125, 0.023529052734375, -0.0220947265625, -0.00554656982421875, -0.01201629638671875, 0.00957489013671875, 0.00408935546875, -0.0176849365234375, -0.0416259765625, -0.01241302490234375, -0.07086181640625, -0.03125, 0.00498199462890625, 0.01087188720703125, -0.024261474609375, -0.0474853515625, -0.040771484375, -0.0032291412353515625, -0.048004150390625, 0.022613525390625, -0.0079803466796875, -0.020782470703125, 0.0229034423828125, -0.023406982421875, 0.0037975311279296875, -0.0244140625, -0.01506805419921875, 0.00562286376953125, -0.00433349609375, -0.0498046875, -0.0753173828125, -0.0960693359375, -0.0748291015625, 0.0052032470703125, 0.01152801513671875, 0.025115966796875, -0.008575439453125, 0.072998046875, 0.0109100341796875, -0.048370361328125, 0.003368377685546875, 0.052642822265625, 0.0059661865234375, 0.0217437744140625, -0.022735595703125, -0.043426513671875, 0.0218048095703125, -0.0034809112548828125, -0.05853271484375, -0.0221405029296875, 0.06121826171875, -0.03253173828125, -0.0160980224609375, -0.038177490234375, -0.01318359375, -0.0016651153564453125, 0.01120758056640625, -0.033966064453125, -0.005397796630859375, -0.0604248046875, -0.0225677490234375, 0.01180267333984375, -0.0181884765625, 0.03302001953125, 0.0094451904296875, -0.031890869140625, 0.0007300376892089844, 0.037689208984375, 0.0212860107421875, 0.03521728515625, -0.034637451171875, -0.00949859619140625, 0.078125, 0.002384185791015625, 0.01360321044921875, -0.0204315185546875, -0.01433563232421875, -0.036895751953125, 0.0328369140625, -0.005008697509765625, 0.01751708984375, 0.00030922889709472656, -0.005859375, -0.0217132568359375, -0.007595062255859375, 0.0216522216796875, -0.0261993408203125, 0.0411376953125, -0.034088134765625, -0.004833221435546875, -0.0218963623046875, 0.0699462890625, -0.047119140625, -0.005718231201171875, 0.0198822021484375, 0.0006852149963378906, 0.019561767578125, 0.03643798828125, -0.058441162109375, -0.0287933349609375, 0.03802490234375, -0.0142364501953125, -0.00022923946380615234, -0.01313018798828125, 0.006359100341796875, -0.06536865234375, 0.0235137939453125, -0.0139007568359375, 0.0091400146484375, -0.046142578125, 0.01067352294921875, -0.0037403106689453125, 0.01302337646484375, -0.039398193359375, 0.0092926025390625, -0.043731689453125, -0.03668212890625, -0.01256561279296875, 0.00102996826171875, 0.03546142578125, 0.01776123046875, -0.0343017578125, 0.0010194778442382812, 0.03302001953125, -0.039886474609375, 0.04278564453125, -0.049041748046875, 0.01227569580078125, -0.0195159912109375, 0.03997802734375, -0.0221710205078125, 0.01409149169921875, -0.0152740478515625, -0.0299530029296875, -0.0413818359375, -0.01357269287109375, -0.004791259765625, 0.004405975341796875, 0.016571044921875, -0.0171356201171875, -0.03314208984375, -0.02947998046875, 0.0015974044799804688, 0.0047149658203125, 0.0036258697509765625, 0.01003265380859375, -0.0228271484375, -0.01123046875, 0.03912353515625, -0.044525146484375, -0.0096435546875, 0.0173187255859375, 0.08123779296875, 0.0002892017364501953, -0.0047454833984375, -0.07733154296875, -0.01264190673828125, 0.0284271240234375, -0.03472900390625, 0.066162109375, 0.0517578125, -0.0170135498046875, 0.03985595703125, -0.0044097900390625, -0.03033447265625, 0.0228118896484375, -0.0084075927734375, 0.004314422607421875, -0.0290985107421875, 0.0008187294006347656, -0.016326904296875, 0.036712646484375, 0.0162811279296875, 0.007236480712890625, -0.0192413330078125, -0.01314544677734375, 0.007648468017578125, 0.0115966796875, 0.00888824462890625, -0.00653839111328125, -0.046234130859375, 0.017852783203125, -0.030792236328125, 0.006381988525390625, 0.0214080810546875, 0.001911163330078125, 0.02630615234375, 0.004650115966796875, -0.0180511474609375, -0.0035991668701171875, -0.0009121894836425781, -0.0253753662109375, 0.01457977294921875, 0.00385284423828125, -0.0479736328125, -0.004497528076171875, -0.003753662109375, 0.056060791015625, -0.0014286041259765625, -0.0215301513671875, -0.038299560546875, -0.025299072265625, -0.001613616943359375, -0.0008625984191894531, -0.05902099609375, 0.042694091796875, 0.03668212890625, -0.02935791015625, 0.01345062255859375, -0.082763671875, -0.005359649658203125, -0.056732177734375, 0.0184173583984375, 0.0135498046875, -0.01323699951171875, 0.06597900390625, -0.0303955078125, 0.00815582275390625, 0.002986907958984375, -0.01513671875, 0.056884765625, 0.06903076171875, 0.00818634033203125, 0.0027523040771484375, -0.00444793701171875, -0.0006656646728515625, -0.01186370849609375, 0.0018815994262695312, -0.00635528564453125, 0.00879669189453125, 0.0045318603515625, 0.030426025390625, -0.00600433349609375, -0.013397216796875, 0.02154541015625, -0.0362548828125, -0.0086822509765625, -0.051025390625, -0.04302978515625, 0.00742340087890625, 0.0112457275390625, 0.0078125, -0.003173828125, 0.0204315185546875, -0.0311737060546875, 0.0222625732421875, -0.039825439453125, 0.0149993896484375, 0.03021240234375, -0.049530029296875, 0.01983642578125, 0.034454345703125, -0.019012451171875, -0.0187530517578125, -0.0007371902465820312, -0.03619384765625, 0.0114593505859375, -0.018798828125, -0.037200927734375, 0.033172607421875, 0.002094268798828125, 0.0260467529296875, -0.0137939453125, -0.04296875, 0.016326904296875, -0.002315521240234375, 0.06146240234375, 0.015167236328125, -0.016204833984375, -0.0169677734375, -0.05987548828125, -0.0251007080078125, -0.0286712646484375, -0.0579833984375, -0.04290771484375, -0.006839752197265625, 0.00397491455078125, 0.0292510986328125, -0.05731201171875, -0.05364990234375, 0.0236053466796875, 0.029693603515625, 0.0121612548828125, 0.060333251953125, -0.0411376953125, 0.0163726806640625, 0.055633544921875, 0.0212554931640625, -0.00559234619140625, -0.0255889892578125, -0.010009765625, -0.005207061767578125, -0.02691650390625, -0.057647705078125, 0.017578125, 0.0208282470703125, -0.023040771484375, 0.040679931640625, 0.05426025390625, 0.02239990234375, 0.0218505859375, -0.0609130859375, -0.0006422996520996094, -0.028289794921875, 0.05914306640625, -0.1026611328125, -0.048553466796875, 0.02801513671875, -0.026947021484375, 0.025177001953125, 0.010772705078125, 0.01751708984375, 0.018585205078125, -0.0411376953125, 0.0227203369140625, 0.025421142578125, -0.01434326171875, 0.016571044921875, 0.0223236083984375, 0.01088714599609375, 0.04046630859375, -0.00313568115234375, 0.0303497314453125, 0.0194854736328125, 0.0266265869140625, -0.044769287109375, -0.07659912109375, 0.0122833251953125, 0.006885528564453125, -0.051483154296875, 0.00824737548828125, -0.035797119140625, 0.038116455078125, 0.07427978515625, 0.10205078125, -0.07818603515625, -0.01473236083984375, 0.016448974609375, -0.05078125, -0.0013875961303710938, 0.00910186767578125, -0.01326751708984375, -0.0577392578125, 0.03997802734375, -0.011993408203125, -0.0070343017578125, 0.0017795562744140625, -0.004276275634765625, -0.005954742431640625, 0.007305145263671875, 0.07647705078125, 0.0205230712890625, -0.06317138671875, 0.00803375244140625, 0.035369873046875, 0.002288818359375, -0.00640869140625, 0.0179595947265625, -0.014251708984375, 0.0008697509765625, -0.0260162353515625, 0.007251739501953125, -0.028228759765625, 0.0024394989013671875, 0.003894805908203125, 0.0264892578125, 0.0230712890625, 0.050689697265625, -0.0007338523864746094, 0.014617919921875, 0.0262298583984375, 0.024322509765625, -0.0173187255859375, 0.0031909942626953125, 0.040283203125, 0.0234527587890625, -0.034393310546875, 0.0251312255859375, -0.037353515625, -0.00125885009765625, -0.01169586181640625, -0.0008268356323242188, 0.10162353515625, -0.041595458984375, -0.00489044189453125, 0.052398681640625, 0.003017425537109375, -0.03741455078125, -0.0169677734375, 0.0239410400390625, -0.0290069580078125, 0.046234130859375, -0.0102081298828125, 0.062408447265625, -0.01486968994140625, -0.0114288330078125, -0.0325927734375, 0.00313568115234375, 0.0119781494140625, -0.01482391357421875, 0.018646240234375, 0.0103759765625, -0.039886474609375, -0.027435302734375, 0.0237884521484375, 0.0282135009765625, -0.032196044921875, -0.0175628662109375, -0.0020389556884765625, 0.01039886474609375, 0.0010213851928710938, 0.0224151611328125, 0.0667724609375, 0.0249481201171875, -0.0601806640625, -0.00286102294921875, 0.060943603515625, 0.035614013671875, 0.00415802001953125, 0.058502197265625, -0.0276336669921875, -0.0115966796875, -0.028778076171875, -0.04315185546875, 0.01555633544921875, -0.038909912109375, -0.0267486572265625, -0.0019702911376953125, 0.0121002197265625, -0.00171661376953125, 0.0230255126953125, -0.039642333984375, -0.049530029296875, 0.02178955078125, 0.0255279541015625, 0.02716064453125, -0.0014944076538085938, 0.002593994140625, -0.0279083251953125, 0.0174407958984375, 0.0207977294921875, -0.01555633544921875, 0.0240478515625, -0.0224456787109375, 0.044708251953125, 0.00662994384765625, 0.027862548828125, -0.01611328125, 0.01220703125, 0.04052734375, 0.05010986328125, -0.0777587890625, -0.0195770263671875, 0.049774169921875, 0.03155517578125, 0.024200439453125, 0.026123046875, 0.04046630859375, -0.001506805419921875, -0.005512237548828125, -0.06756591796875, 0.00960540771484375, 0.01267242431640625, 0.007442474365234375, 0.025360107421875, 0.025482177734375, -0.033050537109375, 0.03228759765625, -0.0000457763671875, -0.023468017578125, 0.0024261474609375, 0.0092315673828125, -0.00151824951171875, 0.0152587890625, 0.020599365234375, -0.0184173583984375, 0.0285186767578125, -0.0305633544921875, -0.004810333251953125, -0.03521728515625, 0.01190185546875, -0.0202789306640625, 0.032073974609375, 0.0283050537109375, -0.01293182373046875, 0.053924560546875, 0.0057525634765625, 0.0245513916015625, -0.06561279296875, -0.08673095703125, 0.059051513671875, 0.0465087890625, -0.017608642578125, -0.03375244140625, -0.031341552734375, -0.0020580291748046875, -0.0134735107421875, -0.01535797119140625, 0.0303497314453125, -0.01129150390625, 0.01194000244140625, -0.0212554931640625, -0.0037784576416015625, -0.03094482421875, -0.032684326171875, -0.01617431640625, 0.03509521484375, -0.0191497802734375, 0.01275634765625, 0.028564453125, 0.006877899169921875, 0.0236053466796875, -0.00036835670471191406, -0.00848388671875, -0.0478515625, 0.01995849609375, -0.02606201171875, 0.016845703125, -0.0242156982421875, -0.036651611328125, 0.014678955078125, 0.032623291015625, -0.021148681640625, 0.019775390625, 0.034423828125, 0.00782012939453125, 0.003692626953125, 0.00347900390625, -0.003040313720703125, -0.00963592529296875, 0.04095458984375, 0.004764556884765625, -0.027252197265625, -0.027984619140625, -0.0201263427734375, 0.059783935546875, 0.040374755859375, 0.055145263671875, -0.00794219970703125, 0.047943115234375, -0.015838623046875, 0.00971221923828125, -0.01016998291015625, -0.0165557861328125, 0.060455322265625, 0.0262908935546875, -0.01052093505859375, -0.019256591796875, -0.020904541015625, -0.036590576171875, 0.0228424072265625, -0.0628662109375, -0.04351806640625, -0.0511474609375, 0.04632568359375, 0.01430511474609375, -0.006866455078125, -0.03125, -0.0278778076171875, -0.006389617919921875, 0.008697509765625, 0.00792694091796875, 0.01180267333984375, -0.01617431640625, 0.0195770263671875, -0.03326416015625, -0.01708984375, 0.00968170166015625, -0.0302581787109375, -0.0254669189453125, 0.006710052490234375, 0.0019102096557617188, -0.07073974609375, 0.027099609375, -0.0165557861328125, -0.022735595703125, 0.01425933837890625, 0.057769775390625, 0.0111541748046875, -0.049713134765625, 0.016143798828125, 0.039306640625, 0.0042724609375, -0.062469482421875, 0.0041656494140625, 0.0760498046875, 0.002140045166015625, 0.0081634521484375, 0.0093994140625, -0.0186614990234375, -0.00893402099609375, 0.00572967529296875, 0.0227813720703125, 0.002986907958984375, -0.0178070068359375, -0.061553955078125, -0.0003883838653564453, 0.0224609375, -0.00225830078125, -0.037872314453125, 0.0208587646484375, -0.02911376953125, 0.023345947265625, -0.01560211181640625, 0.07781982421875, -0.0267181396484375, -0.005462646484375, -0.05389404296875, -0.056671142578125, 0.001682281494140625, 0.09246826171875, 0.0034618377685546875, 0.0400390625, 0.0672607421875, -0.032928466796875, -0.04937744140625, 0.0330810546875, 0.027740478515625, 0.062225341796875, -0.01277923583984375, -0.0308380126953125, 0.01126861572265625, 0.004375457763671875, -0.0140228271484375, -0.06549072265625, 0.00036215782165527344, -0.061248779296875, 0.004241943359375, 0.01078033447265625, -0.02728271484375, -0.0117950439453125, -0.05303955078125, -0.038787841796875, 0.0191192626953125, 0.018310546875, -0.036956787109375, -0.005123138427734375, 0.00391387939453125, -0.00835418701171875, -0.0013446807861328125, -0.00191497802734375, -0.00917816162109375, -0.0068206787109375, 0.019927978515625, -0.0172576904296875, 0.0008792877197265625, -0.0053253173828125, 0.00904083251953125, -0.0013713836669921875, 0.029205322265625, 0.0380859375, -0.046142578125, -0.046173095703125, 0.035064697265625, -0.0028839111328125, 0.05560302734375, 0.01824951171875, -0.00550079345703125, 0.016448974609375, -0.04486083984375, -0.011627197265625, -0.06561279296875, 0.00738525390625, -0.0021419525146484375, 0.0423583984375, 0.050750732421875, 0.0012540817260742188, -0.0498046875, 0.00018537044525146484, -0.0248870849609375, -0.05023193359375, -0.0116424560546875, 0.0308380126953125, -0.08245849609375, -0.0163116455078125, 0.036407470703125, -0.0127410888671875, 0.004390716552734375, -0.016693115234375, -0.042694091796875, -0.01404571533203125, -0.046783447265625, -0.019378662109375, -0.043609619140625, -0.0645751953125, 0.09112548828125, -0.044647216796875, -0.015228271484375, 0.0450439453125, 0.0266265869140625, 0.039764404296875, 0.05157470703125, 0.05364990234375, 0.00865936279296875, -0.0504150390625, -0.005382537841796875, 0.031097412109375, 0.0391845703125, -0.0273895263671875, -0.0625, -0.012786865234375, 0.03094482421875, 0.0169525146484375, 0.049407958984375, -0.02886962890625, 0.039154052734375, 0.0158233642578125, 0.012908935546875, -0.005725860595703125, 0.0257110595703125, 0.01303863525390625, 0.023468017578125, -0.052642822265625, 0.0029888153076171875, -0.018585205078125, -0.0491943359375, 0.01326751708984375, 0.0322265625, -0.0130615234375, 0.02313232421875, -0.00852203369140625, -0.0521240234375, -0.0158843994140625, -0.018218994140625 ]
8e99c55df62894c7639e433178621b2245119bd4
Wordpress Stackexchange Q: Tiny MCE not adding p tag when saving theme option I am adding tinymce edior with new wp_editor() function on theme option page. On submit the theme option sends data to option.php where it saves. But tinymce doesn't seem to convert the line breaks into <p> tags as we see in the post and pages from the edit page. Other styles and htmls that I add from the editors are okey. Do i have to use any filter on it before it saves? I am showing the content with a echo. <?php echo theme_option('homepage_content'); ?> A: If you want the contents of an option, variables, or anything for that matter to be treated like post content you'll need to call the post content filters. <?php echo apply_filters( 'the_content', $your_var ); ?> Your data is then treated in the same way as post content is, inline with the code sample you've posted, the call should go like this.. <?php echo apply_filters( 'the_content', theme_option('homepage_content') ); ?> Hope that helps. :)
Q: Tiny MCE not adding p tag when saving theme option I am adding tinymce edior with new wp_editor() function on theme option page. On submit the theme option sends data to option.php where it saves. But tinymce doesn't seem to convert the line breaks into <p> tags as we see in the post and pages from the edit page. Other styles and htmls that I add from the editors are okey. Do i have to use any filter on it before it saves? I am showing the content with a echo. <?php echo theme_option('homepage_content'); ?> A: If you want the contents of an option, variables, or anything for that matter to be treated like post content you'll need to call the post content filters. <?php echo apply_filters( 'the_content', $your_var ); ?> Your data is then treated in the same way as post content is, inline with the code sample you've posted, the call should go like this.. <?php echo apply_filters( 'the_content', theme_option('homepage_content') ); ?> Hope that helps. :)
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:415557", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37051" }
[ -0.00922393798828125, -0.0222015380859375, -0.0198516845703125, 0.0213470458984375, -0.01099395751953125, -0.036224365234375, 0.046295166015625, -0.00835418701171875, -0.017608642578125, 0.0272369384765625, 0.0186004638671875, -0.00116729736328125, -0.008331298828125, -0.040069580078125, 0.0127105712890625, -0.0033111572265625, 0.01348876953125, -0.02606201171875, 0.001049041748046875, 0.00868988037109375, -0.0243072509765625, 0.02142333984375, -0.003345489501953125, -0.0390625, 0.0142669677734375, 0.0257568359375, 0.06414794921875, -0.01398468017578125, 0.002544403076171875, -0.0155181884765625, 0.005588531494140625, -0.03076171875, 0.046417236328125, 0.05419921875, -0.07354736328125, 0.06689453125, -0.01055908203125, 0.0220947265625, 0.001705169677734375, 0.01395416259765625, -0.00676727294921875, 0.0191650390625, 0.019775390625, 0.0272979736328125, -0.043792724609375, -0.0174407958984375, -0.006290435791015625, -0.0213775634765625, -0.00875091552734375, -0.007198333740234375, -0.0084991455078125, -0.0294342041015625, 0.00678253173828125, -0.04022216796875, -0.0167236328125, 0.0028438568115234375, -0.0377197265625, -0.0223541259765625, 0.005584716796875, 0.024658203125, 0.0224761962890625, -0.0096588134765625, 0.00992584228515625, -0.005046844482421875, 0.006908416748046875, -0.02178955078125, -0.050323486328125, 0.018280029296875, 0.0026569366455078125, 0.0040283203125, 0.0228729248046875, -0.03155517578125, 0.031768798828125, -0.041412353515625, 0.011566162109375, 0.01312255859375, -0.0253753662109375, -0.01030731201171875, 0.006153106689453125, -0.005767822265625, -0.00478363037109375, 0.005893707275390625, 0.007602691650390625, -0.0263214111328125, -0.00955963134765625, -0.00978851318359375, -0.01531982421875, 0.003204345703125, -0.06298828125, -0.0196380615234375, -0.03973388671875, -0.04754638671875, -0.054290771484375, 0.016632080078125, 0.00701141357421875, -0.0127410888671875, -0.0313720703125, -0.0246734619140625, 0.0127716064453125, 0.060150146484375, -0.010498046875, -0.049224853515625, 0.0875244140625, -0.0322265625, 0.046722412109375, -0.0017747879028320312, -0.006122589111328125, -0.002887725830078125, 0.06829833984375, 0.004016876220703125, -0.0219573974609375, 0.06939697265625, -0.0135955810546875, -0.03399658203125, 0.0211029052734375, 0.019256591796875, -0.03515625, 0.02789306640625, -0.00748443603515625, 0.008331298828125, -0.01561737060546875, -0.0010576248168945312, 0.0191650390625, -0.02557373046875, -0.00223541259765625, -0.0224609375, -0.01480865478515625, 0.0033245086669921875, 0.00740814208984375, 0.05609130859375, -0.007144927978515625, -0.0150299072265625, 0.010650634765625, 0.02777099609375, -0.01568603515625, -0.021331787109375, -0.01373291015625, -0.016510009765625, -0.041534423828125, 0.0318603515625, -0.01132965087890625, -0.047210693359375, -0.024383544921875, -0.03887939453125, -0.014801025390625, 0.04315185546875, 0.033416748046875, -0.00762939453125, -0.035736083984375, -0.062744140625, 0.029632568359375, -0.032684326171875, 0.047637939453125, 0.01369476318359375, -0.036590576171875, -0.063720703125, 0.026153564453125, -0.04888916015625, 0.016632080078125, -0.06866455078125, 0.006839752197265625, -0.0177764892578125, 0.00659942626953125, -0.035552978515625, -0.031036376953125, -0.01343536376953125, -0.031982421875, 0.0050811767578125, 0.025421142578125, 0.01085662841796875, 0.010040283203125, 0.00812530517578125, 0.029937744140625, 0.0065460205078125, -0.006885528564453125, 0.006206512451171875, -0.011138916015625, 0.0220489501953125, 0.043426513671875, 0.00412750244140625, -0.005706787109375, -0.041107177734375, 0.08514404296875, -0.020172119140625, -0.050689697265625, 0.0352783203125, 0.00997161865234375, 0.0950927734375, 0.013824462890625, 0.0267486572265625, -0.006671905517578125, -0.00910186767578125, 0.0300750732421875, -0.0186309814453125, 0.02294921875, -0.0443115234375, -0.01372528076171875, -0.0222625732421875, -0.0031070709228515625, -0.00818634033203125, 0.00508880615234375, -0.01334381103515625, 0.0178070068359375, -0.02276611328125, -0.03472900390625, -0.01165771484375, -0.01401519775390625, 0.0272674560546875, 0.009307861328125, -0.012969970703125, -0.003002166748046875, -0.005184173583984375, 0.00403594970703125, -0.01910400390625, -0.019989013671875, 0.06671142578125, 0.0266571044921875, 0.0386962890625, 0.0197601318359375, 0.017059326171875, 0.08184814453125, -0.007747650146484375, 0.06646728515625, 0.051025390625, 0.01421356201171875, -0.0347900390625, -0.007724761962890625, -0.0345458984375, -0.0151824951171875, -0.0167388916015625, -0.0010967254638671875, 0.049407958984375, 0.0092620849609375, 0.046173095703125, -0.0272674560546875, -0.03533935546875, -0.052215576171875, -0.05633544921875, 0.024139404296875, 0.051727294921875, 0.029144287109375, 0.0601806640625, -0.002887725830078125, -0.0179595947265625, 0.0611572265625, -0.0187835693359375, 0.00972747802734375, -0.02850341796875, 0.01171112060546875, 0.032928466796875, 0.0261077880859375, -0.03472900390625, -0.00557708740234375, -0.10186767578125, 0.02593994140625, 0.0076446533203125, -0.006504058837890625, 0.033111572265625, -0.0067596435546875, -0.0188751220703125, 0.005329132080078125, 0.0018672943115234375, 0.004222869873046875, -0.0185699462890625, 0.015625, 0.049163818359375, 0.0372314453125, 0.041351318359375, -0.03509521484375, 0.0222320556640625, 0.0095672607421875, 0.044921875, -0.0083160400390625, 0.0256805419921875, -0.0174560546875, 0.0031414031982421875, -0.0306549072265625, 0.005390167236328125, -0.004985809326171875, 0.0135498046875, -0.0272979736328125, 0.01546478271484375, 0.019378662109375, -0.0232391357421875, 0.0200653076171875, -0.0237884521484375, 0.0209503173828125, -0.031951904296875, 0.04095458984375, -0.00856781005859375, 0.02276611328125, -0.0006656646728515625, -0.0308074951171875, 0.053070068359375, 0.0034332275390625, -0.0299224853515625, 0.06640625, -0.004161834716796875, 0.02508544921875, -0.0007867813110351562, 0.06451416015625, 0.048370361328125, -0.0256500244140625, -0.0032405853271484375, 0.022979736328125, 0.027984619140625, 0.013580322265625, 0.03521728515625, 0.02508544921875, 0.00859832763671875, -0.038665771484375, -0.0261077880859375, 0.028961181640625, 0.001979827880859375, 0.0261993408203125, -0.0088653564453125, -0.0255279541015625, 0.0360107421875, -0.0095367431640625, 0.0333251953125, 0.018157958984375, -0.0936279296875, -0.02978515625, -0.01458740234375, -0.07305908203125, 0.022552490234375, 0.0262451171875, -0.010986328125, -0.045501708984375, -0.036468505859375, -0.07147216796875, -0.06524658203125, -0.067626953125, 0.047119140625, -0.010711669921875, 0.0340576171875, 0.0250091552734375, 0.048248291015625, 0.0181427001953125, -0.056427001953125, 0.0222015380859375, -0.059326171875, -0.03375244140625, 0.041839599609375, -0.0364990234375, -0.03363037109375, 0.011260986328125, -0.00894927978515625, -0.016693115234375, -0.00662994384765625, 0.032684326171875, 0.003185272216796875, -0.046234130859375, -0.0223846435546875, 0.0078582763671875, 0.0140838623046875, 0.03326416015625, 0.00618743896484375, 0.058135986328125, -0.03887939453125, -0.037994384765625, 0.01520538330078125, -0.0303497314453125, 0.0467529296875, 0.001209259033203125, -0.0093841552734375, -0.01206207275390625, 0.0745849609375, -0.0307769775390625, 0.0059356689453125, 0.055572509765625, -0.03253173828125, 0.0162200927734375, -0.02752685546875, -0.050079345703125, -0.0220489501953125, 0.01253509521484375, -0.0007266998291015625, 0.03448486328125, 0.0012102127075195312, 0.01397705078125, -0.03448486328125, 0.03515625, -0.048736572265625, -0.0252838134765625, 0.0028133392333984375, -0.047088623046875, 0.03662109375, -0.036163330078125, 0.0006213188171386719, -0.0280609130859375, 0.050445556640625, -0.0051422119140625, -0.00494384765625, -0.01372528076171875, 0.0215911865234375, -0.02203369140625, -0.047882080078125, 0.00036025047302246094, -0.006832122802734375, -0.0292510986328125, 0.004070281982421875, -0.04010009765625, 0.00860595703125, -0.028106689453125, 0.00873565673828125, -0.0054168701171875, -0.04034423828125, 0.0458984375, -0.045135498046875, 0.0083770751953125, 0.0291748046875, -0.02789306640625, 0.00846099853515625, -0.031097412109375, -0.0220184326171875, -0.0709228515625, -0.00612640380859375, -0.0328369140625, 0.041107177734375, 0.0166015625, -0.0218658447265625, -0.004474639892578125, 0.0579833984375, 0.006946563720703125, 0.0005130767822265625, 0.0305633544921875, 0.03375244140625, -0.0272674560546875, -0.0294189453125, 0.013031005859375, -0.0587158203125, -0.00507354736328125, 0.0380859375, -0.01351165771484375, 0.038726806640625, -0.01361083984375, -0.04193115234375, 0.04473876953125, -0.03912353515625, -0.05731201171875, -0.00787353515625, -0.0219268798828125, 0.00009191036224365234, 0.0016851425170898438, -0.034515380859375, -0.01300811767578125, -0.059906005859375, 0.0280914306640625, -0.030303955078125, 0.0160064697265625, 0.016876220703125, 0.09698486328125, 0.01409149169921875, 0.003429412841796875, -0.030029296875, 0.03155517578125, 0.040313720703125, 0.0012979507446289062, 0.0223388671875, 0.013824462890625, -0.029876708984375, 0.03363037109375, 0.028076171875, 0.030975341796875, -0.08380126953125, 0.08880615234375, -0.006679534912109375, 0.0082244873046875, 0.0118560791015625, 0.0006656646728515625, 0.023681640625, -0.00936126708984375, -0.033050537109375, 0.014739990234375, 0.00533294677734375, -0.00017201900482177734, -0.01104736328125, 0.037628173828125, 0.0018243789672851562, -0.0021152496337890625, -0.006122589111328125, 0.0176544189453125, 0.0169525146484375, 0.030303955078125, -0.0013408660888671875, -0.0288848876953125, -0.00927734375, -0.0129547119140625, 0.00482177734375, 0.01364898681640625, 0.00423431396484375, 0.0279083251953125, -0.02618408203125, -0.042694091796875, -0.005859375, -0.0067596435546875, -0.0199127197265625, 0.0018243789672851562, -0.0413818359375, -0.0386962890625, 0.0305023193359375, 0.0517578125, 0.0025768280029296875, 0.0186920166015625, -0.0294189453125, -0.003955841064453125, -0.0116729736328125, 0.017547607421875, 0.056671142578125, -0.00530242919921875, 0.000018656253814697266, -0.007259368896484375, -0.004268646240234375, -0.00908660888671875, 0.044830322265625, 0.0273590087890625, -0.0036258697509765625, 0.022979736328125, -0.01189422607421875, 0.0084686279296875, -0.006961822509765625, 0.033935546875, 0.022674560546875, 0.01128387451171875, -0.0244598388671875, 0.047576904296875, -0.0108489990234375, -0.01346588134765625, 0.0086212158203125, 0.018890380859375, 0.0006775856018066406, 0.0272216796875, -0.0189056396484375, 0.008026123046875, -0.01328277587890625, -0.01371002197265625, -0.017333984375, -0.0297393798828125, -0.032073974609375, 0.005023956298828125, 0.00630950927734375, -0.0040283203125, 0.01220703125, -0.01137542724609375, 0.0034503936767578125, -0.01468658447265625, 0.00878143310546875, 0.0231781005859375, -0.03851318359375, 0.0030117034912109375, 0.005329132080078125, -0.008453369140625, -0.01435089111328125, -0.038421630859375, -0.0197296142578125, -0.004852294921875, -0.01389312744140625, -0.01323699951171875, 0.052337646484375, -0.035675048828125, 0.0194549560546875, -0.006603240966796875, -0.007781982421875, -0.0007319450378417969, 0.0204315185546875, 0.0286712646484375, 0.0275421142578125, -0.0303497314453125, -0.0132598876953125, -0.034881591796875, -0.01678466796875, -0.007213592529296875, -0.00820159912109375, -0.0283966064453125, -0.01363372802734375, 0.039031982421875, 0.029632568359375, 0.0013551712036132812, -0.053314208984375, -0.00254058837890625, -0.00437164306640625, 0.0278167724609375, 0.048248291015625, -0.00588226318359375, 0.064208984375, -0.0227203369140625, 0.06585693359375, -0.006061553955078125, 0.0162353515625, -0.00019478797912597656, -0.023468017578125, 0.0208892822265625, -0.06536865234375, 0.001312255859375, -0.0193328857421875, 0.014434814453125, -0.0014314651489257812, -0.03350830078125, 0.0048980712890625, 0.036407470703125, 0.0206451416015625, 0.0172119140625, -0.01221466064453125, -0.02471923828125, 0.0108795166015625, 0.01465606689453125, 0.038177490234375, -0.0309906005859375, -0.03692626953125, -0.001453399658203125, 0.0198211669921875, 0.0210418701171875, -0.01261138916015625, 0.002613067626953125, -0.00493621826171875, -0.0178985595703125, 0.028076171875, 0.0264892578125, -0.006649017333984375, 0.0228729248046875, 0.0088043212890625, 0.002288818359375, -0.0164337158203125, 0.0035381317138671875, -0.0013360977172851562, 0.01885986328125, 0.0048980712890625, -0.021392822265625, 0.007404327392578125, -0.0271759033203125, -0.0195159912109375, 0.0265960693359375, 0.08587646484375, 0.08245849609375, -0.11541748046875, -0.00036263465881347656, 0.0299835205078125, -0.0197601318359375, 0.01346588134765625, 0.002727508544921875, -0.00222015380859375, -0.0372314453125, 0.07293701171875, 0.0026493072509765625, 0.0302734375, 0.040374755859375, -0.0164031982421875, -0.01482391357421875, -0.04241943359375, 0.01479339599609375, -0.0119781494140625, -0.0224761962890625, 0.0167388916015625, 0.01605224609375, 0.007904052734375, -0.0184783935546875, 0.006908416748046875, -0.01432037353515625, -0.00832366943359375, -0.06884765625, -0.015411376953125, -0.004665374755859375, -0.0206298828125, -0.003406524658203125, -0.01378631591796875, 0.0016155242919921875, 0.04913330078125, -0.0440673828125, 0.02874755859375, 0.0308380126953125, -0.0312347412109375, 0.02093505859375, 0.0019435882568359375, 0.00821685791015625, 0.006267547607421875, -0.0201263427734375, -0.00598907470703125, -0.01207733154296875, 0.00901031494140625, -0.01464080810546875, -0.021636962890625, 0.03350830078125, 0.01332855224609375, -0.0325927734375, 0.004894256591796875, -0.0092926025390625, 0.0186920166015625, -0.06427001953125, -0.0242767333984375, -0.05322265625, -0.01263427734375, -0.048065185546875, -0.014068603515625, 0.0242919921875, -0.0565185546875, -0.062744140625, 0.1259765625, 0.03424072265625, -0.0006518363952636719, -0.0233001708984375, 0.06744384765625, -0.03851318359375, 0.04046630859375, -0.03765869140625, 0.031341552734375, 0.0099029541015625, -0.00311279296875, -0.0831298828125, -0.0131378173828125, -0.0182647705078125, 0.042144775390625, -0.0136260986328125, -0.01160430908203125, -0.0360107421875, -0.011962890625, 0.0296478271484375, 0.038818359375, 0.03509521484375, 0.0158843994140625, 0.0240325927734375, -0.0276641845703125, 0.00656890869140625, 0.0004153251647949219, 0.023956298828125, -0.02587890625, 0.01313018798828125, 0.045654296875, -0.01145172119140625, -0.0318603515625, -0.0161590576171875, -0.09954833984375, 0.0034809112548828125, -0.00887298583984375, -0.0357666015625, -0.0633544921875, -0.03399658203125, 0.04803466796875, 0.0179290771484375, -0.0465087890625, -0.08831787109375, -0.0230560302734375, 0.0042877197265625, 0.0156707763671875, 0.034820556640625, -0.010772705078125, 0.004573822021484375, 0.033905029296875, -0.041656494140625, 0.00910186767578125, 0.0157318115234375, -0.0270538330078125, 0.0087738037109375, -0.0225677490234375, -0.00481414794921875, -0.053741455078125, 0.01447296142578125, 0.03118896484375, 0.01007080078125, -0.024139404296875, -0.014129638671875, 0.0016031265258789062, -0.0247650146484375, -0.0203704833984375, -0.021759033203125, -0.020660400390625, 0.004695892333984375, 0.016387939453125, 0.04180908203125, -0.031890869140625, -0.03802490234375, 0.02880859375, 0.00960540771484375, 0.044036865234375, 0.005359649658203125, -0.035064697265625, -0.03436279296875, -0.009307861328125, -0.01432037353515625, 0.044464111328125, 0.041290283203125, 0.0237274169921875, -0.01983642578125, -0.0243377685546875, -0.0126953125, -0.00867462158203125, 0.005573272705078125, -0.00476837158203125, 0.0004153251647949219, -0.0026416778564453125, 0.007793426513671875, 0.01165008544921875, -0.01163482666015625, 0.037750244140625, 0.040191650390625, 0.01357269287109375, -0.042510986328125, -0.01392364501953125, 0.0281219482421875, -0.035858154296875, -0.04010009765625, -0.03125, -0.03387451171875, 0.033905029296875, -0.0009975433349609375, 0.0300140380859375, -0.031890869140625, 0.0574951171875, -0.0268402099609375, 0.0333251953125, -0.00618743896484375, -0.018463134765625, -0.0169219970703125, -0.01320648193359375, 0.008880615234375, -0.0011529922485351562, 0.00284576416015625, 0.0001977682113647461, -0.022369384765625, -0.034393310546875, 0.002735137939453125, 0.032501220703125, 0.0037784576416015625, -0.00959014892578125, -0.0185394287109375, -0.0262603759765625, 0.0312347412109375, -0.001186370849609375, 0.0010995864868164062, 0.03546142578125, 0.01102447509765625, -0.010223388671875, -0.043487548828125, -0.0323486328125, -0.0185546875, 0.052093505859375, 0.02099609375, 0.06988525390625, -0.01511383056640625, 0.043365478515625, -0.054840087890625, 0.0447998046875, -0.04144287109375, -0.036102294921875, 0.0540771484375, 0.0513916015625, 0.0142822265625, -0.0283966064453125, -0.0191650390625, 0.0281219482421875, 0.0289459228515625, -0.0259857177734375, 0.00662994384765625, 0.04046630859375, 0.002681732177734375, -0.0153045654296875, 0.04986572265625, -0.002208709716796875, -0.0377197265625, -0.055145263671875, -0.01123809814453125, 0.031890869140625, 0.05328369140625, 0.0128936767578125, 0.0285186767578125, 0.04693603515625, -0.0033855438232421875, 0.036285400390625, -0.026885986328125, 0.036285400390625, 0.0272216796875, 0.0014972686767578125, -0.037689208984375, 0.043701171875, -0.0030117034912109375, -0.0034580230712890625, 0.0211639404296875, 0.048828125, 0.026153564453125, -0.0654296875, 0.03216552734375, 0.038848876953125, 0.06988525390625, -0.006580352783203125, 0.01983642578125, 0.02532958984375, 0.0245361328125, 0.02142333984375, -0.004638671875, -0.02471923828125, -0.031341552734375, 0.01104736328125, 0.036865234375, -0.016265869140625, -0.003574371337890625, -0.0968017578125, -0.043701171875, 0.02569580078125, 0.0202178955078125, -0.044525146484375, 0.019012451171875, -0.0011816024780273438, -0.0192413330078125, -0.006237030029296875, 0.01525115966796875, -0.0201416015625, 0.00021648406982421875, -0.01491546630859375, -0.03680419921875, -0.0709228515625, 0.04644775390625, -0.04730224609375, 0.0155181884765625, 0.056640625, -0.003086090087890625, 0.002231597900390625, -0.0269317626953125, 0.0010652542114257812, 0.030853271484375, -0.05877685546875, -0.01134490966796875, 0.053955078125, -0.0226593017578125, -0.037353515625, -0.0667724609375, -0.007781982421875, -0.04632568359375, 0.0089569091796875, -0.01496124267578125, -0.00897979736328125, -0.00628662109375, -0.06268310546875, -0.1011962890625, 0.037567138671875, -0.0182037353515625, -0.0223388671875, 0.004001617431640625, -0.0350341796875, -0.026153564453125, 0.0076141357421875, -0.003818511962890625, -0.001495361328125, 0.00933837890625, 0.046630859375, 0.0052032470703125, 0.07159423828125, -0.0011444091796875, -0.01136016845703125, -0.021270751953125, -0.00872039794921875, -0.0295562744140625, 0.023773193359375, 0.01131439208984375, -0.0193939208984375, 0.0283966064453125, 0.038818359375, -0.021728515625, -0.11090087890625, -0.01111602783203125, -0.0521240234375, 0.00856781005859375, -0.06121826171875, -0.056427001953125, -0.043701171875, 0.05145263671875, 0.03631591796875, 0.02069091796875, -0.005260467529296875, 0.01432037353515625, 0.0004258155822753906, -0.05438232421875, -0.0011682510375976562, 0.037017822265625, -0.07293701171875, -0.0070037841796875, 0.01009368896484375, 0.004673004150390625, -0.0060272216796875, -0.010589599609375, -0.0010385513305664062, -0.00778961181640625, 0.0137481689453125, -0.016571044921875, 0.0278778076171875, -0.03802490234375, 0.03912353515625, -0.03515625, -0.049896240234375, 0.0249481201171875, 0.00891876220703125, -0.016143798828125, 0.0751953125, 0.0005049705505371094, 0.0309906005859375, -0.03619384765625, 0.0134429931640625, 0.0181121826171875, 0.01229095458984375, -0.0411376953125, 0.003971099853515625, 0.006130218505859375, -0.005176544189453125, 0.0089874267578125, -0.031524658203125, -0.007205963134765625, -0.0249481201171875, -0.030242919921875, 0.021575927734375, -0.03460693359375, -0.01508331298828125, -0.039276123046875, 0.0110626220703125, -0.0052337646484375, 0.0230560302734375, 0.0188751220703125, 0.0038604736328125, 0.0077667236328125, -0.01006317138671875, -0.0022792816162109375, -0.0204010009765625, -0.0169830322265625, 0.0234527587890625, -0.007648468017578125, 0.008331298828125 ]
cdf086667b066ac92417ed4fa8760a0af8f6c15b
Wordpress Stackexchange Q: Variables declared in header not available in other includes I have a var set in my header.php file: $myBool = false; and in page.php, I try to echo it: echo $myBool; But the variable is never set. This doesn't help either: global $myBool; echo $myBool; Does anyone know what the problem is? Note: I'm using a custom theme based on the blank theme ( http://digwp.com/2010/02/blank-wordpress-theme/ ) but the same behaviour is evident when using twentyten / eleven so the theme seems to have nothing to do with this A: You need to globalize it before you set the value, so in your header.php global $myBool; $myBool = false; and then in your page.php global $myBool; echo $myBool; just make sure you page.php includes the header.php file either directly or by calling get_header();
Q: Variables declared in header not available in other includes I have a var set in my header.php file: $myBool = false; and in page.php, I try to echo it: echo $myBool; But the variable is never set. This doesn't help either: global $myBool; echo $myBool; Does anyone know what the problem is? Note: I'm using a custom theme based on the blank theme ( http://digwp.com/2010/02/blank-wordpress-theme/ ) but the same behaviour is evident when using twentyten / eleven so the theme seems to have nothing to do with this A: You need to globalize it before you set the value, so in your header.php global $myBool; $myBool = false; and then in your page.php global $myBool; echo $myBool; just make sure you page.php includes the header.php file either directly or by calling get_header();
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:415562", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37065" }
[ 0.05206298828125, -0.003543853759765625, -0.013763427734375, -0.033905029296875, 0.01220703125, -0.01947021484375, 0.0218505859375, -0.00859832763671875, 0.002071380615234375, 0.0019741058349609375, -0.021728515625, 0.007190704345703125, -0.01812744140625, -0.021514892578125, 0.0089874267578125, -0.0151214599609375, 0.0241546630859375, -0.03509521484375, 0.00264739990234375, 0.0002522468566894531, -0.0072021484375, 0.006076812744140625, 0.0256500244140625, -0.004817962646484375, 0.048553466796875, -0.060150146484375, -0.0108184814453125, -0.0031337738037109375, 0.00974273681640625, -0.004634857177734375, 0.0274810791015625, -0.0007143020629882812, 0.00904083251953125, 0.054962158203125, -0.051483154296875, -0.00043392181396484375, -0.007732391357421875, 0.02276611328125, 0.0132904052734375, 0.01305389404296875, 0.0104217529296875, 0.003833770751953125, 0.003795623779296875, 0.0006628036499023438, -0.014312744140625, -0.04248046875, 0.02703857421875, -0.035736083984375, -0.03204345703125, 0.06646728515625, 0.02734375, 0.029815673828125, 0.0274658203125, -0.003448486328125, 0.0217132568359375, -0.007312774658203125, 0.025787353515625, -0.033416748046875, 0.036346435546875, 0.0093841552734375, -0.0345458984375, -0.0223236083984375, 0.01251220703125, -0.051849365234375, 0.0211334228515625, -0.0037364959716796875, -0.03302001953125, 0.045257568359375, -0.06243896484375, 0.0030040740966796875, 0.0284271240234375, -0.0465087890625, -0.005672454833984375, -0.00406646728515625, -0.01690673828125, -0.051727294921875, 0.0382080078125, -0.03778076171875, -0.006977081298828125, 0.0290985107421875, -0.00896453857421875, 0.01453399658203125, -0.04345703125, 0.00732421875, -0.025543212890625, 0.017974853515625, -0.00691986083984375, -0.01404571533203125, -0.00926971435546875, -0.04754638671875, -0.02734375, 0.0654296875, -0.03076171875, -0.04296875, -0.055267333984375, -0.005893707275390625, 0.0245208740234375, 0.058013916015625, -0.0003139972686767578, 0.021087646484375, -0.043121337890625, -0.0149993896484375, 0.01396942138671875, -0.035797119140625, -0.016632080078125, 0.0164337158203125, 0.009521484375, 0.01995849609375, 0.0081024169921875, 0.017333984375, -0.0130157470703125, -0.0201416015625, 0.01165008544921875, 0.0032787322998046875, -0.0280609130859375, -0.00688934326171875, -0.0230712890625, 0.004314422607421875, -0.001361846923828125, 0.0147857666015625, 0.044586181640625, 0.06695556640625, -0.0333251953125, -0.005001068115234375, -0.03466796875, -0.0242462158203125, -0.0065155029296875, -0.0384521484375, -0.01517486572265625, 0.0546875, -0.00826263427734375, -0.01004791259765625, -0.0023021697998046875, 0.01389312744140625, -0.0163421630859375, -0.0269927978515625, 0.011077880859375, -0.027099609375, -0.003635406494140625, 0.0159759521484375, -0.0259246826171875, -0.024505615234375, 0.02215576171875, -0.0227508544921875, -0.044281005859375, 0.0245361328125, 0.022735595703125, 0.0137176513671875, -0.028778076171875, -0.0548095703125, 0.0005340576171875, -0.020904541015625, 0.004058837890625, 0.02984619140625, -0.024627685546875, 0.0169677734375, -0.0028839111328125, -0.00803375244140625, -0.00562286376953125, 0.01239013671875, 0.0021610260009765625, -0.034881591796875, -0.0179901123046875, -0.0211334228515625, -0.032501220703125, 0.021728515625, 0.006839752197265625, 0.01076507568359375, 0.0185546875, 0.020660400390625, -0.0162200927734375, 0.034881591796875, -0.00537872314453125, 0.042755126953125, 0.0208740234375, 0.00521087646484375, -0.0299072265625, 0.0268402099609375, 0.0201568603515625, -0.01219940185546875, -0.023345947265625, -0.039337158203125, 0.0250701904296875, -0.0059356689453125, -0.04302978515625, -0.01444244384765625, -0.004192352294921875, -0.0303192138671875, 0.03753662109375, -0.0093231201171875, 0.04571533203125, 0.00939178466796875, -0.0228271484375, 0.02203369140625, -0.04193115234375, -0.0035991668701171875, 0.00353240966796875, 0.032501220703125, -0.024627685546875, 0.006206512451171875, -0.0021533966064453125, -0.006649017333984375, -0.01010894775390625, 0.0019407272338867188, -0.0252838134765625, -0.052520751953125, 0.00635528564453125, 0.0177001953125, 0.00307464599609375, -0.0014753341674804688, 0.01155853271484375, -0.03173828125, -0.00820159912109375, -0.01512908935546875, -0.0235748291015625, -0.0020236968994140625, -0.007450103759765625, 0.12408447265625, 0.01535797119140625, 0.070068359375, 0.0548095703125, -0.060455322265625, 0.0682373046875, 0.006542205810546875, 0.031402587890625, 0.03204345703125, -0.031402587890625, -0.0015277862548828125, 0.0129852294921875, 0.0190887451171875, -0.0241241455078125, 0.01160430908203125, -0.020172119140625, 0.012725830078125, -0.0212554931640625, -0.03228759765625, -0.018798828125, -0.08349609375, 0.0189666748046875, 0.06689453125, 0.03778076171875, 0.043182373046875, -0.00506591796875, 0.003528594970703125, 0.0266265869140625, -0.0518798828125, -0.0012693405151367188, -0.0182342529296875, 0.035125732421875, 0.01522064208984375, 0.0247650146484375, -0.046722412109375, 0.039276123046875, -0.04827880859375, 0.00946807861328125, 0.02813720703125, -0.038238525390625, -0.01277923583984375, -0.007511138916015625, 0.022430419921875, -0.01198577880859375, 0.007534027099609375, 0.0185699462890625, -0.0203399658203125, 0.05389404296875, -0.05072021484375, 0.025787353515625, 0.0081634521484375, 0.0169525146484375, -0.040435791015625, -0.0006589889526367188, -0.049224853515625, -0.002166748046875, -0.01551055908203125, -0.0126495361328125, 0.0130615234375, -0.04718017578125, 0.0159759521484375, 0.007175445556640625, -0.007411956787109375, -0.0264129638671875, -0.041107177734375, -0.04205322265625, 0.0027484893798828125, 0.020782470703125, -0.01358795166015625, 0.0267791748046875, 0.0192718505859375, 0.029632568359375, -0.0125274658203125, 0.01323699951171875, 0.032196044921875, -0.032501220703125, 0.0809326171875, -0.0107879638671875, -0.020782470703125, 0.0295562744140625, -0.00045228004455566406, 0.0067138671875, -0.00411224365234375, 0.0390625, 0.032806396484375, 0.0093536376953125, 0.0028095245361328125, -0.0017843246459960938, 0.022186279296875, 0.028167724609375, 0.0008454322814941406, 0.00769805908203125, -0.03680419921875, 0.01358795166015625, -0.0193023681640625, 0.01373291015625, -0.00991058349609375, 0.022186279296875, -0.00550079345703125, -0.0034313201904296875, 0.007503509521484375, -0.055450439453125, -0.051727294921875, -0.0072021484375, -0.0635986328125, 0.0172576904296875, 0.0030002593994140625, -0.0234527587890625, -0.0220489501953125, 0.038970947265625, 0.004840850830078125, 0.054412841796875, -0.020477294921875, -0.031829833984375, -0.0269317626953125, -0.08349609375, -0.0633544921875, 0.0120391845703125, -0.01372528076171875, -0.0239105224609375, 0.056915283203125, -0.008880615234375, -0.0194244384765625, -0.0285491943359375, 0.0080413818359375, 0.01486968994140625, -0.025726318359375, -0.00855255126953125, 0.00728607177734375, 0.02459716796875, 0.004436492919921875, 0.0241851806640625, 0.01248931884765625, -0.0199432373046875, -0.0196075439453125, -0.0292205810546875, -0.0294189453125, -0.0245819091796875, 0.022491455078125, 0.04425048828125, -0.026275634765625, -0.0115509033203125, -0.047515869140625, -0.07403564453125, 0.0229644775390625, -0.05413818359375, 0.0191650390625, 0.031646728515625, -0.0090179443359375, -0.0006079673767089844, 0.0236968994140625, -0.0105438232421875, -0.0288848876953125, -0.0230560302734375, -0.0489501953125, 0.0411376953125, 0.0192718505859375, 0.04534912109375, 0.0173797607421875, 0.0231475830078125, -0.0084686279296875, 0.015960693359375, 0.0177459716796875, 0.0058135986328125, -0.016143798828125, 0.028594970703125, -0.02252197265625, 0.0128326416015625, 0.0288848876953125, 0.0296173095703125, 0.0308380126953125, -0.005580902099609375, -0.0290069580078125, -0.01629638671875, 0.02685546875, -0.044036865234375, -0.01488494873046875, 0.018096923828125, 0.024932861328125, -0.051605224609375, -0.053253173828125, -0.03424072265625, -0.0214691162109375, -0.07806396484375, 0.0222015380859375, 0.015594482421875, -0.0048828125, -0.01953125, 0.05938720703125, -0.055023193359375, -0.04144287109375, 0.0193023681640625, -0.027069091796875, 0.005886077880859375, 0.0312347412109375, -0.0184173583984375, 0.01279449462890625, -0.01128387451171875, -0.0377197265625, -0.05584716796875, -0.005828857421875, -0.0207366943359375, 0.0197906494140625, 0.00220489501953125, -0.011932373046875, -0.0205078125, 0.01947021484375, -0.0021495819091796875, -0.00042939186096191406, -0.0046234130859375, -0.0199737548828125, 0.0068359375, 0.0186309814453125, -0.005718231201171875, 0.004787445068359375, 0.017547607421875, 0.029296875, -0.003070831298828125, 0.07354736328125, -0.018524169921875, -0.018524169921875, 0.01171875, -0.039825439453125, -0.0085601806640625, 0.001434326171875, 0.0111846923828125, 0.0063018798828125, 0.0159912109375, -0.0010271072387695312, -0.003795623779296875, 0.0079345703125, 0.0247650146484375, -0.014801025390625, -0.0003120899200439453, 0.0218658447265625, 0.055938720703125, 0.023681640625, -0.009918212890625, -0.058990478515625, 0.004657745361328125, 0.04315185546875, -0.01316070556640625, 0.0350341796875, -0.004364013671875, -0.0274200439453125, 0.06243896484375, -0.0009703636169433594, 0.03173828125, -0.028472900390625, 0.004322052001953125, -0.0026798248291015625, -0.046051025390625, 0.03631591796875, 0.01332855224609375, -0.00634765625, 0.0222625732421875, 0.006206512451171875, -0.0022716522216796875, 0.0552978515625, -0.00475311279296875, -0.04150390625, -0.0022754669189453125, -0.005519866943359375, 0.004840850830078125, -0.0006780624389648438, -0.01445770263671875, 0.052734375, 0.0216217041015625, 0.0239105224609375, -0.0180816650390625, 0.00024771690368652344, -0.0014524459838867188, 0.038787841796875, -0.00014328956604003906, -0.037506103515625, 0.0162200927734375, 0.01137542724609375, -0.036865234375, 0.047027587890625, -0.0079193115234375, 0.05731201171875, 0.029083251953125, -0.01001739501953125, 0.0101165771484375, -0.003391265869140625, 0.0404052734375, -0.03289794921875, -0.029876708984375, 0.00287628173828125, 0.01520538330078125, -0.00849151611328125, 0.0272216796875, 0.01004791259765625, 0.004909515380859375, -0.0003528594970703125, 0.054534912109375, 0.0228118896484375, -0.01751708984375, -0.05029296875, 0.064453125, 0.009918212890625, -0.00885772705078125, -0.006732940673828125, -0.006305694580078125, -0.032470703125, 0.033050537109375, 0.025970458984375, -0.0003337860107421875, 0.0026607513427734375, 0.00736236572265625, 0.01335906982421875, -0.01116180419921875, -0.0092620849609375, -0.0399169921875, 0.0167999267578125, -0.01727294921875, 0.0035610198974609375, 0.0396728515625, -0.008758544921875, -0.01201629638671875, 0.054595947265625, -0.0112152099609375, -0.0794677734375, -0.0190582275390625, -0.026031494140625, 0.0107269287109375, -0.037933349609375, -0.0203704833984375, 0.00670623779296875, -0.0386962890625, -0.008392333984375, 0.0038089752197265625, -0.0290679931640625, 0.00557708740234375, -0.00444793701171875, -0.00855255126953125, -0.0000020265579223632812, -0.0299835205078125, -0.02960205078125, -0.033477783203125, -0.007343292236328125, -0.0261688232421875, 0.045928955078125, -0.006710052490234375, 0.03179931640625, -0.01922607421875, -0.03582763671875, 0.01568603515625, -0.005588531494140625, 0.08270263671875, 0.043304443359375, -0.07159423828125, 0.0293121337890625, -0.0221099853515625, 0.01424407958984375, -0.0235595703125, -0.06878662109375, -0.04144287109375, -0.037841796875, 0.003238677978515625, 0.02947998046875, -0.0286102294921875, -0.05035400390625, -0.00547027587890625, 0.00982666015625, 0.0240325927734375, 0.06402587890625, -0.00974273681640625, 0.042144775390625, -0.01317596435546875, 0.0202789306640625, -0.00395965576171875, 0.0049896240234375, -0.007747650146484375, -0.0116424560546875, 0.00995635986328125, 0.0178070068359375, -0.019805908203125, -0.00988006591796875, -0.006488800048828125, -0.016632080078125, 0.04620361328125, -0.01520538330078125, -0.003086090087890625, 0.0229339599609375, 0.02838134765625, -0.00897979736328125, -0.01248931884765625, 0.00988006591796875, -0.046722412109375, 0.05328369140625, -0.021240234375, -0.048797607421875, 0.0089111328125, -0.01404571533203125, 0.035400390625, 0.01558685302734375, 0.0181121826171875, -0.017578125, -0.1016845703125, 0.09246826171875, 0.11187744140625, 0.01885986328125, 0.07568359375, 0.005931854248046875, 0.0146026611328125, 0.0209808349609375, 0.07794189453125, -0.043182373046875, -0.0377197265625, 0.0362548828125, 0.0296173095703125, -0.036163330078125, -0.002521514892578125, -0.0198822021484375, -0.0143280029296875, 0.0614013671875, 0.08209228515625, -0.033966064453125, -0.02618408203125, 0.03741455078125, -0.0246734619140625, -0.03790283203125, 0.01611328125, 0.0018739700317382812, -0.033050537109375, -0.0087432861328125, 0.0095977783203125, -0.00244140625, 0.01031494140625, 0.006557464599609375, -0.0279541015625, 0.0036678314208984375, 0.0163726806640625, 0.021270751953125, -0.06817626953125, 0.06524658203125, 0.0285186767578125, 0.024078369140625, -0.009735107421875, 0.02435302734375, 0.0032863616943359375, -0.038482666015625, -0.05975341796875, -0.00452423095703125, 0.00634002685546875, -0.0472412109375, 0.0013933181762695312, 0.00862884521484375, 0.0174102783203125, 0.0194091796875, -0.0068206787109375, 0.0001958608627319336, -0.0097503662109375, 0.004177093505859375, 0.0238189697265625, -0.00865936279296875, 0.044158935546875, 0.052215576171875, -0.0479736328125, 0.0267333984375, 0.0019989013671875, -0.00809478759765625, -0.0018148422241210938, 0.00910186767578125, 0.0677490234375, -0.0057373046875, -0.03717041015625, 0.03173828125, -0.0228271484375, -0.0201416015625, 0.01522064208984375, 0.04815673828125, -0.02972412109375, -0.0124359130859375, 0.043182373046875, -0.0217437744140625, -0.04559326171875, -0.00047206878662109375, -0.06341552734375, 0.07861328125, -0.0199432373046875, 0.032562255859375, -0.0047760009765625, 0.034210205078125, 0.01407623291015625, 0.013671875, -0.044097900390625, 0.0589599609375, -0.00464630126953125, 0.091796875, -0.09466552734375, -0.031005859375, 0.0277099609375, 0.08502197265625, 0.0220184326171875, -0.0231475830078125, 0.0841064453125, 0.020294189453125, 0.0523681640625, 0.009521484375, -0.038726806640625, -0.030792236328125, 0.023712158203125, -0.0001232624053955078, 0.0271148681640625, -0.00469970703125, 0.045745849609375, -0.07965087890625, 0.01812744140625, 0.0215911865234375, 0.00521087646484375, -0.01444244384765625, 0.04376220703125, -0.0059814453125, -0.04278564453125, 0.0289764404296875, 0.01531219482421875, 0.016876220703125, -0.0117034912109375, -0.005847930908203125, -0.000904083251953125, 0.0073089599609375, -0.038787841796875, 0.01593017578125, 0.0219573974609375, 0.0328369140625, -0.025421142578125, 0.0188751220703125, 0.00984954833984375, 0.0180206298828125, -0.03961181640625, -0.04119873046875, -0.00412750244140625, 0.0278167724609375, 0.01457977294921875, 0.03704833984375, 0.019775390625, -0.0136871337890625, 0.050048828125, 0.06134033203125, 0.0254058837890625, -0.030242919921875, -0.031494140625, 0.003681182861328125, 0.0067901611328125, -0.00472259521484375, -0.007213592529296875, -0.01259613037109375, 0.023651123046875, 0.0670166015625, -0.019012451171875, 0.01061248779296875, 0.056976318359375, 0.01436614990234375, 0.02142333984375, 0.046844482421875, -0.0743408203125, -0.0043792724609375, -0.055938720703125, -0.00988006591796875, -0.00720977783203125, 0.0697021484375, 0.045318603515625, 0.0302734375, -0.026611328125, -0.035186767578125, -0.047210693359375, 0.062255859375, -0.00875091552734375, 0.060272216796875, -0.0709228515625, -0.0280914306640625, -0.004627227783203125, 0.0443115234375, -0.034423828125, -0.006809234619140625, 0.0457763671875, 0.0189208984375, -0.1064453125, -0.041229248046875, 0.023284912109375, -0.05023193359375, -0.0108642578125, -0.00856781005859375, -0.02935791015625, 0.0128173828125, -0.0233306884765625, -0.01317596435546875, 0.0209808349609375, 0.0161895751953125, 0.0296478271484375, -0.007160186767578125, 0.0201263427734375, -0.0240936279296875, -0.029144287109375, -0.0059814453125, 0.038818359375, 0.0361328125, 0.01461029052734375, 0.02728271484375, -0.038787841796875, -0.05035400390625, 0.0064697265625, 0.0277252197265625, -0.0070648193359375, 0.023406982421875, 0.0179443359375, 0.003021240234375, 0.020172119140625, -0.00875091552734375, -0.0158233642578125, -0.0413818359375, 0.03631591796875, -0.010833740234375, -0.0293426513671875, -0.0267181396484375, -0.0015993118286132812, 0.0309906005859375, 0.02386474609375, -0.0164947509765625, 0.0258331298828125, 0.0310516357421875, -0.0037899017333984375, 0.035919189453125, -0.024993896484375, -0.006549835205078125, 0.004180908203125, 0.02581787109375, 0.035736083984375, -0.016845703125, -0.115966796875, 0.0543212890625, -0.00797271728515625, 0.033905029296875, 0.0694580078125, -0.0048980712890625, 0.00525665283203125, 0.005664825439453125, 0.026123046875, -0.0016088485717773438, -0.040496826171875, -0.0258941650390625, 0.0192413330078125, 0.019744873046875, 0.0550537109375, -0.00887298583984375, 0.00691986083984375, 0.03863525390625, -0.0191497802734375, 0.0306549072265625, -0.0120849609375, 0.007434844970703125, 0.0200042724609375, 0.04498291015625, -0.02899169921875, -0.03448486328125, -0.031768798828125, 0.01210784912109375, -0.00748443603515625, 0.029083251953125, -0.0160369873046875, -0.010498046875, 0.00970458984375, 0.0230712890625, 0.0165863037109375, -0.0179290771484375, -0.00592041015625, 0.0628662109375, -0.0242462158203125, -0.0186920166015625, -0.0202178955078125, -0.0146331787109375, -0.027252197265625, -0.017303466796875, 0.02227783203125, -0.0142974853515625, -0.0243072509765625, -0.033203125, 0.010528564453125, 0.0157012939453125, -0.01535797119140625, -0.00438690185546875, -0.033843994140625, -0.0264129638671875, 0.063720703125, -0.0203857421875, -0.004547119140625, 0.0209808349609375, 0.044708251953125, -0.019195556640625, 0.01084136962890625, -0.01369476318359375, -0.006359100341796875, 0.028045654296875, 0.0008563995361328125, 0.0126190185546875, 0.01479339599609375, -0.0229949951171875, 0.0035953521728515625, -0.01506805419921875, 0.045013427734375, -0.02972412109375, -0.0316162109375, 0.02001953125, -0.01493072509765625, -0.0159454345703125, -0.0241546630859375, 0.034332275390625, -0.08819580078125, -0.00647735595703125, -0.04083251953125, -0.0272369384765625, -0.043548583984375, -0.07598876953125, -0.0634765625, 0.052001953125, -0.00865936279296875, -0.035888671875, -0.045989990234375, -0.01172637939453125, 0.0166168212890625, 0.029083251953125, 0.0023212432861328125, -0.06903076171875, -0.054412841796875, 0.017730712890625, 0.03973388671875, -0.003284454345703125, 0.030670166015625, 0.00788116455078125, -0.0689697265625, 0.01500701904296875, -0.00151824951171875, 0.031646728515625, -0.05096435546875, 0.023193359375, 0.00455474853515625, 0.03302001953125, 0.01390838623046875, -0.022705078125, 0.0296173095703125, -0.0125579833984375, 0.0036449432373046875, -0.011505126953125, -0.0248260498046875, -0.02581787109375, 0.03851318359375, -0.0011501312255859375, 0.013336181640625, 0.00262451171875, 0.01024627685546875, 0.0170440673828125, -0.05999755859375, 0.036712646484375, 0.036163330078125, -0.0390625, 0.01064300537109375, 0.0190582275390625, 0.0000011920928955078125, 0.031707763671875, -0.02239990234375, -0.01477813720703125, -0.00431060791015625, -0.0243682861328125, -0.021240234375, -0.0003345012664794922, -0.09234619140625, -0.0079498291015625, -0.0011949539184570312, -0.01172637939453125, 0.006587982177734375, 0.049530029296875, -0.016387939453125, 0.063232421875, -0.00202178955078125, -0.01000213623046875, -0.0509033203125, 0.0230560302734375, -0.0169525146484375, 0.04656982421875, -0.04742431640625, -0.0312042236328125, -0.03497314453125, 0.02301025390625, -0.01561737060546875, 0.011932373046875, 0.01514434814453125, 0.042755126953125, 0.02203369140625, 0.07464599609375, -0.0163116455078125, -0.045440673828125, -0.0292510986328125, 0.0263824462890625, 0.0247955322265625, -0.025054931640625, 0.06158447265625, -0.034912109375, 0.0030422210693359375, -0.0182647705078125, -0.0033111572265625, -0.024505615234375, 0.0215606689453125, -0.004306793212890625, -0.00594329833984375, 0.02783203125 ]
b716d3468ef768f6c5d90abe24e8c0765bbc9e12
Wordpress Stackexchange Q: How to add filter to __() and _e()? I would wish to add a filter to _e() and __() functions. The filter is FilterTextOfEmail(). This will basically detect any emails and add anti-spam method to it. I assume, the function for filtering should look like: function my_wp_text_email_filtering ($content) { return FilterTextOfEmail($content) } But how to call it? A: You have to filter 'gettext'. See this answer for an example. Always check the textdomain parameter to avoid conflicts with plugins and themes.
Q: How to add filter to __() and _e()? I would wish to add a filter to _e() and __() functions. The filter is FilterTextOfEmail(). This will basically detect any emails and add anti-spam method to it. I assume, the function for filtering should look like: function my_wp_text_email_filtering ($content) { return FilterTextOfEmail($content) } But how to call it? A: You have to filter 'gettext'. See this answer for an example. Always check the textdomain parameter to avoid conflicts with plugins and themes. A: The filter name is gettext, and you would add it like this: add_filter( 'gettext', 'my_wp_text_email_filtering', 10, 3 ); function my_wp_text_email_filtering( $translated, $text, $domain ) { return FilterTextOfEmail( $translated ); } The $text argument is there also in case you want to access the pre-translated text.
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:415569", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37086" }
[ 0.039703369140625, 0.00041556358337402344, 0.0193328857421875, -0.0408935546875, 0.0218505859375, -0.01161956787109375, 0.044525146484375, -0.0214996337890625, 0.0350341796875, 0.037811279296875, -0.00493621826171875, 0.01305389404296875, 0.04742431640625, -0.031036376953125, -0.001476287841796875, 0.01197052001953125, 0.00255584716796875, 0.005207061767578125, 0.002063751220703125, -0.02337646484375, 0.024169921875, -0.02239990234375, -0.018798828125, -0.004528045654296875, -0.0111846923828125, 0.005260467529296875, 0.128662109375, -0.0242767333984375, 0.0208282470703125, -0.0196990966796875, 0.0107421875, -0.0252838134765625, 0.0228271484375, 0.06500244140625, -0.09442138671875, -0.00848388671875, -0.03546142578125, 0.037200927734375, -0.01399993896484375, 0.00678253173828125, 0.035858154296875, -0.0083465576171875, -0.008209228515625, 0.047210693359375, -0.0177764892578125, -0.034698486328125, 0.039520263671875, -0.03564453125, 0.0194244384765625, -0.015380859375, -0.003726959228515625, 0.0063018798828125, 0.0195159912109375, -0.07232666015625, -0.0032100677490234375, -0.01123809814453125, -0.04425048828125, 0.03179931640625, 0.022918701171875, 0.032806396484375, -0.0172576904296875, 0.0010890960693359375, -0.0023822784423828125, -0.0335693359375, -0.04150390625, 0.0116424560546875, -0.010223388671875, -0.006946563720703125, -0.03753662109375, -0.046844482421875, 0.004871368408203125, -0.03436279296875, 0.0148162841796875, -0.0565185546875, 0.022064208984375, 0.01861572265625, -0.01303863525390625, -0.0015163421630859375, 0.00705718994140625, 0.0034809112548828125, -0.0179595947265625, -0.043121337890625, -0.08367919921875, 0.036376953125, -0.040618896484375, 0.0289764404296875, -0.00994873046875, -0.007396697998046875, -0.0161590576171875, -0.01432037353515625, -0.00580596923828125, -0.00479888916015625, -0.03936767578125, 0.0112152099609375, 0.00379180908203125, -0.027435302734375, 0.031768798828125, 0.04315185546875, -0.0273895263671875, 0.0104827880859375, 0.0189361572265625, -0.03948974609375, 0.048919677734375, -0.044158935546875, 0.00510406494140625, 0.06976318359375, -0.0311737060546875, -0.005664825439453125, 0.0254058837890625, 0.026275634765625, 0.022979736328125, -0.020050048828125, 0.01425933837890625, -0.01194000244140625, -0.0107421875, 0.005107879638671875, -0.005573272705078125, 0.0011262893676757812, -0.00400543212890625, 0.002323150634765625, 0.0286102294921875, 0.02215576171875, 0.05743408203125, -0.041656494140625, 0.00040268898010253906, -0.0246429443359375, -0.047515869140625, -0.05450439453125, 0.07049560546875, -0.006465911865234375, -0.031463623046875, 0.03302001953125, 0.00848388671875, -0.0266265869140625, -0.006137847900390625, 0.00679779052734375, 0.0059814453125, 0.0029277801513671875, -0.0167694091796875, -0.0004220008850097656, 0.059722900390625, -0.01763916015625, -0.020050048828125, 0.0277099609375, -0.008056640625, 0.014678955078125, 0.009765625, 0.007404327392578125, 0.01117706298828125, -0.031280517578125, -0.03240966796875, 0.0001538991928100586, 0.05706787109375, -0.002315521240234375, -0.04705810546875, 0.0023975372314453125, -0.0296173095703125, -0.00395965576171875, -0.046875, -0.0201568603515625, 0.0259552001953125, -0.0104522705078125, -0.0220947265625, -0.0195465087890625, -0.0201568603515625, -0.009979248046875, -0.0548095703125, 0.00988006591796875, 0.01123046875, -0.02783203125, -0.0115966796875, 0.03955078125, 0.03271484375, -0.0262908935546875, -0.0167694091796875, -0.0189361572265625, 0.0181732177734375, 0.044464111328125, -0.0020694732666015625, 0.059600830078125, 0.0186767578125, -0.0380859375, 0.06158447265625, -0.0261077880859375, -0.040008544921875, -0.020904541015625, 0.024444580078125, 0.0309906005859375, -0.01360321044921875, 0.01268768310546875, 0.0657958984375, 0.006649017333984375, 0.0118255615234375, -0.040740966796875, -0.001605987548828125, -0.05120849609375, 0.02374267578125, -0.039886474609375, 0.0103912353515625, 0.0438232421875, 0.040802001953125, -0.041015625, 0.040130615234375, -0.058685302734375, -0.03997802734375, -0.0279388427734375, -0.01425933837890625, 0.025054931640625, -0.0021076202392578125, -0.00608062744140625, 0.013031005859375, -0.01507568359375, -0.015289306640625, -0.004604339599609375, -0.0197601318359375, 0.021270751953125, 0.0002925395965576172, 0.0109405517578125, -0.015716552734375, 0.02777099609375, -0.05499267578125, -0.01004791259765625, -0.047943115234375, -0.0030193328857421875, -0.005504608154296875, -0.00904083251953125, -0.004131317138671875, 0.0046844482421875, -0.0123443603515625, 0.01364898681640625, -0.0014314651489257812, 0.0178680419921875, 0.06915283203125, 0.047454833984375, -0.01861572265625, 0.00498199462890625, -0.00887298583984375, -0.0614013671875, -0.01995849609375, 0.0469970703125, 0.048126220703125, 0.051361083984375, 0.0186614990234375, -0.005992889404296875, 0.08441162109375, -0.030120849609375, 0.0126800537109375, -0.01476287841796875, 0.0181732177734375, 0.06365966796875, -0.034027099609375, 0.0034351348876953125, 0.01090240478515625, -0.08514404296875, 0.0097198486328125, 0.055145263671875, 0.00040221214294433594, -0.0100860595703125, -0.03271484375, 0.0105133056640625, 0.0269622802734375, -0.002490997314453125, -0.038787841796875, 0.0152435302734375, -0.0057830810546875, 0.0290374755859375, 0.02362060546875, 0.03179931640625, -0.0206146240234375, 0.0039825439453125, 0.00864410400390625, 0.01776123046875, -0.007038116455078125, -0.0032978057861328125, -0.0143890380859375, 0.041107177734375, -0.0189666748046875, 0.01519775390625, 0.0111846923828125, 0.0087432861328125, -0.0166778564453125, 0.018585205078125, 0.023651123046875, -0.0241241455078125, 0.0180816650390625, 0.00679779052734375, 0.0020694732666015625, -0.06768798828125, 0.01407623291015625, -0.0253448486328125, 0.0131072998046875, 0.00830841064453125, -0.01233673095703125, 0.0234375, -0.00030350685119628906, -0.02874755859375, -0.03765869140625, -0.002796173095703125, 0.01348114013671875, -0.035552978515625, -0.02593994140625, 0.031890869140625, 0.0017404556274414062, -0.025543212890625, 0.0106353759765625, 0.006877899169921875, 0.0018568038940429688, 0.0221405029296875, 0.005031585693359375, 0.002857208251953125, -0.043426513671875, -0.0002498626708984375, -0.009857177734375, -0.0005807876586914062, -0.040618896484375, -0.05474853515625, -0.038482666015625, -0.0223541259765625, -0.0662841796875, 0.004940032958984375, 0.0240020751953125, -0.0662841796875, -0.0384521484375, -0.016143798828125, -0.056671142578125, 0.023590087890625, -0.006816864013671875, -0.01303863525390625, -0.00852203369140625, -0.01552581787109375, -0.069091796875, -0.00789642333984375, -0.047882080078125, 0.06854248046875, -0.01593017578125, 0.00873565673828125, 0.012847900390625, 0.08056640625, 0.01436614990234375, -0.03289794921875, 0.0183868408203125, -0.0123443603515625, -0.01348876953125, 0.034637451171875, -0.021728515625, -0.041778564453125, -0.01070404052734375, -0.0181427001953125, -0.0528564453125, -0.00777435302734375, 0.030609130859375, 0.0051116943359375, -0.00765228271484375, 0.0209503173828125, 0.006435394287109375, -0.0240020751953125, 0.009735107421875, 0.0125274658203125, -0.01372528076171875, -0.04193115234375, 0.034393310546875, 0.01422119140625, 0.01462554931640625, 0.0132598876953125, -0.033843994140625, -0.0285186767578125, 0.0161590576171875, 0.0160675048828125, 0.00849151611328125, 0.0184173583984375, 0.0281982421875, -0.007137298583984375, -0.01055908203125, -0.00200653076171875, -0.0094757080078125, -0.00347137451171875, 0.018341064453125, -0.0139617919921875, 0.01419830322265625, 0.01438140869140625, 0.03985595703125, 0.0185699462890625, 0.0163421630859375, 0.003208160400390625, -0.052703857421875, 0.060516357421875, 0.018890380859375, 0.01180267333984375, -0.00968170166015625, -0.04632568359375, 0.017547607421875, 0.10174560546875, 0.00942230224609375, -0.0159912109375, -0.023345947265625, 0.0033397674560546875, -0.023193359375, -0.0159912109375, -0.00626373291015625, -0.00710296630859375, -0.046173095703125, 0.004474639892578125, -0.037750244140625, 0.00931549072265625, -0.0306854248046875, -0.01263427734375, -0.00849151611328125, -0.0300140380859375, 0.041748046875, -0.0280914306640625, 0.0206451416015625, 0.00885009765625, 0.00847625732421875, -0.019775390625, -0.0294342041015625, -0.022247314453125, -0.0426025390625, 0.0007958412170410156, -0.0226287841796875, 0.016265869140625, -0.01273345947265625, 0.022552490234375, -0.023590087890625, 0.009033203125, 0.0361328125, 0.0208892822265625, 0.0224456787109375, -0.00475311279296875, 0.029937744140625, -0.00775909423828125, 0.0306396484375, -0.031280517578125, 0.014251708984375, -0.0015316009521484375, -0.0394287109375, -0.0038661956787109375, -0.021087646484375, 0.0156097412109375, 0.01290130615234375, -0.0369873046875, -0.00870513916015625, -0.020599365234375, -0.0478515625, -0.021484375, -0.0246124267578125, -0.023345947265625, -0.00493621826171875, -0.0116119384765625, 0.053466796875, 0.001995086669921875, -0.023345947265625, -0.00913238525390625, 0.07098388671875, 0.0160675048828125, -0.02972412109375, -0.02032470703125, -0.003711700439453125, 0.0262298583984375, -0.00992584228515625, 0.003284454345703125, 0.0015573501586914062, -0.0281524658203125, 0.021820068359375, -0.0187835693359375, 0.0396728515625, -0.0706787109375, 0.104248046875, 0.00809478759765625, 0.039703369140625, 0.0008749961853027344, 0.005252838134765625, 0.005306243896484375, -0.02197265625, -0.016357421875, -0.0015859603881835938, 0.0220184326171875, 0.00910186767578125, -0.03143310546875, 0.053131103515625, 0.00604248046875, -0.0228118896484375, 0.024871826171875, -0.014312744140625, 0.0221405029296875, -0.0019159317016601562, -0.0012369155883789062, -0.0224609375, -0.03466796875, -0.0019779205322265625, 0.007350921630859375, -0.0010709762573242188, -0.0086822509765625, 0.0190582275390625, 0.023681640625, -0.00640106201171875, -0.008697509765625, -0.01776123046875, 0.0982666015625, 0.02410888671875, -0.0220794677734375, 0.0198516845703125, -0.0149993896484375, -0.00820159912109375, 0.0009322166442871094, -0.021270751953125, 0.01611328125, 0.007198333740234375, -0.0218963623046875, 0.0075225830078125, -0.0196685791015625, -0.0026302337646484375, -0.036346435546875, -0.016265869140625, -0.020782470703125, -0.00780487060546875, 0.0172271728515625, -0.0015735626220703125, -0.057708740234375, 0.0230560302734375, 0.007778167724609375, 0.035247802734375, 0.045166015625, 0.0107421875, 0.02392578125, -0.019439697265625, 0.007129669189453125, -0.0187530517578125, 0.010528564453125, -0.01474761962890625, -0.0307159423828125, 0.0100250244140625, 0.0033359527587890625, -0.01568603515625, 0.035797119140625, 0.004261016845703125, 0.01422119140625, -0.044708251953125, 0.0092926025390625, 0.0516357421875, 0.006175994873046875, -0.03570556640625, -0.038238525390625, -0.01739501953125, 0.044281005859375, 0.0219573974609375, 0.02154541015625, -0.001110076904296875, 0.0068206787109375, 0.01084136962890625, -0.006500244140625, -0.043701171875, -0.031494140625, 0.00438690185546875, -0.007595062255859375, -0.00032520294189453125, -0.10693359375, -0.0423583984375, -0.01552581787109375, 0.022552490234375, 0.050537109375, 0.00970458984375, 0.01123809814453125, -0.0198211669921875, -0.008636474609375, 0.035980224609375, -0.0033168792724609375, 0.0309295654296875, -0.0304412841796875, -0.059112548828125, -0.00218963623046875, -0.0303955078125, -0.0162506103515625, -0.079833984375, -0.0214080810546875, -0.06439208984375, 0.0284881591796875, -0.01495361328125, 0.0269012451171875, -0.0230712890625, -0.0322265625, 0.00366973876953125, -0.0001704692840576172, 0.00027942657470703125, 0.0128936767578125, -0.0126953125, 0.06671142578125, -0.004245758056640625, 0.0250701904296875, 0.003864288330078125, 0.03570556640625, -0.01055908203125, -0.00417327880859375, -0.004718780517578125, -0.046844482421875, 0.0024814605712890625, -0.014984130859375, -0.0219573974609375, 0.0013790130615234375, 0.039642333984375, 0.0036678314208984375, 0.039520263671875, -0.0246429443359375, -0.0195159912109375, -0.01678466796875, 0.02154541015625, -0.025146484375, 0.03729248046875, -0.006687164306640625, -0.0233154296875, 0.0045013427734375, -0.01629638671875, 0.00994110107421875, 0.032501220703125, -0.025970458984375, 0.023284912109375, 0.0195159912109375, -0.038055419921875, 0.09185791015625, 0.07275390625, -0.005016326904296875, 0.014068603515625, 0.0209197998046875, -0.00539398193359375, -0.0372314453125, -0.00885009765625, 0.01371002197265625, -0.0205841064453125, 0.046539306640625, 0.0078582763671875, -0.00406646728515625, 0.04620361328125, -0.025421142578125, 0.018951416015625, 0.03814697265625, 0.0703125, -0.0721435546875, 0.006671905517578125, 0.01262664794921875, -0.0229034423828125, 0.0240325927734375, -0.006793975830078125, -0.015594482421875, -0.048492431640625, 0.06195068359375, -0.017364501953125, 0.0025539398193359375, 0.026580810546875, -0.0162353515625, -0.0133056640625, -0.0146484375, 0.0274200439453125, 0.00543975830078125, 0.0085601806640625, -0.0203704833984375, -0.019622802734375, -0.01346588134765625, 0.0155029296875, 0.03765869140625, -0.01415252685546875, -0.0174102783203125, -0.049957275390625, -0.04266357421875, 0.010040283203125, -0.055908203125, -0.01593017578125, -0.01224517822265625, 0.0212249755859375, 0.031829833984375, -0.02447509765625, -0.0205230712890625, 0.0180206298828125, -0.0213165283203125, 0.038299560546875, -0.0095367431640625, -0.00506591796875, 0.0265960693359375, -0.0390625, 0.018524169921875, 0.0011730194091796875, 0.00557708740234375, -0.00562286376953125, -0.0255584716796875, 0.0103759765625, 0.021453857421875, -0.0361328125, 0.0239715576171875, -0.0242462158203125, -0.005519866943359375, -0.007152557373046875, -0.012603759765625, -0.044586181640625, -0.0029392242431640625, -0.02301025390625, -0.05291748046875, 0.026763916015625, -0.0164031982421875, -0.076904296875, 0.09906005859375, -0.006107330322265625, 0.035003662109375, 0.0027942657470703125, 0.034027099609375, -0.036346435546875, 0.0031890869140625, -0.01178741455078125, 0.027313232421875, -0.016021728515625, 0.04986572265625, -0.0228118896484375, 0.0013294219970703125, 0.026031494140625, 0.0408935546875, 0.051422119140625, 0.006435394287109375, 0.0023708343505859375, -0.0233917236328125, 0.02899169921875, 0.0567626953125, -0.01030731201171875, -0.00958251953125, -0.0043487548828125, 0.048492431640625, 0.0426025390625, -0.0640869140625, 0.01410675048828125, -0.005702972412109375, -0.01256561279296875, 0.0292816162109375, -0.0208587646484375, -0.034759521484375, -0.001880645751953125, 0.011016845703125, 0.0029735565185546875, -0.01488494873046875, -0.0169677734375, -0.0298004150390625, -0.01033782958984375, 0.0184326171875, 0.00798797607421875, -0.0467529296875, 0.0171356201171875, -0.0235748291015625, 0.041778564453125, 0.00131988525390625, 0.0238189697265625, 0.08148193359375, 0.02386474609375, 0.03485107421875, 0.0199432373046875, 0.025726318359375, 0.007038116455078125, 0.022857666015625, -0.0117340087890625, -0.00862884521484375, 0.0107879638671875, -0.045135498046875, -0.0333251953125, 0.044952392578125, 0.005634307861328125, 0.006488800048828125, -0.01404571533203125, 0.0126495361328125, -0.0162811279296875, 0.00933837890625, -0.0325927734375, -0.006633758544921875, -0.016326904296875, 0.004413604736328125, -0.0657958984375, 0.0008211135864257812, 0.032440185546875, 0.016387939453125, -0.0291290283203125, -0.0230712890625, -0.0079803466796875, -0.0004012584686279297, -0.04583740234375, -0.00348663330078125, 0.0316162109375, 0.0299072265625, 0.01141357421875, 0.049957275390625, 0.05157470703125, -0.00783538818359375, -0.030303955078125, 0.0126495361328125, -0.004425048828125, 0.036224365234375, -0.010986328125, 0.0189971923828125, -0.016998291015625, 0.0282135009765625, 0.00821685791015625, 0.0040435791015625, 0.056549072265625, 0.01334381103515625, -0.0799560546875, -0.01015472412109375, 0.0182037353515625, -0.042022705078125, 0.038818359375, -0.043975830078125, 0.010986328125, -0.0027332305908203125, -0.0132598876953125, -0.029693603515625, -0.01453399658203125, 0.048065185546875, -0.0017757415771484375, 0.0142669677734375, -0.0002911090850830078, -0.0133056640625, 0.0390625, -0.020355224609375, 0.03265380859375, 0.01097869873046875, -0.1358642578125, -0.0233001708984375, -0.03118896484375, -0.06396484375, 0.0703125, 0.06640625, -0.00897216796875, -0.0307769775390625, 0.05035400390625, -0.0297393798828125, 0.03485107421875, 0.0147705078125, -0.027923583984375, -0.029937744140625, 0.0287322998046875, -0.022796630859375, -0.0076446533203125, -0.01230621337890625, 0.01197052001953125, 0.0256195068359375, 0.0264739990234375, 0.03350830078125, 0.0128936767578125, 0.01337432861328125, -0.0019359588623046875, 0.0222930908203125, -0.0004489421844482422, -0.006702423095703125, 0.07427978515625, 0.042999267578125, -0.004756927490234375, -0.04095458984375, -0.0469970703125, -0.0185546875, 0.0518798828125, -0.03912353515625, 0.029449462890625, -0.0221710205078125, 0.00685882568359375, -0.06396484375, 0.054962158203125, -0.0169525146484375, -0.00852203369140625, -0.048187255859375, -0.052642822265625, 0.0567626953125, 0.02947998046875, 0.0147247314453125, -0.0179290771484375, 0.026824951171875, 0.0036640167236328125, 0.00508880615234375, 0.05975341796875, 0.00626373291015625, 0.026397705078125, -0.035247802734375, 0.005321502685546875, 0.0060272216796875, -0.018768310546875, 0.0161895751953125, -0.003032684326171875, 0.0184478759765625, 0.0150146484375, -0.00858306884765625, -0.047271728515625, -0.014434814453125, 0.026824951171875, -0.00421142578125, 0.002040863037109375, -0.041717529296875, 0.0019779205322265625, -0.0218658447265625, -0.00461578369140625, -0.0234222412109375, -0.0372314453125, -0.004634857177734375, 0.0050506591796875, -0.007495880126953125, -0.0628662109375, -0.01468658447265625, 0.005321502685546875, 0.039764404296875, 0.0087127685546875, -0.07586669921875, 0.0323486328125, -0.01519775390625, 0.052764892578125, -0.01206207275390625, 0.032470703125, -0.014739990234375, 0.0081939697265625, -0.050048828125, -0.0682373046875, -0.057708740234375, 0.05010986328125, -0.060333251953125, -0.002597808837890625, 0.02532958984375, -0.005870819091796875, 0.0144500732421875, 0.00913238525390625, -0.01326751708984375, 0.0487060546875, -0.07293701171875, -0.01358795166015625, 0.02923583984375, -0.004825592041015625, -0.0193634033203125, -0.076416015625, -0.003971099853515625, -0.0404052734375, 0.005687713623046875, 0.037139892578125, -0.0063629150390625, 0.0107269287109375, -0.040283203125, -0.11248779296875, 0.051055908203125, -0.016265869140625, -0.047943115234375, -0.07061767578125, -0.03179931640625, -0.0095672607421875, 0.01088714599609375, -0.02783203125, -0.0278778076171875, -0.06671142578125, 0.058685302734375, 0.0257720947265625, 0.00669097900390625, 0.06549072265625, 0.0042572021484375, -0.0305328369140625, -0.0016422271728515625, -0.0125732421875, 0.0006151199340820312, 0.0007195472717285156, -0.031341552734375, 0.05517578125, 0.06732177734375, 0.0006251335144042969, -0.01033782958984375, 0.0163421630859375, -0.08837890625, -0.0283355712890625, -0.0732421875, -0.0088348388671875, -0.01348876953125, 0.1082763671875, 0.030548095703125, 0.0177001953125, -0.04254150390625, -0.01265716552734375, -0.02288818359375, 0.016876220703125, -0.03277587890625, -0.015960693359375, -0.022186279296875, -0.004360198974609375, -0.029937744140625, 0.0015401840209960938, 0.0271148681640625, -0.04864501953125, -0.00910186767578125, -0.0146636962890625, -0.0177001953125, 0.0293731689453125, -0.04925537109375, -0.0088348388671875, 0.053131103515625, -0.041168212890625, -0.032623291015625, 0.0179901123046875, 0.010955810546875, -0.00432586669921875, 0.0129547119140625, -0.00815582275390625, -0.02911376953125, 0.0199432373046875, -0.0008287429809570312, 0.019195556640625, 0.01465606689453125, 0.0306396484375, -0.0181884765625, -0.03863525390625, 0.0166168212890625, 0.01377105712890625, 0.0210723876953125, -0.04180908203125, 0.06219482421875, 0.0255889892578125, 0.10125732421875, -0.0262451171875, 0.0013380050659179688, -0.022064208984375, 0.0197296142578125, 0.0027828216552734375, 0.01239013671875, 0.02227783203125, -0.0036334991455078125, 0.006984710693359375, -0.0047607421875, 0.000217437744140625, -0.007171630859375, 0.0237274169921875, -0.0523681640625, -0.0058746337890625, 0.0214385986328125 ]
7896e290b73398a39bad514969554fb523615c91
Wordpress Stackexchange Q: How to disable 3.3 Tooltips? I find the 3.3 Tooltips annoying when I'm upgrading many live and dev sites. How do I disable them via functions.php? Unenqueue wp-includes/js/wp-pointer.js ? A: Yes, just dequeue the script (and the styles): add_action('admin_enqueue_scripts', 'no_pointers'); function no_pointers(){ wp_dequeue_script('wp-pointer'); wp_dequeue_style('wp-pointer'); } Or you can just disable them permanently for a specific user (only run once): WP_Internal_Pointers::dismiss_pointers_for_new_users($user_id = 0);
Q: How to disable 3.3 Tooltips? I find the 3.3 Tooltips annoying when I'm upgrading many live and dev sites. How do I disable them via functions.php? Unenqueue wp-includes/js/wp-pointer.js ? A: Yes, just dequeue the script (and the styles): add_action('admin_enqueue_scripts', 'no_pointers'); function no_pointers(){ wp_dequeue_script('wp-pointer'); wp_dequeue_style('wp-pointer'); } Or you can just disable them permanently for a specific user (only run once): WP_Internal_Pointers::dismiss_pointers_for_new_users($user_id = 0); A: You could also remove the pointer script and style from their respective arrays just after they have been registered using this method. // Remove javascript add_action( 'wp_default_scripts' , 'remove_pointer_script' ); function remove_pointer_script( $wp_scripts ) { $wp_scripts->remove('wp-pointer'); } // Remove stylesheet add_action( 'wp_default_styles' , 'remove_pointer_style' ); function remove_pointer_style( $wp_styles ) { $wp_styles->remove('wp-pointer'); } The remove method is part of the dependencies class which is extended by both the WP_Scripts and WP_Styles classes, it basically does the inverse of the add method, which is used inside core to register default scripts and styles. Mentioned incase you're curious where that method comes from and what it's for.. I suppose you could also encapsulate those actions in a current_user_can check also if you wanted to wipe them out for specific users, say admins. if( current_user_can( 'manage_options' ) ) { add_action( 'wp_default_scripts' , 'remove_pointer_script' ); add_action( 'wp_default_styles' , 'remove_pointer_style' ); } Personally i quite like the new tooltips, and it's quite a shame there's not a simple API available for utilizing them in plugins yet, but i can see how it could be annoying when you're doing numerous installs or upgrades and just need to get things done.
wordpress
{ "language": "en", "length": 257, "provenance": "stackexchange_00019.jsonl.gz:415582", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37135" }
[ 0.102783203125, -0.005863189697265625, 0.03759765625, -0.011993408203125, 0.02178955078125, -0.044769287109375, 0.09906005859375, -0.021148681640625, 0.040374755859375, 0.0537109375, -0.045166015625, -0.02508544921875, 0.053192138671875, 0.0026760101318359375, -0.052764892578125, -0.00872802734375, 0.047271728515625, -0.04095458984375, 0.0034885406494140625, -0.01739501953125, 0.00890350341796875, 0.0189056396484375, -0.0033893585205078125, 0.103271484375, -0.006969451904296875, -0.055023193359375, 0.0904541015625, -0.0110626220703125, 0.0129547119140625, -0.012451171875, 0.018280029296875, -0.0005970001220703125, -0.00251007080078125, 0.10675048828125, -0.0877685546875, 0.0360107421875, -0.010589599609375, 0.049072265625, 0.035247802734375, 0.005214691162109375, 0.01355743408203125, -0.0083160400390625, -0.061431884765625, 0.004779815673828125, -0.0633544921875, 0.003055572509765625, -0.019500732421875, 0.01151275634765625, 0.060394287109375, 0.0116119384765625, 0.005950927734375, 0.02301025390625, 0.01067352294921875, -0.0313720703125, -0.022918701171875, 0.009918212890625, -0.01357269287109375, -0.0036258697509765625, 0.0177154541015625, 0.038482666015625, -0.0012598037719726562, 0.0016536712646484375, -0.004878997802734375, -0.051727294921875, 0.0019130706787109375, -0.002227783203125, 0.014007568359375, 0.01337432861328125, -0.04400634765625, 0.00894927978515625, 0.0282440185546875, -0.03631591796875, 0.0269317626953125, 0.0011835098266601562, 0.0092010498046875, 0.01236724853515625, -0.003612518310546875, 0.0212554931640625, 0.032135009765625, 0.0020160675048828125, 0.010406494140625, -0.0204010009765625, -0.041229248046875, 0.01300048828125, -0.010894775390625, 0.01922607421875, -0.005184173583984375, -0.01015472412109375, -0.013153076171875, -0.01560211181640625, -0.019134521484375, 0.02496337890625, -0.0308990478515625, 0.00901031494140625, -0.005954742431640625, -0.0269317626953125, 0.031646728515625, 0.05029296875, -0.032928466796875, -0.0193939208984375, -0.01427459716796875, -0.014495849609375, -0.007297515869140625, -0.0174713134765625, 0.0077972412109375, 0.03216552734375, -0.0213165283203125, -0.05194091796875, 0.020263671875, 0.0220947265625, 0.00960540771484375, -0.00457000732421875, 0.01155853271484375, 0.038421630859375, -0.03936767578125, -0.0310516357421875, -0.04046630859375, 0.026641845703125, -0.0248565673828125, 0.0538330078125, -0.0159149169921875, 0.01300048828125, 0.0030765533447265625, 0.00691986083984375, 0.0306396484375, 0.00946044921875, -0.01023101806640625, -0.0154266357421875, -0.01090240478515625, -0.01474761962890625, -0.0228118896484375, 0.0159759521484375, 0.07318115234375, 0.042633056640625, 0.0017938613891601562, -0.01055145263671875, 0.042083740234375, -0.0164031982421875, 0.00434112548828125, 0.00226593017578125, 0.0164947509765625, -0.03759765625, -0.03057861328125, 0.000011622905731201172, -0.00428009033203125, -0.0016918182373046875, 0.0037250518798828125, 0.0251617431640625, 0.00994873046875, -0.013031005859375, 0.00988006591796875, -0.026397705078125, 0.04302978515625, -0.007007598876953125, -0.010986328125, -0.041595458984375, 0.026519775390625, -0.03607177734375, -0.00539398193359375, -0.04132080078125, -0.01418304443359375, 0.0026397705078125, 0.004802703857421875, -0.03387451171875, -0.0408935546875, -0.015106201171875, 0.0103302001953125, 0.002899169921875, 0.02166748046875, 0.06719970703125, -0.0308990478515625, -0.065185546875, -0.046661376953125, 0.0279388427734375, -0.008209228515625, 0.048919677734375, 0.03265380859375, 0.01401519775390625, 0.0245208740234375, -0.01204681396484375, -0.034759521484375, -0.03375244140625, 0.0748291015625, -0.05157470703125, -0.055145263671875, 0.017547607421875, 0.0034961700439453125, 0.04150390625, 0.018890380859375, 0.002964019775390625, 0.0672607421875, 0.00917816162109375, 0.0064697265625, 0.0010280609130859375, -0.004970550537109375, -0.0665283203125, -0.00853729248046875, -0.0281219482421875, -0.0115509033203125, 0.0181884765625, 0.03778076171875, 0.0239410400390625, -0.0241851806640625, -0.004627227783203125, -0.0654296875, 0.0030193328857421875, -0.0195465087890625, 0.0330810546875, 0.004680633544921875, 0.0268707275390625, 0.01058197021484375, -0.002712249755859375, -0.05194091796875, 0.07354736328125, 0.0007572174072265625, 0.00774383544921875, -0.0214996337890625, 0.052490234375, 0.001422882080078125, 0.04248046875, 0.0244140625, -0.037017822265625, 0.039337158203125, -0.00650787353515625, -0.02496337890625, -0.045013427734375, 0.01438140869140625, -0.01554107666015625, 0.01032257080078125, -0.0155181884765625, 0.056793212890625, -0.00072479248046875, -0.0165863037109375, 0.04052734375, 0.0086517333984375, -0.00865936279296875, 0.022552490234375, -0.07305908203125, 0.027618408203125, 0.029266357421875, 0.058013916015625, 0.031646728515625, -0.00016570091247558594, -0.0262298583984375, 0.0187835693359375, -0.070068359375, 0.006526947021484375, -0.0273895263671875, 0.014617919921875, 0.0257568359375, -0.00940704345703125, -0.0007576942443847656, 0.027587890625, -0.006137847900390625, 0.0178375244140625, 0.039520263671875, -0.0169219970703125, -0.01151275634765625, 0.01059722900390625, 0.007450103759765625, 0.0180816650390625, 0.0020465850830078125, 0.004058837890625, -0.00710296630859375, 0.049407958984375, -0.017669677734375, 0.031951904296875, 0.01336669921875, -0.00847625732421875, -0.006168365478515625, 0.0097808837890625, -0.04736328125, 0.01096343994140625, -0.006458282470703125, 0.021270751953125, 0.0038814544677734375, -0.02569580078125, -0.011199951171875, 0.038909912109375, 0.0043182373046875, -0.0244903564453125, 0.0012617111206054688, -0.007617950439453125, -0.013336181640625, 0.0024547576904296875, -0.032012939453125, 0.00980377197265625, -0.02374267578125, -0.023468017578125, -0.03729248046875, -0.0006732940673828125, 0.01904296875, -0.0166015625, 0.006504058837890625, 0.01551055908203125, -0.024017333984375, -0.014923095703125, -0.04962158203125, 0.040802001953125, -0.016845703125, 0.026458740234375, 0.07000732421875, 0.0177459716796875, 0.0025482177734375, 0.0159759521484375, -0.01551055908203125, 0.0270538330078125, 0.01335906982421875, 0.00839996337890625, 0.01198577880859375, -0.04833984375, 0.0145721435546875, 0.0186004638671875, 0.0184326171875, -0.0280303955078125, -0.057769775390625, -0.005603790283203125, -0.00856781005859375, -0.097900390625, -0.07574462890625, 0.023193359375, -0.03643798828125, -0.0188446044921875, 0.011688232421875, -0.0271453857421875, -0.01268768310546875, 0.052398681640625, -0.00542449951171875, 0.0211639404296875, -0.0147857666015625, 0.0069732666015625, 0.0125579833984375, -0.007434844970703125, -0.00897216796875, 0.0004515647888183594, -0.0299835205078125, 0.0110321044921875, 0.037384033203125, -0.007843017578125, -0.04608154296875, -0.0148773193359375, -0.0253448486328125, -0.01189422607421875, 0.003948211669921875, 0.02178955078125, 0.0246124267578125, 0.024261474609375, 0.0256195068359375, -0.06988525390625, 0.0080413818359375, -0.0137786865234375, -0.07305908203125, 0.0158233642578125, 0.0120391845703125, 0.0234375, -0.01244354248046875, -0.028167724609375, 0.0078277587890625, -0.00566864013671875, -0.04364013671875, -0.03314208984375, 0.0007224082946777344, -0.043121337890625, 0.0238800048828125, 0.025115966796875, -0.021331787109375, 0.00334930419921875, 0.00884246826171875, 0.061767578125, 0.0163726806640625, -0.019012451171875, 0.0207366943359375, 0.020355224609375, 0.0196990966796875, 0.05853271484375, -0.03643798828125, -0.0258636474609375, -0.0241851806640625, 0.08367919921875, -0.0013666152954101562, 0.02020263671875, -0.0394287109375, 0.047119140625, -0.060394287109375, 0.0186920166015625, 0.0217132568359375, -0.03924560546875, -0.025543212890625, 0.0225677490234375, 0.0126800537109375, 0.027496337890625, 0.033294677734375, -0.052032470703125, -0.01317596435546875, -0.04840087890625, -0.0045013427734375, -0.030364990234375, -0.03131103515625, -0.020172119140625, 0.01309967041015625, -0.08782958984375, 0.018585205078125, 0.003910064697265625, -0.019683837890625, -0.0557861328125, 0.04168701171875, -0.06622314453125, -0.01424407958984375, 0.0215606689453125, -0.0228729248046875, -0.048004150390625, 0.0194549560546875, -0.053680419921875, -0.02545166015625, -0.011444091796875, -0.01029205322265625, -0.105224609375, -0.010650634765625, -0.0338134765625, 0.054046630859375, -0.0020618438720703125, -0.00815582275390625, -0.0217132568359375, 0.039581298828125, 0.023651123046875, -0.0213470458984375, 0.0306243896484375, -0.00470733642578125, -0.0069580078125, 0.042572021484375, 0.0249786376953125, -0.0107574462890625, -0.0218505859375, -0.0225982666015625, -0.059173583984375, -0.0064697265625, -0.0026988983154296875, 0.004894256591796875, 0.041412353515625, -0.032684326171875, -0.01450347900390625, -0.037506103515625, -0.0179443359375, 0.02825927734375, -0.00946807861328125, 0.0011196136474609375, -0.061798095703125, -0.0298004150390625, 0.0391845703125, -0.00257110595703125, 0.001117706298828125, -0.0115966796875, 0.02392578125, 0.00988006591796875, -0.0245513916015625, 0.03289794921875, 0.020599365234375, 0.0311126708984375, 0.00792694091796875, 0.01116180419921875, -0.0013055801391601562, -0.0157928466796875, 0.0259857177734375, -0.006038665771484375, 0.0165252685546875, -0.038726806640625, 0.0273284912109375, 0.004425048828125, -0.019744873046875, 0.021026611328125, 0.00533294677734375, 0.0157318115234375, 0.0006508827209472656, 0.0225982666015625, -0.0277099609375, 0.017822265625, 0.04754638671875, 0.026275634765625, -0.02191162109375, -0.047821044921875, -0.05059814453125, 0.01462554931640625, 0.0423583984375, 0.030029296875, 0.00925445556640625, 0.0033130645751953125, 0.035858154296875, 0.0173187255859375, -0.00724029541015625, -0.0003581047058105469, 0.047698974609375, -0.00997161865234375, 0.060516357421875, -0.04400634765625, -0.0265350341796875, -0.041595458984375, -0.01032257080078125, 0.067138671875, 0.01393890380859375, -0.0245819091796875, -0.035797119140625, -0.0009512901306152344, 0.021820068359375, -0.0124359130859375, -0.012908935546875, 0.050750732421875, 0.036102294921875, -0.004215240478515625, -0.01032257080078125, -0.040679931640625, 0.01450347900390625, -0.04266357421875, -0.007526397705078125, 0.00873565673828125, -0.029998779296875, -0.0038814544677734375, 0.0034732818603515625, -0.00927734375, -0.0143585205078125, 0.0112457275390625, -0.01169586181640625, -0.02880859375, 0.0079193115234375, 0.01468658447265625, 0.029052734375, 0.00733184814453125, -0.016448974609375, 0.038360595703125, -0.04278564453125, -0.0100555419921875, 0.0310516357421875, 0.034149169921875, 0.01349639892578125, -0.0146026611328125, 0.00811004638671875, -0.002552032470703125, 0.0032329559326171875, 0.00339508056640625, -0.0084381103515625, -0.01207733154296875, -0.0108795166015625, 0.0266876220703125, 0.01861572265625, -0.0096435546875, 0.00725555419921875, -0.021209716796875, -0.075927734375, -0.06951904296875, 0.071533203125, -0.057373046875, -0.052520751953125, -0.033294677734375, -0.0277252197265625, -0.028564453125, 0.001800537109375, -0.0655517578125, -0.0294647216796875, 0.01380157470703125, -0.004756927490234375, -0.020355224609375, -0.018890380859375, -0.0100250244140625, -0.0272216796875, 0.0182952880859375, -0.029632568359375, 0.00478363037109375, 0.04425048828125, 0.019622802734375, -0.09625244140625, 0.005950927734375, -0.06396484375, -0.009307861328125, -0.08062744140625, -0.06475830078125, -0.058868408203125, 0.018035888671875, 0.0046234130859375, -0.0088653564453125, 0.0192413330078125, -0.0197906494140625, -0.01160430908203125, 0.03314208984375, 0.022735595703125, 0.0258636474609375, -0.00899505615234375, 0.0161285400390625, -0.017181396484375, -0.00786590576171875, -0.0008091926574707031, 0.03472900390625, 0.04522705078125, -0.033416748046875, 0.03240966796875, -0.0238494873046875, -0.042816162109375, -0.006099700927734375, -0.040802001953125, -0.0132598876953125, 0.03900146484375, -0.030487060546875, 0.00322723388671875, -0.004413604736328125, 0.0169677734375, -0.020355224609375, -0.0005340576171875, 0.00865936279296875, -0.0100250244140625, 0.0303497314453125, 0.03350830078125, 0.06298828125, -0.02886962890625, -0.027252197265625, 0.01149749755859375, 0.01381683349609375, 0.0161895751953125, -0.0251617431640625, -0.033538818359375, 0.025177001953125, 0.019134521484375, 0.010589599609375, 0.017333984375, 0.0036468505859375, 0.0136871337890625, -0.022857666015625, 0.0216522216796875, 0.043060302734375, -0.0221710205078125, 0.05609130859375, -0.0006728172302246094, -0.01898193359375, 0.017822265625, -0.039703369140625, 0.03277587890625, 0.048065185546875, 0.048004150390625, -0.064697265625, 0.007381439208984375, -0.0279998779296875, -0.028472900390625, 0.06378173828125, -0.035491943359375, -0.006969451904296875, -0.0802001953125, 0.048797607421875, 0.032623291015625, -0.0173492431640625, -0.01293182373046875, -0.018310546875, -0.010589599609375, 0.033477783203125, 0.03729248046875, -0.00827789306640625, -0.027801513671875, -0.032806396484375, 0.02496337890625, -0.0225372314453125, -0.0190277099609375, -0.0214691162109375, 0.0307769775390625, -0.04632568359375, -0.06915283203125, 0.006946563720703125, -0.0120697021484375, -0.025238037109375, 0.051361083984375, 0.0138397216796875, -0.0022754669189453125, 0.06787109375, -0.0252685546875, 0.0447998046875, 0.014984130859375, 0.0016126632690429688, -0.0005550384521484375, -0.026824951171875, 0.0367431640625, 0.00984954833984375, -0.036468505859375, 0.0237884521484375, 0.0004127025604248047, -0.03411865234375, -0.0005669593811035156, 0.0693359375, 0.04205322265625, 0.024017333984375, -0.048980712890625, 0.049835205078125, -0.0021076202392578125, -0.02813720703125, -0.04571533203125, 0.0079345703125, -0.06396484375, -0.029449462890625, -0.045440673828125, -0.047760009765625, 0.0015964508056640625, -0.07745361328125, -0.057281494140625, 0.09844970703125, -0.00396728515625, 0.016357421875, -0.003421783447265625, 0.0296783447265625, -0.03131103515625, 0.01392364501953125, 0.0011320114135742188, 0.041778564453125, -0.02459716796875, 0.04766845703125, -0.0154266357421875, -0.00868988037109375, 0.022552490234375, 0.044281005859375, 0.0189971923828125, -0.005306243896484375, 0.036346435546875, -0.0086669921875, 0.054595947265625, 0.044464111328125, 0.00873565673828125, -0.0251312255859375, -0.00862884521484375, -0.00067901611328125, -0.004974365234375, -0.04486083984375, 0.0217742919921875, -0.033966064453125, -0.0276947021484375, 0.0176239013671875, 0.00934600830078125, 0.0132293701171875, -0.006328582763671875, -0.00757598876953125, 0.01415252685546875, -0.00525665283203125, -0.01293182373046875, 0.006195068359375, -0.0063934326171875, 0.008514404296875, -0.01113128662109375, 0.00553131103515625, -0.0258941650390625, -0.0081787109375, 0.018585205078125, 0.02960205078125, -0.01641845703125, 0.02777099609375, 0.0176849365234375, -0.03265380859375, 0.034820556640625, 0.01174163818359375, 0.03497314453125, -0.0205535888671875, 0.03094482421875, 0.017730712890625, 0.03338623046875, -0.00830078125, -0.0150604248046875, -0.0093231201171875, 0.022613525390625, -0.012359619140625, -0.0280303955078125, 0.0168914794921875, 0.010498046875, 0.00910186767578125, -0.01023101806640625, 0.0162353515625, -0.0308990478515625, 0.0164642333984375, 0.01459503173828125, -0.0159912109375, 0.00745391845703125, 0.0005893707275390625, 0.01323699951171875, 0.042236328125, 0.003414154052734375, -0.005527496337890625, -0.00762176513671875, -0.02569580078125, 0.016021728515625, -0.00630950927734375, 0.0167236328125, -0.002429962158203125, 0.0343017578125, 0.006610870361328125, 0.0113677978515625, 0.01502227783203125, 0.024993896484375, -0.037841796875, -0.0118255615234375, -0.03826904296875, 0.0254669189453125, 0.0172882080078125, 0.032989501953125, 0.054534912109375, 0.08465576171875, 0.04925537109375, -0.048675537109375, 0.01192474365234375, 0.062103271484375, -0.0267181396484375, -0.0201568603515625, 0.00946807861328125, 0.00830841064453125, 0.0469970703125, 0.013397216796875, 0.00443267822265625, 0.051971435546875, 0.029052734375, -0.039306640625, 0.0031719207763671875, 0.003650665283203125, -0.028076171875, 0.0111541748046875, 0.004436492919921875, 0.002716064453125, 0.0038776397705078125, 0.0165252685546875, -0.0054473876953125, 0.0169830322265625, 0.015838623046875, -0.0197601318359375, 0.01087188720703125, -0.030548095703125, 0.05340576171875, 0.0214080810546875, -0.0140228271484375, 0.0030689239501953125, -0.0130615234375, 0.0186767578125, -0.01708984375, -0.0030422210693359375, 0.0006833076477050781, -0.0196533203125, -0.00470733642578125, 0.0185699462890625, 0.00897216796875, 0.0043487548828125, 0.037841796875, 0.01241302490234375, 0.003559112548828125, 0.01079559326171875, -0.01230621337890625, -0.00030350685119628906, -0.00457000732421875, -0.030120849609375, -0.0175628662109375, 0.011322021484375, 0.0152130126953125, -0.060791015625, 0.051727294921875, 0.004528045654296875, 0.0292816162109375, 0.0548095703125, -0.0260162353515625, 0.0136260986328125, 0.00725555419921875, 0.0182037353515625, -0.042022705078125, -0.0267791748046875, -0.0309906005859375, -0.0159759521484375, -0.0204315185546875, -0.04345703125, 0.004947662353515625, -0.02496337890625, 0.0714111328125, -0.004795074462890625, 0.005466461181640625, 0.054443359375, 0.0185546875, 0.02789306640625, 0.00725555419921875, -0.0221710205078125, 0.0155487060546875, -0.00464630126953125, -0.0007715225219726562, 0.009002685546875, 0.0341796875, 0.01287078857421875, -0.03546142578125, -0.01499176025390625, -0.03466796875, 0.001789093017578125, -0.035614013671875, -0.01885986328125, -0.010009765625, 0.01168060302734375, -0.034271240234375, 0.01276397705078125, -0.0203399658203125, -0.023895263671875, -0.0008840560913085938, 0.032440185546875, -0.0299224853515625, 0.004856109619140625, -0.08453369140625, 0.007717132568359375, 0.03717041015625, 0.023712158203125, -0.12255859375, 0.0726318359375, -0.0312042236328125, 0.05926513671875, -0.0244140625, 0.055389404296875, -0.0270233154296875, -0.0188751220703125, -0.0027904510498046875, -0.0218353271484375, -0.012664794921875, 0.08148193359375, 0.02459716796875, 0.020904541015625, 0.047393798828125, -0.0162200927734375, -0.01047515869140625, 0.016143798828125, 0.01175689697265625, 0.060302734375, -0.050048828125, -0.01123809814453125, 0.0029277801513671875, 0.006603240966796875, -0.018402099609375, -0.0595703125, 0.013763427734375, -0.06719970703125, -0.0246429443359375, -0.0202178955078125, -0.0220947265625, -0.005420684814453125, -0.051605224609375, -0.07220458984375, 0.029876708984375, -0.005908966064453125, -0.02960205078125, 0.011505126953125, -0.042816162109375, -0.0129852294921875, 0.039031982421875, 0.0205230712890625, -0.0237884521484375, -0.03173828125, 0.01020050048828125, 0.035125732421875, 0.072998046875, -0.013458251953125, 0.04095458984375, -0.018829345703125, 0.04571533203125, -0.001392364501953125, 0.0224456787109375, -0.0306396484375, 0.01221466064453125, 0.004314422607421875, 0.0268707275390625, -0.033935546875, 0.0033740997314453125, 0.02398681640625, 0.007472991943359375, -0.048980712890625, -0.022369384765625, -0.015228271484375, 0.006927490234375, 0.07452392578125, 0.0660400390625, 0.01532745361328125, -0.0411376953125, -0.0104522705078125, -0.010467529296875, -0.0007596015930175781, -0.0119476318359375, 0.0155792236328125, -0.055999755859375, -0.016876220703125, 0.0192413330078125, 0.0069732666015625, -0.034515380859375, 0.0184478759765625, -0.0187530517578125, -0.01165008544921875, 0.032379150390625, 0.004482269287109375, -0.041107177734375, 0.004985809326171875, -0.008148193359375, -0.0196075439453125, -0.0313720703125, -0.0289459228515625, 0.0202178955078125, -0.04351806640625, -0.054107666015625, -0.0277099609375, -0.0164642333984375, -0.01450347900390625, 0.050689697265625, -0.033935546875, 0.032135009765625, -0.06402587890625, 0.00348663330078125, 0.016632080078125, -0.00733184814453125, 0.0112152099609375, -0.01080322265625, -0.03369140625, -0.01568603515625, -0.0262603759765625, -0.0206146240234375, 0.0091552734375, 0.039886474609375, -0.0130767822265625, 0.03924560546875, -0.01776123046875, -0.00859832763671875, -0.0252685546875, 0.00946044921875, 0.0162506103515625, 0.052581787109375, 0.0127105712890625, -0.0002448558807373047, -0.0037555694580078125, 0.0305023193359375, 0.0235595703125, -0.0113677978515625 ]
3e32e8e836569345df9ce4fbd1ff753ed1853f63
Wordpress Stackexchange Q: WP 3.3 > Still no option to enable automatic image overwrites? I was really excited to see the new functionality with the media manager in WP 3.3 (specifically drag and drop uploads and automatic file type recognition) But I was disheartened to see no relief in terms of the confusing manner in which WP continues to handle image overwrites (by appending a number to the image and creating a duplicate version). Does anyone have a workaround that I can implement in my theme's functions.php to enable automatic image overwrites, replacing the original image with the new one, and without changing the filename? A: There's another plugin out there worth checking out: Enable Media Replace This plugin allows you to replace a file in your media library by uploading a new file in its place. No more deleting, renaming and re-uploading files!
Q: WP 3.3 > Still no option to enable automatic image overwrites? I was really excited to see the new functionality with the media manager in WP 3.3 (specifically drag and drop uploads and automatic file type recognition) But I was disheartened to see no relief in terms of the confusing manner in which WP continues to handle image overwrites (by appending a number to the image and creating a duplicate version). Does anyone have a workaround that I can implement in my theme's functions.php to enable automatic image overwrites, replacing the original image with the new one, and without changing the filename? A: There's another plugin out there worth checking out: Enable Media Replace This plugin allows you to replace a file in your media library by uploading a new file in its place. No more deleting, renaming and re-uploading files! A: Some searching revealed a plugin that seems to work, Overwrite Uploads. However, this requires a small change to the wp core, which isn't great. So far I haven't found any way around this. On a sidenote, I've used WPlupload to replace the built in uploader. I like how it lets me set a max upload file size and resolution. not sure if it helps with your problem but might be useful to check out. By the way, this has been asked a few times before with the same suggestion.
wordpress
{ "language": "en", "length": 232, "provenance": "stackexchange_00019.jsonl.gz:415587", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37152" }
[ 0.061492919921875, -0.01885986328125, 0.01081085205078125, 0.0038242340087890625, 0.004680633544921875, -0.04071044921875, 0.09375, -0.0253753662109375, 0.0430908203125, 0.0125274658203125, -0.051177978515625, 0.002742767333984375, 0.04681396484375, -0.01485443115234375, -0.0081939697265625, 0.004150390625, 0.051116943359375, -0.062744140625, 0.0166015625, 0.001659393310546875, -0.003459930419921875, 0.0333251953125, 0.041656494140625, 0.001476287841796875, 0.009033203125, 0.0230865478515625, -0.0019435882568359375, -0.0125732421875, 0.019744873046875, 0.018157958984375, 0.0192718505859375, -0.016571044921875, 0.0005121231079101562, 0.031768798828125, -0.0206298828125, -0.0256195068359375, 0.004367828369140625, 0.0087127685546875, 0.00911712646484375, 0.00334930419921875, 0.00868988037109375, 0.00249481201171875, 0.05499267578125, 0.01399993896484375, 0.01136016845703125, -0.012451171875, 0.006114959716796875, -0.044830322265625, 0.05419921875, 0.0169525146484375, -0.0283050537109375, 0.037841796875, -0.02313232421875, 0.0277557373046875, -0.0174407958984375, -0.03533935546875, -0.03948974609375, 0.0589599609375, 0.0024433135986328125, -0.0006489753723144531, -0.0080413818359375, 0.0299224853515625, 0.0106658935546875, 0.0118408203125, -0.038909912109375, -0.03363037109375, -0.0179443359375, -0.0192413330078125, -0.040283203125, -0.03704833984375, 0.0770263671875, -0.004833221435546875, 0.0200653076171875, -0.014373779296875, 0.001865386962890625, 0.026580810546875, -0.02117919921875, 0.01061248779296875, 0.053070068359375, -0.01739501953125, 0.04278564453125, -0.022369384765625, 0.039581298828125, 0.00743865966796875, 0.01360321044921875, 0.018341064453125, 0.0025615692138671875, -0.0128173828125, -0.0152587890625, 0.0127716064453125, -0.0183563232421875, -0.05255126953125, 0.0213470458984375, 0.01027679443359375, -0.0035037994384765625, -0.01434326171875, 0.003803253173828125, 0.039703369140625, -0.0059661865234375, 0.03570556640625, -0.027557373046875, -0.031768798828125, 0.0428466796875, -0.052520751953125, 0.0006809234619140625, -0.00885772705078125, -0.0081787109375, -0.043914794921875, 0.01380157470703125, 0.02459716796875, -0.023956298828125, 0.034088134765625, 0.04315185546875, -0.0026111602783203125, 0.00725555419921875, -0.0182952880859375, -0.0172576904296875, 0.05682373046875, -0.0008025169372558594, 0.037322998046875, -0.0170745849609375, 0.01611328125, -0.057220458984375, 0.005245208740234375, 0.021484375, -0.0124053955078125, 0.015380859375, 0.025054931640625, 0.0222930908203125, -0.0089263916015625, -0.0343017578125, 0.039215087890625, 0.06597900390625, -0.018890380859375, -0.00687408447265625, -0.005146026611328125, 0.028839111328125, -0.00860595703125, -0.00024890899658203125, 0.0180511474609375, 0.007030487060546875, -0.047210693359375, -0.01267242431640625, 0.022491455078125, 0.03125, 0.0251922607421875, -0.0009179115295410156, 0.005779266357421875, 0.024810791015625, -0.035247802734375, 0.034576416015625, -0.0526123046875, 0.027008056640625, 0.004947662353515625, 0.034393310546875, -0.039703369140625, 0.045379638671875, -0.040802001953125, 0.0220947265625, -0.041595458984375, 0.0092010498046875, 0.00302886962890625, 0.00962066650390625, 0.0010004043579101562, -0.0175933837890625, -0.006771087646484375, -0.01139068603515625, -0.0023040771484375, 0.02581787109375, 0.0107421875, -0.00917816162109375, -0.025299072265625, -0.0127105712890625, 0.01349639892578125, 0.0006732940673828125, 0.037353515625, 0.016448974609375, 0.034698486328125, 0.004169464111328125, 0.04522705078125, 0.014404296875, -0.0196380615234375, 0.08477783203125, -0.0139923095703125, -0.043426513671875, -0.0282745361328125, 0.0198211669921875, 0.04168701171875, 0.02911376953125, 0.045196533203125, 0.0201873779296875, -0.0162506103515625, -0.022430419921875, 0.0081787109375, -0.0254974365234375, -0.03216552734375, 0.0364990234375, 0.0102691650390625, -0.007785797119140625, 0.007843017578125, 0.0241241455078125, 0.01174163818359375, -0.0251617431640625, 0.0263824462890625, -0.031646728515625, 0.0033397674560546875, -0.02154541015625, 0.009521484375, 0.0008568763732910156, 0.01556396484375, 0.026611328125, -0.02313232421875, -0.03057861328125, 0.04345703125, -0.0194091796875, -0.035888671875, -0.0467529296875, 0.025115966796875, 0.0033931732177734375, 0.07000732421875, -0.0193939208984375, -0.0276947021484375, -0.0186004638671875, -0.0362548828125, 0.0090484619140625, 0.0018711090087890625, -0.0249176025390625, -0.009552001953125, 0.02117919921875, 0.00765228271484375, 0.006130218505859375, 0.03387451171875, -0.032379150390625, -0.0026760101318359375, -0.0135498046875, -0.031097412109375, -0.02874755859375, -0.09942626953125, 0.03350830078125, 0.0665283203125, 0.03839111328125, 0.0260467529296875, 0.03839111328125, 0.053680419921875, 0.058502197265625, 0.036773681640625, 0.04571533203125, -0.017547607421875, 0.0157928466796875, 0.02130126953125, 0.00749969482421875, -0.0328369140625, 0.0081024169921875, -0.09832763671875, 0.01348876953125, 0.0347900390625, -0.040496826171875, -0.031402587890625, -0.01172637939453125, 0.0247650146484375, 0.01198577880859375, 0.0023250579833984375, 0.012115478515625, -0.00791168212890625, 0.01052093505859375, 0.01155853271484375, 0.01849365234375, 0.0166778564453125, -0.0212249755859375, 0.00914764404296875, 0.0284423828125, -0.0347900390625, 0.021026611328125, 0.0457763671875, -0.031707763671875, 0.0220489501953125, 0.005275726318359375, -0.01280975341796875, 0.01076507568359375, 0.01690673828125, -0.0091400146484375, 0.020416259765625, -0.053741455078125, -0.0211639404296875, 0.004329681396484375, -0.0673828125, -0.0311279296875, -0.003482818603515625, -0.055023193359375, -0.01233673095703125, 0.023193359375, 0.031707763671875, 0.0010089874267578125, -0.0138092041015625, -0.032806396484375, 0.01178741455078125, -0.01110076904296875, -0.04638671875, 0.04833984375, -0.043182373046875, 0.053497314453125, 0.0655517578125, -0.03643798828125, 0.040130615234375, 0.002605438232421875, -0.0247802734375, -0.01322174072265625, 0.044708251953125, 0.0072021484375, 0.0020427703857421875, -0.0772705078125, -0.017059326171875, 0.01190185546875, -0.005096435546875, -0.015899658203125, -0.0267333984375, -0.022186279296875, -0.012481689453125, -0.07635498046875, -0.0292510986328125, -0.002109527587890625, -0.04010009765625, -0.0136871337890625, 0.03863525390625, -0.0258026123046875, -0.0195465087890625, 0.06768798828125, -0.00548553466796875, -0.054290771484375, -0.00957489013671875, 0.032196044921875, -0.05401611328125, -0.0159912109375, -0.07977294921875, 0.0089263916015625, 0.01351165771484375, -0.0054931640625, 0.0406494140625, -0.00004547834396362305, -0.0440673828125, 0.016510009765625, -0.0031147003173828125, 0.01038360595703125, 0.0238800048828125, 0.058746337890625, -0.03472900390625, 0.01140594482421875, 0.00885772705078125, -0.0164794921875, 0.040008544921875, -0.049530029296875, -0.018524169921875, -0.0242462158203125, -0.0114898681640625, -0.0283203125, 0.048583984375, 0.04315185546875, -0.007099151611328125, 0.005290985107421875, -0.0323486328125, 0.0238800048828125, -0.044830322265625, -0.027557373046875, 0.03997802734375, 0.01141357421875, -0.004077911376953125, 0.0032520294189453125, -0.0052490234375, -0.00769805908203125, 0.02825927734375, -0.0340576171875, -0.0217437744140625, 0.01399993896484375, 0.0024261474609375, 0.00701141357421875, 0.0165252685546875, -0.01849365234375, -0.0189361572265625, 0.03973388671875, -0.0060882568359375, 0.016693115234375, -0.01995849609375, 0.051361083984375, -0.0379638671875, -0.033416748046875, 0.01541900634765625, -0.0712890625, -0.00011491775512695312, -0.044830322265625, 0.0027790069580078125, -0.00926971435546875, 0.056488037109375, 0.0222625732421875, -0.009307861328125, -0.00618743896484375, 0.002902984619140625, -0.0239410400390625, -0.0245819091796875, -0.030181884765625, 0.007137298583984375, -0.01395416259765625, 0.003185272216796875, 0.01459503173828125, -0.01776123046875, 0.0033550262451171875, 0.0015850067138671875, 0.0101470947265625, -0.01544952392578125, 0.024749755859375, -0.0322265625, -0.020233154296875, 0.01324462890625, -0.0281982421875, -0.026123046875, -0.01168060302734375, -0.0269622802734375, -0.12103271484375, -0.0177001953125, -0.08135986328125, 0.11376953125, 0.0200958251953125, 0.0244293212890625, -0.049285888671875, 0.046142578125, 0.047088623046875, -0.0028362274169921875, 0.011260986328125, -0.018585205078125, 0.02288818359375, -0.00432586669921875, 0.006587982177734375, -0.0191650390625, -0.0169677734375, -0.03948974609375, -0.035858154296875, -0.0135498046875, 0.004421234130859375, 0.0021839141845703125, 0.0211639404296875, -0.0143585205078125, -0.00021147727966308594, -0.0125579833984375, -0.0550537109375, 0.0133209228515625, -0.0197296142578125, -0.02325439453125, -0.041900634765625, -0.01446533203125, -0.0197601318359375, -0.035552978515625, 0.028533935546875, 0.026397705078125, 0.0567626953125, 0.0110626220703125, 0.01495361328125, -0.04638671875, -0.002788543701171875, 0.018707275390625, 0.025543212890625, -0.03985595703125, -0.03271484375, -0.0161590576171875, -0.03997802734375, 0.00351715087890625, -0.012237548828125, 0.0013484954833984375, 0.001781463623046875, -0.007183074951171875, -0.033538818359375, 0.0186767578125, -0.0214385986328125, 0.032470703125, 0.036712646484375, 0.0151824951171875, -0.0236663818359375, -0.03375244140625, 0.03021240234375, 0.013671875, -0.00803375244140625, -0.0419921875, -0.040740966796875, 0.0177154541015625, 0.01363372802734375, 0.052703857421875, -0.00792694091796875, 0.0019683837890625, 0.038970947265625, 0.02630615234375, 0.0029315948486328125, 0.0174713134765625, 0.026519775390625, -0.032501220703125, 0.06475830078125, -0.034698486328125, -0.0308074951171875, 0.0162811279296875, -0.008941650390625, 0.0228271484375, 0.0023040771484375, -0.0406494140625, -0.0210418701171875, 0.0009484291076660156, 0.004741668701171875, 0.007518768310546875, -0.01461029052734375, 0.042816162109375, 0.04296875, -0.009490966796875, -0.00440216064453125, -0.048187255859375, 0.04937744140625, -0.053863525390625, -0.005702972412109375, 0.012969970703125, -0.0294647216796875, 0.034027099609375, -0.037200927734375, -0.01474761962890625, -0.0229034423828125, 0.021453857421875, 0.0076446533203125, 0.007137298583984375, 0.006717681884765625, 0.019287109375, 0.03289794921875, -0.00836944580078125, -0.01111602783203125, 0.026153564453125, -0.074951171875, -0.061309814453125, 0.0178985595703125, 0.0810546875, -0.0093994140625, -0.0020160675048828125, -0.00537872314453125, -0.01464080810546875, -0.0288848876953125, 0.0308685302734375, -0.01061248779296875, -0.05157470703125, -0.02117919921875, 0.00885772705078125, 0.032379150390625, -0.0111541748046875, -0.0233306884765625, -0.03302001953125, -0.05816650390625, -0.00710296630859375, 0.031219482421875, -0.0244293212890625, 0.0067138671875, -0.006664276123046875, -0.0263824462890625, -0.0270233154296875, -0.003936767578125, -0.007640838623046875, -0.02215576171875, 0.006740570068359375, 0.0015840530395507812, 0.035919189453125, -0.0465087890625, 0.0022602081298828125, -0.0024929046630859375, 0.0095977783203125, -0.0141143798828125, 0.039398193359375, 0.0026302337646484375, 0.0005016326904296875, 0.024627685546875, -0.031402587890625, -0.046173095703125, -0.026275634765625, 0.0079193115234375, -0.01125335693359375, -0.009796142578125, -0.009246826171875, -0.017852783203125, 0.0186004638671875, -0.0377197265625, -0.014434814453125, -0.002227783203125, 0.044647216796875, 0.019317626953125, 0.0794677734375, 0.006011962890625, -0.031341552734375, -0.00801849365234375, -0.01218414306640625, -0.02850341796875, -0.04144287109375, 0.01690673828125, -0.0243988037109375, -0.034515380859375, -0.0457763671875, -0.00823974609375, 0.050933837890625, -0.056182861328125, 0.059539794921875, 0.08819580078125, 0.013702392578125, 0.024200439453125, -0.01187896728515625, 0.005992889404296875, -0.006320953369140625, 0.0180206298828125, -0.032867431640625, 0.01369476318359375, 0.01111602783203125, -0.00824737548828125, 0.044525146484375, -0.0191802978515625, -0.0172882080078125, 0.0210418701171875, -0.0163726806640625, 0.015655517578125, 0.027923583984375, -0.01326751708984375, 0.01488494873046875, 0.0006246566772460938, -0.0126800537109375, 0.0227508544921875, -0.00664520263671875, 0.0028705596923828125, 0.00817108154296875, -0.00814056396484375, 0.0377197265625, 0.0037689208984375, 0.0253143310546875, -0.0191497802734375, 0.006999969482421875, 0.004833221435546875, -0.01523590087890625, 0.032806396484375, 0.040313720703125, 0.05401611328125, -0.0304107666015625, -0.00920867919921875, -0.01983642578125, -0.06341552734375, 0.037933349609375, 0.0189361572265625, -0.0174407958984375, -0.02001953125, 0.031158447265625, -0.0738525390625, -0.0230865478515625, -0.0027103424072265625, -0.01468658447265625, -0.0179290771484375, 0.02130126953125, 0.016815185546875, 0.0117034912109375, 0.0119476318359375, -0.05364990234375, 0.01983642578125, -0.02301025390625, 0.01453399658203125, 0.006771087646484375, 0.01038360595703125, -0.0198974609375, -0.0355224609375, 0.01404571533203125, -0.0411376953125, -0.00919342041015625, 0.0203399658203125, -0.0148773193359375, 0.01465606689453125, 0.044097900390625, -0.019287109375, 0.011627197265625, 0.004253387451171875, -0.0178375244140625, 0.0170745849609375, -0.033477783203125, 0.0307769775390625, 0.0220184326171875, -0.0733642578125, 0.01910400390625, -0.0173797607421875, -0.0051422119140625, -0.00399017333984375, -0.0184173583984375, 0.04052734375, -0.0506591796875, 0.0196685791015625, 0.035919189453125, 0.03857421875, -0.00760650634765625, 0.0012426376342773438, 0.00757598876953125, -0.08233642578125, -0.07354736328125, 0.00672149658203125, -0.057220458984375, 0.01081085205078125, 0.03167724609375, -0.050445556640625, 0.1480712890625, 0.0264892578125, 0.023406982421875, 0.01212310791015625, 0.065673828125, -0.0577392578125, 0.023590087890625, -0.0335693359375, 0.024200439453125, -0.0684814453125, 0.04302978515625, -0.07879638671875, 0.0157623291015625, -0.01959228515625, 0.02337646484375, 0.04620361328125, 0.0086212158203125, -0.0218505859375, -0.0290679931640625, 0.016693115234375, 0.05133056640625, 0.01053619384765625, 0.018829345703125, 0.00750732421875, 0.00213623046875, 0.018707275390625, -0.029327392578125, 0.0235443115234375, -0.045867919921875, 0.01078033447265625, 0.037567138671875, 0.002414703369140625, 0.0124053955078125, -0.01551055908203125, 0.048187255859375, -0.0160675048828125, -0.0185699462890625, 0.032257080078125, -0.048736572265625, 0.02215576171875, 0.01139068603515625, -0.00504302978515625, 0.029022216796875, 0.002063751220703125, -0.0012197494506835938, 0.024444580078125, -0.01128387451171875, 0.005462646484375, 0.03472900390625, 0.0127410888671875, -0.005657196044921875, -0.0038852691650390625, 0.007259368896484375, 0.005382537841796875, 0.00878143310546875, -0.0186614990234375, 0.00008171796798706055, 0.021697998046875, -0.00711822509765625, 0.006092071533203125, 0.0186767578125, -0.010955810546875, 0.00420379638671875, -0.0679931640625, 0.014617919921875, 0.00047016143798828125, 0.01007080078125, 0.03753662109375, 0.008636474609375, -0.08526611328125, -0.0176239013671875, -0.0162353515625, 0.004261016845703125, 0.04754638671875, 0.00008040666580200195, 0.01012420654296875, 0.0174560546875, 0.003498077392578125, 0.002788543701171875, -0.01409149169921875, -0.005397796630859375, 0.01285552978515625, 0.015869140625, -0.0036563873291015625, 0.0122833251953125, -0.01132965087890625, 0.0066680908203125, -0.044952392578125, 0.05206298828125, -0.0193023681640625, 0.07275390625, -0.052825927734375, -0.05126953125, 0.030914306640625, 0.03851318359375, 0.00592041015625, 0.045928955078125, 0.07147216796875, 0.061614990234375, -0.03985595703125, -0.01033782958984375, 0.0266571044921875, -0.026214599609375, 0.0369873046875, -0.01241302490234375, 0.01374053955078125, 0.007801055908203125, -0.0121307373046875, -0.03485107421875, 0.0257415771484375, 0.034454345703125, -0.0384521484375, 0.0055694580078125, -0.004085540771484375, -0.03729248046875, 0.02227783203125, 0.020172119140625, 0.04681396484375, 0.006595611572265625, -0.07769775390625, -0.0241851806640625, -0.021728515625, -0.0190582275390625, 0.0167388916015625, 0.023101806640625, -0.0206756591796875, 0.03460693359375, -0.01316070556640625, -0.017303466796875, 0.0104217529296875, -0.0111541748046875, -0.0035076141357421875, -0.040802001953125, 0.01285552978515625, -0.0269927978515625, -0.031036376953125, -0.006748199462890625, -0.016448974609375, 0.017791748046875, 0.0159149169921875, 0.08465576171875, -0.023468017578125, 0.0267486572265625, 0.0104827880859375, 0.019866943359375, -0.0273284912109375, 0.007843017578125, -0.026824951171875, -0.0261993408203125, 0.00859832763671875, -0.0019969940185546875, 0.025665283203125, 0.04290771484375, 0.01140594482421875, -0.023712158203125, 0.01898193359375, -0.0306243896484375, 0.0018301010131835938, 0.018524169921875, 0.0166473388671875, -0.041839599609375, -0.040771484375, -0.0439453125, -0.005916595458984375, -0.00908660888671875, -0.040191650390625, -0.01511383056640625, 0.006397247314453125, 0.030731201171875, -0.0048980712890625, 0.012298583984375, -0.004993438720703125, 0.0226898193359375, 0.0291595458984375, 0.0007882118225097656, -0.03619384765625, 0.0241546630859375, 0.00640869140625, -0.027496337890625, 0.01898193359375, 0.03466796875, 0.0279693603515625, -0.054107666015625, -0.0025463104248046875, -0.0093536376953125, -0.007663726806640625, -0.041259765625, -0.02325439453125, 0.016693115234375, -0.0169525146484375, -0.00754547119140625, -0.0247039794921875, -0.0218505859375, -0.030303955078125, -0.02874755859375, 0.0288543701171875, -0.044921875, -0.01459503173828125, -0.057342529296875, 0.00792694091796875, 0.0232391357421875, 0.048858642578125, -0.12939453125, 0.0772705078125, 0.0122833251953125, 0.01141357421875, 0.00013554096221923828, -0.03759765625, 0.004638671875, 0.0264434814453125, -0.0306854248046875, -0.0660400390625, -0.0240478515625, 0.05255126953125, -0.037139892578125, 0.00592041015625, 0.0243072509765625, -0.027008056640625, -0.01611328125, 0.018218994140625, 0.0229339599609375, 0.056915283203125, -0.00556182861328125, -0.027984619140625, -0.02386474609375, 0.0232696533203125, -0.0284881591796875, -0.006145477294921875, 0.0499267578125, -0.03759765625, -0.034942626953125, -0.003662109375, 0.011962890625, 0.023681640625, -0.03460693359375, -0.07159423828125, -0.0628662109375, 0.01806640625, -0.046905517578125, 0.0252838134765625, -0.01422882080078125, -0.037017822265625, 0.048309326171875, 0.025665283203125, -0.0160064697265625, 0.0178680419921875, 0.0161590576171875, 0.0202789306640625, 0.046844482421875, -0.00856781005859375, 0.040130615234375, -0.031219482421875, 0.0240478515625, -0.00977325439453125, 0.01523590087890625, 0.034515380859375, -0.0418701171875, 0.068603515625, 0.043853759765625, -0.03839111328125, -0.0029354095458984375, -0.0035915374755859375, -0.0007700920104980469, -0.01806640625, -0.016387939453125, -0.050262451171875, 0.003032684326171875, 0.09942626953125, 0.092529296875, 0.022735595703125, -0.058563232421875, 0.03448486328125, -0.00115203857421875, -0.0173797607421875, -0.0027561187744140625, 0.00740814208984375, -0.041961669921875, -0.01824951171875, 0.01378631591796875, -0.0174560546875, -0.051849365234375, 0.025421142578125, -0.040313720703125, -0.0008859634399414062, -0.00162506103515625, -0.03533935546875, 0.006832122802734375, 0.029052734375, 0.08795166015625, -0.052978515625, 0.0202178955078125, -0.0080718994140625, 0.0027027130126953125, 0.04669189453125, -0.046905517578125, 0.014617919921875, 0.0438232421875, -0.03656005859375, 0.004245758056640625, 0.0265960693359375, 0.01464080810546875, -0.02484130859375, -0.01322174072265625, 0.0214996337890625, 0.01288604736328125, -0.0020275115966796875, 0.029571533203125, 0.0010328292846679688, 0.02978515625, -0.017333984375, -0.01441192626953125, -0.006168365478515625, -0.0216064453125, -0.008758544921875, -0.006946563720703125, -0.050140380859375, 0.020782470703125, -0.0305023193359375, -0.02069091796875, 0.01491546630859375, -0.00966644287109375, -0.0325927734375, -0.029205322265625, -0.004726409912109375, -0.0300140380859375, -0.015167236328125, 0.01293182373046875 ]
4bc2528f8f2f10a7bf619744642f63fbb2ad4134
Wordpress Stackexchange Q: simply loop through posts I know this is a really newbie question, but I can't seem to get the loop to pull from the posts. all it is doing is pulling from the page itself. I made a template and added the loop to it. <?php if( have_posts() ) { while( have_posts() ) { the_post(); ?> <h2><?php the_title(); ?></h2> <?php } } ?> edit: here is all the code: http://pastebin.com/k2rDu53b A: Because you're on a page, that's only going to display the query for that page. As such, you'd have to create a new query to bring in the posts you want. Replace your loop with this: <?php $args = array( 'post_type' => 'post' ); $post_query = new WP_Query($args); if($post_query->have_posts() ) { while($post_query->have_posts() ) { $post_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php } } ?> Here some more information on the query: http://codex.wordpress.org/Class_Reference/WP_Query
Q: simply loop through posts I know this is a really newbie question, but I can't seem to get the loop to pull from the posts. all it is doing is pulling from the page itself. I made a template and added the loop to it. <?php if( have_posts() ) { while( have_posts() ) { the_post(); ?> <h2><?php the_title(); ?></h2> <?php } } ?> edit: here is all the code: http://pastebin.com/k2rDu53b A: Because you're on a page, that's only going to display the query for that page. As such, you'd have to create a new query to bring in the posts you want. Replace your loop with this: <?php $args = array( 'post_type' => 'post' ); $post_query = new WP_Query($args); if($post_query->have_posts() ) { while($post_query->have_posts() ) { $post_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php } } ?> Here some more information on the query: http://codex.wordpress.org/Class_Reference/WP_Query
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:415590", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37155" }
[ 0.043304443359375, 0.018524169921875, 0.026885986328125, 0.031097412109375, 0.041290283203125, -0.0258026123046875, 0.09161376953125, -0.052001953125, 0.02410888671875, 0.029327392578125, -0.06304931640625, -0.008819580078125, -0.01493072509765625, 0.00048542022705078125, -0.0255889892578125, -0.059356689453125, 0.04351806640625, -0.049591064453125, 0.0257568359375, 0.008392333984375, 0.0205230712890625, 0.028472900390625, 0.054962158203125, 0.06207275390625, 0.0166778564453125, 0.021484375, 0.0552978515625, -0.0189208984375, 0.005733489990234375, -0.007320404052734375, 0.01495361328125, -0.02801513671875, 0.00875091552734375, 0.01470184326171875, -0.01009368896484375, -0.00860595703125, 0.00873565673828125, -0.013641357421875, 0.01020050048828125, 0.0016431808471679688, 0.0096435546875, 0.00867462158203125, -0.0004277229309082031, 0.04071044921875, -0.032379150390625, -0.0160064697265625, -0.0026531219482421875, -0.032196044921875, 0.0168914794921875, -0.0179443359375, 0.00835418701171875, -0.0171356201171875, 0.01409149169921875, -0.01264190673828125, -0.01546478271484375, 0.01593017578125, 0.023040771484375, -0.06689453125, 0.0452880859375, -0.0736083984375, -0.051055908203125, -0.05169677734375, 0.0687255859375, 0.0235595703125, -0.0304412841796875, 0.0018472671508789062, 0.040679931640625, 0.0017805099487304688, -0.01666259765625, -0.04901123046875, 0.01387786865234375, 0.0010099411010742188, -0.00830841064453125, -0.0164642333984375, -0.0191497802734375, -0.02740478515625, 0.006206512451171875, -0.044525146484375, 0.0049285888671875, 0.015380859375, -0.0224761962890625, -0.00926971435546875, -0.08563232421875, 0.0301666259765625, -0.033172607421875, 0.0211029052734375, -0.0122222900390625, -0.0044097900390625, -0.0119476318359375, -0.0557861328125, -0.0102996826171875, 0.0120697021484375, -0.03472900390625, -0.03558349609375, -0.03704833984375, -0.048828125, -0.00024068355560302734, 0.03753662109375, -0.0026111602783203125, 0.027435302734375, -0.047821044921875, -0.00955963134765625, 0.0025844573974609375, -0.0369873046875, 0.0173187255859375, 0.005908966064453125, -0.0010776519775390625, 0.033721923828125, 0.077392578125, 0.04736328125, 0.0227508544921875, 0.08489990234375, -0.055328369140625, -0.01427459716796875, -0.03521728515625, 0.0293121337890625, -0.06854248046875, -0.0305938720703125, -0.014801025390625, -0.01383209228515625, 0.01398468017578125, 0.0274658203125, -0.0070953369140625, 0.0165863037109375, -0.00740814208984375, 0.006214141845703125, 0.0015497207641601562, -0.046417236328125, 0.0400390625, 0.0186004638671875, -0.01593017578125, -0.007740020751953125, 0.01812744140625, 0.018798828125, 0.00091552734375, -0.0237579345703125, -0.0101470947265625, -0.0204620361328125, 0.0028171539306640625, 0.0030975341796875, 0.03265380859375, -0.02838134765625, -0.01137542724609375, 0.0249786376953125, 0.0237579345703125, 0.01206207275390625, 0.0112152099609375, 0.0206146240234375, 0.0085906982421875, -0.00440216064453125, -0.018402099609375, 0.0195770263671875, -0.0167694091796875, 0.01093292236328125, 0.034881591796875, -0.03961181640625, 0.0098724365234375, -0.0261688232421875, 0.043792724609375, -0.0169677734375, 0.015777587890625, 0.0203704833984375, 0.01515960693359375, -0.0010929107666015625, -0.0254058837890625, -0.0221405029296875, -0.028564453125, -0.01447296142578125, 0.02593994140625, 0.0124969482421875, 0.026123046875, -0.0305328369140625, 0.039825439453125, 0.00391387939453125, -0.01267242431640625, 0.0026454925537109375, -0.019256591796875, -0.02532958984375, 0.020477294921875, 0.016143798828125, -0.03009033203125, -0.042449951171875, -0.0214691162109375, 0.005092620849609375, -0.052154541015625, 0.033966064453125, 0.0183563232421875, 0.027587890625, -0.00846099853515625, 0.0134735107421875, 0.055755615234375, 0.043853759765625, -0.039764404296875, 0.046173095703125, -0.0006356239318847656, -0.042724609375, -0.00177001953125, -0.02801513671875, -0.0028896331787109375, -0.0157318115234375, 0.01251220703125, -0.0124664306640625, -0.0016489028930664062, 0.0014047622680664062, -0.042236328125, 0.0067901611328125, -0.01214599609375, 0.02484130859375, 0.052001953125, 0.03509521484375, 0.001171112060546875, 0.0267333984375, -0.022705078125, -0.038238525390625, -0.05426025390625, 0.0268096923828125, -0.035858154296875, -0.00881195068359375, -0.00926971435546875, -0.018157958984375, 0.00931549072265625, -0.0229644775390625, -0.00012576580047607422, 0.0206756591796875, 0.0821533203125, -0.050079345703125, 0.0028514862060546875, -0.05242919921875, 0.007049560546875, -0.0030059814453125, -0.08697509765625, 0.057159423828125, 0.02032470703125, 0.0457763671875, -0.03643798828125, -0.012908935546875, -0.01276397705078125, 0.02178955078125, 0.00579071044921875, 0.028350830078125, 0.0294189453125, 0.033660888671875, -0.01332855224609375, -0.0045318603515625, 0.038360595703125, -0.048492431640625, 0.0219879150390625, -0.0184783935546875, 0.0236663818359375, 0.057769775390625, 0.0166168212890625, 0.0171356201171875, 0.023162841796875, -0.0021762847900390625, 0.01904296875, 0.01690673828125, 0.0247802734375, 0.059722900390625, -0.05615234375, 0.0014657974243164062, -0.00843048095703125, -0.04132080078125, -0.01319122314453125, -0.029083251953125, 0.0099945068359375, 0.033905029296875, 0.050872802734375, 0.040863037109375, -0.01413726806640625, 0.005954742431640625, -0.01136016845703125, 0.0010280609130859375, -0.00594329833984375, 0.00197601318359375, -0.04351806640625, -0.016204833984375, -0.0230712890625, 0.02032470703125, -0.016754150390625, -0.02703857421875, 0.0022182464599609375, 0.01715087890625, 0.0123443603515625, -0.00604248046875, -0.0033016204833984375, -0.044036865234375, 0.016265869140625, 0.020904541015625, 0.00621795654296875, 0.0247650146484375, 0.033538818359375, 0.041778564453125, -0.013519287109375, 0.04119873046875, -0.05096435546875, 0.0120697021484375, 0.0634765625, -0.058837890625, 0.03717041015625, -0.0523681640625, 0.048187255859375, 0.063232421875, -0.01242828369140625, 0.00498199462890625, -0.005279541015625, -0.0276031494140625, -0.013153076171875, 0.02130126953125, -0.01093292236328125, -0.0181884765625, -0.03424072265625, -0.0016775131225585938, 0.037872314453125, 0.08892822265625, 0.010009765625, -0.0281524658203125, 0.0171051025390625, 0.06292724609375, -0.07806396484375, -0.111328125, 0.05908203125, -0.06866455078125, -0.037109375, -0.0316162109375, -0.048187255859375, 0.005535125732421875, -0.034332275390625, -0.0186767578125, 0.0214691162109375, -0.002613067626953125, -0.07147216796875, -0.0276031494140625, -0.09796142578125, -0.01265716552734375, -0.00119781494140625, 0.041168212890625, 0.02166748046875, 0.0401611328125, 0.006046295166015625, -0.050140380859375, 0.000045180320739746094, 0.0287933349609375, -0.032379150390625, -0.003662109375, -0.02008056640625, 0.03668212890625, -0.00691986083984375, 0.022186279296875, -0.01390838623046875, 0.0107574462890625, -0.00905609130859375, -0.0225067138671875, 0.00809478759765625, -0.0142669677734375, 0.029022216796875, -0.00298309326171875, -0.0227508544921875, 0.0316162109375, 0.03472900390625, -0.031005859375, -0.02294921875, -0.025604248046875, -0.037322998046875, -0.0167694091796875, 0.0222015380859375, 0.01336669921875, -0.0457763671875, 0.034423828125, -0.0094451904296875, -0.01436614990234375, -0.0210113525390625, -0.042510986328125, 0.052337646484375, 0.01236724853515625, 0.0318603515625, 0.0246429443359375, -0.0039520263671875, -0.0205078125, 0.0289764404296875, 0.003932952880859375, 0.0019521713256835938, -0.016204833984375, 0.0028476715087890625, -0.0213775634765625, -0.05267333984375, 0.048858642578125, 0.0445556640625, 0.023345947265625, 0.00004208087921142578, -0.04522705078125, 0.0146636962890625, 0.09002685546875, -0.03985595703125, -0.01335906982421875, -0.01021575927734375, 0.0000064373016357421875, -0.00039196014404296875, -0.0484619140625, -0.0148468017578125, -0.0188140869140625, -0.043731689453125, -0.02008056640625, -0.0257110595703125, -0.02728271484375, 0.00479888916015625, -0.0161895751953125, -0.0182037353515625, -0.03155517578125, 0.0248260498046875, -0.039154052734375, 0.0241851806640625, 0.002765655517578125, 0.00968170166015625, -0.0182342529296875, 0.0005340576171875, -0.0386962890625, -0.128173828125, -0.0227508544921875, 0.0310516357421875, 0.06884765625, -0.0152740478515625, -0.032470703125, -0.0197601318359375, 0.058502197265625, 0.0016193389892578125, 0.01253509521484375, -0.0045318603515625, -0.0010852813720703125, -0.022857666015625, 0.006153106689453125, -0.01059722900390625, -0.019012451171875, -0.0131988525390625, -0.0287017822265625, 0.040496826171875, 0.05242919921875, -0.050384521484375, 0.02911376953125, -0.08251953125, 0.027008056640625, -0.04345703125, -0.00209808349609375, 0.04339599609375, -0.006816864013671875, -0.00295257568359375, 0.0066986083984375, 0.00505828857421875, -0.0115509033203125, 0.029296875, 0.0109405517578125, -0.002582550048828125, 0.01496124267578125, 0.07232666015625, 0.00797271728515625, -0.024749755859375, -0.064697265625, -0.010345458984375, 0.016815185546875, -0.0330810546875, 0.0711669921875, 0.0255279541015625, 0.007740020751953125, 0.040771484375, -0.0117950439453125, -0.001033782958984375, -0.0179290771484375, 0.0269317626953125, 0.020965576171875, -0.0113983154296875, 0.0205535888671875, -0.0010929107666015625, 0.01265716552734375, 0.026885986328125, 0.0052032470703125, -0.02227783203125, 0.0543212890625, 0.030670166015625, -0.010040283203125, -0.002529144287109375, -0.0190887451171875, -0.034027099609375, -0.0037517547607421875, -0.0162353515625, 0.007190704345703125, 0.02044677734375, 0.0018215179443359375, 0.00348663330078125, 0.0106201171875, 0.00980377197265625, -0.004962921142578125, 0.0209808349609375, 0.0076904296875, 0.0474853515625, -0.00751495361328125, 0.002208709716796875, -0.03643798828125, -0.0024547576904296875, 0.043548583984375, -0.0201416015625, -0.05126953125, 0.006328582763671875, -0.01055908203125, 0.034881591796875, 0.034271240234375, 0.06317138671875, 0.0408935546875, 0.02197265625, 0.015899658203125, -0.00890350341796875, 0.022796630859375, -0.0028858184814453125, -0.036468505859375, 0.01264190673828125, 0.029693603515625, 0.0004494190216064453, 0.036895751953125, 0.07318115234375, -0.042022705078125, 0.08221435546875, -0.0296630859375, 0.0201416015625, 0.0006761550903320312, 0.0187835693359375, 0.011322021484375, 0.01244354248046875, 0.01413726806640625, -0.01325225830078125, 0.024139404296875, -0.029083251953125, -0.003269195556640625, 0.018768310546875, 0.035980224609375, 0.01399993896484375, -0.005802154541015625, 0.0006976127624511719, -0.0006070137023925781, -0.027679443359375, 0.0172882080078125, 0.021148681640625, 0.002544403076171875, -0.034637451171875, -0.021026611328125, 0.032562255859375, 0.041778564453125, 0.018646240234375, -0.005542755126953125, 0.019622802734375, 0.00882720947265625, -0.048004150390625, 0.0024089813232421875, -0.007068634033203125, 0.0006422996520996094, -0.038116455078125, -0.0305633544921875, -0.0065765380859375, 0.004604339599609375, -0.0005598068237304688, -0.0008325576782226562, -0.032135009765625, 0.0097198486328125, 0.02606201171875, 0.04376220703125, -0.03631591796875, -0.036224365234375, -0.0086517333984375, -0.0244140625, 0.08856201171875, 0.029571533203125, -0.045318603515625, 0.019287109375, -0.051055908203125, 0.00045299530029296875, 0.005695343017578125, -0.039337158203125, -0.035858154296875, -0.049346923828125, 0.01404571533203125, 0.0193634033203125, 0.0084991455078125, -0.012481689453125, -0.038482666015625, -0.0125732421875, -0.003261566162109375, 0.0196990966796875, -0.00994873046875, 0.0518798828125, 0.011138916015625, 0.0226593017578125, 0.0012035369873046875, -0.004974365234375, -0.0457763671875, 0.009857177734375, -0.0008616447448730469, -0.081787109375, -0.00342559814453125, 0.01018524169921875, -0.030548095703125, 0.0277252197265625, -0.004241943359375, 0.01763916015625, -0.0193023681640625, -0.017608642578125, -0.0005521774291992188, -0.0328369140625, 0.07220458984375, -0.0301513671875, -0.038299560546875, 0.036407470703125, -0.01273345947265625, -0.05157470703125, -0.0325927734375, -0.0164031982421875, -0.0051727294921875, 0.0239410400390625, -0.046234130859375, -0.005157470703125, -0.035125732421875, 0.035980224609375, 0.06903076171875, 0.00986480712890625, 0.035003662109375, 0.0190277099609375, -0.00485992431640625, -0.00982666015625, 0.01111602783203125, -0.003345489501953125, -0.026885986328125, 0.0462646484375, -0.00583648681640625, -0.0284423828125, 0.0306549072265625, -0.0361328125, -0.0198822021484375, 0.0097808837890625, 0.0254974365234375, -0.034088134765625, 0.01006317138671875, 0.0017461776733398438, -0.01015472412109375, -0.0181427001953125, -0.01290130615234375, 0.00844573974609375, -0.01629638671875, 0.040771484375, 0.0308380126953125, -0.0128631591796875, 0.00577545166015625, -0.007293701171875, 0.0084228515625, -0.03765869140625, 0.053955078125, -0.003570556640625, -0.0802001953125, 0.0289154052734375, 0.036285400390625, -0.0233154296875, -0.049072265625, 0.0028533935546875, 0.006778717041015625, -0.003475189208984375, -0.06597900390625, 0.021270751953125, -0.0323486328125, 0.033538818359375, 0.007015228271484375, 0.030059814453125, 0.01200103759765625, 0.06683349609375, -0.006107330322265625, 0.0361328125, 0.049591064453125, -0.015899658203125, -0.025482177734375, -0.0302734375, -0.0051422119140625, 0.0253753662109375, -0.0185546875, 0.02886962890625, -0.01319122314453125, -0.0261077880859375, -0.01546478271484375, -0.046661376953125, 0.0450439453125, -0.0077362060546875, -0.033477783203125, 0.0080108642578125, 0.005809783935546875, 0.0106964111328125, -0.009979248046875, -0.00226593017578125, -0.0240325927734375, 0.0384521484375, -0.01552581787109375, 0.0271759033203125, -0.022247314453125, -0.042572021484375, -0.047454833984375, 0.07672119140625, 0.01055145263671875, 0.007568359375, 0.046295166015625, 0.022216796875, -0.048980712890625, -0.01210784912109375, -0.050872802734375, 0.08819580078125, 0.04315185546875, 0.073974609375, -0.0811767578125, -0.0413818359375, 0.01006317138671875, 0.06768798828125, 0.035858154296875, -0.00910186767578125, -0.02490234375, -0.0028324127197265625, 0.04644775390625, 0.090087890625, 0.02691650390625, -0.007415771484375, 0.02178955078125, 0.07794189453125, 0.044158935546875, -0.042572021484375, 0.0157928466796875, 0.01094818115234375, -0.0210418701171875, 0.0623779296875, 0.0099334716796875, 0.015869140625, 0.01554107666015625, -0.01514434814453125, -0.0292205810546875, 0.006618499755859375, 0.0233306884765625, -0.006561279296875, 0.007457733154296875, 0.06402587890625, 0.0219573974609375, -0.039093017578125, -0.048187255859375, -0.039459228515625, 0.04180908203125, -0.01267242431640625, 0.034912109375, -0.0052032470703125, 0.0205535888671875, 0.1097412109375, -0.0491943359375, 0.01238250732421875, 0.037841796875, -0.03955078125, 0.06341552734375, 0.045928955078125, 0.0260467529296875, -0.049530029296875, 0.0191192626953125, 0.0298309326171875, 0.080322265625, -0.067138671875, -0.042633056640625, 0.00550079345703125, 0.004150390625, 0.0076904296875, -0.0166168212890625, 0.0038299560546875, 0.0173187255859375, 0.04351806640625, -0.03424072265625, -0.02325439453125, 0.0024585723876953125, -0.00033354759216308594, -0.019378662109375, -0.0231475830078125, 0.030517578125, -0.0035762786865234375, -0.00194549560546875, 0.014312744140625, 0.00916290283203125, 0.025115966796875, -0.0104217529296875, 0.0272674560546875, -0.052520751953125, 0.009124755859375, 0.0022373199462890625, 0.004962921142578125, -0.01708984375, 0.0163116455078125, -0.0194091796875, -0.026092529296875, -0.028228759765625, 0.0308990478515625, 0.054718017578125, 0.0075225830078125, 0.03228759765625, -0.0063934326171875, -0.037994384765625, 0.0107421875, -0.0009179115295410156, -0.031494140625, -0.0254974365234375, -0.01004791259765625, -0.013214111328125, 0.03460693359375, -0.0045166015625, 0.032562255859375, 0.006053924560546875, 0.032196044921875, 0.00531005859375, 0.037445068359375, -0.012420654296875, -0.027374267578125, 0.00957489013671875, -0.004322052001953125, 0.076416015625, 0.00677490234375, -0.0855712890625, -0.004444122314453125, -0.0195465087890625, -0.05499267578125, 0.0292205810546875, 0.03839111328125, -0.007213592529296875, 0.00616455078125, 0.00228118896484375, -0.01251983642578125, 0.01383209228515625, -0.00215911865234375, 0.004024505615234375, 0.015625, 0.01479339599609375, -0.01113128662109375, -0.058349609375, -0.030487060546875, -0.034942626953125, 0.01776123046875, 0.00007796287536621094, 0.01129150390625, 0.029693603515625, 0.0364990234375, 0.00634002685546875, -0.0033016204833984375, -0.007568359375, 0.0009937286376953125, -0.00017333030700683594, -0.01287841796875, 0.0009627342224121094, -0.0045318603515625, 0.0197601318359375, 0.003345489501953125, 0.039642333984375, -0.05548095703125, -0.029754638671875, 0.004825592041015625, 0.013671875, -0.01715087890625, 0.03912353515625, -0.00441741943359375, 0.03155517578125, 0.0230255126953125, -0.0222930908203125, 0.042755126953125, 0.016571044921875, -0.0015459060668945312, -0.0181427001953125, -0.011444091796875, -0.038848876953125, 0.024566650390625, 0.001373291015625, 0.00399017333984375, 0.032501220703125, 0.0091400146484375, 0.025482177734375, -0.00455474853515625, -0.02508544921875, 0.0112457275390625, 0.01181793212890625, -0.01392364501953125, 0.003063201904296875, 0.012451171875, 0.00806427001953125, -0.0213165283203125, 0.0347900390625, -0.005802154541015625, -0.0069427490234375, -0.028717041015625, 0.0003650188446044922, -0.01194000244140625, 0.021026611328125, -0.02581787109375, -0.038970947265625, -0.0175933837890625, -0.0099334716796875, -0.02838134765625, -0.050018310546875, -0.033843994140625, -0.0279693603515625, 0.00991058349609375, 0.0030422210693359375, -0.022216796875, 0.006011962890625, -0.03228759765625, 0.00113677978515625, -0.035186767578125, -0.01125335693359375, 0.0131378173828125, 0.019287109375, -0.03411865234375, 0.0130462646484375, -0.03924560546875, -0.0296630859375, -0.0173797607421875, 0.004695892333984375, 0.019805908203125, -0.0273284912109375, -0.022369384765625, 0.01430511474609375, 0.007305145263671875, 0.045166015625, 0.04193115234375, -0.0025653839111328125, 0.042449951171875, 0.007404327392578125, -0.057403564453125, -0.056549072265625, 0.03424072265625, -0.048492431640625, 0.0029144287109375, -0.025390625, 0.032745361328125, 0.03582763671875, -0.016448974609375, -0.0557861328125, 0.03692626953125, -0.027679443359375, -0.0162200927734375, -0.049530029296875, 0.019744873046875, 0.0233612060546875, -0.03692626953125, -0.016204833984375, -0.012420654296875, -0.050994873046875, 0.006359100341796875, 0.0172271728515625, 0.0183868408203125, 0.017242431640625, 0.02777099609375, -0.053314208984375, 0.0017023086547851562, -0.03826904296875, 0.01381683349609375, 0.0170135498046875, -0.01409149169921875, 0.01055145263671875, 0.030303955078125, -0.028900146484375, -0.016815185546875, -0.0335693359375, -0.01348114013671875, 0.00702667236328125, 0.01021575927734375, -0.041015625, -0.022613525390625, 0.030792236328125, 0.04620361328125, 0.028289794921875, -0.00887298583984375, 0.0008630752563476562, -0.022491455078125, -0.0428466796875, 0.0020084381103515625, 0.0172119140625, -0.03900146484375, 0.0169677734375, 0.011260986328125, -0.0175323486328125, -0.006534576416015625, -0.038299560546875, -0.03326416015625, -0.0296478271484375, -0.063232421875, -0.00693511962890625, -0.01096343994140625, 0.0004074573516845703, 0.038970947265625, -0.0231781005859375, 0.003421783447265625, -0.013580322265625, 0.01300811767578125, 0.0233917236328125, -0.006877899169921875, 0.0204620361328125, 0.0033664703369140625, 0.005664825439453125, -0.00382232666015625, 0.040985107421875, -0.009857177734375, 0.024200439453125, -0.0287933349609375, -0.00865936279296875, 0.02239990234375, 0.007450103759765625, -0.01300811767578125, -0.0232086181640625, 0.035125732421875, -0.00148773193359375, 0.045135498046875, 0.0295257568359375, 0.0211639404296875, -0.0189971923828125, 0.06756591796875, 0.020172119140625, -0.057525634765625, 0.021484375, -0.025909423828125, -0.00945281982421875, 0.0194854736328125, -0.039154052734375, 0.00850677490234375, 0.0048065185546875, 0.0323486328125, -0.0249176025390625, 0.00634765625 ]
4ab4d832fd3621a820560f8aa4f3040306edcd6d
Wordpress Stackexchange Q: Proper formatting of post_date for wp_insert_post? What is the proper way to define the post date when submitting a post from the front end using wp_insert_post (Trac)? My snippet now is publishing with the mysql time... if (isset ($_POST['date'])) { $postdate = $_POST['Y-m-d']; } else { $postdate = $_POST['2011-12-21']; } // ADD THE FORM INPUT TO $new_post ARRAY $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_date' => $postdate, 'post_status' => 'publish', 'post_parent' => $parent_id, 'post_author' => get_current_user_id(), ); //SAVE THE POST $pid = wp_insert_post($new_post); A: to convert your date into Wordpress (MySQL DATETIME) format, try this: $date_string = "Sept 11, 2001"; // or any string like "20110911" or "2011-09-11" // returns: string(13) "Sept 11, 2001" $date_stamp = strtotime($date_string); // returns: int(1000166400) $postdate = date("Y-m-d H:i:s", $date_stamp); // returns: string(19) "2001-09-11 00:00:00" $new_post = array( // your other arguments 'post_date' => $postdate ); $pid = wp_insert_post($new_post); or course if you want to really be sexy do this: 'post_date' => date("Y-m-d H:i:s", strtotime("Sept 11, 2001"))
Q: Proper formatting of post_date for wp_insert_post? What is the proper way to define the post date when submitting a post from the front end using wp_insert_post (Trac)? My snippet now is publishing with the mysql time... if (isset ($_POST['date'])) { $postdate = $_POST['Y-m-d']; } else { $postdate = $_POST['2011-12-21']; } // ADD THE FORM INPUT TO $new_post ARRAY $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_date' => $postdate, 'post_status' => 'publish', 'post_parent' => $parent_id, 'post_author' => get_current_user_id(), ); //SAVE THE POST $pid = wp_insert_post($new_post); A: to convert your date into Wordpress (MySQL DATETIME) format, try this: $date_string = "Sept 11, 2001"; // or any string like "20110911" or "2011-09-11" // returns: string(13) "Sept 11, 2001" $date_stamp = strtotime($date_string); // returns: int(1000166400) $postdate = date("Y-m-d H:i:s", $date_stamp); // returns: string(19) "2001-09-11 00:00:00" $new_post = array( // your other arguments 'post_date' => $postdate ); $pid = wp_insert_post($new_post); or course if you want to really be sexy do this: 'post_date' => date("Y-m-d H:i:s", strtotime("Sept 11, 2001")) A: If you don't add a post_date then WordPress fills it automatically with the current date and time. To set another date and time [ Y-m-d H:i:s ] is the right structure. An example below with your code. $postdate = '2010-02-23 18:57:33'; $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_date' => $postdate, 'post_status' => 'publish', 'post_parent' => $parent_id, 'post_author' => get_current_user_id(), ); //SAVE THE POST $pid = wp_insert_post($new_post); A: You can't format the $_POST['date'] like this... You'll have to run the value from $_POST['date'] through something like $postdate = date( $_POST['date'] )... There's also the possibility to call get_option for the blog settings. See Option Reference in Codex. A: For the community here is my final working code: header $year = $_REQUEST['year']; $month = $_REQUEST['month']; $day = $_REQUEST['day']; $postdate = $year . "-" . $month . "-" . $day . " 08:00:00"; $new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_status' => 'publish', 'post_author' => get_current_user_id(), 'post_date' => $postdate ); A: came across thru google. i know its old but there is no definite answer. wordpress code uses current_time( 'mysql' ) to save date/time in wp_update_post function! this will generate the desired date format.
wordpress
{ "language": "en", "length": 363, "provenance": "stackexchange_00019.jsonl.gz:415592", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37163" }
[ 0.0335693359375, 0.004688262939453125, 0.0198974609375, -0.046875, 0.01311492919921875, -0.00738525390625, 0.0180816650390625, -0.0255889892578125, 0.0180816650390625, -0.01580810546875, 0.016845703125, -0.0016031265258789062, -0.07830810546875, -0.040435791015625, -0.02728271484375, -0.0222625732421875, 0.0219879150390625, -0.0171356201171875, 0.006595611572265625, -0.024169921875, -0.0023193359375, -0.0032596588134765625, 0.0101470947265625, 0.00983428955078125, 0.03387451171875, -0.013397216796875, 0.039764404296875, -0.01291656494140625, 0.062744140625, 0.0182342529296875, 0.0225372314453125, -0.061309814453125, 0.03662109375, 0.020416259765625, -0.007793426513671875, 0.09521484375, 0.05572509765625, -0.004375457763671875, 0.0191497802734375, 0.0231170654296875, 0.022308349609375, -0.0093994140625, -0.00504302978515625, -0.0263214111328125, -0.004558563232421875, -0.0190887451171875, 0.03631591796875, -0.0182647705078125, 0.01378631591796875, 0.00690460205078125, 0.03076171875, 0.01190948486328125, 0.048431396484375, -0.004497528076171875, -0.0157318115234375, -0.003932952880859375, -0.0275726318359375, 0.032257080078125, 0.0246124267578125, 0.036102294921875, -0.021759033203125, 0.01485443115234375, -0.0063323974609375, -0.03729248046875, 0.014068603515625, 0.007171630859375, 0.04998779296875, 0.0215606689453125, -0.044464111328125, 0.01067352294921875, 0.029541015625, -0.017486572265625, -0.039459228515625, -0.009979248046875, -0.00980377197265625, 0.044036865234375, -0.01580810546875, -0.01190185546875, 0.0198822021484375, 0.033111572265625, -0.00437164306640625, 0.01629638671875, -0.06494140625, -0.0408935546875, 0.042236328125, -0.0187835693359375, -0.0134735107421875, -0.01385498046875, -0.0606689453125, -0.052459716796875, -0.045318603515625, -0.00579833984375, -0.0498046875, -0.054229736328125, -0.032012939453125, -0.0202178955078125, -0.0145111083984375, 0.0660400390625, -0.038330078125, 0.003612518310546875, -0.0196380615234375, 0.004180908203125, -0.0148773193359375, -0.0256805419921875, 0.01568603515625, 0.055511474609375, 0.029449462890625, -0.03472900390625, 0.005931854248046875, -0.0189971923828125, -0.0274810791015625, 0.04986572265625, -0.03302001953125, -0.015716552734375, -0.0230865478515625, 0.058990478515625, -0.0025501251220703125, -0.038299560546875, -0.0192718505859375, -0.011016845703125, 0.007274627685546875, 0.007152557373046875, -0.00839996337890625, -0.01953125, -0.01010894775390625, -0.025787353515625, -0.032196044921875, -0.0038318634033203125, -0.0053863525390625, -0.01377105712890625, -0.01502227783203125, 0.019561767578125, 0.0467529296875, 0.024139404296875, -0.0074920654296875, 0.004413604736328125, 0.0518798828125, -0.025390625, -0.042022705078125, 0.0408935546875, -0.034332275390625, -0.0205230712890625, 0.01934814453125, -0.04925537109375, -0.0162811279296875, 0.03570556640625, 0.01493072509765625, -0.00897979736328125, 0.0011873245239257812, -0.05120849609375, -0.01230621337890625, -0.03936767578125, 0.017822265625, 0.016204833984375, -0.0477294921875, -0.0083770751953125, -0.057647705078125, -0.006473541259765625, 0.008880615234375, -0.0233917236328125, -0.01275634765625, -0.0014495849609375, 0.0089569091796875, -0.06085205078125, -0.0450439453125, -0.009613037109375, -0.0282745361328125, -0.01251220703125, 0.011749267578125, 0.009124755859375, -0.0268402099609375, -0.00536346435546875, 0.003627777099609375, -0.00942230224609375, -0.0261688232421875, 0.0274810791015625, 0.01349639892578125, -0.052215576171875, 0.001697540283203125, 0.041259765625, 0.01058197021484375, -0.0188140869140625, -0.018096923828125, 0.02197265625, -0.006694793701171875, 0.020782470703125, 0.017791748046875, 0.0006361007690429688, -0.03582763671875, 0.005462646484375, 0.0210723876953125, 0.0775146484375, -0.03173828125, 0.00823974609375, -0.00665283203125, 0.0017261505126953125, -0.02105712890625, 0.0180816650390625, -0.00969696044921875, -0.018646240234375, -0.0296630859375, 0.0452880859375, -0.046783447265625, 0.07867431640625, -0.04180908203125, 0.0273590087890625, -0.03961181640625, 0.0203857421875, -0.0030040740966796875, 0.0262603759765625, 0.0206756591796875, 0.00885772705078125, -0.033477783203125, -0.0103759765625, -0.01198577880859375, 0.060821533203125, -0.0195465087890625, 0.0357666015625, -0.0282745361328125, 0.052734375, -0.07244873046875, -0.03240966796875, -0.024658203125, 0.0196533203125, 0.051239013671875, -0.024932861328125, 0.01108551025390625, -0.0308990478515625, 0.0518798828125, 0.015655517578125, -0.0258941650390625, -0.004886627197265625, -0.0254974365234375, -0.00649261474609375, -0.048980712890625, -0.01220703125, -0.04913330078125, -0.0491943359375, 0.00782012939453125, 0.06341552734375, 0.029998779296875, -0.0232696533203125, -0.01009368896484375, -0.01387786865234375, 0.023101806640625, -0.0066375732421875, 0.0271453857421875, -0.03515625, 0.01523590087890625, 0.05010986328125, -0.02740478515625, -0.003932952880859375, 0.0318603515625, -0.072998046875, -0.01186370849609375, 0.058929443359375, -0.03814697265625, -0.04888916015625, -0.0059814453125, 0.0225982666015625, -0.0073699951171875, -0.06396484375, -0.0011930465698242188, -0.024688720703125, 0.01532745361328125, 0.0007719993591308594, 0.0347900390625, 0.0280609130859375, -0.0081024169921875, -0.0167083740234375, 0.00965118408203125, -0.0102691650390625, 0.006015777587890625, -0.021087646484375, -0.033111572265625, 0.0155181884765625, -0.003749847412109375, 0.024200439453125, -0.00858306884765625, -0.026519775390625, -0.0142974853515625, 0.0172119140625, 0.026947021484375, 0.00461578369140625, -0.00022995471954345703, -0.036773681640625, 0.033233642578125, 0.013702392578125, 0.0114898681640625, -0.018218994140625, 0.01024627685546875, 0.0280609130859375, -0.04296875, 0.06866455078125, 0.0027675628662109375, -0.034759521484375, -0.030487060546875, -0.018524169921875, 0.027984619140625, -0.02288818359375, -0.0276947021484375, 0.04205322265625, 0.01381683349609375, -0.00893402099609375, -0.0203857421875, 0.00933074951171875, -0.01560211181640625, 0.0019388198852539062, -0.035064697265625, -0.04376220703125, -0.0288543701171875, 0.00626373291015625, 0.005146026611328125, 0.0543212890625, -0.0166778564453125, -0.067138671875, -0.006572723388671875, 0.01326751708984375, -0.0782470703125, -0.0655517578125, -0.0804443359375, -0.073486328125, -0.0176544189453125, -0.007205963134765625, -0.03741455078125, 0.025787353515625, 0.0002827644348144531, 0.01739501953125, 0.0155181884765625, -0.0206298828125, -0.01666259765625, -0.0119476318359375, -0.03411865234375, -0.01971435546875, 0.016143798828125, 0.004749298095703125, -0.01378631591796875, 0.08551025390625, 0.00881195068359375, -0.06781005859375, -0.046051025390625, 0.0186920166015625, -0.0177459716796875, 0.0013265609741210938, -0.03717041015625, 0.041259765625, -0.0007605552673339844, -0.00029397010803222656, -0.00788116455078125, 0.0167083740234375, -0.01294708251953125, -0.0017538070678710938, -0.02911376953125, -0.0196533203125, 0.000789642333984375, 0.0033969879150390625, 0.0157928466796875, 0.0196075439453125, 0.01104736328125, -0.03546142578125, -0.0128631591796875, 0.002758026123046875, -0.038970947265625, 0.02972412109375, -0.01141357421875, -0.005962371826171875, 0.03399658203125, -0.003894805908203125, -0.035430908203125, -0.03765869140625, 0.037322998046875, -0.039794921875, -0.0078277587890625, -0.0248870849609375, -0.0386962890625, 0.01335906982421875, -0.0127105712890625, -0.0165863037109375, 0.02032470703125, 0.001674652099609375, 0.01082611083984375, 0.003948211669921875, 0.00971221923828125, -0.0221405029296875, -0.0928955078125, 0.04058837890625, -0.06817626953125, 0.0010118484497070312, -0.065185546875, -0.00832366943359375, -0.0038967132568359375, 0.099609375, -0.0469970703125, -0.0173797607421875, 0.00939178466796875, 0.02227783203125, -0.03375244140625, -0.0218353271484375, -0.032196044921875, -0.019622802734375, -0.03875732421875, 0.0174407958984375, -0.0030269622802734375, -0.01248931884765625, 0.00025534629821777344, -0.016448974609375, -0.01049041748046875, -0.03851318359375, 0.014862060546875, 0.0213775634765625, 0.01020050048828125, 0.038543701171875, -0.00524139404296875, 0.01071929931640625, -0.006488800048828125, -0.0097198486328125, -0.083740234375, -0.0171051025390625, 0.0035552978515625, 0.038604736328125, 0.002407073974609375, -0.036163330078125, -0.015838623046875, 0.03863525390625, -0.01611328125, 0.01361083984375, -0.0222320556640625, 0.00589752197265625, -0.0236358642578125, 0.007022857666015625, 0.0097503662109375, 0.0030040740966796875, -0.0129852294921875, -0.032440185546875, -0.0321044921875, 0.0196075439453125, -0.014434814453125, 0.0577392578125, -0.00936126708984375, 0.00179290771484375, 0.031829833984375, -0.004550933837890625, -0.00716400146484375, 0.05474853515625, -0.0250701904296875, 0.01097869873046875, -0.047393798828125, -0.0210113525390625, 0.08050537109375, -0.00714111328125, -0.01221466064453125, -0.0110015869140625, 0.07080078125, 0.006587982177734375, -0.052490234375, -0.039215087890625, -0.0125732421875, 0.041168212890625, -0.01311492919921875, 0.025787353515625, 0.015655517578125, -0.03485107421875, 0.0526123046875, 0.00748443603515625, -0.018951416015625, -0.057342529296875, 0.05828857421875, 0.0168609619140625, 0.0207672119140625, -0.0233306884765625, -0.02587890625, 0.06494140625, 0.0102996826171875, -0.004611968994140625, 0.03106689453125, 0.011566162109375, 0.01520538330078125, -0.01488494873046875, -0.00872039794921875, -0.02911376953125, -0.05084228515625, 0.0310211181640625, -0.01971435546875, -0.042388916015625, -0.01094818115234375, 0.002407073974609375, -0.022247314453125, -0.0362548828125, -0.0082550048828125, 0.0206146240234375, -0.0081787109375, 0.005542755126953125, 0.0183258056640625, 0.023162841796875, -0.00775146484375, 0.01103973388671875, -0.0022640228271484375, -0.0242767333984375, 0.01385498046875, -0.006618499755859375, -0.018798828125, -0.005062103271484375, 0.00833892822265625, -0.0174713134765625, -0.0169219970703125, 0.0199432373046875, 0.046783447265625, -0.0018129348754882812, -0.0025310516357421875, -0.0131378173828125, 0.061004638671875, -0.024749755859375, 0.0093841552734375, 0.01410675048828125, -0.01332855224609375, 0.06024169921875, 0.0284881591796875, 0.06317138671875, 0.027923583984375, -0.054718017578125, 0.06005859375, 0.04248046875, 0.0595703125, 0.016387939453125, -0.05438232421875, -0.0256805419921875, 0.047515869140625, -0.06597900390625, -0.05218505859375, -0.01221466064453125, 0.0179290771484375, 0.0175018310546875, -0.0036773681640625, -0.0006361007690429688, 0.0200042724609375, 0.0031070709228515625, 0.0087738037109375, -0.0245361328125, 0.0276947021484375, 0.01983642578125, 0.02227783203125, -0.00592041015625, -0.0268402099609375, 0.00800323486328125, -0.00263214111328125, 0.016143798828125, -0.0167694091796875, 0.033660888671875, -0.01261138916015625, 0.039825439453125, -0.0548095703125, -0.0633544921875, 0.0250396728515625, -0.0236968994140625, -0.02716064453125, 0.04852294921875, 0.037628173828125, -0.046630859375, -0.0384521484375, 0.052276611328125, -0.0126495361328125, 0.041229248046875, -0.0333251953125, -0.01120758056640625, -0.042694091796875, 0.00017380714416503906, 0.0645751953125, 0.044708251953125, 0.0105133056640625, -0.0310821533203125, -0.0604248046875, -0.04522705078125, 0.00506591796875, 0.016815185546875, -0.031707763671875, -0.007526397705078125, 0.03216552734375, 0.043365478515625, -0.023345947265625, -0.046844482421875, 0.041748046875, -0.0207061767578125, -0.01467132568359375, 0.058685302734375, -0.00740814208984375, 0.06793212890625, -0.002368927001953125, 0.033905029296875, 0.011627197265625, 0.0276641845703125, -0.0310821533203125, -0.0008492469787597656, 0.008209228515625, -0.040313720703125, 0.00055694580078125, -0.01151275634765625, -0.005641937255859375, -0.0171661376953125, 0.0021572113037109375, -0.0007939338684082031, 0.0247650146484375, -0.0178375244140625, -0.0003943443298339844, -0.01528167724609375, 0.0438232421875, -0.044219970703125, 0.034271240234375, -0.0099334716796875, -0.008544921875, 0.01415252685546875, -0.018310546875, 0.025848388671875, -0.004550933837890625, -0.034210205078125, 0.0016508102416992188, -0.001094818115234375, -0.004718780517578125, 0.020477294921875, 0.02191162109375, 0.00012290477752685547, 0.0439453125, 0.0010900497436523438, 0.044647216796875, 0.0289306640625, 0.01184844970703125, -0.03924560546875, -0.00556182861328125, 0.03277587890625, 0.00004750490188598633, -0.024261474609375, 0.0173492431640625, -0.0209503173828125, 0.0206451416015625, 0.05072021484375, 0.06622314453125, -0.05462646484375, 0.008392333984375, 0.0274658203125, -0.016021728515625, 0.035247802734375, -0.00946807861328125, 0.00616455078125, 0.0193634033203125, 0.0291595458984375, -0.01447296142578125, -0.021636962890625, 0.004085540771484375, 0.019317626953125, 0.0065155029296875, -0.0178680419921875, 0.038238525390625, 0.002254486083984375, -0.042449951171875, 0.0027637481689453125, 0.0220947265625, 0.01229095458984375, -0.004901885986328125, -0.00730133056640625, -0.041717529296875, 0.0069580078125, -0.05108642578125, -0.01548004150390625, -0.0633544921875, 0.0227813720703125, -0.0269012451171875, 0.0170745849609375, 0.07733154296875, 0.05078125, 0.0175628662109375, -0.035919189453125, 0.02783203125, 0.043792724609375, -0.023834228515625, -0.01788330078125, -0.01264190673828125, 0.0263214111328125, 0.032806396484375, 0.0243988037109375, 0.01522064208984375, -0.04302978515625, 0.01282501220703125, -0.0242767333984375, 0.042694091796875, -0.04510498046875, -0.01468658447265625, 0.0192413330078125, -0.03631591796875, 0.01169586181640625, -0.0322265625, 0.0311737060546875, -0.055419921875, -0.0106048583984375, -0.01222991943359375, -0.00962066650390625, -0.0095977783203125, -0.04315185546875, -0.06427001953125, 0.06439208984375, 0.006893157958984375, 0.030792236328125, -0.023223876953125, 0.028167724609375, -0.01212310791015625, -0.01284027099609375, -0.017974853515625, 0.05645751953125, -0.006160736083984375, 0.0116729736328125, -0.02960205078125, 0.0011625289916992188, 0.0061187744140625, -0.0008330345153808594, 0.07061767578125, 0.00033855438232421875, -0.025054931640625, 0.005542755126953125, 0.0958251953125, 0.044647216796875, 0.0010471343994140625, 0.025848388671875, -0.0070343017578125, 0.0134124755859375, 0.06787109375, -0.02862548828125, 0.02337646484375, 0.0325927734375, -0.01434326171875, 0.02197265625, 0.00910186767578125, -0.0162506103515625, 0.017242431640625, -0.06134033203125, -0.01299285888671875, 0.00341033935546875, -0.00811767578125, -0.018402099609375, 0.0022430419921875, 0.0007238388061523438, 0.0168609619140625, -0.1053466796875, -0.0384521484375, -0.02166748046875, 0.0274658203125, -0.00653076171875, -0.0145111083984375, 0.0207061767578125, 0.00864410400390625, 0.0198974609375, -0.00588226318359375, -0.0285797119140625, -0.0016117095947265625, 0.02801513671875, 0.046630859375, 0.044189453125, 0.021484375, -0.034820556640625, -0.032745361328125, 0.09423828125, 0.08941650390625, -0.043670654296875, 0.0234222412109375, 0.01221466064453125, -0.02301025390625, -0.01361083984375, -0.057769775390625, 0.016082763671875, -0.030303955078125, -0.057159423828125, 0.01241302490234375, -0.01171875, 0.023101806640625, 0.01120758056640625, 0.025299072265625, 0.052978515625, -0.024993896484375, -0.020660400390625, -0.051177978515625, 0.027130126953125, 0.02606201171875, 0.057464599609375, -0.0025463104248046875, 0.05694580078125, -0.003215789794921875, -0.020599365234375, 0.026641845703125, -0.009002685546875, 0.060394287109375, -0.052703857421875, 0.048370361328125, 0.0025577545166015625, 0.0300140380859375, -0.010040283203125, 0.0013475418090820312, 0.03424072265625, 0.0263214111328125, 0.00907135009765625, -0.02783203125, -0.004467010498046875, 0.032135009765625, -0.037322998046875, -0.048980712890625, -0.0101165771484375, -0.046173095703125, -0.00981903076171875, -0.014251708984375, 0.017425537109375, 0.059600830078125, -0.02728271484375, -0.031158447265625, 0.0335693359375, -0.01407623291015625, 0.0295562744140625, 0.0634765625, -0.02996826171875, 0.01561737060546875, -0.018463134765625, -0.0010061264038085938, 0.005367279052734375, -0.015533447265625, -0.0180816650390625, 0.00033283233642578125, 0.01410675048828125, -0.0028018951416015625, 0.0208892822265625, -0.0369873046875, -0.00473785400390625, 0.028289794921875, -0.0081329345703125, -0.015594482421875, 0.0238800048828125, 0.020294189453125, -0.0181427001953125, -0.0340576171875, -0.0079498291015625, -0.0035648345947265625, 0.0187835693359375, -0.002025604248046875, 0.011138916015625, 0.0089263916015625, 0.0017719268798828125, -0.0380859375, 0.019073486328125, -0.0645751953125, -0.04046630859375, 0.0203857421875, -0.0184326171875, -0.006412506103515625, 0.0027103424072265625, -0.0026645660400390625, 0.007808685302734375, 0.0333251953125, 0.005023956298828125, -0.030364990234375, -0.00998687744140625, 0.046539306640625, 0.0256805419921875, 0.016143798828125, -0.01076507568359375, 0.02935791015625, 0.03924560546875, -0.01506805419921875, 0.058624267578125, 0.02935791015625, -0.0030307769775390625, 0.0394287109375, 0.03338623046875, -0.0126190185546875, 0.056182861328125, -0.046295166015625, 0.0869140625, 0.0295867919921875, -0.0156707763671875, -0.00942230224609375, -0.012451171875, -0.0202789306640625, -0.0032520294189453125, 0.031280517578125, -0.007358551025390625, -0.01131439208984375, 0.0350341796875, 0.0035228729248046875, 0.032196044921875, 0.0262451171875, -0.0118408203125, 0.010467529296875, 0.0212860107421875, -0.0240936279296875, -0.0133514404296875, -0.0215911865234375, -0.0209197998046875, -0.0289764404296875, 0.00139617919921875, 0.017242431640625, -0.025787353515625, -0.025970458984375, -0.04913330078125, -0.0321044921875, -0.00128173828125, 0.0082550048828125, -0.0193634033203125, -0.0166778564453125, 0.01226043701171875, -0.00576019287109375, -0.01119232177734375, -0.02960205078125, -0.00042700767517089844, 0.0016632080078125, -0.032257080078125, -0.0280914306640625, -0.036895751953125, 0.0196990966796875, -0.022979736328125, 0.00627899169921875, 0.04180908203125, -0.00473785400390625, -0.08013916015625, -0.004840850830078125, -0.0254364013671875, 0.033355712890625, -0.014739990234375, -0.02008056640625, -0.0028514862060546875, 0.0142669677734375, -0.0225982666015625, -0.06573486328125, 0.019195556640625, -0.07464599609375, -0.015655517578125, -0.0384521484375, 0.0008549690246582031, -0.0079345703125, -0.04034423828125, -0.0645751953125, 0.0484619140625, -0.00893402099609375, -0.03326416015625, -0.013092041015625, 0.019012451171875, -0.01535797119140625, 0.0278778076171875, 0.0260772705078125, -0.043365478515625, -0.01105499267578125, 0.007213592529296875, 0.01348876953125, 0.036895751953125, 0.0036220550537109375, -0.0185699462890625, -0.049896240234375, -0.01220703125, -0.01482391357421875, 0.01332855224609375, 0.0189971923828125, -0.00672149658203125, 0.0227508544921875, 0.026092529296875, -0.036041259765625, 0.00833892822265625, -0.01837158203125, -0.0030345916748046875, -0.0343017578125, -0.00930023193359375, -0.0548095703125, -0.01018524169921875, 0.10797119140625, 0.10174560546875, 0.038848876953125, -0.049346923828125, -0.0025653839111328125, -0.04266357421875, -0.04119873046875, 0.0095062255859375, 0.0187225341796875, -0.051055908203125, -0.0002570152282714844, 0.020111083984375, 0.01177978515625, 0.05548095703125, -0.0247039794921875, 0.0309295654296875, -0.0218505859375, 0.033538818359375, -0.0367431640625, 0.0083770751953125, -0.0070648193359375, 0.04156494140625, -0.039825439453125, -0.0099029541015625, -0.01033782958984375, 0.01031494140625, -0.01071929931640625, -0.014801025390625, 0.0227508544921875, 0.033905029296875, -0.0267486572265625, -0.036102294921875, 0.0254364013671875, 0.0020294189453125, 0.00527191162109375, -0.0215606689453125, 0.023406982421875, -0.04461669921875, -0.0310516357421875, -0.063232421875, 0.047821044921875, 0.015960693359375, -0.05908203125, 0.06964111328125, -0.017547607421875, 0.0006346702575683594, -0.0207061767578125, 0.02972412109375, 0.002582550048828125, -0.01151275634765625, 0.037445068359375, -0.037750244140625, 0.02294921875, -0.00707244873046875, 0.0272369384765625, 0.004787445068359375, -0.0206298828125, -0.02520751953125, -0.0004792213439941406, -0.0105743408203125 ]
f4df44dcb9720dc2b221e946e15aa7daaa966897
Wordpress Stackexchange Q: How to set file type in wp_handle_upload? I'm using wp_handle_upload to allow users upload .csv files in the front end and it's working fine. I was wondering how can I limit this to only allow .csv files though since currently it accepts a wide variety of file types. According to the doc this should be possible by overriding the $overrides param but I'm not sure what should I pass it to do so. Thanks in advance! A: Got it, looking at the source code I came up with this: wp_handle_upload($file_input, array('test_form' => false, 'mimes' => array('csv' => 'text/csv'))); To override the mime types just pass mimes as an array wit the key being the file extension and the value as the mime type.
Q: How to set file type in wp_handle_upload? I'm using wp_handle_upload to allow users upload .csv files in the front end and it's working fine. I was wondering how can I limit this to only allow .csv files though since currently it accepts a wide variety of file types. According to the doc this should be possible by overriding the $overrides param but I'm not sure what should I pass it to do so. Thanks in advance! A: Got it, looking at the source code I came up with this: wp_handle_upload($file_input, array('test_form' => false, 'mimes' => array('csv' => 'text/csv'))); To override the mime types just pass mimes as an array wit the key being the file extension and the value as the mime type. A: The filter you'll want to use is 'upload_mimes' http://xref.yoast.com/trunk/_functions/get_allowed_mime_types.html The function get_allowed_mime_types gets the filtered $mimes array, so if you want to ONLY allow csv uploads, you can do this: add_filter('upload_mimes', 'javiervd_filter_mime_types'); function javiervd_filter_mime_types($mimes) { return array('csv' => 'text/csv'); } Normally with a filter, you'd want to alter the input and return it, but since you only want .csv uploads, you can simply return an array with the one element. It's important to note this will override permitted upload types across the site. UPDATE: Ok, here's what you can do. I'm assuming the user is logged out, and that's a good way to test that this is the kind of upload where only csvs are permitted. If it's not, you can always just modify your if check and make sure the filter only gets applied to front-end uploads. add_filter('wp_handle_upload_prefilter' 'javiervd_maybe_filter_mimes'); function javiervd_maybe_filter_mimes($file) { //if not logged in, limit uploads to csvs if(!is_user_logged_in()) { add_filter('upload_mimes', 'javiervd_filter_mime_types'); //add another filter to remove the mime filter so it only applies for the one function call add_filter('wp_handle_upload', 'javierd_remove_mime_filter'); } } function javiervd_filter_mime_types($mimes) { return array('csv' => 'text/csv'); } function javiervd_remove_mime_filter($upload) { remove_filter('upload_mimes', 'javiervd_filter_mime_types'); return $upload; }
wordpress
{ "language": "en", "length": 317, "provenance": "stackexchange_00019.jsonl.gz:415609", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37230" }
[ 0.0239105224609375, -0.0159454345703125, -0.044097900390625, -0.0167694091796875, 0.0009074211120605469, -0.048675537109375, 0.0517578125, 0.01412200927734375, -0.026824951171875, 0.02679443359375, -0.03594970703125, 0.00998687744140625, 0.005580902099609375, -0.008819580078125, 0.017303466796875, -0.048065185546875, 0.006885528564453125, 0.01287078857421875, 0.02899169921875, -0.01537322998046875, 0.0082855224609375, -0.005352020263671875, 0.0223236083984375, -0.0185089111328125, -0.0248565673828125, 0.051513671875, 0.013824462890625, -0.00922393798828125, -0.03985595703125, -0.0276947021484375, -0.00940704345703125, 0.03277587890625, 0.01131439208984375, 0.04083251953125, -0.037689208984375, 0.0712890625, 0.0122833251953125, 0.018798828125, 0.04058837890625, 0.004711151123046875, 0.03662109375, -0.0274200439453125, -0.0038089752197265625, 0.010406494140625, -0.02154541015625, -0.0231781005859375, 0.041168212890625, -0.01042938232421875, 0.02178955078125, 0.0185089111328125, -0.0242156982421875, 0.0009694099426269531, -0.00827789306640625, -0.0013914108276367188, -0.003284454345703125, -0.01000213623046875, -0.01068878173828125, -0.0227508544921875, 0.02301025390625, -0.015716552734375, -0.01041412353515625, -0.01580810546875, 0.0254669189453125, 0.01354217529296875, -0.03399658203125, -0.00978851318359375, -0.01971435546875, 0.00415802001953125, -0.0168914794921875, -0.043060302734375, 0.030731201171875, 0.00290679931640625, 0.0012540817260742188, -0.035125732421875, 0.03582763671875, 0.026336669921875, -0.0247802734375, 0.0189971923828125, 0.0228118896484375, -0.0006012916564941406, -0.0017423629760742188, -0.0322265625, 0.0009655952453613281, -0.020843505859375, 0.011810302734375, 0.0037593841552734375, -0.0135345458984375, -0.00830841064453125, 0.0033931732177734375, 0.01114654541015625, -0.0186309814453125, 0.0292816162109375, 0.0227508544921875, 0.01499176025390625, -0.016632080078125, -0.009063720703125, -0.007080078125, -0.01561737060546875, -0.004291534423828125, -0.00428009033203125, 0.033935546875, -0.037200927734375, 0.03204345703125, -0.018463134765625, 0.025238037109375, 0.0384521484375, -0.0281524658203125, -0.06878662109375, 0.0283355712890625, 0.016845703125, 0.0030422210693359375, 0.0282135009765625, -0.0155792236328125, -0.017425537109375, -0.0229644775390625, 0.0175933837890625, -0.041107177734375, 0.0177459716796875, 0.00025844573974609375, 0.0258331298828125, 0.0028743743896484375, 0.046356201171875, 0.0082550048828125, -0.056610107421875, 0.006694793701171875, -0.00005263090133666992, -0.0036220550537109375, -0.04754638671875, -0.0170440673828125, 0.099853515625, -0.015869140625, -0.0210113525390625, 0.0124969482421875, 0.0114288330078125, -0.0036296844482421875, -0.04510498046875, 0.05059814453125, -0.0399169921875, -0.0194244384765625, 0.032501220703125, 0.01181793212890625, -0.04754638671875, -0.0306243896484375, 0.006137847900390625, -0.01181793212890625, 0.031768798828125, 0.0294189453125, 0.00022685527801513672, -0.019287109375, -0.0260467529296875, -0.0234222412109375, -0.0199737548828125, 0.0616455078125, 0.0024242401123046875, -0.07122802734375, -0.0281829833984375, 0.01079559326171875, -0.028839111328125, -0.045013427734375, -0.06964111328125, 0.007122039794921875, -0.007038116455078125, 0.00457000732421875, -0.053131103515625, -0.048919677734375, -0.00959014892578125, -0.04815673828125, -0.00605010986328125, 0.0164337158203125, -0.00543975830078125, -0.00368499755859375, 0.01145172119140625, -0.0292510986328125, 0.0114593505859375, 0.0081024169921875, 0.00685882568359375, 0.012420654296875, 0.04052734375, 0.0008401870727539062, 0.0506591796875, 0.01319122314453125, -0.04388427734375, 0.02532958984375, 0.0078582763671875, -0.040008544921875, 0.01220703125, 0.019134521484375, 0.030609130859375, 0.004413604736328125, 0.0164642333984375, 0.036712646484375, 0.0322265625, -0.0201873779296875, 0.0032558441162109375, -0.00891876220703125, -0.0229949951171875, -0.05560302734375, -0.0264129638671875, -0.0280914306640625, 0.051605224609375, 0.035308837890625, -0.01270294189453125, 0.01641845703125, -0.04010009765625, 0.01190185546875, -0.03546142578125, 0.0225982666015625, 0.008880615234375, -0.0256195068359375, 0.0193023681640625, 0.03350830078125, 0.0000979304313659668, -0.05023193359375, 0.0196990966796875, 0.0233917236328125, 0.0211944580078125, 0.017822265625, 0.048614501953125, -0.01476287841796875, 0.0295562744140625, -0.047882080078125, -0.0219879150390625, -0.01131439208984375, 0.0260009765625, -0.01312255859375, 0.0328369140625, -0.00921630859375, 0.0235137939453125, 0.054412841796875, 0.017547607421875, 0.0869140625, -0.032501220703125, -0.043212890625, -0.03143310546875, -0.00304412841796875, -0.01141357421875, 0.0112152099609375, -0.0960693359375, 0.028656005859375, 0.05328369140625, 0.038055419921875, -0.0003001689910888672, 0.0127105712890625, 0.039886474609375, 0.01074981689453125, 0.0148468017578125, 0.0557861328125, -0.0186920166015625, -0.0017223358154296875, -0.00390625, -0.03326416015625, -0.02581787109375, 0.050140380859375, -0.0484619140625, -0.002933502197265625, 0.0447998046875, -0.05084228515625, -0.0653076171875, 0.020111083984375, -0.0149383544921875, 0.0195159912109375, -0.0147247314453125, -0.0176239013671875, 0.01259613037109375, 0.0167083740234375, 0.047821044921875, 0.03643798828125, 0.04541015625, -0.0196990966796875, 0.037567138671875, -0.00782012939453125, -0.039703369140625, 0.01052093505859375, 0.0908203125, 0.03082275390625, 0.005649566650390625, -0.004779815673828125, -0.050537109375, 0.0213165283203125, 0.057830810546875, -0.040679931640625, -0.0220489501953125, -0.0160980224609375, -0.0008101463317871094, -0.012298583984375, -0.0440673828125, 0.045440673828125, -0.007720947265625, -0.0028781890869140625, -0.00228118896484375, 0.03521728515625, 0.01105499267578125, -0.0217437744140625, 0.01245880126953125, 0.0023651123046875, -0.0157012939453125, 0.0242462158203125, -0.042449951171875, 0.04583740234375, -0.032135009765625, 0.0458984375, 0.06243896484375, -0.041778564453125, 0.0297088623046875, -0.005146026611328125, 0.035308837890625, -0.01666259765625, 0.039886474609375, 0.01038360595703125, -0.040008544921875, -0.02117919921875, -0.0260467529296875, 0.0085296630859375, 0.0120697021484375, -0.0015583038330078125, -0.017791748046875, -0.00624847412109375, 0.01324462890625, -0.040191650390625, -0.0181732177734375, 0.0548095703125, -0.045440673828125, 0.0265045166015625, -0.0185546875, -0.01366424560546875, -0.04010009765625, 0.0107574462890625, -0.010162353515625, -0.0079193115234375, 0.0103607177734375, 0.0274810791015625, 0.00350189208984375, -0.01320648193359375, -0.06854248046875, -0.00588226318359375, -0.0167236328125, 0.00714874267578125, 0.06475830078125, 0.0185699462890625, -0.0123138427734375, 0.01470184326171875, 0.0187530517578125, -0.002750396728515625, 0.003814697265625, 0.0250701904296875, -0.040191650390625, 0.005138397216796875, -0.00737762451171875, -0.0059661865234375, 0.0178070068359375, -0.01031494140625, -0.0012083053588867188, -0.023956298828125, -0.047332763671875, -0.039031982421875, 0.05218505859375, 0.0208587646484375, -0.07818603515625, -0.0243682861328125, -0.0860595703125, 0.0220794677734375, 0.00809478759765625, -0.0006351470947265625, -0.03515625, -0.03143310546875, -0.021270751953125, -0.0240478515625, 0.02703857421875, 0.00959014892578125, 0.01493072509765625, 0.0040130615234375, -0.0177459716796875, 0.0300445556640625, 0.010345458984375, 0.007419586181640625, -0.0204010009765625, 0.0204925537109375, -0.0141448974609375, 0.002964019775390625, -0.005329132080078125, -0.0143280029296875, -0.045684814453125, 0.05126953125, -0.07464599609375, -0.09002685546875, 0.07171630859375, -0.0321044921875, 0.004547119140625, -0.06585693359375, -0.0305633544921875, -0.01371002197265625, 0.1197509765625, -0.0007228851318359375, 0.0006995201110839844, -0.05841064453125, 0.000690460205078125, -0.038330078125, -0.06878662109375, -0.0189666748046875, 0.0257110595703125, 0.0127105712890625, -0.00023412704467773438, 0.002483367919921875, -0.015625, -0.00299072265625, -0.03009033203125, 0.01092529296875, -0.007488250732421875, 0.0283050537109375, -0.004253387451171875, -0.0012073516845703125, 0.0212860107421875, -0.0007090568542480469, -0.01451873779296875, -0.01357269287109375, -0.0156097412109375, -0.1136474609375, -0.01250457763671875, 0.0076446533203125, 0.062469482421875, -0.027008056640625, -0.0016956329345703125, -0.01047515869140625, 0.07855224609375, 0.0345458984375, -0.027740478515625, 0.0224151611328125, -0.0190887451171875, 0.0148468017578125, -0.0196990966796875, -0.006458282470703125, -0.03277587890625, -0.01776123046875, -0.039703369140625, -0.039703369140625, -0.0199432373046875, -0.019775390625, -0.0186920166015625, 0.01546478271484375, -0.01213836669921875, -0.0278472900390625, -0.05389404296875, -0.04736328125, 0.045623779296875, -0.00998687744140625, 0.0025539398193359375, -0.0941162109375, -0.0772705078125, 0.07806396484375, 0.00850677490234375, -0.001956939697265625, -0.0175933837890625, 0.09991455078125, 0.0018463134765625, -0.043426513671875, -0.049835205078125, 0.0117950439453125, 0.0209503173828125, -0.041778564453125, 0.0290679931640625, -0.009246826171875, -0.023040771484375, 0.057159423828125, -0.0296630859375, 0.00476837158203125, -0.0181427001953125, 0.03271484375, -0.0004963874816894531, -0.0130157470703125, 0.00249481201171875, -0.007221221923828125, 0.007488250732421875, 0.0064239501953125, 0.01153564453125, -0.024200439453125, 0.028228759765625, 0.051177978515625, 0.00792694091796875, -0.0201416015625, -0.05157470703125, -0.058624267578125, 0.017364501953125, -0.05914306640625, 0.0245513916015625, -0.016632080078125, 0.005657196044921875, 0.0098419189453125, 0.0211334228515625, -0.0303192138671875, 0.0205230712890625, 0.00865936279296875, 0.022674560546875, 0.018157958984375, 0.0205535888671875, -0.00901031494140625, -0.023651123046875, 0.00460052490234375, -0.0299072265625, -0.0008835792541503906, -0.0107421875, -0.0615234375, 0.0216064453125, 0.0213165283203125, -0.0012540817260742188, 0.02569580078125, 0.015167236328125, 0.005901336669921875, -0.003444671630859375, -0.005802154541015625, -0.01068878173828125, 0.014007568359375, -0.032623291015625, 0.0311431884765625, 0.023834228515625, -0.0222015380859375, 0.00502777099609375, 0.00904083251953125, 0.046142578125, -0.0289154052734375, -0.01031494140625, 0.07086181640625, 0.092529296875, 0.01052093505859375, 0.007965087890625, 0.033172607421875, -0.03778076171875, 0.005352020263671875, -0.03094482421875, -0.02508544921875, 0.019195556640625, 0.00763702392578125, 0.0282440185546875, -0.006122589111328125, -0.0230865478515625, 0.0120697021484375, -0.037322998046875, 0.00982666015625, -0.023406982421875, -0.032073974609375, 0.00719451904296875, 0.0025806427001953125, 0.00665283203125, 0.0234832763671875, -0.004718780517578125, 0.01392364501953125, 0.01181793212890625, 0.0048675537109375, -0.006748199462890625, 0.038177490234375, -0.026885986328125, -0.0267333984375, -0.006420135498046875, 0.0133819580078125, -0.00905609130859375, -0.0209503173828125, -0.11199951171875, -0.032684326171875, -0.00962066650390625, 0.009979248046875, 0.028961181640625, -0.01055908203125, 0.026611328125, -0.04583740234375, 0.00994110107421875, -0.04168701171875, 0.01363372802734375, 0.015289306640625, 0.01084136962890625, -0.03729248046875, -0.012451171875, -0.042205810546875, -0.00791168212890625, 0.025238037109375, -0.015350341796875, -0.0283660888671875, -0.01100921630859375, -0.0218505859375, 0.0170745849609375, -0.0184478759765625, 0.0291595458984375, -0.008758544921875, 0.037139892578125, -0.0065460205078125, 0.02508544921875, -0.022064208984375, 0.039031982421875, 0.003589630126953125, 0.003143310546875, -0.0038471221923828125, 0.0096588134765625, 0.0028133392333984375, 0.0012903213500976562, -0.03289794921875, -0.053955078125, -0.00969696044921875, 0.0141143798828125, 0.0149383544921875, 0.0640869140625, 0.061676025390625, 0.01383209228515625, -0.00299835205078125, -0.0165863037109375, -0.0032958984375, -0.034942626953125, 0.0596923828125, -0.0210418701171875, -0.007080078125, -0.017242431640625, 0.0023937225341796875, 0.0251007080078125, -0.0230560302734375, -0.040191650390625, 0.03826904296875, 0.0005445480346679688, 0.04736328125, -0.0216064453125, -0.0125579833984375, 0.03399658203125, 0.038055419921875, -0.017578125, 0.027557373046875, 0.0220947265625, 0.0163116455078125, 0.031341552734375, 0.0139007568359375, 0.0202789306640625, -0.002758026123046875, 0.0224609375, -0.0081634521484375, 0.018829345703125, -0.00533294677734375, -0.0014896392822265625, 0.0137786865234375, 0.075927734375, 0.07763671875, -0.0994873046875, 0.01197052001953125, 0.0189666748046875, -0.004314422607421875, 0.03411865234375, 0.020172119140625, -0.00501251220703125, -0.0090484619140625, 0.01352691650390625, -0.0219879150390625, -0.013916015625, 0.010040283203125, 0.0008373260498046875, 0.0086822509765625, 0.0052642822265625, 0.012237548828125, 0.00048828125, -0.0273895263671875, -0.04730224609375, 0.04833984375, -0.037811279296875, 0.03961181640625, 0.0196075439453125, -0.0386962890625, -0.0260467529296875, -0.0177764892578125, -0.046661376953125, -0.0450439453125, -0.02001953125, 0.0240936279296875, 0.003208160400390625, 0.06781005859375, 0.0294036865234375, 0.0255889892578125, -0.0274658203125, -0.00974273681640625, 0.0300140380859375, -0.01325225830078125, -0.050628662109375, -0.0279541015625, 0.032562255859375, -0.0159149169921875, 0.022491455078125, -0.002960205078125, -0.0141754150390625, -0.0024623870849609375, 0.0032596588134765625, 0.050994873046875, -0.0235443115234375, -0.0263214111328125, 0.052978515625, -0.010498046875, -0.0338134765625, 0.00019359588623046875, 0.0032482147216796875, -0.0589599609375, -0.05670166015625, 0.017120361328125, -0.060394287109375, 0.00750732421875, 0.0243377685546875, -0.04266357421875, 0.0484619140625, 0.01200103759765625, 0.01044464111328125, 0.039581298828125, 0.01427459716796875, -0.045196533203125, -0.014190673828125, -0.053375244140625, 0.0557861328125, 0.0204315185546875, 0.036712646484375, -0.045196533203125, 0.00360107421875, 0.0027713775634765625, 0.006694793701171875, 0.008026123046875, -0.00391387939453125, -0.00347137451171875, 0.022430419921875, 0.08642578125, 0.08001708984375, 0.033447265625, -0.017486572265625, -0.01611328125, -0.0265045166015625, 0.0279693603515625, 0.01485443115234375, 0.0235137939453125, 0.00807952880859375, -0.036834716796875, 0.00574493408203125, 0.0333251953125, 0.044036865234375, -0.0494384765625, 0.0019207000732421875, -0.0360107421875, -0.025421142578125, 0.042724609375, -0.01788330078125, -0.0082855224609375, 0.038330078125, 0.045867919921875, -0.050994873046875, 0.0321044921875, -0.03863525390625, 0.068115234375, 0.0118408203125, -0.0221710205078125, -0.017059326171875, -0.01371002197265625, 0.05657958984375, -0.01457977294921875, -0.03619384765625, 0.0245819091796875, 0.01480865478515625, 0.0039005279541015625, -0.006084442138671875, -0.0048980712890625, -0.018890380859375, 0.095947265625, 0.012054443359375, -0.01273345947265625, -0.059112548828125, -0.041229248046875, 0.02020263671875, 0.03631591796875, -0.0118408203125, 0.004245758056640625, -0.001628875732421875, -0.02716064453125, 0.052337646484375, -0.01445770263671875, 0.0306396484375, 0.02587890625, 0.025634765625, 0.0056915283203125, 0.041595458984375, -0.0723876953125, 0.0164337158203125, -0.06585693359375, 0.065673828125, -0.004673004150390625, 0.042938232421875, -0.01198577880859375, 0.056915283203125, -0.01322174072265625, -0.000995635986328125, -0.015167236328125, 0.020965576171875, 0.014190673828125, 0.01541900634765625, -0.0173797607421875, -0.01461029052734375, 0.02685546875, 0.034515380859375, 0.0153350830078125, 0.033721923828125, 0.04364013671875, 0.0297393798828125, -0.009124755859375, -0.00759124755859375, 0.070556640625, -0.006900787353515625, -0.0198516845703125, -0.036865234375, -0.0268707275390625, -0.0225372314453125, -0.0241546630859375, 0.032318115234375, -0.0036983489990234375, 0.0008816719055175781, -0.039764404296875, 0.06817626953125, -0.01334381103515625, -0.0338134765625, 0.03759765625, -0.01375579833984375, 0.07318115234375, -0.0168304443359375, -0.07470703125, -0.0176849365234375, -0.054107666015625, 0.00699615478515625, 0.032196044921875, 0.0230255126953125, -0.0020236968994140625, 0.02984619140625, 0.0167999267578125, -0.03460693359375, 0.0258636474609375, 0.02490234375, -0.00917816162109375, -0.02044677734375, 0.026947021484375, -0.0269622802734375, -0.016754150390625, -0.00966644287109375, -0.006885528564453125, 0.05181884765625, 0.026031494140625, 0.004425048828125, 0.00394439697265625, 0.032867431640625, 0.01261138916015625, 0.0587158203125, -0.030792236328125, -0.00020182132720947266, 0.05291748046875, 0.01294708251953125, 0.007678985595703125, -0.0298309326171875, 0.0108642578125, 0.0229644775390625, 0.0222625732421875, -0.03814697265625, 0.01503753662109375, -0.0218505859375, 0.0102081298828125, -0.00408935546875, -0.00614166259765625, -0.033966064453125, 0.0086517333984375, -0.011932373046875, -0.03948974609375, 0.046234130859375, -0.004360198974609375, -0.0199432373046875, 0.0243682861328125, -0.0165863037109375, -0.030364990234375, 0.046875, -0.056396484375, 0.05999755859375, 0.03497314453125, -0.03338623046875, -0.020965576171875, 0.023284912109375, -0.0123443603515625, 0.00986480712890625, 0.008453369140625, 0.034576416015625, 0.003925323486328125, 0.00745391845703125, -0.004444122314453125, -0.007293701171875, 0.008392333984375, -0.05084228515625, -0.0224151611328125, 0.021484375, 0.010894775390625, -0.0005884170532226562, -0.029052734375, -0.0145111083984375, -0.045257568359375, -0.0089874267578125, 0.043670654296875, -0.018768310546875, 0.001617431640625, -0.04302978515625, -0.005580902099609375, 0.04119873046875, -0.00827789306640625, -0.0147857666015625, 0.01023101806640625, -0.0538330078125, 0.013031005859375, -0.001155853271484375, -0.006954193115234375, -0.0022716522216796875, 0.01525115966796875, -0.04534912109375, -0.03851318359375, -0.034027099609375, 0.042083740234375, -0.0445556640625, 0.0189666748046875, 0.03851318359375, -0.0195159912109375, -0.002437591552734375, 0.04827880859375, 0.01666259765625, 0.0941162109375, -0.03948974609375, -0.042449951171875, -0.01068115234375, 0.01174163818359375, 0.0167083740234375, -0.061309814453125, -0.0226287841796875, -0.04766845703125, 0.002655029296875, -0.0191192626953125, -0.004001617431640625, 0.005374908447265625, -0.04534912109375, -0.0963134765625, 0.0174407958984375, -0.0175628662109375, -0.051239013671875, 0.0079345703125, 0.002162933349609375, -0.01367950439453125, 0.01065826416015625, 0.0208587646484375, -0.03857421875, -0.0027904510498046875, 0.002918243408203125, -0.006038665771484375, 0.02362060546875, 0.01264190673828125, 0.005718231201171875, 0.0014057159423828125, -0.0003325939178466797, 0.0006742477416992188, -0.01458740234375, 0.0021572113037109375, -0.023162841796875, 0.06341552734375, 0.035919189453125, -0.01532745361328125, 0.07403564453125, 0.0282745361328125, -0.0163116455078125, -0.00372314453125, -0.0138397216796875, -0.038604736328125, 0.0013408660888671875, 0.05755615234375, 0.06622314453125, 0.020477294921875, -0.0206756591796875, -0.01081085205078125, -0.048980712890625, -0.007320404052734375, -0.0018701553344726562, -0.004413604736328125, -0.0404052734375, 0.01448822021484375, 0.0233917236328125, -0.0188140869140625, -0.03033447265625, 0.0214385986328125, -0.03192138671875, -0.004276275634765625, 0.011871337890625, -0.0237884521484375, -0.0233306884765625, 0.0166778564453125, 0.078125, -0.032562255859375, 0.0164947509765625, -0.0063629150390625, 0.0093841552734375, 0.040863037109375, -0.017333984375, 0.00836181640625, 0.0031070709228515625, -0.0095977783203125, 0.018524169921875, 0.01291656494140625, 0.01233673095703125, -0.01210784912109375, -0.007537841796875, -0.003223419189453125, 0.002414703369140625, -0.010467529296875, 0.00045013427734375, 0.01204681396484375, 0.03887939453125, 0.00530242919921875, -0.0068206787109375, -0.00476837158203125, -0.0723876953125, -0.032928466796875, 0.0196533203125, -0.00763702392578125, 0.004421234130859375, 0.007038116455078125, -0.00914764404296875, 0.017120361328125, 0.0035266876220703125, -0.01332855224609375, -0.0005888938903808594, -0.0068206787109375, 0.00531768798828125, -0.020965576171875, 0.0120391845703125 ]
ea788a133520607119e6bbbd2b746fba356efde4
Wordpress Stackexchange Q: $wpdb->insert not working in any way I know this type of question has been asked over and over, but I couldn't find a solution for my problem, so I hope you can help me. I am using WP 3.3. and I have created a custom table. Now I want to insert some data into it, but I can't get it working. This is my code: global $wpdb; $table_name = $wpdb->prefix . "my_data"; $wpdb->insert($table_name, array( 'my_id' => NULL, 'my_day' => $day, 'my_month' => $month, 'my_abbr' => $abbr, 'my_venue' => $venue, 'my_geo' => $geo_one.", ".$geo_two, 'my_artist' => $artist, 'my_link' => $link ) ); I am trying to insert data for several hours now without luck. To my eyes the code is correct, but I guess I am just mussing something important here. Any pointers would be appreciated! Thank you A: When $wpdb method doesn't perform as it should it is likely issue with resulting SQL query (because of wrong input or something else). Follow wpdb reference in Codex for troubleshooting: * *enable database error display via $wpdb->show_errors() *check what query is being formed and run via $wpdb->last_query
Q: $wpdb->insert not working in any way I know this type of question has been asked over and over, but I couldn't find a solution for my problem, so I hope you can help me. I am using WP 3.3. and I have created a custom table. Now I want to insert some data into it, but I can't get it working. This is my code: global $wpdb; $table_name = $wpdb->prefix . "my_data"; $wpdb->insert($table_name, array( 'my_id' => NULL, 'my_day' => $day, 'my_month' => $month, 'my_abbr' => $abbr, 'my_venue' => $venue, 'my_geo' => $geo_one.", ".$geo_two, 'my_artist' => $artist, 'my_link' => $link ) ); I am trying to insert data for several hours now without luck. To my eyes the code is correct, but I guess I am just mussing something important here. Any pointers would be appreciated! Thank you A: When $wpdb method doesn't perform as it should it is likely issue with resulting SQL query (because of wrong input or something else). Follow wpdb reference in Codex for troubleshooting: * *enable database error display via $wpdb->show_errors() *check what query is being formed and run via $wpdb->last_query A: The wpdb-class does not have an insert method. It would be best if you didn't use the query; see the codex, and you don't find this function insert() - http://codex.wordpress.org/Class_Reference/wpdb An example of inserting a custom table on WPDB; use a default CREATE TABLE-SQL Syntax and create with the query() of wpdb the table with your values. $table = $GLOBALS['wpdb'] -> prefix . 'my_data'; $GLOBALS['wpdb'] -> query( "CREATE TABLE $table ( called_by varchar(96) NOT NULL, my_name varchar(96) NOT NULL, my_type varchar(15) NOT NULL, first_call int(11) NOT NULL, arg_count tinyint(4) NOT NULL, file_name varchar(128) NOT NULL, line_num smallint NOT NULL, PRIMARY KEY (first_call, my_name) )" ); To insert this source, use the register_activation_hook()-hook; only on activation, the plugin will install the table if it doesn't exist. On register_uninstall_hook() I delete custom tables.
wordpress
{ "language": "en", "length": 318, "provenance": "stackexchange_00019.jsonl.gz:415631", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37332" }
[ 0.04449462890625, 0.02496337890625, -0.0174713134765625, -0.0161590576171875, 0.037841796875, -0.033538818359375, 0.053955078125, -0.018341064453125, 0.052032470703125, -0.001220703125, -0.07562255859375, -0.011016845703125, -0.02276611328125, -0.021453857421875, -0.023223876953125, -0.048858642578125, 0.037933349609375, -0.062255859375, -0.0122833251953125, -0.01198577880859375, 0.0018262863159179688, 0.01519012451171875, 0.03509521484375, 0.004344940185546875, 0.0262908935546875, -0.0227203369140625, 0.00913238525390625, 0.01107025146484375, 0.03533935546875, 0.026031494140625, 0.0262908935546875, -0.056640625, 0.005340576171875, 0.05718994140625, -0.0302581787109375, 0.032012939453125, 0.06170654296875, 0.01277923583984375, 0.019927978515625, 0.05712890625, 0.01361083984375, 0.0090789794921875, -0.005390167236328125, -0.0170745849609375, -0.0160980224609375, -0.0673828125, 0.050079345703125, -0.007251739501953125, 0.01004791259765625, -0.0253753662109375, 0.00843048095703125, 0.0301513671875, 0.0367431640625, -0.0150604248046875, -0.0063323974609375, 0.0313720703125, -0.037353515625, -0.006252288818359375, 0.0086669921875, 0.053558349609375, 0.0142822265625, 0.01531982421875, -0.0055694580078125, -0.0093231201171875, 0.008209228515625, 0.004608154296875, 0.07000732421875, 0.01024627685546875, -0.0083465576171875, -0.02496337890625, 0.0025501251220703125, 0.0174407958984375, -0.02581787109375, 0.01039886474609375, -0.0181732177734375, -0.00583648681640625, 0.034210205078125, -0.0110321044921875, -0.0035572052001953125, 0.045135498046875, -0.007595062255859375, 0.013519287109375, -0.050048828125, -0.01678466796875, 0.012359619140625, 0.018402099609375, -0.0227508544921875, -0.0178985595703125, 0.0092010498046875, -0.04095458984375, 0.00930023193359375, -0.038482666015625, -0.0110931396484375, 0.0164794921875, 0.008148193359375, -0.06329345703125, 0.0090789794921875, 0.065673828125, -0.03948974609375, 0.00727081298828125, -0.019989013671875, -0.00765228271484375, 0.006412506103515625, -0.045684814453125, 0.0258026123046875, 0.0103912353515625, -0.0276947021484375, -0.08685302734375, 0.024505615234375, 0.01080322265625, -0.0268402099609375, 0.0275726318359375, -0.025970458984375, -0.038970947265625, -0.00046062469482421875, 0.0260772705078125, -0.0297698974609375, -0.005413055419921875, -0.0016298294067382812, -0.01393890380859375, -0.0197296142578125, 0.023223876953125, -0.10430908203125, -0.00788116455078125, 0.0099334716796875, -0.029754638671875, 0.0016336441040039062, 0.0582275390625, -0.033416748046875, -0.0034942626953125, -0.045867919921875, 0.0310821533203125, 0.1279296875, 0.057525634765625, 0.031524658203125, 0.0005331039428710938, 0.0255889892578125, -0.01030731201171875, -0.0049285888671875, 0.0295562744140625, -0.00363922119140625, -0.04986572265625, -0.0274200439453125, -0.01209259033203125, -0.01244354248046875, 0.0258941650390625, 0.01222991943359375, 0.0162811279296875, -0.0198974609375, -0.04833984375, -0.003345489501953125, -0.017120361328125, 0.01032257080078125, -0.005451202392578125, 0.00949859619140625, -0.0357666015625, 0.0011110305786132812, -0.028289794921875, 0.019989013671875, -0.012176513671875, -0.001926422119140625, -0.0159149169921875, 0.01428985595703125, -0.07501220703125, -0.06292724609375, 0.0003914833068847656, -0.079345703125, -0.00955963134765625, 0.0187530517578125, 0.03387451171875, -0.0267181396484375, -0.00010758638381958008, 0.00022089481353759766, 0.00431060791015625, -0.0173187255859375, 0.01309967041015625, 0.00872802734375, -0.0004973411560058594, 0.0220489501953125, 0.044036865234375, -0.0032520294189453125, -0.0199127197265625, 0.05792236328125, -0.0257568359375, -0.0235443115234375, 0.0303497314453125, 0.025115966796875, 0.05633544921875, -0.0284881591796875, 0.03302001953125, 0.01238250732421875, 0.041412353515625, -0.003570556640625, 0.047821044921875, 0.0063934326171875, -0.07855224609375, -0.033477783203125, -0.028106689453125, -0.016693115234375, 0.0052947998046875, -0.042022705078125, 0.0146636962890625, 0.0129547119140625, 0.0142364501953125, -0.0296478271484375, 0.030975341796875, -0.0228271484375, 0.050445556640625, 0.00971221923828125, 0.005725860595703125, 0.02130126953125, 0.006549835205078125, -0.0285186767578125, -0.0245361328125, -0.056915283203125, -0.0058441162109375, -0.02532958984375, 0.057769775390625, -0.03851318359375, 0.09039306640625, -0.05157470703125, -0.056671142578125, -0.037078857421875, -0.0179290771484375, 0.0281524658203125, 0.003574371337890625, -0.012115478515625, 0.0005645751953125, 0.045562744140625, 0.00885009765625, 0.0220947265625, -0.00838470458984375, 0.0208740234375, 0.026885986328125, -0.03167724609375, -0.0117645263671875, -0.0193023681640625, -0.037628173828125, 0.0113525390625, 0.053802490234375, 0.043121337890625, -0.0004057884216308594, -0.005558013916015625, -0.020782470703125, -0.006839752197265625, -0.083251953125, -0.0011129379272460938, -0.03173828125, 0.0164947509765625, 0.0467529296875, -0.01507568359375, -0.0093841552734375, 0.0218963623046875, -0.034698486328125, -0.00875091552734375, 0.044097900390625, -0.0377197265625, -0.016845703125, 0.0305633544921875, -0.0022335052490234375, -0.0052337646484375, -0.026824951171875, 0.0234527587890625, -0.0382080078125, 0.00222015380859375, 0.0017414093017578125, 0.036102294921875, 0.01195526123046875, 0.023223876953125, -0.00214385986328125, -0.01177215576171875, -0.064208984375, 0.01087188720703125, -0.011566162109375, -0.0255279541015625, 0.0577392578125, -0.050048828125, 0.027618408203125, 0.03253173828125, 0.0162506103515625, -0.000820159912109375, 0.041015625, -0.0249786376953125, -0.013275146484375, -0.004413604736328125, -0.04608154296875, -0.009613037109375, 0.0055999755859375, -0.0275115966796875, -0.0389404296875, 0.0083465576171875, 0.055908203125, -0.0200958251953125, 0.031585693359375, -0.01079559326171875, -0.008514404296875, 0.03887939453125, -0.04425048828125, 0.046905517578125, -0.049896240234375, -0.00954437255859375, 0.056884765625, -0.01090240478515625, 0.004241943359375, -0.0159759521484375, -0.0070343017578125, -0.019989013671875, 0.01557159423828125, -0.0121917724609375, -0.03302001953125, -0.031524658203125, 0.00899505615234375, 0.054229736328125, 0.08209228515625, 0.0183868408203125, -0.0394287109375, 0.00783538818359375, 0.060577392578125, -0.027008056640625, -0.09674072265625, -0.058685302734375, -0.017974853515625, -0.005523681640625, -0.012298583984375, -0.0099945068359375, 0.02764892578125, -0.028045654296875, 0.0218048095703125, 0.01265716552734375, -0.032684326171875, -0.01349639892578125, -0.04998779296875, -0.06719970703125, -0.046661376953125, 0.021636962890625, 0.01091766357421875, -0.01386260986328125, 0.07012939453125, 0.000020205974578857422, -0.01837158203125, -0.006866455078125, -0.03564453125, 0.004077911376953125, -0.01322174072265625, 0.0146636962890625, -0.039703369140625, 0.026214599609375, -0.0133819580078125, 0.026519775390625, 0.04547119140625, -0.0232696533203125, 0.0053558349609375, 0.027191162109375, 0.0053253173828125, 0.037811279296875, 0.0238189697265625, -0.03228759765625, 0.017791748046875, 0.04803466796875, -0.035980224609375, 0.00397491455078125, -0.0019159317016601562, -0.0187225341796875, -0.02520751953125, -0.037933349609375, 0.0095367431640625, 0.00826263427734375, 0.006679534912109375, 0.0283355712890625, 0.0303955078125, -0.0017118453979492188, -0.005504608154296875, 0.00971221923828125, 0.004680633544921875, 0.0252532958984375, -0.0184326171875, -0.0014333724975585938, -0.0210113525390625, 0.02685546875, 0.0115509033203125, 0.0208282470703125, 0.005641937255859375, -0.00774383544921875, -0.033050537109375, -0.038360595703125, 0.0277099609375, -0.027191162109375, 0.0260009765625, -0.039794921875, -0.0287628173828125, 0.006496429443359375, 0.08062744140625, -0.01155853271484375, -0.01433563232421875, 0.038543701171875, 0.0218505859375, -0.061279296875, -0.0079803466796875, -0.045379638671875, -0.0019483566284179688, 0.02960205078125, -0.02655029296875, -0.0232391357421875, -0.003948211669921875, 0.004489898681640625, -0.025726318359375, 0.0192413330078125, -0.02227783203125, 0.0350341796875, -0.0309295654296875, -0.025390625, 0.038604736328125, -0.043853759765625, 0.0082244873046875, -0.01103973388671875, -0.0193328857421875, -0.1295166015625, -0.01480865478515625, -0.0201568603515625, 0.066650390625, -0.0123443603515625, 0.0207366943359375, -0.023345947265625, 0.058380126953125, 0.02691650390625, 0.03680419921875, 0.0096893310546875, -0.004360198974609375, 0.007640838623046875, -0.004299163818359375, 0.01169586181640625, -0.025146484375, -0.014892578125, -0.0204315185546875, -0.00968170166015625, 0.035125732421875, -0.020263671875, 0.035064697265625, -0.0100555419921875, 0.00313568115234375, 0.023773193359375, -0.038116455078125, -0.008209228515625, 0.04779052734375, -0.004161834716796875, -0.007564544677734375, -0.052459716796875, -0.0131683349609375, 0.048553466796875, -0.034332275390625, 0.020538330078125, 0.0164031982421875, 0.0762939453125, 0.005603790283203125, -0.004077911376953125, -0.04998779296875, 0.002407073974609375, 0.027374267578125, 0.02081298828125, 0.0200653076171875, -0.0033512115478515625, -0.0145721435546875, 0.0228118896484375, 0.016571044921875, 0.01049041748046875, -0.0245361328125, 0.05291748046875, 0.0083770751953125, 0.00641632080078125, 0.01226806640625, -0.00400543212890625, -0.005046844482421875, 0.037689208984375, -0.0177154541015625, -0.0158538818359375, -0.0265655517578125, 0.03472900390625, -0.005435943603515625, 0.026611328125, -0.047088623046875, -0.0250701904296875, 0.008453369140625, -0.0404052734375, 0.00971221923828125, -0.0005030632019042969, 0.0139923095703125, -0.01316070556640625, -0.00658416748046875, -0.0078125, 0.00853729248046875, 0.0307159423828125, -0.0038604736328125, 0.0225830078125, 0.0322265625, 0.0014629364013671875, -0.027679443359375, -0.016082763671875, 0.08270263671875, 0.00786590576171875, -0.01776123046875, -0.0157623291015625, -0.03143310546875, 0.005889892578125, 0.01345062255859375, 0.009368896484375, 0.01380157470703125, 0.053924560546875, -0.00418853759765625, 0.01473236083984375, 0.0297088623046875, 0.041290283203125, 0.003986358642578125, -0.0237274169921875, 0.02716064453125, -0.033447265625, -0.0394287109375, 0.04693603515625, -0.0102996826171875, -0.00547027587890625, 0.002521514892578125, 0.018096923828125, -0.006977081298828125, 0.058807373046875, 0.0028705596923828125, -0.004669189453125, 0.0196075439453125, 0.0189208984375, -0.004947662353515625, -0.0298309326171875, -0.030487060546875, -0.0235443115234375, 0.035064697265625, -0.04461669921875, -0.001171112060546875, 0.05731201171875, 0.00487518310546875, -0.00418853759765625, 0.03643798828125, -0.0243377685546875, -0.06805419921875, -0.022247314453125, 0.0190582275390625, 0.038970947265625, -0.03350830078125, 0.011444091796875, 0.03887939453125, -0.032196044921875, 0.0293731689453125, -0.00010406970977783203, 0.05450439453125, -0.051910400390625, -0.0718994140625, 0.03546142578125, -0.036865234375, -0.059295654296875, 0.038299560546875, 0.03759765625, -0.0284881591796875, -0.0085296630859375, 0.006824493408203125, -0.054595947265625, -0.0061798095703125, -0.02447509765625, 0.04327392578125, -0.04058837890625, 0.019927978515625, 0.036285400390625, 0.0321044921875, 0.0275115966796875, -0.015655517578125, -0.0007729530334472656, -0.031951904296875, 0.0078125, -0.0093994140625, -0.015533447265625, -0.0215606689453125, 0.008148193359375, 0.000823974609375, -0.0025997161865234375, -0.0615234375, -0.01007080078125, 0.007190704345703125, 0.0207977294921875, -0.0413818359375, -0.0011043548583984375, 0.05218505859375, -0.01514434814453125, 0.0245513916015625, 0.01214599609375, 0.0185546875, 0.0047454833984375, -0.02044677734375, 0.01303863525390625, -0.051544189453125, -0.017974853515625, -0.0276947021484375, -0.0256500244140625, 0.0350341796875, 0.032806396484375, -0.003452301025390625, 0.03363037109375, -0.0223541259765625, -0.00780487060546875, -0.005496978759765625, 0.054656982421875, -0.03497314453125, -0.01134490966796875, 0.08203125, -0.03973388671875, -0.005645751953125, -0.0016765594482421875, 0.006977081298828125, 0.003582000732421875, -0.034637451171875, -0.013336181640625, 0.0284271240234375, -0.031829833984375, 0.0264739990234375, 0.042022705078125, 0.037139892578125, 0.061737060546875, -0.0161285400390625, 0.041015625, -0.005096435546875, 0.024322509765625, -0.02020263671875, -0.01062774658203125, 0.041290283203125, -0.00792694091796875, -0.021881103515625, 0.0166473388671875, -0.0182342529296875, 0.05078125, 0.1009521484375, 0.08978271484375, -0.08935546875, -0.002964019775390625, 0.006793975830078125, -0.047882080078125, 0.03497314453125, -0.03448486328125, -0.01328277587890625, 0.00022077560424804688, 0.0236358642578125, -0.0016431808471679688, -0.04571533203125, -0.00101470947265625, 0.00838470458984375, 0.009521484375, -0.0160064697265625, 0.034759521484375, 0.0022335052490234375, -0.011505126953125, -0.009307861328125, 0.0094451904296875, -0.005207061767578125, -0.0017795562744140625, 0.027923583984375, -0.0207366943359375, -0.0004115104675292969, -0.03680419921875, 0.01171875, -0.033599853515625, -0.0007681846618652344, 0.0008158683776855469, 0.0208282470703125, 0.0517578125, 0.037750244140625, 0.0052032470703125, 0.000858306884765625, 0.0140228271484375, 0.03814697265625, -0.0033512115478515625, 0.005451202392578125, 0.00543975830078125, 0.049072265625, -0.03448486328125, 0.01800537109375, -0.029327392578125, 0.00675201416015625, 0.0185089111328125, 0.045654296875, 0.04058837890625, -0.01087188720703125, -0.0257568359375, 0.020416259765625, -0.00452423095703125, 0.016510009765625, -0.0180816650390625, 0.014251708984375, -0.05731201171875, -0.013397216796875, 0.0005922317504882812, -0.01265716552734375, -0.0289764404296875, -0.00962066650390625, -0.0643310546875, 0.1104736328125, 0.00426483154296875, 0.00389862060546875, 0.0157928466796875, 0.045745849609375, -0.05316162109375, -0.0027904510498046875, -0.0574951171875, 0.049713134765625, -0.0228118896484375, 0.06597900390625, -0.0579833984375, 0.0069732666015625, 0.0255126953125, 0.01166534423828125, 0.01554107666015625, -0.006809234619140625, -0.0176239013671875, -0.004123687744140625, 0.0305633544921875, 0.045806884765625, 0.01380157470703125, 0.0273895263671875, -0.015716552734375, -0.01654052734375, 0.0294952392578125, -0.011871337890625, 0.0249786376953125, -0.0031585693359375, -0.0088958740234375, -0.003597259521484375, 0.0081939697265625, 0.0176544189453125, -0.0027103424072265625, -0.0040435791015625, 0.029998779296875, -0.022491455078125, -0.01102447509765625, -0.0178070068359375, -0.014373779296875, 0.047332763671875, 0.038909912109375, -0.055023193359375, -0.028778076171875, -0.0335693359375, 0.039642333984375, 0.0072479248046875, 0.01104736328125, 0.03839111328125, 0.01227569580078125, 0.0247802734375, -0.0011920928955078125, -0.00994873046875, -0.00507354736328125, 0.0244903564453125, 0.05078125, 0.016571044921875, 0.0241546630859375, -0.05291748046875, -0.005950927734375, 0.051910400390625, 0.07489013671875, -0.05059814453125, -0.00292205810546875, 0.019866943359375, 0.036529541015625, -0.01438140869140625, 0.00045680999755859375, 0.016265869140625, 0.0115509033203125, 0.034515380859375, -0.0113983154296875, -0.01117706298828125, -0.028533935546875, 0.00992584228515625, -0.01739501953125, 0.00823974609375, 0.0225982666015625, -0.0261077880859375, -0.023651123046875, 0.006359100341796875, 0.040191650390625, 0.0450439453125, -0.01558685302734375, 0.048004150390625, 0.00372314453125, -0.0029125213623046875, -0.018951416015625, 0.0230255126953125, -0.0009899139404296875, 0.03643798828125, -0.046905517578125, -0.03564453125, 0.034423828125, 0.03515625, -0.022186279296875, 0.02685546875, 0.022705078125, 0.01678466796875, -0.0186920166015625, -0.01206207275390625, 0.031982421875, -0.027313232421875, -0.0960693359375, -0.05023193359375, -0.02581787109375, 0.00966644287109375, 0.033111572265625, 0.056671142578125, 0.052825927734375, -0.028839111328125, -0.0098724365234375, -0.0049896240234375, -0.0035610198974609375, -0.050872802734375, 0.01318359375, 0.000217437744140625, 0.06072998046875, 0.017486572265625, -0.06256103515625, -0.01806640625, -0.01171875, -0.0153961181640625, 0.014923095703125, 0.036773681640625, 0.0100250244140625, 0.00415802001953125, -0.00664520263671875, -0.006927490234375, -0.0169219970703125, 0.01264190673828125, 0.01488494873046875, -0.016387939453125, 0.01222991943359375, -0.0094451904296875, -0.023101806640625, 0.0017805099487304688, 0.0145263671875, 0.01024627685546875, -0.04144287109375, 0.0755615234375, -0.021728515625, -0.0179901123046875, -0.019195556640625, 0.0033721923828125, -0.026824951171875, -0.00774383544921875, -0.01049041748046875, -0.00527191162109375, 0.0204620361328125, -0.006359100341796875, -0.01488494873046875, 0.005340576171875, 0.048065185546875, -0.014556884765625, -0.0255279541015625, 0.0015201568603515625, 0.042877197265625, 0.020111083984375, 0.0119476318359375, -0.01349639892578125, 0.007045745849609375, -0.0049896240234375, 0.0005807876586914062, 0.040435791015625, 0.038299560546875, 0.01293182373046875, 0.042236328125, -0.014984130859375, -0.025177001953125, 0.00926971435546875, -0.068115234375, 0.0037364959716796875, 0.025482177734375, 0.01413726806640625, -0.052215576171875, -0.01078033447265625, -0.0245819091796875, -0.0220184326171875, -0.00004029273986816406, 0.0280609130859375, 0.0034008026123046875, -0.042266845703125, -0.00556182861328125, 0.036041259765625, 0.042510986328125, -0.005359649658203125, 0.034942626953125, 0.0205078125, -0.01296234130859375, -0.002559661865234375, -0.01213836669921875, -0.020751953125, -0.029205322265625, -0.0141754150390625, 0.01499176025390625, -0.0297088623046875, -0.0197601318359375, -0.08172607421875, 0.001316070556640625, 0.0295562744140625, 0.0001074671745300293, -0.06170654296875, 0.0157928466796875, -0.03485107421875, 0.055328369140625, -0.0191650390625, 0.00742340087890625, 0.01509857177734375, 0.0689697265625, 0.0005669593811035156, -0.0157470703125, 0.002490997314453125, 0.01404571533203125, -0.0028629302978515625, 0.0036067962646484375, 0.0033206939697265625, -0.021331787109375, -0.00814056396484375, 0.0102386474609375, -0.0005326271057128906, 0.0482177734375, 0.03546142578125, -0.0014505386352539062, 0.0131988525390625, -0.0021820068359375, -0.0386962890625, -0.039703369140625, 0.036224365234375, -0.08160400390625, -0.0182037353515625, -0.03515625, 0.02703857421875, 0.03314208984375, -0.04559326171875, -0.09222412109375, 0.0303802490234375, -0.028167724609375, -0.033599853515625, 0.01751708984375, -0.03131103515625, -0.0201263427734375, 0.0095672607421875, 0.00589752197265625, -0.0297698974609375, -0.022491455078125, 0.0109710693359375, 0.0191192626953125, -0.00469207763671875, 0.0283355712890625, -0.0081024169921875, -0.08489990234375, -0.004253387451171875, -0.02667236328125, 0.021636962890625, 0.04534912109375, -0.01168060302734375, 0.007129669189453125, 0.0218353271484375, -0.0479736328125, -0.0211639404296875, -0.038726806640625, -0.031829833984375, 0.003986358642578125, -0.0080108642578125, -0.0235595703125, -0.001285552978515625, 0.05218505859375, 0.0482177734375, 0.0204010009765625, -0.041839599609375, -0.0169219970703125, -0.023223876953125, -0.0175933837890625, -0.032196044921875, 0.00989532470703125, -0.052215576171875, -0.0223388671875, -0.0242462158203125, -0.00452423095703125, -0.01471710205078125, 0.047637939453125, 0.0030002593994140625, -0.0030574798583984375, 0.0723876953125, -0.0292510986328125, -0.006809234619140625, -0.03216552734375, 0.05767822265625, -0.040252685546875, -0.02252197265625, -0.021881103515625, 0.03985595703125, -0.00991058349609375, -0.05712890625, 0.0087432861328125, -0.0165252685546875, -0.0121002197265625, 0.01039886474609375, 0.0003771781921386719, 0.01629638671875, -0.019287109375, -0.02288818359375, 0.0203704833984375, 0.0003390312194824219, -0.048858642578125, -0.002559661865234375, 0.06854248046875, -0.00539398193359375, -0.046051025390625, 0.063232421875, -0.002941131591796875, -0.01934814453125, -0.0338134765625, 0.037994384765625, 0.00701904296875, -0.0167694091796875, 0.011138916015625, 0.0038280487060546875, 0.0167388916015625, -0.00620269775390625, 0.0238494873046875, -0.0166778564453125, -0.00921630859375, -0.0052947998046875, 0.0113372802734375, 0.0016231536865234375 ]
296d32856ecd54e41f71e1ee8bea5478d71ec7f5
Wordpress Stackexchange Q: How can I publish a post with two or more authors? A friend and I have a Wordpress blog and we want to be able to publish a post with more than one author. How can I do this? A: You can try out the Co-Authors Plus plugin. You will need to edit your theme template files to see multiple authors.
Q: How can I publish a post with two or more authors? A friend and I have a Wordpress blog and we want to be able to publish a post with more than one author. How can I do this? A: You can try out the Co-Authors Plus plugin. You will need to edit your theme template files to see multiple authors. A: You could do this using the Posts 2 Posts plugin: https://github.com/scribu/wp-posts-to-posts/wiki/Posts-2-Users A: I have used this before and it works great: Multiple Authors
wordpress
{ "language": "en", "length": 86, "provenance": "stackexchange_00019.jsonl.gz:415633", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37336" }
[ -0.009246826171875, 0.00572967529296875, -0.026885986328125, 0.01244354248046875, -0.001331329345703125, -0.0216064453125, -0.0011281967163085938, -0.01202392578125, -0.0205841064453125, 0.0158233642578125, 0.00653839111328125, 0.032379150390625, -0.07098388671875, -0.01593017578125, -0.01678466796875, -0.03466796875, 0.0236968994140625, 0.007358551025390625, 0.0184478759765625, -0.004974365234375, -0.00359344482421875, 0.0158233642578125, 0.0037994384765625, 0.039886474609375, 0.04736328125, 0.024932861328125, 0.032867431640625, -0.0276336669921875, 0.03546142578125, -0.009796142578125, 0.040740966796875, -0.0355224609375, 0.029876708984375, 0.032867431640625, -0.053436279296875, 0.0219268798828125, -0.0301666259765625, 0.0225677490234375, 0.004253387451171875, 0.0035228729248046875, 0.0206298828125, -0.01354217529296875, 0.00554656982421875, 0.0257415771484375, -0.00027251243591308594, -0.045196533203125, 0.0447998046875, -0.04962158203125, 0.0131072998046875, -0.003162384033203125, -0.01378631591796875, 0.00926971435546875, -0.00402069091796875, -0.003223419189453125, -0.0167999267578125, -0.023712158203125, 0.05426025390625, 0.0015954971313476562, 0.055328369140625, -0.10443115234375, -0.0780029296875, -0.0300750732421875, 0.060638427734375, 0.0362548828125, 0.00982666015625, 0.0171051025390625, 0.0286712646484375, 0.0276031494140625, -0.01444244384765625, 0.001132965087890625, -0.006168365478515625, -0.0382080078125, 0.003864288330078125, 0.01169586181640625, -0.0146636962890625, -0.05743408203125, -0.005855560302734375, -0.06060791015625, 0.0257720947265625, 0.027923583984375, -0.022003173828125, -0.00765228271484375, -0.032501220703125, -0.0517578125, 0.00537872314453125, -0.01617431640625, -0.0012826919555664062, 0.00424957275390625, -0.043609619140625, -0.005573272705078125, -0.01100921630859375, -0.074462890625, -0.057647705078125, 0.058258056640625, 0.027557373046875, -0.01279449462890625, 0.0275421142578125, 0.0953369140625, -0.0173187255859375, 0.0218048095703125, -0.029632568359375, -0.0159912109375, 0.016143798828125, -0.0506591796875, 0.016754150390625, 0.0014142990112304688, -0.01593017578125, 0.034942626953125, 0.0677490234375, 0.038848876953125, -0.0019741058349609375, 0.024078369140625, 0.029052734375, -0.033050537109375, -0.01165771484375, -0.005962371826171875, -0.006130218505859375, 0.0435791015625, 0.032684326171875, 0.0191802978515625, -0.009429931640625, 0.0191192626953125, -0.0053558349609375, -0.030303955078125, -0.011688232421875, -0.0214080810546875, 0.0024776458740234375, -0.0193634033203125, 0.023040771484375, 0.03106689453125, -0.03131103515625, 0.007129669189453125, 0.058868408203125, -0.0083465576171875, -0.02056884765625, -0.03277587890625, -0.0010480880737304688, 0.0021686553955078125, 0.00283050537109375, -0.0038089752197265625, -0.0073394775390625, -0.0237579345703125, 0.0164642333984375, -0.007152557373046875, -0.0093841552734375, -0.0116119384765625, 0.0232696533203125, 0.040252685546875, -0.0089263916015625, -0.00664520263671875, -0.01373291015625, 0.026641845703125, -0.01085662841796875, -0.0018014907836914062, 0.0770263671875, -0.059112548828125, -0.00420379638671875, -0.0270538330078125, 0.07354736328125, 0.0173187255859375, 0.03533935546875, 0.0124664306640625, 0.0333251953125, 0.00026226043701171875, -0.003047943115234375, -0.022369384765625, -0.07330322265625, -0.002269744873046875, 0.01093292236328125, -0.06982421875, -0.00579833984375, 0.01329803466796875, 0.052154541015625, 0.016082763671875, 0.0161285400390625, 0.04071044921875, -0.008026123046875, -0.00225830078125, 0.01224517822265625, 0.05859375, 0.0235595703125, -0.0172119140625, 0.0130157470703125, -0.002445220947265625, -0.021392822265625, 0.0288543701171875, 0.00936126708984375, 0.071533203125, -0.005451202392578125, 0.0228729248046875, 0.0106658935546875, 0.002513885498046875, -0.0284271240234375, 0.024017333984375, -0.0237884521484375, -0.02496337890625, 0.006591796875, 0.003940582275390625, -0.00732421875, 0.001537322998046875, 0.01392364501953125, -0.005634307861328125, -0.0049285888671875, 0.03076171875, -0.018951416015625, 0.010986328125, -0.01389312744140625, -0.0083770751953125, 0.04150390625, 0.0150909423828125, -0.01210784912109375, 0.00876617431640625, 0.01430511474609375, -0.053680419921875, -0.05682373046875, 0.00913238525390625, -0.033477783203125, 0.00406646728515625, -0.0044708251953125, -0.005741119384765625, -0.00969696044921875, 0.0003371238708496094, -0.007343292236328125, -0.0024662017822265625, 0.05389404296875, -0.06463623046875, -0.00231170654296875, -0.06109619140625, -0.0028324127197265625, -0.019134521484375, -0.07537841796875, 0.06121826171875, 0.021575927734375, 0.0182037353515625, -0.0010728836059570312, 0.0160675048828125, 0.042327880859375, -0.0211944580078125, 0.002899169921875, 0.011444091796875, 0.0246124267578125, -0.009735107421875, -0.00946807861328125, 0.02154541015625, 0.041595458984375, -0.04278564453125, -0.0010137557983398438, 0.014984130859375, 0.03973388671875, 0.061309814453125, -0.0240631103515625, -0.032867431640625, 0.0247344970703125, -0.10546875, 0.013641357421875, 0.0295867919921875, 0.007282257080078125, 0.01305389404296875, -0.0278472900390625, 0.0018224716186523438, 0.0006761550903320312, -0.039520263671875, -0.035675048828125, -0.0222930908203125, 0.0014181137084960938, -0.0194244384765625, 0.042999267578125, 0.0304107666015625, 0.0236968994140625, -0.05230712890625, -0.00873565673828125, -0.0012836456298828125, 0.02642822265625, 0.023529052734375, -0.037322998046875, 0.041778564453125, 0.0284423828125, -0.0192718505859375, 0.007396697998046875, 0.00899505615234375, -0.0236358642578125, -0.00743865966796875, 0.016204833984375, -0.0141754150390625, -0.00495147705078125, 0.006816864013671875, 0.036163330078125, -0.0246429443359375, -0.020599365234375, -0.040740966796875, -0.0205841064453125, 0.0477294921875, -0.01053619384765625, 0.035400390625, -0.0025959014892578125, -0.0196380615234375, -0.02545166015625, -0.0943603515625, 0.057373046875, -0.0679931640625, 0.04217529296875, 0.07708740234375, 0.00867462158203125, 0.0198822021484375, 0.00862884521484375, 0.0208587646484375, 0.020355224609375, 0.000766754150390625, 0.0001518726348876953, -0.0021343231201171875, -0.020843505859375, 0.0196990966796875, 0.032257080078125, 0.017181396484375, 0.01107025146484375, -0.0220794677734375, -0.00438690185546875, 0.0299224853515625, -0.06842041015625, -0.0433349609375, 0.0287322998046875, -0.03460693359375, -0.01267242431640625, 0.0015916824340820312, -0.0204925537109375, -0.01169586181640625, 0.028564453125, -0.007648468017578125, -0.007289886474609375, -0.013336181640625, -0.0159454345703125, -0.02618408203125, -0.057647705078125, -0.0018367767333984375, 0.0027637481689453125, 0.01177978515625, 0.007022857666015625, 0.031402587890625, 0.0025730133056640625, -0.052978515625, -0.0182952880859375, 0.026824951171875, -0.0200958251953125, -0.0017118453979492188, 0.0199737548828125, 0.01383209228515625, -0.029571533203125, 0.029937744140625, 0.0101318359375, 0.005336761474609375, -0.0379638671875, -0.023406982421875, 0.0087738037109375, 0.018157958984375, 0.04168701171875, 0.0026569366455078125, -0.0350341796875, 0.04888916015625, 0.0311279296875, -0.01275634765625, 0.015472412109375, -0.0141754150390625, -0.034210205078125, -0.1036376953125, 0.01020050048828125, -0.006961822509765625, -0.0718994140625, -0.01305389404296875, 0.014495849609375, -0.0021648406982421875, -0.0203094482421875, -0.01483154296875, 0.02532958984375, 0.0218658447265625, 0.05596923828125, 0.00800323486328125, -0.06390380859375, -0.040283203125, 0.028839111328125, -0.051483154296875, 0.019927978515625, -0.041595458984375, 0.0714111328125, -0.04296875, -0.01611328125, 0.04632568359375, 0.00013887882232666016, 0.0174407958984375, -0.0186614990234375, -0.040985107421875, -0.0236663818359375, 0.06634521484375, -0.02392578125, -0.01386260986328125, -0.002353668212890625, -0.0084381103515625, -0.0126495361328125, -0.00928497314453125, -0.049285888671875, -0.0214385986328125, 0.059539794921875, 0.0221405029296875, -0.0175018310546875, 0.025634765625, -0.03802490234375, 0.050018310546875, 0.0338134765625, 0.00815582275390625, 0.036346435546875, 0.01374053955078125, -0.0178680419921875, 0.0225982666015625, -0.04498291015625, 0.0189208984375, -0.03125, -0.001953125, -0.035980224609375, -0.002838134765625, -0.0085601806640625, 0.0186767578125, -0.0244140625, 0.032806396484375, 0.0009479522705078125, 0.039703369140625, -0.0205535888671875, 0.055389404296875, -0.0313720703125, 0.00473785400390625, 0.0115203857421875, 0.0179595947265625, 0.0015716552734375, 0.00047969818115234375, -0.009246826171875, -0.01354217529296875, -0.0273895263671875, -0.016876220703125, -0.036651611328125, -0.0330810546875, 0.00824737548828125, -0.03216552734375, -0.03753662109375, -0.01306915283203125, 0.03631591796875, 0.032867431640625, 0.01280975341796875, 0.00731658935546875, -0.01959228515625, -0.0168304443359375, 0.04541015625, -0.01045989990234375, 0.003444671630859375, 0.01313018798828125, 0.09783935546875, 0.0101318359375, 0.00444793701171875, -0.07672119140625, -0.0197296142578125, 0.0277099609375, 0.03070068359375, -0.00885009765625, 0.026092529296875, -0.00412750244140625, -0.0389404296875, 0.00908660888671875, -0.0350341796875, -0.0162353515625, 0.043121337890625, -0.009033203125, -0.0183868408203125, 0.005344390869140625, -0.045928955078125, 0.06787109375, -0.01369476318359375, -0.002880096435546875, 0.03173828125, 0.005275726318359375, -0.01256561279296875, 0.016265869140625, -0.0226287841796875, -0.006702423095703125, -0.036865234375, 0.0157470703125, -0.0183258056640625, 0.0205078125, 0.0443115234375, -0.0036983489990234375, 0.0230712890625, 0.0013933181762695312, -0.00484466552734375, 0.00011217594146728516, -0.03662109375, -0.01171875, 0.0021266937255859375, -0.006134033203125, -0.02020263671875, 0.0239715576171875, -0.01202392578125, 0.0665283203125, 0.0248260498046875, -0.025665283203125, 0.005054473876953125, -0.01522064208984375, 0.013031005859375, -0.0265655517578125, -0.023895263671875, 0.0299530029296875, 0.06488037109375, -0.0225982666015625, -0.0084381103515625, 0.007358551025390625, 0.01187896728515625, -0.038482666015625, -0.00849151611328125, -0.021331787109375, 0.0037975311279296875, 0.00045752525329589844, 0.060791015625, -0.006061553955078125, 0.022369384765625, -0.041595458984375, 0.053558349609375, 0.0333251953125, -0.02789306640625, 0.0123748779296875, 0.046539306640625, 0.01088714599609375, -0.052490234375, -0.007415771484375, -0.03277587890625, 0.0012111663818359375, 0.0117950439453125, 0.0307159423828125, 0.04229736328125, 0.00925445556640625, 0.00780487060546875, -0.01064300537109375, 0.0008325576782226562, -0.0278472900390625, 0.00743865966796875, -0.0023651123046875, 0.034271240234375, 0.01947021484375, -0.034820556640625, -0.0048828125, -0.01239013671875, -0.02490234375, -0.03240966796875, 0.024505615234375, -0.01812744140625, 0.005863189697265625, -0.01123809814453125, -0.022552490234375, 0.01212310791015625, 0.0171966552734375, -0.003955841064453125, -0.03173828125, -0.032257080078125, -0.0169219970703125, -0.01300048828125, 0.08966064453125, -0.039886474609375, -0.002552032470703125, -0.03082275390625, 0.046356201171875, 0.0029754638671875, -0.0009388923645019531, 0.09503173828125, 0.05609130859375, -0.039276123046875, -0.02630615234375, -0.05999755859375, -0.033233642578125, -0.007625579833984375, 0.0271759033203125, -0.04693603515625, 0.005847930908203125, 0.01497650146484375, 0.033172607421875, -0.0172576904296875, -0.0537109375, 0.0007219314575195312, -0.00152587890625, 0.0107879638671875, 0.0306854248046875, 0.0294647216796875, 0.040130615234375, -0.0147247314453125, 0.06298828125, 0.01375579833984375, 0.0079803466796875, -0.045745849609375, -0.0255584716796875, -0.01042938232421875, -0.0589599609375, -0.002773284912109375, 0.035491943359375, -0.0184478759765625, -0.00905609130859375, -0.03814697265625, 0.0177154541015625, 0.01273345947265625, -0.0149078369140625, 0.0199127197265625, -0.0159149169921875, 0.021148681640625, -0.056060791015625, -0.0259857177734375, 0.0189361572265625, -0.0254974365234375, 0.0714111328125, -0.01502227783203125, -0.00154876708984375, 0.024810791015625, -0.040740966796875, 0.035125732421875, 0.0390625, -0.0013360977172851562, -0.00787353515625, 0.0172882080078125, 0.006275177001953125, 0.00951385498046875, 0.0189056396484375, 0.018524169921875, -0.019378662109375, -0.04022216796875, -0.0291595458984375, 0.0240478515625, 0.0015077590942382812, -0.0176849365234375, 0.0205841064453125, 0.017852783203125, -0.003940582275390625, -0.00029969215393066406, 0.002620697021484375, 0.01015472412109375, -0.04718017578125, 0.0219879150390625, -0.0135040283203125, 0.0224609375, 0.05950927734375, -0.014251708984375, 0.01410675048828125, 0.004940032958984375, 0.055908203125, -0.000030875205993652344, 0.0008249282836914062, 0.037445068359375, -0.0215301513671875, -0.0092620849609375, -0.045654296875, -0.0000978708267211914, 0.01519775390625, -0.038177490234375, 0.07452392578125, 0.032745361328125, 0.045562744140625, -0.01505279541015625, -0.00011050701141357422, 0.0236053466796875, -0.01430511474609375, -0.016326904296875, 0.05523681640625, -0.032073974609375, 0.016693115234375, -0.0217437744140625, 0.01322174072265625, 0.00689697265625, 0.032073974609375, -0.017242431640625, -0.004238128662109375, 0.0161895751953125, 0.00005078315734863281, -0.03387451171875, -0.007457733154296875, 0.0306549072265625, 0.078125, -0.04437255859375, 0.037200927734375, -0.014739990234375, -0.006805419921875, -0.0131072998046875, 0.01160430908203125, 0.0543212890625, -0.008331298828125, -0.026702880859375, 0.036834716796875, 0.018463134765625, -0.0144805908203125, 0.01152801513671875, -0.01375579833984375, -0.0565185546875, -0.0182647705078125, 0.00926971435546875, -0.0304107666015625, 0.01386260986328125, 0.015289306640625, -0.0904541015625, 0.10205078125, -0.00283050537109375, 0.05694580078125, 0.005222320556640625, 0.028106689453125, -0.012298583984375, 0.006031036376953125, -0.04833984375, 0.065673828125, -0.05645751953125, 0.057952880859375, -0.100341796875, -0.0249481201171875, -0.01062774658203125, 0.0543212890625, 0.034576416015625, 0.0160980224609375, -0.01476287841796875, -0.01345062255859375, 0.0170440673828125, 0.0106964111328125, -0.0188751220703125, 0.044891357421875, 0.0357666015625, -0.027862548828125, 0.00872802734375, 0.00939178466796875, 0.0287322998046875, -0.0255126953125, 0.00791168212890625, 0.0523681640625, 0.01018524169921875, -0.006778717041015625, -0.01294708251953125, -0.00275421142578125, -0.02203369140625, -0.0129547119140625, -0.0014600753784179688, 0.038787841796875, 0.042388916015625, 0.0176849365234375, 0.039764404296875, -0.012725830078125, 0.038604736328125, -0.0181884765625, 0.05682373046875, -0.005580902099609375, 0.01373291015625, 0.0083770751953125, 0.010284423828125, -0.02191162109375, 0.033294677734375, 0.021392822265625, 0.06304931640625, -0.0250701904296875, 0.015777587890625, -0.0221099853515625, 0.00528717041015625, -0.08099365234375, -0.0219573974609375, 0.0357666015625, 0.03851318359375, -0.0299530029296875, -0.0034942626953125, 0.0181121826171875, -0.00765228271484375, -0.01528167724609375, -0.056884765625, -0.047637939453125, 0.004581451416015625, 0.0245208740234375, 0.0018405914306640625, -0.0185546875, -0.005367279052734375, 0.00899505615234375, -0.003734588623046875, -0.00394439697265625, 0.0286407470703125, -0.017486572265625, -0.052093505859375, 0.000377655029296875, 0.0335693359375, 0.07757568359375, 0.02752685546875, 0.0787353515625, -0.0328369140625, -0.03521728515625, 0.0013723373413085938, 0.0141754150390625, 0.0322265625, -0.01515960693359375, -0.0562744140625, -0.055419921875, 0.031646728515625, 0.0400390625, 0.008575439453125, 0.0102691650390625, 0.025970458984375, 0.057769775390625, 0.016571044921875, -0.0219573974609375, 0.02685546875, 0.0006012916564941406, 0.026123046875, -0.04400634765625, -0.00972747802734375, -0.0352783203125, -0.040313720703125, -0.0255889892578125, -0.01302337646484375, 0.006328582763671875, 0.00811004638671875, -0.02716064453125, 0.021087646484375, -0.03179931640625, 0.01296234130859375, -0.0013885498046875, -0.0153045654296875, 0.0080718994140625, -0.0982666015625, 0.0074462890625, -0.052825927734375, -0.056396484375, 0.04693603515625, 0.04339599609375, -0.0557861328125, 0.0224761962890625, 0.0021152496337890625, -0.017425537109375, -0.0024242401123046875, -0.0191192626953125, 0.05010986328125, 0.04730224609375, -0.021484375, 0.024688720703125, -0.061187744140625, -0.047119140625, -0.03076171875, 0.0516357421875, 0.0408935546875, -0.006320953369140625, 0.0251617431640625, 0.0626220703125, -0.0482177734375, 0.00847625732421875, -0.03411865234375, -0.0533447265625, 0.029571533203125, 0.00206756591796875, -0.0220489501953125, 0.01031494140625, -0.01873779296875, 0.0673828125, -0.0034351348876953125, 0.0050811767578125, 0.042633056640625, -0.00579071044921875, -0.004917144775390625, -0.019134521484375, 0.0022716522216796875, -0.0251312255859375, -0.022369384765625, -0.04833984375, -0.0038852691650390625, 0.0254669189453125, -0.0163421630859375, -0.05792236328125, -0.0110931396484375, 0.02105712890625, -0.0576171875, 0.01053619384765625, -0.006633758544921875, 0.00435638427734375, 0.0217742919921875, 0.0447998046875, -0.026214599609375, 0.0149078369140625, -0.0121307373046875, 0.0081024169921875, 0.007099151611328125, 0.05706787109375, 0.01000213623046875, -0.03448486328125, 0.01678466796875, 0.0059661865234375, 0.0330810546875, -0.007404327392578125, -0.0035991668701171875, -0.0030155181884765625, -0.00823974609375, -0.00567626953125, 0.0523681640625, -0.00861358642578125, -0.0076446533203125, -0.004177093505859375, -0.0026988983154296875, 0.00594329833984375, -0.017181396484375, -0.034515380859375, -0.0166778564453125, 0.01331329345703125, -0.0300750732421875, 0.0107269287109375, -0.016754150390625, -0.0198822021484375, 0.01136016845703125, -0.031463623046875, -0.0296173095703125, 0.02178955078125, 0.06488037109375, -0.023040771484375, -0.0004863739013671875, -0.026123046875, -0.015045166015625, -0.01515960693359375, 0.013397216796875, -0.00496673583984375, -0.0135955810546875, 0.037872314453125, 0.06439208984375, 0.034332275390625, 0.1041259765625, 0.0162200927734375, -0.0134429931640625, -0.0128936767578125, 0.0145416259765625, -0.0297088623046875, -0.064208984375, 0.03582763671875, -0.050628662109375, -0.02130126953125, -0.023712158203125, 0.043121337890625, 0.041595458984375, -0.0159912109375, -0.07403564453125, 0.0948486328125, -0.04266357421875, -0.0259857177734375, -0.055633544921875, -0.0189208984375, 0.005321502685546875, -0.01611328125, -0.0286407470703125, -0.002201080322265625, -0.053985595703125, 0.0272369384765625, -0.0357666015625, 0.031646728515625, 0.0126800537109375, -0.039398193359375, -0.01543426513671875, -0.019134521484375, -0.015411376953125, -0.053436279296875, 0.0205535888671875, -0.00252532958984375, 0.0207977294921875, 0.038116455078125, -0.0394287109375, 0.006374359130859375, -0.01212310791015625, 0.0054779052734375, -0.0016698837280273438, -0.0311279296875, -0.0012178421020507812, -0.01971435546875, -0.0008840560913085938, 0.02581787109375, -0.00439453125, -0.0102996826171875, 0.046295166015625, -0.043792724609375, -0.040008544921875, -0.00679779052734375, -0.0038967132568359375, -0.025909423828125, -0.0140838623046875, 0.0153350830078125, -0.002166748046875, -0.003520965576171875, -0.0017385482788085938, -0.031402587890625, -0.037353515625, -0.04022216796875, -0.001621246337890625, -0.06207275390625, 0.027984619140625, 0.026123046875, -0.035400390625, 0.0073699951171875, -0.0005888938903808594, -0.01934814453125, 0.0179595947265625, 0.0111846923828125, 0.002346038818359375, -0.0312042236328125, -0.02178955078125, 0.0251617431640625, -0.0016336441040039062, 0.01514434814453125, -0.032440185546875, -0.0287628173828125, -0.0033245086669921875, 0.0182952880859375, -0.0137786865234375, 0.0243988037109375, 0.01493072509765625, 0.02716064453125, -0.005901336669921875, 0.04052734375, -0.022369384765625, -0.0218658447265625, -0.01282501220703125, 0.0167388916015625, -0.03955078125, 0.0160369873046875, 0.0101318359375, -0.0286102294921875, 0.0032787322998046875, 0.018402099609375, 0.0220947265625, -0.00434112548828125, 0.0254974365234375, 0.03558349609375, 0.0176849365234375, 0.01123809814453125 ]
4020101ee56f1bba497f413de155b7654ab4b207
Wordpress Stackexchange Q: Get posts by meta data OR title I have a working query that calls all my posts that have a certain meta value for one of two meta keys: $term = filter_var( $_GET['term'] ); $query = get_posts( [ 'post_type' => 'some_cpt_name', 'meta_query' => [ 'relation' => 'OR', [ 'key' => 'foo', 'value' => $term, 'compare' => 'LIKE', ], [ 'key' => 'bar', 'value' => $term, 'compare' => 'LIKE', ], ] ] ); I need to query all posts that have the $term as meta key "foo" or "bar" or as post title. Problem is how to add the post title as additional possible key? Q: How can I also check if the $term maybe is in the post_title? A: Ok, here's the final addition using the posts_clauses filter (and edit) as suggested from @scribu: function alter_posts_where_clause( $where ) { global $wpdb; $term = filter_var( trim( $_GET['term'] ), FILTER_SANITIZE_STRING, FILTER_NULL_ON_FAILURE ); if ( is_null( $term ) ) return $where; $term = $wpdb->esc_like( $term ); // Append to the WHERE clause: $where .= $wpdb->prepare( " OR {$wpdb->posts}.post_title LIKE '%s'", "%{$term}%" ); return $where; } add_filter( 'posts_where', 'alter_posts_where_clause' );
Q: Get posts by meta data OR title I have a working query that calls all my posts that have a certain meta value for one of two meta keys: $term = filter_var( $_GET['term'] ); $query = get_posts( [ 'post_type' => 'some_cpt_name', 'meta_query' => [ 'relation' => 'OR', [ 'key' => 'foo', 'value' => $term, 'compare' => 'LIKE', ], [ 'key' => 'bar', 'value' => $term, 'compare' => 'LIKE', ], ] ] ); I need to query all posts that have the $term as meta key "foo" or "bar" or as post title. Problem is how to add the post title as additional possible key? Q: How can I also check if the $term maybe is in the post_title? A: Ok, here's the final addition using the posts_clauses filter (and edit) as suggested from @scribu: function alter_posts_where_clause( $where ) { global $wpdb; $term = filter_var( trim( $_GET['term'] ), FILTER_SANITIZE_STRING, FILTER_NULL_ON_FAILURE ); if ( is_null( $term ) ) return $where; $term = $wpdb->esc_like( $term ); // Append to the WHERE clause: $where .= $wpdb->prepare( " OR {$wpdb->posts}.post_title LIKE '%s'", "%{$term}%" ); return $where; } add_filter( 'posts_where', 'alter_posts_where_clause' ); A: As with most questions involving OR clauses, the answer is the same: use a custom query or alter WP_Query using the 'posts_clauses' filter.
wordpress
{ "language": "en", "length": 211, "provenance": "stackexchange_00019.jsonl.gz:415650", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37402" }
[ 0.01617431640625, 0.02471923828125, 0.01169586181640625, 0.032196044921875, 0.0194244384765625, -0.02496337890625, 0.043365478515625, -0.05706787109375, 0.0361328125, 0.0281982421875, -0.056732177734375, -0.01183319091796875, 0.0009250640869140625, -0.01276397705078125, -0.032745361328125, -0.033660888671875, 0.006542205810546875, 0.0007367134094238281, 0.0264892578125, -0.027435302734375, 0.02001953125, -0.0242462158203125, 0.0386962890625, -0.03240966796875, 0.04595947265625, -0.08856201171875, 0.11004638671875, -0.020477294921875, 0.050262451171875, -0.0196380615234375, 0.05023193359375, -0.03192138671875, 0.00446319580078125, -0.00008493661880493164, 0.0195465087890625, 0.010833740234375, 0.0452880859375, -0.01116180419921875, 0.01300811767578125, 0.0281829833984375, 0.0241851806640625, -0.0085601806640625, -0.040252685546875, 0.048095703125, -0.0163116455078125, -0.06146240234375, 0.0298919677734375, -0.024566650390625, 0.026824951171875, 0.0115509033203125, 0.006504058837890625, -0.0019445419311523438, 0.01129913330078125, -0.0179595947265625, -0.01422882080078125, -0.00244140625, -0.016510009765625, -0.043701171875, 0.0166778564453125, -0.004878997802734375, -0.0034847259521484375, -0.029296875, 0.0228271484375, 0.0023593902587890625, -0.00261688232421875, 0.023712158203125, 0.00719451904296875, 0.0154876708984375, -0.0367431640625, -0.01031494140625, 0.01617431640625, -0.02880859375, 0.0104217529296875, -0.0098876953125, -0.015380859375, -0.01580810546875, -0.002727508544921875, -0.0211029052734375, 0.020843505859375, 0.009185791015625, 0.031158447265625, -0.01074981689453125, -0.01482391357421875, 0.0083160400390625, 0.006542205810546875, 0.018280029296875, -0.01174163818359375, -0.01375579833984375, -0.0181427001953125, -0.04364013671875, -0.01171875, -0.040008544921875, -0.06817626953125, 0.01204681396484375, 0.0158233642578125, -0.041534423828125, 0.01007080078125, 0.0301361083984375, -0.02886962890625, 0.0024547576904296875, -0.0208282470703125, -0.02618408203125, 0.00787353515625, -0.0236053466796875, 0.035888671875, 0.00429534912109375, -0.038970947265625, -0.018463134765625, 0.05548095703125, 0.050628662109375, 0.0137939453125, 0.00980377197265625, -0.025665283203125, 0.01751708984375, -0.0546875, 0.0283355712890625, -0.031890869140625, -0.037017822265625, -0.017974853515625, 0.0211944580078125, 0.018280029296875, 0.0185546875, 0.014739990234375, -0.03424072265625, 0.0304107666015625, 0.00862884521484375, -0.0399169921875, -0.01375579833984375, -0.06536865234375, 0.04876708984375, -0.01035308837890625, 0.0115966796875, 0.053741455078125, 0.034912109375, -0.0218658447265625, -0.03173828125, -0.004131317138671875, -0.01934814453125, -0.0171051025390625, -0.013824462890625, 0.017059326171875, -0.00946807861328125, 0.002643585205078125, -0.008514404296875, 0.0019702911376953125, -0.00396728515625, 0.0251007080078125, 0.01432037353515625, -0.0316162109375, -0.0234222412109375, -0.006847381591796875, 0.0288848876953125, 0.05743408203125, -0.0133819580078125, -0.034149169921875, 0.0155487060546875, 0.01187896728515625, -0.01134490966796875, -0.060455322265625, -0.0192718505859375, 0.04498291015625, -0.0106201171875, -0.0223541259765625, -0.0323486328125, -0.06787109375, 0.01294708251953125, -0.041168212890625, -0.01427459716796875, 0.008758544921875, 0.0176849365234375, 0.039093017578125, 0.0198211669921875, 0.00569915771484375, -0.00899505615234375, -0.0187530517578125, -0.035003662109375, -0.01369476318359375, 0.033843994140625, 0.015472412109375, -0.0304107666015625, -0.013336181640625, -0.0262451171875, 0.06243896484375, -0.017852783203125, -0.049560546875, 0.054840087890625, 0.01605224609375, 0.040130615234375, -0.003025054931640625, 0.0008940696716308594, 0.069580078125, 0.03875732421875, -0.039642333984375, 0.01003265380859375, 0.00518798828125, -0.042816162109375, -0.01122283935546875, -0.0347900390625, 0.0008578300476074219, 0.02587890625, 0.03619384765625, -0.006603240966796875, 0.005279541015625, -0.0310516357421875, -0.0797119140625, -0.0144805908203125, -0.034454345703125, 0.03656005859375, -0.01049041748046875, 0.02764892578125, 0.0175628662109375, 0.0091094970703125, -0.043975830078125, 0.0428466796875, 0.0009403228759765625, -0.01265716552734375, -0.01143646240234375, 0.00888824462890625, 0.0087738037109375, 0.003856658935546875, 0.0276641845703125, -0.01384735107421875, 0.006397247314453125, 0.012847900390625, 0.062286376953125, -0.002742767333984375, 0.0008678436279296875, -0.007476806640625, 0.056976318359375, 0.03253173828125, -0.0467529296875, -0.00016605854034423828, 0.0213775634765625, 0.0253448486328125, -0.01480865478515625, -0.00324249267578125, 0.01715087890625, -0.04400634765625, 0.0178680419921875, 0.041717529296875, 0.033294677734375, 0.058685302734375, 0.0114898681640625, 0.00403594970703125, 0.0474853515625, -0.0391845703125, 0.00804901123046875, -0.01229095458984375, 0.023895263671875, 0.057708740234375, -0.0179290771484375, -0.005771636962890625, 0.0257110595703125, -0.014190673828125, 0.00337982177734375, 0.0297698974609375, -0.021087646484375, 0.0171051025390625, -0.0201568603515625, 0.010772705078125, -0.0251312255859375, -0.01198577880859375, 0.0216827392578125, -0.006427764892578125, 0.0694580078125, -0.01436614990234375, 0.03521728515625, 0.0268707275390625, -0.0282135009765625, -0.011566162109375, 0.006214141845703125, -0.01165008544921875, 0.004001617431640625, 0.0161895751953125, -0.0190887451171875, 0.0129241943359375, -0.054412841796875, 0.02734375, 0.0239410400390625, -0.0033721923828125, -0.006381988525390625, 0.00554656982421875, -0.02313232421875, -0.01239013671875, 0.0029811859130859375, -0.0117645263671875, 0.00919342041015625, -0.005580902099609375, -0.00984954833984375, -0.00457000732421875, 0.0181732177734375, 0.030670166015625, -0.0017108917236328125, 0.041351318359375, -0.01033782958984375, 0.00026297569274902344, 0.022918701171875, -0.03753662109375, 0.03369140625, -0.0288848876953125, 0.035736083984375, 0.050689697265625, 0.007198333740234375, -0.0233306884765625, -0.005275726318359375, 0.01352691650390625, -0.035308837890625, 0.00600433349609375, -0.02178955078125, -0.022857666015625, -0.05694580078125, 0.008148193359375, 0.03204345703125, 0.037017822265625, 0.031829833984375, -0.02105712890625, 0.0225677490234375, 0.03857421875, -0.06243896484375, -0.09136962890625, -0.01751708984375, -0.026153564453125, -0.0172882080078125, -0.0077667236328125, -0.008636474609375, 0.0273284912109375, -0.023345947265625, -0.0082855224609375, -0.0014591217041015625, 0.03302001953125, -0.0894775390625, -0.0130615234375, -0.071044921875, 0.013885498046875, -0.03521728515625, 0.032012939453125, 0.005252838134765625, 0.052734375, 0.01129150390625, -0.0243988037109375, 0.01080322265625, 0.03369140625, -0.0209808349609375, -0.0081787109375, 0.0128173828125, -0.032257080078125, -0.003322601318359375, -0.0119171142578125, 0.04998779296875, 0.008819580078125, -0.01678466796875, 0.014739990234375, 0.00995635986328125, 0.04632568359375, 0.07177734375, -0.032501220703125, -0.0386962890625, 0.09527587890625, 0.058349609375, 0.017791748046875, -0.023284912109375, -0.013336181640625, -0.048248291015625, -0.0143585205078125, 0.004245758056640625, 0.02801513671875, -0.006183624267578125, 0.01166534423828125, 0.0401611328125, 0.01441192626953125, 0.0146331787109375, -0.00848388671875, 0.04364013671875, 0.0107574462890625, 0.04412841796875, -0.0440673828125, -0.01010894775390625, -0.0239715576171875, 0.032684326171875, -0.0004382133483886719, 0.03924560546875, 0.0245819091796875, -0.011627197265625, -0.0174560546875, -0.023101806640625, 0.055084228515625, 0.0065765380859375, 0.062744140625, -0.07110595703125, -0.06524658203125, -0.05865478515625, 0.08966064453125, -0.004314422607421875, -0.036163330078125, -0.0174102783203125, 0.00579833984375, -0.016143798828125, 0.0056304931640625, 0.002788543701171875, -0.0025272369384765625, -0.08074951171875, 0.010345458984375, -0.0196075439453125, -0.031829833984375, -0.033447265625, -0.0036602020263671875, -0.06927490234375, -0.029571533203125, 0.042938232421875, -0.043365478515625, 0.0230560302734375, 0.058807373046875, 0.0041351318359375, 0.020263671875, -0.034515380859375, -0.0279998779296875, -0.044830322265625, -0.01540374755859375, 0.032440185546875, 0.00736236572265625, -0.020263671875, 0.0010814666748046875, -0.0163421630859375, 0.0304107666015625, 0.03240966796875, -0.01343536376953125, 0.017120361328125, -0.02313232421875, 0.0295867919921875, 0.003124237060546875, -0.0010623931884765625, -0.035003662109375, -0.01155853271484375, -0.00415802001953125, -0.01358795166015625, 0.0191650390625, -0.0257720947265625, -0.015777587890625, -0.00275421142578125, -0.0208892822265625, -0.0206756591796875, -0.004718780517578125, -0.0102386474609375, 0.02398681640625, -0.0168304443359375, -0.0106353759765625, -0.0159454345703125, -0.056243896484375, 0.06829833984375, 0.05126953125, -0.014129638671875, -0.01445770263671875, 0.068115234375, 0.01056671142578125, -0.05853271484375, -0.032196044921875, -0.016998291015625, 0.013885498046875, -0.0318603515625, 0.0262451171875, 0.009368896484375, -0.0170440673828125, 0.041900634765625, -0.01812744140625, 0.020965576171875, -0.01385498046875, 0.025238037109375, -0.000843048095703125, -0.0101470947265625, 0.0230255126953125, -0.00508880615234375, 0.0012121200561523438, 0.04852294921875, 0.003192901611328125, -0.03594970703125, -0.009765625, 0.044158935546875, -0.0007457733154296875, 0.0114593505859375, -0.028076171875, -0.01503753662109375, 0.004711151123046875, 0.0224761962890625, 0.007251739501953125, -0.016815185546875, 0.0182037353515625, -0.020538330078125, 0.014556884765625, -0.0218048095703125, -0.00963592529296875, 0.054534912109375, -0.0440673828125, 0.0197906494140625, -0.0196533203125, -0.06072998046875, -0.03778076171875, 0.005344390869140625, 0.040740966796875, -0.01340484619140625, -0.057769775390625, 0.0243682861328125, -0.01120758056640625, 0.040618896484375, 0.03582763671875, 0.0289154052734375, 0.040802001953125, 0.0217437744140625, 0.0004296302795410156, -0.00830841064453125, -0.003246307373046875, 0.0203094482421875, -0.038970947265625, 0.04827880859375, 0.0132904052734375, 0.0016622543334960938, -0.02679443359375, 0.1226806640625, -0.0291748046875, 0.06268310546875, -0.020263671875, 0.033538818359375, 0.027496337890625, 0.040679931640625, 0.0129241943359375, -0.03326416015625, 0.00536346435546875, 0.04522705078125, 0.008819580078125, -0.0201263427734375, -0.04217529296875, 0.00982666015625, 0.01120758056640625, -0.0321044921875, 0.00638580322265625, 0.03466796875, 0.019073486328125, -0.0330810546875, 0.0240631103515625, 0.033721923828125, -0.00788116455078125, -0.03717041015625, -0.0300445556640625, 0.0164031982421875, 0.027618408203125, -0.009307861328125, 0.0007271766662597656, -0.026947021484375, 0.041412353515625, -0.045928955078125, 0.0160369873046875, -0.000060439109802246094, 0.0005636215209960938, -0.0182037353515625, -0.01403045654296875, -0.009033203125, 0.0300445556640625, -0.000614166259765625, -0.0244293212890625, -0.0391845703125, 0.056243896484375, -0.00701141357421875, 0.0240478515625, -0.0338134765625, 0.006771087646484375, 0.0292205810546875, 0.007472991943359375, 0.046875, 0.0003521442413330078, 0.0028781890869140625, 0.000701904296875, -0.061126708984375, -0.0258026123046875, -0.0152587890625, -0.032684326171875, -0.02471923828125, -0.0160064697265625, -0.007904052734375, 0.034637451171875, -0.005340576171875, -0.014923095703125, 0.0081787109375, -0.003826141357421875, -0.00293731689453125, 0.0266571044921875, -0.002552032470703125, 0.058441162109375, -0.006473541259765625, 0.041412353515625, 0.0229949951171875, 0.009613037109375, -0.05181884765625, -0.01403045654296875, 0.0013561248779296875, -0.10894775390625, -0.028656005859375, -0.027130126953125, -0.007366180419921875, 0.0677490234375, 0.03155517578125, 0.005016326904296875, 0.047119140625, 0.0045166015625, 0.0080718994140625, -0.004581451416015625, -0.010406494140625, -0.0224609375, 0.0273590087890625, 0.04913330078125, -0.0224609375, 0.01390838623046875, -0.020782470703125, -0.0184478759765625, 0.0218353271484375, -0.0191802978515625, 0.004642486572265625, 0.04132080078125, -0.03240966796875, 0.031463623046875, 0.054229736328125, 0.0325927734375, 0.031219482421875, -0.0117645263671875, 0.0174407958984375, -0.00439453125, -0.024932861328125, 0.01264190673828125, 0.019439697265625, 0.043365478515625, -0.02362060546875, -0.015472412109375, 0.02203369140625, -0.031585693359375, 0.004978179931640625, 0.026123046875, 0.06402587890625, -0.045440673828125, 0.005146026611328125, 0.0499267578125, 0.02227783203125, -0.0035991668701171875, 0.019073486328125, -0.019683837890625, -0.0489501953125, -0.0234527587890625, -0.01010894775390625, -0.0265960693359375, -0.0255889892578125, 0.00434112548828125, -0.001708984375, -0.027099609375, 0.005870819091796875, -0.0015964508056640625, -0.021087646484375, -0.000423431396484375, 0.0217742919921875, -0.0219573974609375, -0.01439666748046875, -0.01177978515625, 0.02044677734375, -0.0303192138671875, -0.0853271484375, 0.01410675048828125, -0.0238494873046875, -0.01140594482421875, -0.023773193359375, 0.04522705078125, 0.032257080078125, 0.061798095703125, 0.00666046142578125, -0.01026153564453125, 0.042327880859375, -0.0132904052734375, -0.063232421875, -0.02532958984375, -0.0164337158203125, 0.049285888671875, 0.0074310302734375, 0.039794921875, -0.0066375732421875, -0.0182342529296875, -0.0023097991943359375, -0.052398681640625, 0.0177001953125, 0.00800323486328125, -0.019500732421875, 0.00946807861328125, 0.021209716796875, 0.0015802383422851562, 0.02935791015625, -0.005702972412109375, -0.036407470703125, -0.013275146484375, 0.0097808837890625, -0.045135498046875, -0.0198516845703125, 0.0273284912109375, -0.037841796875, 0.0703125, 0.0166473388671875, 0.0023651123046875, 0.040985107421875, 0.028900146484375, -0.05322265625, 0.00888824462890625, -0.042572021484375, 0.06829833984375, -0.016754150390625, 0.049530029296875, -0.084228515625, -0.0169525146484375, 0.017547607421875, 0.04534912109375, 0.06158447265625, 0.00836944580078125, -0.0537109375, -0.037139892578125, 0.040802001953125, 0.059783935546875, 0.0165557861328125, 0.04248046875, 0.00033855438232421875, 0.06585693359375, 0.0626220703125, -0.047607421875, 0.038299560546875, -0.006000518798828125, -0.019317626953125, 0.0251007080078125, 0.00768280029296875, 0.0026397705078125, -0.015228271484375, 0.0047607421875, 0.0306396484375, -0.0198974609375, -0.01061248779296875, -0.0095062255859375, 0.0341796875, 0.007297515869140625, 0.03668212890625, -0.057647705078125, -0.0001577138900756836, -0.0249786376953125, 0.04119873046875, 0.016845703125, 0.024200439453125, 0.05267333984375, 0.01532745361328125, 0.04852294921875, -0.004150390625, 0.00980377197265625, -0.005191802978515625, 0.0130462646484375, 0.06976318359375, 0.0184478759765625, -0.00200653076171875, -0.05596923828125, 0.04412841796875, 0.03973388671875, 0.0762939453125, -0.0709228515625, -0.042633056640625, -0.0024700164794921875, -0.02545166015625, -0.00943756103515625, -0.0124053955078125, -0.0242462158203125, 0.0626220703125, 0.0506591796875, -0.05572509765625, 0.0399169921875, 0.016143798828125, 0.0142974853515625, -0.033416748046875, -0.0269622802734375, -0.017120361328125, 0.0389404296875, -0.03558349609375, 0.0311431884765625, 0.02996826171875, 0.0362548828125, 0.003993988037109375, 0.0253143310546875, 0.0068206787109375, -0.005428314208984375, -0.0175323486328125, 0.03851318359375, -0.00024259090423583984, 0.0016508102416992188, -0.04705810546875, -0.05877685546875, 0.01239013671875, 0.03375244140625, 0.04150390625, 0.0193023681640625, 0.056884765625, 0.021026611328125, -0.042572021484375, 0.007190704345703125, 0.0024204254150390625, -0.0294647216796875, -0.0032978057861328125, -0.004512786865234375, 0.01507568359375, 0.02142333984375, 0.005275726318359375, -0.015167236328125, 0.0692138671875, 0.007671356201171875, 0.0224151611328125, 0.050140380859375, 0.0092926025390625, 0.026153564453125, 0.0138397216796875, -0.0004925727844238281, -0.00264739990234375, 0.0284423828125, -0.063232421875, -0.00678253173828125, -0.0215301513671875, -0.06585693359375, 0.0002593994140625, 0.0384521484375, 0.00879669189453125, -0.0214691162109375, -0.01265716552734375, -0.003208160400390625, 0.008880615234375, 0.017578125, -0.0130157470703125, 0.0259552001953125, 0.034027099609375, -0.000518798828125, -0.01561737060546875, 0.00856781005859375, 0.040374755859375, -0.0161285400390625, -0.01727294921875, 0.012969970703125, 0.01445770263671875, -0.00620269775390625, -0.0265045166015625, 0.015045166015625, -0.019561767578125, -0.01515960693359375, 0.00885772705078125, 0.00637054443359375, 0.00738525390625, -0.007556915283203125, 0.049346923828125, -0.01042938232421875, 0.051910400390625, -0.0201568603515625, -0.006999969482421875, -0.045379638671875, 0.033172607421875, -0.0258941650390625, 0.0129547119140625, -0.0279541015625, 0.01131439208984375, -0.05120849609375, -0.055877685546875, 0.07568359375, 0.042877197265625, 0.039398193359375, 0.00482177734375, 0.01410675048828125, -0.00927734375, 0.04058837890625, -0.016143798828125, 0.08050537109375, 0.04144287109375, -0.06622314453125, 0.016937255859375, -0.01538848876953125, -0.012481689453125, 0.0038738250732421875, 0.0308074951171875, -0.035003662109375, 0.01043701171875, -0.00763702392578125, -0.026031494140625, -0.003498077392578125, 0.0259552001953125, -0.0004229545593261719, 0.0037899017333984375, 0.0014934539794921875, -0.01473236083984375, -0.0372314453125, 0.004154205322265625, -0.0209503173828125, -0.0208587646484375, -0.0282135009765625, -0.0022563934326171875, -0.0215606689453125, -0.05352783203125, -0.037506103515625, 0.0172882080078125, 0.037750244140625, -0.006114959716796875, -0.035400390625, 0.01323699951171875, -0.036712646484375, 0.01715087890625, 0.0165557861328125, -0.0428466796875, 0.01187896728515625, 0.0576171875, 0.012481689453125, -0.005950927734375, -0.025970458984375, -0.0021953582763671875, -0.016998291015625, 0.003742218017578125, 0.01849365234375, -0.00399017333984375, -0.050537109375, 0.0165252685546875, -0.01334381103515625, 0.05023193359375, 0.0211334228515625, -0.01265716552734375, 0.0035800933837890625, 0.013946533203125, -0.037872314453125, -0.06561279296875, 0.0286712646484375, -0.0537109375, -0.01904296875, -0.00156402587890625, 0.0031909942626953125, 0.02996826171875, -0.0307159423828125, -0.10791015625, 0.060791015625, -0.02734375, -0.033721923828125, -0.049468994140625, -0.0374755859375, 0.006763458251953125, 0.037872314453125, -0.00970458984375, -0.0194854736328125, -0.07659912109375, 0.017852783203125, 0.017059326171875, -0.00971221923828125, 0.03509521484375, 0.0005059242248535156, -0.06475830078125, 0.00783538818359375, -0.01146697998046875, 0.0008630752563476562, -0.0007605552673339844, 0.002231597900390625, 0.0004329681396484375, 0.0243682861328125, -0.03729248046875, -0.047882080078125, -0.01045989990234375, -0.0027217864990234375, 0.0169830322265625, -0.05596923828125, -0.044036865234375, -0.00982666015625, 0.082275390625, 0.025665283203125, 0.03594970703125, -0.059478759765625, -0.00183868408203125, -0.051971435546875, 0.0031185150146484375, -0.02001953125, -0.00260162353515625, -0.04925537109375, -0.019134521484375, 0.01369476318359375, -0.0193634033203125, -0.01334381103515625, 0.00982666015625, -0.0226593017578125, -0.01160430908203125, -0.004138946533203125, -0.030181884765625, -0.004673004150390625, -0.01543426513671875, 0.060821533203125, -0.047027587890625, -0.01161956787109375, 0.01006317138671875, 0.0286712646484375, 0.0070343017578125, -0.0204315185546875, -0.009613037109375, -0.0012035369873046875, 0.025726318359375, 0.0114898681640625, 0.01323699951171875, -0.04266357421875, 0.01090240478515625, 0.01258087158203125, -0.046417236328125, 0.0017480850219726562, 0.0267181396484375, -0.00848388671875, -0.056732177734375, 0.01483154296875, 0.0306549072265625, 0.0242919921875, -0.00131988525390625, 0.03118896484375, 0.02508544921875, 0.012451171875, 0.02593994140625, -0.018218994140625, 0.059600830078125, -0.0194244384765625, -0.0005154609680175781, -0.02215576171875, -0.039642333984375, -0.044281005859375, -0.0210723876953125, -0.0126953125, -0.0232391357421875, 0.01508331298828125 ]
3cd53b2edf799e46b153dd19d32287acf43dd68a
Wordpress Stackexchange Q: ".#[random-char-string]" being inserted at end of URLs I've seen this on a couple of sites now and I'm having trouble finding information about (probably because it's awkward to describe): All internal URLs like this for example: http://www.domain.com/section/ Are rewriting themselves to something like this: http://www.domain.com/section/#.TvuV_pim9PI Does anyone know what causes this? I'm running WP 3.3 and .htaccess is just the default: # 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 My Permalink settings are set to Post name and nothing in Category and Tag base. A: Have a read of the following thread on the WordPress forum, apparently the AddThis plugin is the reason the hash tag is been appended to the URL. http://wordpress.org/support/topic/random-hashtag-strings-added-to-url-in-firefox
Q: ".#[random-char-string]" being inserted at end of URLs I've seen this on a couple of sites now and I'm having trouble finding information about (probably because it's awkward to describe): All internal URLs like this for example: http://www.domain.com/section/ Are rewriting themselves to something like this: http://www.domain.com/section/#.TvuV_pim9PI Does anyone know what causes this? I'm running WP 3.3 and .htaccess is just the default: # 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 My Permalink settings are set to Post name and nothing in Category and Tag base. A: Have a read of the following thread on the WordPress forum, apparently the AddThis plugin is the reason the hash tag is been appended to the URL. http://wordpress.org/support/topic/random-hashtag-strings-added-to-url-in-firefox
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:415668", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37454" }
[ 0.07537841796875, -0.0114288330078125, 0.0203399658203125, -0.01275634765625, 0.00855255126953125, -0.0302276611328125, 0.0440673828125, -0.04278564453125, -0.018035888671875, 0.00762939453125, -0.018218994140625, 0.00714874267578125, 0.006908416748046875, -0.033172607421875, 0.041259765625, -0.005153656005859375, 0.0174407958984375, 0.01294708251953125, 0.0274200439453125, -0.002811431884765625, -0.015411376953125, 0.002254486083984375, 0.0269317626953125, -0.031829833984375, 0.0025959014892578125, 0.0109710693359375, 0.0985107421875, -0.042938232421875, 0.02777099609375, -0.0228424072265625, 0.00934600830078125, -0.011383056640625, 0.0310821533203125, 0.01525115966796875, -0.0210723876953125, -0.006622314453125, 0.00738525390625, -0.0023136138916015625, 0.00594329833984375, 0.0183258056640625, 0.02508544921875, -0.01554107666015625, 0.067138671875, 0.044830322265625, 0.01910400390625, -0.05487060546875, 0.0352783203125, -0.073974609375, 0.016510009765625, -0.0197296142578125, -0.00013840198516845703, 0.03936767578125, 0.01519775390625, -0.01812744140625, -0.0110321044921875, 0.0001385211944580078, 0.0097503662109375, -0.01519775390625, 0.0183563232421875, 0.0228424072265625, -0.008209228515625, 0.0186004638671875, 0.00801849365234375, -0.01343536376953125, -0.018585205078125, -0.0404052734375, 0.03106689453125, 0.016510009765625, -0.0020294189453125, -0.01526641845703125, 0.04669189453125, 0.03076171875, -0.006984710693359375, -0.03851318359375, 0.004924774169921875, 0.0253448486328125, -0.0059051513671875, -0.0012998580932617188, 0.006099700927734375, 0.0147247314453125, 0.00626373291015625, -0.04376220703125, 0.0130157470703125, -0.0233612060546875, -0.00771331787109375, -0.015411376953125, 0.0004265308380126953, 0.003040313720703125, 0.0095672607421875, -0.01168060302734375, -0.01702880859375, 0.0015802383422851562, 0.008148193359375, 0.01324462890625, -0.019927978515625, -0.0188751220703125, 0.0294189453125, 0.034912109375, 0.01427459716796875, 0.0218048095703125, 0.03363037109375, -0.050628662109375, 0.05670166015625, -0.057769775390625, -0.01568603515625, 0.056182861328125, 0.03521728515625, 0.0216064453125, -0.0108489990234375, -0.0025634765625, -0.01140594482421875, 0.004779815673828125, -0.01044464111328125, 0.01082611083984375, -0.047027587890625, -0.0200653076171875, -0.05535888671875, -0.03375244140625, -0.0222015380859375, -0.032073974609375, -0.0266265869140625, 0.01251220703125, -0.0316162109375, 0.015411376953125, -0.0059356689453125, 0.0067138671875, 0.0277862548828125, -0.032684326171875, -0.055938720703125, 0.040130615234375, -0.041046142578125, 0.03302001953125, 0.0679931640625, 0.00658416748046875, -0.01934814453125, -0.031341552734375, 0.01462554931640625, -0.03375244140625, -0.0074462890625, 0.022003173828125, -0.039093017578125, -0.02557373046875, 0.031585693359375, -0.0295867919921875, 0.039031982421875, 0.057220458984375, 0.005924224853515625, -0.01495361328125, 0.0250701904296875, -0.0031108856201171875, -0.007343292236328125, -0.040435791015625, 0.06439208984375, -0.014312744140625, -0.038665771484375, -0.049072265625, 0.036529541015625, -0.04962158203125, -0.03228759765625, -0.052764892578125, 0.00274658203125, -0.03460693359375, -0.00010925531387329102, -0.009063720703125, -0.0433349609375, 0.054656982421875, -0.016632080078125, -0.0171051025390625, 0.00897979736328125, 0.0103912353515625, -0.01474761962890625, -0.01497650146484375, -0.021209716796875, 0.018157958984375, 0.0019464492797851562, 0.036651611328125, 0.0548095703125, 0.0176544189453125, -0.004520416259765625, 0.08050537109375, 0.006450653076171875, -0.034149169921875, 0.05816650390625, -0.06182861328125, -0.07183837890625, 0.05584716796875, 0.008575439453125, 0.11212158203125, 0.03076171875, 0.017303466796875, 0.0386962890625, -0.01230621337890625, -0.03643798828125, 0.043731689453125, 0.0234222412109375, 0.0243377685546875, -0.059967041015625, 0.0235595703125, -0.0269622802734375, -0.07049560546875, -0.01123809814453125, 0.0287628173828125, -0.004772186279296875, 0.03729248046875, -0.040924072265625, 0.047149658203125, -0.04595947265625, 0.036651611328125, -0.0147552490234375, 0.0280914306640625, 0.024322509765625, -0.0217742919921875, -0.016204833984375, 0.0004642009735107422, -0.01361846923828125, -0.0022563934326171875, 0.003406524658203125, 0.039642333984375, 0.0206756591796875, 0.0286102294921875, 0.01108551025390625, -0.0038509368896484375, 0.0006136894226074219, -0.02667236328125, 0.05535888671875, -0.037353515625, -0.025054931640625, -0.04913330078125, 0.0150299072265625, -0.0118408203125, -0.059722900390625, 0.071533203125, 0.0099639892578125, 0.03436279296875, -0.0439453125, -0.0197601318359375, -0.06719970703125, -0.033416748046875, 0.0023403167724609375, 0.061279296875, 0.050445556640625, 0.00257110595703125, 0.01442718505859375, -0.0164947509765625, 0.022369384765625, -0.0192108154296875, 0.037078857421875, -0.04046630859375, 0.01904296875, 0.05780029296875, 0.03643798828125, 0.01108551025390625, -0.00978851318359375, -0.0008759498596191406, 0.0081329345703125, 0.007518768310546875, -0.0262908935546875, -0.0372314453125, -0.0214385986328125, 0.01352691650390625, 0.0114593505859375, -0.02471923828125, -0.013885498046875, -0.003971099853515625, 0.02374267578125, -0.00913238525390625, 0.00841522216796875, 0.01253509521484375, 0.01441192626953125, -0.0177764892578125, -0.0068817138671875, -0.045928955078125, -0.00507354736328125, 0.0270538330078125, 0.05621337890625, -0.004978179931640625, -0.034576416015625, -0.000446319580078125, -0.014892578125, 0.0156097412109375, -0.01812744140625, -0.01137542724609375, -0.029083251953125, -0.005245208740234375, -0.009857177734375, -0.05206298828125, -0.005458831787109375, -0.004852294921875, -0.006031036376953125, -0.004425048828125, 0.02532958984375, 0.035491943359375, -0.00101470947265625, 0.014923095703125, -0.0082550048828125, -0.0015287399291992188, 0.0029850006103515625, -0.0093841552734375, 0.045257568359375, -0.0034656524658203125, 0.0021381378173828125, 0.061370849609375, -0.01271820068359375, 0.038604736328125, 0.015838623046875, 0.01178741455078125, 0.0179595947265625, 0.011962890625, -0.01141357421875, 0.00035190582275390625, -0.061126708984375, -0.0426025390625, 0.0504150390625, 0.042755126953125, 0.0413818359375, -0.0263824462890625, 0.020294189453125, 0.05645751953125, -0.0635986328125, -0.09857177734375, 0.0131683349609375, 0.00116729736328125, -0.039031982421875, 0.044921875, -0.01465606689453125, 0.0028095245361328125, 0.049102783203125, -0.0106353759765625, -0.037384033203125, -0.04840087890625, -0.040557861328125, -0.10455322265625, -0.0679931640625, -0.0198516845703125, -0.0050811767578125, -0.0009832382202148438, 0.00777435302734375, -0.0159912109375, 0.005664825439453125, 0.009521484375, 0.03631591796875, -0.0157318115234375, -0.016143798828125, -0.0325927734375, -0.0193328857421875, -0.0207061767578125, 0.0109710693359375, -0.0036334991455078125, 0.05364990234375, 0.040374755859375, -0.01995849609375, 0.022918701171875, -0.01763916015625, -0.00986480712890625, -0.0004658699035644531, -0.0165863037109375, 0.02490234375, -0.0011119842529296875, 0.01160430908203125, -0.03070068359375, -0.020233154296875, 0.0017900466918945312, -0.041046142578125, 0.01558685302734375, 0.006687164306640625, -0.0237884521484375, 0.006328582763671875, -0.005779266357421875, 0.0115509033203125, -0.021575927734375, 0.0302581787109375, -0.04345703125, 0.036102294921875, -0.00923919677734375, 0.006381988525390625, -0.053375244140625, 0.01386260986328125, -0.02496337890625, 0.020904541015625, -0.0125274658203125, -0.005481719970703125, -0.0126495361328125, 0.0005698204040527344, -0.0308380126953125, 0.02398681640625, 0.01496124267578125, -0.052520751953125, 0.033203125, -0.032073974609375, -0.006458282470703125, -0.03741455078125, 0.035491943359375, -0.03411865234375, -0.008392333984375, -0.057281494140625, 0.02337646484375, -0.036407470703125, -0.11444091796875, -0.019378662109375, -0.01190185546875, -0.061370849609375, 0.0184173583984375, -0.00787353515625, -0.00472259521484375, -0.0205078125, 0.00339508056640625, -0.0134124755859375, -0.03277587890625, 0.01136016845703125, -0.02410888671875, -0.0138092041015625, 0.0193634033203125, 0.0035266876220703125, -0.0184478759765625, -0.002437591552734375, -0.045074462890625, -0.046234130859375, -0.017730712890625, -0.001041412353515625, 0.0139312744140625, 0.0233001708984375, -0.0960693359375, 0.00823211669921875, 0.039337158203125, 0.0211029052734375, -0.01558685302734375, 0.041046142578125, 0.00494384765625, 0.021759033203125, 0.0270843505859375, 0.03369140625, -0.0162353515625, 0.00876617431640625, 0.0220184326171875, -0.055633544921875, 0.005664825439453125, -0.00585174560546875, -0.02081298828125, 0.07305908203125, -0.06097412109375, -0.053253173828125, -0.024658203125, 0.0110931396484375, 0.0306396484375, 0.0076446533203125, 0.0035247802734375, -0.021636962890625, -0.049652099609375, -0.00864410400390625, 0.0052337646484375, -0.00543975830078125, -0.0020198822021484375, 0.0215301513671875, 0.0282440185546875, -0.0160064697265625, 0.043701171875, 0.010498046875, 0.028076171875, 0.0086822509765625, 0.0452880859375, 0.0164642333984375, 0.01007080078125, 0.023956298828125, -0.0023193359375, 0.046966552734375, -0.01238250732421875, 0.012237548828125, -0.0211181640625, -0.0115814208984375, 0.023773193359375, -0.00402069091796875, -0.02685546875, 0.04180908203125, -0.0135040283203125, 0.01070404052734375, -0.015777587890625, 0.0084228515625, 0.006145477294921875, -0.025360107421875, -0.033782958984375, -0.07794189453125, 0.032470703125, 0.0027923583984375, 0.00432586669921875, -0.007511138916015625, 0.00914764404296875, 0.03106689453125, -0.01528167724609375, -0.031890869140625, -0.012664794921875, -0.00972747802734375, 0.01727294921875, 0.006103515625, -0.01450347900390625, -0.006725311279296875, -0.040802001953125, 0.0054931640625, 0.0296173095703125, 0.0240020751953125, 0.01557159423828125, -0.06402587890625, 0.0012922286987304688, -0.0184783935546875, -0.030426025390625, 0.036285400390625, -0.0011777877807617188, -0.054046630859375, 0.019744873046875, 0.029388427734375, -0.0145721435546875, -0.0318603515625, 0.004467010498046875, 0.03125, -0.0174407958984375, 0.009490966796875, 0.0213775634765625, 0.04541015625, -0.0200653076171875, 0.03662109375, -0.0068817138671875, -0.018768310546875, -0.004146575927734375, 0.0254364013671875, 0.041778564453125, -0.036834716796875, 0.0132598876953125, -0.0148773193359375, 0.034759521484375, -0.054534912109375, -0.007740020751953125, 0.056915283203125, 0.0780029296875, -0.035919189453125, -0.042510986328125, -0.00276947021484375, -0.041412353515625, -0.0023212432861328125, 0.0257110595703125, -0.026275634765625, -0.015869140625, -0.0291900634765625, -0.032012939453125, 0.03387451171875, -0.0126190185546875, -0.0184173583984375, 0.005565643310546875, -0.0189361572265625, 0.0040740966796875, 0.0655517578125, -0.033660888671875, -0.01715087890625, -0.02960205078125, -0.0008282661437988281, -0.0093841552734375, -0.0157470703125, -0.01422119140625, -0.0285797119140625, -0.00916290283203125, -0.0004267692565917969, 0.0177001953125, 0.007274627685546875, 0.031890869140625, -0.016265869140625, -0.0206451416015625, 0.07415771484375, -0.006656646728515625, 0.03887939453125, -0.01404571533203125, -0.034088134765625, 0.01255035400390625, -0.05609130859375, 0.003154754638671875, 0.006465911865234375, -0.028411865234375, -0.0081329345703125, -0.032257080078125, 0.00820159912109375, 0.01152801513671875, -0.014007568359375, -0.0199432373046875, -0.039276123046875, 0.018890380859375, 0.036102294921875, 0.039215087890625, -0.014495849609375, -0.0028820037841796875, -0.0032253265380859375, 0.0184478759765625, -0.02276611328125, -0.01044464111328125, 0.030487060546875, -0.033416748046875, 0.049407958984375, -0.0036983489990234375, -0.042327880859375, -0.039825439453125, -0.04351806640625, -0.04443359375, 0.037933349609375, -0.029144287109375, -0.00853729248046875, 0.002773284912109375, 0.0175933837890625, -0.0008754730224609375, 0.0163116455078125, 0.01244354248046875, -0.036285400390625, 0.075927734375, 0.01690673828125, 0.027618408203125, -0.0089569091796875, -0.004283905029296875, -0.03619384765625, 0.007068634033203125, -0.017730712890625, -0.023529052734375, -0.039276123046875, 0.007049560546875, 0.0860595703125, 0.062103271484375, 0.082763671875, -0.00302886962890625, 0.05535888671875, 0.0413818359375, -0.004344940185546875, 0.02874755859375, 0.016357421875, 0.034698486328125, -0.0116729736328125, 0.002300262451171875, 0.01226806640625, -0.01454925537109375, 0.039703369140625, 0.046844482421875, 0.04046630859375, -0.0751953125, 0.0141143798828125, -0.043212890625, -0.033721923828125, 0.06622314453125, 0.022247314453125, 0.011871337890625, -0.00305938720703125, -0.0228424072265625, 0.004627227783203125, -0.0177764892578125, -0.0014810562133789062, 0.027435302734375, 0.005611419677734375, -0.030609130859375, 0.00974273681640625, -0.01605224609375, -0.0134735107421875, -0.0311279296875, -0.01068878173828125, -0.023681640625, -0.0298004150390625, -0.0106658935546875, 0.025634765625, -0.015106201171875, 0.00022208690643310547, 0.07318115234375, -0.00995635986328125, 0.036102294921875, 0.0018463134765625, 0.0031890869140625, 0.029022216796875, 0.02105712890625, -0.00888824462890625, -0.012847900390625, -0.003337860107421875, -0.0167999267578125, 0.062042236328125, -0.00782012939453125, 0.005405426025390625, -0.0323486328125, -0.006969451904296875, -0.02056884765625, -0.00974273681640625, -0.0204315185546875, -0.0158233642578125, -0.007415771484375, 0.055694580078125, -0.059722900390625, -0.001194000244140625, 0.037750244140625, -0.00788116455078125, -0.00913238525390625, -0.0192413330078125, -0.0250701904296875, -0.0506591796875, -0.01200103759765625, -0.0172271728515625, -0.0272979736328125, 0.0018205642700195312, -0.04071044921875, -0.042755126953125, 0.07012939453125, 0.01531982421875, 0.0012836456298828125, 0.01971435546875, 0.030609130859375, -0.02215576171875, 0.00360870361328125, -0.031646728515625, 0.04327392578125, -0.0104522705078125, 0.04364013671875, -0.0625, -0.00276947021484375, 0.01447296142578125, 0.021392822265625, 0.035125732421875, 0.0224456787109375, -0.03033447265625, -0.00972747802734375, 0.01560211181640625, 0.0231475830078125, 0.0007023811340332031, 0.043304443359375, 0.0218048095703125, -0.01070404052734375, 0.037384033203125, 0.0041046142578125, 0.025634765625, -0.00696563720703125, 0.0050048828125, 0.042205810546875, -0.0023860931396484375, -0.0165252685546875, 0.01213836669921875, 0.029449462890625, -0.06854248046875, 0.0212554931640625, 0.045928955078125, 0.0082244873046875, 0.02667236328125, 0.01523590087890625, 0.046661376953125, -0.05340576171875, -0.05743408203125, -0.01477813720703125, 0.057647705078125, 0.021575927734375, 0.047088623046875, 0.034332275390625, 0.002994537353515625, 0.044769287109375, 0.005733489990234375, 0.018280029296875, 0.01454925537109375, 0.0040740966796875, 0.05377197265625, 0.0204620361328125, 0.020477294921875, -0.06243896484375, -0.0189056396484375, 0.04205322265625, 0.0985107421875, -0.05865478515625, -0.03607177734375, 0.0008721351623535156, -0.0060272216796875, 0.0224456787109375, -0.0089874267578125, 0.0341796875, -0.0224456787109375, -0.0247650146484375, 0.002094268798828125, -0.01190185546875, 0.034271240234375, 0.042572021484375, 0.02978515625, 0.042999267578125, -0.046142578125, -0.038909912109375, -0.03985595703125, 0.0185546875, 0.0016450881958007812, 0.0300445556640625, 0.0288848876953125, 0.05267333984375, 0.01117706298828125, -0.0164337158203125, -0.00803375244140625, 0.0091552734375, 0.032806396484375, -0.00018465518951416016, -0.01715087890625, -0.0165557861328125, 0.05889892578125, 0.0201416015625, 0.0175018310546875, 0.0284576416015625, 0.038787841796875, -0.002094268798828125, -0.0175323486328125, 0.0119476318359375, 0.0006384849548339844, -0.0304412841796875, 0.007808685302734375, -0.036102294921875, 0.0401611328125, 0.036407470703125, 0.0244903564453125, -0.0038547515869140625, -0.003360748291015625, 0.07452392578125, -0.007175445556640625, -0.00864410400390625, 0.0063018798828125, -0.007537841796875, 0.036773681640625, 0.01474761962890625, 0.004398345947265625, 0.03033447265625, -0.03167724609375, 0.00910186767578125, -0.001079559326171875, -0.0843505859375, 0.021942138671875, 0.0465087890625, -0.0033702850341796875, -0.0052032470703125, -0.00829315185546875, -0.007678985595703125, 0.0086822509765625, -0.00998687744140625, 0.0034618377685546875, 0.00734710693359375, 0.01120758056640625, -0.006572723388671875, -0.05126953125, -0.0046539306640625, 0.004581451416015625, -0.00934600830078125, -0.0118560791015625, 0.07684326171875, -0.004909515380859375, -0.0220794677734375, -0.005290985107421875, -0.0311126708984375, 0.0211029052734375, 0.00017309188842773438, 0.0022487640380859375, 0.01546478271484375, 0.01094818115234375, -0.0172882080078125, -0.12347412109375, 0.0147552490234375, 0.021514892578125, 0.0185546875, 0.050262451171875, -0.018463134765625, 0.0178375244140625, -0.0138397216796875, 0.063720703125, -0.0150146484375, -0.055511474609375, -0.04486083984375, 0.00016498565673828125, 0.02459716796875, 0.0311737060546875, -0.0254974365234375, 0.060302734375, 0.0188140869140625, 0.0009360313415527344, 0.00984954833984375, -0.05255126953125, 0.0260162353515625, 0.0254974365234375, 0.00922393798828125, -0.04058837890625, 0.01983642578125, -0.0272674560546875, 0.0127105712890625, -0.01438140869140625, 0.068359375, -0.000621795654296875, -0.04638671875, -0.0223388671875, 0.031402587890625, 0.0511474609375, 0.01369476318359375, 0.0482177734375, -0.05072021484375, 0.005596160888671875, 0.03900146484375, 0.0010671615600585938, -0.021759033203125, -0.015777587890625, -0.012481689453125, 0.00583648681640625, -0.007419586181640625, -0.00913238525390625, -0.035308837890625, 0.01389312744140625, 0.0275726318359375, 0.00014781951904296875, -0.0594482421875, 0.030487060546875, -0.0206298828125, 0.0623779296875, -0.032928466796875, -0.0084075927734375, -0.01342010498046875, 0.009918212890625, -0.032684326171875, -0.07470703125, -0.041290283203125, 0.0672607421875, -0.048828125, 0.0146636962890625, 0.0518798828125, -0.00074005126953125, -0.0118865966796875, -0.0372314453125, -0.007480621337890625, 0.029876708984375, -0.0443115234375, -0.0171051025390625, 0.0178680419921875, 0.007648468017578125, -0.046905517578125, -0.023956298828125, 0.0100555419921875, -0.0285186767578125, 0.00687408447265625, 0.052093505859375, -0.0291595458984375, -0.01044464111328125, -0.04718017578125, -0.06781005859375, 0.0158538818359375, 0.02691650390625, -0.050872802734375, -0.0164642333984375, -0.0193634033203125, -0.022857666015625, 0.0186767578125, -0.00917816162109375, -0.01020050048828125, -0.0287017822265625, 0.03729248046875, 0.023681640625, 0.07940673828125, -0.028778076171875, 0.033843994140625, 0.0180816650390625, 0.05609130859375, 0.033203125, 0.023681640625, 0.0275726318359375, -0.017303466796875, 0.041839599609375, 0.03228759765625, -0.027557373046875, 0.0252532958984375, -0.005340576171875, -0.037200927734375, -0.00832366943359375, -0.07196044921875, -0.023193359375, -0.0274200439453125, 0.045074462890625, -0.00902557373046875, -0.00223541259765625, -0.0172119140625, -0.019866943359375, -0.0026874542236328125, 0.01861572265625, 0.01456451416015625, -0.0022869110107421875, -0.0404052734375, -0.01184844970703125, 0.00893402099609375, -0.00534820556640625, -0.0250396728515625, -0.0160980224609375, -0.040374755859375, -0.0061187744140625, -0.019256591796875, -0.00848388671875, 0.006195068359375, 0.0234375, 0.04327392578125, -0.03802490234375, 0.01226043701171875, -0.0172882080078125, 0.01934814453125, 0.00846099853515625, -0.05865478515625, 0.026611328125, 0.0288848876953125, 0.007568359375, 0.0347900390625, 0.0309600830078125, 0.0509033203125, -0.006839752197265625, -0.00913238525390625, -0.0154571533203125, 0.034759521484375, -0.00475311279296875, 0.044647216796875, 0.00771331787109375, 0.0213623046875, 0.0026721954345703125, 0.027252197265625, -0.00731658935546875, -0.01934814453125, -0.0186614990234375, 0.022705078125, -0.04998779296875, 0.0341796875, -0.0096435546875, -0.00954437255859375, -0.00952911376953125, 0.0298614501953125, -0.0159912109375, -0.0116424560546875, -0.0304107666015625, -0.06390380859375, 0.005107879638671875, -0.0116119384765625 ]
b6650f987d3074158c91dc1fd26a5bdc5f67b698
Wordpress Stackexchange Q: How to copy and paste a picture found on the web to wordpress easily Anyone knows how to do so? What about if you want to edit the pics a little bit before pasting. I am using windows. A: It should not be a lengthy process. Straight from the web: * *Right click > Copy image location *WordPress: Add Media > From URL Editing a picture: * *Right click > Copy image *Paste into your favorite photo editor (e.g. GIMP) *Edit and Save *WordPress: Add Media > From Computer Note: with WordPress 3.3 you can also drag-and-drop files.
Q: How to copy and paste a picture found on the web to wordpress easily Anyone knows how to do so? What about if you want to edit the pics a little bit before pasting. I am using windows. A: It should not be a lengthy process. Straight from the web: * *Right click > Copy image location *WordPress: Add Media > From URL Editing a picture: * *Right click > Copy image *Paste into your favorite photo editor (e.g. GIMP) *Edit and Save *WordPress: Add Media > From Computer Note: with WordPress 3.3 you can also drag-and-drop files. A: Marketplace is rather void of a plugin to enhance this workflow. My designer team wants to clip random parts of any page, which means copy as URL etc aren't going to do the job. I'm sort of surprised this isn't in the core yet. https://wordpress.org/plugins/image-elevator/ seems to be the most trustworthy choice so far. Another plugin, Imagepaste, looks unmaintained. A: https://wordpress.org/plugins/image-clipboard/ Support paste images from clipboard for posts & comments (based on filereader.js). For example, you can take a screenshot using monosnap, and attach it to a post or comment using keyboard shortcuts CTRL+V. I haven't tried this one yet, but I did try Image Elevator and found it broke pasting in Firefox using Ctrl+V. A: Here's another, quicker way to do this: * *Copy the picture with Ctrl-C (keyboard) or Right-click|Copy (mouse) *To edit the picture first: * *paste it into a simple photo editor (my favourite is PhotoFiltre; GIMP is too complicated for simple tasks like this). To paste an image, type Ctrl-Shift-V (keyboard) or in the menu click Edit|Paste as new image (mouse). *Edit the picture as desired. You do not need to save the image. *Copy the new edited image: Ctrl-A to select all and then Ctrl-C to copy (keyboard) or Select|Select all and then Edit|Copy (mouse). *In the edit post/page window in WordPress, paste the image directly in Visual view: Ctrl-V. Two problems with this method: * *It will not save the image to the media library. It is for quick-and-dirty image posting only. *The background HTML code for images pasted directly into WordPress is hideous. For cleaner HTML, install the Save Data:URL images plugin, which saves the image to your media folder (but still doesn't actually add it to the Media Library, as of version 0.1). A: Image Elevator as mentioned above. I use the premium version ($14 on Code Canyon) on most websites I work on and it saves a ton of time. It will resize image dimensions and file sizes. The Embed Image Links plugin is also pretty handy if you are getting images via URL. Although it has not been tested with the latest version of WordPress.
wordpress
{ "language": "en", "length": 456, "provenance": "stackexchange_00019.jsonl.gz:415670", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37468" }
[ 0.0797119140625, -0.0033550262451171875, 0.05908203125, 0.038238525390625, 0.0066070556640625, -0.03924560546875, 0.1051025390625, -0.079833984375, 0.0229034423828125, 0.00936126708984375, -0.0621337890625, 0.00714874267578125, 0.0178070068359375, -0.003696441650390625, -0.00421905517578125, -0.022064208984375, 0.0276336669921875, -0.033843994140625, -0.0038356781005859375, -0.0268707275390625, 0.021697998046875, -0.0101318359375, 0.0208892822265625, 0.04833984375, 0.01418304443359375, 0.00972747802734375, 0.041259765625, -0.025421142578125, 0.0091552734375, -0.00698089599609375, 0.018646240234375, -0.014923095703125, 0.02301025390625, 0.00970458984375, 0.0016412734985351562, 0.051483154296875, 0.01082611083984375, -0.0006670951843261719, 0.0169219970703125, 0.016448974609375, 0.02215576171875, -0.00397491455078125, 0.0200958251953125, 0.01345062255859375, -0.0198822021484375, -0.00732421875, 0.01265716552734375, -0.036407470703125, 0.004833221435546875, -0.004241943359375, 0.013336181640625, 0.0028839111328125, 0.030364990234375, -0.01297760009765625, -0.0222625732421875, -0.03173828125, 0.0175323486328125, 0.034698486328125, 0.0215301513671875, -0.0567626953125, -0.06109619140625, 0.01456451416015625, 0.036041259765625, 0.0203399658203125, -0.00281524658203125, -0.0010271072387695312, -0.00246429443359375, 0.01038360595703125, -0.03558349609375, -0.032196044921875, 0.02276611328125, -0.018890380859375, -0.0029430389404296875, -0.042755126953125, 0.019439697265625, 0.06689453125, -0.036102294921875, 0.00818634033203125, 0.0196533203125, 0.0128021240234375, 0.012481689453125, -0.01407623291015625, -0.0195465087890625, -0.03399658203125, 0.0189208984375, -0.00922393798828125, -0.001033782958984375, -0.005702972412109375, -0.015960693359375, -0.0241241455078125, -0.00684356689453125, -0.00015342235565185547, -0.054534912109375, 0.00540924072265625, -0.00506591796875, -0.026092529296875, -0.03472900390625, -0.023223876953125, 0.00437164306640625, 0.03851318359375, -0.031402587890625, -0.01312255859375, 0.024383544921875, -0.03240966796875, -0.00406646728515625, -0.017730712890625, -0.0010042190551757812, -0.017669677734375, 0.01427459716796875, 0.0374755859375, -0.039886474609375, 0.02825927734375, 0.002704620361328125, -0.00934600830078125, -0.02642822265625, 0.04376220703125, 0.003360748291015625, 0.01898193359375, -0.00666046142578125, 0.043701171875, -0.0386962890625, -0.0201568603515625, 0.0021800994873046875, 0.0250091552734375, 0.0218658447265625, 0.0198822021484375, -0.0001386404037475586, 0.00628662109375, 0.0202484130859375, -0.03277587890625, -0.029541015625, 0.051513671875, 0.075439453125, 0.013336181640625, -0.01117706298828125, 0.01540374755859375, -0.008819580078125, -0.0131072998046875, 0.0118560791015625, 0.01287078857421875, -0.01800537109375, -0.037811279296875, 0.01898193359375, 0.003253936767578125, 0.03369140625, 0.0205078125, -0.0002028942108154297, 0.01422119140625, 0.042327880859375, -0.01428985595703125, -0.00768280029296875, -0.0036525726318359375, -0.004306793212890625, 0.00997161865234375, 0.064453125, -0.069091796875, 0.04937744140625, -0.054473876953125, 0.0775146484375, -0.0390625, 0.014068603515625, 0.0253448486328125, 0.060791015625, 0.033966064453125, 0.0305023193359375, -0.0284271240234375, -0.050323486328125, 0.0043792724609375, 0.02032470703125, -0.03155517578125, 0.004024505615234375, -0.032989501953125, -0.0121307373046875, 0.0035953521728515625, -0.003025054931640625, 0.03466796875, 0.024200439453125, -0.0187835693359375, -0.00688934326171875, 0.08343505859375, 0.034576416015625, -0.0033664703369140625, 0.0014324188232421875, 0.0171356201171875, -0.0186920166015625, -0.0293731689453125, -0.0028400421142578125, 0.01465606689453125, 0.033294677734375, 0.0180816650390625, -0.00345611572265625, -0.0211639404296875, -0.032958984375, -0.0169525146484375, -0.029998779296875, -0.0164947509765625, 0.0193634033203125, -0.0032253265380859375, -0.0166473388671875, 0.034698486328125, -0.005405426025390625, 0.01329803466796875, -0.02288818359375, 0.03167724609375, -0.037841796875, -0.004543304443359375, -0.00450897216796875, 0.013946533203125, 0.01605224609375, -0.0170745849609375, -0.0040130615234375, -0.0296478271484375, 0.059356689453125, -0.1312255859375, -0.071533203125, 0.01262664794921875, -0.027862548828125, 0.004085540771484375, -0.005870819091796875, 0.0380859375, -0.03033447265625, -0.047454833984375, -0.030120849609375, -0.0182647705078125, -0.0032749176025390625, -0.0015850067138671875, -0.04229736328125, -0.01198577880859375, -0.05926513671875, 0.0011911392211914062, -0.048736572265625, 0.051727294921875, -0.0203857421875, 0.0262451171875, -0.000057220458984375, -0.01611328125, 0.0119171142578125, -0.008697509765625, 0.026153564453125, 0.021240234375, 0.0289306640625, 0.052947998046875, -0.0081939697265625, -0.007717132568359375, 0.0830078125, -0.042388916015625, -0.0146484375, -0.005931854248046875, 0.0302886962890625, 0.0251007080078125, -0.0005574226379394531, -0.034942626953125, 0.006862640380859375, -0.08782958984375, 0.02587890625, 0.007678985595703125, -0.01287078857421875, 0.02447509765625, -0.0167388916015625, 0.032989501953125, -0.0209808349609375, -0.0071868896484375, 0.0019683837890625, -0.0134429931640625, 0.00007736682891845703, 0.00923919677734375, 0.03271484375, 0.02099609375, -0.037628173828125, -0.0007233619689941406, 0.01537322998046875, 0.033050537109375, 0.00789642333984375, 0.0235748291015625, -0.00814056396484375, 0.035736083984375, -0.01617431640625, 0.004413604736328125, -0.0078582763671875, 0.0171966552734375, -0.005580902099609375, 0.0130462646484375, 0.01413726806640625, -0.0028476715087890625, -0.0147247314453125, -0.06195068359375, 0.0222930908203125, 0.01421356201171875, -0.026519775390625, 0.001979827880859375, 0.03399658203125, 0.0074615478515625, 0.0013103485107421875, -0.01212310791015625, 0.0017309188842773438, -0.00146484375, 0.057769775390625, -0.0036258697509765625, 0.01323699951171875, -0.0113372802734375, 0.05511474609375, 0.0504150390625, -0.0308074951171875, 0.0164642333984375, -0.01435089111328125, -0.018310546875, 0.01482391357421875, -0.00015676021575927734, -0.029266357421875, -0.045745849609375, -0.02801513671875, -0.0200347900390625, -0.002452850341796875, -0.039276123046875, -0.0270538330078125, -0.02081298828125, -0.0465087890625, -0.039764404296875, -0.142333984375, -0.06463623046875, -0.0692138671875, -0.080078125, -0.0555419921875, 0.031494140625, -0.0435791015625, 0.046356201171875, 0.060791015625, -0.0098876953125, 0.01213836669921875, 0.010284423828125, -0.00664520263671875, -0.021240234375, -0.0489501953125, -0.08514404296875, -0.006206512451171875, 0.00687408447265625, 0.01381683349609375, 0.007061004638671875, 0.005168914794921875, -0.017852783203125, 0.0171966552734375, 0.06719970703125, -0.02093505859375, -0.027618408203125, 0.0224456787109375, -0.01654052734375, 0.0137939453125, 0.005390167236328125, 0.033172607421875, 0.037078857421875, -0.03192138671875, -0.0209197998046875, -0.0159759521484375, -0.01139068603515625, -0.01983642578125, 0.01534271240234375, 0.0213775634765625, -0.0272369384765625, -0.01593017578125, -0.054168701171875, -0.028045654296875, 0.004581451416015625, -0.039520263671875, 0.0243377685546875, 0.034576416015625, -0.0201873779296875, -0.00909423828125, 0.028228759765625, 0.03179931640625, 0.050018310546875, -0.00713348388671875, 0.017303466796875, -0.0026683807373046875, -0.0205078125, 0.00174713134765625, -0.033050537109375, -0.005908966064453125, -0.0316162109375, 0.0997314453125, 0.003803253173828125, 0.0202178955078125, -0.0238494873046875, 0.037445068359375, -0.052398681640625, -0.0654296875, 0.06646728515625, 0.018402099609375, 0.017120361328125, -0.047607421875, -0.046142578125, -0.004467010498046875, 0.107666015625, -0.005218505859375, -0.033355712890625, -0.005870819091796875, -0.0112457275390625, -0.00261688232421875, 0.02337646484375, -0.01837158203125, -0.017181396484375, -0.0190582275390625, -0.0025272369384765625, 0.0079193115234375, -0.0194854736328125, 0.004962921142578125, -0.04705810546875, -0.0121612548828125, -0.032440185546875, 0.0294189453125, -0.04052734375, -0.01219940185546875, 0.0247650146484375, -0.0201416015625, -0.0235748291015625, -0.0012655258178710938, -0.035247802734375, -0.07012939453125, -0.010223388671875, -0.024688720703125, 0.05352783203125, -0.01174163818359375, 0.04150390625, -0.041534423828125, 0.03387451171875, 0.0022106170654296875, -0.0104522705078125, 0.007740020751953125, 0.01131439208984375, 0.0013637542724609375, -0.0265045166015625, -0.00876617431640625, -0.045989990234375, -0.061981201171875, -0.089111328125, -0.028472900390625, -0.034149169921875, 0.0002474784851074219, 0.02557373046875, -0.00409698486328125, 0.0247650146484375, 0.004222869873046875, 0.002593994140625, 0.01448822021484375, 0.0284423828125, -0.01416778564453125, -0.0004367828369140625, -0.01049041748046875, -0.0025501251220703125, 0.033782958984375, -0.005084991455078125, 0.00928497314453125, -0.007656097412109375, 0.0643310546875, 0.007411956787109375, -0.0115509033203125, -0.043182373046875, 0.006679534912109375, 0.02166748046875, 0.0216064453125, 0.00455474853515625, 0.005035400390625, -0.00035881996154785156, -0.044586181640625, 0.00345611572265625, -0.0014362335205078125, -0.0477294921875, 0.029388427734375, 0.00719451904296875, 0.00005251169204711914, 0.01387786865234375, -0.0175933837890625, 0.06427001953125, 0.03668212890625, -0.01280975341796875, -0.01093292236328125, -0.004497528076171875, 0.043121337890625, -0.01190185546875, -0.0147247314453125, -0.0438232421875, -0.040191650390625, 0.00017464160919189453, 0.00441741943359375, 0.0274810791015625, 0.0104522705078125, -0.0004570484161376953, 0.0306854248046875, 0.049713134765625, -0.007266998291015625, -0.00482177734375, -0.01284027099609375, -0.0029754638671875, 0.034149169921875, -0.041839599609375, -0.003589630126953125, -0.00024580955505371094, -0.005916595458984375, 0.016326904296875, 0.003215789794921875, -0.034881591796875, -0.0214080810546875, -0.0021514892578125, 0.0209197998046875, -0.0012044906616210938, -0.01739501953125, 0.0090484619140625, 0.0212554931640625, -0.0225982666015625, 0.003597259521484375, -0.0170440673828125, -0.0186309814453125, -0.036712646484375, -0.0098419189453125, -0.01024627685546875, -0.00485992431640625, 0.0677490234375, -0.00439453125, -0.033660888671875, 0.030670166015625, -0.011932373046875, 0.0195159912109375, 0.02923583984375, -0.0017108917236328125, 0.017425537109375, 0.0249481201171875, 0.0008068084716796875, -0.0201873779296875, 0.01861572265625, -0.0452880859375, -0.0298004150390625, 0.038299560546875, 0.057830810546875, -0.01025390625, -0.0234222412109375, 0.00771331787109375, -0.005855560302734375, -0.010467529296875, -0.007656097412109375, -0.0159149169921875, -0.03985595703125, -0.0035877227783203125, 0.01117706298828125, 0.003086090087890625, -0.0063934326171875, -0.01032257080078125, -0.006046295166015625, 0.0061187744140625, 0.0088958740234375, 0.0026302337646484375, -0.03533935546875, -0.00603485107421875, 0.0003268718719482422, 0.0015201568603515625, -0.01241302490234375, -0.0302734375, 0.037139892578125, 0.021728515625, -0.0222320556640625, -0.03375244140625, 0.06005859375, -0.011260986328125, -0.007770538330078125, -0.014923095703125, 0.00656890869140625, -0.04638671875, 0.004680633544921875, 0.0235748291015625, -0.00252532958984375, 0.0184173583984375, -0.032257080078125, -0.052093505859375, -0.042724609375, 0.01126861572265625, -0.00506591796875, -0.0101318359375, 0.00010710954666137695, -0.0229034423828125, 0.0162506103515625, -0.0279693603515625, 0.01061248779296875, -0.005947113037109375, 0.048858642578125, -0.00018990039825439453, 0.057525634765625, 0.016845703125, 0.00048542022705078125, -0.01535797119140625, 0.025604248046875, 0.00382232666015625, -0.0239105224609375, -0.0357666015625, -0.020172119140625, -0.01531982421875, -0.05328369140625, -0.00913238525390625, 0.0167388916015625, -0.015838623046875, 0.04718017578125, 0.042236328125, 0.016571044921875, -0.00789642333984375, -0.028106689453125, -0.003795623779296875, -0.0294189453125, 0.0469970703125, -0.032318115234375, 0.00028514862060546875, 0.0028324127197265625, -0.01273345947265625, 0.06622314453125, -0.0177154541015625, 0.005123138427734375, -0.0008602142333984375, -0.03851318359375, 0.00537109375, 0.03106689453125, 0.017974853515625, -0.011138916015625, 0.04791259765625, -0.0280303955078125, 0.052154541015625, 0.0242156982421875, 0.0153045654296875, 0.0506591796875, 0.044281005859375, -0.0187530517578125, -0.048980712890625, 0.025054931640625, 0.001117706298828125, -0.042388916015625, -0.0026912689208984375, -0.0308685302734375, 0.033447265625, 0.043853759765625, 0.0802001953125, -0.042938232421875, 0.01294708251953125, 0.014312744140625, -0.0440673828125, 0.0382080078125, 0.01306915283203125, -0.002468109130859375, -0.033843994140625, 0.0175018310546875, -0.0136566162109375, -0.01032257080078125, -0.0106353759765625, -0.009796142578125, 0.0038433074951171875, 0.0419921875, 0.056671142578125, 0.0127105712890625, -0.0772705078125, -0.048492431640625, 0.0699462890625, -0.043670654296875, -0.032470703125, 0.0401611328125, -0.0103759765625, 0.0102386474609375, -0.03570556640625, 0.05084228515625, 0.007411956787109375, 0.01241302490234375, 0.04150390625, 0.0112152099609375, 0.043975830078125, 0.04840087890625, -0.0004992485046386719, 0.025787353515625, 0.01053619384765625, 0.00856781005859375, 0.024749755859375, -0.0272064208984375, 0.0073394775390625, 0.01448822021484375, -0.038482666015625, 0.012603759765625, -0.00737762451171875, 0.003082275390625, -0.0110931396484375, 0.00801849365234375, 0.08221435546875, -0.041107177734375, -0.0110931396484375, 0.0306243896484375, 0.01404571533203125, -0.0179595947265625, -0.0276336669921875, -0.0120086669921875, -0.045013427734375, 0.0202789306640625, -0.031890869140625, 0.006305694580078125, 0.02105712890625, -0.0282440185546875, -0.0635986328125, 0.06365966796875, 0.0218048095703125, 0.006748199462890625, -0.0311737060546875, 0.031341552734375, -0.0034542083740234375, 0.01324462890625, -0.02685546875, 0.055419921875, -0.0462646484375, 0.0462646484375, -0.096435546875, -0.01520538330078125, -0.0020732879638671875, 0.05615234375, 0.05340576171875, 0.01157379150390625, -0.0408935546875, -0.003726959228515625, 0.07928466796875, 0.06903076171875, 0.047332763671875, 0.0197296142578125, 0.012786865234375, 0.0121307373046875, 0.02325439453125, -0.037017822265625, 0.02099609375, -0.036346435546875, 0.0010576248168945312, 0.04217529296875, -0.004650115966796875, -0.002170562744140625, -0.004932403564453125, 0.0108184814453125, -0.02020263671875, -0.00847625732421875, 0.01088714599609375, -0.0219879150390625, 0.0069427490234375, 0.01175689697265625, -0.0148468017578125, -0.0097503662109375, -0.0181427001953125, -0.00940704345703125, 0.0212860107421875, -0.01422119140625, 0.055572509765625, 0.0162811279296875, 0.0172119140625, 0.057220458984375, 0.01045989990234375, 0.031097412109375, 0.034149169921875, -0.011138916015625, 0.04168701171875, 0.0362548828125, 0.0241851806640625, -0.035614013671875, -0.00478363037109375, 0.05621337890625, 0.06842041015625, -0.038543701171875, -0.05352783203125, 0.0026702880859375, 0.00446319580078125, 0.03643798828125, -0.0039825439453125, 0.03118896484375, -0.08935546875, -0.02618408203125, -0.000911712646484375, -0.0057220458984375, 0.0254058837890625, 0.020294189453125, 0.0022792816162109375, -0.0117340087890625, -0.001018524169921875, -0.0028324127197265625, 0.013641357421875, -0.0109100341796875, -0.01092529296875, -0.00443267822265625, 0.00675201416015625, 0.01239013671875, 0.0015125274658203125, 0.0229949951171875, -0.022216796875, 0.048126220703125, 0.01641845703125, 0.0250244140625, -0.031341552734375, -0.03369140625, 0.016937255859375, 0.032470703125, -0.0217437744140625, 0.028564453125, 0.044219970703125, 0.022430419921875, -0.055694580078125, -0.018951416015625, 0.037933349609375, -0.0416259765625, 0.05450439453125, -0.013580322265625, 0.04449462890625, 0.01548004150390625, -0.016815185546875, -0.0275115966796875, 0.026947021484375, 0.057281494140625, -0.0426025390625, 0.051025390625, -0.01053619384765625, 0.002330780029296875, 0.0231170654296875, -0.022979736328125, 0.016937255859375, -0.0288848876953125, -0.11090087890625, -0.0142974853515625, -0.009033203125, -0.07318115234375, 0.0419921875, 0.03985595703125, -0.0372314453125, 0.00010567903518676758, -0.034820556640625, -0.002986907958984375, -0.01168060302734375, 0.0088653564453125, 0.000762939453125, 0.0104217529296875, 0.0238800048828125, 0.0018749237060546875, -0.0102996826171875, -0.004852294921875, -0.010101318359375, 0.0419921875, 0.0216827392578125, 0.08148193359375, -0.046112060546875, 0.0267181396484375, 0.0014171600341796875, 0.0187530517578125, -0.0301361083984375, -0.004047393798828125, 0.0025615692138671875, -0.0014057159423828125, 0.015777587890625, -0.014190673828125, 0.0189056396484375, 0.048614501953125, -0.0027370452880859375, -0.023590087890625, -0.006206512451171875, -0.033905029296875, 0.0151214599609375, 0.055694580078125, 0.04266357421875, -0.024017333984375, -0.017181396484375, -0.028167724609375, -0.0137481689453125, 0.0294036865234375, -0.00441741943359375, 0.0050201416015625, 0.0279693603515625, 0.0269775390625, 0.0089874267578125, 0.0201568603515625, -0.0261688232421875, 0.0341796875, 0.042510986328125, -0.002197265625, -0.040069580078125, 0.0074310302734375, -0.009368896484375, -0.0292816162109375, 0.01140594482421875, 0.0248565673828125, -0.00473785400390625, -0.054168701171875, -0.0019855499267578125, -0.032867431640625, 0.0011968612670898438, -0.038360595703125, -0.0218658447265625, -0.009246826171875, 0.012725830078125, 0.0034046173095703125, 0.0207061767578125, -0.0099029541015625, -0.0338134765625, -0.0241546630859375, 0.0106658935546875, -0.033111572265625, -0.005077362060546875, -0.03369140625, -0.027191162109375, 0.0161285400390625, 0.0169525146484375, -0.052276611328125, 0.0283050537109375, 0.00788116455078125, -0.0016603469848632812, -0.0013666152954101562, -0.0767822265625, 0.0214385986328125, 0.045013427734375, 0.0116424560546875, -0.0635986328125, -0.01861572265625, 0.045379638671875, -0.02386474609375, 0.05352783203125, 0.06866455078125, -0.042755126953125, 0.012481689453125, 0.046295166015625, 0.059661865234375, 0.09197998046875, -0.035400390625, -0.042572021484375, 0.01506805419921875, -0.00958251953125, -0.00711822509765625, 0.0062103271484375, 0.0113372802734375, -0.0180206298828125, -0.0217132568359375, -0.033843994140625, 0.01139068603515625, 0.018890380859375, -0.05853271484375, -0.1224365234375, 0.01020050048828125, -0.0186004638671875, -0.04876708984375, 0.0191802978515625, -0.01702880859375, -0.0201873779296875, 0.005401611328125, 0.0040435791015625, 0.0161285400390625, 0.00521087646484375, 0.0216522216796875, 0.00823974609375, 0.0677490234375, -0.048065185546875, 0.0094757080078125, -0.00872802734375, 0.05206298828125, 0.03460693359375, 0.024658203125, 0.01690673828125, -0.01715087890625, 0.032196044921875, 0.0304107666015625, -0.0343017578125, -0.015655517578125, -0.0115966796875, -0.0272674560546875, -0.031829833984375, 0.0009737014770507812, -0.01080322265625, 0.028106689453125, 0.07647705078125, 0.05523681640625, 0.01515960693359375, -0.05413818359375, 0.012420654296875, 0.0064544677734375, -0.04266357421875, -0.0158538818359375, 0.0207977294921875, -0.037872314453125, -0.01340484619140625, -0.0142364501953125, -0.0032482147216796875, -0.00856781005859375, -0.01317596435546875, -0.0287933349609375, -0.011688232421875, -0.01165008544921875, 0.0010805130004882812, -0.032012939453125, 0.04852294921875, 0.07940673828125, -0.047119140625, 0.0300140380859375, 0.0036773681640625, -0.0228118896484375, 0.06988525390625, 0.00545501708984375, 0.026611328125, 0.01415252685546875, -0.0136566162109375, 0.0294036865234375, 0.0157012939453125, 0.004283905029296875, -0.03466796875, -0.0175628662109375, 0.0038585662841796875, -0.0057220458984375, 0.0021610260009765625, -0.00518798828125, -0.0053253173828125, -0.006259918212890625, -0.028564453125, 0.01366424560546875, -0.0016498565673828125, -0.00031685829162597656, -0.0145263671875, 0.0288543701171875, -0.0244293212890625, -0.005825042724609375, 0.0015764236450195312, -0.03546142578125, 0.0123443603515625, 0.033721923828125, -0.0037841796875, -0.0074310302734375, -0.0013446807861328125, -0.0234222412109375, 0.0043487548828125, 0.005527496337890625 ]
ed2ee47a813707e98af841152f2d4d2076f01a7d
Wordpress Stackexchange Q: how to disable user confirmation from administration? I have a multi-site network, on one of the sites the access is restricted to registered users, and only an administrator can create users. I was asked to get rid of the confirmation email sent to new users, and I know you can select an option to add the user without sendind the email. The problem is, that option is only available to super administrators (me) and not regular administrators. Is there a way to add the new users without sending a confirmation email? I can get rid of the email, but I also need to remove the activation link, I need the users to be automatically added. I've looking for hooks but I can't find anything helpful, any ideas?. P.S. Every user is added from the Add new user menu in the backend. A: Haven't really tested this, but WP actually uses this filter if you check the "noconfirmation" box, except that it does so only for super_admins, like you said: add_filter( 'wpmu_signup_user_notification', '__return_false' );
Q: how to disable user confirmation from administration? I have a multi-site network, on one of the sites the access is restricted to registered users, and only an administrator can create users. I was asked to get rid of the confirmation email sent to new users, and I know you can select an option to add the user without sendind the email. The problem is, that option is only available to super administrators (me) and not regular administrators. Is there a way to add the new users without sending a confirmation email? I can get rid of the email, but I also need to remove the activation link, I need the users to be automatically added. I've looking for hooks but I can't find anything helpful, any ideas?. P.S. Every user is added from the Add new user menu in the backend. A: Haven't really tested this, but WP actually uses this filter if you check the "noconfirmation" box, except that it does so only for super_admins, like you said: add_filter( 'wpmu_signup_user_notification', '__return_false' ); A: I think I figured out how to do this without editing any core files. I got things working (with minimal testing) using the following: add_filter('wpmu_signup_user_notification', 'auto_activate_users', 10, 4); function auto_activate_users($user, $user_email, $key, $meta){ wpmu_activate_signup($key); return false; } The checkbox is still there on the page, but it has no effect. As an aside, I completely disabled emails for my wordpress install by overwriting the wp_mail function: function wp_mail($to, $subject, $message, $headers = '', $attachments = array() ){ return true; } So that may have, in some way, allowed my auto_activate to work without sending emails.
wordpress
{ "language": "en", "length": 270, "provenance": "stackexchange_00019.jsonl.gz:415680", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37520" }
[ 0.0985107421875, 0.0162200927734375, -0.00994873046875, -0.032501220703125, 0.0361328125, -0.06494140625, 0.047821044921875, -0.044525146484375, 0.007083892822265625, 0.040679931640625, 0.0081939697265625, -0.024200439453125, 0.051177978515625, -0.04864501953125, -0.01023101806640625, -0.002780914306640625, -0.01160430908203125, 0.031463623046875, 0.0020847320556640625, -0.02996826171875, 0.00948333740234375, -0.03271484375, -0.02777099609375, -0.0285797119140625, -0.052825927734375, 0.040069580078125, 0.03924560546875, -0.0089569091796875, -0.0303497314453125, -0.0222625732421875, -0.01039886474609375, 0.005916595458984375, -0.01132965087890625, 0.0635986328125, -0.03179931640625, -0.0006957054138183594, 0.01323699951171875, 0.0213775634765625, 0.036529541015625, -0.0026226043701171875, 0.02960205078125, -0.0123748779296875, -0.0110015869140625, -0.00040459632873535156, 0.00439453125, -0.04486083984375, 0.0546875, -0.045013427734375, 0.0330810546875, 0.005462646484375, 0.007671356201171875, 0.01241302490234375, 0.02032470703125, -0.0472412109375, -0.01506805419921875, -0.01213836669921875, -0.0288238525390625, 0.02545166015625, 0.01401519775390625, 0.031585693359375, -0.0037097930908203125, 0.01708984375, -0.0012292861938476562, -0.0192413330078125, 0.0142822265625, -0.0185699462890625, -0.04693603515625, 0.019012451171875, -0.01432037353515625, 0.01505279541015625, 0.0259246826171875, -0.0276947021484375, -0.0124969482421875, 0.000017762184143066406, 0.0068511962890625, 0.0086822509765625, -0.0167083740234375, 0.01242828369140625, 0.02783203125, 0.0309600830078125, -0.003772735595703125, -0.001972198486328125, -0.052215576171875, 0.0072479248046875, -0.023345947265625, 0.014678955078125, -0.0035877227783203125, -0.00798797607421875, -0.006977081298828125, -0.0011882781982421875, -0.0123138427734375, -0.01300048828125, 0.0296630859375, 0.02117919921875, -0.032379150390625, -0.012542724609375, 0.037933349609375, 0.07183837890625, -0.037078857421875, -0.04595947265625, -0.0009288787841796875, -0.0106658935546875, -0.061492919921875, -0.0167999267578125, 0.0016956329345703125, 0.075439453125, -0.021484375, -0.031341552734375, 0.0035190582275390625, 0.0181732177734375, 0.02423095703125, -0.04534912109375, -0.02294921875, -0.032806396484375, 0.0232696533203125, 0.0299530029296875, -0.051666259765625, 0.050872802734375, 0.01027679443359375, 0.031585693359375, -0.01629638671875, 0.006298065185546875, -0.0260162353515625, 0.01297760009765625, 0.02093505859375, 0.0020313262939453125, -0.003032684326171875, 0.006011962890625, -0.0240020751953125, -0.00691986083984375, -0.03436279296875, 0.0275115966796875, 0.058013916015625, 0.04052734375, 0.016876220703125, -0.0027751922607421875, -0.001514434814453125, 0.00444793701171875, 0.0005784034729003906, 0.0112762451171875, 0.0237274169921875, -0.04925537109375, -0.039154052734375, 0.019500732421875, -0.028167724609375, 0.0191650390625, 0.00534820556640625, 0.0161895751953125, 0.01352691650390625, -0.01189422607421875, -0.054443359375, -0.0279693603515625, 0.003536224365234375, 0.0161285400390625, 0.00843048095703125, 0.0248870849609375, 0.0200958251953125, 0.0045166015625, -0.04486083984375, -0.001728057861328125, 0.00878143310546875, -0.0160369873046875, 0.0142822265625, 0.01222991943359375, -0.026947021484375, 0.0277099609375, -0.0142822265625, -0.01531219482421875, 0.0190277099609375, -0.026153564453125, 0.017608642578125, 0.0081787109375, 0.0292205810546875, -0.0031681060791015625, 0.01312255859375, 0.005641937255859375, 0.039825439453125, 0.019287109375, 0.013031005859375, -0.0030841827392578125, -0.0090484619140625, -0.0308990478515625, 0.0899658203125, -0.035064697265625, -0.06329345703125, 0.01186370849609375, 0.004726409912109375, 0.023956298828125, 0.03021240234375, -0.0009307861328125, 0.06561279296875, 0.023712158203125, 0.0287017822265625, 0.0081787109375, 0.0039520263671875, -0.0552978515625, -0.035400390625, -0.0264129638671875, -0.0201568603515625, 0.033905029296875, 0.07513427734375, -0.023162841796875, 0.068359375, -0.075439453125, -0.0306243896484375, -0.00917816162109375, -0.01544189453125, 0.01122283935546875, -0.01021575927734375, 0.005771636962890625, 0.02703857421875, 0.004344940185546875, -0.0380859375, -0.0071563720703125, -0.022796630859375, -0.0202484130859375, -0.01233673095703125, 0.042083740234375, 0.01502227783203125, 0.039825439453125, 0.0214080810546875, -0.027008056640625, 0.035736083984375, 0.0020923614501953125, -0.01393890380859375, -0.050811767578125, 0.01035308837890625, -0.0179595947265625, 0.02801513671875, -0.0251617431640625, 0.0628662109375, 0.0188446044921875, -0.038482666015625, -0.03607177734375, -0.037200927734375, 0.02093505859375, -0.005069732666015625, -0.02508544921875, -0.0016260147094726562, 0.03887939453125, 0.01776123046875, 0.0350341796875, -0.01464080810546875, 0.0207977294921875, 0.01253509521484375, -0.048553466796875, -0.0025177001953125, 0.0175933837890625, 0.005153656005859375, -0.0007944107055664062, -0.002483367919921875, -0.024261474609375, 0.042694091796875, -0.00881195068359375, 0.0175323486328125, 0.0221710205078125, 0.024078369140625, -0.01366424560546875, -0.009765625, 0.0183563232421875, 0.01560211181640625, 0.0026645660400390625, -0.044219970703125, 0.0145721435546875, -0.055938720703125, -0.01861572265625, -0.0312347412109375, -0.0208892822265625, 0.005077362060546875, -0.0255889892578125, 0.028350830078125, -0.04644775390625, -0.008819580078125, -0.01221466064453125, 0.061798095703125, -0.01177978515625, -0.038330078125, -0.00382232666015625, 0.022735595703125, 0.0001360177993774414, -0.046844482421875, -0.02069091796875, 0.034332275390625, -0.0133209228515625, -0.000016033649444580078, -0.03564453125, 0.051513671875, -0.044677734375, -0.01497650146484375, -0.021331787109375, 0.025054931640625, -0.0114593505859375, -0.01129913330078125, -0.0000317692756652832, -0.0218505859375, -0.0290069580078125, -0.057342529296875, 0.0060272216796875, 0.0018644332885742188, -0.0024700164794921875, 0.0308380126953125, 0.07806396484375, 0.04412841796875, -0.014007568359375, -0.0005774497985839844, -0.049560546875, -0.003376007080078125, 0.035369873046875, 0.0037517547607421875, -0.041595458984375, -0.003330230712890625, 0.038909912109375, 0.000013053417205810547, 0.007556915283203125, -0.020721435546875, -0.0279541015625, -0.0038242340087890625, -0.01358795166015625, 0.0139007568359375, 0.0300140380859375, -0.0484619140625, -0.0192718505859375, -0.0157928466796875, 0.018035888671875, -0.00356292724609375, 0.0021343231201171875, 0.031341552734375, 0.007808685302734375, -0.03485107421875, 0.005615234375, -0.01300811767578125, -0.0012750625610351562, -0.00969696044921875, 0.026947021484375, -0.0214691162109375, -0.0011434555053710938, 0.0009732246398925781, 0.0265350341796875, -0.0153961181640625, -0.0237274169921875, -0.00991058349609375, -0.01122283935546875, 0.016387939453125, 0.002918243408203125, -0.00936126708984375, 0.022369384765625, 0.00994110107421875, 0.0180511474609375, -0.0267181396484375, 0.010498046875, -0.007221221923828125, -0.0382080078125, 0.013397216796875, -0.00823211669921875, 0.0178375244140625, -0.0047607421875, -0.0163116455078125, -0.0253753662109375, -0.0216217041015625, -0.05047607421875, 0.0033321380615234375, 0.016143798828125, -0.028228759765625, -0.05224609375, -0.0013875961303710938, -0.02734375, 0.0124359130859375, -0.043121337890625, 0.01413726806640625, -0.0029449462890625, 0.0313720703125, -0.00698089599609375, 0.0017910003662109375, -0.00954437255859375, -0.00804901123046875, -0.020965576171875, 0.0206451416015625, -0.0279388427734375, 0.0264739990234375, -0.005527496337890625, 0.0009670257568359375, -0.0100555419921875, 0.008056640625, -0.01407623291015625, -0.0802001953125, 0.040191650390625, -0.052520751953125, 0.01548004150390625, -0.05731201171875, -0.00783538818359375, 0.00601959228515625, 0.11846923828125, -0.03948974609375, -0.030517578125, -0.005916595458984375, 0.0135955810546875, 0.0008058547973632812, -0.0184783935546875, -0.00445556640625, -0.0254364013671875, -0.042694091796875, 0.0013065338134765625, -0.008270263671875, -0.02490234375, -0.0167083740234375, -0.057769775390625, -0.0240478515625, -0.0272216796875, 0.038726806640625, -0.050140380859375, 0.031768798828125, 0.00817108154296875, -0.0030994415283203125, -0.0182647705078125, -0.04132080078125, -0.0297088623046875, -0.053497314453125, 0.005687713623046875, -0.02313232421875, -0.00701904296875, -0.00777435302734375, 0.035430908203125, -0.03472900390625, -0.00739288330078125, 0.0099334716796875, 0.015716552734375, -0.017242431640625, -0.0112457275390625, 0.02850341796875, 0.0002536773681640625, -0.019989013671875, -0.00811767578125, 0.004486083984375, 0.0069580078125, 0.0024127960205078125, 0.034454345703125, -0.05657958984375, -0.0052032470703125, -0.0220794677734375, -0.03253173828125, -0.0312042236328125, -0.04840087890625, -0.05145263671875, 0.02392578125, -0.032928466796875, -0.00433349609375, -0.0517578125, -0.06402587890625, 0.011749267578125, -0.00494384765625, 0.0023670196533203125, 0.0007805824279785156, 0.0166168212890625, 0.0150604248046875, -0.0191497802734375, 0.0249176025390625, 0.0087890625, 0.03216552734375, -0.00844573974609375, -0.009063720703125, 0.0150604248046875, -0.014404296875, -0.02508544921875, 0.0019855499267578125, 0.03082275390625, -0.024444580078125, 0.049835205078125, -0.0183868408203125, -0.050537109375, 0.066650390625, -0.0107574462890625, -0.0308837890625, 0.02349853515625, 0.0201873779296875, -0.0108642578125, 0.055999755859375, 0.00360870361328125, -0.00496673583984375, -0.042144775390625, -0.005725860595703125, -0.036895751953125, 0.0195770263671875, -0.035125732421875, -0.035552978515625, -0.01059722900390625, 0.020751953125, -0.0517578125, -0.034759521484375, -0.01020050048828125, -0.030548095703125, 0.00879669189453125, -0.027191162109375, 0.0377197265625, -0.0638427734375, -0.0202789306640625, -0.0238189697265625, -0.023895263671875, 0.05224609375, 0.02166748046875, -0.03472900390625, 0.0221099853515625, -0.012054443359375, 0.07427978515625, 0.01508331298828125, 0.0219879150390625, 0.0894775390625, 0.040618896484375, -0.024749755859375, -0.019683837890625, -0.0157470703125, 0.0036449432373046875, -0.092041015625, 0.0013790130615234375, -0.0003509521484375, -0.003997802734375, 0.043914794921875, -0.0040130615234375, 0.01203155517578125, 0.01561737060546875, -0.01324462890625, 0.047576904296875, 0.05975341796875, -0.0258331298828125, -0.0012044906616210938, 0.07281494140625, -0.0158233642578125, -0.034759521484375, 0.0170745849609375, -0.0253753662109375, -0.003963470458984375, 0.0390625, 0.03253173828125, 0.060760498046875, 0.00722503662109375, -0.035552978515625, -0.0300140380859375, -0.01363372802734375, 0.05841064453125, 0.0408935546875, -0.0204010009765625, -0.050048828125, -0.017791748046875, 0.022308349609375, -0.011993408203125, 0.01300048828125, -0.0231781005859375, 0.00835418701171875, -0.00577545166015625, 0.035888671875, -0.029876708984375, -0.017303466796875, 0.0005664825439453125, -0.029541015625, -0.01198577880859375, 0.0167694091796875, -0.007190704345703125, 0.005321502685546875, -0.032379150390625, -0.04168701171875, 0.049530029296875, -0.00798797607421875, 0.0211944580078125, -0.04254150390625, 0.01727294921875, -0.036041259765625, -0.001026153564453125, 0.03839111328125, 0.00974273681640625, -0.01078033447265625, -0.02630615234375, -0.06536865234375, -0.051849365234375, -0.07879638671875, -0.0281219482421875, -0.031402587890625, 0.039276123046875, 0.0270843505859375, 0.01885986328125, 0.01276397705078125, -0.049896240234375, -0.0229644775390625, 0.0084075927734375, 0.054473876953125, 0.030853271484375, -0.01146697998046875, 0.06231689453125, -0.0164794921875, 0.05181884765625, 0.0211639404296875, 0.0228424072265625, -0.03192138671875, -0.015472412109375, 0.024566650390625, -0.046356201171875, -0.0489501953125, -0.003345489501953125, -0.07244873046875, -0.01331329345703125, 0.018707275390625, -0.0297698974609375, -0.002956390380859375, 0.0122833251953125, -0.00530242919921875, -0.017791748046875, 0.0124969482421875, 0.034881591796875, 0.0156402587890625, 0.01201629638671875, -0.034271240234375, 0.032257080078125, 0.01175689697265625, -0.01715087890625, 0.002269744873046875, -0.02099609375, 0.011016845703125, 0.0310516357421875, -0.022308349609375, 0.0242767333984375, 0.0537109375, 0.019500732421875, 0.047119140625, 0.01837158203125, 0.0360107421875, 0.01483154296875, 0.029388427734375, -0.0187225341796875, -0.031646728515625, 0.0352783203125, 0.0189056396484375, -0.0166473388671875, 0.0167388916015625, -0.0144805908203125, 0.039520263671875, 0.0849609375, 0.08013916015625, -0.1285400390625, 0.024078369140625, -0.01303863525390625, -0.0008835792541503906, 0.07183837890625, -0.004520416259765625, -0.0137786865234375, -0.06695556640625, 0.08404541015625, -0.037506103515625, 0.008819580078125, 0.018463134765625, -0.0419921875, -0.01532745361328125, 0.001682281494140625, 0.0201568603515625, 0.02374267578125, 0.06463623046875, -0.0200042724609375, -0.031402587890625, 0.042205810546875, -0.0204010009765625, 0.01300811767578125, 0.01000213623046875, -0.013153076171875, -0.078369140625, -0.0183563232421875, -0.00664520263671875, -0.0360107421875, -0.0017852783203125, -0.0258941650390625, 0.051422119140625, 0.040679931640625, -0.0186309814453125, 0.0024242401123046875, 0.00983428955078125, -0.0218353271484375, -0.04388427734375, -0.04351806640625, -0.002567291259765625, -0.0197906494140625, -0.01617431640625, 0.034149169921875, -0.002407073974609375, -0.049224853515625, 0.0160675048828125, 0.01904296875, 0.0093231201171875, -0.0287933349609375, -0.00927734375, 0.059326171875, -0.024017333984375, -0.0369873046875, -0.00864410400390625, -0.0005431175231933594, -0.046661376953125, -0.031005859375, -0.013916015625, -0.046844482421875, 0.01392364501953125, 0.00344085693359375, -0.03277587890625, 0.04888916015625, -0.0079498291015625, -0.01284027099609375, -0.01213836669921875, 0.040283203125, 0.0013074874877929688, 0.0330810546875, -0.0275421142578125, 0.047821044921875, -0.0091094970703125, 0.07232666015625, -0.05450439453125, -0.0103759765625, 0.01505279541015625, 0.0439453125, 0.08294677734375, 0.0294189453125, 0.01520538330078125, -0.0249786376953125, -0.0205230712890625, 0.00109100341796875, -0.06646728515625, 0.0212860107421875, 0.003246307373046875, 0.03192138671875, 0.046295166015625, -0.03948974609375, 0.02783203125, -0.007633209228515625, -0.01416015625, 0.0056915283203125, -0.005615234375, -0.0198516845703125, 0.0076751708984375, 0.03955078125, -0.051544189453125, 0.00313568115234375, 0.034515380859375, -0.03155517578125, -0.01273345947265625, -0.0045166015625, -0.021026611328125, -0.005664825439453125, 0.033721923828125, -0.0274810791015625, 0.03912353515625, 0.0202789306640625, 0.0178070068359375, 0.0030155181884765625, 0.0233612060546875, 0.01242828369140625, 0.016448974609375, 0.006671905517578125, 0.0538330078125, -0.0411376953125, -0.00461578369140625, -0.01611328125, 0.02105712890625, -0.05126953125, -0.035308837890625, 0.01013946533203125, 0.0185546875, -0.0045318603515625, -0.0277252197265625, 0.0137481689453125, 0.02984619140625, 0.040557861328125, 0.01446533203125, 0.08294677734375, -0.005645751953125, 0.00335693359375, -0.04937744140625, 0.0152740478515625, 0.021820068359375, 0.0187530517578125, -0.019256591796875, 0.0098876953125, -0.0213623046875, 0.00392913818359375, -0.0211181640625, -0.0017843246459960938, 0.0268707275390625, 0.005359649658203125, 0.006793975830078125, 0.0201873779296875, 0.041839599609375, 0.002033233642578125, -0.03375244140625, 0.007404327392578125, 0.03558349609375, 0.01525115966796875, -0.0246429443359375, 0.005237579345703125, 0.025848388671875, 0.0283355712890625, 0.001811981201171875, -0.010833740234375, 0.044769287109375, 0.04388427734375, -0.040130615234375, -0.020233154296875, 0.0178070068359375, -0.0235748291015625, 0.020751953125, -0.026885986328125, 0.01544189453125, 0.0029468536376953125, -0.0011243820190429688, -0.01422119140625, 0.01995849609375, 0.04766845703125, -0.02618408203125, 0.0013332366943359375, -0.0087127685546875, -0.0244903564453125, 0.048187255859375, 0.0029468536376953125, 0.00942230224609375, -0.0081329345703125, -0.0616455078125, -0.02105712890625, -0.017852783203125, -0.003391265869140625, 0.0115966796875, 0.021209716796875, -0.031707763671875, 0.04736328125, 0.037567138671875, 0.01019287109375, 0.00951385498046875, -0.03118896484375, 0.004802703857421875, -0.0205535888671875, 0.022613525390625, 0.0016002655029296875, -0.038330078125, 0.01593017578125, 0.0300445556640625, -0.012115478515625, -0.03350830078125, 0.072509765625, -0.00888824462890625, -0.0252227783203125, -0.0177001953125, 0.018341064453125, -0.024139404296875, -0.0283050537109375, 0.01354217529296875, 0.0115814208984375, -0.0017709732055664062, -0.0026454925537109375, -0.042755126953125, 0.0789794921875, -0.0010890960693359375, -0.0006895065307617188, 0.10211181640625, -0.0089111328125, -0.028289794921875, -0.0328369140625, 0.00556182861328125, -0.019866943359375, -0.034149169921875, -0.053375244140625, 0.01055908203125, 0.02447509765625, 0.0355224609375, -0.045196533203125, 0.02862548828125, -0.005584716796875, -0.01181793212890625, -0.01490020751953125, -0.0007624626159667969, -0.032501220703125, 0.03326416015625, 0.0009493827819824219, 0.024627685546875, 0.014312744140625, -0.0166168212890625, 0.010772705078125, 0.0202484130859375, -0.0231475830078125, 0.0251617431640625, -0.045196533203125, -0.054595947265625, -0.0285186767578125, 0.00174713134765625, -0.00780487060546875, -0.01277923583984375, -0.01346588134765625, -0.00879669189453125, -0.033050537109375, -0.0273590087890625, -0.024169921875, -0.0552978515625, 0.0289764404296875, 0.042755126953125, -0.0177001953125, 0.0202789306640625, -0.03424072265625, 0.0291900634765625, 0.043212890625, 0.0210113525390625, -0.1319580078125, 0.06268310546875, -0.0210418701171875, 0.08026123046875, -0.03759765625, 0.01076507568359375, -0.0040435791015625, 0.019195556640625, -0.039825439453125, -0.052032470703125, -0.01302337646484375, 0.0640869140625, -0.01453399658203125, -0.0350341796875, 0.0218658447265625, 0.022308349609375, -0.0202484130859375, -0.048309326171875, -0.051025390625, -0.000823974609375, -0.052520751953125, -0.0200653076171875, -0.0203094482421875, -0.00760650634765625, 0.014801025390625, 0.0028133392333984375, 0.01666259765625, -0.043853759765625, -0.0445556640625, 0.0015592575073242188, 0.01953125, 0.038848876953125, -0.0207061767578125, -0.060882568359375, 0.02880859375, -0.007686614990234375, -0.03076171875, -0.033172607421875, 0.005130767822265625, -0.0316162109375, 0.0125732421875, -0.00913238525390625, -0.0513916015625, 0.0117645263671875, 0.042266845703125, 0.0149688720703125, 0.0120697021484375, 0.0296630859375, 0.02581787109375, -0.032562255859375, 0.0052337646484375, -0.01200103759765625, 0.00740814208984375, 0.0192108154296875, -0.007076263427734375, 0.03607177734375, 0.0582275390625, -0.0216064453125, 0.0201263427734375, -0.001399993896484375, -0.05670166015625, -0.03656005859375, -0.04547119140625, -0.02197265625, -0.031280517578125, 0.06732177734375, 0.055908203125, 0.0107879638671875, -0.0164337158203125, -0.03375244140625, -0.031402587890625, 0.0169677734375, -0.01454925537109375, 0.0010528564453125, -0.06671142578125, 0.0047454833984375, 0.0120391845703125, -0.00847625732421875, -0.0257720947265625, 0.0007519721984863281, -0.03094482421875, -0.014923095703125, 0.00982666015625, 0.0106201171875, -0.0211334228515625, -0.007659912109375, -0.006404876708984375, -0.0277862548828125, -0.0711669921875, -0.00308990478515625, 0.01226806640625, -0.0711669921875, -0.0276336669921875, -0.0254058837890625, 0.008087158203125, -0.04541015625, 0.043914794921875, -0.02020263671875, 0.021881103515625, -0.08233642578125, 0.0288543701171875, 0.01409149169921875, 0.0321044921875, -0.0031890869140625, 0.0256195068359375, -0.0229339599609375, 0.060943603515625, -0.00220489501953125, 0.03985595703125, -0.007175445556640625, -0.01519012451171875, -0.05792236328125, 0.0643310546875, 0.0460205078125, -0.041229248046875, 0.06005859375, -0.0012998580932617188, 0.0099639892578125, -0.0021228790283203125, 0.031890869140625, -0.04595947265625, 0.0298919677734375, -0.005474090576171875, 0.029022216796875, 0.0205078125 ]
a6ad24947662ecde281899228964c2d3b1de10b9
Wordpress Stackexchange Q: Has anyone managed to integrate the wp_editor inside a widget? Adding this in the widget form method: wp_editor($text, $this->get_field_id('text')); seems to work. But after you press the "Save" button the widget goes funky... Adding _WP_Editors::editor_js(); makes it show after you press the save button, but then other things start to act weird. I think it has something to do with the javascript from the footer. Has anyone successfully integrated wp_editor inside a widget? A: As said I think it's quite hard to find a reliable solution because you have to take care of so many things. I go either for the way proposed by Danny van Kooten: http://dannyvankooten.com/450/tinymce-wysiwyg-editor-in-wordpress-plugin/ add and open the editor in a thickbox or another way I've used once, using the widget "accessibility mode" for "advanced" stuff as seen in this screenr: http://www.screenr.com/sY5s this example is buggy but the overall concept works fine, even if it's quite funny that you have to use js to get and add the link to the corresponding (non-js fallback) widget-edit page :) But on the other hand, on this seperate page you can actually do whatever you want.
Q: Has anyone managed to integrate the wp_editor inside a widget? Adding this in the widget form method: wp_editor($text, $this->get_field_id('text')); seems to work. But after you press the "Save" button the widget goes funky... Adding _WP_Editors::editor_js(); makes it show after you press the save button, but then other things start to act weird. I think it has something to do with the javascript from the footer. Has anyone successfully integrated wp_editor inside a widget? A: As said I think it's quite hard to find a reliable solution because you have to take care of so many things. I go either for the way proposed by Danny van Kooten: http://dannyvankooten.com/450/tinymce-wysiwyg-editor-in-wordpress-plugin/ add and open the editor in a thickbox or another way I've used once, using the widget "accessibility mode" for "advanced" stuff as seen in this screenr: http://www.screenr.com/sY5s this example is buggy but the overall concept works fine, even if it's quite funny that you have to use js to get and add the link to the corresponding (non-js fallback) widget-edit page :) But on the other hand, on this seperate page you can actually do whatever you want. A: I haven't dug into its code, but at first glance Spots may be using the built-in wp_editor(). A: I'm new to WP so I'm not entirely sure of this solution but I did read recently that there are issues with using wp_editor() (I can't remember where I read this, though). However, I also remember reading that the_editor() is a better solution, especially with draggable elements. I hope that helps.
wordpress
{ "language": "en", "length": 258, "provenance": "stackexchange_00019.jsonl.gz:415690", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37548" }
[ 0.01073455810546875, -0.039825439453125, -0.0019369125366210938, -0.0082550048828125, -0.0146636962890625, -0.02093505859375, 0.04071044921875, -0.006496429443359375, 0.042083740234375, 0.0245513916015625, -0.0298004150390625, -0.026611328125, -0.00931549072265625, -0.0195770263671875, -0.047210693359375, -0.03558349609375, 0.01080322265625, 0.0036678314208984375, 0.0073699951171875, -0.0086822509765625, -0.0009398460388183594, -0.0073089599609375, -0.0028629302978515625, -0.0303192138671875, 0.014434814453125, 0.0350341796875, 0.045166015625, -0.00945281982421875, 0.0012044906616210938, -0.00039005279541015625, 0.0161590576171875, -0.0257415771484375, 0.01549530029296875, 0.033233642578125, -0.0267486572265625, 0.006099700927734375, -0.0096435546875, 0.01256561279296875, -0.0006923675537109375, 0.019073486328125, 0.00872802734375, 0.0017633438110351562, -0.01461029052734375, 0.035064697265625, -0.0306549072265625, -0.06707763671875, 0.0308837890625, -0.028472900390625, 0.0101776123046875, -0.04302978515625, 0.004238128662109375, 0.047210693359375, 0.037445068359375, -0.046112060546875, -0.01168060302734375, 0.01171112060546875, -0.0164794921875, -0.0077972412109375, 0.034088134765625, 0.0265655517578125, -0.0135345458984375, -0.0145111083984375, 0.0108795166015625, -0.0235595703125, 0.0006647109985351562, -0.017822265625, -0.002490997314453125, -0.0013933181762695312, 0.010467529296875, 0.0225830078125, 0.01922607421875, -0.0286407470703125, -0.0105743408203125, -0.032745361328125, -0.0034580230712890625, 0.0192718505859375, 0.005901336669921875, -0.024566650390625, -0.006824493408203125, 0.01082611083984375, 0.03790283203125, 0.029449462890625, -0.00009131431579589844, -0.001064300537109375, 0.023193359375, 0.012603759765625, -0.0110931396484375, -0.030120849609375, -0.01293182373046875, 0.007305145263671875, -0.00966644287109375, -0.032379150390625, 0.0009984970092773438, 0.018157958984375, 0.00284576416015625, -0.01453399658203125, 0.0201263427734375, 0.0164337158203125, 0.0243988037109375, 0.05126953125, 0.042144775390625, -0.076416015625, 0.10626220703125, -0.0565185546875, -0.00473785400390625, 0.025604248046875, -0.00005882978439331055, -0.01513671875, 0.0173797607421875, 0.0224609375, -0.013214111328125, 0.029693603515625, 0.0294952392578125, -0.035552978515625, 0.0106048583984375, -0.00605010986328125, -0.01442718505859375, 0.03924560546875, 0.020172119140625, -0.0017080307006835938, -0.00768280029296875, -0.0079803466796875, 0.000843048095703125, 0.0191650390625, -0.01345062255859375, -0.0200653076171875, 0.005218505859375, -0.00933837890625, 0.064208984375, -0.0419921875, -0.033233642578125, 0.04473876953125, 0.07147216796875, 0.02099609375, 0.0260162353515625, 0.0018281936645507812, 0.022613525390625, -0.002712249755859375, 0.0228424072265625, 0.00507354736328125, -0.0223541259765625, -0.0229034423828125, 0.00797271728515625, -0.01220703125, -0.02081298828125, 0.046661376953125, 0.02020263671875, -0.019012451171875, -0.00501251220703125, -0.07208251953125, -0.0091705322265625, -0.042449951171875, 0.0338134765625, 0.005840301513671875, 0.043609619140625, -0.068115234375, 0.060089111328125, -0.06353759765625, 0.0219268798828125, -0.061279296875, -0.0050811767578125, -0.00241851806640625, 0.03216552734375, -0.057159423828125, -0.01238250732421875, -0.0251617431640625, -0.0673828125, -0.0004513263702392578, 0.0247802734375, 0.037078857421875, 0.0236053466796875, -0.00797271728515625, -0.00024139881134033203, 0.0169830322265625, -0.00543975830078125, 0.005016326904296875, -0.006061553955078125, 0.03094482421875, 0.02203369140625, 0.00553131103515625, -0.01383209228515625, -0.048095703125, 0.051727294921875, -0.012664794921875, -0.04144287109375, 0.0210723876953125, 0.0110931396484375, 0.07757568359375, 0.01142120361328125, 0.041778564453125, -0.0084381103515625, 0.003925323486328125, 0.0165863037109375, -0.04058837890625, 0.004467010498046875, -0.019439697265625, -0.004100799560546875, -0.00527191162109375, -0.014251708984375, 0.01104736328125, 0.0269927978515625, -0.0152435302734375, 0.0214691162109375, -0.01458740234375, -0.0709228515625, 0.020111083984375, -0.033843994140625, 0.036376953125, -0.002048492431640625, -0.031219482421875, 0.021484375, -0.0273590087890625, -0.0025539398193359375, -0.01143646240234375, -0.04119873046875, 0.016204833984375, 0.00652313232421875, 0.065185546875, 0.031585693359375, 0.038360595703125, 0.0172576904296875, -0.0160369873046875, 0.041168212890625, 0.001285552978515625, 0.0156402587890625, -0.03009033203125, -0.0140838623046875, -0.0240936279296875, 0.0128173828125, -0.015411376953125, 0.0082550048828125, 0.049957275390625, -0.01462554931640625, 0.02386474609375, -0.026519775390625, -0.018157958984375, -0.07659912109375, -0.06671142578125, 0.005649566650390625, 0.046966552734375, 0.03955078125, 0.033294677734375, -0.006893157958984375, -0.005733489990234375, 0.032989501953125, -0.06573486328125, 0.00414276123046875, -0.01432037353515625, 0.017822265625, 0.0716552734375, -0.03216552734375, 0.0091094970703125, 0.0036525726318359375, -0.07342529296875, -0.0064849853515625, 0.04449462890625, -0.001758575439453125, 0.044586181640625, -0.0007052421569824219, -0.0161285400390625, -0.00719451904296875, -0.041046142578125, -0.0117950439453125, -0.032379150390625, 0.0279083251953125, 0.03277587890625, 0.060150146484375, 0.048492431640625, -0.02130126953125, -0.0085906982421875, 0.00457763671875, 0.02276611328125, 0.01016998291015625, 0.01010894775390625, 0.02459716796875, -0.042266845703125, -0.01468658447265625, -0.00734710693359375, 0.00344085693359375, 0.0004382133483886719, 0.00186920166015625, 0.01520538330078125, 0.0325927734375, -0.00438690185546875, 0.009002685546875, -0.0280303955078125, 0.03076171875, -0.005817413330078125, 0.0304718017578125, 0.0007715225219726562, 0.0209808349609375, 0.007213592529296875, -0.02752685546875, 0.04583740234375, -0.005504608154296875, -0.034759521484375, 0.073974609375, 0.039886474609375, -0.003322601318359375, 0.0231475830078125, 0.05755615234375, 0.031494140625, -0.01355743408203125, 0.0005216598510742188, 0.0186004638671875, -0.050201416015625, -0.005702972412109375, 0.03997802734375, 0.0263671875, 0.0192413330078125, -0.0889892578125, 0.0252227783203125, 0.019195556640625, 0.042083740234375, -0.00798797607421875, -0.03643798828125, 0.0010213851928710938, 0.02777099609375, -0.032501220703125, -0.0394287109375, 0.0010585784912109375, -0.0987548828125, -0.0157470703125, 0.012786865234375, -0.066650390625, 0.0199127197265625, 0.0634765625, 0.0139007568359375, -0.04168701171875, -0.00307464599609375, -0.03338623046875, -0.048095703125, -0.054534912109375, -0.01076507568359375, -0.0164031982421875, 0.013763427734375, 0.0182342529296875, -0.00661468505859375, 0.01058197021484375, -0.04156494140625, 0.0286102294921875, -0.0027256011962890625, -0.006496429443359375, 0.0264892578125, 0.0018224716186523438, -0.0200042724609375, -0.034912109375, 0.006526947021484375, -0.02569580078125, -0.01102447509765625, 0.00864410400390625, -0.00247955322265625, -0.017974853515625, -0.00405120849609375, 0.0272064208984375, 0.03460693359375, 0.00902557373046875, 0.01337432861328125, 0.07318115234375, -0.02618408203125, 0.042083740234375, 0.00926971435546875, 0.013153076171875, -0.008697509765625, -0.04693603515625, -0.024505615234375, 0.0205230712890625, 0.01483917236328125, 0.004825592041015625, 0.019775390625, 0.030242919921875, -0.00936126708984375, 0.032562255859375, -0.00937652587890625, -0.0207366943359375, -0.02984619140625, 0.0218048095703125, -0.004528045654296875, 0.0149078369140625, -0.00201416015625, 0.013336181640625, -0.0294952392578125, 0.042144775390625, -0.04693603515625, -0.011322021484375, 0.01236724853515625, -0.032684326171875, 0.036895751953125, -0.0229339599609375, 0.005908966064453125, -0.0212860107421875, 0.036834716796875, -0.0526123046875, 0.0011444091796875, -0.003978729248046875, 0.033660888671875, -0.05682373046875, -0.060516357421875, -0.03912353515625, -0.0051727294921875, -0.01959228515625, 0.03277587890625, 0.0031528472900390625, 0.00887298583984375, -0.04705810546875, 0.048828125, -0.0293731689453125, -0.0182037353515625, 0.0286102294921875, -0.037933349609375, -0.004276275634765625, 0.0362548828125, -0.01543426513671875, -0.006683349609375, -0.00849151611328125, -0.041412353515625, -0.1044921875, -0.004085540771484375, -0.05609130859375, 0.0648193359375, 0.00927734375, 0.01995849609375, -0.0194244384765625, 0.03973388671875, 0.0010881423950195312, 0.01280975341796875, 0.021728515625, 0.04241943359375, -0.03521728515625, -0.0247650146484375, 0.0249481201171875, -0.055633544921875, 0.003955841064453125, -0.00921630859375, -0.0594482421875, -0.01398468017578125, -0.03424072265625, -0.0266876220703125, 0.0188140869140625, -0.046661376953125, -0.0286712646484375, -0.02972412109375, -0.05303955078125, 0.052154541015625, -0.04376220703125, 0.0191650390625, -0.049407958984375, -0.0882568359375, 0.00617218017578125, -0.004962921142578125, 0.0022258758544921875, 0.008880615234375, 0.061737060546875, 0.020599365234375, -0.01169586181640625, -0.0004277229309082031, -0.01507568359375, 0.050201416015625, 0.00555419921875, 0.0037364959716796875, 0.033721923828125, -0.030059814453125, 0.0169525146484375, 0.035736083984375, 0.0210113525390625, -0.053619384765625, 0.08282470703125, 0.0229339599609375, 0.0347900390625, -0.0149078369140625, -0.00021588802337646484, 0.0009822845458984375, 0.005954742431640625, -0.0227508544921875, 0.0084075927734375, 0.029052734375, 0.024444580078125, -0.04486083984375, 0.04730224609375, -0.0105438232421875, -0.00821685791015625, -0.0230712890625, -0.004611968994140625, 0.0692138671875, 0.01971435546875, 0.00691986083984375, -0.00038313865661621094, 0.048004150390625, -0.019287109375, 0.0105133056640625, -0.0230255126953125, 0.0062103271484375, 0.0033245086669921875, 0.00949859619140625, -0.0235137939453125, 0.0128173828125, -0.0191497802734375, 0.056396484375, 0.0195465087890625, -0.017120361328125, -0.0023517608642578125, -0.0174713134765625, 0.011077880859375, -0.00322723388671875, 0.02288818359375, -0.01385498046875, -0.00171661376953125, -0.038726806640625, 0.03204345703125, 0.07012939453125, -0.0201263427734375, -0.00937652587890625, -0.035491943359375, -0.0273590087890625, -0.00623321533203125, -0.007656097412109375, 0.0340576171875, -0.03692626953125, 0.0181121826171875, -0.0015506744384765625, 0.060302734375, 0.0283050537109375, 0.02783203125, 0.007091522216796875, 0.01064300537109375, 0.01296234130859375, -0.01221466064453125, -0.023773193359375, -0.0236053466796875, 0.006023406982421875, 0.0189056396484375, 0.0034389495849609375, 0.00862884521484375, -0.0025634765625, 0.0303497314453125, 0.0032939910888671875, -0.01488494873046875, 0.002628326416015625, -0.002674102783203125, -0.03997802734375, 0.0260162353515625, 0.0168609619140625, -0.018707275390625, 0.00249481201171875, -0.0047149658203125, 0.010345458984375, -0.038299560546875, -0.00396728515625, -0.0012454986572265625, -0.0229034423828125, -0.006038665771484375, -0.01068878173828125, 0.0188140869140625, -0.01168060302734375, -0.01392364501953125, -0.06561279296875, -0.016632080078125, -0.011962890625, 0.009002685546875, 0.038726806640625, -0.01161956787109375, -0.0030460357666015625, -0.0186767578125, 0.012725830078125, -0.03546142578125, 0.0033054351806640625, 0.010467529296875, -0.0026760101318359375, 0.0007128715515136719, -0.01001739501953125, -0.06207275390625, -0.040252685546875, -0.035797119140625, -0.041259765625, -0.03302001953125, -0.004245758056640625, 0.01302337646484375, 0.031005859375, 0.00673675537109375, -0.0235443115234375, 0.0142822265625, -0.006458282470703125, 0.0002644062042236328, 0.045166015625, -0.01360321044921875, 0.0819091796875, -0.0377197265625, 0.123291015625, -0.0132293701171875, -0.002208709716796875, -0.05328369140625, -0.008880615234375, 0.0233306884765625, -0.03515625, -0.0159454345703125, -0.051055908203125, 0.031890869140625, -0.00534820556640625, -0.00856781005859375, -0.00522613525390625, 0.005352020263671875, -0.0306243896484375, 0.0003829002380371094, -0.0104217529296875, 0.0380859375, -0.0217132568359375, -0.03656005859375, 0.048614501953125, -0.057586669921875, -0.05645751953125, 0.0229644775390625, 0.0164947509765625, 0.027862548828125, -0.0169219970703125, -0.0173187255859375, 0.01971435546875, -0.05804443359375, 0.04656982421875, 0.05487060546875, 0.0289764404296875, 0.0408935546875, -0.00646209716796875, 0.0137481689453125, 0.004306793212890625, 0.0311737060546875, -0.04443359375, -0.0028972625732421875, -0.0017423629760742188, -0.0219879150390625, -0.003322601318359375, -0.0257568359375, 0.0024089813232421875, 0.0215301513671875, 0.06024169921875, 0.06939697265625, -0.08624267578125, 0.011993408203125, 0.005664825439453125, -0.0175018310546875, 0.0215911865234375, 0.00774383544921875, 0.00580596923828125, -0.0150909423828125, 0.051483154296875, -0.002353668212890625, -0.00951385498046875, 0.04547119140625, -0.0008807182312011719, 0.009735107421875, -0.0382080078125, -0.005840301513671875, 0.0022563934326171875, -0.0303192138671875, 0.0233154296875, 0.02490234375, 0.032318115234375, -0.01025390625, 0.016143798828125, -0.006805419921875, -0.0189666748046875, -0.025360107421875, 0.0032806396484375, 0.000728607177734375, -0.02313232421875, -0.003803253173828125, -0.017578125, 0.041717529296875, 0.0465087890625, -0.0307464599609375, 0.02960205078125, 0.00982666015625, 0.0225677490234375, 0.0251312255859375, 0.000705718994140625, -0.00628662109375, 0.0022792816162109375, -0.0270538330078125, -0.004673004150390625, -0.0240020751953125, 0.0188751220703125, -0.001865386962890625, 0.06365966796875, 0.10211181640625, -0.0279388427734375, -0.042572021484375, 0.050262451171875, -0.00836181640625, -0.03619384765625, -0.0167388916015625, -0.024444580078125, -0.04608154296875, -0.0093994140625, -0.04046630859375, -0.054168701171875, 0.029296875, -0.04632568359375, -0.0557861328125, 0.1339111328125, 0.02484130859375, 0.01116180419921875, 0.016265869140625, 0.0546875, -0.067138671875, 0.03173828125, -0.039947509765625, 0.005649566650390625, 0.0008034706115722656, -0.0005750656127929688, -0.0268096923828125, 0.00772857666015625, -0.0218963623046875, 0.004436492919921875, 0.03460693359375, 0.005825042724609375, -0.020843505859375, -0.01318359375, 0.037994384765625, 0.050262451171875, -0.0038051605224609375, 0.0179290771484375, 0.055755615234375, -0.01255035400390625, 0.0199737548828125, 0.0616455078125, 0.05853271484375, -0.03564453125, -0.01422882080078125, 0.0589599609375, 0.0055999755859375, -0.0013151168823242188, -0.006282806396484375, 0.0229034423828125, -0.002269744873046875, -0.015655517578125, 0.007373809814453125, -0.05517578125, -0.0350341796875, 0.039642333984375, 0.000059485435485839844, -0.03582763671875, -0.0261993408203125, -0.047088623046875, 0.0260772705078125, 0.01134490966796875, -0.049774169921875, -0.038665771484375, -0.0119781494140625, -0.004390716552734375, -0.0186920166015625, -0.042877197265625, 0.05712890625, 0.0151519775390625, 0.0313720703125, -0.0193328857421875, 0.0060882568359375, -0.059600830078125, 0.0203857421875, 0.04248046875, 0.040771484375, -0.036529541015625, -0.027099609375, 0.00998687744140625, 0.01445770263671875, -0.004058837890625, 0.00701141357421875, 0.01302337646484375, 0.0008206367492675781, 0.037109375, 0.0323486328125, -0.034332275390625, -0.0180816650390625, 0.0226898193359375, 0.0027599334716796875, -0.006954193115234375, 0.0214080810546875, -0.00616455078125, -0.0740966796875, 0.0236053466796875, 0.02044677734375, 0.05010986328125, 0.0278167724609375, 0.06658935546875, 0.046173095703125, -0.0300750732421875, -0.050872802734375, 0.0323486328125, 0.0285797119140625, 0.04241943359375, -0.03448486328125, -0.00006884336471557617, 0.032379150390625, 0.02569580078125, 0.0187530517578125, 0.071533203125, 0.03924560546875, 0.0124053955078125, 0.0045928955078125, 0.01163482666015625, 0.020782470703125, -0.025421142578125, -0.01316070556640625, -0.03326416015625, 0.03582763671875, 0.043426513671875, 0.022308349609375, -0.0007410049438476562, 0.043914794921875, 0.037750244140625, -0.0267181396484375, 0.01470184326171875, -0.01403045654296875, 0.0065155029296875, 0.0328369140625, -0.02435302734375, 0.00983428955078125, -0.01019287109375, -0.08538818359375, -0.0238037109375, 0.0122222900390625, -0.052642822265625, 0.0223236083984375, 0.04571533203125, -0.035491943359375, 0.00954437255859375, 0.01493072509765625, -0.015960693359375, -0.0014286041259765625, -0.0021514892578125, 0.0306549072265625, -0.02386474609375, -0.0125885009765625, -0.00334930419921875, -0.0249481201171875, -0.004695892333984375, 0.00975799560546875, 0.0219879150390625, 0.0208587646484375, 0.041290283203125, -0.009063720703125, 0.0251312255859375, 0.032073974609375, 0.00606536865234375, 0.0183868408203125, -0.00981903076171875, 0.035980224609375, -0.007625579833984375, 0.0012359619140625, -0.01995849609375, -0.005859375, 0.037567138671875, 0.00893402099609375, -0.007205963134765625, -0.01027679443359375, -0.022705078125, 0.013458251953125, 0.028656005859375, 0.00960540771484375, -0.0203857421875, 0.013427734375, -0.020263671875, -0.048370361328125, 0.046630859375, -0.01123046875, 0.01473236083984375, 0.008026123046875, 0.036529541015625, 0.0079803466796875, 0.00009053945541381836, 0.022735595703125, -0.0211944580078125, 0.006046295166015625, 0.02752685546875, -0.026580810546875, 0.02349853515625, -0.004138946533203125, -0.0240478515625, 0.034454345703125, 0.000025928020477294922, 0.0175018310546875, -0.03961181640625, 0.01055908203125, 0.042816162109375, 0.04364013671875, -0.026153564453125, 0.0202789306640625, 0.024993896484375, -0.020233154296875, 0.0178375244140625, -0.049468994140625, -0.02783203125, -0.055999755859375, -0.0168304443359375, 0.0190582275390625, -0.03643798828125, -0.042388916015625, -0.08465576171875, 0.007965087890625, 0.0217437744140625, 0.0170135498046875, -0.056121826171875, 0.021820068359375, -0.0149078369140625, 0.047698974609375, -0.0013551712036132812, 0.00727081298828125, -0.0014057159423828125, 0.0270233154296875, -0.0229949951171875, -0.00206756591796875, -0.03558349609375, 0.01187896728515625, -0.01611328125, 0.046722412109375, 0.065673828125, -0.042205810546875, -0.0115509033203125, 0.05999755859375, 0.050140380859375, 0.08868408203125, -0.00962066650390625, -0.026336669921875, -0.01079559326171875, 0.00888824462890625, 0.01427459716796875, -0.01377105712890625, -0.00688934326171875, 0.0005602836608886719, 0.0095062255859375, 0.007442474365234375, -0.0032062530517578125, 0.002529144287109375, -0.0672607421875, -0.11334228515625, 0.02587890625, 0.0039215087890625, -0.051177978515625, -0.0265655517578125, -0.0264892578125, -0.01258087158203125, 0.0164947509765625, -0.014892578125, -0.0108489990234375, -0.0114593505859375, 0.04339599609375, 0.0304718017578125, 0.0443115234375, 0.03802490234375, 0.0243682861328125, -0.06488037109375, -0.01824951171875, -0.076171875, 0.0198211669921875, 0.0073089599609375, 0.003597259521484375, -0.0038127899169921875, 0.0228118896484375, -0.051727294921875, -0.06817626953125, -0.0243988037109375, -0.0018367767333984375, 0.004199981689453125, -0.038909912109375, -0.03094482421875, -0.01509857177734375, 0.04547119140625, 0.0300445556640625, 0.004669189453125, -0.02044677734375, 0.0164337158203125, 0.005046844482421875, -0.041961669921875, 0.00786590576171875, 0.0128631591796875, -0.0244140625, 0.002490997314453125, -0.0092926025390625, 0.005588531494140625, 0.0289154052734375, -0.00809478759765625, -0.00711822509765625, -0.0006709098815917969, 0.05853271484375, 0.007709503173828125, -0.051300048828125, -0.0164947509765625, 0.10247802734375, -0.0574951171875, -0.0155487060546875, 0.0294952392578125, 0.020172119140625, 0.029052734375, 0.01397705078125, -0.0114593505859375, -0.0184478759765625, -0.045196533203125, 0.0173797607421875, -0.0252227783203125, 0.055267333984375, -0.05291748046875, -0.006252288818359375, -0.0018129348754882812, 0.01202392578125, -0.019805908203125, 0.01076507568359375, 0.0182647705078125, 0.02044677734375, -0.004955291748046875, 0.035430908203125, -0.037353515625, -0.0031909942626953125, -0.03216552734375, 0.0265655517578125, -0.0039215087890625, 0.0207061767578125, 0.0297698974609375, -0.006053924560546875, 0.01087188720703125, 0.0309600830078125, -0.0029621124267578125, -0.0130462646484375, -0.01263427734375, -0.00960540771484375, 0.01242828369140625, -0.00580596923828125 ]
34cd7d10cd914c5d4a21961ce49a201141ba4771
Wordpress Stackexchange Q: How do I get posts by multiple post ID's? I've got a string with post ID's: 43,23,65. I was hoping I could use get_posts() and use the string with ID's as an argument. But I can't find any functions for retrieving multiple posts by ID. Do I really have to do a WP_query? I've also seen someone mention using tag_in - but I can't find any documentation on this. A: If you can't get the above to work, make sure you add post_type: $args = array( 'post_type' => 'pt_case_study', 'post__in' => array(2417, 2112, 784) ); $posts = get_posts($args);
Q: How do I get posts by multiple post ID's? I've got a string with post ID's: 43,23,65. I was hoping I could use get_posts() and use the string with ID's as an argument. But I can't find any functions for retrieving multiple posts by ID. Do I really have to do a WP_query? I've also seen someone mention using tag_in - but I can't find any documentation on this. A: If you can't get the above to work, make sure you add post_type: $args = array( 'post_type' => 'pt_case_study', 'post__in' => array(2417, 2112, 784) ); $posts = get_posts($args); A: You can use get_posts() as it takes the same arguments as WP_Query. To pass it the IDs, use 'post__in' => array(43,23,65) (only takes arrays). Something like: $args = array( 'post__in' => array(43,23,65) ); $posts = get_posts($args); foreach ($posts as $p) : //post! endforeach; I'd also set the post_type and posts_per_page just for good measure. A: If you want to get all the posts by their IDs (regardless of post type) use this: $args = [ 'post_type' => get_post_types(), 'post__in' => [ 43, 23, 65 ] ]; $posts = get_posts($args); Or even shorter: $args = [ 'post_type' => 'any', 'post__in' => [ 43, 23, 65 ] ]; $posts = get_posts($args);
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:415706", "question_score": "29", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37603" }
[ 0.06866455078125, -0.0239715576171875, 0.02789306640625, -0.0001723766326904297, 0.00557708740234375, -0.022308349609375, 0.0909423828125, -0.0272979736328125, -0.0297393798828125, 0.032806396484375, -0.06439208984375, 0.0265655517578125, -0.059967041015625, 0.0138397216796875, -0.0167999267578125, -0.07550048828125, 0.026275634765625, -0.02716064453125, -0.0027141571044921875, -0.01122283935546875, 0.01078033447265625, -0.007381439208984375, 0.0156402587890625, 0.0283050537109375, 0.0280609130859375, -0.021575927734375, 0.025360107421875, -0.0256195068359375, 0.0183563232421875, -0.020233154296875, 0.0176849365234375, 0.018951416015625, 0.04931640625, -0.03887939453125, 0.032318115234375, 0.03204345703125, 0.0147247314453125, -0.021697998046875, 0.00861358642578125, 0.0194091796875, -0.005157470703125, 0.01258087158203125, 0.0305633544921875, 0.024169921875, -0.00681304931640625, -0.022003173828125, -0.0172576904296875, -0.060699462890625, 0.0252227783203125, -0.0182647705078125, -0.006771087646484375, 0.0273590087890625, 0.0170440673828125, -0.008331298828125, -0.0322265625, -0.04962158203125, 0.00567626953125, 0.00745391845703125, 0.06671142578125, -0.046051025390625, -0.06097412109375, -0.054779052734375, 0.045196533203125, -0.032470703125, -0.0257110595703125, 0.0188446044921875, 0.03717041015625, 0.0007843971252441406, -0.021636962890625, -0.052032470703125, 0.0022869110107421875, -0.002857208251953125, 0.007312774658203125, -0.047149658203125, 0.0072784423828125, -0.04229736328125, 0.0250091552734375, -0.06353759765625, -0.03436279296875, 0.018951416015625, -0.0340576171875, -0.017547607421875, -0.0714111328125, 0.01552581787109375, -0.035125732421875, 0.0217742919921875, -0.020416259765625, 0.0037670135498046875, -0.023101806640625, -0.0301513671875, -0.017333984375, -0.050933837890625, -0.044677734375, 0.0313720703125, -0.006267547607421875, -0.018951416015625, 0.0086822509765625, 0.0219268798828125, -0.0244293212890625, 0.006603240966796875, -0.00479888916015625, -0.041351318359375, 0.0274658203125, -0.0238037109375, -0.005001068115234375, 0.0016717910766601562, 0.048583984375, 0.077880859375, 0.03887939453125, 0.01690673828125, -0.017547607421875, 0.060577392578125, -0.005550384521484375, -0.0085296630859375, -0.05133056640625, 0.013092041015625, -0.0279998779296875, -0.035369873046875, -0.0014619827270507812, -0.02874755859375, 0.01067352294921875, 0.035064697265625, -0.01557159423828125, -0.01209259033203125, -0.0026187896728515625, 0.006160736083984375, -0.004070281982421875, -0.0306243896484375, -0.03436279296875, 0.03240966796875, -0.0182037353515625, 0.00730133056640625, 0.051513671875, 0.0289459228515625, 0.00597381591796875, -0.02325439453125, -0.04449462890625, -0.0192108154296875, -0.01091766357421875, -0.0159912109375, 0.0015878677368164062, -0.0251617431640625, 0.02294921875, -0.003330230712890625, -0.0017871856689453125, 0.0299530029296875, 0.0277099609375, 0.000885009765625, -0.0283660888671875, -0.04473876953125, -0.025848388671875, 0.035369873046875, 0.0211181640625, 0.007904052734375, 0.01491546630859375, -0.028106689453125, 0.0236968994140625, -0.042694091796875, -0.0006656646728515625, -0.03656005859375, 0.033355712890625, 0.0158843994140625, 0.0135040283203125, 0.01433563232421875, -0.035369873046875, -0.0021152496337890625, -0.031768798828125, -0.03411865234375, 0.0262298583984375, 0.034820556640625, -0.0190582275390625, -0.022064208984375, 0.019317626953125, 0.017913818359375, -0.017425537109375, 0.0307464599609375, -0.0124969482421875, -0.0037631988525390625, 0.0153961181640625, 0.0285491943359375, -0.01018524169921875, -0.037017822265625, -0.02032470703125, 0.024627685546875, -0.07501220703125, 0.085693359375, 0.0014162063598632812, 0.114990234375, 0.01351165771484375, 0.01346588134765625, 0.0093231201171875, 0.006168365478515625, -0.0144195556640625, 0.003749847412109375, -0.00640869140625, -0.0205841064453125, 0.0007476806640625, 0.00897216796875, -0.005367279052734375, -0.01678466796875, 0.0506591796875, -0.004425048828125, 0.01299285888671875, 0.0174713134765625, -0.0335693359375, 0.0073699951171875, -0.01082611083984375, 0.0017118453979492188, -0.0258331298828125, 0.0199737548828125, 0.01898193359375, -0.0172882080078125, -0.010162353515625, -0.0246124267578125, -0.0001308917999267578, 0.004154205322265625, -0.034149169921875, -0.0083770751953125, -0.045166015625, -0.01348876953125, -0.0615234375, -0.041229248046875, -0.052001953125, 0.05389404296875, 0.07049560546875, -0.006740570068359375, -0.01433563232421875, -0.029388427734375, 0.038787841796875, 0.0148162841796875, -0.05712890625, 0.02032470703125, 0.0232086181640625, 0.0650634765625, 0.007232666015625, -0.002239227294921875, 0.01509857177734375, -0.037445068359375, 0.0193023681640625, 0.03173828125, 0.033935546875, 0.020294189453125, 0.009552001953125, 0.0084228515625, 0.00173187255859375, -0.0517578125, 0.0165863037109375, -0.012420654296875, 0.0188446044921875, 0.04461669921875, -0.0190277099609375, 0.02337646484375, 0.036956787109375, -0.0029277801513671875, 0.0015869140625, 0.057586669921875, -0.017669677734375, 0.00043272972106933594, -0.01983642578125, 0.012542724609375, -0.00955963134765625, -0.051513671875, -0.013885498046875, -0.032623291015625, 0.0235443115234375, 0.018798828125, 0.0233001708984375, 0.02996826171875, -0.0238800048828125, 0.0073089599609375, 0.007022857666015625, -0.002765655517578125, 0.0107421875, 0.01318359375, -0.01885986328125, -0.00598907470703125, 0.00453948974609375, -0.018035888671875, 0.0141754150390625, -0.0157623291015625, 0.01708984375, 0.044830322265625, -0.01308441162109375, -0.01009368896484375, -0.0020599365234375, -0.01316070556640625, -0.000011801719665527344, 0.0268096923828125, -0.02685546875, -0.00626373291015625, 0.00653839111328125, 0.08013916015625, -0.01275634765625, 0.042022705078125, -0.00547027587890625, 0.030181884765625, 0.0141754150390625, -0.06195068359375, 0.0516357421875, -0.0494384765625, 0.048370361328125, 0.06890869140625, -0.012298583984375, 0.0162811279296875, -0.0045623779296875, 0.02703857421875, 0.019256591796875, 0.003177642822265625, -0.0004930496215820312, -0.0256500244140625, -0.0208892822265625, 0.01751708984375, 0.0282135009765625, 0.1185302734375, -0.0269622802734375, -0.06134033203125, -0.0021762847900390625, 0.04376220703125, -0.0994873046875, -0.09881591796875, 0.07147216796875, -0.031341552734375, -0.047637939453125, -0.01953125, -0.032867431640625, 0.007904052734375, 0.0017099380493164062, -0.03253173828125, -0.0013685226440429688, -0.006931304931640625, -0.0565185546875, -0.017303466796875, -0.05987548828125, 0.04052734375, -0.01155853271484375, 0.0280609130859375, 0.01537322998046875, 0.005878448486328125, 0.005096435546875, -0.045257568359375, 0.0196990966796875, 0.0207977294921875, -0.0295867919921875, -0.012481689453125, -0.0182952880859375, -0.0023651123046875, -0.0052947998046875, 0.0020389556884765625, 0.008270263671875, 0.0125732421875, -0.006671905517578125, 0.0006771087646484375, -0.006694793701171875, 0.0269927978515625, 0.03857421875, -0.037078857421875, -0.016082763671875, 0.070068359375, 0.03009033203125, -0.006542205810546875, 0.0128021240234375, -0.034088134765625, -0.032623291015625, -0.007137298583984375, 0.03558349609375, -0.0021228790283203125, -0.035736083984375, -0.0169677734375, 0.010345458984375, -0.016082763671875, -0.003917694091796875, -0.024749755859375, 0.048980712890625, 0.01125335693359375, 0.04278564453125, -0.0179290771484375, -0.047882080078125, -0.0275115966796875, 0.005008697509765625, -0.056488037109375, 0.0142059326171875, -0.029632568359375, 0.0212249755859375, -0.045623779296875, -0.034210205078125, 0.039276123046875, -0.022308349609375, -0.0144805908203125, -0.0126495361328125, -0.027313232421875, -0.00408172607421875, 0.061431884765625, -0.041015625, -0.0333251953125, -0.01385498046875, 0.021240234375, 0.004150390625, -0.0792236328125, -0.004802703857421875, -0.033905029296875, 0.0160369873046875, -0.01837158203125, -0.04290771484375, -0.0034351348876953125, -0.01175689697265625, 0.01186370849609375, 0.020751953125, -0.01271820068359375, 0.0357666015625, -0.0159149169921875, 0.017578125, -0.0152435302734375, 0.0119171142578125, -0.0167083740234375, -0.028533935546875, 0.00940704345703125, -0.051361083984375, -0.0264892578125, 0.04254150390625, 0.027679443359375, -0.0211334228515625, -0.0321044921875, 0.0009427070617675781, 0.05621337890625, -0.005573272705078125, 0.05194091796875, -0.00983428955078125, 0.02838134765625, -0.0037746429443359375, -0.038116455078125, -0.0004069805145263672, -0.04071044921875, -0.0230560302734375, -0.0209197998046875, 0.018341064453125, 0.03607177734375, -0.04095458984375, -0.0118408203125, -0.0509033203125, 0.00539398193359375, -0.0450439453125, 0.00730133056640625, 0.0267486572265625, 0.000019550323486328125, -0.00943756103515625, -0.003757476806640625, 0.0105133056640625, -0.050384521484375, 0.061279296875, 0.039031982421875, -0.01525115966796875, -0.0179290771484375, 0.07623291015625, 0.01229095458984375, -0.054534912109375, -0.06298828125, -0.0196380615234375, 0.041717529296875, -0.0189056396484375, 0.0269622802734375, 0.033050537109375, -0.033538818359375, 0.036102294921875, 0.010894775390625, -0.008697509765625, -0.006900787353515625, 0.036163330078125, 0.00868988037109375, -0.0168304443359375, 0.0006771087646484375, -0.0242156982421875, 0.032196044921875, 0.0357666015625, -0.0009508132934570312, -0.04620361328125, 0.01520538330078125, 0.07830810546875, -0.020050048828125, 0.0195159912109375, -0.04522705078125, -0.052886962890625, 0.031982421875, -0.0452880859375, 0.00024271011352539062, 0.0015306472778320312, 0.002414703369140625, 0.024139404296875, -0.0006899833679199219, 0.0007486343383789062, 0.020294189453125, 0.04058837890625, 0.0081024169921875, 0.0380859375, 0.01806640625, -0.0169830322265625, -0.020294189453125, -0.006832122802734375, 0.045806884765625, -0.00421142578125, -0.046417236328125, 0.0009589195251464844, -0.01454925537109375, 0.024658203125, 0.0235595703125, -0.0189361572265625, 0.03692626953125, 0.06964111328125, -0.00724029541015625, 0.00212860107421875, -0.01000213623046875, 0.0249176025390625, -0.032073974609375, -0.0240631103515625, 0.0019435882568359375, -0.004302978515625, 0.02337646484375, 0.048736572265625, 0.01010894775390625, 0.03863525390625, -0.036163330078125, 0.049774169921875, 0.004608154296875, 0.0509033203125, -0.008453369140625, -0.01465606689453125, 0.0178070068359375, 0.01422882080078125, -0.006427764892578125, -0.05242919921875, 0.01348114013671875, 0.0178680419921875, 0.04541015625, 0.02862548828125, -0.0263214111328125, 0.01369476318359375, -0.03155517578125, -0.0246429443359375, 0.0246124267578125, 0.06402587890625, -0.00490570068359375, -0.0035495758056640625, 0.035888671875, -0.008636474609375, 0.03924560546875, 0.021636962890625, -0.018157958984375, -0.010223388671875, -0.0219879150390625, -0.0455322265625, -0.01776123046875, -0.01395416259765625, 0.020904541015625, -0.00901031494140625, -0.02569580078125, -0.009979248046875, -0.00881195068359375, -0.00788116455078125, -0.006744384765625, -0.024261474609375, 0.03369140625, 0.010711669921875, 0.0294952392578125, 0.0016956329345703125, -0.0435791015625, 0.03704833984375, -0.00592803955078125, 0.0765380859375, 0.027923583984375, -0.027099609375, -0.00788116455078125, -0.025390625, 0.0015268325805664062, 0.0251922607421875, -0.016815185546875, -0.0217437744140625, -0.00922393798828125, -0.0028362274169921875, 0.034698486328125, -0.0007376670837402344, -0.0028705596923828125, 0.0030994415283203125, -0.006256103515625, -0.0282135009765625, 0.0198211669921875, 0.01409912109375, 0.030364990234375, 0.0004820823669433594, 0.0177001953125, 0.0217742919921875, 0.0244293212890625, -0.0186920166015625, -0.020782470703125, -0.00884246826171875, -0.060943603515625, -0.00881195068359375, 0.0309906005859375, -0.009307861328125, -0.0301971435546875, -0.01873779296875, 0.007160186767578125, 0.00533294677734375, -0.041107177734375, -0.004924774169921875, -0.0198211669921875, 0.027374267578125, -0.0416259765625, -0.0215606689453125, 0.0184783935546875, -0.0287933349609375, -0.00157928466796875, 0.008575439453125, 0.0220489501953125, -0.00827789306640625, -0.0277099609375, -0.0025005340576171875, 0.0181121826171875, -0.00347900390625, 0.00983428955078125, 0.05706787109375, 0.02459716796875, 0.03948974609375, 0.01082611083984375, 0.019805908203125, 0.01190185546875, -0.0017795562744140625, 0.01751708984375, -0.007671356201171875, 0.034393310546875, -0.00724029541015625, 0.00440216064453125, 0.0186767578125, -0.020599365234375, -0.023162841796875, -0.041168212890625, -0.0205841064453125, 0.01357269287109375, 0.0200347900390625, -0.0242767333984375, -0.01509857177734375, -0.00873565673828125, 0.002040863037109375, -0.01094818115234375, -0.03289794921875, 0.028289794921875, 0.006275177001953125, -0.0216522216796875, 0.01082611083984375, 0.002880096435546875, -0.004100799560546875, -0.034820556640625, 0.016357421875, 0.00775146484375, -0.0271759033203125, 0.038970947265625, 0.032867431640625, 0.020263671875, -0.04083251953125, 0.0034046173095703125, 0.0269012451171875, -0.009246826171875, -0.10809326171875, 0.01544952392578125, -0.022247314453125, 0.00258636474609375, 0.005985260009765625, -0.001499176025390625, 0.01617431640625, 0.03167724609375, 0.0032062530517578125, -0.0175323486328125, 0.0120391845703125, -0.021820068359375, -0.02032470703125, -0.00556182861328125, -0.00799560546875, 0.04315185546875, -0.0257720947265625, 0.02044677734375, -0.00902557373046875, 0.00782012939453125, -0.004955291748046875, -0.0035686492919921875, 0.036895751953125, -0.03375244140625, -0.0028667449951171875, 0.049346923828125, 0.037445068359375, -0.0208282470703125, -0.010833740234375, 0.0016870498657226562, -0.035064697265625, -0.00235748291015625, -0.0201568603515625, 0.0031604766845703125, -0.00370025634765625, -0.0302581787109375, -0.08673095703125, 0.07659912109375, -0.006023406982421875, 0.0426025390625, 0.00882720947265625, 0.018310546875, -0.0212249755859375, -0.00782012939453125, -0.045318603515625, 0.036346435546875, -0.0323486328125, 0.023529052734375, -0.066650390625, -0.01000213623046875, -0.0099334716796875, 0.03192138671875, 0.08465576171875, 0.00693511962890625, -0.048004150390625, -0.0182342529296875, 0.047454833984375, 0.06854248046875, 0.0151824951171875, 0.031280517578125, 0.0242156982421875, 0.045135498046875, 0.0771484375, -0.028167724609375, 0.05157470703125, -0.0228729248046875, 0.01470947265625, 0.038238525390625, 0.001953125, -0.0198516845703125, 0.0207061767578125, -0.036773681640625, -0.03228759765625, 0.004329681396484375, 0.01253509521484375, -0.040069580078125, -0.0030612945556640625, 0.02655029296875, 0.049102783203125, -0.07366943359375, -0.00011521577835083008, -0.037841796875, 0.055938720703125, -0.007465362548828125, 0.0270538330078125, 0.0265960693359375, 0.0206298828125, 0.05682373046875, -0.0005984306335449219, 0.0219268798828125, 0.003154754638671875, -0.0112152099609375, 0.09039306640625, 0.033905029296875, 0.0209503173828125, -0.07611083984375, -0.0251922607421875, 0.054168701171875, 0.09991455078125, -0.054901123046875, -0.0157928466796875, 0.015472412109375, -0.01110076904296875, 0.00225067138671875, -0.0296630859375, -0.0005688667297363281, 0.0170135498046875, 0.02471923828125, -0.0161285400390625, -0.01137542724609375, 0.002269744873046875, 0.0248565673828125, -0.0030879974365234375, -0.031280517578125, -0.01154327392578125, -0.016571044921875, -0.07354736328125, 0.031036376953125, 0.00939178466796875, 0.0577392578125, 0.0245513916015625, 0.052825927734375, -0.0318603515625, -0.0238800048828125, 0.032501220703125, 0.0675048828125, 0.0318603515625, -0.04205322265625, 0.00627899169921875, -0.07177734375, -0.005046844482421875, 0.007495880126953125, 0.0291748046875, 0.01525115966796875, 0.03485107421875, 0.040924072265625, -0.02471923828125, -0.01537322998046875, 0.035552978515625, -0.01201629638671875, 0.005619049072265625, -0.041961669921875, -0.031005859375, -0.011962890625, -0.0369873046875, 0.01015472412109375, -0.0016994476318359375, 0.006023406982421875, 0.0213623046875, 0.03619384765625, 0.01375579833984375, 0.0217437744140625, -0.0105133056640625, 0.004932403564453125, -0.0516357421875, 0.0230865478515625, -0.092041015625, -0.004573822021484375, -0.0238189697265625, -0.043426513671875, 0.0159759521484375, 0.03515625, -0.0093536376953125, 0.00484466552734375, 0.02374267578125, -0.00893402099609375, -0.006420135498046875, 0.0004763603210449219, 0.042816162109375, -0.0018758773803710938, 0.005283355712890625, 0.01306915283203125, -0.06842041015625, -0.0268707275390625, -0.01076507568359375, -0.004673004150390625, 0.01259613037109375, -0.0266876220703125, 0.0474853515625, 0.0274200439453125, -0.02911376953125, 0.0272369384765625, -0.0499267578125, -0.0229949951171875, 0.0300750732421875, -0.023651123046875, -0.01436614990234375, 0.0142669677734375, 0.0174407958984375, 0.04486083984375, 0.0311431884765625, -0.0151824951171875, 0.0154266357421875, -0.031463623046875, 0.006816864013671875, -0.0105133056640625, 0.02032470703125, -0.005809783935546875, -0.02105712890625, -0.046783447265625, -0.01522064208984375, 0.0408935546875, 0.0697021484375, -0.006175994873046875, -0.00959014892578125, 0.0338134765625, -0.037567138671875, 0.031005859375, 0.00246429443359375, 0.041778564453125, 0.0261688232421875, 0.01238250732421875, -0.0169677734375, -0.0157928466796875, -0.0167388916015625, 0.009490966796875, 0.0148773193359375, 0.0180816650390625, 0.01222991943359375, 0.010223388671875, -0.0005483627319335938, 0.03228759765625, 0.051116943359375, -0.005825042724609375, 0.033660888671875, 0.0300140380859375, -0.00638580322265625, -0.01134490966796875, -0.033477783203125, -0.010162353515625, -0.043548583984375, 0.00330352783203125, 0.01702880859375, -0.01141357421875, 0.01727294921875, 0.0008096694946289062, -0.019989013671875, -0.0264739990234375, -0.0002846717834472656, 0.0012750625610351562, 0.0110931396484375, -0.0020694732666015625, -0.0369873046875, -0.043701171875, 0.00939178466796875, 0.019317626953125, 0.022735595703125, -0.04425048828125, 0.012725830078125, 0.0001455545425415039, -0.004154205322265625, 0.01232147216796875, 0.0022983551025390625, -0.0092926025390625, -0.0204925537109375, -0.00711822509765625, 0.04095458984375, 0.017669677734375, 0.07080078125, 0.036407470703125, -0.002838134765625, 0.003665924072265625, 0.017181396484375, -0.036468505859375, -0.085205078125, 0.034576416015625, -0.0810546875, -0.0094757080078125, 0.0120086669921875, 0.024688720703125, 0.048583984375, -0.01114654541015625, -0.052032470703125, 0.1103515625, -0.03631591796875, -0.0188751220703125, -0.055084228515625, -0.025054931640625, 0.00881195068359375, -0.0249481201171875, -0.030975341796875, -0.002017974853515625, -0.045562744140625, 0.041259765625, 0.00971221923828125, 0.00013017654418945312, 0.05767822265625, 0.031494140625, -0.048370361328125, -0.015777587890625, -0.05865478515625, -0.01189422607421875, 0.0245361328125, -0.0165252685546875, 0.03753662109375, 0.035186767578125, -0.06707763671875, -0.01180267333984375, -0.0177459716796875, 0.046844482421875, -0.016845703125, -0.017333984375, -0.0172119140625, 0.006023406982421875, 0.035552978515625, 0.076416015625, 0.0191650390625, -0.04351806640625, 0.0309600830078125, -0.0263824462890625, -0.0297698974609375, 0.01100921630859375, 0.01309967041015625, -0.0159912109375, 0.0003039836883544922, 0.0178375244140625, -0.01517486572265625, 0.005062103271484375, -0.0079498291015625, -0.033416748046875, -0.026397705078125, -0.039520263671875, -0.0167694091796875, -0.037933349609375, 0.045440673828125, 0.0157012939453125, -0.031005859375, -0.027679443359375, -0.02264404296875, -0.0139923095703125, -0.0179290771484375, -0.053466796875, 0.01284027099609375, -0.0215606689453125, 0.017974853515625, 0.037689208984375, 0.0183563232421875, 0.00027871131896972656, -0.00022590160369873047, -0.0095062255859375, -0.0094146728515625, 0.019683837890625, -0.00323486328125, 0.0009489059448242188, 0.018280029296875, -0.02423095703125, -0.011566162109375, 0.03564453125, -0.005687713623046875, 0.07330322265625, -0.0222625732421875, 0.07080078125, -0.021728515625, -0.013336181640625, -0.0025691986083984375, -0.031494140625, -0.00600433349609375, 0.0352783203125, -0.01123046875, -0.0220794677734375, 0.0281219482421875, 0.0833740234375, 0.01378631591796875, 0.003620147705078125 ]
3b46f1314a45edcdac5ee7added0f0189cad0ec4
Wordpress Stackexchange Q: How to remove categories filter from wordpress admin? I removed the categories column from "All posts" page by applying this code. add_filter("manage_edit-post_columns", "my_post_edit_columns"); function my_post_edit_columns($columns){ unset($columns['categories']); return $columns; } This code removed categories column. But still i see the categories filter in the top. Is there a way to remove it other than using CSS to hide it? Thanks A: I tested this and it works for removing the categories dropdown on the All Posts page: add_action( 'load-edit.php', 'no_category_dropdown' ); function no_category_dropdown() { add_filter( 'wp_dropdown_cats', '__return_false' ); } -- below: old answer when I misunderstood the question -- The code you posted works just fine for me. But here's an alternative you might try: add_filter("manage_posts_columns", "my_post_edit_columns" ); function my_post_edit_columns($columns){ unset($columns['categories']); return $columns; } This will also impact other post types that have a 'categories' column.
Q: How to remove categories filter from wordpress admin? I removed the categories column from "All posts" page by applying this code. add_filter("manage_edit-post_columns", "my_post_edit_columns"); function my_post_edit_columns($columns){ unset($columns['categories']); return $columns; } This code removed categories column. But still i see the categories filter in the top. Is there a way to remove it other than using CSS to hide it? Thanks A: I tested this and it works for removing the categories dropdown on the All Posts page: add_action( 'load-edit.php', 'no_category_dropdown' ); function no_category_dropdown() { add_filter( 'wp_dropdown_cats', '__return_false' ); } -- below: old answer when I misunderstood the question -- The code you posted works just fine for me. But here's an alternative you might try: add_filter("manage_posts_columns", "my_post_edit_columns" ); function my_post_edit_columns($columns){ unset($columns['categories']); return $columns; } This will also impact other post types that have a 'categories' column. A: I think the select elements are passed through the wp_dropdown_cats filter. So you should be able to add a filter to that which returns a blank string. A: Here you go add_filter('wp_dropdown_cats', '__return_false'); Here is the original wp_dropdown_cats function, this filter will return default post categories
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:415713", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37633" }
[ 0.047271728515625, 0.004634857177734375, 0.03759765625, -0.0220947265625, 0.025482177734375, -0.0226287841796875, 0.047088623046875, -0.04583740234375, 0.02142333984375, 0.0037326812744140625, 0.00009679794311523438, -0.0270538330078125, -0.001949310302734375, -0.0445556640625, -0.0142059326171875, -0.0263519287109375, 0.02923583984375, -0.0077667236328125, 0.0374755859375, 0.004398345947265625, 0.009490966796875, 0.0255584716796875, 0.0221710205078125, 0.029052734375, -0.0160064697265625, 0.0148162841796875, 0.0340576171875, -0.0303192138671875, -0.003597259521484375, -0.035491943359375, -0.005615234375, 0.02886962890625, -0.004817962646484375, 0.02178955078125, 0.007411956787109375, 0.01052093505859375, -0.024200439453125, 0.020843505859375, 0.02703857421875, -0.007476806640625, 0.029296875, -0.025146484375, -0.00791168212890625, 0.046661376953125, -0.020050048828125, -0.0167236328125, 0.01200103759765625, -0.03729248046875, -0.00409698486328125, -0.07318115234375, 0.0213775634765625, 0.032196044921875, 0.06427001953125, -0.089599609375, -0.0311737060546875, -0.014007568359375, -0.016326904296875, 0.026763916015625, 0.0391845703125, 0.01486968994140625, -0.04052734375, -0.00749969482421875, 0.00624847412109375, -0.075439453125, -0.00803375244140625, 0.000988006591796875, -0.0010786056518554688, 0.01165008544921875, -0.044769287109375, -0.0018482208251953125, 0.0328369140625, -0.038909912109375, 0.00714874267578125, -0.0235443115234375, -0.00896453857421875, -0.005096435546875, 0.0195770263671875, 0.0006561279296875, 0.00946807861328125, -0.01221466064453125, 0.01166534423828125, -0.018157958984375, -0.005855560302734375, -0.01123046875, -0.0030689239501953125, -0.004940032958984375, -0.0012750625610351562, -0.011993408203125, -0.029327392578125, -0.015716552734375, -0.0182647705078125, -0.0248870849609375, -0.0726318359375, 0.032623291015625, 0.0264129638671875, -0.0162506103515625, 0.04278564453125, 0.042388916015625, -0.005420684814453125, -0.0164794921875, -0.0104217529296875, -0.03369140625, -0.022125244140625, -0.0116729736328125, 0.01259613037109375, 0.01568603515625, -0.039215087890625, -0.0024929046630859375, 0.0611572265625, 0.0604248046875, 0.0275421142578125, -0.0050506591796875, -0.0178070068359375, 0.03070068359375, -0.044158935546875, 0.0079345703125, -0.03741455078125, -0.0141143798828125, -0.02740478515625, 0.033782958984375, 0.005840301513671875, 0.00753021240234375, -0.017730712890625, -0.0236053466796875, 0.0230255126953125, -0.01800537109375, -0.0533447265625, 0.0171966552734375, 0.00655364990234375, -0.03582763671875, -0.06036376953125, 0.036468505859375, 0.09912109375, 0.046356201171875, 0.040863037109375, -0.01477813720703125, 0.01041412353515625, 0.00778961181640625, 0.031097412109375, -0.00008940696716308594, 0.012908935546875, -0.026885986328125, -0.00820159912109375, 0.025909423828125, 0.004177093505859375, -0.0008549690246582031, 0.0205078125, 0.0092926025390625, 0.006076812744140625, 0.007965087890625, -0.0302276611328125, 0.0058441162109375, 0.07012939453125, 0.00724029541015625, -0.019378662109375, 0.007312774658203125, 0.057525634765625, -0.02398681640625, -0.0753173828125, -0.0633544921875, 0.02783203125, 0.0204925537109375, 0.03179931640625, -0.01050567626953125, -0.0291290283203125, -0.01546478271484375, -0.06500244140625, -0.0166168212890625, 0.02001953125, -0.060211181640625, 0.02227783203125, -0.01071929931640625, 0.00907135009765625, -0.005916595458984375, 0.011749267578125, 0.0263671875, -0.01776123046875, -0.0209503173828125, 0.030242919921875, 0.0306396484375, -0.0206298828125, -0.0347900390625, -0.01500701904296875, 0.006206512451171875, -0.047821044921875, 0.01251983642578125, 0.024505615234375, 0.050750732421875, -0.00931549072265625, 0.026123046875, 0.07440185546875, 0.029449462890625, -0.023773193359375, -0.04248046875, 0.014556884765625, -0.0136260986328125, -0.01092529296875, -0.01824951171875, 0.012481689453125, 0.0189056396484375, 0.0406494140625, 0.011138916015625, 0.002460479736328125, 0.0136260986328125, -0.028839111328125, 0.0078125, -0.0079498291015625, 0.023773193359375, -0.044158935546875, 0.0151824951171875, 0.03692626953125, -0.00791168212890625, -0.037261962890625, 0.01483154296875, 0.006496429443359375, 0.0006260871887207031, -0.007625579833984375, -0.01189422607421875, -0.0216522216796875, -0.00920867919921875, -0.0157318115234375, -0.00980377197265625, -0.0289306640625, 0.0243682861328125, 0.044921875, -0.003406524658203125, -0.030487060546875, -0.0311126708984375, 0.0232391357421875, -0.004596710205078125, -0.037445068359375, 0.05364990234375, 0.0218353271484375, 0.038116455078125, -0.041778564453125, -0.00705718994140625, -0.0063629150390625, -0.0218048095703125, 0.0031414031982421875, 0.02935791015625, 0.0217132568359375, 0.039520263671875, -0.0224456787109375, -0.0075836181640625, 0.038848876953125, -0.06427001953125, -0.015045166015625, 0.0082244873046875, 0.0036678314208984375, 0.002346038818359375, 0.03192138671875, -0.0074920654296875, 0.025970458984375, 0.0096893310546875, 0.044281005859375, 0.0229949951171875, 0.0021686553955078125, -0.032196044921875, 0.0170440673828125, 0.0070343017578125, 0.00975799560546875, -0.0272674560546875, -0.050323486328125, -0.0017595291137695312, 0.05059814453125, -0.00907135009765625, 0.0335693359375, 0.017547607421875, -0.0194854736328125, -0.01549530029296875, 0.025787353515625, -0.0033397674560546875, -0.0099334716796875, 0.0209197998046875, 0.01654052734375, 0.008819580078125, -0.0372314453125, 0.005191802978515625, -0.0251922607421875, 0.00408935546875, -0.01396942138671875, 0.051055908203125, 0.033660888671875, -0.0193939208984375, -0.012237548828125, -0.054840087890625, 0.0188446044921875, -0.0283660888671875, -0.0191650390625, -0.01535797119140625, 0.0074310302734375, 0.00725555419921875, -0.002105712890625, -0.0024280548095703125, -0.00980377197265625, -0.01262664794921875, 0.01381683349609375, -0.010162353515625, 0.0117950439453125, -0.003459930419921875, 0.0287322998046875, 0.0592041015625, 0.00502777099609375, 0.013275146484375, 0.01136016845703125, 0.005489349365234375, 0.031005859375, -0.0034084320068359375, -0.007511138916015625, 0.015960693359375, -0.0361328125, 0.03289794921875, 0.02117919921875, 0.0003523826599121094, 0.00376129150390625, -0.042633056640625, -0.01739501953125, 0.002666473388671875, -0.05767822265625, -0.01551055908203125, 0.002788543701171875, -0.01184844970703125, -0.0083465576171875, -0.0051727294921875, -0.01010894775390625, -0.0011386871337890625, 0.0004405975341796875, 0.00620269775390625, 0.03643798828125, 0.0010471343994140625, -0.03607177734375, 0.0203399658203125, -0.0289764404296875, 0.00039076805114746094, -0.019500732421875, -0.01605224609375, 0.01727294921875, 0.1131591796875, 0.022979736328125, -0.082763671875, 0.0005946159362792969, -0.058837890625, -0.034759521484375, 0.05755615234375, 0.019744873046875, -0.021240234375, 0.00807952880859375, -0.0038299560546875, 0.00930023193359375, 0.0259552001953125, -0.0177001953125, -0.00498199462890625, -0.039642333984375, 0.0114898681640625, -0.00025177001953125, -0.009124755859375, 0.0263214111328125, 0.023284912109375, -0.0044097900390625, -0.028594970703125, -0.02484130859375, -0.007358551025390625, -0.0121002197265625, 0.0230560302734375, -0.0006461143493652344, -0.00737762451171875, -0.01163482666015625, 0.037078857421875, 0.01641845703125, -0.01480865478515625, 0.0231781005859375, -0.037811279296875, 0.0311737060546875, 0.0093536376953125, 0.034942626953125, -0.0293121337890625, 0.00856781005859375, -0.03289794921875, -0.0021648406982421875, -0.0211944580078125, -0.004451751708984375, -0.01139068603515625, 0.0247344970703125, -0.0013446807861328125, -0.062347412109375, 0.039642333984375, -0.03643798828125, -0.037994384765625, -0.002315521240234375, 0.00008296966552734375, 0.03338623046875, 0.0755615234375, -0.04083251953125, -0.021728515625, -0.007266998291015625, 0.004184722900390625, 0.007335662841796875, -0.050537109375, -0.0292205810546875, -0.0343017578125, -0.11834716796875, 0.026641845703125, -0.0079803466796875, -0.0288238525390625, -0.03692626953125, 0.03790283203125, -0.08624267578125, -0.03570556640625, 0.054473876953125, -0.046600341796875, 0.0027713775634765625, 0.0014238357543945312, -0.0108642578125, -0.04779052734375, -0.043365478515625, 0.007709503173828125, -0.083984375, 0.001068115234375, -0.03179931640625, 0.03094482421875, -0.01227569580078125, 0.061004638671875, -0.036834716796875, 0.0217742919921875, 0.037078857421875, -0.009429931640625, 0.0014171600341796875, -0.01427459716796875, -0.01474761962890625, -0.01392364501953125, -0.006549835205078125, -0.037567138671875, -0.0241241455078125, -0.04547119140625, -0.0169677734375, -0.0002541542053222656, -0.040618896484375, 0.02484130859375, -0.03369140625, 0.01024627685546875, -0.0117645263671875, -0.049163818359375, -0.07489013671875, -0.024627685546875, -0.05902099609375, 0.0233306884765625, -0.0269317626953125, -0.039306640625, 0.0298309326171875, 0.0240020751953125, -0.0103912353515625, -0.006694793701171875, 0.0638427734375, 0.01910400390625, -0.038726806640625, -0.0306396484375, 0.0193939208984375, 0.039306640625, -0.0467529296875, 0.0963134765625, 0.036895751953125, -0.0137786865234375, 0.07940673828125, -0.003326416015625, -0.020172119140625, -0.057830810546875, 0.0743408203125, 0.0023555755615234375, -0.001308441162109375, -0.009735107421875, -0.0369873046875, 0.0753173828125, 0.0115203857421875, 0.0169525146484375, -0.0207366943359375, 0.00916290283203125, 0.027679443359375, 0.042816162109375, -0.0589599609375, -0.026031494140625, -0.0202484130859375, 0.01233673095703125, -0.029937744140625, 0.05401611328125, 0.033660888671875, 0.00003224611282348633, 0.0216522216796875, 0.0254669189453125, -0.0081787109375, -0.038055419921875, -0.007038116455078125, -0.042694091796875, 0.03375244140625, -0.07684326171875, -0.030670166015625, 0.00632476806640625, -0.005771636962890625, 0.01247406005859375, -0.012237548828125, -0.039794921875, -0.016815185546875, -0.00395965576171875, 0.025909423828125, 0.01502227783203125, -0.0165252685546875, 0.022552490234375, 0.01531982421875, 0.0155487060546875, -0.002346038818359375, -0.047454833984375, -0.0119476318359375, -0.033050537109375, 0.03863525390625, 0.01461029052734375, -0.010894775390625, 0.057037353515625, 0.006214141845703125, 0.01245880126953125, 0.0211334228515625, -0.006008148193359375, 0.0258636474609375, 0.016448974609375, 0.016265869140625, 0.0222625732421875, -0.0028781890869140625, -0.0029888153076171875, -0.0166168212890625, -0.013671875, -0.0654296875, -0.01227569580078125, 0.01242828369140625, 0.043731689453125, 0.0031642913818359375, -0.0362548828125, 0.0279998779296875, 0.01110076904296875, -0.0098114013671875, 0.045867919921875, 0.01001739501953125, -0.0604248046875, -0.01446533203125, -0.0165863037109375, 0.0007314682006835938, -0.02130126953125, -0.00257110595703125, 0.0170440673828125, -0.0164337158203125, 0.006988525390625, 0.0221099853515625, -0.013671875, -0.0227508544921875, -0.022857666015625, -0.04718017578125, -0.0206146240234375, 0.00550079345703125, -0.043548583984375, -0.03668212890625, 0.0082855224609375, -0.015350341796875, 0.0309295654296875, 0.007099151611328125, 0.05169677734375, -0.0026073455810546875, -0.047454833984375, 0.042388916015625, -0.00795745849609375, 0.0701904296875, 0.025787353515625, -0.04095458984375, -0.0265655517578125, -0.04638671875, -0.0246734619140625, -0.028472900390625, -0.030426025390625, -0.0304107666015625, 0.01502227783203125, 0.027099609375, -0.00250244140625, 0.0235443115234375, -0.0174560546875, -0.04254150390625, 0.0071563720703125, 0.046630859375, -0.005275726318359375, -0.0202484130859375, 0.038330078125, 0.00646209716796875, 0.0261077880859375, -0.0045166015625, 0.0167083740234375, 0.005329132080078125, -0.017364501953125, 0.035400390625, -0.0380859375, -0.057373046875, 0.006923675537109375, -0.09088134765625, -0.0139312744140625, 0.0322265625, -0.0261077880859375, 0.00919342041015625, -0.016632080078125, 0.0032672882080078125, -0.0261688232421875, -0.0014295578002929688, -0.02093505859375, 0.01078033447265625, 0.0115966796875, 0.000029325485229492188, 0.06292724609375, -0.04302978515625, -0.034423828125, 0.0582275390625, -0.045989990234375, 0.07318115234375, 0.0194244384765625, -0.0186920166015625, 0.06817626953125, 0.042144775390625, -0.000020325183868408203, 0.027923583984375, 0.0216217041015625, 0.0174560546875, -0.0206451416015625, -0.0301055908203125, 0.00649261474609375, 0.00878143310546875, 0.0225372314453125, -0.0149078369140625, 0.00603485107421875, 0.0247802734375, -0.02349853515625, -0.00653839111328125, 0.066162109375, 0.05828857421875, -0.0947265625, 0.0191802978515625, 0.041290283203125, 0.0127105712890625, -0.0020236968994140625, 0.01067352294921875, -0.03961181640625, -0.0275421142578125, -0.004863739013671875, -0.01180267333984375, -0.038177490234375, 0.0034122467041015625, 0.0304412841796875, -0.0026397705078125, -0.004840850830078125, 0.0284423828125, 0.01541900634765625, -0.01512908935546875, -0.0085906982421875, 0.0184173583984375, 0.016387939453125, 0.00959014892578125, 0.0111541748046875, 0.0218048095703125, -0.056732177734375, -0.0718994140625, -0.0005393028259277344, 0.00843048095703125, -0.0517578125, 0.0233612060546875, 0.0025081634521484375, -0.024078369140625, 0.038818359375, -0.0218048095703125, 0.0227203369140625, 0.0033588409423828125, -0.069580078125, -0.02899169921875, -0.022491455078125, 0.005382537841796875, 0.038604736328125, -0.029144287109375, 0.02154541015625, -0.00765228271484375, -0.01348114013671875, -0.007083892822265625, -0.010498046875, 0.07037353515625, -0.035797119140625, -0.0255126953125, 0.005893707275390625, 0.0014734268188476562, 0.00835418701171875, 0.00347900390625, 0.042816162109375, 0.0018758773803710938, 0.02032470703125, 0.021453857421875, 0.0200653076171875, -0.0120849609375, 0.01447296142578125, -0.0703125, 0.04229736328125, -0.012054443359375, 0.0465087890625, 0.01959228515625, -0.0019588470458984375, -0.03692626953125, -0.0281829833984375, -0.043731689453125, 0.06695556640625, 0.075439453125, 0.03729248046875, -0.02423095703125, -0.015869140625, 0.01407623291015625, 0.0312042236328125, 0.029083251953125, 0.0009965896606445312, 0.0237579345703125, -0.0179443359375, 0.0296478271484375, 0.0677490234375, 0.013214111328125, -0.02398681640625, -0.0218658447265625, -0.004795074462890625, 0.0394287109375, -0.028350830078125, 0.0280914306640625, -0.00835418701171875, -0.019866943359375, -0.0010004043579101562, 0.0156097412109375, 0.034027099609375, 0.016448974609375, -0.004367828369140625, 0.002124786376953125, 0.01026153564453125, 0.012176513671875, -0.0186309814453125, 0.005870819091796875, 0.04254150390625, 0.0301513671875, -0.051361083984375, -0.01395416259765625, -0.0241851806640625, 0.05108642578125, 0.01500701904296875, 0.050262451171875, 0.0186920166015625, 0.01617431640625, 0.044219970703125, 0.0021953582763671875, 0.03424072265625, 0.0224761962890625, -0.0394287109375, 0.0389404296875, 0.033721923828125, 0.0330810546875, 0.0222015380859375, 0.045745849609375, -0.0036869049072265625, 0.0133209228515625, -0.035430908203125, -0.07196044921875, 0.01318359375, 0.0174560546875, 0.0170135498046875, 0.03228759765625, 0.011505126953125, -0.03472900390625, 0.062286376953125, -0.0450439453125, -0.004329681396484375, 0.035919189453125, 0.044158935546875, -0.005123138427734375, -0.014007568359375, -0.035675048828125, -0.0036163330078125, -0.054718017578125, 0.02886962890625, 0.01393890380859375, 0.04913330078125, 0.01139068603515625, 0.0537109375, -0.021881103515625, -0.0216064453125, -0.01922607421875, 0.00572967529296875, -0.010589599609375, 0.0161895751953125, -0.05035400390625, -0.0277862548828125, 0.006557464599609375, 0.043792724609375, 0.002941131591796875, 0.00580596923828125, 0.042755126953125, 0.053802490234375, -0.0180816650390625, -0.0189666748046875, 0.020538330078125, -0.00909423828125, -0.0238800048828125, -0.035980224609375, 0.00930023193359375, 0.02630615234375, 0.0023193359375, 0.0177001953125, 0.0177001953125, 0.042633056640625, 0.00991058349609375, -0.01971435546875, 0.01348876953125, -0.0496826171875, 0.00885009765625, 0.00920867919921875, 0.0289459228515625, 0.0178680419921875, -0.09381103515625, -0.0102081298828125, -0.05474853515625, -0.060302734375, 0.05450439453125, 0.0428466796875, -0.03338623046875, 0.0232696533203125, 0.01898193359375, -0.041778564453125, 0.023040771484375, 0.00695037841796875, 0.0066375732421875, -0.038299560546875, 0.00923919677734375, -0.02862548828125, 0.0012035369873046875, 0.0025386810302734375, 0.01001739501953125, 0.0372314453125, -0.002216339111328125, 0.0227813720703125, -0.0139312744140625, 0.01538848876953125, -0.027557373046875, 0.01297760009765625, -0.039520263671875, -0.03204345703125, 0.03497314453125, -0.001953125, -0.01473236083984375, 0.00917816162109375, 0.00937652587890625, 0.006561279296875, 0.0460205078125, -0.07080078125, 0.0109100341796875, -0.0013093948364257812, -0.00879669189453125, -0.05621337890625, 0.014678955078125, -0.0107879638671875, 0.0003533363342285156, -0.032470703125, -0.02264404296875, 0.037353515625, 0.0262908935546875, -0.00229644775390625, 0.01532745361328125, 0.005889892578125, 0.0160064697265625, 0.0007252693176269531, 0.0404052734375, 0.0004425048828125, 0.039825439453125, -0.06317138671875, 0.006725311279296875, 0.0626220703125, 0.01024627685546875, 0.025787353515625, 0.03961181640625, 0.0015468597412109375, 0.06890869140625, -0.06402587890625, -0.056365966796875, 0.036712646484375, 0.0293731689453125, 0.0009250640869140625, 0.0292205810546875, -0.02117919921875, -0.035919189453125, -0.01025390625, 0.0257110595703125, -0.042083740234375, -0.015625, -0.037750244140625, -0.00079345703125, -0.0245513916015625, -0.09503173828125, -0.0997314453125, 0.01116180419921875, 0.03125, -0.002071380615234375, -0.056396484375, 0.0482177734375, -0.031585693359375, 0.04046630859375, -0.0256500244140625, 0.0124053955078125, 0.0032138824462890625, 0.05950927734375, -0.043060302734375, 0.0008006095886230469, -0.01445770263671875, -0.006526947021484375, -0.0301971435546875, -0.0025806427001953125, 0.013641357421875, -0.0159759521484375, -0.0096588134765625, 0.0015411376953125, 0.01093292236328125, 0.04815673828125, 0.003620147705078125, -0.00783538818359375, 0.000011026859283447266, 0.030029296875, -0.031646728515625, -0.04705810546875, 0.0037746429443359375, 0.0188751220703125, 0.01617431640625, 0.00732421875, 0.0029239654541015625, 0.0174407958984375, -0.02471923828125, -0.06085205078125, 0.04522705078125, -0.01361083984375, -0.0283355712890625, -0.026123046875, 0.01399993896484375, -0.0128936767578125, 0.01364898681640625, 0.010528564453125, -0.0204010009765625, -0.0171661376953125, 0.0186920166015625, 0.03125, 0.033843994140625, 0.00952911376953125, 0.0222930908203125, -0.03875732421875, 0.03814697265625, 0.00927734375, 0.040191650390625, -0.0273590087890625, -0.00844573974609375, 0.0220794677734375, 0.031036376953125, -0.03564453125, -0.0175323486328125, 0.00799560546875, 0.01397705078125, 0.0166015625, -0.02593994140625, -0.0789794921875, -0.06146240234375, 0.0662841796875, 0.027099609375, 0.027008056640625, 0.0177001953125, -0.06988525390625, -0.048248291015625, 0.00690460205078125, -0.043975830078125, 0.013519287109375, -0.061004638671875, 0.01898193359375, -0.01255035400390625, -0.006465911865234375, 0.032958984375, -0.04522705078125, -0.0115509033203125, 0.004901885986328125, 0.01056671142578125, 0.01087188720703125, -0.016876220703125, 0.05328369140625, -0.058837890625, 0.00628662109375, -0.019195556640625, -0.03497314453125, -0.007472991943359375, -0.045623779296875, -0.010345458984375, -0.047607421875, -0.04547119140625, 0.0102081298828125, 0.041412353515625, -0.0287628173828125, 0.029937744140625, -0.018402099609375, 0.01488494873046875, -0.0213470458984375, 0.016082763671875, -0.0010461807250976562, 0.014404296875, 0.005474090576171875, 0.02520751953125, 0.025482177734375, 0.041473388671875, 0.020263671875, 0.01544189453125, -0.0172576904296875, 0.060882568359375, 0.0382080078125, -0.053680419921875, 0.04229736328125, -0.0313720703125, -0.0229034423828125, 0.01861572265625, -0.021881103515625, -0.04730224609375, 0.0128631591796875, -0.003265380859375, 0.0164794921875, 0.0211334228515625 ]
20e5d6c7464925402251484058d8eddd9f8eb14c
Wordpress Stackexchange Q: Create a page without adding a page in the Database I am trying to include a special Archive page with my theme, right now I have a PHP file with Template Name: Archives Template at the top and I the user must create a blank archive POST PAGE and then select this as the template. The content for creating the page is blank so nothing is added into the database for the page content. Is there anyway to make it where they do not have to do this? A: An additional remark to Brian Fegter's answer. if you want to flush the rewrites rules programmatically instead of visiting Settings->Permalinks, you can use flush_rewrite_rules(). However, don't put it on init hook, as the Wordpress Codex strongly recommands. You can put both flush_rewrite_rules() method and the foo_add_rewrite_rule() on register_activation_hook. register_activation_hook( __FILE__, 'myplugin_flush_rewrites' ); function myplugin_flush_rewrites() { add_rewrite_rule('^foobar?','index.php?is_foobar_page=1&post_type=custom_post_type','top'); flush_rewrite_rules(); }
Q: Create a page without adding a page in the Database I am trying to include a special Archive page with my theme, right now I have a PHP file with Template Name: Archives Template at the top and I the user must create a blank archive POST PAGE and then select this as the template. The content for creating the page is blank so nothing is added into the database for the page content. Is there anyway to make it where they do not have to do this? A: An additional remark to Brian Fegter's answer. if you want to flush the rewrites rules programmatically instead of visiting Settings->Permalinks, you can use flush_rewrite_rules(). However, don't put it on init hook, as the Wordpress Codex strongly recommands. You can put both flush_rewrite_rules() method and the foo_add_rewrite_rule() on register_activation_hook. register_activation_hook( __FILE__, 'myplugin_flush_rewrites' ); function myplugin_flush_rewrites() { add_rewrite_rule('^foobar?','index.php?is_foobar_page=1&post_type=custom_post_type','top'); flush_rewrite_rules(); } A: To wit, this technically isn't a 'page', however it's a way to surface content using mod_rewrite. The goal here is to add a URI segment of foobar that will trigger a custom query, then include the specified template file. Add a rewrite rule: add_action('init', 'foo_add_rewrite_rule'); function foo_add_rewrite_rule(){ add_rewrite_rule('^foobar?','index.php?is_foobar_page=1&post_type=custom_post_type','top'); //Customize this query string - keep is_foobar_page=1 intact } See the WP_Query documentation for more information about customizing the query string. Register a new query var: add_action('query_vars','foo_set_query_var'); function foo_set_query_var($vars) { array_push($vars, 'is_foobar_page'); return $vars; } Force WP to select your page template: add_filter('template_include', 'foo_include_template', 1000, 1); function foo_include_template($template){ if(get_query_var('is_foobar_page')){ $new_template = WP_CONTENT_DIR.'/themes/your-theme/template-name.php'; if(file_exists($new_template)) $template = $new_template; } return $template; } Flush the rewrites by visiting Settings->Permalinks, then visit http://yourdomain.com/foobar A: I was able to stop the is_front_page() and is_home() functions from evaluating to true for my "fake" page by adding a pre_get_posts method add_action( 'pre_get_posts', 'foo_pre_get_posts', 1 ); function foo_pre_get_posts( $query ) { // check if the user is requesting an admin page // or current query is not the main query if ( is_admin() || ! $query->is_main_query() ){ return; } // edit the query only when we are dealing with our "fake" pages // if it isn't, return if ( get_query_var('is_foobar_page') ) { $query->set('post_type', 'page'); $query->is_home = false; } }
wordpress
{ "language": "en", "length": 358, "provenance": "stackexchange_00019.jsonl.gz:415716", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37644" }
[ 0.045928955078125, 0.00601959228515625, -0.03253173828125, -0.04931640625, 0.0107879638671875, -0.0330810546875, 0.002239227294921875, -0.0211029052734375, -0.005649566650390625, -0.0243377685546875, -0.00467681884765625, -0.011474609375, 0.0096282958984375, -0.04620361328125, 0.049346923828125, -0.0157470703125, 0.033447265625, -0.001987457275390625, 0.03228759765625, -0.02288818359375, 0.035858154296875, -0.0104217529296875, 0.024078369140625, 0.0419921875, 0.0257568359375, -0.0421142578125, 0.08148193359375, -0.004047393798828125, 0.01448822021484375, -0.0186920166015625, 0.0284576416015625, -0.017974853515625, 0.0404052734375, -0.0010442733764648438, -0.0013561248779296875, 0.015380859375, -0.029541015625, 0.007617950439453125, 0.0119171142578125, -0.002593994140625, 0.03594970703125, -0.0279541015625, 0.010589599609375, 0.0034351348876953125, -0.00492095947265625, -0.00766754150390625, 0.0301666259765625, -0.05255126953125, -0.0043487548828125, -0.0079345703125, -0.0093841552734375, 0.0194549560546875, -0.006992340087890625, 0.0188751220703125, -0.00666046142578125, 0.001743316650390625, -0.0036830902099609375, -0.036041259765625, 0.0149078369140625, -0.00629425048828125, -0.00476837158203125, -0.0117645263671875, 0.03375244140625, 0.01334381103515625, 0.0187530517578125, 0.0013208389282226562, 0.0055999755859375, 0.02362060546875, -0.0626220703125, 0.01242828369140625, 0.031890869140625, -0.042572021484375, -0.0020503997802734375, -0.02142333984375, -0.0302276611328125, 0.0038051605224609375, 0.01160430908203125, -0.006130218505859375, -0.0015058517456054688, -0.0043487548828125, 0.0187530517578125, 0.00341033935546875, 0.004482269287109375, -0.05047607421875, 0.0258331298828125, -0.024169921875, -0.01361846923828125, -0.00691986083984375, -0.049224853515625, -0.01016998291015625, -0.0259552001953125, -0.0755615234375, 0.00910186767578125, -0.01311492919921875, 0.0035495758056640625, -0.029144287109375, 0.022308349609375, 0.037994384765625, 0.004138946533203125, 0.041229248046875, 0.0020847320556640625, -0.05859375, 0.10382080078125, -0.06689453125, 0.022064208984375, 0.05645751953125, -0.005207061767578125, -0.0247039794921875, 0.04620361328125, -0.0197601318359375, 0.01141357421875, 0.034912109375, -0.01230621337890625, 0.006671905517578125, -0.02569580078125, -0.0052490234375, -0.046875, -0.00595855712890625, -0.004608154296875, -0.01131439208984375, -0.0056610107421875, 0.0146331787109375, -0.007434844970703125, 0.0112762451171875, -0.0058746337890625, -0.0079498291015625, 0.0022296905517578125, -0.033111572265625, 0.0158538818359375, -0.00437164306640625, -0.009613037109375, 0.0259552001953125, 0.0258026123046875, 0.00015866756439208984, -0.0142364501953125, -0.0061492919921875, 0.029693603515625, -0.0280914306640625, -0.00951385498046875, 0.037017822265625, -0.0181427001953125, -0.058319091796875, -0.00775909423828125, -0.0037784576416015625, 0.0121612548828125, 0.0292510986328125, 0.007328033447265625, 0.00946807861328125, -0.004817962646484375, -0.03314208984375, 0.00004500150680541992, -0.039642333984375, 0.056640625, -0.0243988037109375, -0.0328369140625, -0.053497314453125, -0.0203704833984375, -0.011810302734375, -0.00016200542449951172, -0.0174407958984375, 0.0576171875, 0.0012235641479492188, -0.0221405029296875, 0.007720947265625, -0.035308837890625, -0.0181427001953125, -0.030029296875, -0.0096893310546875, 0.0218963623046875, 0.0212860107421875, 0.0379638671875, -0.03607177734375, 0.0281829833984375, -0.0202484130859375, -0.02923583984375, 0.0011081695556640625, 0.01509857177734375, -0.005840301513671875, -0.00846099853515625, 0.05767822265625, -0.005611419677734375, -0.0274658203125, -0.00011330842971801758, -0.009735107421875, -0.06781005859375, 0.08856201171875, -0.0004887580871582031, 0.093017578125, -0.01111602783203125, 0.003055572509765625, 0.0258636474609375, 0.040863037109375, -0.0300750732421875, -0.005382537841796875, 0.0133209228515625, -0.0298614501953125, 0.02984619140625, -0.01010894775390625, 0.008026123046875, -0.0011692047119140625, -0.0201873779296875, 0.024505615234375, 0.004611968994140625, 0.013153076171875, -0.0257110595703125, 0.03411865234375, -0.029205322265625, 0.048095703125, -0.00702667236328125, 0.0255889892578125, 0.019775390625, 0.0211944580078125, -0.035858154296875, -0.013763427734375, -0.01160430908203125, 0.01201629638671875, -0.0011205673217773438, 0.05621337890625, 0.00042247772216796875, 0.041900634765625, 0.0226898193359375, -0.02703857421875, 0.0150146484375, 0.0079193115234375, 0.05072021484375, -0.034393310546875, -0.02398681640625, -0.04754638671875, -0.030029296875, -0.0162506103515625, -0.080078125, 0.08746337890625, 0.0014657974243164062, 0.0210723876953125, -0.039886474609375, -0.0238800048828125, -0.04864501953125, -0.06097412109375, 0.01479339599609375, 0.0740966796875, 0.021728515625, 0.03485107421875, -0.00757598876953125, 0.035430908203125, 0.0102386474609375, -0.04443359375, 0.012603759765625, 0.0197906494140625, -0.0002989768981933594, 0.0662841796875, 0.0187530517578125, 0.0254974365234375, -0.02532958984375, -0.01500701904296875, -0.0026912689208984375, 0.01485443115234375, -0.003749847412109375, -0.01198577880859375, 0.0052947998046875, -0.00034618377685546875, 0.005939483642578125, 0.00830841064453125, -0.00942230224609375, -0.00040531158447265625, 0.0135345458984375, 0.027801513671875, 0.0277252197265625, 0.019683837890625, -0.03125, 0.0235748291015625, 0.0202178955078125, 0.003826141357421875, 0.006992340087890625, 0.0038661956787109375, 0.019622802734375, -0.019989013671875, -0.0120697021484375, -0.0015802383422851562, 0.029388427734375, -0.004924774169921875, -0.0184173583984375, 0.0203094482421875, 0.01470947265625, -0.0176544189453125, -0.015655517578125, -0.041351318359375, 0.0192718505859375, -0.01715087890625, 0.006137847900390625, 0.023895263671875, 0.01212310791015625, 0.048065185546875, -0.0197296142578125, 0.044677734375, 0.01445770263671875, -0.00039887428283691406, 0.0108795166015625, -0.04718017578125, 0.034942626953125, -0.029296875, 0.06585693359375, 0.07244873046875, 0.002410888671875, -0.0087432861328125, 0.0015277862548828125, -0.0187835693359375, -0.0100250244140625, 0.0076141357421875, -0.01445770263671875, -0.0184173583984375, -0.029327392578125, 0.0245208740234375, 0.034393310546875, 0.0246734619140625, 0.039093017578125, 0.0174102783203125, 0.008392333984375, 0.0526123046875, 0.0162353515625, -0.03338623046875, 0.0234375, -0.044342041015625, -0.01387786865234375, 0.00597381591796875, -0.023895263671875, -0.01552581787109375, 0.021728515625, -0.0020427703857421875, -0.038818359375, -0.023895263671875, -0.032989501953125, -0.099365234375, -0.06976318359375, -0.03790283203125, 0.00199127197265625, 0.009735107421875, 0.0059661865234375, 0.058807373046875, 0.002422332763671875, -0.07818603515625, -0.00728607177734375, -0.0035495758056640625, -0.0249481201171875, 0.0093994140625, -0.018341064453125, 0.00670623779296875, -0.013946533203125, 0.0296783447265625, 0.007678985595703125, 0.0028247833251953125, -0.01324462890625, -0.017242431640625, -0.007720947265625, -0.020751953125, -0.02154541015625, 0.0275115966796875, 0.035980224609375, -0.014678955078125, 0.01406097412109375, -0.040069580078125, -0.047760009765625, 0.0145721435546875, -0.042938232421875, -0.02215576171875, 0.037841796875, -0.0204925537109375, -0.01042938232421875, 0.00490570068359375, -0.01308441162109375, -0.039154052734375, 0.043365478515625, -0.025482177734375, -0.01004791259765625, -0.0313720703125, -0.03179931640625, -0.0252532958984375, 0.07177734375, -0.016754150390625, 0.033111572265625, 0.058685302734375, -0.0230712890625, 0.0276947021484375, -0.06854248046875, 0.00235748291015625, -0.053741455078125, 0.01328277587890625, -0.0693359375, 0.0191497802734375, -0.0330810546875, 0.00780487060546875, -0.010711669921875, 0.057769775390625, -0.035186767578125, -0.00927734375, -0.0008544921875, 0.0158233642578125, -0.007663726806640625, -0.03680419921875, -0.0173797607421875, -0.017364501953125, -0.057891845703125, 0.0013685226440429688, -0.0020389556884765625, -0.040435791015625, 0.0222320556640625, -0.06365966796875, 0.00901031494140625, -0.04229736328125, 0.043426513671875, -0.03717041015625, 0.0174102783203125, 0.03240966796875, -0.002864837646484375, 0.00772857666015625, -0.0411376953125, -0.01348876953125, -0.12469482421875, -0.00933837890625, -0.01385498046875, 0.03692626953125, 0.0008616447448730469, -0.04144287109375, -0.024627685546875, 0.03192138671875, -0.00795745849609375, -0.005481719970703125, 0.004962921142578125, 0.02911376953125, -0.04754638671875, -0.00676727294921875, -0.0017709732055664062, -0.0340576171875, 0.0108795166015625, -0.0042572021484375, 0.023345947265625, 0.0094757080078125, -0.061279296875, -0.046234130859375, -0.0295257568359375, -0.0304412841796875, -0.046051025390625, -0.035064697265625, -0.00342559814453125, 0.01493072509765625, 0.0340576171875, -0.044158935546875, -0.0462646484375, -0.0263519287109375, 0.00286865234375, -0.018463134765625, -0.0055084228515625, 0.0175933837890625, 0.051513671875, 0.01171875, -0.0074462890625, -0.0166778564453125, 0.0330810546875, 0.0262908935546875, -0.00977325439453125, 0.038360595703125, 0.01300811767578125, 0.0031757354736328125, 0.00943756103515625, -0.0185699462890625, 0.0163726806640625, -0.02490234375, 0.01226806640625, -0.02911376953125, -0.06207275390625, 0.046478271484375, -0.037261962890625, 0.03369140625, 0.05084228515625, 0.0022525787353515625, 0.005023956298828125, 0.00484466552734375, 0.006336212158203125, -0.00986480712890625, -0.005283355712890625, -0.0118560791015625, 0.0032291412353515625, -0.0024566650390625, 0.0262908935546875, 0.03912353515625, 0.021240234375, -0.0020961761474609375, 0.00992584228515625, 0.013763427734375, -0.01291656494140625, 0.050262451171875, 0.0177154541015625, 0.01029205322265625, 0.0183563232421875, 0.01238250732421875, -0.016326904296875, -0.004055023193359375, -0.000652313232421875, 0.00801849365234375, 0.0149993896484375, -0.0364990234375, -0.007808685302734375, 0.00553131103515625, -0.008880615234375, 0.0086212158203125, 0.0090789794921875, 0.024627685546875, 0.00751495361328125, 0.0009636878967285156, 0.006092071533203125, 0.017822265625, -0.009033203125, -0.0290374755859375, 0.00882720947265625, 0.025360107421875, -0.03997802734375, -0.01346588134765625, 0.0201416015625, 0.0099639892578125, -0.031585693359375, 0.0017147064208984375, 0.007526397705078125, 0.0028972625732421875, 0.052001953125, 0.0253753662109375, -0.0159912109375, -0.01715087890625, 0.047760009765625, -0.008056640625, -0.0223388671875, 0.0140228271484375, 0.054443359375, 0.032073974609375, -0.02508544921875, -0.04296875, 0.0100860595703125, -0.039215087890625, -0.00820159912109375, 0.0174560546875, -0.0203399658203125, -0.037750244140625, -0.0428466796875, -0.0439453125, 0.030242919921875, -0.0209503173828125, -0.0333251953125, 0.047943115234375, -0.033660888671875, 0.028839111328125, 0.0242156982421875, -0.0145416259765625, -0.0015201568603515625, -0.00550079345703125, 0.0053558349609375, -0.045013427734375, 0.01910400390625, 0.0049591064453125, 0.052734375, -0.066162109375, -0.034210205078125, 0.0772705078125, 0.0014896392822265625, 0.04150390625, -0.01166534423828125, -0.03802490234375, 0.007038116455078125, -0.01007843017578125, 0.04931640625, 0.0101470947265625, 0.00250244140625, -0.027984619140625, -0.0478515625, -0.024749755859375, -0.0300140380859375, -0.05230712890625, -0.007396697998046875, 0.03131103515625, 0.01479339599609375, 0.037811279296875, -0.0296478271484375, -0.0341796875, -0.01399993896484375, 0.01222991943359375, 0.01214599609375, 0.07720947265625, -0.01320648193359375, 0.07281494140625, -0.0460205078125, 0.04681396484375, -0.00347900390625, 0.0189666748046875, -0.002307891845703125, -0.005817413330078125, -0.0212249755859375, -0.03985595703125, 0.00534820556640625, 0.025909423828125, -0.007232666015625, 0.0340576171875, 0.052398681640625, 0.01523590087890625, -0.0188751220703125, -0.005985260009765625, 0.0059967041015625, -0.029449462890625, 0.05242919921875, -0.00408935546875, 0.0011854171752929688, -0.0034503936767578125, -0.014068603515625, 0.055633544921875, 0.01458740234375, -0.0169219970703125, 0.019927978515625, -0.0197906494140625, 0.040191650390625, 0.0032482147216796875, -0.058807373046875, 0.07470703125, 0.042633056640625, -0.014190673828125, 0.02069091796875, -0.0034160614013671875, -0.006793975830078125, 0.0174102783203125, 0.0274505615234375, -0.0227203369140625, -0.007442474365234375, 0.053314208984375, 0.02191162109375, 0.00838470458984375, 0.056732177734375, 0.0020732879638671875, 0.0270233154296875, 0.076171875, 0.044891357421875, -0.0908203125, 0.0023174285888671875, -0.0260162353515625, -0.03033447265625, 0.017120361328125, 0.004322052001953125, 0.012176513671875, 0.0113677978515625, 0.025665283203125, 0.0013637542724609375, -0.0091705322265625, 0.00933074951171875, 0.01213836669921875, -0.00167083740234375, -0.01268768310546875, 0.0312347412109375, 0.0015249252319335938, -0.00640106201171875, -0.0005311965942382812, 0.005207061767578125, 0.02325439453125, -0.0008425712585449219, 0.02447509765625, -0.013885498046875, 0.013153076171875, 0.00691986083984375, 0.040740966796875, -0.043243408203125, 0.016021728515625, 0.019622802734375, 0.034942626953125, 0.00885009765625, 0.0270843505859375, -0.003116607666015625, -0.0014772415161132812, 0.006130218505859375, -0.02984619140625, -0.0465087890625, -0.0572509765625, 0.01229095458984375, -0.006103515625, 0.0003457069396972656, 0.027923583984375, 0.01354217529296875, -0.08331298828125, -0.005863189697265625, -0.0229034423828125, 0.051513671875, -0.03570556640625, -0.0142059326171875, 0.0185089111328125, -0.006641387939453125, -0.007965087890625, 0.009002685546875, 0.0114593505859375, -0.03228759765625, -0.018890380859375, 0.0036773681640625, -0.038238525390625, 0.00279998779296875, 0.0102081298828125, -0.0555419921875, 0.11907958984375, -0.010986328125, 0.0142059326171875, 0.006622314453125, 0.0555419921875, -0.0177001953125, 0.0364990234375, -0.017608642578125, 0.052215576171875, 0.022918701171875, 0.0199737548828125, -0.03076171875, -0.0007610321044921875, 0.01311492919921875, 0.04669189453125, 0.0404052734375, 0.01500701904296875, -0.004360198974609375, 0.00041794776916503906, 0.042236328125, -0.00897216796875, -0.020751953125, 0.033050537109375, -0.008026123046875, 0.0164794921875, 0.0322265625, -0.03643798828125, 0.030303955078125, -0.0190277099609375, -0.02032470703125, 0.01493072509765625, 0.0026760101318359375, -0.00348663330078125, -0.01261138916015625, 0.0335693359375, -0.02587890625, -0.01126861572265625, 0.028839111328125, -0.0218963623046875, -0.00553131103515625, -0.0019283294677734375, 0.03741455078125, -0.044525146484375, -0.0233917236328125, -0.0181121826171875, 0.036956787109375, 0.0244140625, 0.0149078369140625, 0.0297088623046875, 0.0296478271484375, 0.0237274169921875, -0.044830322265625, 0.0017795562744140625, -0.0187225341796875, -0.035400390625, 0.039031982421875, 0.04766845703125, 0.03997802734375, 0.00461578369140625, -0.01922607421875, 0.022735595703125, 0.054656982421875, -0.024688720703125, -0.036956787109375, -0.009033203125, -0.0025768280029296875, 0.022064208984375, 0.005527496337890625, 0.031280517578125, -0.0096282958984375, 0.0142669677734375, 0.0087738037109375, -0.007354736328125, -0.0220794677734375, -0.00441741943359375, -0.0195465087890625, -0.01464080810546875, 0.024505615234375, 0.023162841796875, -0.0168914794921875, -0.035064697265625, 0.0038356781005859375, 0.050994873046875, 0.0479736328125, 0.0216064453125, -0.0021686553955078125, -0.01387786865234375, -0.0423583984375, 0.05194091796875, -0.034759521484375, 0.06884765625, -0.08447265625, -0.049072265625, 0.010711669921875, 0.06439208984375, -0.0247955322265625, 0.0263671875, 0.05255126953125, 0.0294036865234375, -0.0274810791015625, -0.0195770263671875, 0.0114593505859375, -0.040283203125, 0.042083740234375, -0.036041259765625, 0.042236328125, -0.0208282470703125, -0.0028743743896484375, -0.041229248046875, 0.0438232421875, -0.0037899017333984375, -0.024688720703125, 0.014068603515625, -0.005146026611328125, -0.0274505615234375, 0.07257080078125, -0.01184844970703125, 0.054290771484375, 0.0109405517578125, -0.0300140380859375, -0.007320404052734375, -0.006267547607421875, -0.038177490234375, 0.016143798828125, 0.046539306640625, -0.0150299072265625, 0.01482391357421875, 0.047149658203125, 0.064697265625, -0.0232391357421875, -0.04132080078125, -0.0011148452758789062, -0.001865386962890625, 0.06829833984375, 0.052764892578125, -0.037872314453125, -0.031768798828125, -0.0160675048828125, 0.050811767578125, -0.01422119140625, 0.11004638671875, -0.059600830078125, 0.019287109375, 0.0146636962890625, 0.005977630615234375, -0.0052642822265625, 0.0126953125, -0.0251922607421875, -0.0281219482421875, 0.02142333984375, 0.00897979736328125, -0.0064849853515625, 0.01477813720703125, 0.033966064453125, -0.06341552734375, 0.0033702850341796875, -0.0028820037841796875, 0.006160736083984375, -0.03631591796875, 0.032928466796875, -0.0211639404296875, -0.03033447265625, 0.00542449951171875, 0.0253448486328125, -0.00716400146484375, -0.0117645263671875, -0.0287628173828125, 0.084228515625, -0.01093292236328125, -0.010040283203125, 0.0031261444091796875, -0.0809326171875, -0.00392913818359375, 0.0252838134765625, 0.0048370361328125, -0.00400543212890625, 0.028564453125, -0.023651123046875, 0.049102783203125, -0.0062408447265625, 0.05780029296875, 0.017242431640625, -0.01140594482421875, -0.01515960693359375, -0.0226898193359375, 0.0312042236328125, 0.0092926025390625, 0.00475311279296875, -0.0308074951171875, 0.00707244873046875, -0.03302001953125, 0.0195465087890625, -0.01375579833984375, -0.00732421875, -0.01788330078125, 0.002223968505859375, -0.00467681884765625, -0.04595947265625, -0.053955078125, 0.03564453125, 0.0196075439453125, 0.01031494140625, -0.0970458984375, 0.07568359375, -0.037628173828125, 0.0699462890625, -0.0279541015625, -0.01360321044921875, -0.0110015869140625, -0.02496337890625, -0.04779052734375, -0.0189361572265625, -0.0518798828125, 0.0115966796875, -0.037841796875, -0.022796630859375, 0.02606201171875, 0.000568389892578125, -0.0322265625, -0.03973388671875, -0.02471923828125, 0.033233642578125, -0.06280517578125, -0.00923919677734375, 0.055877685546875, -0.0447998046875, -0.0247344970703125, -0.04022216796875, 0.005462646484375, -0.076171875, -0.01456451416015625, -0.0017251968383789062, -0.01512908935546875, 0.00431060791015625, -0.0294189453125, -0.049407958984375, -0.0089874267578125, 0.021484375, -0.02801513671875, -0.038848876953125, 0.0167388916015625, -0.0049285888671875, -0.007465362548828125, -0.0101318359375, -0.017242431640625, -0.0108184814453125, 0.02288818359375, 0.0222930908203125, 0.0031986236572265625, 0.02783203125, 0.0193023681640625, -0.048004150390625, 0.0012493133544921875, -0.01366424560546875, 0.002651214599609375, 0.0205535888671875, -0.01277923583984375, 0.06170654296875, 0.06707763671875, -0.01218414306640625, 0.051361083984375, -0.0016155242919921875, -0.048614501953125, -0.004947662353515625, -0.016265869140625, -0.03399658203125, -0.01666259765625, 0.07501220703125, 0.03363037109375, 0.0246124267578125, -0.033172607421875, -0.01776123046875, -0.04974365234375, -0.0292816162109375, -0.02239990234375, 0.029876708984375, -0.0718994140625, -0.007602691650390625, 0.0153350830078125, 0.0007762908935546875, -0.0102691650390625, -0.00910186767578125, -0.0009379386901855469, -0.015411376953125, -0.0030345916748046875, -0.0226898193359375, 0.0228424072265625, -0.0355224609375, 0.09051513671875, -0.041961669921875, -0.0261688232421875, 0.0145721435546875, 0.026458740234375, 0.0198822021484375, 0.00028705596923828125, 0.005069732666015625, 0.01971435546875, -0.040924072265625, 0.02484130859375, -0.00244903564453125, 0.00969696044921875, -0.070556640625, 0.0084075927734375, 0.0367431640625, 0.006103515625, -0.029388427734375, -0.0179443359375, -0.0138397216796875, 0.058013916015625, -0.0306549072265625, 0.0911865234375, -0.0081939697265625, -0.045135498046875, -0.0176544189453125, 0.027099609375, -0.030914306640625, 0.00583648681640625, -0.002643585205078125, -0.03057861328125, -0.005802154541015625, -0.0205535888671875, -0.03350830078125, -0.07806396484375, 0.0212249755859375, -0.0706787109375, 0.00421142578125, 0.0223846435546875 ]
828a4187fc34d4950f7f576382ffeec93329de70
Wordpress Stackexchange Q: What's the difference between term_id and term_taxonomy_id The title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name. Thought this question would've been asked before but can't find it anywhere! So just thought I'd ask and see if anyone has any answers. A: If you take a look into the Wordpress documentation you will find Wordpress Taxonomies * *term_id is the ID of a term in the terms table *term_taxonomy_id is a unique ID for the term + taxonomy pair.
Q: What's the difference between term_id and term_taxonomy_id The title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name. Thought this question would've been asked before but can't find it anywhere! So just thought I'd ask and see if anyone has any answers. A: If you take a look into the Wordpress documentation you will find Wordpress Taxonomies * *term_id is the ID of a term in the terms table *term_taxonomy_id is a unique ID for the term + taxonomy pair. A: A term is not a category or tag on its own. It must be given context via the term_taxonomy table. The term_taxonomy table places a term within a taxonomy. This is what makes a term a category, a tag or part of a custom taxonomy (or in a combination of taxonomies). term_id is the ID of a term in the terms table. term_taxonomy_id is a unique ID for the term+taxonomy pair. The term_id is always unique just like the term_taxonomy_id. Both have an Auto Increment in the table structure. The table wp_term_taxonomy makes sure for example that a category is created, so wordpress can interfere with it e.g Woocommerce uses: product_tag, product_type, product_cat, all of them are the so called custom taxonomies. This table also binds the parent/children structure. With it's column parent. The final table, term_relationships, relates objects such as posts or links to a term_taxonomy_id from the term_taxonomy table. If we pick Woocommerce again as an example, this table links post type products to their taxonomy product_cat, which contains a namy e.g Computers which is of course retrieved from the table wp_terms. This table contains the term_id, name, slug and term_group. (term_group I personally have never used) Hopefully the above makes things a bit more clear about the differences and how Wordpress uses these tables. A: The Codex says: * *term_id is the ID of a term in the terms table *term_taxonomy_id is a unique ID for the term+taxonomy pair What does this mean? A term is a word. It can belong to a taxonomy, such as tags, categories, or a custom taxonomy. The thing is: there can be several taxonomies containing the same term. Let’s say you have a term called “fattening“. This word has an id number. This is the term_id. It doesn’t depend on how this word is used, i.e. in which taxonomies the term appears. Now the word “fattening” as a post tag also has a number. This is the term_taxonomy_id. It corresponds to “the post tag ‘fattening’“. Maybe you also have a category called “fattening”. While the term_id is the same, the term_taxonomy_id for “the category ‘fattening’” is different. A: As this is a part of a bigger understanding of the design I will describe it as whole... :) In WP 4.5.3 there are still all these tables (I will talk about them without prefix): * *posts *term_relationships *term_taxonomy *terms The path to get post terms' readable names goes through them all. posts the main identificator here is ID - an id of a post (of any type) term_relationships stores pairs of: object_id - can be posts.ID (but does not have to be) term_taxonomy_id - this is NOT id of a term (category) but an id of RELATIONSHIP between a term(category) and taxonomy("category type") term_taxonomy the main identificator here is term_taxonomy_id desribed above ^^ another important columns: term_id - an id of a term (category) taxonomy - stores the term's taxonomy("category type") This one might seem funny, but the initial intend was to add the ability for terms to have more taxonomies (which in some cases can make sense). terms the main identificator here is the term_id - an id of an category another important columns here are: name - readable category name e.g. "Music Genres" slug - the slug of a term usable e.g. in URL So the brutal demonstrating SQL to get all published posts and all their categories with categories' names could look like this (add prefixes to tables when testing on your own WP DB): SELECT * FROM posts #gets posts LEFT JOIN term_relationships #gets posts relationships to term_taxonomies ON(posts.ID=term_relationships.object_id) LEFT JOIN term_taxonomy #gets term_ids ON(term_relationships.term_taxonomy_id=term_taxonomy.term_taxonomy_id) LEFT JOIN terms #finally, gets terms' names ON(term_taxonomy.term_id=terms.term_id) WHERE ( (posts.post_status='publish') #optionally you can filter by a certain post_type: #AND #(posts.post_type='some_post_type') ) ORDER BY posts.ID ASC A: The Article "Understanding and Working with Taxonomies and Terms in WordPress" explains the reason for using two separate tables - wp_term and wp_term_taxonomy: In many WordPress installations, there will be one record in the wp_term_taxonomy table for each term in the wp_terms table, but in some cases you will have more than one record for each term. This happens when you create two terms with the same name and slug in different taxonomies, and means that you could create a query to output posts with that term in multiple taxonomies. This means that the relationship between these two tables is one-to-many: one record in the wp_terms table can be linked to multiple records in the wp_term_taxonomy table, but each record in wp_term_taxonomy is only linked to one record in wp_terms.
wordpress
{ "language": "en", "length": 858, "provenance": "stackexchange_00019.jsonl.gz:415738", "question_score": "34", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37721" }
[ 0.04254150390625, -0.01024627685546875, 0.00736236572265625, -0.0325927734375, 0.0078582763671875, -0.01617431640625, 0.02197265625, -0.0023784637451171875, -0.01126861572265625, 0.00839996337890625, -0.0229339599609375, -0.0008401870727539062, -0.045806884765625, -0.0202178955078125, -0.01090240478515625, -0.056915283203125, 0.01708984375, -0.01161956787109375, 0.002899169921875, -0.0257415771484375, 0.01213836669921875, -0.01169586181640625, 0.0028533935546875, 0.028076171875, 0.055084228515625, -0.064208984375, 0.0265960693359375, -0.0188140869140625, 0.02728271484375, -0.0249786376953125, 0.02520751953125, 0.021392822265625, 0.021240234375, -0.0123291015625, 0.00021195411682128906, -0.0318603515625, -0.00174713134765625, 0.002849578857421875, 0.0009684562683105469, 0.004405975341796875, 0.056884765625, -0.04180908203125, 0.0189056396484375, -0.0020904541015625, -0.005001068115234375, -0.0029811859130859375, 0.0181121826171875, -0.0310211181640625, -0.00958251953125, -0.04425048828125, 0.045379638671875, 0.004180908203125, 0.07000732421875, -0.003459930419921875, -0.021453857421875, 0.01546478271484375, 0.034027099609375, -0.0253143310546875, 0.0284271240234375, -0.053802490234375, -0.0460205078125, -0.01513671875, 0.052642822265625, 0.0158538818359375, 0.006885528564453125, 0.01506805419921875, 0.037506103515625, 0.0298919677734375, -0.039886474609375, -0.03631591796875, -0.0071563720703125, -0.0262908935546875, -0.0052032470703125, 0.002361297607421875, -0.04705810546875, -0.040374755859375, 0.06134033203125, -0.0294342041015625, -0.0214996337890625, 0.0185089111328125, 0.0172271728515625, -0.0306549072265625, -0.05731201171875, 0.026458740234375, 0.005916595458984375, 0.059478759765625, -0.012115478515625, -0.0289306640625, -0.0017709732055664062, -0.01399993896484375, -0.01003265380859375, -0.0528564453125, -0.01806640625, 0.043548583984375, 0.004077911376953125, -0.0199432373046875, 0.0038299560546875, 0.06878662109375, -0.051544189453125, 0.008819580078125, -0.0155029296875, -0.0098419189453125, 0.00724029541015625, -0.0438232421875, 0.0157470703125, 0.027618408203125, 0.0160064697265625, 0.00324249267578125, 0.0196990966796875, 0.00150299072265625, -0.0134124755859375, 0.0182647705078125, 0.0170745849609375, -0.035675048828125, 0.005771636962890625, -0.0037097930908203125, -0.0191192626953125, 0.031524658203125, 0.01204681396484375, -0.027862548828125, 0.017608642578125, 0.0221405029296875, 0.013763427734375, 0.02630615234375, -0.0164642333984375, 0.001354217529296875, -0.00299835205078125, -0.047607421875, -0.0521240234375, 0.03826904296875, -0.043487548828125, -0.003391265869140625, 0.0731201171875, 0.053314208984375, 0.01885986328125, -0.027557373046875, 0.0051422119140625, -0.0009150505065917969, -0.0021381378173828125, 0.0204620361328125, -0.00750732421875, -0.0276031494140625, 0.00434112548828125, -0.0078277587890625, -0.0394287109375, 0.024993896484375, 0.026031494140625, 0.0279998779296875, -0.044708251953125, -0.06695556640625, 0.0179595947265625, -0.02264404296875, 0.0269012451171875, 0.01354217529296875, -0.03521728515625, -0.008270263671875, 0.003910064697265625, -0.035247802734375, -0.013153076171875, -0.04833984375, 0.0273284912109375, 0.0016260147094726562, -0.0218505859375, 0.016204833984375, -0.01239776611328125, 0.00048804283142089844, 0.006389617919921875, -0.0022125244140625, 0.0164947509765625, 0.006870269775390625, 0.0477294921875, -0.0135040283203125, -0.003814697265625, -0.0034770965576171875, -0.003971099853515625, -0.006687164306640625, -0.0236358642578125, -0.01264190673828125, 0.036163330078125, 0.01873779296875, -0.0166015625, -0.044097900390625, -0.0006594657897949219, 0.002178192138671875, -0.03533935546875, 0.025299072265625, 0.01259613037109375, 0.0640869140625, 0.011383056640625, 0.018402099609375, 0.01508331298828125, 0.01088714599609375, -0.033477783203125, 0.0477294921875, 0.0182647705078125, -0.0289764404296875, -0.054840087890625, -0.00933837890625, -0.0148773193359375, -0.0249176025390625, -0.016265869140625, 0.017547607421875, -0.0181121826171875, 0.01285552978515625, -0.06256103515625, 0.005901336669921875, -0.0268402099609375, 0.04345703125, -0.02203369140625, 0.0034427642822265625, 0.0174407958984375, 0.004344940185546875, -0.00732421875, -0.04339599609375, -0.0285186767578125, 0.00997161865234375, -0.044586181640625, -0.03265380859375, -0.0058135986328125, 0.00016129016876220703, -0.0245819091796875, 0.035125732421875, -0.03741455078125, -0.02166748046875, 0.0223541259765625, 0.021484375, -0.022064208984375, 0.0059814453125, 0.048004150390625, 0.021453857421875, 0.0021228790283203125, -0.010772705078125, 0.045928955078125, 0.0496826171875, 0.006740570068359375, -0.007274627685546875, 0.0204620361328125, -0.10443115234375, 0.01971435546875, 0.051025390625, 0.035797119140625, 0.0150299072265625, -0.040283203125, -0.043914794921875, 0.0540771484375, 0.0094146728515625, 0.0103607177734375, -0.038818359375, 0.0107269287109375, 0.029876708984375, 0.02093505859375, 0.0027370452880859375, 0.00885772705078125, -0.0149688720703125, -0.0023708343505859375, 0.03936767578125, -0.050323486328125, -0.017852783203125, 0.031005859375, -0.004863739013671875, -0.0157470703125, -0.03521728515625, 0.0321044921875, -0.0246429443359375, -0.00617218017578125, 0.039093017578125, 0.03607177734375, 0.0478515625, -0.022064208984375, 0.0005183219909667969, 0.01293182373046875, 0.0224151611328125, -0.00042939186096191406, 0.02667236328125, 0.034027099609375, 0.0170135498046875, -0.013580322265625, -0.0175628662109375, -0.004058837890625, 0.0167694091796875, -0.012908935546875, 0.0291290283203125, -0.03704833984375, -0.0159454345703125, -0.023712158203125, -0.0582275390625, -0.01416015625, 0.0083465576171875, -0.071533203125, -0.045379638671875, -0.01378631591796875, 0.044586181640625, -0.0199127197265625, 0.01309967041015625, -0.01181793212890625, 0.01216888427734375, -0.020538330078125, -0.01027679443359375, 0.0142059326171875, -0.03314208984375, 0.0028553009033203125, 0.037322998046875, 0.0099945068359375, -0.0167694091796875, 0.0255584716796875, -0.0283203125, 0.03411865234375, -0.004718780517578125, -0.006389617919921875, 0.050384521484375, -0.11663818359375, -0.00960540771484375, 0.0027103424072265625, 0.056243896484375, -0.00848388671875, -0.0347900390625, -0.014495849609375, 0.0234375, -0.0218353271484375, -0.01367950439453125, 0.0055694580078125, -0.00428009033203125, 0.0215301513671875, -0.038330078125, 0.007904052734375, -0.01806640625, -0.052093505859375, 0.0146026611328125, 0.033416748046875, -0.05438232421875, -0.06805419921875, -0.06494140625, -0.08013916015625, 0.0055389404296875, 0.004276275634765625, 0.01004791259765625, 0.0159759521484375, 0.04559326171875, 0.0152435302734375, -0.0197601318359375, 0.0277557373046875, 0.0036029815673828125, -0.028564453125, 0.01152801513671875, -0.0021800994873046875, -0.0149078369140625, 0.005107879638671875, 0.003902435302734375, -0.015167236328125, 0.0055389404296875, 0.0033721923828125, -0.0194091796875, -0.00652313232421875, 0.0185089111328125, 0.0269622802734375, -0.03326416015625, -0.006900787353515625, 0.0323486328125, 0.026275634765625, -0.018310546875, -0.05133056640625, -0.0042266845703125, -0.0357666015625, 0.070068359375, 0.008575439453125, 0.0027141571044921875, -0.005687713623046875, 0.048004150390625, -0.031494140625, -0.00896453857421875, -0.04559326171875, -0.0261383056640625, 0.03607177734375, -0.00556182861328125, 0.0014104843139648438, 0.0311279296875, -0.0099029541015625, -0.04119873046875, 0.00028443336486816406, -0.01230621337890625, 0.00273895263671875, -0.013763427734375, 0.00208282470703125, -0.0249176025390625, -0.095458984375, 0.043670654296875, -0.06048583984375, -0.00914764404296875, -0.035125732421875, -0.013275146484375, 0.0260467529296875, 0.10943603515625, -0.026397705078125, -0.02392578125, 0.01499176025390625, -0.00046706199645996094, -0.00749969482421875, 0.00568389892578125, -0.041412353515625, -0.036834716796875, -0.0230255126953125, 0.01020050048828125, -0.0002391338348388672, 0.018310546875, -0.06182861328125, 0.0731201171875, -0.051177978515625, -0.0192108154296875, 0.02294921875, -0.03729248046875, 0.0298309326171875, 0.00997161865234375, -0.0020618438720703125, 0.00885772705078125, -0.01139068603515625, -0.040863037109375, 0.0185394287109375, 0.002887725830078125, -0.004459381103515625, -0.019317626953125, 0.01297760009765625, -0.01407623291015625, 0.00843048095703125, 0.015594482421875, -0.00241851806640625, -0.0098724365234375, 0.01361846923828125, 0.0117340087890625, -0.0126800537109375, 0.034759521484375, 0.0163726806640625, -0.003936767578125, -0.0292816162109375, -0.053253173828125, -0.02667236328125, 0.0284423828125, 0.000024437904357910156, 0.06378173828125, -0.01145172119140625, 0.003597259521484375, -0.06695556640625, -0.039398193359375, -0.040985107421875, -0.01338958740234375, -0.01410675048828125, -0.01369476318359375, -0.0269622802734375, -0.060882568359375, 0.058746337890625, 0.016693115234375, -0.0160675048828125, -0.00588226318359375, 0.0810546875, 0.0125579833984375, -0.033599853515625, -0.04241943359375, -0.0022125244140625, 0.040618896484375, 0.001178741455078125, 0.0269622802734375, 0.01207733154296875, -0.029266357421875, 0.06414794921875, 0.00899505615234375, -0.005523681640625, 0.0006375312805175781, 0.042083740234375, -0.0103912353515625, -0.0279693603515625, 0.0288238525390625, -0.036102294921875, 0.0024662017822265625, 0.004650115966796875, -0.024261474609375, -0.033172607421875, -0.031707763671875, 0.06317138671875, -0.026397705078125, 0.06488037109375, -0.04022216796875, -0.037994384765625, 0.033447265625, -0.041473388671875, -0.006458282470703125, -0.0074310302734375, 0.00019669532775878906, -0.035308837890625, -0.04815673828125, 0.0052642822265625, 0.01145172119140625, 0.006015777587890625, 0.01195526123046875, -0.00013184547424316406, 0.05548095703125, 0.00913238525390625, -0.0352783203125, -0.006618499755859375, 0.092529296875, -0.0182037353515625, -0.053375244140625, -0.007213592529296875, -0.006317138671875, 0.00647735595703125, 0.03973388671875, 0.0014829635620117188, 0.01849365234375, -0.00966644287109375, -0.0205841064453125, 0.01102447509765625, -0.017822265625, -0.021453857421875, -0.028472900390625, -0.01198577880859375, -0.001346588134765625, -0.0220947265625, 0.0377197265625, 0.042755126953125, -0.02874755859375, 0.033843994140625, -0.0163421630859375, 0.0208587646484375, 0.00501251220703125, 0.039947509765625, 0.01430511474609375, -0.0234375, -0.01016998291015625, 0.01560211181640625, -0.009552001953125, -0.027313232421875, -0.003631591796875, -0.01116943359375, 0.01554107666015625, -0.033966064453125, -0.017547607421875, 0.0445556640625, -0.0118560791015625, -0.0269317626953125, -0.0081787109375, -0.03070068359375, -0.044952392578125, -0.002178192138671875, -0.0021209716796875, -0.0013332366943359375, -0.005512237548828125, -0.034423828125, 0.0416259765625, -0.037933349609375, 0.048919677734375, -0.01556396484375, 0.012176513671875, -0.019256591796875, -0.00894927978515625, -0.021087646484375, 0.007350921630859375, -0.00104522705078125, -0.0238800048828125, -0.041839599609375, -0.002285003662109375, -0.0167388916015625, 0.032928466796875, -0.008331298828125, 0.06671142578125, -0.0017852783203125, -0.060394287109375, 0.006500244140625, 0.0120697021484375, 0.0300750732421875, 0.0233917236328125, -0.057708740234375, 0.002712249755859375, -0.046478271484375, 0.0048980712890625, -0.031341552734375, -0.06744384765625, -0.025054931640625, 0.00885009765625, -0.03057861328125, -0.0036144256591796875, 0.016937255859375, 0.0780029296875, -0.004787445068359375, 0.0362548828125, -0.031982421875, -0.0105133056640625, 0.0093994140625, -0.034820556640625, 0.0164947509765625, 0.0308990478515625, 0.00547027587890625, -0.02825927734375, 0.0007681846618652344, -0.053497314453125, -0.0129852294921875, -0.048858642578125, -0.0093536376953125, 0.0096588134765625, -0.00783538818359375, 0.00862884521484375, 0.0020122528076171875, 0.0012845993041992188, 0.035125732421875, 0.003765106201171875, 0.0006556510925292969, -0.0040435791015625, -0.045013427734375, -0.0115509033203125, 0.01016998291015625, 0.0160369873046875, -0.0272369384765625, 0.021514892578125, 0.0194244384765625, 0.04150390625, -0.0119781494140625, -0.048614501953125, 0.004001617431640625, 0.037841796875, 0.0296783447265625, -0.0159759521484375, -0.00853729248046875, 0.0004935264587402344, 0.025115966796875, 0.01029205322265625, 0.03387451171875, 0.0249481201171875, 0.0273590087890625, -0.0462646484375, -0.038177490234375, 0.052947998046875, 0.02520751953125, -0.02398681640625, 0.041839599609375, -0.035797119140625, -0.01235198974609375, 0.01171112060546875, 0.0340576171875, -0.0245513916015625, 0.0007562637329101562, 0.0282135009765625, -0.0273590087890625, -0.0151214599609375, 0.0181427001953125, -0.028411865234375, -0.055145263671875, -0.013275146484375, 0.0170135498046875, -0.02142333984375, -0.01041412353515625, 0.0242919921875, -0.0107421875, -0.032012939453125, 0.014801025390625, 0.0143280029296875, 0.03125, 0.01145172119140625, -0.0237884521484375, 0.031494140625, -0.018280029296875, 0.00357818603515625, 0.006622314453125, -0.0028228759765625, -0.03717041015625, 0.05902099609375, -0.032073974609375, 0.022491455078125, 0.010284423828125, -0.007297515869140625, 0.01538848876953125, 0.0084075927734375, 0.0111236572265625, -0.03204345703125, -0.0234375, -0.007312774658203125, 0.02569580078125, -0.007556915283203125, -0.009796142578125, 0.02587890625, -0.03863525390625, 0.004909515380859375, -0.02203369140625, 0.015228271484375, -0.0029354095458984375, -0.023773193359375, 0.07159423828125, -0.0721435546875, 0.022064208984375, 0.03350830078125, 0.045867919921875, -0.004703521728515625, 0.005870819091796875, -0.01248931884765625, -0.0291748046875, 0.01389312744140625, 0.0038509368896484375, 0.00350189208984375, 0.0154876708984375, 0.0035533905029296875, -0.09002685546875, 0.0743408203125, 0.032623291015625, 0.0267181396484375, -0.041015625, 0.01312255859375, 0.0020599365234375, 0.006168365478515625, -0.009918212890625, 0.030303955078125, -0.01043701171875, 0.00510406494140625, -0.00020360946655273438, 0.01300048828125, 0.004207611083984375, -0.004184722900390625, 0.11431884765625, 0.0209503173828125, 0.0015077590942382812, -0.00386810302734375, 0.07000732421875, 0.0248870849609375, -0.0379638671875, 0.01377105712890625, 0.0367431640625, 0.01995849609375, 0.04315185546875, 0.0240325927734375, 0.036224365234375, -0.0131988525390625, -0.0165863037109375, 0.053802490234375, 0.0207672119140625, 0.0307464599609375, 0.01053619384765625, -0.007904052734375, 0.00565338134765625, -0.0020961761474609375, 0.0084075927734375, -0.01358795166015625, -0.00823211669921875, 0.0223541259765625, 0.0219879150390625, -0.032867431640625, 0.04278564453125, -0.035888671875, 0.061126708984375, -0.00603485107421875, 0.06201171875, 0.04443359375, 0.0151214599609375, 0.09112548828125, 0.01654052734375, 0.054595947265625, 0.03741455078125, -0.027435302734375, 0.029449462890625, -0.0120849609375, -0.0063018798828125, -0.08563232421875, -0.025299072265625, 0.06561279296875, 0.052734375, -0.0318603515625, -0.0218963623046875, 0.0210113525390625, 0.023468017578125, 0.003963470458984375, -0.005680084228515625, 0.0213165283203125, 0.00942230224609375, 0.040374755859375, -0.039703369140625, 0.02880859375, 0.0248260498046875, 0.00786590576171875, 0.001964569091796875, 0.04180908203125, -0.07110595703125, 0.005504608154296875, -0.0635986328125, 0.037384033203125, 0.0259857177734375, 0.046966552734375, -0.006076812744140625, 0.06427001953125, 0.0236663818359375, -0.0177154541015625, -0.01605224609375, 0.04522705078125, 0.0220794677734375, 0.017791748046875, -0.04864501953125, -0.0321044921875, 0.0386962890625, 0.040252685546875, 0.007537841796875, 0.036041259765625, 0.02008056640625, 0.021575927734375, 0.017181396484375, -0.006023406982421875, 0.015350341796875, -0.01546478271484375, -0.0158538818359375, -0.01248931884765625, 0.0274505615234375, 0.059295654296875, 0.0156402587890625, 0.0198211669921875, 0.041473388671875, 0.050750732421875, -0.0179901123046875, 0.072021484375, -0.01149749755859375, -0.0113372802734375, 0.01025390625, -0.04705810546875, 0.051666259765625, 0.004192352294921875, -0.04766845703125, -0.0263671875, -0.00562286376953125, -0.0183563232421875, 0.018157958984375, 0.035858154296875, 0.01763916015625, -0.015655517578125, 0.0036907196044921875, -0.025787353515625, -0.0350341796875, 0.02557373046875, 0.03466796875, -0.025238037109375, -0.004016876220703125, -0.00315093994140625, -0.05023193359375, -0.006511688232421875, 0.018463134765625, -0.030609130859375, -0.01027679443359375, 0.0299835205078125, 0.02056884765625, -0.01494598388671875, -0.02593994140625, 0.065185546875, -0.0909423828125, -0.03997802734375, 0.08673095703125, -0.03515625, -0.024993896484375, 0.01015472412109375, -0.05517578125, 0.04412841796875, 0.005817413330078125, 0.0013179779052734375, 0.03985595703125, -0.034698486328125, 0.003910064697265625, 0.0021839141845703125, 0.0260162353515625, -0.014007568359375, -0.01971435546875, -0.01092529296875, -0.00027680397033691406, 0.03875732421875, 0.01593017578125, -0.030487060546875, 0.0054931640625, -0.0029296875, -0.042266845703125, 0.01467132568359375, -0.03192138671875, 0.030731201171875, 0.0293121337890625, 0.0160064697265625, -0.053558349609375, 0.007526397705078125, -0.0115509033203125, -0.01395416259765625, -0.00942230224609375, 0.037139892578125, 0.01197052001953125, -0.08453369140625, 0.0171661376953125, 0.003612518310546875, 0.033538818359375, -0.01343536376953125, 0.006855010986328125, 0.001312255859375, 0.01105499267578125, -0.0006070137023925781, -0.057281494140625, -0.008392333984375, -0.03564453125, -0.0009493827819824219, 0.03179931640625, 0.00276947021484375, 0.0169219970703125, -0.0014448165893554688, -0.0107421875, 0.037017822265625, -0.0027370452880859375, 0.016998291015625, 0.00794219970703125, -0.031646728515625, -0.028961181640625, 0.02557373046875, -0.0232086181640625, 0.004161834716796875, 0.0263214111328125, -0.0302581787109375, -0.0260162353515625, -0.027191162109375, 0.005718231201171875, -0.025543212890625, 0.032073974609375, 0.02520751953125, -0.04022216796875, -0.0022220611572265625, 0.05462646484375, 0.0572509765625, 0.0882568359375, 0.05401611328125, -0.036712646484375, 0.0020427703857421875, -0.00553131103515625, -0.01129913330078125, -0.01317596435546875, 0.0228424072265625, -0.032379150390625, -0.041290283203125, -0.039398193359375, 0.01467132568359375, 0.01849365234375, -0.048614501953125, -0.0823974609375, 0.0234527587890625, -0.011749267578125, -0.034576416015625, -0.03570556640625, -0.0369873046875, -0.0006856918334960938, -0.0081787109375, -0.01922607421875, -0.031707763671875, -0.041656494140625, 0.0518798828125, 0.0246124267578125, -0.004894256591796875, 0.048614501953125, -0.0127716064453125, -0.0269012451171875, 0.0279083251953125, 0.025421142578125, 0.021087646484375, 0.035064697265625, -0.00611114501953125, 0.0053558349609375, 0.028472900390625, -0.05072021484375, -0.045867919921875, -0.04888916015625, -0.0193328857421875, -0.0338134765625, -0.0193328857421875, 0.01450347900390625, 0.025421142578125, 0.0426025390625, 0.033843994140625, -0.00540924072265625, -0.050872802734375, -0.0156097412109375, -0.021453857421875, -0.0103607177734375, -0.00939178466796875, 0.0215301513671875, -0.08331298828125, -0.0164337158203125, 0.041534423828125, -0.03802490234375, 0.0305938720703125, -0.01641845703125, -0.0645751953125, 0.029083251953125, -0.02825927734375, -0.0150909423828125, -0.059295654296875, 0.0117645263671875, 0.0020084381103515625, -0.0252838134765625, -0.027984619140625, -0.03338623046875, 0.0145416259765625, -0.03216552734375, -0.057952880859375, 0.007289886474609375, -0.006366729736328125, 0.00543212890625, 0.0005593299865722656, 0.0177001953125, -0.0298309326171875, 0.0396728515625, -0.0102386474609375, 0.003391265869140625, 0.043182373046875, -0.0043487548828125, 0.028900146484375, -0.0504150390625, 0.08050537109375, -0.003021240234375, 0.080078125, 0.00980377197265625, 0.028472900390625, -0.01195526123046875, 0.0592041015625, -0.07623291015625, -0.01107025146484375, -0.0789794921875, -0.023590087890625, 0.01458740234375, -0.00153350830078125, 0.0169677734375, -0.03375244140625, 0.0222930908203125, -0.0184783935546875, -0.00763702392578125, 0.03509521484375 ]
2056a57838bced5f4ed39b9742c18851b76878f0
Wordpress Stackexchange Q: Being notified when some YouTube video in some post becomes unavailable Is there a plugin or some PHP code that notifies you whenever a YouTube videos becomes unavailable in some post of a WordPress website ? A: You can use http://ifttt.com to set up a YouTube channel notification.
Q: Being notified when some YouTube video in some post becomes unavailable Is there a plugin or some PHP code that notifies you whenever a YouTube videos becomes unavailable in some post of a WordPress website ? A: You can use http://ifttt.com to set up a YouTube channel notification.
wordpress
{ "language": "en", "length": 49, "provenance": "stackexchange_00019.jsonl.gz:415750", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37772" }
[ 0.0816650390625, 0.041656494140625, -0.018096923828125, -0.0567626953125, 0.05657958984375, -0.017730712890625, 0.033905029296875, -0.01509857177734375, 0.0438232421875, 0.00887298583984375, -0.0452880859375, -0.01812744140625, -0.0194549560546875, -0.0117340087890625, -0.039306640625, -0.039825439453125, -0.0014801025390625, 0.07305908203125, 0.042083740234375, -0.0160064697265625, -0.00479888916015625, -0.016693115234375, 0.016143798828125, 0.0411376953125, 0.004955291748046875, 0.0377197265625, 0.0821533203125, -0.054168701171875, 0.0036563873291015625, -0.033660888671875, 0.007205963134765625, -0.00638580322265625, 0.02294921875, 0.005466461181640625, -0.017120361328125, -0.016510009765625, 0.00321197509765625, -0.00901031494140625, -0.0059051513671875, 0.00846099853515625, -0.0101776123046875, 0.039306640625, 0.1331787109375, -0.0015134811401367188, 0.0263214111328125, 0.0062713623046875, -0.040985107421875, -0.0875244140625, 0.0076751708984375, 0.0268707275390625, -0.014678955078125, -0.0013208389282226562, -0.0183258056640625, 0.01751708984375, -0.003955841064453125, -0.0188751220703125, -0.0195770263671875, -0.004001617431640625, 0.010528564453125, 0.01123046875, 0.010467529296875, 0.0262451171875, 0.007228851318359375, 0.00299072265625, -0.0160980224609375, -0.0015010833740234375, -0.058563232421875, 0.00543975830078125, 0.002399444580078125, -0.0145416259765625, 0.0173797607421875, -0.0136260986328125, -0.0256500244140625, 0.0173797607421875, -0.0045623779296875, -0.040679931640625, 0.04443359375, -0.0301361083984375, -0.0262603759765625, 0.0462646484375, 0.026214599609375, -0.003292083740234375, 0.061370849609375, -0.07891845703125, 0.03955078125, -0.04132080078125, 0.00788116455078125, 0.0116119384765625, -0.0645751953125, -0.026458740234375, -0.033294677734375, -0.056549072265625, -0.05767822265625, -0.02337646484375, -0.01251220703125, -0.01849365234375, 0.03790283203125, 0.07476806640625, -0.06561279296875, -0.0256805419921875, -0.0291595458984375, -0.01389312744140625, -0.0189971923828125, -0.0189971923828125, 0.006656646728515625, 0.0003070831298828125, -0.0091400146484375, -0.06500244140625, 0.00695037841796875, 0.022125244140625, -0.0306396484375, 0.00969696044921875, 0.02447509765625, 0.01238250732421875, -0.057373046875, -0.048553466796875, -0.0211181640625, -0.025665283203125, -0.00019979476928710938, -0.027984619140625, 0.0036563873291015625, 0.035400390625, -0.0303955078125, -0.06988525390625, 0.034912109375, -0.004718780517578125, -0.031341552734375, 0.020660400390625, 0.04632568359375, 0.0256500244140625, -0.051483154296875, 0.011688232421875, 0.07373046875, -0.00860595703125, 0.00617218017578125, -0.037353515625, 0.00957489013671875, 0.012786865234375, 0.01474761962890625, 0.00710296630859375, -0.0284271240234375, -0.01406097412109375, 0.0261383056640625, -0.0267181396484375, 0.0237274169921875, -0.00875091552734375, 0.022552490234375, 0.025390625, 0.009033203125, -0.018280029296875, 0.022308349609375, 0.0012722015380859375, 0.031158447265625, 0.0274505615234375, 0.0079803466796875, -0.01418304443359375, 0.052398681640625, -0.03265380859375, -0.0088958740234375, -0.04315185546875, 0.0255584716796875, 0.01479339599609375, 0.0157012939453125, -0.00024509429931640625, 0.006256103515625, -0.0274200439453125, -0.040496826171875, 0.0047149658203125, 0.033935546875, 0.060455322265625, -0.01151275634765625, -0.001953125, 0.0377197265625, 0.01812744140625, -0.0175323486328125, 0.0163421630859375, -0.014434814453125, -0.011322021484375, 0.02874755859375, -0.00927734375, -0.01898193359375, -0.0244293212890625, 0.054595947265625, -0.0310211181640625, -0.03363037109375, 0.06817626953125, 0.0035552978515625, 0.040313720703125, -0.015106201171875, 0.0082550048828125, 0.03173828125, 0.05706787109375, -0.044158935546875, 0.042236328125, -0.00394439697265625, -0.044830322265625, 0.032135009765625, 0.0012979507446289062, 0.002223968505859375, -0.017425537109375, 0.0085296630859375, 0.022857666015625, -0.00555419921875, 0.006633758544921875, -0.06439208984375, 0.037811279296875, -0.026641845703125, 0.038604736328125, 0.03009033203125, 0.03082275390625, -0.007503509521484375, 0.0261383056640625, -0.03411865234375, 0.00315093994140625, -0.036468505859375, -0.00876617431640625, -0.0361328125, 0.004547119140625, -0.016082763671875, 0.03759765625, -0.0355224609375, -0.0021419525146484375, -0.04034423828125, -0.0261688232421875, -0.031982421875, -0.019195556640625, -0.017486572265625, -0.0033855438232421875, -0.0289764404296875, -0.004970550537109375, 0.0323486328125, 0.0193328857421875, 0.006252288818359375, -0.01030731201171875, -0.043914794921875, -0.0352783203125, -0.03179931640625, -0.0657958984375, 0.0179595947265625, 0.072998046875, 0.0193023681640625, 0.00452423095703125, -0.007343292236328125, 0.032012939453125, 0.07208251953125, 0.0155487060546875, 0.0048675537109375, 0.0244140625, 0.011474609375, 0.0283203125, -0.0035724639892578125, -0.0021190643310546875, 0.025238037109375, -0.0250244140625, 0.01111602783203125, 0.03814697265625, 0.034271240234375, 0.05657958984375, -0.059539794921875, 0.04681396484375, -0.03759765625, 0.00963592529296875, 0.01001739501953125, -0.0186920166015625, 0.046844482421875, -0.018646240234375, 0.037384033203125, 0.017364501953125, -0.0159759521484375, 0.0005135536193847656, -0.0009775161743164062, -0.0226287841796875, 0.0157318115234375, 0.065185546875, 0.05108642578125, 0.01708984375, 0.00949859619140625, -0.06744384765625, 0.029144287109375, 0.047943115234375, -0.0227203369140625, -0.022064208984375, -0.034942626953125, -0.01197052001953125, 0.033447265625, -0.0192413330078125, -0.0032501220703125, -0.0218505859375, -0.01277923583984375, -0.03466796875, -0.015350341796875, 0.038055419921875, -0.0277099609375, 0.052581787109375, 0.032379150390625, -0.01513671875, 0.00445556640625, -0.042144775390625, 0.0196685791015625, -0.0127716064453125, 0.0019483566284179688, 0.05670166015625, 0.049560546875, -0.043853759765625, 0.0128326416015625, -0.0140533447265625, 0.02069091796875, 0.01309967041015625, -0.01198577880859375, -0.006618499755859375, -0.052947998046875, -0.00688934326171875, 0.00029277801513671875, 0.043304443359375, -0.033966064453125, -0.06683349609375, -0.0007495880126953125, -0.01088714599609375, -0.106201171875, -0.08587646484375, -0.0277252197265625, -0.08441162109375, 0.0716552734375, -0.0214385986328125, -0.004638671875, -0.025726318359375, 0.0225677490234375, 0.04241943359375, -0.035980224609375, 0.00021779537200927734, -0.0406494140625, -0.04254150390625, -0.057403564453125, 0.044525146484375, -0.0017786026000976562, 0.034820556640625, 0.009033203125, 0.00714874267578125, -0.01052093505859375, -0.06512451171875, -0.02398681640625, 0.0126953125, 0.00014293193817138672, -0.00975799560546875, -0.0188446044921875, 0.032745361328125, -0.022125244140625, 0.0254669189453125, 0.001979827880859375, 0.0123748779296875, -0.034210205078125, 0.000629425048828125, -0.01214599609375, -0.0089874267578125, 0.0011053085327148438, -0.0034580230712890625, 0.013916015625, 0.0008912086486816406, -0.0030536651611328125, -0.0455322265625, 0.005680084228515625, 0.0014514923095703125, -0.0174407958984375, -0.005641937255859375, -0.004001617431640625, -0.0168609619140625, -0.014556884765625, 0.00739288330078125, -0.00188446044921875, -0.0060882568359375, 0.0037441253662109375, -0.0009250640869140625, 0.01314544677734375, -0.01024627685546875, -0.006252288818359375, -0.0025310516357421875, -0.06158447265625, -0.054931640625, 0.0187225341796875, -0.05413818359375, -0.01343536376953125, -0.048065185546875, 0.053192138671875, -0.05419921875, 0.0028972625732421875, 0.0216217041015625, -0.01374053955078125, 0.00807952880859375, -0.01438140869140625, -0.0240478515625, -0.007549285888671875, 0.055145263671875, -0.05645751953125, -0.00897979736328125, 0.01763916015625, -0.005191802978515625, 0.012786865234375, -0.00019633769989013672, -0.06658935546875, -0.02191162109375, -0.031707763671875, -0.01114654541015625, -0.0007300376892089844, -0.02777099609375, -0.0022716522216796875, 0.033477783203125, -0.02081298828125, -0.0219879150390625, 0.02093505859375, -0.0263214111328125, 0.0030117034912109375, 0.0123443603515625, 0.0019407272338867188, -0.0213623046875, -0.0033206939697265625, -0.02264404296875, -0.00250244140625, 0.0008101463317871094, -0.0174713134765625, 0.002849578857421875, 0.03765869140625, -0.03668212890625, 0.0059661865234375, 0.0170440673828125, 0.02752685546875, 0.0250091552734375, 0.004863739013671875, -0.03680419921875, 0.04229736328125, 0.00829315185546875, 0.0187530517578125, -0.0038890838623046875, -0.007755279541015625, -0.02227783203125, -0.0305938720703125, 0.038818359375, -0.006679534912109375, 0.036529541015625, 0.006359100341796875, -0.00844573974609375, -0.0738525390625, -0.004364013671875, 0.01201629638671875, 0.01348114013671875, -0.00946044921875, 0.00505828857421875, 0.005886077880859375, -0.072265625, 0.0029811859130859375, -0.0069122314453125, -0.034271240234375, 0.0167236328125, -0.002269744873046875, 0.026214599609375, -0.0131683349609375, -0.021697998046875, 0.0080718994140625, 0.06048583984375, 0.037933349609375, 0.02947998046875, 0.0303802490234375, -0.04010009765625, 0.0305633544921875, 0.05194091796875, -0.050201416015625, 0.044342041015625, -0.007259368896484375, 0.028778076171875, -0.0386962890625, 0.005985260009765625, -0.006046295166015625, 0.0279541015625, 0.000797271728515625, -0.0163726806640625, 0.0102691650390625, 0.0142059326171875, -0.005306243896484375, -0.0268707275390625, 0.0197296142578125, 0.01528167724609375, -0.0094146728515625, 0.0181121826171875, -0.0345458984375, 0.013092041015625, 0.0267486572265625, -0.007030487060546875, -0.005023956298828125, 0.003017425537109375, -0.0169830322265625, -0.03204345703125, -0.0029621124267578125, -0.02276611328125, 0.037109375, -0.02447509765625, -0.00334930419921875, -0.0183258056640625, -0.006916046142578125, 0.02313232421875, 0.0123291015625, -0.0173492431640625, -0.037933349609375, 0.002574920654296875, 0.0175323486328125, -0.0026378631591796875, -0.006927490234375, 0.011932373046875, 0.036590576171875, -0.0258636474609375, -0.0221710205078125, 0.00826263427734375, 0.028594970703125, -0.0401611328125, 0.00905609130859375, 0.0135040283203125, -0.00724029541015625, -0.054962158203125, 0.1224365234375, -0.0328369140625, 0.034637451171875, 0.0004830360412597656, 0.04388427734375, 0.0457763671875, 0.01052093505859375, 0.0281524658203125, -0.04180908203125, -0.0084228515625, -0.01580810546875, -0.022796630859375, -0.0384521484375, -0.049896240234375, -0.0288543701171875, 0.0145416259765625, -0.017974853515625, 0.0221710205078125, 0.0440673828125, 0.031463623046875, -0.0256195068359375, 0.02655029296875, 0.0467529296875, 0.0179290771484375, -0.01500701904296875, 0.0041351318359375, 0.0217132568359375, 0.042205810546875, -0.032196044921875, -0.0037555694580078125, -0.0357666015625, -0.00392913818359375, 0.009552001953125, -0.063232421875, 0.03375244140625, 0.037353515625, 0.0258026123046875, -0.0233917236328125, 0.0014324188232421875, -0.0477294921875, -0.0062255859375, -0.029510498046875, 0.01137542724609375, 0.03558349609375, -0.042022705078125, -0.024444580078125, -0.01983642578125, 0.04998779296875, -0.0116119384765625, 0.0210418701171875, 0.0330810546875, 0.0023555755615234375, -0.07916259765625, 0.00882720947265625, -0.018798828125, -0.0201568603515625, -0.07733154296875, -0.042938232421875, -0.08746337890625, 0.007572174072265625, -0.026397705078125, -0.01031494140625, -0.018310546875, -0.00946807861328125, -0.005809783935546875, 0.027496337890625, 0.0109100341796875, -0.021881103515625, 0.0101776123046875, 0.039886474609375, 0.01331329345703125, 0.002262115478515625, 0.0458984375, 0.0268096923828125, -0.01971435546875, -0.0279388427734375, -0.00995635986328125, -0.0306243896484375, -0.01120758056640625, 0.01535797119140625, -0.004802703857421875, 0.0030536651611328125, 0.00890350341796875, 0.00164794921875, -0.0003590583801269531, -0.005199432373046875, 0.004119873046875, -0.0166778564453125, 0.028411865234375, 0.0208740234375, -0.0084686279296875, 0.0300445556640625, -0.02435302734375, 0.0013952255249023438, -0.01910400390625, -0.0178680419921875, 0.0404052734375, -0.0180511474609375, 0.0229949951171875, 0.01418304443359375, -0.02471923828125, 0.036285400390625, 0.0355224609375, 0.0034637451171875, 0.033935546875, 0.01009368896484375, 0.01885986328125, -0.00347137451171875, 0.0084075927734375, -0.031402587890625, -0.032562255859375, 0.0251922607421875, -0.00014853477478027344, -0.0132598876953125, 0.027618408203125, -0.015838623046875, -0.018951416015625, -0.022705078125, 0.03228759765625, 0.0227508544921875, -0.004878997802734375, 0.02178955078125, -0.0229339599609375, -0.022369384765625, -0.044677734375, -0.01299285888671875, -0.026519775390625, 0.047637939453125, 0.0196075439453125, -0.035919189453125, -0.0073699951171875, -0.0035037994384765625, 0.0011568069458007812, -0.017791748046875, 0.030975341796875, 0.0051422119140625, -0.06536865234375, 0.01019287109375, 0.046142578125, -0.014434814453125, 0.00496673583984375, 0.044097900390625, 0.00681304931640625, 0.0062103271484375, 0.0063934326171875, 0.06414794921875, 0.01053619384765625, -0.0168609619140625, -0.01465606689453125, 0.0132293701171875, -0.02874755859375, 0.03387451171875, -0.02410888671875, -0.0052947998046875, 0.022369384765625, -0.08642578125, 0.015380859375, 0.0088653564453125, 0.0010423660278320312, 0.0234527587890625, -0.02801513671875, 0.0006184577941894531, -0.032073974609375, 0.0345458984375, 0.005680084228515625, -0.039886474609375, 0.034027099609375, 0.0175323486328125, -0.031768798828125, 0.0211639404296875, -0.05023193359375, -0.016082763671875, 0.00897216796875, -0.005657196044921875, -0.04107666015625, 0.004123687744140625, 0.016326904296875, 0.00443267822265625, 0.001941680908203125, 0.032623291015625, -0.0298309326171875, 0.0733642578125, 0.0200958251953125, -0.0308837890625, 0.006771087646484375, 0.04205322265625, -0.04827880859375, 0.02001953125, -0.0308074951171875, 0.06329345703125, -0.01885986328125, 0.023895263671875, -0.056640625, -0.0053558349609375, -0.007282257080078125, 0.024261474609375, 0.028594970703125, 0.00563812255859375, -0.02716064453125, 0.0005960464477539062, 0.058349609375, 0.0166778564453125, 0.0165863037109375, 0.041015625, -0.01064300537109375, 0.012847900390625, 0.019561767578125, -0.020904541015625, 0.048919677734375, -0.0831298828125, -0.0121917724609375, -0.0103912353515625, -0.01849365234375, -0.047027587890625, 0.018341064453125, 0.0014066696166992188, -0.01551055908203125, 0.00878143310546875, -0.00785064697265625, -0.0031070709228515625, 0.00821685791015625, 0.03070068359375, 0.0258026123046875, -0.0276947021484375, -0.0400390625, -0.016510009765625, 0.0277557373046875, -0.0008268356323242188, -0.028656005859375, 0.029266357421875, 0.01092529296875, -0.01000213623046875, -0.01264190673828125, -0.024017333984375, 0.0002143383026123047, 0.01105499267578125, 0.05615234375, -0.00949859619140625, 0.003269195556640625, -0.0633544921875, -0.00009149312973022461, 0.0034580230712890625, 0.057861328125, -0.0467529296875, -0.0300140380859375, 0.0152587890625, 0.01212310791015625, 0.0191802978515625, -0.0106964111328125, 0.016357421875, -0.0262603759765625, 0.00382232666015625, -0.00815582275390625, -0.0166778564453125, 0.0008482933044433594, 0.057464599609375, -0.00844573974609375, -0.031036376953125, -0.032562255859375, -0.0260009765625, -0.028228759765625, -0.0306396484375, 0.01068878173828125, 0.0863037109375, 0.045379638671875, 0.045867919921875, -0.0570068359375, -0.044677734375, -0.00843048095703125, -0.0047607421875, -0.002941131591796875, 0.011322021484375, -0.036102294921875, -0.0312042236328125, 0.039764404296875, 0.037750244140625, -0.01305389404296875, 0.04248046875, 0.030975341796875, 0.034393310546875, -0.01062774658203125, -0.006969451904296875, 0.03619384765625, -0.018798828125, -0.01303863525390625, -0.0306243896484375, 0.032012939453125, 0.052154541015625, 0.003787994384765625, 0.0318603515625, -0.00385284423828125, 0.06134033203125, -0.027252197265625, 0.04443359375, -0.0014009475708007812, -0.003040313720703125, 0.058074951171875, -0.007343292236328125, 0.032562255859375, 0.005863189697265625, -0.0198974609375, -0.0036830902099609375, -0.004268646240234375, -0.0225067138671875, -0.0064544677734375, 0.020050048828125, -0.017852783203125, 0.040802001953125, 0.044952392578125, 0.029052734375, 0.0022220611572265625, -0.03131103515625, 0.01873779296875, -0.0150146484375, 0.02069091796875, 0.0178070068359375, -0.06982421875, -0.025482177734375, -0.052825927734375, 0.0244598388671875, 0.0272369384765625, 0.05548095703125, 0.00537872314453125, 0.0379638671875, 0.021728515625, -0.026153564453125, 0.0257110595703125, 0.0082244873046875, 0.0214080810546875, -0.002834320068359375, -0.0247802734375, -0.021820068359375, -0.05511474609375, 0.05059814453125, -0.009429931640625, 0.036346435546875, 0.050537109375, -0.0517578125, 0.0068511962890625, 0.0290985107421875, 0.0146942138671875, -0.03192138671875, -0.0765380859375, -0.03900146484375, 0.0188140869140625, -0.0183563232421875, 0.0187225341796875, 0.0231475830078125, 0.0269012451171875, -0.05670166015625, 0.020050048828125, -0.01995849609375, -0.00521087646484375, -0.0594482421875, 0.01129913330078125, -0.0706787109375, 0.00676727294921875, -0.043487548828125, -0.032196044921875, 0.0273284912109375, -0.0249481201171875, 0.0158538818359375, -0.004047393798828125, 0.004787445068359375, 0.006473541259765625, -0.024658203125, 0.0200347900390625, -0.01751708984375, -0.01117706298828125, -0.0215301513671875, 0.021728515625, 0.002105712890625, 0.0105438232421875, -0.020599365234375, -0.025848388671875, -0.01523590087890625, -0.01413726806640625, -0.019744873046875, -0.04388427734375, -0.0250091552734375, 0.00897979736328125, 0.04254150390625, 0.00522613525390625, -0.044219970703125, -0.00785064697265625, -0.01280975341796875, 0.0718994140625, 0.0113067626953125, 0.0280914306640625, -0.0025691986083984375, 0.0283203125, -0.0227203369140625, -0.0237274169921875, 0.0031108856201171875, 0.041107177734375, -0.006298065185546875, 0.0295867919921875, 0.0694580078125, -0.057891845703125, -0.06427001953125, 0.032257080078125, 0.062744140625, 0.06549072265625, 0.0010881423950195312, 0.003177642822265625, 0.01506805419921875, 0.006351470947265625, -0.0267791748046875, -0.055694580078125, 0.0074462890625, -0.0261688232421875, -0.0231475830078125, 0.021240234375, -0.047027587890625, -0.017669677734375, -0.04571533203125, -0.030364990234375, 0.04364013671875, 0.01611328125, -0.023284912109375, -0.032470703125, -0.006191253662109375, -0.0276947021484375, 0.04486083984375, 0.0021076202392578125, -0.00353240966796875, 0.003719329833984375, 0.040802001953125, 0.016387939453125, 0.012054443359375, 0.0338134765625, -0.005001068115234375, -0.054718017578125, -0.0081787109375, -0.0172119140625, 0.00547027587890625, 0.033538818359375, -0.0174407958984375, 0.0213165283203125, -0.002880096435546875, -0.07391357421875, -0.04583740234375, -0.027557373046875, 0.017578125, 0.00732421875, -0.042449951171875, -0.072021484375, -0.046966552734375, 0.08062744140625, 0.057952880859375, 0.034820556640625, -0.017822265625, -0.037933349609375, -0.0634765625, -0.0701904296875, -0.05645751953125, 0.040069580078125, -0.08697509765625, 0.014312744140625, -0.0278167724609375, 0.00214385986328125, -0.0287017822265625, 0.0014371871948242188, -0.03912353515625, -0.0177001953125, -0.0097198486328125, -0.004199981689453125, -0.007678985595703125, -0.005458831787109375, 0.01503753662109375, -0.0094451904296875, 0.032989501953125, -0.01450347900390625, 0.00829315185546875, 0.0108642578125, 0.0323486328125, 0.037384033203125, -0.053680419921875, 0.002429962158203125, 0.0232696533203125, 0.0192413330078125, 0.03399658203125, 0.0004470348358154297, -0.0711669921875, 0.0205841064453125, 0.0027103424072265625, -0.01383209228515625, 0.018768310546875, 0.0098114013671875, 0.01465606689453125, -0.0134124755859375, -0.01070404052734375, -0.00852203369140625, 0.01389312744140625, -0.01027679443359375, 0.0076751708984375, 0.00269317626953125, 0.00177001953125, 0.01531982421875, 0.0013418197631835938, 0.00762176513671875, 0.00897216796875, 0.036376953125, -0.05035400390625, 0.0535888671875, -0.0015897750854492188, 0.0308380126953125, 0.0291290283203125 ]
363ef5d90a5749ab5aa30417aadaeba07d3090e7
Wordpress Stackexchange Q: Plugin API for easy admin list table generation, handling & exporting of MySQL tables? I'm aware of the WP_List_Table class (which has helped tremendously as it stands). However, I'm hunting for something even more capable - some form of API whereby you could simply 'register' a MySQL table, pass field_name => label translations, and all the hard graft (menu links, table-generation, pagination, column sorting) & possibly data exporting (CSV etc.) is done for you automagically! I know this is an extremely specific request, but I thought it was worth asking. If anyone knows of anything remotely similar, please speak up! Heck, if there's nothing out there at the moment, I might just build it myself if this raises interest... A: https://github.com/scribu/wp-scb-framework/wiki This guy has built what you are looking for I believe. He's a core-contributor and his code is top notch. And the project is open on github, so even better right?
Q: Plugin API for easy admin list table generation, handling & exporting of MySQL tables? I'm aware of the WP_List_Table class (which has helped tremendously as it stands). However, I'm hunting for something even more capable - some form of API whereby you could simply 'register' a MySQL table, pass field_name => label translations, and all the hard graft (menu links, table-generation, pagination, column sorting) & possibly data exporting (CSV etc.) is done for you automagically! I know this is an extremely specific request, but I thought it was worth asking. If anyone knows of anything remotely similar, please speak up! Heck, if there's nothing out there at the moment, I might just build it myself if this raises interest... A: https://github.com/scribu/wp-scb-framework/wiki This guy has built what you are looking for I believe. He's a core-contributor and his code is top notch. And the project is open on github, so even better right?
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:415760", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37799" }
[ 0.00955963134765625, -0.01329803466796875, -0.018218994140625, 0.0126495361328125, 0.0095672607421875, -0.0289306640625, 0.04144287109375, -0.002460479736328125, 0.0285797119140625, 0.044769287109375, -0.0031223297119140625, 0.0042266845703125, -0.0118560791015625, -0.00689697265625, -0.043365478515625, -0.0095977783203125, 0.046356201171875, 0.002902984619140625, 0.0301361083984375, 0.00044918060302734375, -0.0217742919921875, 0.0224609375, 0.0305938720703125, 0.0305633544921875, 0.046722412109375, -0.05255126953125, 0.00647735595703125, 0.00298309326171875, 0.0443115234375, 0.0069427490234375, 0.022186279296875, -0.035552978515625, -0.016815185546875, 0.0245513916015625, 0.04388427734375, -0.0192108154296875, 0.044342041015625, 0.002838134765625, 0.035430908203125, 0.00839996337890625, 0.039947509765625, -0.0188140869140625, -0.0226287841796875, -0.00832366943359375, -0.0305938720703125, -0.046875, 0.069580078125, 0.005645751953125, 0.029296875, -0.021697998046875, -0.007564544677734375, 0.01490020751953125, -0.007625579833984375, -0.030059814453125, -0.0022068023681640625, 0.01236724853515625, 0.004604339599609375, -0.0238189697265625, 0.0204620361328125, 0.01561737060546875, -0.01358795166015625, -0.0215301513671875, 0.0210113525390625, -0.0045318603515625, -0.0139007568359375, 0.0212860107421875, 0.032135009765625, -0.002349853515625, 0.0037784576416015625, -0.0246734619140625, -0.00884246826171875, 0.00007408857345581055, -0.0067901611328125, -0.0037326812744140625, -0.0282440185546875, 0.01068115234375, 0.034820556640625, 0.003444671630859375, -0.0015306472778320312, 0.0036411285400390625, -0.024658203125, 0.0134735107421875, -0.0208282470703125, -0.0191497802734375, -0.005283355712890625, 0.0048370361328125, -0.022216796875, -0.01092529296875, 0.0218048095703125, -0.0196990966796875, 0.006603240966796875, -0.05999755859375, -0.005523681640625, 0.051055908203125, 0.012298583984375, -0.047149658203125, 0.02642822265625, 0.01129913330078125, 0.008087158203125, 0.01226043701171875, 0.0310211181640625, -0.0614013671875, 0.044677734375, -0.0124664306640625, 0.0150299072265625, 0.0126953125, -0.0139617919921875, -0.0029964447021484375, 0.041778564453125, 0.0245819091796875, 0.0009140968322753906, 0.010772705078125, 0.0144195556640625, -0.007595062255859375, 0.005794525146484375, -0.035003662109375, -0.0259857177734375, 0.0012140274047851562, -0.0192413330078125, -0.048980712890625, -0.05364990234375, -0.03759765625, -0.0175018310546875, 0.04876708984375, 0.02825927734375, 0.01910400390625, 0.032989501953125, 0.0164642333984375, -0.0228729248046875, -0.01064300537109375, -0.005306243896484375, 0.0166168212890625, 0.075439453125, 0.061859130859375, 0.01239013671875, 0.0008440017700195312, 0.043060302734375, 0.00342559814453125, 0.0056610107421875, 0.0168609619140625, -0.012542724609375, 0.00021922588348388672, -0.003448486328125, -0.029571533203125, 0.028350830078125, 0.0035037994384765625, 0.0175933837890625, -0.00118255615234375, 0.001911163330078125, 0.0281829833984375, -0.0312042236328125, 0.0164337158203125, 0.015045166015625, 0.0163116455078125, 0.0174713134765625, -0.0362548828125, 0.0188140869140625, -0.0257568359375, 0.033660888671875, -0.0181884765625, -0.00464630126953125, -0.0271453857421875, -0.005443572998046875, -0.043365478515625, -0.065185546875, 0.04541015625, -0.01270294189453125, -0.01061248779296875, 0.0256500244140625, -0.01392364501953125, 0.00775146484375, 0.009429931640625, 0.0489501953125, -0.0195465087890625, -0.00980377197265625, -0.00836944580078125, -0.0272369384765625, -0.0552978515625, 0.039642333984375, 0.0155181884765625, -0.0081634521484375, -0.007659912109375, -0.0020236968994140625, 0.024566650390625, -0.048675537109375, 0.050018310546875, 0.005084991455078125, 0.058258056640625, 0.0178070068359375, 0.006328582763671875, 0.0246124267578125, 0.0177154541015625, -0.00841522216796875, 0.0201263427734375, -0.034912109375, -0.0195159912109375, -0.01043701171875, 0.0244598388671875, -0.032073974609375, -0.000823974609375, -0.033111572265625, 0.0167999267578125, -0.0312347412109375, 0.02813720703125, -0.003143310546875, -0.0224761962890625, 0.005382537841796875, 0.0127410888671875, -0.004718780517578125, 0.0171356201171875, 0.014190673828125, -0.00982666015625, -0.0311431884765625, 0.00225830078125, -0.0321044921875, -0.04364013671875, -0.01885986328125, 0.036224365234375, -0.007343292236328125, -0.01053619384765625, 0.006420135498046875, -0.032806396484375, 0.0193634033203125, 0.056640625, -0.010345458984375, -0.0229644775390625, -0.01009368896484375, -0.01702880859375, 0.01152801513671875, -0.027496337890625, 0.08013916015625, 0.050048828125, 0.0516357421875, 0.035003662109375, -0.0198211669921875, -0.002960205078125, 0.01171112060546875, -0.037261962890625, 0.00998687744140625, 0.03631591796875, 0.0438232421875, 0.01116943359375, -0.017425537109375, -0.0171661376953125, 0.028594970703125, -0.01435089111328125, 0.0443115234375, -0.02886962890625, -0.00858306884765625, 0.0276947021484375, -0.036651611328125, 0.007045745849609375, 0.0283050537109375, -0.0309906005859375, -0.03790283203125, 0.050750732421875, -0.040679931640625, -0.016326904296875, -0.0032672882080078125, -0.0228424072265625, 0.0284576416015625, -0.02459716796875, -0.01053619384765625, -0.00991058349609375, 0.01544189453125, 0.005748748779296875, 0.03094482421875, 0.03875732421875, -0.020111083984375, -0.0024127960205078125, 0.022705078125, 0.0347900390625, -0.004749298095703125, 0.048858642578125, 0.00362396240234375, 0.031219482421875, -0.0615234375, -0.0115814208984375, 0.033966064453125, 0.021209716796875, -0.01045989990234375, 0.01065826416015625, -0.0216522216796875, -0.0134124755859375, 0.00362396240234375, -0.06256103515625, 0.01055908203125, 0.00879669189453125, -0.04840087890625, -0.0142059326171875, 0.00424957275390625, 0.049407958984375, -0.0007424354553222656, -0.00916290283203125, -0.0014781951904296875, 0.002597808837890625, 0.1021728515625, -0.0172576904296875, 0.014892578125, -0.0255126953125, 0.06488037109375, 0.04437255859375, -0.0261993408203125, -0.00589752197265625, -0.024139404296875, 0.0038051605224609375, -0.02142333984375, -0.008087158203125, -0.023529052734375, -0.056732177734375, -0.0014362335205078125, 0.0111846923828125, 0.0155181884765625, 0.10369873046875, -0.046417236328125, -0.08111572265625, -0.0157318115234375, 0.04656982421875, -0.065673828125, -0.04736328125, 0.0106658935546875, -0.014923095703125, 0.01702880859375, 0.018463134765625, -0.0125732421875, -0.027435302734375, 0.04376220703125, 0.0022449493408203125, 0.0303497314453125, -0.02447509765625, -0.035675048828125, -0.045379638671875, -0.07244873046875, -0.0273284912109375, 0.017730712890625, 0.01751708984375, -0.00701141357421875, 0.027618408203125, -0.020050048828125, -0.0994873046875, -0.023651123046875, -0.002902984619140625, -0.0018987655639648438, 0.02764892578125, 0.0262603759765625, -0.035430908203125, -0.0128173828125, 0.01702880859375, -0.0006117820739746094, 0.0297088623046875, -0.028167724609375, -0.0151519775390625, -0.0005140304565429688, 0.0266265869140625, -0.0050506591796875, -0.0269927978515625, 0.017974853515625, -0.00006240606307983398, -0.042755126953125, -0.061859130859375, 0.016357421875, 0.0180816650390625, 0.0005040168762207031, -0.035736083984375, -0.04290771484375, 0.0057830810546875, 0.0230712890625, -0.0031681060791015625, 0.01824951171875, 0.005855560302734375, 0.008819580078125, -0.0002589225769042969, -0.030792236328125, -0.022064208984375, -0.00010251998901367188, -0.01031494140625, 0.028045654296875, -0.019439697265625, -0.05194091796875, -0.005970001220703125, 0.002643585205078125, 0.0021820068359375, -0.0252685546875, -0.0288848876953125, -0.07562255859375, 0.06768798828125, 0.01326751708984375, 0.0026702880859375, -0.034759521484375, -0.0400390625, -0.002887725830078125, 0.09613037109375, -0.021759033203125, -0.0113677978515625, -0.0009274482727050781, 0.0131378173828125, -0.003223419189453125, -0.0355224609375, -0.0467529296875, -0.012939453125, -0.05792236328125, -0.016204833984375, -0.041961669921875, -0.0280914306640625, -0.0026683807373046875, 0.001262664794921875, -0.018096923828125, -0.042205810546875, 0.020416259765625, 0.003643035888671875, -0.0012464523315429688, 0.00524139404296875, 0.006122589111328125, -0.031707763671875, 0.0009317398071289062, -0.01532745361328125, -0.08819580078125, -0.0169525146484375, -0.0745849609375, 0.085693359375, 0.06341552734375, -0.03546142578125, -0.032073974609375, 0.0308685302734375, -0.0241851806640625, 0.0188446044921875, -0.005329132080078125, 0.03594970703125, 0.00768280029296875, -0.0308990478515625, -0.00725555419921875, -0.04327392578125, -0.0309906005859375, -0.06573486328125, -0.0243377685546875, 0.0026416778564453125, -0.0005545616149902344, 0.0194244384765625, -0.0097503662109375, 0.0026035308837890625, -0.031280517578125, -0.038726806640625, -0.034881591796875, -0.020111083984375, -0.022125244140625, -0.0072479248046875, -0.0110626220703125, -0.043121337890625, 0.0196533203125, -0.043670654296875, -0.0203399658203125, 0.027252197265625, 0.054656982421875, 0.0163116455078125, 0.01287841796875, -0.06988525390625, 0.00859832763671875, 0.04132080078125, -0.0160980224609375, 0.06396484375, 0.05596923828125, -0.006122589111328125, 0.057586669921875, 0.022735595703125, -0.01806640625, -0.003978729248046875, -0.0012407302856445312, 0.0082550048828125, -0.024200439453125, -0.004360198974609375, 0.00036787986755371094, 0.0254058837890625, 0.0171356201171875, 0.019989013671875, -0.0201873779296875, -0.039703369140625, 0.036712646484375, 0.0440673828125, -0.03497314453125, -0.06561279296875, -0.033416748046875, 0.013641357421875, -0.01213836669921875, -0.023193359375, -0.00873565673828125, 0.007297515869140625, -0.0288238525390625, -0.0304107666015625, 0.0169219970703125, 0.002025604248046875, 0.040130615234375, -0.006977081298828125, 0.040740966796875, -0.01494598388671875, 0.00846099853515625, -0.0462646484375, -0.01519775390625, 0.08465576171875, 0.0129852294921875, -0.060302734375, 0.0149078369140625, -0.0171966552734375, 0.0187530517578125, -0.0022182464599609375, -0.01464080810546875, 0.033843994140625, 0.053619384765625, -0.0177001953125, -0.0050048828125, -0.00916290283203125, 0.0000622868537902832, -0.038909912109375, 0.0277252197265625, -0.0038967132568359375, -0.0001951456069946289, -0.005626678466796875, 0.062103271484375, -0.01099395751953125, 0.0288543701171875, -0.0203094482421875, 0.049072265625, 0.01068878173828125, 0.054962158203125, 0.004924774169921875, -0.041534423828125, 0.01509857177734375, 0.0105133056640625, -0.03228759765625, -0.0225067138671875, 0.0121002197265625, 0.04095458984375, 0.043182373046875, 0.0110015869140625, -0.043243408203125, 0.0065460205078125, -0.04730224609375, -0.02947998046875, 0.0316162109375, 0.000022590160369873047, -0.0338134765625, -0.037689208984375, 0.01134490966796875, 0.0556640625, 0.00499725341796875, -0.0005822181701660156, 0.0242919921875, -0.0250091552734375, -0.0016193389892578125, -0.036895751953125, -0.006244659423828125, -0.0260467529296875, -0.0137481689453125, -0.0498046875, -0.032257080078125, -0.041107177734375, 0.025970458984375, -0.01105499267578125, 0.009368896484375, -0.011627197265625, -0.0035228729248046875, -0.00919342041015625, 0.01495361328125, -0.019287109375, 0.001800537109375, -0.031036376953125, -0.0038204193115234375, 0.07208251953125, 0.03948974609375, -0.0263671875, 0.0111541748046875, -0.05792236328125, -0.004352569580078125, -0.01025390625, -0.055328369140625, -0.023223876953125, -0.0169677734375, 0.002666473388671875, 0.00846099853515625, -0.0164794921875, -0.045257568359375, 0.004924774169921875, -0.00591278076171875, 0.0004012584686279297, -0.0175323486328125, 0.0178680419921875, 0.07342529296875, -0.0239715576171875, 0.04498291015625, 0.0309906005859375, 0.04901123046875, -0.05328369140625, -0.00859832763671875, 0.010650634765625, -0.053985595703125, -0.0262451171875, 0.01322174072265625, -0.014129638671875, 0.0030956268310546875, -0.01165771484375, -0.0031890869140625, 0.03131103515625, -0.0147552490234375, -0.007801055908203125, -0.007335662841796875, 0.040435791015625, -0.037261962890625, 0.0341796875, 0.0301513671875, -0.0167999267578125, 0.0114898681640625, -0.01678466796875, -0.005126953125, 0.0250091552734375, -0.017852783203125, 0.0106658935546875, 0.0188751220703125, -0.0460205078125, 0.0869140625, 0.109130859375, -0.012451171875, 0.036376953125, 0.0213623046875, -0.0236053466796875, 0.01296234130859375, -0.0020084381103515625, 0.0157928466796875, 0.0111846923828125, 0.0234527587890625, -0.01248931884765625, -0.0109100341796875, -0.00408935546875, -0.038787841796875, 0.0294342041015625, 0.04022216796875, 0.061370849609375, -0.059967041015625, 0.02703857421875, 0.022216796875, -0.046112060546875, -0.039215087890625, -0.00046944618225097656, -0.0328369140625, -0.05682373046875, 0.01021575927734375, 0.001209259033203125, -0.028167724609375, -0.0167236328125, 0.016815185546875, -0.00814056396484375, -0.0088958740234375, 0.039093017578125, 0.00894927978515625, 0.0230865478515625, -0.005153656005859375, -0.04351806640625, 0.03460693359375, -0.002170562744140625, 0.04510498046875, 0.006320953369140625, -0.00785064697265625, -0.022735595703125, 0.05303955078125, 0.027191162109375, -0.0216522216796875, -0.00959014892578125, -0.0150909423828125, 0.048370361328125, 0.0212860107421875, -0.0032634735107421875, -0.0076904296875, -0.00988006591796875, 0.04742431640625, 0.007659912109375, -0.00533294677734375, -0.00392913818359375, 0.0051422119140625, -0.0194854736328125, 0.002498626708984375, -0.04156494140625, -0.0016841888427734375, -0.01168060302734375, -0.035736083984375, 0.1033935546875, -0.03253173828125, -0.0195465087890625, 0.01468658447265625, -0.006671905517578125, -0.0194854736328125, -0.0107269287109375, -0.0177459716796875, -0.09063720703125, -0.036285400390625, -0.010284423828125, -0.03924560546875, 0.0144805908203125, -0.00324249267578125, -0.022735595703125, 0.0858154296875, 0.0016927719116210938, -0.0267791748046875, 0.024383544921875, 0.0374755859375, -0.052978515625, 0.0023345947265625, -0.052001953125, 0.01201629638671875, 0.0245361328125, 0.00585174560546875, -0.035675048828125, 0.00554656982421875, -0.0252227783203125, 0.00176239013671875, 0.0038051605224609375, -0.00133514404296875, -0.005290985107421875, 0.0101318359375, -0.005046844482421875, -0.03594970703125, -0.02069091796875, 0.045135498046875, 0.0250701904296875, 0.04876708984375, 0.046142578125, -0.0265350341796875, 0.0200958251953125, -0.005786895751953125, 0.0087738037109375, 0.040130615234375, 0.0020236968994140625, -0.00658416748046875, 0.00478363037109375, 0.010711669921875, 0.00800323486328125, -0.0120849609375, -0.02789306640625, -0.035736083984375, 0.0010042190551757812, 0.022125244140625, 0.0251617431640625, -0.01273345947265625, 0.0147705078125, -0.0272369384765625, 0.036163330078125, -0.0005235671997070312, 0.03436279296875, 0.01448822021484375, 0.0201263427734375, 0.063232421875, -0.024871826171875, 0.01189422607421875, 0.0306396484375, -0.027130126953125, 0.0694580078125, -0.03204345703125, 0.0247955322265625, -0.0902099609375, -0.05029296875, 0.021728515625, 0.0872802734375, -0.0228271484375, -0.063720703125, 0.011444091796875, 0.0220947265625, 0.01541900634765625, 0.050811767578125, 0.040618896484375, -0.0111846923828125, 0.06048583984375, 0.005542755126953125, -0.00891876220703125, 0.0153656005859375, -0.002407073974609375, 0.01105499267578125, 0.0201263427734375, 0.01166534423828125, -0.01157379150390625, 0.006282806396484375, 0.0091552734375, 0.0194854736328125, 0.01380157470703125, -0.0247955322265625, 0.039642333984375, -0.055908203125, 0.0059356689453125, -0.0252227783203125, -0.0081787109375, 0.0137481689453125, 0.010955810546875, -0.0301361083984375, 0.00339508056640625, 0.042724609375, 0.037384033203125, -0.0167999267578125, 0.01302337646484375, 0.034027099609375, 0.038543701171875, -0.0234375, -0.0191802978515625, 0.0338134765625, -0.0193023681640625, -0.060699462890625, -0.06353759765625, 0.040283203125, 0.027099609375, 0.041229248046875, 0.026824951171875, 0.034423828125, -0.0095367431640625, -0.0382080078125, 0.037078857421875, -0.01094818115234375, -0.0174713134765625, 0.008148193359375, -0.023406982421875, 0.035552978515625, -0.01541900634765625, -0.08197021484375, 0.0018739700317382812, 0.00408935546875, -0.03948974609375, -0.00708770751953125, 0.0252685546875, -0.055023193359375, 0.05987548828125, 0.032989501953125, 0.00435638427734375, 0.024139404296875, -0.04168701171875, 0.0016317367553710938, -0.0310211181640625, 0.01392364501953125, -0.026702880859375, -0.040679931640625, -0.024627685546875, -0.043121337890625, 0.043853759765625, 0.0210418701171875, 0.054595947265625, -0.0208892822265625, 0.06072998046875, -0.01190185546875, 0.0005769729614257812, -0.021453857421875, -0.02587890625, 0.032440185546875, -0.0113067626953125, -0.004550933837890625, -0.0007081031799316406, -0.06866455078125, -0.01166534423828125, 0.048370361328125, -0.033538818359375, -0.020263671875, 0.00943756103515625, 0.036590576171875, -0.0091400146484375, 0.00891876220703125, -0.01995849609375, -0.02777099609375, 0.037353515625, 0.0209197998046875, -0.01546478271484375, 0.0252685546875, 0.033905029296875, 0.025238037109375, -0.0012531280517578125, -0.02825927734375, 0.00704193115234375, -0.0379638671875, 0.022674560546875, 0.044708251953125, -0.0213775634765625, 0.0197906494140625, 0.023773193359375, -0.0207672119140625, 0.0298919677734375, 0.01096343994140625, 0.04022216796875, 0.0009379386901855469, 0.0190887451171875, 0.02069091796875, 0.04644775390625, 0.046051025390625, -0.01242828369140625, 0.01558685302734375, 0.034454345703125, -0.01251220703125, -0.0251922607421875, -0.005153656005859375, -0.01177215576171875, -0.0301055908203125, -0.0223846435546875, 0.0026111602783203125, -0.04046630859375, -0.047393798828125, -0.0673828125, 0.005626678466796875, 0.00952911376953125, -0.01763916015625, -0.02008056640625, 0.019989013671875, -0.031402587890625, 0.006130218505859375, -0.029205322265625, 0.01267242431640625, -0.00431060791015625, 0.0200653076171875, -0.0108795166015625, -0.036346435546875, -0.0063018798828125, 0.06085205078125, -0.012786865234375, 0.046966552734375, 0.03668212890625, -0.0333251953125, -0.007572174072265625, 0.05859375, 0.0200653076171875, 0.10174560546875, 0.0445556640625, 0.007068634033203125, 0.0268402099609375, 0.0142669677734375, -0.03631591796875, -0.1256103515625, -0.0014171600341796875, -0.0789794921875, 0.0198974609375, -0.0225982666015625, 0.00252532958984375, 0.01055908203125, -0.037750244140625, -0.05706787109375, 0.03533935546875, -0.0089569091796875, -0.0350341796875, 0.0173492431640625, -0.0003020763397216797, -0.005107879638671875, 0.0017824172973632812, 0.0019426345825195312, -0.01171112060546875, -0.007045745849609375, -0.0021457672119140625, 0.016357421875, 0.00780487060546875, -0.0017900466918945312, -0.0296478271484375, -0.09429931640625, -0.004055023193359375, -0.0019025802612304688, 0.03375244140625, 0.0107421875, -0.006988525390625, 0.01535797119140625, 0.040313720703125, -0.02069091796875, -0.03009033203125, -0.007556915283203125, -0.00780487060546875, -0.0261383056640625, -0.056365966796875, -0.02880859375, -0.00518798828125, 0.07037353515625, 0.0845947265625, 0.02496337890625, -0.06329345703125, 0.0012569427490234375, -0.03631591796875, -0.01059722900390625, -0.03863525390625, 0.0007033348083496094, -0.06494140625, -0.0192108154296875, 0.00380706787109375, 0.021728515625, -0.020050048828125, 0.05535888671875, 0.01244354248046875, -0.0364990234375, 0.056671142578125, -0.041473388671875, -0.00942230224609375, -0.043365478515625, 0.016845703125, -0.0235137939453125, -0.022979736328125, 0.01080322265625, 0.0274200439453125, -0.0291595458984375, 0.0023212432861328125, -0.04620361328125, -0.0382080078125, 0.012054443359375, 0.04144287109375, -0.032928466796875, 0.0171966552734375, -0.02337646484375, 0.007415771484375, 0.006011962890625, 0.0309906005859375, -0.007476806640625, 0.05169677734375, -0.0285797119140625, 0.064208984375, -0.0022487640380859375, 0.03363037109375, 0.009521484375, -0.01885986328125, -0.026123046875, 0.03363037109375, -0.00432586669921875, -0.01080322265625, -0.002582550048828125, -0.01451873779296875, -0.0038509368896484375, -0.0316162109375, -0.005260467529296875, -0.0648193359375, 0.0052032470703125, -0.024566650390625, -0.01155853271484375, 0.032318115234375 ]
99ddbc911413b15b23aa2563062540ff957126fa
Wordpress Stackexchange Q: How to include external page to wordpress page? I have one external page (google_map.php) which contain code to display google map information based on the selection criteria. And in the wordpress page I want to display the google map which is coded in google_map.php. I want to ask that how can I add google_map.php page in my wordpress page? Or other option, Can i directly add my google_map.php page code to the wordpress page? I don't want to use any plugin to support php code in the wordpress page like Exec-PHP plugin. Which is the better way? A: It is actually very simple. just * *add the following text in at begining of google_map.php page *upload this page to your theme folder. *go to dashboard to create a page, when create a page chose page telmplate: google map. that is it, you can read more here <?php /* Template Name: google map */ ?>
Q: How to include external page to wordpress page? I have one external page (google_map.php) which contain code to display google map information based on the selection criteria. And in the wordpress page I want to display the google map which is coded in google_map.php. I want to ask that how can I add google_map.php page in my wordpress page? Or other option, Can i directly add my google_map.php page code to the wordpress page? I don't want to use any plugin to support php code in the wordpress page like Exec-PHP plugin. Which is the better way? A: It is actually very simple. just * *add the following text in at begining of google_map.php page *upload this page to your theme folder. *go to dashboard to create a page, when create a page chose page telmplate: google map. that is it, you can read more here <?php /* Template Name: google map */ ?> A: IMO the best option for what you want to do would be to use the MapPress plugin - the free version works really well and will allow you to embed a customizable google map into any post or page quickly and easily through your admin page editor. Otherwise you could create a page template and use a php include to call the google_map.php page wherever you want it displayed within your page/post.
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:415766", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37822" }
[ 0.06317138671875, 0.006397247314453125, 0.04888916015625, 0.01377105712890625, 0.005664825439453125, -0.0180816650390625, 0.0650634765625, -0.058807373046875, -0.031829833984375, -0.0241851806640625, -0.0706787109375, 0.0276641845703125, -0.058380126953125, -0.0130767822265625, 0.047119140625, -0.08404541015625, 0.04010009765625, -0.007965087890625, 0.0435791015625, -0.011077880859375, 0.01143646240234375, 0.023162841796875, 0.0170440673828125, 0.0491943359375, -0.00030112266540527344, -0.005336761474609375, 0.0215606689453125, -0.0012922286987304688, -0.0168914794921875, -0.004131317138671875, 0.0008778572082519531, 0.01479339599609375, 0.033233642578125, 0.001949310302734375, -0.020294189453125, -0.023651123046875, -0.0065765380859375, -0.00725555419921875, -0.00814056396484375, 0.031005859375, 0.01611328125, -0.01119232177734375, 0.034698486328125, -0.0130615234375, 0.012176513671875, -0.02862548828125, 0.00344085693359375, -0.056182861328125, -0.04681396484375, -0.006931304931640625, 0.044769287109375, 0.00870513916015625, 0.0665283203125, 0.0311737060546875, 0.001911163330078125, 0.014739990234375, 0.00501251220703125, 0.010650634765625, 0.02545166015625, -0.025482177734375, -0.0421142578125, -0.0087127685546875, 0.035247802734375, -0.000759124755859375, -0.0078277587890625, 0.01349639892578125, -0.01019287109375, 0.025634765625, -0.053375244140625, -0.03997802734375, 0.0073699951171875, -0.03350830078125, -0.0269927978515625, -0.0224609375, -0.020660400390625, 0.0221405029296875, 0.0092926025390625, -0.0269622802734375, -0.016754150390625, 0.01522064208984375, 0.0182952880859375, 0.032867431640625, -0.004352569580078125, -0.059783935546875, 0.0242462158203125, -0.038665771484375, -0.007312774658203125, -0.01313018798828125, -0.032318115234375, -0.0139312744140625, -0.018157958984375, 0.00278472900390625, -0.055694580078125, 0.0321044921875, -0.007678985595703125, 0.0081939697265625, 0.019378662109375, 0.05865478515625, -0.00870513916015625, 0.042510986328125, 0.0103607177734375, -0.0638427734375, 0.0916748046875, -0.08074951171875, -0.0247039794921875, 0.0516357421875, 0.0299530029296875, -0.020782470703125, -0.0263214111328125, 0.00044798851013183594, -0.01141357421875, -0.047607421875, 0.01277923583984375, -0.018035888671875, -0.033355712890625, -0.0002765655517578125, -0.018524169921875, -0.0166015625, 0.0110626220703125, -0.033447265625, -0.0267486572265625, -0.0153045654296875, -0.0144195556640625, -0.0159912109375, 0.01751708984375, 0.00446319580078125, -0.0245513916015625, 0.021484375, 0.034881591796875, 0.00945281982421875, -0.026641845703125, 0.00457000732421875, 0.02154541015625, 0.02264404296875, -0.007724761962890625, -0.007110595703125, -0.00827789306640625, -0.019989013671875, -0.01041412353515625, 0.0294342041015625, -0.01424407958984375, -0.032440185546875, 0.035614013671875, -0.007129669189453125, 0.020477294921875, 0.00444793701171875, -0.0032100677490234375, 0.0168609619140625, 0.02423095703125, -0.033782958984375, 0.056427001953125, -0.05419921875, 0.005889892578125, -0.0013570785522460938, 0.06085205078125, -0.024383544921875, 0.02008056640625, -0.02630615234375, 0.0251617431640625, 0.01513671875, 0.017913818359375, -0.0022411346435546875, 0.0068511962890625, -0.031982421875, -0.041778564453125, -0.0199432373046875, -0.037994384765625, -0.0132904052734375, 0.0208587646484375, 0.01451873779296875, 0.0032558441162109375, 0.009002685546875, -0.00916290283203125, 0.0186309814453125, 0.00811767578125, 0.00423431396484375, 0.038970947265625, 0.02740478515625, 0.004840850830078125, 0.062744140625, 0.0269927978515625, -0.01995849609375, 0.07586669921875, -0.0330810546875, -0.0321044921875, 0.05328369140625, 0.006969451904296875, 0.07318115234375, -0.0076141357421875, 0.0321044921875, -0.00681304931640625, 0.0328369140625, -0.012054443359375, 0.0128936767578125, 0.005916595458984375, -0.0244140625, -0.006504058837890625, 0.004787445068359375, -0.0099029541015625, -0.0187530517578125, -0.028076171875, -0.007053375244140625, 0.011444091796875, 0.0175018310546875, 0.0010366439819335938, -0.0018091201782226562, -0.0009369850158691406, 0.0271148681640625, 0.03558349609375, 0.0108489990234375, -0.0009765625, -0.0058746337890625, -0.00449371337890625, -0.0243988037109375, -0.033782958984375, 0.046722412109375, -0.007038116455078125, 0.03509521484375, 0.00527191162109375, 0.015655517578125, -0.003932952880859375, -0.02685546875, -0.0103607177734375, -0.017425537109375, 0.043701171875, -0.0413818359375, -0.035491943359375, -0.05181884765625, -0.032196044921875, -0.01540374755859375, -0.07257080078125, 0.09490966796875, -0.00048828125, -0.0180206298828125, -0.01357269287109375, -0.0008497238159179688, -0.007236480712890625, -0.05364990234375, -0.010284423828125, 0.055511474609375, 0.0322265625, 0.0296783447265625, 0.0031604766845703125, -0.0002104043960571289, 0.060791015625, -0.00689697265625, 0.0208892822265625, -0.022064208984375, 0.005645751953125, 0.010498046875, -0.0256195068359375, -0.01561737060546875, 0.01953125, -0.0718994140625, -0.00823211669921875, 0.041778564453125, -0.0173187255859375, -0.00945281982421875, -0.016204833984375, 0.00766754150390625, 0.0172882080078125, -0.0148773193359375, -0.0245361328125, -0.004505157470703125, 0.006206512451171875, 0.025177001953125, 0.031890869140625, 0.041412353515625, -0.004428863525390625, -0.0180511474609375, 0.0006656646728515625, 0.04144287109375, 0.0014362335205078125, 0.0147705078125, 0.00788116455078125, -0.0007328987121582031, -0.0157470703125, -0.00522613525390625, -0.004276275634765625, 0.00603485107421875, -0.007007598876953125, -0.01561737060546875, -0.0089111328125, 0.00704193115234375, 0.0221710205078125, -0.044158935546875, 0.02252197265625, 0.031341552734375, 0.0072479248046875, -0.0413818359375, -0.00824737548828125, 0.02178955078125, -0.0311126708984375, 0.043853759765625, 0.00872802734375, -0.0399169921875, 0.067626953125, -0.0391845703125, 0.0301055908203125, -0.012847900390625, 0.0723876953125, 0.061676025390625, -0.004055023193359375, 0.006359100341796875, -0.006378173828125, 0.003032684326171875, 0.0088958740234375, -0.01230621337890625, -0.0159149169921875, -0.040435791015625, -0.0205535888671875, -0.006992340087890625, 0.006084442138671875, -0.02117919921875, 0.00008666515350341797, -0.034271240234375, -0.01543426513671875, -0.0164337158203125, -0.11126708984375, -0.07891845703125, -0.0012655258178710938, -0.0166015625, -0.00969696044921875, 0.016632080078125, -0.0155792236328125, -0.01041412353515625, 0.046295166015625, -0.00568389892578125, -0.0159912109375, -0.054107666015625, -0.05975341796875, -0.09979248046875, -0.07421875, 0.00780487060546875, -0.007282257080078125, -0.007541656494140625, 0.018707275390625, -0.0158538818359375, 0.003314971923828125, -0.0214996337890625, 0.0212249755859375, 0.054931640625, -0.0137481689453125, -0.01067352294921875, -0.0228271484375, -0.01959228515625, 0.005725860595703125, -0.0082550048828125, 0.01348114013671875, -0.01322174072265625, 0.01157379150390625, -0.006099700927734375, 0.0012331008911132812, -0.0039825439453125, 0.0035247802734375, -0.0213470458984375, 0.006500244140625, -0.00501251220703125, -0.020111083984375, -0.059844970703125, -0.00823211669921875, 0.016754150390625, -0.0197601318359375, -0.05743408203125, 0.0052032470703125, -0.0236968994140625, -0.0251922607421875, -0.0130157470703125, 0.038055419921875, 0.021392822265625, 0.0225830078125, 0.025360107421875, -0.00029087066650390625, -0.01313018798828125, 0.01012420654296875, -0.042572021484375, 0.0021514892578125, -0.0093536376953125, 0.036956787109375, 0.012298583984375, 0.01708984375, 0.010345458984375, 0.026214599609375, -0.005863189697265625, 0.004974365234375, 0.0413818359375, 0.045989990234375, 0.0474853515625, 0.0170135498046875, -0.037750244140625, 0.0218963623046875, 0.072998046875, -0.0166168212890625, -0.03082275390625, 0.002948760986328125, 0.006908416748046875, -0.032379150390625, 0.001216888427734375, -0.045013427734375, -0.0187225341796875, 0.003520965576171875, -0.0069580078125, -0.01251220703125, 0.002727508544921875, -0.023162841796875, 0.044464111328125, -0.0059356689453125, -0.01617431640625, 0.018646240234375, -0.01580810546875, -0.036102294921875, 0.045806884765625, -0.05548095703125, 0.01837158203125, -0.027923583984375, -0.00792694091796875, -0.062286376953125, -0.004985809326171875, -0.033538818359375, 0.040435791015625, 0.036102294921875, -0.041900634765625, 0.001255035400390625, 0.024688720703125, 0.0285491943359375, 0.00435638427734375, 0.0172882080078125, -0.0213775634765625, 0.040374755859375, 0.0240020751953125, 0.0064849853515625, -0.003658294677734375, 0.003971099853515625, 0.0146026611328125, -0.03125, 0.01666259765625, -0.0118255615234375, -0.0174560546875, 0.03729248046875, -0.0369873046875, -0.018402099609375, -0.0222625732421875, 0.0307769775390625, 0.00397491455078125, 0.01419830322265625, -0.0017147064208984375, 0.00257110595703125, -0.0149383544921875, 0.0111541748046875, 0.008148193359375, -0.01395416259765625, 0.0196990966796875, 0.039520263671875, 0.01128387451171875, -0.0174407958984375, -0.0953369140625, 0.02008056640625, 0.02630615234375, -0.0195159912109375, 0.06756591796875, 0.031402587890625, 0.0084381103515625, 0.006317138671875, 0.005001068115234375, 0.027099609375, 0.010406494140625, 0.041595458984375, 0.018218994140625, 0.01206207275390625, 0.0106658935546875, 0.0269622802734375, -0.05535888671875, -0.0016107559204101562, -0.0184783935546875, -0.00472259521484375, -0.01271820068359375, 0.009185791015625, -0.0263824462890625, 0.053924560546875, -0.0081634521484375, -0.00637054443359375, -0.010772705078125, -0.0112152099609375, 0.0282440185546875, 0.049957275390625, -0.005641937255859375, 0.007213592529296875, 0.02850341796875, -0.022674560546875, 0.0657958984375, 0.04443359375, 0.01485443115234375, 0.0225830078125, 0.039703369140625, -0.023681640625, 0.0198516845703125, -0.003551483154296875, 0.053924560546875, 0.01336669921875, -0.0275421142578125, -0.0209808349609375, -0.0153656005859375, -0.0073699951171875, -0.01129150390625, 0.035003662109375, 0.023193359375, 0.0244140625, -0.0010128021240234375, 0.0129547119140625, 0.01800537109375, 0.02911376953125, -0.014984130859375, -0.01551055908203125, -0.0204925537109375, -0.01384735107421875, -0.0223846435546875, 0.06622314453125, -0.060882568359375, 0.0426025390625, 0.0111083984375, 0.0247344970703125, -0.003231048583984375, 0.056640625, 0.019317626953125, -0.031219482421875, 0.0235748291015625, 0.001049041748046875, -0.006771087646484375, -0.0012454986572265625, -0.0278472900390625, -0.020721435546875, -0.01056671142578125, -0.0264129638671875, 0.0207672119140625, 0.041473388671875, 0.020172119140625, -0.0100860595703125, 0.024078369140625, 0.0034885406494140625, -0.0275115966796875, -0.01273345947265625, 0.0008440017700195312, 0.017181396484375, -0.00476837158203125, -0.0035152435302734375, 0.053741455078125, 0.0171661376953125, 0.07568359375, -0.008636474609375, 0.038238525390625, -0.005413055419921875, -0.0189971923828125, 0.00946807861328125, -0.0226898193359375, -0.0094451904296875, -0.04901123046875, 0.007022857666015625, -0.0192413330078125, 0.00045037269592285156, 0.005336761474609375, -0.0355224609375, -0.005985260009765625, -0.0182037353515625, 0.0212860107421875, 0.007633209228515625, 0.01158905029296875, 0.03997802734375, 0.018218994140625, -0.00856781005859375, -0.0174102783203125, -0.052093505859375, -0.04083251953125, 0.005008697509765625, 0.00923919677734375, -0.019805908203125, -0.00986480712890625, 0.0007243156433105469, 0.045562744140625, -0.0186004638671875, 0.023284912109375, -0.0445556640625, 0.042755126953125, -0.0008935928344726562, 0.1136474609375, -0.01471710205078125, 0.0875244140625, -0.0194091796875, 0.048919677734375, 0.0085601806640625, 0.04156494140625, -0.030548095703125, -0.006702423095703125, 0.0196685791015625, -0.0863037109375, -0.03582763671875, -0.0034542083740234375, -0.05023193359375, 0.02288818359375, -0.01030731201171875, -0.0008640289306640625, 0.0186004638671875, -0.0200653076171875, 0.00506591796875, -0.00959014892578125, 0.0278167724609375, -0.00974273681640625, -0.01214599609375, 0.058074951171875, -0.02740478515625, 0.004924774169921875, 0.002063751220703125, -0.005451202392578125, 0.0303192138671875, -0.0287628173828125, 0.0299072265625, -0.0118560791015625, -0.0548095703125, 0.056549072265625, 0.09124755859375, 0.028076171875, 0.06451416015625, 0.0222015380859375, 0.01666259765625, 0.03216552734375, 0.056060791015625, -0.06976318359375, -0.020782470703125, 0.00501251220703125, 0.0022430419921875, -0.03857421875, -0.0333251953125, -0.0179595947265625, 0.013092041015625, 0.027801513671875, 0.042388916015625, -0.066162109375, 0.0145263671875, -0.00788116455078125, -0.004253387451171875, 0.0673828125, 0.00843048095703125, -0.02618408203125, -0.036407470703125, 0.027587890625, -0.004894256591796875, -0.00580596923828125, 0.0207061767578125, 0.006084442138671875, -0.00701904296875, -0.01666259765625, 0.043548583984375, 0.0243988037109375, -0.058624267578125, 0.05816650390625, 0.0294647216796875, 0.0394287109375, -0.01137542724609375, -0.0019931793212890625, -0.0120391845703125, -0.0302581787109375, -0.037200927734375, 0.0049896240234375, -0.046600341796875, 0.00286865234375, 0.01438140869140625, 0.020721435546875, 0.027435302734375, 0.0426025390625, 0.004680633544921875, 0.0032634735107421875, 0.00060272216796875, 0.0065460205078125, 0.06793212890625, -0.0174407958984375, 0.01552581787109375, 0.01296234130859375, -0.042083740234375, -0.010986328125, -0.00397491455078125, -0.00890350341796875, -0.0128326416015625, 0.0380859375, 0.0728759765625, -0.027130126953125, -0.0218505859375, 0.048309326171875, 0.0231170654296875, -0.0245361328125, 0.01007080078125, 0.05853271484375, -0.0112152099609375, 0.018341064453125, 0.0447998046875, 0.0167083740234375, -0.04937744140625, -0.0098876953125, -0.047210693359375, 0.09466552734375, -0.03411865234375, 0.0189056396484375, 0.00518035888671875, 0.04736328125, -0.0024471282958984375, 0.014739990234375, -0.0002117156982421875, 0.0235443115234375, 0.01380157470703125, 0.02227783203125, -0.04168701171875, -0.0362548828125, -0.0002315044403076172, 0.084716796875, 0.0015306472778320312, -0.005794525146484375, -0.0347900390625, -0.007152557373046875, 0.002349853515625, 0.0106048583984375, -0.002819061279296875, 0.0303955078125, 0.005542755126953125, -0.0245361328125, 0.017333984375, 0.01270294189453125, 0.033233642578125, -0.02490234375, -0.00470733642578125, 0.0264892578125, -0.0115203857421875, -0.002285003662109375, 0.02117919921875, -0.023529052734375, 0.02557373046875, -0.0008783340454101562, -0.028839111328125, 0.01360321044921875, -0.019622802734375, 0.00910186767578125, -0.042938232421875, -0.031829833984375, -0.03912353515625, -0.02166748046875, 0.00640869140625, -0.004604339599609375, -0.0048370361328125, -0.0063018798828125, -0.0006513595581054688, 0.02978515625, 0.0051116943359375, -0.011566162109375, 0.0293426513671875, 0.0092315673828125, 0.065185546875, 0.053802490234375, 0.0113677978515625, -0.023345947265625, 0.0301055908203125, 0.050628662109375, 0.07525634765625, -0.058319091796875, -0.01044464111328125, 0.01702880859375, 0.0015268325805664062, -0.0221099853515625, -0.01861572265625, -0.007472991943359375, -0.01349639892578125, -0.00466156005859375, -0.01401519775390625, 0.0020580291748046875, 0.0174102783203125, 0.0221099853515625, -0.007762908935546875, -0.023040771484375, -0.0283966064453125, 0.01453399658203125, -0.0501708984375, 0.002689361572265625, 0.0308074951171875, 0.0657958984375, 0.0273590087890625, 0.047210693359375, -0.006862640380859375, -0.0217742919921875, -0.010528564453125, 0.0087738037109375, 0.0175323486328125, 0.01476287841796875, -0.0223541259765625, -0.004383087158203125, 0.010955810546875, 0.03326416015625, -0.024078369140625, 0.0294952392578125, 0.0173797607421875, 0.011138916015625, -0.0272369384765625, -0.0258026123046875, 0.04156494140625, -0.03369140625, -0.0221710205078125, -0.030548095703125, -0.0092926025390625, 0.0201568603515625, -0.004947662353515625, 0.021240234375, 0.01132965087890625, 0.0308990478515625, -0.0592041015625, 0.0283966064453125, -0.01654052734375, -0.043701171875, 0.057464599609375, -0.011474609375, 0.09967041015625, -0.02325439453125, -0.06829833984375, 0.00594329833984375, -0.033294677734375, -0.0208740234375, 0.0256805419921875, 0.033721923828125, -0.017181396484375, 0.04144287109375, 0.052001953125, 0.01462554931640625, 0.00023066997528076172, -0.0068359375, 0.0180511474609375, 0.006954193115234375, 0.03924560546875, 0.035400390625, -0.058807373046875, -0.060333251953125, -0.034088134765625, 0.06866455078125, 0.03265380859375, 0.054046630859375, -0.01097869873046875, 0.03759765625, 0.0533447265625, -0.034942626953125, 0.0416259765625, -0.00006812810897827148, 0.03375244140625, -0.0238037109375, -0.0091094970703125, -0.01232147216796875, -0.0022754669189453125, 0.01432037353515625, 0.037933349609375, -0.04180908203125, -0.0269927978515625, 0.01788330078125, 0.017578125, -0.0263214111328125, 0.006832122802734375, -0.0307464599609375, -0.0017242431640625, 0.01018524169921875, 0.00780487060546875, 0.0013799667358398438, -0.03985595703125, -0.03680419921875, 0.024383544921875, 0.0115814208984375, -0.0276641845703125, 0.030853271484375, -0.040435791015625, 0.057281494140625, 0.0249786376953125, -0.01178741455078125, -0.0226593017578125, 0.01300048828125, -0.0206756591796875, 0.03759765625, -0.0204925537109375, 0.0615234375, 0.01157379150390625, -0.031280517578125, -0.018218994140625, -0.017669677734375, 0.01395416259765625, -0.0300445556640625, -0.00955963134765625, -0.01739501953125, 0.004673004150390625, 0.021697998046875, 0.007904052734375, -0.04864501953125, -0.0284881591796875, 0.023681640625, 0.02764892578125, -0.00212860107421875, -0.0202178955078125, -0.09173583984375, 0.0285186767578125, 0.05596923828125, 0.00450897216796875, -0.061492919921875, 0.0041656494140625, -0.0295257568359375, 0.07562255859375, 0.0115966796875, 0.0104522705078125, -0.00814056396484375, 0.0187225341796875, -0.03717041015625, -0.01505279541015625, -0.007778167724609375, 0.0244140625, -0.0068817138671875, 0.03399658203125, 0.06854248046875, -0.032196044921875, 0.00749969482421875, 0.04241943359375, 0.0220184326171875, 0.08929443359375, -0.044769287109375, -0.025909423828125, -0.002643585205078125, 0.0006761550903320312, 0.00936126708984375, -0.0092010498046875, 0.0190887451171875, -0.039703369140625, -0.028045654296875, 0.01247406005859375, -0.00966644287109375, 0.0154571533203125, -0.0426025390625, -0.085693359375, 0.054046630859375, 0.0013685226440429688, -0.0452880859375, -0.035919189453125, -0.0182037353515625, -0.0232696533203125, 0.011199951171875, -0.016357421875, -0.0206146240234375, -0.00951385498046875, 0.052001953125, 0.0306243896484375, 0.0626220703125, -0.0121917724609375, 0.0360107421875, -0.00438690185546875, 0.0489501953125, 0.0290679931640625, 0.0181732177734375, 0.038543701171875, -0.030853271484375, 0.05029296875, 0.051544189453125, -0.0313720703125, 0.0005793571472167969, 0.00824737548828125, -0.026275634765625, -0.0257110595703125, -0.052154541015625, -0.036041259765625, -0.01043701171875, 0.107421875, 0.055450439453125, 0.0269012451171875, -0.044952392578125, -0.02313232421875, -0.038299560546875, 0.0007882118225097656, 0.0081787109375, 0.004833221435546875, -0.032073974609375, 0.034942626953125, -0.00766754150390625, -0.01513671875, 0.01230621337890625, 0.010894775390625, -0.0207061767578125, 0.009246826171875, 0.0303802490234375, 0.0032176971435546875, -0.04541015625, -0.01141357421875, 0.0980224609375, -0.055145263671875, -0.0147705078125, 0.00803375244140625, 0.01531982421875, 0.033935546875, -0.01293182373046875, 0.0110626220703125, 0.053497314453125, -0.0423583984375, 0.0034122467041015625, 0.00737762451171875, 0.02783203125, -0.01318359375, 0.0040435791015625, -0.03900146484375, 0.0283050537109375, 0.0177764892578125, 0.055023193359375, -0.0428466796875, 0.0677490234375, 0.04766845703125, 0.007251739501953125, 0.01369476318359375, 0.043548583984375, -0.02337646484375, 0.0628662109375, -0.0208587646484375, -0.0287322998046875, -0.01959228515625, -0.02874755859375, 0.0079498291015625, 0.018951416015625, -0.01430511474609375, -0.012359619140625, 0.01154327392578125, -0.01448822021484375, 0.004528045654296875, 0.00799560546875 ]
350c58a089b784ac81ccefc5f931d1b6003e2572
Wordpress Stackexchange Q: Disable Visual editor for all users Is there a way to Disable the visual editor for all users without logging in and setting each user's setting in the admin panel, preferable some way to do it with code in the functions file? A: The easiest way seems to be to use the Disable Visual Editor Plugin. The plugin also recommends that you remove the wp-includes/js/tinymce/ directory, but will require maintenance every upgrade.
Q: Disable Visual editor for all users Is there a way to Disable the visual editor for all users without logging in and setting each user's setting in the admin panel, preferable some way to do it with code in the functions file? A: The easiest way seems to be to use the Disable Visual Editor Plugin. The plugin also recommends that you remove the wp-includes/js/tinymce/ directory, but will require maintenance every upgrade. A: Not sure if this still works. Preferably, drop this inside your theme's functions.php: add_filter( 'user_can_richedit' , '__return_false', 50 );
wordpress
{ "language": "en", "length": 93, "provenance": "stackexchange_00019.jsonl.gz:415777", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37861" }
[ 0.059295654296875, -0.0082550048828125, -0.00640106201171875, -0.025909423828125, 0.004390716552734375, -0.04388427734375, 0.04339599609375, -0.006378173828125, 0.058074951171875, 0.044189453125, 0.024139404296875, -0.04248046875, 0.0184478759765625, -0.03790283203125, -0.060455322265625, 0.01052093505859375, 0.0220489501953125, 0.006732940673828125, 0.020111083984375, -0.01357269287109375, 0.0136871337890625, 0.0160369873046875, 0.007598876953125, -0.005260467529296875, -0.024017333984375, 0.07293701171875, 0.0158233642578125, -0.013580322265625, -0.043426513671875, -0.036529541015625, -0.00626373291015625, 0.0289459228515625, -0.003143310546875, 0.046478271484375, -0.037872314453125, 0.0165252685546875, -0.034454345703125, 0.03887939453125, 0.037017822265625, -0.03765869140625, 0.02978515625, -0.017364501953125, -0.032958984375, 0.0189208984375, -0.041046142578125, -0.0191497802734375, 0.0216827392578125, -0.0058746337890625, 0.03814697265625, -0.03314208984375, -0.030975341796875, 0.02166748046875, 0.007297515869140625, -0.05609130859375, -0.0173492431640625, -0.01305389404296875, -0.0062255859375, 0.0150604248046875, 0.01898193359375, 0.01995849609375, -0.005634307861328125, 0.0024509429931640625, 0.0074005126953125, -0.0286102294921875, 0.01031494140625, -0.0198974609375, -0.0733642578125, 0.0255889892578125, -0.036834716796875, 0.029754638671875, 0.0289306640625, -0.059112548828125, 0.02740478515625, -0.01702880859375, 0.0159454345703125, 0.007183074951171875, -0.022247314453125, 0.005367279052734375, 0.0328369140625, -0.0228424072265625, -0.0184478759765625, -0.0018262863159179688, -0.0888671875, -0.00032019615173339844, -0.0285491943359375, 0.01220703125, -0.013702392578125, -0.005237579345703125, -0.0301361083984375, -0.01399993896484375, -0.02716064453125, 0.0096282958984375, -0.052825927734375, 0.021728515625, -0.006195068359375, -0.0028667449951171875, 0.035675048828125, 0.0369873046875, -0.021331787109375, -0.00901031494140625, 0.0181427001953125, -0.047149658203125, 0.015716552734375, -0.0208587646484375, 0.00567626953125, -0.00611114501953125, -0.01983642578125, 0.00782012939453125, 0.03717041015625, 0.04180908203125, -0.00212860107421875, 0.0170440673828125, -0.032684326171875, 0.0019521713256835938, 0.0244903564453125, 0.02239990234375, -0.07470703125, 0.06060791015625, -0.02880859375, 0.05914306640625, 0.00007730722427368164, 0.035064697265625, -0.056610107421875, -0.0007061958312988281, -0.045379638671875, -0.0531005859375, 0.0151824951171875, 0.01485443115234375, 0.03472900390625, -0.01593017578125, -0.0462646484375, 0.00589752197265625, 0.09503173828125, 0.07769775390625, 0.0587158203125, -0.004150390625, -0.016998291015625, -0.0266571044921875, -0.0031795501708984375, 0.016265869140625, -0.0208740234375, -0.0235595703125, 0.0305938720703125, -0.002010345458984375, -0.0257720947265625, 0.0228729248046875, 0.02935791015625, 0.007183074951171875, -0.0294342041015625, -0.031951904296875, -0.04449462890625, 0.00728607177734375, -0.00818634033203125, 0.0186920166015625, 0.034027099609375, -0.005825042724609375, 0.029693603515625, -0.0114593505859375, 0.00957489013671875, -0.0163421630859375, 0.0096282958984375, 0.026092529296875, 0.060943603515625, 0.01280975341796875, 0.005916595458984375, -0.035430908203125, -0.01934814453125, -0.00347137451171875, 0.031768798828125, 0.035614013671875, -0.005916595458984375, -0.033905029296875, 0.04345703125, 0.016204833984375, -0.01021575927734375, 0.0443115234375, -0.01009368896484375, 0.00446319580078125, 0.003719329833984375, -0.0007758140563964844, -0.008575439453125, -0.043548583984375, 0.027496337890625, -0.00396728515625, -0.0419921875, 0.003082275390625, -0.0039005279541015625, 0.030609130859375, 0.0382080078125, 0.01143646240234375, 0.0294036865234375, 0.006103515625, 0.062255859375, -0.0215911865234375, 0.033172607421875, -0.046600341796875, -0.030059814453125, -0.03118896484375, -0.004077911376953125, -0.0107879638671875, 0.0904541015625, -0.04681396484375, 0.0178680419921875, -0.08660888671875, -0.0975341796875, -0.043182373046875, -0.010528564453125, 0.01861572265625, 0.0212554931640625, 0.010833740234375, -0.007266998291015625, -0.016845703125, -0.020782470703125, 0.048553466796875, -0.010162353515625, 0.0040740966796875, 0.00972747802734375, 0.060821533203125, 0.0165863037109375, 0.04351806640625, 0.0247650146484375, -0.03741455078125, 0.043121337890625, 0.01361846923828125, -0.0179443359375, -0.02996826171875, 0.00004291534423828125, 0.00420379638671875, 0.03619384765625, -0.0258941650390625, 0.10284423828125, 0.00711822509765625, -0.0217132568359375, 0.000934600830078125, -0.02862548828125, -0.00354766845703125, -0.02716064453125, -0.05816650390625, 0.01293182373046875, 0.039459228515625, 0.0357666015625, 0.0216217041015625, -0.01129913330078125, 0.0063323974609375, 0.061065673828125, -0.0223541259765625, -0.000007271766662597656, 0.006378173828125, 0.0125274658203125, 0.05267333984375, -0.021087646484375, 0.025543212890625, 0.017852783203125, -0.01507568359375, 0.0328369140625, 0.03369140625, 0.001514434814453125, 0.013275146484375, 0.042694091796875, -0.01275634765625, 0.01210784912109375, 0.053009033203125, 0.00555419921875, 0.01186370849609375, 0.0026798248291015625, 0.0000851750373840332, 0.01308441162109375, 0.0154571533203125, -0.01168060302734375, -0.0087738037109375, 0.0162353515625, 0.00033283233642578125, -0.0101776123046875, 0.009002685546875, 0.054351806640625, -0.0019855499267578125, -0.0224761962890625, -0.0216522216796875, 0.01202392578125, 0.0162200927734375, -0.031005859375, -0.0271453857421875, 0.01190185546875, -0.00998687744140625, 0.024688720703125, -0.058013916015625, 0.042816162109375, -0.032928466796875, -0.048553466796875, -0.038848876953125, 0.002513885498046875, -0.0031604766845703125, -0.01468658447265625, 0.001308441162109375, -0.02227783203125, -0.018951416015625, -0.00127410888671875, -0.030059814453125, 0.02032470703125, -0.01222991943359375, 0.05316162109375, 0.06500244140625, 0.0272064208984375, -0.017181396484375, 0.0199737548828125, -0.0251617431640625, 0.0189666748046875, 0.02587890625, 0.0139923095703125, 0.013427734375, -0.0616455078125, 0.0016508102416992188, 0.0032711029052734375, -0.0018205642700195312, -0.007007598876953125, -0.039398193359375, -0.0235443115234375, 0.0016431808471679688, -0.035491943359375, -0.0017223358154296875, -0.01522064208984375, -0.0185089111328125, -0.0176239013671875, 0.0107421875, -0.01166534423828125, 0.004730224609375, 0.0287322998046875, 0.0019817352294921875, -0.01116180419921875, -0.004901885986328125, 0.040252685546875, 0.005107879638671875, 0.012298583984375, -0.02325439453125, -0.00476837158203125, -0.020782470703125, 0.027099609375, 0.040802001953125, 0.01043701171875, -0.0217437744140625, 0.0305023193359375, -0.081298828125, -0.02685546875, 0.031951904296875, -0.01873779296875, -0.0165557861328125, -0.00629425048828125, -0.0011663436889648438, -0.052978515625, -0.023712158203125, 0.027679443359375, -0.01422119140625, 0.047332763671875, -0.018707275390625, 0.039093017578125, 0.0306243896484375, -0.0634765625, -0.00588226318359375, 0.04052734375, -0.0390625, 0.00733184814453125, 0.00942230224609375, -0.01146697998046875, 0.02276611328125, -0.007778167724609375, -0.0208587646484375, 0.01409149169921875, 0.0031719207763671875, 0.028533935546875, 0.040557861328125, 0.01861572265625, -0.006053924560546875, 0.01525115966796875, -0.0022525787353515625, 0.0173492431640625, -0.0275421142578125, 0.0153961181640625, -0.0252685546875, 0.044830322265625, -0.0185699462890625, -0.017181396484375, -0.0198822021484375, 0.0219268798828125, -0.01096343994140625, 0.02154541015625, 0.01311492919921875, 0.00012421607971191406, 0.04302978515625, -0.016021728515625, -0.016357421875, -0.0162353515625, 0.04083251953125, -0.0051116943359375, 0.006175994873046875, -0.0238189697265625, -0.0311126708984375, -0.0208282470703125, 0.00902557373046875, -0.078125, 0.0165252685546875, -0.059661865234375, 0.01345062255859375, -0.003692626953125, -0.0325927734375, -0.0447998046875, -0.00942230224609375, -0.060089111328125, -0.029571533203125, 0.03082275390625, -0.0035953521728515625, -0.01517486572265625, 0.032012939453125, -0.04248046875, 0.002353668212890625, -0.0207366943359375, -0.00807952880859375, -0.102783203125, 0.0006299018859863281, -0.059722900390625, 0.06304931640625, 0.01175689697265625, 0.03607177734375, -0.0218048095703125, 0.041717529296875, -0.01483917236328125, 0.0037097930908203125, -0.02435302734375, 0.0066680908203125, -0.010833740234375, 0.0289154052734375, -0.0285491943359375, 0.005275726318359375, 0.00435638427734375, -0.01367950439453125, -0.03582763671875, -0.05078125, -0.059661865234375, -0.046539306640625, 0.018890380859375, -0.054473876953125, -0.033447265625, -0.0255279541015625, -0.067626953125, 0.0223541259765625, -0.032989501953125, -0.01361083984375, -0.037872314453125, -0.076416015625, 0.0635986328125, 0.03271484375, -0.007843017578125, -0.007717132568359375, 0.05810546875, 0.0013580322265625, -0.044219970703125, -0.033355712890625, 0.043701171875, 0.0384521484375, 0.0293731689453125, -0.01409912109375, -0.01812744140625, -0.03961181640625, 0.0361328125, 0.01806640625, -0.0095977783203125, -0.059112548828125, 0.062469482421875, -0.022003173828125, -0.0435791015625, 0.04205322265625, -0.041259765625, 0.04718017578125, 0.012481689453125, 0.0183868408203125, 0.01763916015625, 0.0250396728515625, -0.006160736083984375, 0.017608642578125, -0.0675048828125, -0.01824951171875, -0.0341796875, 0.00525665283203125, 0.0276031494140625, 0.0250701904296875, 0.00974273681640625, 0.01100921630859375, 0.006389617919921875, 0.021484375, -0.047210693359375, 0.0244598388671875, 0.021820068359375, 0.01238250732421875, 0.0103759765625, -0.006786346435546875, -0.039703369140625, -0.027557373046875, -0.01184844970703125, 0.0306854248046875, -0.0104217529296875, -0.04107666015625, -0.0288543701171875, -0.003932952880859375, 0.045166015625, 0.008758544921875, 0.01171112060546875, 0.06170654296875, 0.0186309814453125, -0.0099639892578125, 0.000762939453125, -0.01007080078125, -0.00789642333984375, -0.0501708984375, -0.0067138671875, -0.021759033203125, -0.02215576171875, 0.0128936767578125, 0.0259857177734375, -0.0367431640625, 0.01456451416015625, 0.0131378173828125, 0.04193115234375, 0.011749267578125, 0.01261138916015625, 0.0034885406494140625, 0.045654296875, -0.006378173828125, -0.006679534912109375, -0.0005669593811035156, -0.050994873046875, -0.0178375244140625, 0.03173828125, 0.043243408203125, 0.05084228515625, -0.0123138427734375, -0.01415252685546875, -0.01448822021484375, -0.0065460205078125, 0.01605224609375, -0.0218353271484375, -0.04595947265625, -0.004913330078125, 0.0030918121337890625, -0.0044403076171875, -0.029541015625, 0.0137176513671875, -0.01477813720703125, -0.0176239013671875, -0.03466796875, 0.0428466796875, -0.066650390625, -0.0240936279296875, -0.000675201416015625, -0.0193328857421875, 0.0017137527465820312, 0.0008411407470703125, -0.05029296875, -0.0362548828125, 0.004669189453125, 0.0029697418212890625, 0.05078125, -0.03173828125, 0.01995849609375, -0.01438140869140625, -0.00498199462890625, -0.02569580078125, 0.0229949951171875, 0.0238494873046875, 0.0265045166015625, -0.040985107421875, -0.00861358642578125, -0.061859130859375, -0.019195556640625, -0.061187744140625, -0.05426025390625, -0.04022216796875, -0.0005140304565429688, -0.0037822723388671875, -0.0027179718017578125, 0.0240631103515625, 0.0293731689453125, 0.01560211181640625, 0.0552978515625, -0.00738525390625, 0.05419921875, -0.0008940696716308594, 0.046844482421875, -0.0177459716796875, 0.0693359375, 0.004100799560546875, 0.01372528076171875, -0.03607177734375, -0.0211944580078125, 0.017181396484375, -0.00841522216796875, -0.046630859375, -0.02752685546875, 0.00334930419921875, -0.005283355712890625, 0.046661376953125, -0.0237579345703125, -0.002170562744140625, -0.01184844970703125, 0.00998687744140625, -0.02532958984375, 0.0007457733154296875, -0.02496337890625, -0.00237274169921875, -0.028564453125, -0.0224761962890625, -0.0105133056640625, -0.0015392303466796875, -0.06011962890625, 0.0435791015625, 0.0250396728515625, 0.031005859375, -0.0010137557983398438, 0.01007843017578125, 0.0036754608154296875, 0.004337310791015625, -0.002964019775390625, 0.0118255615234375, 0.00917816162109375, 0.01535797119140625, 0.0015363693237304688, 0.00452423095703125, -0.0179595947265625, 0.0019817352294921875, 0.0300140380859375, 0.00797271728515625, -0.0106201171875, 0.034210205078125, -0.01422882080078125, 0.01219940185546875, 0.08837890625, 0.07415771484375, -0.11810302734375, 0.008697509765625, 0.00354766845703125, 0.003337860107421875, 0.01203155517578125, -0.0391845703125, 0.0012912750244140625, -0.06256103515625, 0.07373046875, -0.0007185935974121094, -0.017303466796875, 0.00691986083984375, -0.055023193359375, -0.0142974853515625, -0.0170440673828125, 0.0247039794921875, 0.01271820068359375, -0.0080413818359375, 0.0129547119140625, 0.021697998046875, 0.0092010498046875, -0.0300750732421875, -0.019683837890625, 0.014556884765625, -0.035247802734375, -0.08428955078125, -0.00006705522537231445, 0.0033721923828125, -0.0194854736328125, 0.060302734375, 0.002201080322265625, -0.0173797607421875, 0.051910400390625, -0.052734375, 0.06353759765625, 0.01280975341796875, -0.05340576171875, 0.0289306640625, -0.0186614990234375, -0.0263214111328125, 0.042083740234375, -0.0114288330078125, 0.0029964447021484375, 0.0164031982421875, 0.025726318359375, -0.00455474853515625, 0.037261962890625, 0.052154541015625, 0.006984710693359375, -0.044891357421875, 0.028717041015625, 0.0012903213500976562, -0.01580810546875, -0.036773681640625, -0.047088623046875, -0.0484619140625, -0.00201416015625, -0.04754638671875, -0.041290283203125, 0.0304718017578125, -0.046875, -0.06549072265625, 0.0911865234375, -0.0122222900390625, 0.01483917236328125, -0.0008783340454101562, 0.0290374755859375, -0.035491943359375, 0.004978179931640625, -0.022491455078125, 0.045166015625, -0.006473541259765625, 0.048187255859375, 0.0012121200561523438, 0.001956939697265625, 0.04168701171875, 0.03814697265625, 0.03509521484375, 0.000171661376953125, -0.032470703125, -0.0177459716796875, 0.04034423828125, 0.04864501953125, 0.007160186767578125, 0.028900146484375, 0.003917694091796875, -0.0295257568359375, 0.0033893585205078125, 0.007495880126953125, 0.034027099609375, -0.044342041015625, -0.03564453125, 0.006778717041015625, 0.005764007568359375, 0.006732940673828125, 0.0310516357421875, 0.005115509033203125, 0.00560760498046875, 0.012420654296875, -0.0136260986328125, -0.0237884521484375, -0.0053253173828125, 0.0030517578125, 0.0034999847412109375, -0.062744140625, -0.05316162109375, -0.00806427001953125, 0.0235443115234375, 0.0289459228515625, -0.0638427734375, 0.01751708984375, -0.005420684814453125, -0.06005859375, 0.01806640625, -0.0258636474609375, 0.0168914794921875, 0.019989013671875, -0.0131683349609375, -0.00458526611328125, 0.007415771484375, -0.044647216796875, -0.0187835693359375, 0.0421142578125, -0.00392913818359375, -0.003719329833984375, -0.01605224609375, 0.02587890625, 0.012664794921875, -0.0306396484375, -0.01174163818359375, -0.0252227783203125, -0.0005235671997070312, 0.049407958984375, -0.025604248046875, 0.008514404296875, 0.0151519775390625, 0.023162841796875, -0.00965118408203125, -0.01404571533203125, 0.002399444580078125, 0.01446533203125, -0.01064300537109375, -0.00968170166015625, 0.01019287109375, -0.0161285400390625, 0.00937652587890625, -0.0165557861328125, 0.0528564453125, 0.006256103515625, -0.061309814453125, 0.0278167724609375, 0.0149993896484375, 0.06500244140625, -0.07391357421875, -0.00388336181640625, 0.018951416015625, 0.04833984375, 0.016204833984375, 0.0158843994140625, 0.035430908203125, 0.022491455078125, -0.033477783203125, -0.004680633544921875, 0.00982666015625, -0.0195159912109375, 0.013763427734375, 0.00212860107421875, 0.004726409912109375, 0.01837158203125, -0.00788116455078125, -0.025115966796875, 0.0343017578125, 0.040313720703125, -0.021575927734375, 0.01493072509765625, 0.0009675025939941406, -0.0209503173828125, 0.007335662841796875, -0.00004029273986816406, -0.0010089874267578125, 0.00420379638671875, -0.024658203125, 0.0097503662109375, -0.033294677734375, 0.006420135498046875, -0.01021575927734375, 0.0074615478515625, -0.03582763671875, 0.06732177734375, 0.0229034423828125, 0.00431060791015625, -0.0066070556640625, -0.0059814453125, 0.015869140625, -0.025360107421875, 0.01251983642578125, -0.01505279541015625, -0.06494140625, -0.033294677734375, -0.036285400390625, 0.037628173828125, 0.01194000244140625, 0.1063232421875, -0.032012939453125, 0.02081298828125, 0.016387939453125, -0.004337310791015625, 0.0236663818359375, -0.01346588134765625, 0.00672149658203125, 0.01849365234375, 0.0205230712890625, -0.0169677734375, -0.0692138671875, 0.04443359375, 0.0016689300537109375, 0.005275726318359375, 0.041748046875, -0.0028705596923828125, -0.007061004638671875, -0.0004730224609375, 0.01033782958984375, -0.0175323486328125, -0.0230865478515625, -0.022430419921875, -0.0025157928466796875, 0.005344390869140625, 0.00334930419921875, -0.0123138427734375, 0.01194000244140625, 0.00957489013671875, -0.038055419921875, -0.006195068359375, -0.0103607177734375, -0.022857666015625, 0.0216522216796875, 0.0294952392578125, -0.01137542724609375, 0.01548004150390625, -0.0012712478637695312, -0.005657196044921875, 0.0328369140625, -0.020111083984375, 0.0233306884765625, -0.08880615234375, 0.0084991455078125, -0.01218414306640625, 0.03515625, 0.00665283203125, -0.012237548828125, -0.01235198974609375, 0.005237579345703125, -0.0266876220703125, -0.019073486328125, -0.01288604736328125, -0.0192718505859375, 0.00812530517578125, 0.037384033203125, -0.0020351409912109375, -0.0226593017578125, -0.052886962890625, 0.0030670166015625, 0.045013427734375, -0.00632476806640625, -0.058319091796875, 0.030242919921875, -0.049163818359375, 0.0511474609375, -0.00720977783203125, 0.010009765625, -0.0200042724609375, -0.00421905517578125, -0.0288848876953125, -0.03533935546875, -0.03582763671875, 0.042388916015625, -0.0298614501953125, 0.039764404296875, 0.06060791015625, -0.0172119140625, -0.0191497802734375, 0.047454833984375, 0.0135498046875, 0.10589599609375, -0.056732177734375, -0.0217437744140625, 0.01116943359375, 0.0009918212890625, 0.007785797119140625, -0.049163818359375, -0.0245513916015625, -0.00460052490234375, 0.00672149658203125, 0.0203399658203125, -0.031707763671875, -0.00677490234375, -0.0682373046875, -0.13818359375, -0.0167083740234375, 0.014495849609375, -0.0716552734375, 0.0179901123046875, -0.0009198188781738281, -0.0015459060668945312, -0.036895751953125, 0.00014984607696533203, -0.0011129379272460938, 0.0004334449768066406, 0.003787994384765625, 0.0279693603515625, 0.035430908203125, 0.000025928020477294922, 0.052520751953125, -0.026092529296875, 0.0421142578125, 0.007244110107421875, 0.002368927001953125, 0.0164794921875, -0.00305938720703125, 0.0254058837890625, 0.033599853515625, -0.0178680419921875, -0.024871826171875, -0.003070831298828125, -0.0284271240234375, -0.0283203125, -0.01114654541015625, -0.031280517578125, -0.018829345703125, 0.0926513671875, 0.061981201171875, 0.01934814453125, -0.01514434814453125, -0.0261077880859375, -0.0341796875, 0.0335693359375, -0.004596710205078125, -0.017913818359375, -0.03216552734375, 0.0139617919921875, -0.005313873291015625, -0.00867462158203125, 0.0143280029296875, 0.00720977783203125, -0.0401611328125, -0.0013275146484375, 0.019744873046875, -0.00550079345703125, -0.042877197265625, 0.0080108642578125, -0.01471710205078125, -0.00943756103515625, -0.00986480712890625, -0.003814697265625, -0.006786346435546875, -0.018096923828125, 0.0318603515625, -0.04718017578125, -0.055511474609375, -0.0017938613891601562, 0.07159423828125, -0.0404052734375, 0.05755615234375, -0.06964111328125, 0.0027484893798828125, -0.0026454925537109375, 0.0060272216796875, 0.0012054443359375, 0.007129669189453125, -0.0289154052734375, 0.01320648193359375, 0.031280517578125, -0.029937744140625, -0.0311126708984375, -0.0082855224609375, -0.0259857177734375, 0.01113128662109375, -0.0215606689453125, 0.0170440673828125, 0.0082855224609375, -0.006587982177734375, 0.0158233642578125, 0.06402587890625, 0.02783203125, 0.0101470947265625, 0.010528564453125, -0.023468017578125, 0.01861572265625, -0.019012451171875 ]
15925b144b568d3096b7f439233c8d931c6bc191
Wordpress Stackexchange Q: Custom permalink structure only for default posts Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the single post pages) should not contain "xxx" in the url. Customizing the permalink settings would add xxx in front of taxonomies and categories as well, so that wouldn't work for what I need. Essentially, I want that all "post" and "events" urls co contain an extra "xxx" segment in the structure. A: The solution is to reregister the default post type just after Wordpress, and to add a rewrite slug. Also, the _builtin param needs to be set to false. add_action( 'init', 'my_new_default_post_type', 1 ); function my_new_default_post_type() { register_post_type( 'post', array( 'labels' => array( 'name_admin_bar' => _x( 'Post', 'add new on admin bar' ), ), 'public' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => false, 'rewrite' => array( 'slug' => 'post' ), 'query_var' => false, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ), ) ); }
Q: Custom permalink structure only for default posts Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the single post pages) should not contain "xxx" in the url. Customizing the permalink settings would add xxx in front of taxonomies and categories as well, so that wouldn't work for what I need. Essentially, I want that all "post" and "events" urls co contain an extra "xxx" segment in the structure. A: The solution is to reregister the default post type just after Wordpress, and to add a rewrite slug. Also, the _builtin param needs to be set to false. add_action( 'init', 'my_new_default_post_type', 1 ); function my_new_default_post_type() { register_post_type( 'post', array( 'labels' => array( 'name_admin_bar' => _x( 'Post', 'add new on admin bar' ), ), 'public' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => false, 'rewrite' => array( 'slug' => 'post' ), 'query_var' => false, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ), ) ); } A: Another method without the potential side-effects of registering a new post type is to modify the rewrite rules to remove the permalink front. function wpa37911_permastructs(){ global $wp_rewrite; $wp_rewrite->extra_permastructs['category']['struct'] = '/category/%category%'; $wp_rewrite->extra_permastructs['post_tag']['struct'] = '/tag/%post_tag%'; } add_action( 'init', 'wpa37911_permastructs' );
wordpress
{ "language": "en", "length": 233, "provenance": "stackexchange_00019.jsonl.gz:415793", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37911" }
[ 0.060302734375, -0.0195159912109375, 0.034332275390625, -0.051025390625, -0.0244903564453125, 0.0196075439453125, 0.00433349609375, -0.0278472900390625, -0.039520263671875, -0.00807952880859375, 0.032806396484375, -0.0100860595703125, -0.01071929931640625, -0.07373046875, 0.0557861328125, -0.0166168212890625, 0.0226287841796875, -0.0003504753112792969, 0.0167236328125, -0.030731201171875, 0.0140380859375, -0.030364990234375, 0.022003173828125, 0.076904296875, 0.037200927734375, -0.0011882781982421875, 0.03173828125, -0.05230712890625, 0.00893402099609375, -0.04083251953125, 0.020751953125, 0.0100555419921875, 0.004306793212890625, 0.0152740478515625, 0.0288238525390625, 0.0116729736328125, 0.007022857666015625, 0.01235198974609375, 0.018707275390625, 0.01715087890625, 0.0134735107421875, -0.005542755126953125, 0.033050537109375, 0.0175628662109375, 0.01274871826171875, -0.0416259765625, 0.0263671875, -0.0712890625, 0.0288238525390625, -0.03643798828125, -0.021453857421875, 0.056182861328125, -0.0030364990234375, -0.027984619140625, -0.016510009765625, -0.0201263427734375, -0.0022869110107421875, -0.041229248046875, 0.03460693359375, 0.00484466552734375, -0.015167236328125, -0.0225830078125, 0.0208587646484375, -0.02166748046875, -0.0147705078125, -0.010650634765625, -0.008758544921875, 0.0279693603515625, -0.06561279296875, -0.0156402587890625, 0.042633056640625, -0.0369873046875, -0.00516510009765625, -0.0110015869140625, -0.026153564453125, -0.00821685791015625, -0.0029544830322265625, -0.028228759765625, 0.01058197021484375, 0.0104217529296875, 0.0350341796875, -0.028656005859375, 0.007755279541015625, -0.0504150390625, 0.047698974609375, -0.0233154296875, 0.0109405517578125, -0.0074005126953125, -0.046234130859375, 0.00513458251953125, -0.0372314453125, -0.036102294921875, -0.01387786865234375, 0.0034427642822265625, -0.0147705078125, -0.005313873291015625, 0.032562255859375, 0.01031494140625, 0.004383087158203125, 0.01654052734375, 0.01456451416015625, -0.046417236328125, 0.0450439453125, -0.034210205078125, 0.016845703125, 0.03082275390625, -0.01273345947265625, -0.02081298828125, 0.049713134765625, 0.0281219482421875, 0.00617218017578125, 0.054290771484375, -0.01087188720703125, 0.0265655517578125, -0.0635986328125, 0.010467529296875, -0.03851318359375, -0.01824951171875, -0.0185546875, 0.03271484375, 0.002506256103515625, 0.0290069580078125, 0.03955078125, -0.033966064453125, 0.0026950836181640625, 0.01020050048828125, -0.019927978515625, -0.06689453125, 0.004428863525390625, 0.02001953125, -0.03350830078125, -0.00260162353515625, 0.10003662109375, 0.062347412109375, 0.0302581787109375, -0.0230865478515625, 0.024993896484375, -0.0274658203125, -0.007350921630859375, 0.025054931640625, -0.02923583984375, -0.0105743408203125, 0.0350341796875, -0.023895263671875, 0.003795623779296875, 0.02215576171875, 0.012237548828125, 0.015777587890625, 0.003482818603515625, -0.024322509765625, -0.007122039794921875, -0.00829315185546875, 0.05963134765625, -0.00919342041015625, -0.046295166015625, -0.0382080078125, 0.030303955078125, -0.03985595703125, -0.030364990234375, -0.052459716796875, 0.028228759765625, -0.01332855224609375, 0.00033783912658691406, -0.0293426513671875, -0.078369140625, 0.0217132568359375, -0.0594482421875, -0.0310516357421875, 0.0161590576171875, -0.01495361328125, 0.005001068115234375, -0.005924224853515625, -0.001262664794921875, -0.004802703857421875, 0.004638671875, 0.00594329833984375, -0.02825927734375, 0.0013790130615234375, 0.01007843017578125, 0.0643310546875, 0.0170745849609375, -0.0224609375, -0.0062103271484375, 0.0155792236328125, -0.1019287109375, 0.06805419921875, 0.01404571533203125, 0.08111572265625, 0.020721435546875, 0.0005578994750976562, 0.07080078125, 0.00968170166015625, -0.046051025390625, 0.0021953582763671875, -0.01458740234375, -0.016754150390625, 0.0301971435546875, -0.00711822509765625, -0.0141448974609375, 0.03900146484375, -0.0145111083984375, 0.0118560791015625, 0.00554656982421875, 0.029754638671875, 0.00263214111328125, 0.00698089599609375, -0.005481719970703125, 0.018524169921875, -0.0037822723388671875, 0.02630615234375, 0.01520538330078125, 0.0068206787109375, -0.021026611328125, -0.03399658203125, -0.012237548828125, 0.0260009765625, 0.03546142578125, -0.005611419677734375, -0.035430908203125, 0.0171966552734375, -0.019622802734375, -0.025909423828125, -0.05548095703125, 0.057586669921875, 0.0806884765625, -0.00551605224609375, -0.01082611083984375, -0.0380859375, 0.04864501953125, -0.0019063949584960938, -0.06304931640625, 0.057647705078125, 0.00867462158203125, -0.029632568359375, -0.05059814453125, 0.01241302490234375, 0.0175323486328125, -0.00897216796875, -0.001392364501953125, 0.050201416015625, 0.01470184326171875, -0.00965118408203125, -0.03448486328125, 0.00687408447265625, 0.01361846923828125, -0.014251708984375, 0.0034313201904296875, 0.0120697021484375, -0.01776123046875, 0.026092529296875, -0.003997802734375, 0.024658203125, 0.0241241455078125, -0.0264129638671875, 0.00396728515625, 0.038848876953125, -0.0185394287109375, -0.0222320556640625, -0.003421783447265625, -0.0005197525024414062, 0.01042938232421875, 0.0007176399230957031, -0.022125244140625, -0.000812530517578125, 0.0134429931640625, 0.02288818359375, 0.033233642578125, 0.0308837890625, -0.0192413330078125, -0.00043511390686035156, -0.00003552436828613281, 0.0230255126953125, -0.0156097412109375, 0.00798797607421875, 0.040435791015625, -0.0323486328125, -0.0187835693359375, -0.002410888671875, -0.0017986297607421875, -0.007442474365234375, -0.0231475830078125, 0.02581787109375, -0.03265380859375, -0.00812530517578125, -0.031982421875, -0.07476806640625, 0.00994110107421875, 0.0161895751953125, 0.041778564453125, -0.0250091552734375, 0.0299530029296875, -0.0169525146484375, -0.031341552734375, 0.033355712890625, 0.0173492431640625, -0.06182861328125, -0.00849151611328125, -0.06939697265625, 0.0537109375, -0.058013916015625, 0.042236328125, 0.0667724609375, -0.016387939453125, 0.0306243896484375, -0.0017852783203125, 0.0010633468627929688, -0.01035308837890625, 0.02099609375, -0.01268768310546875, -0.0279541015625, -0.03546142578125, -0.01175689697265625, 0.01331329345703125, 0.0193328857421875, 0.018157958984375, -0.016876220703125, 0.025421142578125, 0.03192138671875, -0.0224456787109375, -0.0289306640625, -0.001476287841796875, -0.04022216796875, -0.01227569580078125, -0.00006437301635742188, -0.00824737548828125, -0.00290679931640625, 0.0024662017822265625, -0.0002276897430419922, -0.001186370849609375, -0.00858306884765625, -0.08343505859375, -0.053680419921875, -0.0863037109375, -0.010223388671875, -0.00649261474609375, 0.0142059326171875, 0.0199432373046875, 0.027923583984375, 0.0197906494140625, -0.0701904296875, 0.026275634765625, 0.036590576171875, -0.032470703125, 0.0000979304313659668, 0.0066375732421875, -0.043243408203125, 0.050048828125, -0.01349639892578125, 0.07098388671875, 0.05816650390625, -0.031585693359375, 0.004199981689453125, -0.0229034423828125, 0.0029735565185546875, 0.006893157958984375, 0.030120849609375, 0.035736083984375, 0.016510009765625, 0.042144775390625, -0.02734375, -0.0535888671875, -0.0267333984375, -0.0728759765625, 0.015655517578125, 0.033111572265625, 0.0215606689453125, -0.00849151611328125, 0.0240631103515625, 0.00740814208984375, 0.02197265625, 0.05328369140625, -0.032684326171875, 0.0233154296875, -0.01264190673828125, -0.0142364501953125, -0.048126220703125, 0.0335693359375, -0.0311431884765625, 0.0020198822021484375, 0.0023956298828125, -0.0147552490234375, 0.00333404541015625, -0.040771484375, -0.03131103515625, -0.034759521484375, 0.0236053466796875, -0.07806396484375, 0.00807952880859375, -0.048248291015625, 0.0009517669677734375, -0.0277252197265625, 0.0589599609375, -0.054443359375, -0.002712249755859375, -0.01107025146484375, -0.00460052490234375, 0.00498199462890625, -0.039154052734375, -0.05078125, -0.0018367767333984375, -0.03509521484375, -0.00830078125, 0.0004181861877441406, -0.048187255859375, -0.00342559814453125, -0.0211944580078125, -0.0308837890625, -0.0258636474609375, 0.029449462890625, 0.01210784912109375, -0.01505279541015625, 0.0159454345703125, -0.001987457275390625, -0.00823974609375, -0.0175933837890625, 0.0003082752227783203, -0.09906005859375, -0.0253753662109375, 0.03076171875, 0.068115234375, -0.02923583984375, -0.01141357421875, -0.03009033203125, 0.0634765625, 0.0035915374755859375, -0.017852783203125, 0.00873565673828125, -0.01038360595703125, -0.007099151611328125, 0.0198516845703125, 0.00714111328125, -0.01013946533203125, 0.01251220703125, 0.019378662109375, -0.043609619140625, 0.004825592041015625, -0.0131683349609375, -0.01904296875, 0.0242462158203125, -0.047607421875, -0.06640625, -0.0222320556640625, -0.02935791015625, 0.03118896484375, -0.0221099853515625, -0.0032749176025390625, -0.040557861328125, -0.1031494140625, 0.03814697265625, -0.0228424072265625, -0.004337310791015625, 0.004161834716796875, 0.0281524658203125, -0.00044536590576171875, -0.03070068359375, -0.040618896484375, -0.006805419921875, 0.0236358642578125, -0.01171112060546875, 0.036468505859375, 0.01158905029296875, 0.0232696533203125, 0.00009047985076904297, -0.0234222412109375, 0.024078369140625, -0.0245208740234375, 0.0037593841552734375, -0.0005345344543457031, -0.009002685546875, 0.0041046142578125, -0.01483917236328125, 0.04205322265625, 0.02301025390625, -0.0099029541015625, 0.00045371055603027344, -0.020782470703125, 0.032989501953125, -0.003955841064453125, 0.01470947265625, -0.04791259765625, -0.0182037353515625, 0.023040771484375, 0.04730224609375, 0.01267242431640625, 0.0144195556640625, -0.00494384765625, 0.01209259033203125, -0.029052734375, -0.0038585662841796875, 0.03375244140625, 0.04949951171875, 0.012908935546875, 0.0277252197265625, 0.03436279296875, -0.00293731689453125, -0.0219268798828125, -0.007198333740234375, 0.043914794921875, 0.00498199462890625, -0.031524658203125, -0.0016841888427734375, -0.0207672119140625, 0.0301055908203125, -0.004184722900390625, 0.01100921630859375, 0.0212249755859375, 0.032806396484375, 0.0184783935546875, -0.01087188720703125, -0.0226287841796875, 0.03533935546875, -0.0282745361328125, 0.0274658203125, 0.0084686279296875, 0.004802703857421875, 0.01230621337890625, 0.049896240234375, 0.050628662109375, 0.01490020751953125, -0.037841796875, 0.0126495361328125, 0.008453369140625, 0.031890869140625, 0.0035858154296875, 0.02581787109375, -0.0233001708984375, 0.0394287109375, 0.0185394287109375, -0.046722412109375, -0.03179931640625, 0.035675048828125, 0.060638427734375, 0.00623321533203125, -0.003414154052734375, -0.01439666748046875, -0.0086212158203125, 0.0032501220703125, 0.0213775634765625, -0.0210113525390625, -0.051300048828125, -0.00490570068359375, 0.024017333984375, 0.030242919921875, -0.045989990234375, -0.04718017578125, 0.035369873046875, -0.052276611328125, 0.02447509765625, 0.0166015625, -0.0245361328125, 0.024169921875, 0.0211639404296875, 0.035919189453125, -0.048858642578125, -0.0114898681640625, -0.003620147705078125, 0.03558349609375, -0.035919189453125, -0.00013637542724609375, 0.0224151611328125, -0.0217132568359375, 0.052337646484375, -0.00891876220703125, -0.032379150390625, 0.01947021484375, 0.00836181640625, 0.0382080078125, 0.006191253662109375, -0.04217529296875, -0.006511688232421875, -0.036407470703125, -0.00115203857421875, 0.012542724609375, -0.033355712890625, -0.0128326416015625, -0.01318359375, 0.01068878173828125, 0.023834228515625, 0.032257080078125, 0.01904296875, -0.016998291015625, 0.0199432373046875, 0.0007991790771484375, 0.048919677734375, -0.024566650390625, 0.06890869140625, -0.0019006729125976562, 0.044921875, 0.0021190643310546875, 0.0252838134765625, -0.0124664306640625, -0.011016845703125, -0.0177764892578125, -0.0687255859375, -0.0266265869140625, 0.01218414306640625, -0.03955078125, 0.07098388671875, 0.06512451171875, 0.01490020751953125, -0.02532958984375, -0.0015363693237304688, -0.00391387939453125, -0.03179931640625, 0.004364013671875, -0.00722503662109375, -0.0018367767333984375, -0.04168701171875, 0.048553466796875, 0.09814453125, -0.01415252685546875, -0.021392822265625, -0.0216522216796875, 0.006786346435546875, 0.01507568359375, 0.00934600830078125, -0.033050537109375, 0.012481689453125, 0.08856201171875, 0.019317626953125, 0.0635986328125, 0.0200347900390625, 0.02459716796875, 0.03900146484375, -0.0290374755859375, 0.01433563232421875, 0.037841796875, 0.05560302734375, -0.010345458984375, 0.00479888916015625, 0.05078125, -0.0166778564453125, 0.0238189697265625, 0.05633544921875, 0.060821533203125, -0.079833984375, 0.022003173828125, 0.026947021484375, 0.0267486572265625, 0.08270263671875, 0.004711151123046875, -0.01013946533203125, 0.016571044921875, -0.0270538330078125, -0.0019969940185546875, -0.043121337890625, -0.0160980224609375, 0.0289459228515625, 0.0053558349609375, -0.0013275146484375, 0.04327392578125, 0.01331329345703125, -0.0170135498046875, -0.0140533447265625, 0.0041351318359375, 0.001804351806640625, 0.0034313201904296875, -0.0005588531494140625, -0.0158233642578125, -0.028717041015625, -0.048919677734375, -0.01611328125, -0.03912353515625, 0.0024204254150390625, 0.04315185546875, 0.005527496337890625, -0.011810302734375, 0.036407470703125, -0.0263671875, 0.034210205078125, 0.005832672119140625, -0.056671142578125, -0.007045745849609375, -0.0212249755859375, -0.00757598876953125, 0.0167999267578125, 0.0183868408203125, 0.013092041015625, 0.012481689453125, -0.043304443359375, -0.0064697265625, -0.02532958984375, 0.0831298828125, -0.035614013671875, -0.0258331298828125, 0.010650634765625, 0.003246307373046875, 0.003376007080078125, 0.007328033447265625, 0.0038700103759765625, -0.01021575927734375, -0.01274871826171875, -0.02349853515625, -0.05474853515625, -0.0004911422729492188, -0.039520263671875, -0.061065673828125, 0.11981201171875, -0.021087646484375, 0.046661376953125, 0.0260467529296875, 0.043792724609375, -0.025299072265625, 0.0240936279296875, -0.0310516357421875, 0.037078857421875, 0.0215911865234375, 0.05010986328125, -0.003570556640625, -0.006359100341796875, 0.033203125, 0.021270751953125, 0.08984375, 0.024566650390625, -0.052978515625, 0.017852783203125, 0.058502197265625, 0.0022792816162109375, -0.026336669921875, 0.05780029296875, -0.01412200927734375, 0.033843994140625, 0.035003662109375, -0.0174102783203125, 0.0271759033203125, 0.00579833984375, -0.043853759765625, 0.004245758056640625, 0.047943115234375, 0.060760498046875, 0.027740478515625, -0.032135009765625, -0.042724609375, 0.0181732177734375, 0.0570068359375, -0.020782470703125, 0.010284423828125, 0.00675201416015625, 0.0309906005859375, -0.03692626953125, -0.00429534912109375, -0.0278778076171875, 0.0465087890625, 0.004329681396484375, 0.00408935546875, 0.01995849609375, 0.0195465087890625, 0.0015850067138671875, -0.0272979736328125, -0.0018177032470703125, 0.01104736328125, -0.01788330078125, 0.0582275390625, 0.0144500732421875, 0.0261383056640625, -0.033477783203125, 0.019073486328125, 0.050750732421875, 0.06341552734375, -0.05718994140625, -0.0253143310546875, 0.01190185546875, 0.01195526123046875, 0.00728607177734375, -0.010589599609375, 0.024627685546875, 0.014617919921875, 0.042327880859375, -0.059356689453125, -0.0044097900390625, 0.025665283203125, 0.038543701171875, -0.01141357421875, -0.032928466796875, -0.0323486328125, -0.0254669189453125, -0.0244293212890625, -0.0094757080078125, 0.03167724609375, 0.049713134765625, 0.0228729248046875, 0.01384735107421875, -0.00579833984375, -0.0146636962890625, 0.0205535888671875, -0.00746917724609375, -0.018310546875, -0.01192474365234375, -0.037506103515625, -0.060546875, 0.01097869873046875, 0.054779052734375, 0.051483154296875, 0.0263214111328125, 0.0379638671875, -0.00815582275390625, -0.0216522216796875, 0.0121917724609375, 0.03546142578125, -0.02337646484375, 0.0106201171875, -0.029541015625, 0.00376129150390625, -0.01221466064453125, -0.01258087158203125, -0.0049591064453125, 0.0119476318359375, 0.0015583038330078125, 0.011444091796875, 0.0082244873046875, 0.0218658447265625, -0.0114593505859375, 0.05426025390625, 0.017822265625, 0.0416259765625, 0.039093017578125, -0.056488037109375, -0.021270751953125, -0.005092620849609375, -0.075927734375, 0.03839111328125, 0.0546875, -0.0100250244140625, -0.026580810546875, 0.00392913818359375, 0.027099609375, -0.00350189208984375, -0.032745361328125, -0.005786895751953125, -0.0122833251953125, 0.034454345703125, 0.009490966796875, -0.016143798828125, -0.0045318603515625, 0.0116119384765625, 0.0186767578125, -0.0175323486328125, 0.08111572265625, -0.03814697265625, -0.0083160400390625, 0.0017309188842773438, 0.026763916015625, -0.03216552734375, 0.0031566619873046875, -0.00665283203125, -0.015380859375, 0.0206451416015625, 0.00473785400390625, -0.0019741058349609375, 0.010345458984375, 0.052032470703125, -0.04705810546875, 0.0260467529296875, -0.0186920166015625, 0.0153350830078125, -0.05291748046875, 0.0246734619140625, -0.033905029296875, -0.049713134765625, -0.06591796875, -0.01122283935546875, 0.02825927734375, 0.01099395751953125, -0.0213165283203125, 0.06414794921875, -0.00807952880859375, -0.0100555419921875, 0.01174163818359375, -0.052764892578125, 0.008544921875, 0.03466796875, -0.004032135009765625, 0.008819580078125, 0.03045654296875, -0.01227569580078125, 0.019378662109375, 0.02239990234375, 0.0191497802734375, 0.035064697265625, -0.03851318359375, -0.017120361328125, -0.010223388671875, 0.01462554931640625, -0.0311737060546875, 0.00855255126953125, -0.0013828277587890625, 0.001617431640625, -0.0008873939514160156, 0.0179901123046875, -0.01334381103515625, -0.035247802734375, -0.01551055908203125, 0.011016845703125, -0.02093505859375, -0.048187255859375, -0.05584716796875, 0.0190582275390625, 0.029754638671875, -0.01198577880859375, -0.037078857421875, 0.048095703125, -0.04095458984375, 0.039642333984375, -0.0297393798828125, -0.00830078125, 0.0016040802001953125, 0.0206146240234375, -0.06494140625, -0.019927978515625, -0.0391845703125, -0.02337646484375, -0.050140380859375, 0.0126800537109375, 0.0462646484375, -0.0237884521484375, -0.051177978515625, -0.01788330078125, -0.016754150390625, 0.0501708984375, -0.011016845703125, -0.0037994384765625, 0.0004775524139404297, 0.011444091796875, -0.0310821533203125, -0.07196044921875, 0.00653839111328125, -0.047454833984375, -0.0197601318359375, 0.0233612060546875, -0.0309906005859375, 0.00951385498046875, -0.04095458984375, -0.04571533203125, 0.07269287109375, 0.0019073486328125, -0.0239410400390625, -0.0263519287109375, -0.01111602783203125, -0.0240020751953125, 0.06378173828125, -0.006267547607421875, 0.01186370849609375, -0.0202789306640625, 0.022613525390625, 0.00846099853515625, 0.0178375244140625, 0.0251007080078125, 0.0012035369873046875, -0.001323699951171875, 0.021514892578125, 0.01629638671875, -0.0011186599731445312, 0.039581298828125, -0.01279449462890625, 0.046417236328125, 0.0460205078125, -0.037567138671875, 0.0028018951416015625, -0.027435302734375, -0.0212860107421875, -0.016082763671875, -0.03753662109375, -0.033905029296875, -0.0247955322265625, 0.07025146484375, 0.0538330078125, 0.01105499267578125, -0.018035888671875, -0.019439697265625, -0.05389404296875, -0.0292510986328125, 0.0087432861328125, 0.0290679931640625, -0.061187744140625, 0.0180511474609375, 0.0396728515625, 0.0076904296875, -0.0085296630859375, 0.01873779296875, -0.0026111602783203125, -0.00472259521484375, 0.0419921875, -0.0021152496337890625, -0.04339599609375, 0.03363037109375, 0.01296234130859375, -0.0196533203125, 0.0029144287109375, -0.01837158203125, -0.00910186767578125, -0.007556915283203125, -0.04486083984375, -0.032958984375, 0.0283966064453125, -0.01202392578125, 0.00943756103515625, 0.013885498046875, 0.01445770263671875, -0.009368896484375, 0.0161590576171875, -0.0254058837890625, 0.0408935546875, 0.007320404052734375, 0.04229736328125, -0.031829833984375, 0.04400634765625, 0.0275726318359375, 0.0552978515625, -0.00626373291015625, 0.013214111328125, -0.01300811767578125, 0.02227783203125, -0.0208282470703125, 0.007579803466796875, -0.005825042724609375, 0.0009164810180664062, 0.0022411346435546875, -0.01357269287109375, -0.0093841552734375, -0.020263671875, -0.00868988037109375, -0.01763916015625, -0.01277923583984375, 0.007564544677734375 ]
74f0610a31fe183911b67204f8d18f6372bb3161
Wordpress Stackexchange Q: Wordpress multisite,several different languages,page redirect? I have something like this http://example.com/en , http://example.com/fr and http://example.com/es for example I would like if I'm on this page http://example.com/en/about-us/ when I click on other language link,just to redirect to that language,but to stay on same page,for example if I click on link that will go to french site,and I'm currently on http://example.com/en/about-us/, I would like to go to this link http://example.com/fr/about-us/ if that page doesn't exists I would like to be redirect to homepage,is this possible.Hope you understand me,thank you in advance. A: WPML http://wpml.org/ (Wordpress Multi Language) seems to be exactly what you're asking for and more than that. It's not free, but in this case price means quality. For example I've used qTranslate in the past, and I can tell you it was accepted mistake not to spend the money on wpml.org instead (qTranslate is free). The price IMHO isn't that high compare to the product ($29) and you get it with an unlimited license. Take a look, I'm sure you'll agree. Just to make it clear, I'm not affiliated with them in any form.
Q: Wordpress multisite,several different languages,page redirect? I have something like this http://example.com/en , http://example.com/fr and http://example.com/es for example I would like if I'm on this page http://example.com/en/about-us/ when I click on other language link,just to redirect to that language,but to stay on same page,for example if I click on link that will go to french site,and I'm currently on http://example.com/en/about-us/, I would like to go to this link http://example.com/fr/about-us/ if that page doesn't exists I would like to be redirect to homepage,is this possible.Hope you understand me,thank you in advance. A: WPML http://wpml.org/ (Wordpress Multi Language) seems to be exactly what you're asking for and more than that. It's not free, but in this case price means quality. For example I've used qTranslate in the past, and I can tell you it was accepted mistake not to spend the money on wpml.org instead (qTranslate is free). The price IMHO isn't that high compare to the product ($29) and you get it with an unlimited license. Take a look, I'm sure you'll agree. Just to make it clear, I'm not affiliated with them in any form. A: I'm not sure is this would accomplished 100% your goals, but I normally use qtranslate for that kind of requirements. A: Have a look on Multilingual Press. It is especially designed to use the features of a multisite installation for translation.
wordpress
{ "language": "en", "length": 227, "provenance": "stackexchange_00019.jsonl.gz:415806", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37950" }
[ 0.039276123046875, -0.01200103759765625, 0.00605010986328125, -0.009246826171875, -0.0032672882080078125, -0.0267486572265625, 0.027679443359375, -0.0296173095703125, 0.0030460357666015625, 0.0207672119140625, -0.005748748779296875, -0.032196044921875, 0.0240020751953125, -0.037384033203125, 0.0216522216796875, -0.01241302490234375, 0.02374267578125, 0.0231781005859375, 0.0301971435546875, 0.0091094970703125, -0.031524658203125, 0.0253448486328125, 0.02313232421875, -0.048919677734375, 0.014373779296875, -0.039337158203125, 0.0616455078125, 0.004669189453125, -0.01302337646484375, -0.0238800048828125, 0.032257080078125, 0.025115966796875, 0.03564453125, -0.00737762451171875, -0.0214996337890625, -0.0599365234375, -0.0302886962890625, 0.0012540817260742188, -0.03790283203125, 0.0152435302734375, -0.00887298583984375, 0.0017995834350585938, -0.0208892822265625, 0.03814697265625, -0.0273895263671875, -0.05841064453125, 0.0087890625, -0.0301055908203125, -0.0194854736328125, 0.0413818359375, 0.015777587890625, -0.0015277862548828125, 0.003871917724609375, -0.0027065277099609375, -0.0002624988555908203, -0.006145477294921875, 0.024383544921875, -0.0234832763671875, 0.002899169921875, -0.037567138671875, -0.01514434814453125, 0.0230865478515625, 0.032196044921875, 0.047698974609375, -0.023223876953125, 0.0015621185302734375, -0.0081024169921875, 0.0200958251953125, -0.039215087890625, -0.0560302734375, -0.0081939697265625, -0.0205230712890625, 0.0018596649169921875, -0.01395416259765625, -0.08392333984375, 0.0034542083740234375, 0.0347900390625, -0.030853271484375, 0.01556396484375, -0.021697998046875, 0.0133514404296875, -0.0080413818359375, -0.0167388916015625, -0.03533935546875, 0.007720947265625, -0.0091552734375, -0.0187835693359375, -0.0173492431640625, -0.0787353515625, -0.01617431640625, -0.045379638671875, -0.03179931640625, -0.10284423828125, -0.00910186767578125, 0.0240325927734375, -0.02593994140625, 0.0205230712890625, 0.038543701171875, 0.00357818603515625, -0.005321502685546875, -0.01617431640625, -0.040557861328125, -0.00858306884765625, -0.024688720703125, 0.0175628662109375, 0.0009870529174804688, 0.023834228515625, 0.016754150390625, 0.03436279296875, -0.008819580078125, -0.0263671875, 0.051788330078125, -0.02581787109375, -0.034942626953125, -0.0014028549194335938, 0.002254486083984375, -0.0556640625, 0.0008640289306640625, 0.0142822265625, -0.00968170166015625, -0.01195526123046875, 0.0284576416015625, 0.05029296875, -0.059814453125, -0.0153656005859375, -0.0310516357421875, -0.0088958740234375, -0.06298828125, -0.0240478515625, 0.027923583984375, 0.01264190673828125, -0.01132965087890625, -0.0198516845703125, 0.0294036865234375, -0.0193328857421875, -0.00720977783203125, 0.046356201171875, 0.03204345703125, -0.00719451904296875, -0.00325775146484375, 0.03375244140625, -0.03277587890625, -0.040985107421875, 0.0157318115234375, -0.010345458984375, 0.01422119140625, 0.0217742919921875, 0.0181884765625, 0.01302337646484375, -0.03643798828125, -0.00443267822265625, -0.036834716796875, 0.03228759765625, -0.022857666015625, -0.0634765625, -0.029876708984375, -0.0428466796875, -0.000946044921875, 0.005916595458984375, -0.01383209228515625, -0.003353118896484375, -0.035003662109375, -0.017578125, -0.0430908203125, -0.060760498046875, -0.00713348388671875, -0.0245819091796875, -0.00772857666015625, 0.02142333984375, 0.0033416748046875, 0.019134521484375, -0.005828857421875, -0.0173797607421875, 0.0020427703857421875, 0.020782470703125, 0.01172637939453125, -0.009979248046875, 0.04144287109375, 0.0310211181640625, 0.01128387451171875, 0.0185699462890625, -0.0232391357421875, 0.0711669921875, -0.0013322830200195312, -0.048828125, 0.00952911376953125, -0.0130615234375, 0.051910400390625, 0.0498046875, 0.000514984130859375, 0.012237548828125, -0.0241241455078125, -0.031341552734375, 0.00882720947265625, -0.0555419921875, -0.008819580078125, -0.007843017578125, 0.043121337890625, -0.036468505859375, 0.0157623291015625, 0.020294189453125, 0.007427215576171875, -0.0010509490966796875, 0.0220184326171875, -0.054840087890625, 0.0223236083984375, -0.0265045166015625, 0.0185699462890625, -0.00037932395935058594, 0.0199432373046875, 0.01364898681640625, 0.022003173828125, -0.039581298828125, -0.0195465087890625, -0.0226898193359375, 0.007419586181640625, -0.005580902099609375, 0.05340576171875, 0.03497314453125, 0.02301025390625, 0.05352783203125, -0.049896240234375, 0.02374267578125, -0.001621246337890625, -0.019805908203125, -0.0180206298828125, -0.01128387451171875, -0.01259613037109375, -0.008575439453125, 0.001068115234375, 0.006496429443359375, 0.047119140625, 0.00011140108108520508, 0.017974853515625, -0.0323486328125, 0.00799560546875, -0.0212249755859375, -0.016693115234375, -0.0018825531005859375, 0.03497314453125, 0.0229339599609375, 0.0186767578125, -0.0011348724365234375, 0.01113128662109375, 0.02337646484375, -0.0325927734375, 0.00444793701171875, 0.01033782958984375, 0.0004105567932128906, 0.049285888671875, 0.036224365234375, -0.00597381591796875, -0.010223388671875, -0.058135986328125, -0.01026153564453125, 0.0223541259765625, -0.04931640625, -0.0005440711975097656, 0.00676727294921875, -0.0347900390625, 0.007617950439453125, 0.00984954833984375, 0.005527496337890625, 0.01042938232421875, -0.0028476715087890625, -0.01035308837890625, 0.018218994140625, 0.02203369140625, 0.0189361572265625, -0.033477783203125, -0.0009007453918457031, -0.0223846435546875, 0.0145416259765625, -0.00920867919921875, 0.01197052001953125, -0.07611083984375, 0.0011568069458007812, -0.009307861328125, 0.02252197265625, -0.02301025390625, 0.007617950439453125, 0.0477294921875, -0.042938232421875, -0.035736083984375, -0.005176544189453125, -0.03802490234375, -0.02667236328125, 0.01140594482421875, 0.0208282470703125, -0.0199127197265625, 0.0276336669921875, -0.03399658203125, -0.037139892578125, 0.041748046875, 0.00421905517578125, -0.08209228515625, 0.045928955078125, -0.036224365234375, 0.040283203125, -0.00823211669921875, 0.07598876953125, 0.074951171875, -0.01910400390625, 0.022796630859375, 0.003627777099609375, 0.01593017578125, 0.0167388916015625, -0.0401611328125, -0.035186767578125, 0.025787353515625, -0.0711669921875, 0.0102996826171875, 0.008148193359375, 0.0012989044189453125, -0.03082275390625, -0.043548583984375, -0.04376220703125, -0.036376953125, -0.10955810546875, -0.085205078125, -0.01641845703125, -0.054595947265625, 0.05560302734375, 0.0287933349609375, -0.0091094970703125, -0.04302978515625, 0.08428955078125, 0.024627685546875, 0.0283050537109375, 0.0207977294921875, -0.055267333984375, -0.04156494140625, -0.07916259765625, -0.07769775390625, -0.03375244140625, 0.01125335693359375, 0.0200958251953125, -0.050140380859375, -0.004878997802734375, 0.01287078857421875, 0.037109375, 0.08929443359375, -0.006847381591796875, -0.04364013671875, -0.06158447265625, 0.0030117034912109375, -0.000835418701171875, 0.00826263427734375, -0.00579071044921875, 0.01113128662109375, 0.02490234375, -0.0029735565185546875, 0.002513885498046875, -0.018096923828125, 0.0302734375, -0.0894775390625, -0.0165863037109375, 0.049072265625, -0.004375457763671875, -0.01413726806640625, -0.0189056396484375, 0.004627227783203125, -0.0335693359375, -0.024658203125, 0.02410888671875, -0.0067138671875, 0.0204925537109375, -0.0401611328125, 0.006923675537109375, 0.0061187744140625, 0.016357421875, -0.0276947021484375, 0.044097900390625, -0.0242156982421875, -0.01473236083984375, -0.0247039794921875, 0.01300048828125, -0.01128387451171875, -0.01251983642578125, -0.0143890380859375, -0.0119781494140625, -0.02093505859375, 0.0181427001953125, -0.021270751953125, -0.0406494140625, 0.0302734375, -0.015869140625, 0.021697998046875, 0.0003123283386230469, -0.021392822265625, 0.0187225341796875, 0.08026123046875, -0.006107330322265625, 0.00162506103515625, -0.002811431884765625, -0.01268768310546875, -0.00815582275390625, -0.01338958740234375, -0.055206298828125, 0.00769805908203125, -0.05029296875, -0.0008854866027832031, -0.0285186767578125, -0.00319671630859375, -0.00001800060272216797, -0.0155487060546875, 0.0096588134765625, -0.0496826171875, 0.043243408203125, -0.01334381103515625, -0.0037384033203125, -0.00847625732421875, 0.0084228515625, -0.04998779296875, -0.0014190673828125, -0.007671356201171875, -0.05426025390625, -0.01812744140625, 0.0149383544921875, 0.0606689453125, -0.00667572021484375, -0.0037994384765625, -0.0128631591796875, 0.060638427734375, -0.018524169921875, 0.0767822265625, -0.054962158203125, 0.002407073974609375, 0.03515625, -0.00847625732421875, -0.028289794921875, 0.004421234130859375, -0.0087432861328125, -0.00498199462890625, -0.0282440185546875, 0.031463623046875, -0.002044677734375, -0.0003428459167480469, 0.026275634765625, -0.032958984375, -0.0765380859375, -0.0301666259765625, -0.0128936767578125, 0.01093292236328125, 0.003326416015625, -0.02032470703125, -0.04522705078125, -0.07342529296875, 0.0212860107421875, 0.0091552734375, -0.038421630859375, 0.003688812255859375, -0.0019931793212890625, -0.00726318359375, -0.03948974609375, -0.049072265625, -0.0001208186149597168, 0.005886077880859375, -0.00864410400390625, 0.063232421875, -0.0010890960693359375, -0.01169586181640625, 0.099853515625, -0.03143310546875, 0.02410888671875, 0.030242919921875, 0.0225067138671875, 0.00852203369140625, -0.016815185546875, 0.0169219970703125, 0.0046844482421875, -0.0704345703125, 0.04541015625, 0.0360107421875, 0.0031223297119140625, 0.01873779296875, -0.02569580078125, 0.020965576171875, -0.05487060546875, 0.01080322265625, -0.01123809814453125, 0.0056610107421875, 0.01702880859375, -0.00310516357421875, -0.0017910003662109375, 0.000621795654296875, -0.01502227783203125, 0.0090484619140625, 0.00896453857421875, 0.035125732421875, -0.0246734619140625, 0.02862548828125, 0.0252838134765625, 0.00815582275390625, -0.0009417533874511719, 0.0212860107421875, -0.004825592041015625, 0.0325927734375, -0.002147674560546875, -0.0526123046875, 0.0131683349609375, -0.0172271728515625, -0.0206756591796875, 0.00629425048828125, 0.0126190185546875, 0.0263824462890625, 0.0572509765625, -0.01357269287109375, -0.004974365234375, 0.0379638671875, 0.0238494873046875, -0.0435791015625, 0.001636505126953125, -0.028167724609375, 0.0253753662109375, -0.00106048583984375, 0.09527587890625, -0.05804443359375, 0.08453369140625, -0.0058441162109375, -0.0159454345703125, 0.02001953125, 0.04095458984375, 0.01050567626953125, 0.00024580955505371094, -0.007022857666015625, 0.04083251953125, 0.0069580078125, -0.0155029296875, 0.003154754638671875, 0.048492431640625, 0.05999755859375, 0.003509521484375, -0.0016050338745117188, -0.033477783203125, -0.0367431640625, 0.002834320068359375, 0.00907135009765625, 0.0278778076171875, -0.0220794677734375, 0.0282440185546875, 0.006320953369140625, -0.0341796875, -0.01070404052734375, -0.0164031982421875, 0.0023784637451171875, -0.03363037109375, 0.0275726318359375, 0.007503509521484375, -0.0178680419921875, 0.0115509033203125, 0.007770538330078125, 0.0253448486328125, -0.0189666748046875, -0.01021575927734375, -0.07373046875, 0.007053375244140625, -0.0258026123046875, 0.00662994384765625, 0.03411865234375, -0.022247314453125, 0.0243988037109375, -0.0007925033569335938, -0.0026836395263671875, 0.0246429443359375, 0.02960205078125, 0.00821685791015625, -0.019073486328125, -0.001941680908203125, -0.027984619140625, -0.058380126953125, -0.023651123046875, -0.031707763671875, 0.0027523040771484375, -0.01251220703125, 0.03912353515625, 0.035369873046875, 0.0155487060546875, 0.037322998046875, -0.007572174072265625, -0.034942626953125, 0.01898193359375, 0.0321044921875, 0.0277862548828125, -0.0159759521484375, 0.01406097412109375, 0.01027679443359375, 0.01065826416015625, 0.01087188720703125, 0.032867431640625, 0.050994873046875, -0.0438232421875, 0.0116424560546875, -0.0244598388671875, -0.0086212158203125, -0.030242919921875, -0.00098419189453125, -0.0035533905029296875, 0.02545166015625, 0.004962921142578125, -0.00677490234375, 0.00763702392578125, 0.01169586181640625, -0.0304107666015625, 0.00444793701171875, 0.0032863616943359375, 0.0136871337890625, 0.01291656494140625, -0.048980712890625, 0.026580810546875, 0.0093536376953125, 0.02685546875, -0.00567626953125, -0.036163330078125, 0.006732940673828125, 0.0546875, 0.014739990234375, -0.017059326171875, 0.0174102783203125, -0.01059722900390625, 0.05316162109375, -0.0001614093780517578, 0.027923583984375, 0.05340576171875, -0.0196380615234375, 0.01361083984375, 0.02874755859375, -0.022613525390625, -0.049468994140625, -0.00841522216796875, -0.050445556640625, -0.0010433197021484375, -0.02093505859375, 0.060333251953125, 0.034881591796875, -0.0950927734375, -0.00978851318359375, 0.00128936767578125, -0.003093719482421875, -0.0254058837890625, 0.0178680419921875, -0.051971435546875, -0.038330078125, 0.041168212890625, -0.010498046875, -0.007144927978515625, 0.037841796875, 0.0362548828125, -0.00867462158203125, -0.0024166107177734375, 0.046112060546875, 0.00971221923828125, -0.055908203125, 0.0158538818359375, 0.03704833984375, -0.00013208389282226562, -0.053680419921875, -0.04815673828125, 0.06304931640625, -0.04925537109375, -0.058685302734375, 0.043914794921875, -0.0266571044921875, 0.048004150390625, 0.02423095703125, 0.0059967041015625, 0.0077972412109375, 0.04510498046875, -0.0283660888671875, 0.03857421875, 0.0144805908203125, 0.0206298828125, 0.06640625, 0.02252197265625, 0.023529052734375, -0.034423828125, -0.0181121826171875, -0.01245880126953125, -0.037445068359375, -0.013671875, 0.01212310791015625, 0.039154052734375, 0.06024169921875, 0.0005435943603515625, -0.03643798828125, 0.045867919921875, 0.001117706298828125, -0.0234832763671875, 0.01953125, -0.01335906982421875, -0.044342041015625, -0.058074951171875, -0.025299072265625, -0.1090087890625, 0.04150390625, 0.0004076957702636719, -0.043701171875, 0.060943603515625, -0.010223388671875, 0.030853271484375, 0.03216552734375, 0.0261077880859375, -0.0165252685546875, 0.0004506111145019531, -0.0005316734313964844, 0.042816162109375, 0.02606201171875, -0.028900146484375, 0.00806427001953125, 0.01371002197265625, -0.0030536651611328125, 0.01230621337890625, 0.0235443115234375, 0.01168060302734375, -0.035797119140625, 0.0182342529296875, 0.032135009765625, -0.0139312744140625, -0.018829345703125, 0.03759765625, -0.0206298828125, 0.046783447265625, 0.0167083740234375, -0.07196044921875, 0.007843017578125, -0.00972747802734375, -0.037139892578125, -0.019561767578125, -0.0031223297119140625, -0.0251617431640625, 0.0125732421875, -0.0011081695556640625, -0.049560546875, 0.0266571044921875, 0.0124053955078125, 0.04217529296875, 0.016693115234375, -0.033233642578125, -0.012176513671875, -0.0303802490234375, 0.08148193359375, -0.052001953125, 0.03875732421875, 0.00047016143798828125, 0.002582550048828125, 0.01410675048828125, 0.00620269775390625, 0.03619384765625, 0.004169464111328125, -0.007114410400390625, 0.0186767578125, 0.0040435791015625, 0.08331298828125, 0.048553466796875, 0.043670654296875, -0.038177490234375, -0.009918212890625, 0.047393798828125, 0.1060791015625, -0.0469970703125, -0.0498046875, 0.0192108154296875, 0.013824462890625, 0.01947021484375, 0.04254150390625, 0.047821044921875, -0.01495361328125, 0.0154266357421875, 0.0027313232421875, 0.009552001953125, -0.01111602783203125, 0.00942230224609375, -0.017730712890625, -0.020111083984375, -0.0002684593200683594, 0.03192138671875, -0.03607177734375, 0.01763916015625, 0.027679443359375, 0.0589599609375, 0.014068603515625, 0.059783935546875, -0.0194854736328125, -0.0182647705078125, -0.004276275634765625, 0.0310516357421875, -0.00899505615234375, 0.0003452301025390625, -0.053375244140625, -0.06353759765625, -0.00028634071350097656, 0.0621337890625, 0.053009033203125, -0.0513916015625, 0.01654052734375, 0.040130615234375, 0.0005779266357421875, -0.002719879150390625, 0.042144775390625, 0.01262664794921875, 0.058258056640625, -0.04107666015625, 0.03253173828125, -0.01544952392578125, -0.032958984375, -0.018585205078125, -0.007732391357421875, 0.0295867919921875, 0.0255279541015625, 0.032073974609375, 0.00412750244140625, -0.0019207000732421875, -0.0016460418701171875, -0.0302886962890625, 0.0185089111328125, 0.0027332305908203125, -0.0693359375, -0.00852203369140625, -0.02130126953125, -0.020721435546875, 0.05084228515625, 0.04412841796875, -0.0147552490234375, 0.012908935546875, -0.0005464553833007812, 0.01395416259765625, 0.0312042236328125, -0.04522705078125, -0.006465911865234375, 0.028778076171875, 0.0210418701171875, 0.01129150390625, -0.037017822265625, -0.01480865478515625, 0.00997161865234375, 0.006988525390625, -0.0266265869140625, 0.06402587890625, -0.00988006591796875, 0.012847900390625, -0.0015707015991210938, -0.0135345458984375, 0.051727294921875, -0.0010328292846679688, 0.037841796875, 0.05029296875, 0.038970947265625, -0.049041748046875, -0.0257415771484375, -0.0078277587890625, 0.018463134765625, -0.0335693359375, 0.01070404052734375, -0.0270233154296875, 0.0175323486328125, -0.005535125732421875, 0.044769287109375, -0.03485107421875, -0.053955078125, -0.06378173828125, 0.0024566650390625, 0.0303497314453125, 0.045196533203125, -0.01413726806640625, 0.03521728515625, -0.004680633544921875, -0.04095458984375, 0.0169830322265625, -0.05108642578125, -0.0034542083740234375, 0.019195556640625, 0.0517578125, -0.0026226043701171875, 0.0040130615234375, -0.00506591796875, -0.01018524169921875, 0.022430419921875, -0.0154876708984375, 0.03662109375, 0.0175933837890625, -0.043548583984375, -0.0250091552734375, -0.01543426513671875, -0.0184783935546875, -0.007045745849609375, 0.0014028549194335938, -0.0187225341796875, -0.0155029296875, 0.00457763671875, -0.009918212890625, 0.0150146484375, -0.0004181861877441406, 0.007843017578125, 0.00994873046875, -0.0047454833984375, -0.0310821533203125, -0.022216796875, 0.00133514404296875, -0.04150390625, -0.0027256011962890625, -0.01947021484375, -0.036163330078125, 0.01114654541015625, -0.060760498046875, 0.02386474609375, -0.0002008676528930664, 0.01457977294921875, -0.057037353515625, -0.01392364501953125, -0.01267242431640625, -0.001003265380859375, -0.032806396484375, -0.00875091552734375, 0.017486572265625, 0.002117156982421875, 0.016143798828125, -0.0379638671875, -0.01493072509765625, -0.0005369186401367188, -0.0189056396484375, -0.03436279296875, 0.01507568359375, -0.0232391357421875, -0.01184844970703125, -0.0272979736328125, 0.0118408203125, -0.052001953125, -0.0238494873046875, -0.0017385482788085938, -0.02606201171875, -0.028350830078125, -0.053131103515625, -0.0904541015625, 0.0712890625, -0.00565338134765625, -0.0305938720703125, -0.038360595703125, 0.041046142578125, -0.0095062255859375, 0.00958251953125, -0.004116058349609375, -0.01161956787109375, -0.0014438629150390625, 0.00041937828063964844, 0.0282135009765625, 0.031646728515625, 0.00026226043701171875, 0.03411865234375, 0.0226287841796875, 0.037994384765625, 0.04486083984375, -0.00884246826171875, 0.030853271484375, -0.016082763671875, 0.0257568359375, 0.03936767578125, -0.02545166015625, -0.026611328125, -0.006824493408203125, -0.0251922607421875, 0.0025691986083984375, -0.03143310546875, -0.01099395751953125, -0.038116455078125, -0.0288848876953125, 0.01549530029296875, -0.01329803466796875, -0.0024013519287109375, 0.0297088623046875, 0.046478271484375, -0.00371551513671875, -0.01212310791015625, 0.00600433349609375, -0.025543212890625, -0.0293426513671875, -0.03009033203125, -0.03338623046875, -0.018096923828125, 0.03594970703125, -0.045562744140625, 0.020263671875, 0.01470947265625, -0.0308074951171875, -0.030120849609375, 0.01690673828125, 0.07977294921875, -0.046875, -0.0008516311645507812, 0.01320648193359375, -0.0046539306640625, 0.0316162109375, 0.00885772705078125, -0.0216064453125, 0.0184478759765625, 0.0289154052734375, 0.01593017578125, 0.029541015625, -0.0031681060791015625, 0.01507568359375, 0.00390625, -0.034088134765625, 0.06842041015625, 0.0221710205078125, 0.0960693359375, -0.03533935546875, 0.0045013427734375, 0.0237274169921875, -0.0313720703125, -0.0106964111328125, 0.01062774658203125, -0.00838470458984375, 0.031646728515625, -0.05841064453125, -0.0023746490478515625, -0.031341552734375, -0.0268707275390625, 0.01436614990234375, 0.0227203369140625, -0.0200347900390625, -0.0025634765625, -0.01222991943359375, -0.0204315185546875, -0.0082855224609375, -0.0086517333984375 ]
eaf352379a99d18a9df07deb96588896bf298a35
Wordpress Stackexchange Q: Can't enqueue scripts in the footer? The WordPress codex says: (old codex page) $in_footer (boolean) (optional) Normally scripts are placed in the section. If this parameter is true the script is placed at the bottom of the . This requires the theme to have the wp_footer() hook in the appropriate place. Note that you have to enqueue your script before wp_head is run, even if it will be placed in the footer. (New in WordPress 2.8) Default: false So I added true after each script's src path: /** * JavaScript */ function my_scripts_method() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js', true ); wp_enqueue_script( 'jquery' ); } add_action('wp_enqueue_scripts', 'my_scripts_method'); function media_queries_script() { wp_register_script( 'mediaqueries', get_template_directory_uri() . '/js/css3-mediaqueries.js', true ); wp_enqueue_script( 'mediaqueries' ); } add_action('wp_enqueue_scripts', 'media_queries_script'); function custom_script() { wp_register_script( 'custom', get_template_directory_uri() . '/js/custom.js', true ); wp_enqueue_script( 'custom' ); } add_action('wp_enqueue_scripts', 'custom_script'); function replace_script() { wp_register_script( 'replace', get_template_directory_uri() . '/js/jquery.ba-replacetext.min.js', true ); wp_enqueue_script( 'replace' ); } add_action('wp_enqueue_scripts', 'replace_script'); But the scripts are still being included in the header. Any suggestions to fix that? A: You are passing a bool value to the dependency param. Try this: wp_enqueue_script( 'replace', get_template_directory_uri().'/js/jquery.ba-replacetext.min.js', array('jquery'), '', true );
Q: Can't enqueue scripts in the footer? The WordPress codex says: (old codex page) $in_footer (boolean) (optional) Normally scripts are placed in the section. If this parameter is true the script is placed at the bottom of the . This requires the theme to have the wp_footer() hook in the appropriate place. Note that you have to enqueue your script before wp_head is run, even if it will be placed in the footer. (New in WordPress 2.8) Default: false So I added true after each script's src path: /** * JavaScript */ function my_scripts_method() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js', true ); wp_enqueue_script( 'jquery' ); } add_action('wp_enqueue_scripts', 'my_scripts_method'); function media_queries_script() { wp_register_script( 'mediaqueries', get_template_directory_uri() . '/js/css3-mediaqueries.js', true ); wp_enqueue_script( 'mediaqueries' ); } add_action('wp_enqueue_scripts', 'media_queries_script'); function custom_script() { wp_register_script( 'custom', get_template_directory_uri() . '/js/custom.js', true ); wp_enqueue_script( 'custom' ); } add_action('wp_enqueue_scripts', 'custom_script'); function replace_script() { wp_register_script( 'replace', get_template_directory_uri() . '/js/jquery.ba-replacetext.min.js', true ); wp_enqueue_script( 'replace' ); } add_action('wp_enqueue_scripts', 'replace_script'); But the scripts are still being included in the header. Any suggestions to fix that? A: You are passing a bool value to the dependency param. Try this: wp_enqueue_script( 'replace', get_template_directory_uri().'/js/jquery.ba-replacetext.min.js', array('jquery'), '', true ); A: I had the same problem and after doing some search I was missing this function in my custom theme: <?php wp_footer();?> A: Where did you put your code ? * *the "true" arguments goes in the wp_register_script();, not the wp_enqueue_script() ; the functions is: <?php wp_enqueue_script('handle', 'src', 'deps', 'ver', 'in_footer'); ?> meaning <?php wp_enqueue_script('NameMySccript', 'path/to/MyScript', 'dependencies_MyScript', 'VersionMyScript', 'InfooterTrueorFalse'); ?> E.G. <?php wp_enqueue_script('my_script', WP_CONTENT_URL . 'plugins/my_plugin/my_script.js', array('jquery', 'another_script'), '1.0.0', true); ?> *does your theme have <?php wp_footer(); ?> at the end of the page ? 3.add the action with add_action('wp_print_scripts', 'your function'); That being said , your best practice would be : <?php if (function_exists('load_my_scripts')) { function load_my_scripts() { if (!is_admin()) { wp_deregister_script( 'jquery' ); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'); wp_enqueue_script('jquery'); wp_register_script('myscript', bloginfo('template_url').'/js/myScript.js'__FILE__), array('jquery'), '1.0', true ); wp_enqueue_script('myscript'); } } } add_action('init', 'load_my_scripts'); ?> or add_action('wp_print_scripts', 'dl_register_js'); A: I'd like to simplify the answer here.. When using wp_enqueue_script or wp_register_script to load a script in the footer, you need to make sure you include the other params too, even if they are blank. I was trying.. wp_register_script( 'rrssb', get_stylesheet_directory_uri() . '/includes/rrssb.min.js', true); Which didn't work as @janoChen has noticed. Wordpress calls for wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); So you need to include '', for the parameters you are not using if you want to declare the function inline. Therefore the code below works as planned. wp_register_script( 'rrssb', get_stylesheet_directory_uri() . '/includes/rrssb.min.js', '', '', true); Subsequently you can declare the function in an array like format like @Brian Fegter shows. A: If you enqueue a script to the header but declare a dependency to a script enqueued to the footer, WordPress will move the footer script to the header to make it available to the dependent script/s. A: According to the official WordPress documentation (Last Checked - May 2018): https://developer.wordpress.org/reference/functions/wp_enqueue_script/ and personal experience of 7+ years. * *You should try always use 'wp_enqueue_scripts' function for better compatibility with installed plugins/themes. add_action('wp_enqueue_scripts','your_plugin_enqueue'); *You can find more about using official docs Usage here /**** wp_register_script, wp_enqueue_script, wp_dequeue_script *** *** Personal recommendation * - I strongly recommend registering all scripts before enqueueing, * again -> for better compatibility with other developers. * :::: For example, so others could manipulate the position * of your scripts using the wp_dequeue_*type* method. * (wp_dequeue_script, wp_dequeue_style,...) *** Official Docs * $in_footer * - (bool) (Optional) Whether to enqueue the script before </body> instead of in the <head>. Default 'false'. * - Default value: false * ***/ // examples: function your_plugin_enqueue(){ wp_dequeue_script('some_script(s)'); // remove conflicting script wp_register_script( $handle, $src, $deps, $ver, $in_footer=true ); wp_enqueue_script($handle); wp_register_script('some_script(s)', $src, $deps, $ver, $in_footer=true); // re-enqueue scripts after yours for example to elimination of conflicts wp_enqueue_script('some_script(s)'); } add_action('wp_enqueue_scripts','your_plugin_enqueue'); P.S. If you find this answer useful, please give it an '▲' (ArrowUP), if you think that it can be improved, please comment below.
wordpress
{ "language": "en", "length": 658, "provenance": "stackexchange_00019.jsonl.gz:415810", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/37960" }
[ 0.032562255859375, 0.0133819580078125, -0.026763916015625, -0.018798828125, 0.0280609130859375, -0.0428466796875, 0.0645751953125, 0.0027408599853515625, -0.027099609375, 0.0180206298828125, -0.03521728515625, -0.002231597900390625, 0.01062774658203125, -0.005344390869140625, 0.002780914306640625, -0.049560546875, 0.05047607421875, -0.048675537109375, 0.0012559890747070312, -0.017486572265625, 0.0467529296875, 0.014617919921875, 0.010009765625, 0.11553955078125, -0.0018854141235351562, -0.0167388916015625, 0.1124267578125, -0.01070404052734375, -0.006160736083984375, -0.025665283203125, 0.01267242431640625, 0.0028934478759765625, 0.03631591796875, -0.0174407958984375, -0.0019311904907226562, 0.0024738311767578125, 0.040924072265625, -0.0199432373046875, 0.0019359588623046875, 0.027984619140625, 0.014739990234375, -0.0102996826171875, -0.0087127685546875, 0.00229644775390625, -0.01255035400390625, -0.037200927734375, 0.0195465087890625, -0.0259246826171875, 0.00982666015625, 0.0240020751953125, -0.0098419189453125, -0.03717041015625, -0.0044403076171875, 0.0013580322265625, -0.01494598388671875, -0.01202392578125, -0.006320953369140625, -0.035919189453125, -0.0007443428039550781, 0.064208984375, 0.0369873046875, 0.028961181640625, -0.01114654541015625, -0.0223846435546875, -0.04669189453125, -0.0283050537109375, -0.0176239013671875, -0.01035308837890625, -0.04345703125, -0.050048828125, 0.05072021484375, 0.0038127899169921875, -0.01398468017578125, -0.01012420654296875, -0.0200958251953125, 0.022918701171875, -0.007488250732421875, 0.01215362548828125, 0.01479339599609375, 0.0069122314453125, 0.0252685546875, -0.0118255615234375, 0.01233673095703125, -0.0020961761474609375, -0.00272369384765625, 0.01406097412109375, -0.0053558349609375, -0.01500701904296875, -0.044036865234375, -0.0152587890625, -0.0322265625, -0.0528564453125, -0.020843505859375, -0.0221710205078125, -0.0037994384765625, -0.00917816162109375, 0.05560302734375, 0.08538818359375, 0.01215362548828125, 0.03448486328125, -0.007427215576171875, -0.039093017578125, 0.034271240234375, -0.054595947265625, 0.021209716796875, 0.05413818359375, -0.0181121826171875, -0.026214599609375, 0.022247314453125, 0.0103302001953125, 0.013519287109375, 0.0007457733154296875, 0.0178375244140625, 0.0184783935546875, -0.045440673828125, -0.04071044921875, -0.01529693603515625, -0.0080413818359375, -0.004749298095703125, -0.00641632080078125, 0.01247406005859375, 0.037200927734375, -0.0012874603271484375, -0.0290374755859375, -0.021270751953125, -0.042205810546875, -0.0006794929504394531, -0.03387451171875, -0.016021728515625, 0.03302001953125, -0.005741119384765625, -0.0087127685546875, 0.02679443359375, 0.027984619140625, -0.01186370849609375, -0.0235137939453125, 0.06634521484375, -0.0011444091796875, -0.0004296302795410156, -0.00897216796875, 0.0199432373046875, -0.00859832763671875, -0.0089874267578125, -0.00443267822265625, -0.0211029052734375, 0.006031036376953125, 0.01323699951171875, 0.01151275634765625, -0.0284271240234375, -0.04034423828125, 0.0000022649765014648438, -0.0016660690307617188, 0.057098388671875, -0.01352691650390625, -0.03765869140625, -0.01506805419921875, 0.0193023681640625, -0.01451873779296875, -0.03857421875, -0.04443359375, -0.04071044921875, 0.0133819580078125, 0.0389404296875, -0.037628173828125, -0.007411956787109375, -0.06268310546875, 0.0017518997192382812, 0.00489044189453125, 0.0179443359375, 0.07989501953125, -0.0200042724609375, -0.0289154052734375, -0.00748443603515625, -0.0100860595703125, -0.0253143310546875, 0.0015459060668945312, -0.00415802001953125, 0.06121826171875, 0.0277862548828125, -0.0169219970703125, -0.0186614990234375, -0.048187255859375, 0.1134033203125, -0.049102783203125, -0.03759765625, 0.0221099853515625, 0.035919189453125, 0.043121337890625, -0.0144195556640625, 0.01175689697265625, 0.08392333984375, 0.0308990478515625, -0.038330078125, 0.01197052001953125, 0.02459716796875, -0.0266265869140625, 0.006793975830078125, -0.0258636474609375, 0.0163421630859375, -0.0047454833984375, 0.0031147003173828125, 0.033477783203125, 0.006877899169921875, -0.006656646728515625, -0.05609130859375, 0.038360595703125, -0.0307769775390625, 0.0606689453125, 0.01065826416015625, 0.0093994140625, -0.00783538818359375, 0.0201873779296875, -0.01342010498046875, -0.0172882080078125, -0.03271484375, 0.0141448974609375, -0.043212890625, 0.061187744140625, 0.00957489013671875, 0.03564453125, 0.001163482666015625, -0.02459716796875, 0.0301513671875, -0.00971221923828125, -0.006626129150390625, -0.0085601806640625, -0.0162353515625, -0.00769805908203125, 0.0018062591552734375, 0.016845703125, 0.006069183349609375, 0.035003662109375, 0.0229034423828125, 0.048431396484375, -0.01947021484375, -0.0213165283203125, -0.0042266845703125, -0.0305328369140625, 0.02301025390625, 0.037750244140625, 0.032501220703125, 0.04107666015625, 0.01275634765625, 0.01532745361328125, 0.060516357421875, -0.023651123046875, 0.025054931640625, -0.00615692138671875, 0.0007724761962890625, 0.0255126953125, -0.01107025146484375, -0.005687713623046875, 0.014068603515625, -0.05859375, -0.0006656646728515625, 0.036468505859375, 0.0005354881286621094, -0.000037789344787597656, 0.011749267578125, -0.00547027587890625, 0.00591278076171875, -0.00286102294921875, -0.0222320556640625, 0.000507354736328125, 0.017181396484375, 0.006317138671875, 0.00583648681640625, 0.0036106109619140625, -0.0283966064453125, 0.0113983154296875, 0.0283966064453125, -0.023712158203125, -0.00514984130859375, -0.0052490234375, 0.0153045654296875, -0.007686614990234375, -0.028900146484375, 0.006183624267578125, 0.030853271484375, 0.0010938644409179688, 0.01358795166015625, 0.010162353515625, -0.070068359375, -0.012481689453125, 0.0245361328125, -0.066650390625, -0.028167724609375, 0.037811279296875, 0.006031036376953125, 0.004001617431640625, 0.017547607421875, 0.033355712890625, -0.005115509033203125, 0.02691650390625, 0.0080718994140625, -0.01544189453125, 0.0689697265625, -0.0022640228271484375, 0.0242156982421875, -0.01079559326171875, 0.0233001708984375, 0.038970947265625, -0.003143310546875, -0.0039215087890625, 0.006717681884765625, 0.01141357421875, 0.03240966796875, 0.00787353515625, 0.012359619140625, -0.00952911376953125, -0.01351165771484375, 0.0045318603515625, 0.016357421875, -0.0030670166015625, -0.0023708343505859375, -0.0181732177734375, -0.0166778564453125, -0.0078277587890625, -0.111328125, -0.0960693359375, 0.0199737548828125, -0.08392333984375, 0.010650634765625, -0.00994110107421875, -0.03167724609375, -0.0115203857421875, 0.03204345703125, 0.0111083984375, -0.0247955322265625, -0.030181884765625, -0.0281219482421875, -0.0452880859375, -0.039276123046875, 0.01229095458984375, 0.007236480712890625, -0.01116180419921875, 0.00341796875, 0.023712158203125, 0.012603759765625, -0.0177764892578125, 0.0455322265625, -0.0024394989013671875, 0.00214385986328125, 0.0265655517578125, 0.063232421875, -0.06341552734375, -0.0254974365234375, 0.0032806396484375, -0.024993896484375, 0.028106689453125, -0.0189208984375, -0.00021600723266601562, -0.0245208740234375, -0.04595947265625, -0.016204833984375, 0.057952880859375, 0.021484375, -0.045806884765625, 0.0286102294921875, -0.051849365234375, -0.047760009765625, 0.025115966796875, -0.0255126953125, 0.050079345703125, 0.01110076904296875, -0.0234375, 0.031005859375, 0.040924072265625, 0.050872802734375, 0.0182342529296875, 0.0006513595581054688, 0.004329681396484375, 0.05078125, 0.003448486328125, 0.0517578125, -0.04840087890625, 0.017303466796875, -0.0246429443359375, 0.0217742919921875, 0.0089569091796875, 0.000002205371856689453, 0.0072021484375, -0.00978851318359375, -0.0126800537109375, -0.005279541015625, 0.0117034912109375, -0.0275726318359375, 0.0212249755859375, -0.0211639404296875, 0.004604339599609375, -0.005580902099609375, 0.046844482421875, -0.048370361328125, -0.004486083984375, 0.00513458251953125, 0.01509857177734375, -0.032562255859375, -0.05682373046875, -0.0200958251953125, -0.0145263671875, -0.08282470703125, 0.00514984130859375, -0.0173492431640625, -0.0238189697265625, -0.0248565673828125, 0.01006317138671875, -0.05718994140625, -0.04034423828125, 0.036865234375, -0.03289794921875, -0.0043487548828125, 0.0302734375, -0.03228759765625, -0.0017499923706054688, -0.03228759765625, -0.011505126953125, -0.1009521484375, -0.0160980224609375, -0.060577392578125, 0.098388671875, 0.052001953125, -0.031768798828125, -0.005336761474609375, 0.055389404296875, -0.0015478134155273438, 0.045623779296875, 0.01522064208984375, 0.014404296875, 0.00592041015625, -0.015777587890625, 0.01203155517578125, -0.035003662109375, -0.0031528472900390625, 0.0083465576171875, -0.040069580078125, -0.0035953521728515625, 0.0073394775390625, -0.00641632080078125, 0.04632568359375, -0.036346435546875, -0.041778564453125, -0.00211334228515625, -0.003509521484375, -0.038116455078125, 0.017120361328125, -0.04766845703125, 0.01137542724609375, -0.0232391357421875, -0.00975799560546875, -0.0162811279296875, 0.0011587142944335938, 0.00722503662109375, 0.016876220703125, 0.0262603759765625, 0.00921630859375, 0.034698486328125, 0.0188140869140625, 0.01546478271484375, 0.0182952880859375, 0.043212890625, 0.003082275390625, -0.007183074951171875, 0.04876708984375, 0.01415252685546875, -0.0033721923828125, 0.016937255859375, 0.0699462890625, 0.034881591796875, 0.013275146484375, -0.0032329559326171875, 0.034332275390625, -0.060028076171875, -0.0239105224609375, -0.019683837890625, 0.0267181396484375, 0.0019664764404296875, 0.006259918212890625, -0.00505828857421875, 0.0035800933837890625, -0.02703857421875, -0.0272064208984375, -0.00972747802734375, -0.03607177734375, 0.09503173828125, 0.031463623046875, -0.0078277587890625, 0.06365966796875, 0.08251953125, 0.0128936767578125, 0.002620697021484375, -0.0006494522094726562, -0.03436279296875, 0.042816162109375, 0.005626678466796875, -0.002880096435546875, 0.005779266357421875, 0.00566864013671875, -0.0030994415283203125, 0.0157318115234375, -0.023956298828125, -0.037261962890625, 0.011474609375, 0.054412841796875, -0.01419830322265625, 0.03857421875, 0.01548004150390625, -0.0004050731658935547, 0.0068511962890625, -0.02099609375, -0.0025539398193359375, 0.02508544921875, -0.024566650390625, 0.022796630859375, 0.000640869140625, -0.0066375732421875, -0.059051513671875, 0.036468505859375, 0.0129241943359375, -0.0288848876953125, 0.002300262451171875, 0.026092529296875, -0.02740478515625, 0.0592041015625, 0.0190887451171875, -0.05963134765625, 0.007843017578125, 0.0408935546875, -0.005718231201171875, -0.036590576171875, 0.0096282958984375, 0.0235748291015625, 0.00905609130859375, 0.019775390625, 0.0103759765625, -0.0006155967712402344, 0.0126953125, -0.0218048095703125, 0.0096588134765625, -0.0213623046875, -0.032684326171875, -0.0390625, -0.03143310546875, 0.0251007080078125, 0.011871337890625, 0.0165252685546875, 0.004283905029296875, 0.00110626220703125, 0.016143798828125, -0.00589752197265625, -0.0070037841796875, -0.0123748779296875, -0.00862884521484375, -0.00959014892578125, 0.0158843994140625, 0.004352569580078125, -0.038299560546875, -0.070068359375, 0.01107025146484375, 0.0000934600830078125, 0.0394287109375, -0.041595458984375, -0.015716552734375, -0.004413604736328125, 0.02386474609375, -0.0285797119140625, 0.0230712890625, 0.0214691162109375, 0.00557708740234375, 0.00531005859375, -0.0308074951171875, -0.0621337890625, -0.029144287109375, -0.01190185546875, -0.049774169921875, 0.007167816162109375, 0.0036468505859375, -0.0171356201171875, 0.01885986328125, -0.0697021484375, -0.0784912109375, 0.0026836395263671875, 0.01526641845703125, 0.0207061767578125, 0.0457763671875, -0.04132080078125, 0.0528564453125, 0.0230865478515625, -0.0007224082946777344, -0.003307342529296875, 0.04901123046875, 0.048065185546875, -0.026153564453125, -0.0152435302734375, -0.06976318359375, 0.0164337158203125, 0.01305389404296875, -0.0160980224609375, 0.0513916015625, 0.041259765625, 0.025421142578125, 0.030029296875, 0.026580810546875, 0.0006737709045410156, -0.00848388671875, -0.00867462158203125, 0.041168212890625, 0.04443359375, 0.043121337890625, -0.0177154541015625, 0.010772705078125, -0.00939178466796875, -0.00496673583984375, 0.04119873046875, -0.037994384765625, 0.019256591796875, 0.001857757568359375, -0.047698974609375, 0.040771484375, 0.04119873046875, 0.03076171875, 0.026519775390625, -0.0140533447265625, 0.0197296142578125, -0.004459381103515625, 0.016357421875, -0.0094451904296875, -0.0274505615234375, 0.0124969482421875, -0.0197601318359375, -0.0176239013671875, -0.0021038055419921875, -0.01149749755859375, -0.00006902217864990234, 0.024505615234375, 0.027313232421875, -0.055816650390625, 0.01168060302734375, -0.0238189697265625, -0.0270538330078125, 0.004833221435546875, -0.01457977294921875, 0.005462646484375, 0.01158905029296875, 0.036529541015625, 0.0264892578125, -0.007732391357421875, 0.0325927734375, 0.01497650146484375, -0.031280517578125, -0.009552001953125, -0.041839599609375, -0.005023956298828125, 0.01226043701171875, 0.0016040802001953125, 0.00440216064453125, 0.01270294189453125, -0.0221099853515625, 0.0003533363342285156, 0.01239776611328125, -0.0060882568359375, -0.02862548828125, 0.03558349609375, -0.034515380859375, -0.00281524658203125, -0.0171966552734375, -0.01081085205078125, 0.0158233642578125, 0.03472900390625, -0.025909423828125, 0.006961822509765625, -0.0034160614013671875, -0.017974853515625, -0.040191650390625, -0.028717041015625, 0.047149658203125, 0.0033721923828125, -0.05523681640625, 0.035888671875, -0.029083251953125, -0.04608154296875, -0.01739501953125, -0.055450439453125, 0.0311126708984375, -0.045501708984375, 0.0027618408203125, -0.01268768310546875, 0.0162811279296875, 0.0204620361328125, -0.0191497802734375, 0.03387451171875, -0.072509765625, -0.06451416015625, 0.00664520263671875, -0.09417724609375, -0.038604736328125, -0.05029296875, -0.021270751953125, 0.10906982421875, 0.01507568359375, -0.0136871337890625, 0.0219879150390625, 0.049560546875, -0.037384033203125, 0.041015625, 0.005970001220703125, 0.0213775634765625, -0.046295166015625, 0.0469970703125, -0.0187530517578125, -0.01448822021484375, 0.04425048828125, 0.0487060546875, 0.0222625732421875, 0.006591796875, 0.0015325546264648438, -0.0245361328125, 0.0190582275390625, 0.051361083984375, 0.0036487579345703125, -0.01381683349609375, -0.00673675537109375, 0.033447265625, 0.00009310245513916016, -0.046142578125, 0.024566650390625, -0.046600341796875, -0.041046142578125, 0.0094146728515625, 0.007137298583984375, 0.0318603515625, -0.0031261444091796875, -0.016082763671875, -0.0134124755859375, 0.006969451904296875, 0.01488494873046875, -0.0029754638671875, -0.00592803955078125, 0.0340576171875, -0.038787841796875, 0.010101318359375, -0.06512451171875, -0.008758544921875, -0.00856781005859375, -0.043548583984375, -0.003261566162109375, 0.021514892578125, 0.00901031494140625, 0.0216827392578125, 0.0181427001953125, 0.0000016689300537109375, 0.033538818359375, 0.0082244873046875, 0.0251922607421875, 0.016326904296875, 0.02227783203125, -0.01125335693359375, 0.023040771484375, 0.026031494140625, 0.0250091552734375, -0.03802490234375, 0.0006051063537597656, 0.0013256072998046875, 0.0096282958984375, -0.005252838134765625, -0.03826904296875, -0.001041412353515625, -0.01151275634765625, -0.0129547119140625, 0.008819580078125, -0.01259613037109375, -0.008697509765625, 0.00470733642578125, -0.012451171875, -0.021636962890625, 0.041412353515625, 0.0229644775390625, -0.058685302734375, 0.0207061767578125, 0.0035457611083984375, 0.06121826171875, 0.039794921875, 0.036773681640625, 0.0004305839538574219, -0.03271484375, -0.03350830078125, 0.04400634765625, 0.0118255615234375, 0.042449951171875, -0.054901123046875, -0.0010576248168945312, 0.01056671142578125, 0.043212890625, 0.01824951171875, 0.0679931640625, 0.03619384765625, 0.0243377685546875, 0.0246124267578125, 0.020904541015625, 0.033111572265625, -0.0119171142578125, 0.0313720703125, 0.028717041015625, -0.0008540153503417969, 0.000002205371856689453, -0.0016765594482421875, -0.04473876953125, 0.06329345703125, 0.005680084228515625, 0.0160064697265625, 0.014251708984375, 0.0151214599609375, -0.0145111083984375, 0.00324249267578125, 0.05987548828125, 0.068359375, 0.057403564453125, -0.0143890380859375, -0.0229949951171875, 0.0211334228515625, -0.0426025390625, 0.0235443115234375, 0.04888916015625, -0.0223388671875, 0.0208892822265625, 0.058441162109375, -0.025482177734375, -0.0006418228149414062, 0.024810791015625, 0.0183258056640625, 0.00677490234375, 0.0386962890625, 0.03155517578125, -0.0233306884765625, -0.005512237548828125, 0.0212860107421875, 0.0039825439453125, -0.01139068603515625, 0.0390625, -0.0236663818359375, -0.0028209686279296875, 0.0158233642578125, -0.043548583984375, 0.02490234375, 0.0240325927734375, -0.07220458984375, -0.031829833984375, 0.006870269775390625, 0.008697509765625, 0.0007429122924804688, 0.03851318359375, 0.0198974609375, 0.0037822723388671875, 0.0253143310546875, -0.00960540771484375, 0.010284423828125, -0.011322021484375, 0.0034313201904296875, -0.036834716796875, -0.049041748046875, -0.031951904296875, 0.01009368896484375, 0.0018148422241210938, -0.010406494140625, -0.0109710693359375, -0.02520751953125, 0.01129150390625, -0.04449462890625, 0.0240631103515625, 0.00801849365234375, 0.04583740234375, 0.03326416015625, 0.00536346435546875, 0.039154052734375, 0.0249786376953125, -0.01148223876953125, 0.0195465087890625, 0.028076171875, -0.0209808349609375, 0.005146026611328125, -0.042572021484375, 0.00542449951171875, 0.03466796875, 0.02392578125, 0.01296234130859375, 0.004550933837890625, 0.016845703125, -0.058319091796875, -0.0193634033203125, -0.0244293212890625, -0.0206451416015625, -0.007266998291015625, -0.0187225341796875, 0.0191802978515625, -0.0109710693359375, -0.020263671875, -0.060455322265625, 0.032958984375, 0.025360107421875, 0.01654052734375, -0.10308837890625, 0.051513671875, -0.03924560546875, 0.0892333984375, -0.0294952392578125, 0.037567138671875, -0.0249176025390625, -0.035919189453125, -0.05242919921875, -0.0178070068359375, -0.0301513671875, 0.04132080078125, 0.00287628173828125, 0.0091552734375, 0.05047607421875, -0.01385498046875, -0.043121337890625, -0.001407623291015625, -0.002460479736328125, 0.061767578125, -0.047607421875, -0.02899169921875, -0.0207672119140625, 0.046112060546875, -0.005863189697265625, -0.0552978515625, -0.01483917236328125, -0.01444244384765625, 0.036376953125, -0.0019855499267578125, 0.01451873779296875, 0.027496337890625, -0.021484375, -0.09197998046875, 0.0191192626953125, -0.0016622543334960938, -0.032623291015625, -0.041046142578125, 0.0006756782531738281, 0.01274871826171875, -0.00760650634765625, -0.01477813720703125, -0.054656982421875, -0.059173583984375, 0.01873779296875, 0.0311126708984375, 0.037689208984375, 0.0164642333984375, -0.002593994140625, -0.06707763671875, -0.00563812255859375, -0.0183258056640625, 0.03155517578125, -0.0293731689453125, 0.0192718505859375, 0.0216522216796875, 0.043792724609375, 0.0043182373046875, 0.0076751708984375, 0.0090179443359375, -0.054046630859375, 0.00473785400390625, 0.00447845458984375, -0.00865936279296875, 0.00330352783203125, 0.083984375, -0.01508331298828125, 0.0123138427734375, -0.0234222412109375, -0.02655029296875, -0.0202484130859375, 0.039337158203125, 0.0167999267578125, -0.0019025802612304688, -0.035491943359375, 0.01702880859375, 0.017730712890625, 0.021209716796875, -0.059967041015625, 0.0013303756713867188, -0.0246734619140625, -0.0428466796875, -0.0092010498046875, 0.005855560302734375, 0.004306793212890625, -0.0246124267578125, 0.1141357421875, -0.04302978515625, 0.023101806640625, 0.0157928466796875, 0.0333251953125, 0.08013916015625, 0.004058837890625, -0.002777099609375, 0.0141754150390625, -0.024139404296875, 0.00971221923828125, -0.003391265869140625, 0.01058197021484375, -0.01488494873046875, -0.004024505615234375, 0.0030269622802734375, 0.0238494873046875, 0.00286865234375, 0.0570068359375, -0.01904296875, 0.006786346435546875, -0.01446533203125, 0.03240966796875, -0.064453125, 0.02880859375, -0.01403045654296875, -0.00872802734375, 0.032562255859375, 0.03460693359375, 0.1005859375, 0.007720947265625, 0.0003066062927246094, 0.01085662841796875, -0.05743408203125, -0.0166473388671875, -0.00396728515625, -0.041839599609375, -0.0223388671875, 0.0011796951293945312 ]
6c86c070f6cdbdf549f7345ee1bca64dfe1433ce
Wordpress Stackexchange Q: Exclude one item from wp_list_pages( $args ); I have a menu that is currently shown with wp_list_pages( 'title_li=' ); This shows all the sub pages from all the pages in the menu. I want to exclude a page with id 56 from displaying its sub items. When I use wp_list_pages( 'exclude=56&title_li=' ); the menu becomes huge and all over the page. When I use wp_list_pages( 'exclude=56' ); the menu gets messed up (vertical instead of horizontal (no li) and all of them are displayed. How can I fix this? A: There's a filter called wp_list_pages_exclude that you could possibly hook into (put this in your functions.php): function filter_wp_list_pages($exclude){ $exclude[] = 56; return $exclude; } add_filter("wp_list_pages_excludes", "filter_wp_list_pages");
Q: Exclude one item from wp_list_pages( $args ); I have a menu that is currently shown with wp_list_pages( 'title_li=' ); This shows all the sub pages from all the pages in the menu. I want to exclude a page with id 56 from displaying its sub items. When I use wp_list_pages( 'exclude=56&title_li=' ); the menu becomes huge and all over the page. When I use wp_list_pages( 'exclude=56' ); the menu gets messed up (vertical instead of horizontal (no li) and all of them are displayed. How can I fix this? A: There's a filter called wp_list_pages_exclude that you could possibly hook into (put this in your functions.php): function filter_wp_list_pages($exclude){ $exclude[] = 56; return $exclude; } add_filter("wp_list_pages_excludes", "filter_wp_list_pages"); A: Try changing the exclude to exclude_tree, read more in the function parameters.
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:415827", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38009" }
[ 0.047454833984375, -0.003261566162109375, -0.0007538795471191406, 0.006221771240234375, 0.0245819091796875, -0.05950927734375, 0.10711669921875, -0.01959228515625, 0.00013387203216552734, -0.00568389892578125, -0.054168701171875, 0.002483367919921875, -0.0278778076171875, -0.0083465576171875, -0.004058837890625, -0.06451416015625, -0.0031108856201171875, 0.017059326171875, 0.0058135986328125, -0.01125335693359375, 0.007160186767578125, -0.0143585205078125, -0.0203094482421875, 0.0200042724609375, 0.027679443359375, -0.0966796875, 0.01415252685546875, 0.007129669189453125, 0.0202178955078125, -0.0037822723388671875, 0.0085296630859375, 0.01763916015625, 0.010040283203125, 0.02044677734375, -0.0013446807861328125, -0.034912109375, -0.032806396484375, 0.009979248046875, 0.0116729736328125, -0.006603240966796875, -0.002044677734375, 0.0282135009765625, -0.03143310546875, 0.00655364990234375, -0.048431396484375, -0.041107177734375, 0.008148193359375, 0.005870819091796875, 0.001102447509765625, -0.0289306640625, 0.02655029296875, 0.01192474365234375, 0.048583984375, 0.0016050338745117188, -0.01291656494140625, 0.004894256591796875, 0.0372314453125, 0.028289794921875, 0.03070068359375, 0.0006175041198730469, -0.040313720703125, 0.038848876953125, 0.004039764404296875, -0.041656494140625, -0.0262908935546875, -0.01194000244140625, -0.022003173828125, 0.0009732246398925781, -0.055145263671875, -0.0302276611328125, 0.04571533203125, -0.0262603759765625, -0.0227203369140625, -0.01020050048828125, -0.0408935546875, 0.01082611083984375, 0.03411865234375, -0.031494140625, -0.013153076171875, 0.006343841552734375, -0.0209808349609375, -0.0282440185546875, -0.10260009765625, 0.0089874267578125, 0.009979248046875, 0.037261962890625, -0.018585205078125, -0.0081939697265625, -0.0031604766845703125, 0.046783447265625, -0.009002685546875, 0.006011962890625, -0.003215789794921875, 0.037750244140625, 0.016754150390625, 0.00939178466796875, 0.03753662109375, 0.0643310546875, -0.0188751220703125, 0.0009112358093261719, -0.006526947021484375, -0.03448486328125, 0.027435302734375, -0.054840087890625, 0.01551055908203125, 0.041839599609375, 0.0002498626708984375, 0.0136260986328125, 0.027679443359375, 0.01093292236328125, 0.0008058547973632812, 0.005405426025390625, -0.0111846923828125, -0.024566650390625, -0.0188751220703125, -0.025299072265625, -0.0472412109375, 0.0017175674438476562, 0.012481689453125, -0.03436279296875, -0.00487518310546875, 0.0235137939453125, -0.008941650390625, -0.021728515625, 0.0406494140625, 0.0230865478515625, -0.011383056640625, -0.009796142578125, 0.01165771484375, -0.002964019775390625, -0.0218963623046875, -0.01227569580078125, 0.064208984375, 0.0635986328125, 0.0289764404296875, -0.017486572265625, 0.0156707763671875, -0.0242462158203125, 0.022491455078125, -0.01270294189453125, 0.03692626953125, 0.0072021484375, 0.0238800048828125, 0.013885498046875, -0.0143280029296875, 0.0042877197265625, -0.0096435546875, 0.0269317626953125, 0.03131103515625, -0.0394287109375, 0.032806396484375, -0.0396728515625, 0.040985107421875, 0.0038356781005859375, -0.03192138671875, -0.0033855438232421875, 0.0251007080078125, -0.029205322265625, -0.01255035400390625, -0.035400390625, -0.04632568359375, -0.0077667236328125, 0.01055908203125, -0.075439453125, -0.04290771484375, -0.0094451904296875, -0.0061492919921875, 0.0058441162109375, 0.0170135498046875, -0.0076904296875, -0.03253173828125, -0.02130126953125, 0.038116455078125, 0.007358551025390625, -0.01513671875, 0.042633056640625, -0.0282440185546875, 0.01488494873046875, 0.0031032562255859375, 0.059173583984375, 0.005794525146484375, -0.042022705078125, 0.0038928985595703125, 0.0186767578125, -0.09307861328125, 0.041107177734375, 0.0012350082397460938, 0.044921875, 0.025115966796875, -0.00392913818359375, 0.0841064453125, 0.0233612060546875, -0.0296783447265625, -0.03619384765625, 0.0014476776123046875, -0.0290985107421875, 0.01226806640625, -0.0169677734375, -0.0003612041473388672, 0.04498291015625, 0.0250091552734375, -0.033538818359375, 0.041351318359375, 0.0196685791015625, -0.0665283203125, 0.019378662109375, -0.040130615234375, 0.01306915283203125, -0.01495361328125, 0.043060302734375, 0.00785064697265625, 0.004535675048828125, -0.030853271484375, 0.0125274658203125, -0.002933502197265625, -0.0237274169921875, -0.01535797119140625, -0.0021038055419921875, -0.021087646484375, -0.0019626617431640625, -0.004825592041015625, -0.0157928466796875, -0.004245758056640625, 0.04168701171875, 0.0867919921875, -0.0147857666015625, -0.0245819091796875, -0.033935546875, 0.0294952392578125, -0.0025463104248046875, -0.06878662109375, 0.06829833984375, 0.04205322265625, 0.07232666015625, -0.0283660888671875, -0.006198883056640625, -0.0215606689453125, -0.0153656005859375, -0.00652313232421875, 0.039093017578125, 0.03839111328125, 0.04339599609375, -0.0082855224609375, -0.004291534423828125, 0.041656494140625, -0.0904541015625, -0.019561767578125, 0.0026454925537109375, -0.0109710693359375, 0.006519317626953125, 0.06964111328125, 0.01280975341796875, 0.018951416015625, 0.0018014907836914062, 0.0369873046875, 0.0174713134765625, -0.0179290771484375, 0.0309295654296875, -0.0171661376953125, -0.019012451171875, 0.00860595703125, 0.0144195556640625, -0.0004398822784423828, -0.00363922119140625, 0.02081298828125, -0.01287078857421875, 0.01393890380859375, 0.0145721435546875, 0.0007648468017578125, -0.0167694091796875, 0.0275421142578125, -0.00481414794921875, 0.01262664794921875, -0.014373779296875, 0.0000050067901611328125, -0.00806427001953125, -0.040374755859375, 0.0187835693359375, 0.0404052734375, -0.01348114013671875, 0.0010919570922851562, 0.0421142578125, 0.0197906494140625, -0.00803375244140625, -0.0258636474609375, -0.041900634765625, 0.0143890380859375, 0.0169525146484375, -0.0007696151733398438, -0.02960205078125, 0.0029010772705078125, 0.0217437744140625, 0.0013380050659179688, -0.00673675537109375, 0.035614013671875, -0.0183258056640625, 0.068603515625, 0.0042572021484375, 0.0207672119140625, -0.03338623046875, 0.0214385986328125, 0.0198974609375, -0.043121337890625, -0.0049285888671875, -0.004390716552734375, -0.0003230571746826172, -0.01013946533203125, 0.007904052734375, 0.0004968643188476562, 0.032745361328125, -0.056610107421875, 0.0284271240234375, 0.0102691650390625, 0.001934051513671875, 0.0208892822265625, -0.02362060546875, 0.01520538330078125, -0.0101165771484375, -0.04901123046875, -0.05157470703125, 0.024749755859375, -0.025146484375, 0.004608154296875, 0.0034618377685546875, -0.02679443359375, -0.01763916015625, 0.043487548828125, -0.0029888153076171875, -0.0306243896484375, -0.039276123046875, -0.058502197265625, -0.05902099609375, -0.03179931640625, 0.04315185546875, -0.0113525390625, 0.01041412353515625, -0.0051422119140625, 0.11181640625, 0.00704193115234375, -0.0855712890625, -0.005886077880859375, 0.039581298828125, -0.0087738037109375, 0.0298309326171875, -0.0127716064453125, -0.036468505859375, -0.013885498046875, -0.0017576217651367188, 0.037078857421875, -0.00403594970703125, 0.0192413330078125, 0.0018053054809570312, -0.019561767578125, 0.02130126953125, 0.0121917724609375, -0.0306549072265625, 0.034820556640625, 0.039764404296875, 0.0023632049560546875, -0.01515960693359375, -0.0290679931640625, -0.02825927734375, -0.041778564453125, 0.03729248046875, 0.01107025146484375, 0.0020809173583984375, 0.00827789306640625, 0.021209716796875, 0.01099395751953125, -0.006465911865234375, 0.0252685546875, -0.0150909423828125, -0.0098419189453125, 0.0053253173828125, 0.01464080810546875, 0.0033588409423828125, 0.033111572265625, -0.01413726806640625, -0.0265655517578125, 0.003971099853515625, 0.004268646240234375, 0.0032138824462890625, -0.02740478515625, -0.0189208984375, -0.0067901611328125, 0.022216796875, 0.00699615478515625, 0.02618408203125, 0.00264739990234375, -0.0255584716796875, 0.0042266845703125, 0.05914306640625, -0.03826904296875, -0.0538330078125, -0.02783203125, 0.021820068359375, 0.028167724609375, -0.0631103515625, 0.052734375, -0.0460205078125, -0.0780029296875, 0.019622802734375, 0.0025501251220703125, -0.0192718505859375, -0.0196990966796875, 0.01226043701171875, -0.0487060546875, -0.02557373046875, 0.0360107421875, -0.0306549072265625, -0.01512908935546875, 0.025909423828125, -0.023834228515625, -0.034027099609375, -0.037872314453125, 0.01007843017578125, -0.05706787109375, -0.007080078125, -0.0061492919921875, 0.01104736328125, -0.011993408203125, -0.002208709716796875, -0.0279998779296875, 0.019622802734375, 0.026824951171875, 0.0203704833984375, 0.002574920654296875, -0.020843505859375, 0.0110321044921875, 0.0258026123046875, 0.0234375, 0.0003998279571533203, 0.004375457763671875, -0.026611328125, -0.043304443359375, -0.007740020751953125, -0.028839111328125, 0.0105133056640625, -0.004589080810546875, -0.0196685791015625, -0.06585693359375, -0.046539306640625, -0.01026153564453125, -0.01424407958984375, -0.0028743743896484375, 0.0102996826171875, -0.05828857421875, -0.051513671875, 0.0311737060546875, 0.0268402099609375, -0.0419921875, -0.00738525390625, 0.0361328125, 0.02923583984375, -0.042144775390625, -0.016754150390625, 0.00824737548828125, 0.0411376953125, -0.099853515625, 0.05517578125, 0.02520751953125, -0.01552581787109375, 0.0927734375, -0.0411376953125, -0.004756927490234375, 0.0179595947265625, 0.022979736328125, 0.016357421875, -0.0280914306640625, 0.0183563232421875, -0.00504302978515625, -0.022918701171875, 0.005298614501953125, -0.00641632080078125, -0.0345458984375, 0.006031036376953125, 0.047027587890625, 0.02508544921875, -0.000049054622650146484, -0.040924072265625, -0.031829833984375, 0.004169464111328125, 0.01557159423828125, 0.0265960693359375, 0.0208587646484375, 0.0014867782592773438, 0.037567138671875, 0.04296875, 0.01068115234375, 0.0198516845703125, 0.048187255859375, -0.022247314453125, 0.042724609375, -0.001766204833984375, -0.009185791015625, -0.0162353515625, -0.00005251169204711914, 0.017181396484375, 0.003986358642578125, -0.053680419921875, 0.03253173828125, -0.007099151611328125, -0.0066986083984375, 0.01473236083984375, 0.035491943359375, 0.04754638671875, 0.0165557861328125, 0.0172882080078125, -0.00921630859375, 0.01285552978515625, 0.00560760498046875, -0.0316162109375, -0.0018911361694335938, 0.0287322998046875, -0.0165557861328125, 0.03997802734375, 0.0343017578125, 0.0288543701171875, 0.0280303955078125, -0.040008544921875, 0.00508880615234375, -0.0176239013671875, 0.039276123046875, 0.0025081634521484375, 0.01442718505859375, -0.0099334716796875, 0.040924072265625, 0.0267333984375, -0.01108551025390625, -0.037078857421875, -0.00460052490234375, 0.013397216796875, 0.02813720703125, 0.035736083984375, -0.0064239501953125, 0.00852203369140625, 0.0025386810302734375, 0.0888671875, 0.0251617431640625, -0.08203125, -0.0196685791015625, 0.020904541015625, 0.042236328125, -0.0523681640625, -0.00789642333984375, 0.036407470703125, 0.0041961669921875, -0.0264739990234375, 0.0596923828125, -0.07000732421875, -0.00492095947265625, 0.0221099853515625, 0.012603759765625, -0.011077880859375, -0.026031494140625, -0.0833740234375, -0.04144287109375, -0.008392333984375, 0.01214599609375, 0.030609130859375, -0.015533447265625, 0.0379638671875, -0.007373809814453125, -0.03631591796875, 0.0219573974609375, 0.0029773712158203125, 0.06378173828125, 0.0311279296875, -0.01343536376953125, 0.01418304443359375, -0.010284423828125, 0.00887298583984375, 0.0186920166015625, -0.021331787109375, -0.02557373046875, -0.0306396484375, -0.0227813720703125, 0.0022983551025390625, -0.031585693359375, -0.035247802734375, -0.00127410888671875, 0.032196044921875, 0.00452423095703125, -0.00949859619140625, -0.0257568359375, 0.057708740234375, -0.0108184814453125, 0.032073974609375, -0.0147705078125, 0.0198974609375, 0.0236663818359375, -0.021514892578125, 0.0029621124267578125, -0.036865234375, -0.01372528076171875, 0.007198333740234375, -0.0330810546875, 0.03131103515625, 0.06414794921875, 0.006542205810546875, 0.0124969482421875, -0.042633056640625, -0.00345611572265625, -0.041290283203125, 0.00527191162109375, -0.070556640625, -0.0408935546875, 0.0023651123046875, -0.01407623291015625, -0.005588531494140625, -0.020751953125, -0.00019180774688720703, -0.017242431640625, 0.00354766845703125, -0.0211944580078125, 0.0176239013671875, 0.00844573974609375, 0.057342529296875, 0.08447265625, -0.0102691650390625, 0.032012939453125, 0.052520751953125, -0.010467529296875, -0.0015354156494140625, 0.024871826171875, 0.032989501953125, -0.01537322998046875, 0.046173095703125, 0.004741668701171875, 0.0184173583984375, 0.0229949951171875, -0.0266571044921875, -0.01299285888671875, 0.043304443359375, 0.034149169921875, -0.0703125, 0.013214111328125, 0.021514892578125, 0.02581787109375, 0.0005311965942382812, -0.031097412109375, -0.0096588134765625, -0.03411865234375, 0.043548583984375, 0.019073486328125, -0.0254669189453125, 0.0111541748046875, 0.00008028745651245117, -0.0108795166015625, -0.036468505859375, 0.06219482421875, 0.01502227783203125, -0.004791259765625, 0.00116729736328125, 0.00258636474609375, 0.0014829635620117188, -0.0239715576171875, 0.0019931793212890625, 0.029632568359375, -0.031768798828125, -0.099609375, 0.006561279296875, -0.0067596435546875, -0.0260009765625, 0.02099609375, 0.0262298583984375, -0.047882080078125, 0.036651611328125, -0.02203369140625, 0.02227783203125, 0.0071563720703125, -0.0313720703125, -0.006595611572265625, -0.018524169921875, 0.011871337890625, 0.0090789794921875, -0.058624267578125, 0.005451202392578125, -0.0280609130859375, 0.00975799560546875, 0.0005645751953125, -0.01107025146484375, 0.10296630859375, -0.04443359375, -0.0165252685546875, 0.0007810592651367188, -0.0035877227783203125, 0.006931304931640625, -0.00681304931640625, 0.031951904296875, -0.0256195068359375, -0.029876708984375, 0.0031375885009765625, -0.03656005859375, -0.0333251953125, -0.03314208984375, -0.07421875, 0.07220458984375, -0.016204833984375, 0.055999755859375, 0.0251007080078125, 0.01117706298828125, -0.022369384765625, -0.01141357421875, -0.0499267578125, 0.062225341796875, 0.03607177734375, 0.048370361328125, -0.0261688232421875, -0.0208892822265625, 0.0308074951171875, 0.043609619140625, 0.0294036865234375, 0.0058135986328125, -0.0272674560546875, -0.022735595703125, 0.03326416015625, 0.080078125, 0.044525146484375, 0.01241302490234375, -0.01544952392578125, 0.0015583038330078125, 0.013946533203125, -0.040679931640625, 0.0413818359375, -0.06829833984375, -0.0056610107421875, -0.01111602783203125, 0.006153106689453125, -0.0008521080017089844, 0.035186767578125, 0.027740478515625, -0.022003173828125, 0.014373779296875, 0.001537322998046875, 0.0377197265625, -0.0008559226989746094, -0.002986907958984375, -0.0031070709228515625, -0.0206146240234375, -0.032745361328125, -0.01554107666015625, 0.01389312744140625, 0.010894775390625, 0.0219268798828125, 0.03271484375, 0.022979736328125, 0.0787353515625, -0.00878143310546875, 0.01532745361328125, 0.0221099853515625, -0.01007843017578125, 0.0160369873046875, -0.005214691162109375, 0.021087646484375, -0.05474853515625, 0.005199432373046875, 0.04559326171875, 0.01525115966796875, -0.031463623046875, -0.056854248046875, 0.01629638671875, -0.015869140625, -0.01910400390625, 0.0219268798828125, -0.005214691162109375, 0.0015439987182617188, 0.0243377685546875, -0.03338623046875, 0.006381988525390625, 0.052581787109375, 0.01055908203125, -0.012542724609375, -0.02056884765625, -0.0251007080078125, 0.022918701171875, -0.0616455078125, 0.00519561767578125, 0.036834716796875, 0.06036376953125, 0.0258941650390625, 0.06732177734375, 0.00743865966796875, -0.03265380859375, -0.01334381103515625, 0.03521728515625, -0.01132965087890625, 0.019195556640625, -0.027374267578125, -0.035980224609375, -0.003326416015625, 0.01398468017578125, 0.005023956298828125, 0.01358795166015625, 0.02587890625, 0.01288604736328125, -0.0511474609375, -0.0097503662109375, 0.033294677734375, -0.033660888671875, -0.037445068359375, -0.016204833984375, 0.00994873046875, 0.0460205078125, 0.009674072265625, -0.00519561767578125, 0.052093505859375, 0.0196075439453125, -0.005157470703125, 0.01248931884765625, 0.00946807861328125, -0.033935546875, -0.04278564453125, 0.01209259033203125, 0.00191497802734375, 0.0313720703125, -0.11334228515625, -0.03082275390625, 0.00826263427734375, 0.016357421875, 0.038360595703125, 0.0307159423828125, -0.041717529296875, 0.0506591796875, 0.08197021484375, 0.005218505859375, -0.0028705596923828125, -0.0172119140625, 0.0296783447265625, 0.008514404296875, 0.017181396484375, 0.044708251953125, -0.040374755859375, -0.0187530517578125, -0.0082244873046875, 0.0193939208984375, -0.00919342041015625, 0.056976318359375, -0.0093994140625, 0.00699615478515625, -0.0104522705078125, -0.0032863616943359375, -0.0254974365234375, -0.033660888671875, 0.05615234375, -0.0279693603515625, -0.0099029541015625, 0.003536224365234375, -0.028717041015625, 0.0042724609375, 0.03765869140625, -0.029022216796875, 0.0054168701171875, -0.024932861328125, 0.0265350341796875, -0.0156707763671875, 0.032012939453125, 0.0030956268310546875, -0.0115203857421875, -0.026824951171875, -0.0179595947265625, 0.048828125, 0.08642578125, 0.039947509765625, 0.01444244384765625, -0.0005598068237304688, -0.0394287109375, 0.04168701171875, -0.033172607421875, 0.034210205078125, 0.026580810546875, 0.006771087646484375, 0.00418853759765625, -0.018890380859375, -0.011962890625, -0.0062408447265625, 0.01531219482421875, -0.035797119140625, 0.005290985107421875, -0.016265869140625, 0.015716552734375, 0.004985809326171875, 0.007411956787109375, -0.03912353515625, 0.004352569580078125, 0.0292816162109375, 0.006717681884765625, -0.01177978515625, -0.0034198760986328125, -0.0205078125, 0.0099334716796875, -0.00982666015625, 0.01480865478515625, 0.0183563232421875, -0.0450439453125, -0.06573486328125, -0.011810302734375, 0.0245208740234375, 0.0305938720703125, -0.061431884765625, 0.05816650390625, -0.0178070068359375, -0.012664794921875, -0.000766754150390625, 0.0615234375, -0.041168212890625, -0.0253448486328125, -0.06365966796875, -0.0193939208984375, -0.045257568359375, 0.034942626953125, -0.03143310546875, -0.01071929931640625, 0.027801513671875, -0.005641937255859375, 0.001861572265625, -0.028350830078125, -0.00801849365234375, 0.018890380859375, -0.01041412353515625, -0.01386260986328125, -0.01971435546875, 0.006420135498046875, 0.034515380859375, -0.0233154296875, -0.004840850830078125, -0.0181121826171875, -0.0119171142578125, 0.0447998046875, -0.027923583984375, 0.003688812255859375, -0.0264129638671875, -0.0302581787109375, 0.04083251953125, 0.021942138671875, -0.0345458984375, -0.022552490234375, 0.028717041015625, -0.0221405029296875, -0.00823211669921875, -0.00015151500701904297, -0.0243682861328125, 0.04364013671875, 0.031494140625, 0.0277557373046875, 0.04473876953125, 0.00370025634765625, 0.04461669921875, -0.04266357421875, 0.02301025390625, -0.0217132568359375, 0.010711669921875, 0.007633209228515625, -0.0028839111328125, 0.042388916015625, 0.04034423828125, -0.054779052734375, 0.01861572265625, -0.0048675537109375, 0.0282745361328125, 0.0084075927734375, 0.014007568359375, -0.08843994140625, -0.04412841796875, 0.0833740234375, 0.0859375, 0.041748046875, -0.00565338134765625, -0.0029239654541015625, -0.0401611328125, 0.018157958984375, 0.0068511962890625, -0.0031185150146484375, -0.032867431640625, -0.0072784423828125, 0.013580322265625, -0.01503753662109375, 0.02337646484375, 0.0199127197265625, -0.0114288330078125, -0.01204681396484375, 0.007389068603515625, -0.018646240234375, -0.08050537109375, -0.01090240478515625, 0.004428863525390625, -0.0278472900390625, -0.04833984375, -0.0172271728515625, 0.02447509765625, -0.029022216796875, -0.0347900390625, -0.06329345703125, -0.039154052734375, -0.0095062255859375, 0.0457763671875, -0.038787841796875, 0.0300140380859375, -0.05010986328125, 0.02960205078125, -0.04913330078125, 0.00868988037109375, 0.01300811767578125, 0.01280975341796875, 0.0211944580078125, -0.0186767578125, 0.02862548828125, 0.00740814208984375, 0.0106964111328125, 0.08367919921875, -0.00921630859375, 0.04278564453125, 0.0276947021484375, -0.03216552734375, 0.05133056640625, -0.0231781005859375, -0.00177764892578125, 0.01904296875, -0.0186767578125, -0.052520751953125, 0.0173797607421875, -0.00983428955078125, 0.01165008544921875, 0.016143798828125 ]
d0f09b3e2fb6d8c354b32d788c4c5081a967a5dc
Wordpress Stackexchange Q: Set Wordpress settings programmatically Is it possible to set certain settings from the theme functions file for example the setting Enable threaded (nested) comments ca I set it to allow 2 as the answer without having the user go into the admin panel and setting it for there wordpress comment settings? A: I am satisfied with Nikolay Yordanov's answer. Just generalizing the solution. Yes, we can update WordPress options programmatically. WordPress saves options in wp_options table. wp_options holds two rows option_name and option_value to store key and value respectively. We need right option_name and a way to save value in wp_options table. As we know, we can update threaded comments option by going to wp-admin/options-discussion.php. By opening the page options-discussion.php in a code editor, you can easily found the required option_name to update. Now, if one can get an option, also one can update it. What you need is WordPress function update_option. Final PHP Snippet function update_thread_comments_depth($depth){ //Validation check if(is_int($depth) && 0 < $depth){ update_option('thread_comments_depth', $width); return true; //success } return false; //failure } Hope, it will help to update other options as well, just open right file in code editor and find the required option name.
Q: Set Wordpress settings programmatically Is it possible to set certain settings from the theme functions file for example the setting Enable threaded (nested) comments ca I set it to allow 2 as the answer without having the user go into the admin panel and setting it for there wordpress comment settings? A: I am satisfied with Nikolay Yordanov's answer. Just generalizing the solution. Yes, we can update WordPress options programmatically. WordPress saves options in wp_options table. wp_options holds two rows option_name and option_value to store key and value respectively. We need right option_name and a way to save value in wp_options table. As we know, we can update threaded comments option by going to wp-admin/options-discussion.php. By opening the page options-discussion.php in a code editor, you can easily found the required option_name to update. Now, if one can get an option, also one can update it. What you need is WordPress function update_option. Final PHP Snippet function update_thread_comments_depth($depth){ //Validation check if(is_int($depth) && 0 < $depth){ update_option('thread_comments_depth', $width); return true; //success } return false; //failure } Hope, it will help to update other options as well, just open right file in code editor and find the required option name. A: Well, you can do something like this which will always reset the option to 2: add_action('init', 'update_comment_depth'); function update_comment_depth() { update_option('thread_comments_depth', 2); }
wordpress
{ "language": "en", "length": 222, "provenance": "stackexchange_00019.jsonl.gz:415866", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38155" }
[ 0.0313720703125, -0.0362548828125, 0.025421142578125, -0.008544921875, -0.035125732421875, -0.02197265625, 0.044586181640625, -0.002742767333984375, 0.0034427642822265625, 0.00662994384765625, -0.031463623046875, -0.0399169921875, -0.01122283935546875, -0.017059326171875, -0.02264404296875, -0.06561279296875, 0.04498291015625, -0.0075225830078125, 0.00330352783203125, -0.00734710693359375, 0.01271820068359375, 0.01800537109375, -0.04595947265625, 0.11749267578125, 0.0167694091796875, -0.022003173828125, 0.0911865234375, -0.02777099609375, 0.016876220703125, -0.01512908935546875, 0.02880859375, -0.0028057098388671875, 0.0294189453125, -0.01358795166015625, -0.0033321380615234375, 0.0019483566284179688, 0.0111236572265625, -0.0255584716796875, -0.0167388916015625, 0.0367431640625, 0.0182037353515625, 0.0015134811401367188, -0.0249176025390625, 0.04302978515625, -0.0306854248046875, -0.0458984375, 0.00791168212890625, -0.040802001953125, 0.017303466796875, 0.00621795654296875, 0.007709503173828125, 0.0115509033203125, 0.0233001708984375, -0.0182647705078125, -0.014892578125, -0.00838470458984375, -0.00743865966796875, 0.003711700439453125, 0.0137786865234375, -0.00466156005859375, -0.0035915374755859375, 0.0025730133056640625, 0.018096923828125, 0.0009331703186035156, 0.01375579833984375, -0.0003063678741455078, 0.042816162109375, 0.021697998046875, -0.029541015625, 0.0195770263671875, 0.028411865234375, -0.018035888671875, 0.004909515380859375, -0.02667236328125, 0.0310211181640625, 0.00353240966796875, -0.0301513671875, -0.0299072265625, 0.0325927734375, 0.004146575927734375, 0.0758056640625, 0.0025157928466796875, 0.038909912109375, 0.000583648681640625, 0.039764404296875, 0.0439453125, 0.013702392578125, -0.044158935546875, -0.0110321044921875, 0.005931854248046875, -0.01378631591796875, -0.020904541015625, -0.01776123046875, 0.04730224609375, -0.004276275634765625, 0.005859375, 0.003604888916015625, 0.037750244140625, -0.028778076171875, 0.02490234375, 0.005512237548828125, -0.0391845703125, 0.06219482421875, -0.038909912109375, 0.010406494140625, 0.0190582275390625, -0.020660400390625, -0.029266357421875, 0.0065460205078125, 0.024322509765625, -0.0117034912109375, -0.0262603759765625, -0.009002685546875, -0.0321044921875, -0.00014531612396240234, 0.006618499755859375, -0.034454345703125, 0.032012939453125, -0.008087158203125, 0.0093994140625, -0.007801055908203125, 0.0379638671875, -0.04986572265625, -0.0117950439453125, -0.00015735626220703125, -0.020263671875, 0.01497650146484375, -0.0003075599670410156, -0.01422119140625, 0.0262603759765625, -0.054595947265625, 0.004337310791015625, 0.10296630859375, 0.04742431640625, 0.021575927734375, -0.0257415771484375, 0.0267333984375, -0.013946533203125, -0.021942138671875, 0.037841796875, 0.033905029296875, -0.02081298828125, -0.0233154296875, 0.01323699951171875, 0.00576019287109375, 0.0112457275390625, 0.03143310546875, 0.01806640625, 0.00933837890625, 0.0024929046630859375, -0.0256805419921875, 0.0220489501953125, 0.030975341796875, 0.0008764266967773438, -0.0136260986328125, -0.042938232421875, 0.0289764404296875, -0.03436279296875, 0.0130462646484375, -0.0548095703125, -0.05755615234375, -0.018798828125, 0.05511474609375, -0.0249786376953125, -0.01220703125, 0.03839111328125, -0.032470703125, 0.0021514892578125, 0.0197906494140625, 0.004749298095703125, 0.0170440673828125, -0.03338623046875, 0.01081085205078125, -0.01096343994140625, -0.004627227783203125, 0.00732421875, -0.04168701171875, 0.0087738037109375, 0.0307464599609375, -0.03387451171875, -0.019195556640625, -0.043060302734375, 0.04339599609375, 0.00919342041015625, -0.0243682861328125, -0.003528594970703125, 0.023345947265625, 0.070556640625, -0.00821685791015625, 0.044677734375, -0.0021991729736328125, -0.0114593505859375, 0.0009436607360839844, -0.0011081695556640625, -0.017425537109375, -0.01444244384765625, -0.0096893310546875, 0.02484130859375, -0.032623291015625, 0.0059051513671875, -0.007389068603515625, -0.00927734375, -0.01441192626953125, -0.01190948486328125, -0.064697265625, -0.002285003662109375, -0.030670166015625, 0.04595947265625, 0.007366180419921875, 0.006641387939453125, -0.010955810546875, -0.027252197265625, 0.009979248046875, -0.0306549072265625, -0.044464111328125, -0.0004069805145263672, -0.02105712890625, 0.05133056640625, 0.006771087646484375, 0.040557861328125, 0.005992889404296875, -0.0200042724609375, 0.0186004638671875, 0.004383087158203125, 0.044219970703125, -0.050079345703125, 0.01239013671875, -0.03948974609375, 0.0604248046875, -0.00940704345703125, 0.005924224853515625, -0.002780914306640625, 0.03533935546875, 0.006214141845703125, -0.007450103759765625, 0.00585174560546875, -0.00959014892578125, -0.09619140625, -0.00630950927734375, 0.055084228515625, 0.037689208984375, 0.0249786376953125, -0.0254669189453125, -0.034393310546875, 0.06280517578125, -0.030731201171875, 0.0130462646484375, -0.014404296875, 0.00562286376953125, 0.0136566162109375, 0.001789093017578125, -0.0254364013671875, 0.01129150390625, -0.0740966796875, 0.0188140869140625, 0.031524658203125, -0.047515869140625, 0.007076263427734375, 0.032257080078125, -0.007205963134765625, -0.0247039794921875, -0.07684326171875, 0.034942626953125, -0.05517578125, 0.060699462890625, -0.01519775390625, 0.026519775390625, 0.004001617431640625, -0.017486572265625, 0.025543212890625, 0.0200042724609375, -0.0511474609375, 0.004482269287109375, 0.0167236328125, -0.01373291015625, -0.0233612060546875, -0.030670166015625, 0.01383209228515625, -0.002315521240234375, -0.005680084228515625, -0.0233306884765625, 0.0078125, -0.052520751953125, -0.0209503173828125, -0.0030689239501953125, -0.0347900390625, -0.011138916015625, -0.01413726806640625, -0.01389312744140625, 0.0121002197265625, 0.039031982421875, 0.0135650634765625, -0.023895263671875, 0.0221405029296875, -0.0239410400390625, -0.01175689697265625, 0.0697021484375, -0.016326904296875, 0.007965087890625, -0.0015163421630859375, 0.031768798828125, 0.054534912109375, -0.0034313201904296875, -0.0016841888427734375, 0.003543853759765625, 0.0179595947265625, 0.0018301010131835938, 0.00534820556640625, -0.0025615692138671875, -0.0068817138671875, 0.00740814208984375, 0.05474853515625, -0.0157623291015625, -0.0011768341064453125, -0.01727294921875, -0.0426025390625, -0.01016998291015625, 0.007053375244140625, -0.0036773681640625, 0.0140380859375, 0.0146484375, -0.0672607421875, -0.0177154541015625, -0.022674560546875, -0.04913330078125, -0.00044226646423339844, 0.0064239501953125, -0.0010023117065429688, -0.00039124488830566406, -0.0225067138671875, -0.01201629638671875, -0.01526641845703125, -0.0244140625, 0.0033664703369140625, 0.01255035400390625, 0.004730224609375, -0.009613037109375, 0.0499267578125, -0.003780364990234375, -0.03363037109375, -0.0173187255859375, -0.031585693359375, -0.0161590576171875, -0.01000213623046875, 0.0311737060546875, -0.04510498046875, 0.0634765625, -0.0232391357421875, -0.004871368408203125, 0.06103515625, -0.0200653076171875, -0.0005030632019042969, -0.0137786865234375, 0.0145263671875, -0.003993988037109375, 0.000946044921875, 0.01480865478515625, 0.03363037109375, 0.00553131103515625, -0.02227783203125, -0.0250701904296875, 0.007007598876953125, -0.0240478515625, 0.004375457763671875, 0.016326904296875, -0.01380157470703125, -0.0280914306640625, 0.032623291015625, 0.0274658203125, 0.0173187255859375, 0.04461669921875, -0.0258941650390625, 0.00519561767578125, -0.00972747802734375, -0.017852783203125, -0.0452880859375, 0.03314208984375, -0.003063201904296875, -0.0218963623046875, 0.009185791015625, 0.022003173828125, -0.01486968994140625, 0.0088653564453125, -0.061676025390625, -0.01560211181640625, 0.0186920166015625, -0.05865478515625, -0.005077362060546875, -0.03192138671875, -0.0126190185546875, -0.0261688232421875, 0.04052734375, -0.0132904052734375, -0.0220794677734375, 0.0203399658203125, 0.044189453125, -0.051544189453125, -0.0301971435546875, -0.0025787353515625, -0.019500732421875, -0.0300750732421875, 0.004547119140625, 0.0090179443359375, -0.03411865234375, -0.0223846435546875, 0.039093017578125, -0.029266357421875, -0.00426483154296875, 0.015228271484375, -0.0107269287109375, -0.017791748046875, -0.006137847900390625, -0.032623291015625, -0.013275146484375, 0.00783538818359375, -0.027587890625, -0.115234375, -0.0294952392578125, 0.03192138671875, 0.07635498046875, -0.00213623046875, -0.025360107421875, -0.02374267578125, 0.06768798828125, -0.037994384765625, 0.0184478759765625, -0.00045800209045410156, 0.039031982421875, -0.00911712646484375, 0.0004520416259765625, 0.0015659332275390625, -0.016326904296875, -0.021453857421875, -0.03033447265625, -0.01331329345703125, 0.017425537109375, 0.00528717041015625, 0.016845703125, 0.0134735107421875, -0.00469970703125, -0.06475830078125, -0.0211944580078125, -0.028076171875, -0.0030269622802734375, -0.0129852294921875, -0.00579071044921875, -0.025787353515625, -0.0631103515625, 0.06072998046875, -0.06683349609375, 0.0012149810791015625, -0.01421356201171875, 0.1119384765625, 0.0136260986328125, -0.0030689239501953125, 0.0079193115234375, -0.0196990966796875, 0.007762908935546875, 0.023712158203125, 0.06298828125, 0.004268646240234375, 0.01448822021484375, 0.061767578125, 0.004100799560546875, 0.0156402587890625, -0.0168609619140625, 0.0235595703125, 0.01404571533203125, 0.0014476776123046875, 0.008148193359375, 0.0191497802734375, -0.00670623779296875, 0.003795623779296875, -0.01702880859375, 0.006053924560546875, -0.035308837890625, 0.051361083984375, 0.03106689453125, -0.016693115234375, -0.0633544921875, -0.0256805419921875, -0.007640838623046875, -0.0247039794921875, 0.06707763671875, 0.02496337890625, 0.00017380714416503906, 0.0283203125, 0.042999267578125, -0.013458251953125, 0.02130126953125, 0.0205078125, 0.0166015625, 0.029449462890625, 0.0129852294921875, 0.0015735626220703125, -0.034210205078125, -0.0197296142578125, 0.094482421875, -0.005649566650390625, -0.037384033203125, 0.00594329833984375, -0.0096282958984375, 0.0521240234375, 0.0268707275390625, 0.01210784912109375, 0.03558349609375, 0.011199951171875, -0.000835418701171875, -0.01416778564453125, -0.0230560302734375, -0.000010907649993896484, -0.039764404296875, 0.05548095703125, 0.03466796875, -0.0078887939453125, 0.0127716064453125, 0.042755126953125, 0.03997802734375, 0.004047393798828125, -0.03643798828125, 0.01161956787109375, 0.0218353271484375, 0.0024871826171875, 0.03070068359375, 0.0078582763671875, 0.0146484375, -0.0506591796875, 0.0184326171875, -0.00434112548828125, -0.0179443359375, 0.0241851806640625, 0.01105499267578125, 0.022430419921875, 0.030975341796875, -0.0159149169921875, 0.005115509033203125, 0.01036834716796875, -0.003505706787109375, -0.0034503936767578125, -0.0189361572265625, 0.0165252685546875, 0.0233612060546875, 0.00002950429916381836, -0.0278778076171875, 0.00879669189453125, -0.0601806640625, -0.04180908203125, -0.042205810546875, 0.0111846923828125, -0.0309906005859375, -0.0238037109375, -0.0257720947265625, -0.03155517578125, 0.0077056884765625, -0.012664794921875, -0.0611572265625, -0.046844482421875, 0.0031890869140625, -0.00849151611328125, 0.038482666015625, 0.01052093505859375, 0.028778076171875, -0.034454345703125, -0.0275726318359375, 0.033477783203125, -0.015838623046875, 0.051177978515625, -0.0093841552734375, -0.027801513671875, -0.00853729248046875, -0.0280303955078125, -0.0193328857421875, -0.03948974609375, -0.034423828125, -0.03717041015625, 0.019683837890625, 0.01404571533203125, 0.0276336669921875, -0.03570556640625, -0.03173828125, 0.0016326904296875, 0.02777099609375, 0.0186004638671875, 0.0643310546875, -0.029571533203125, 0.0594482421875, 0.005855560302734375, 0.012420654296875, 0.0187835693359375, 0.0163421630859375, -0.016998291015625, -0.00354766845703125, 0.01026153564453125, -0.0191650390625, -0.0189056396484375, -0.0352783203125, -0.005039215087890625, 0.0165252685546875, 0.05181884765625, -0.00833892822265625, 0.0301513671875, -0.022430419921875, 0.00440216064453125, -0.03704833984375, -0.006046295166015625, -0.06732177734375, 0.007137298583984375, 0.0007638931274414062, -0.0240020751953125, 0.01087188720703125, 0.004638671875, -0.0226898193359375, 0.033905029296875, -0.00853729248046875, 0.0189971923828125, 0.0272216796875, -0.087646484375, 0.06903076171875, 0.0810546875, 0.02178955078125, 0.03839111328125, -0.001300811767578125, -0.0028629302978515625, -0.00200653076171875, 0.0082244873046875, -0.048004150390625, 0.0126800537109375, 0.037353515625, 0.01318359375, -0.0159149169921875, 0.020843505859375, -0.0295867919921875, 0.0258636474609375, 0.0389404296875, 0.075439453125, -0.05230712890625, 0.018157958984375, 0.00823211669921875, -0.0228118896484375, 0.0726318359375, 0.0180816650390625, -0.01448822021484375, -0.01442718505859375, 0.044281005859375, -0.01407623291015625, -0.00841522216796875, 0.027252197265625, 0.006946563720703125, -0.04052734375, -0.01812744140625, 0.03363037109375, 0.0230712890625, -0.016571044921875, 0.03839111328125, 0.0180206298828125, 0.02886962890625, 0.0020160675048828125, -0.025390625, 0.0017032623291015625, -0.05712890625, -0.044097900390625, -0.004581451416015625, -0.03094482421875, -0.01517486572265625, 0.0400390625, 0.00806427001953125, -0.0001462697982788086, 0.040771484375, -0.0171661376953125, 0.02984619140625, 0.01427459716796875, -0.005359649658203125, -0.027618408203125, -0.0205535888671875, 0.0313720703125, 0.00911712646484375, -0.0166778564453125, 0.01751708984375, -0.0355224609375, -0.0232391357421875, -0.00970458984375, 0.01467132568359375, 0.046356201171875, -0.0030956268310546875, -0.02777099609375, 0.02001953125, 0.0217742919921875, -0.0024871826171875, 0.0276947021484375, -0.004161834716796875, -0.041595458984375, -0.051788330078125, 0.0129852294921875, -0.07232666015625, -0.0122833251953125, 0.0181427001953125, -0.04583740234375, 0.1358642578125, -0.044525146484375, 0.00308990478515625, 0.0271453857421875, 0.06903076171875, -0.043487548828125, 0.042816162109375, 0.0023193359375, 0.005168914794921875, -0.00850677490234375, 0.0213165283203125, -0.0233154296875, -0.01904296875, 0.0012683868408203125, 0.0667724609375, 0.034393310546875, 0.00865936279296875, -0.0274505615234375, -0.0172576904296875, 0.0726318359375, 0.03240966796875, 0.0138092041015625, 0.03155517578125, 0.0016164779663085938, 0.01236724853515625, 0.00557708740234375, -0.033477783203125, 0.01197052001953125, -0.035980224609375, -0.027496337890625, 0.0093231201171875, 0.01611328125, 0.026641845703125, -0.037261962890625, 0.033935546875, -0.0430908203125, -0.01446533203125, 0.04107666015625, -0.0518798828125, -0.050933837890625, 0.050079345703125, 0.035430908203125, -0.042724609375, -0.002277374267578125, -0.04669189453125, 0.0457763671875, 0.0052337646484375, -0.049713134765625, 0.036224365234375, 0.0136260986328125, -0.0362548828125, -0.00424957275390625, -0.018310546875, 0.0028209686279296875, 0.01299285888671875, -0.006992340087890625, 0.01523590087890625, 0.025604248046875, 0.023956298828125, 0.07159423828125, 0.00337982177734375, -0.0184173583984375, -0.0265655517578125, 0.00238800048828125, 0.0048828125, 0.003032684326171875, -0.01287841796875, -0.0260009765625, 0.0202178955078125, 0.0318603515625, 0.01995849609375, -0.022186279296875, -0.00791168212890625, 0.0300750732421875, -0.0175628662109375, 0.0013256072998046875, 0.05377197265625, -0.007709503173828125, 0.01033782958984375, -0.03558349609375, 0.014312744140625, 0.00475311279296875, 0.049224853515625, 0.0001556873321533203, 0.066162109375, 0.00792694091796875, -0.01213836669921875, -0.0198822021484375, 0.031829833984375, -0.0130462646484375, 0.014862060546875, -0.0292510986328125, -0.037445068359375, 0.0015745162963867188, 0.047271728515625, 0.0178680419921875, 0.052154541015625, 0.039093017578125, 0.00765228271484375, -0.0251922607421875, 0.01058197021484375, 0.045623779296875, -0.030975341796875, 0.006679534912109375, -0.032196044921875, 0.01300811767578125, 0.02703857421875, -0.01331329345703125, -0.012237548828125, -0.0010881423950195312, 0.03558349609375, 0.021820068359375, 0.004215240478515625, 0.0181884765625, 0.0224609375, 0.0199432373046875, 0.025909423828125, -0.032562255859375, 0.05426025390625, -0.04150390625, -0.006076812744140625, -0.0016231536865234375, -0.02410888671875, 0.0178070068359375, 0.03143310546875, -0.0260772705078125, 0.0240936279296875, -0.032958984375, -0.0208587646484375, 0.03594970703125, -0.0224456787109375, 0.01181793212890625, 0.0292510986328125, -0.01180267333984375, -0.00946807861328125, -0.060516357421875, -0.04083251953125, -0.041534423828125, 0.047271728515625, 0.02423095703125, 0.06707763671875, -0.00789642333984375, 0.031768798828125, -0.01137542724609375, 0.01406097412109375, -0.0036106109619140625, -0.0251617431640625, 0.0239715576171875, 0.00980377197265625, 0.0007863044738769531, -0.0185089111328125, -0.00433349609375, 0.04986572265625, 0.0214080810546875, -0.0117034912109375, 0.062347412109375, -0.055755615234375, 0.01227569580078125, -0.0251922607421875, 0.01410675048828125, -0.0282135009765625, -0.045318603515625, -0.00998687744140625, -0.0042266845703125, -0.0177154541015625, -0.0007414817810058594, 0.03924560546875, 0.045013427734375, 0.005649566650390625, 0.072998046875, 0.00832366943359375, 0.048492431640625, 0.01438140869140625, 0.03558349609375, -0.10931396484375, 0.03521728515625, 0.0045013427734375, -0.0235748291015625, 0.04083251953125, -0.007045745849609375, -0.004364013671875, 0.0088348388671875, -0.0015077590942382812, 0.0157012939453125, 0.007534027099609375, 0.037445068359375, -0.0279083251953125, 0.0207366943359375, 0.007781982421875, 0.01025390625, 0.041778564453125, -0.020751953125, -0.01282501220703125, -0.01342010498046875, -0.03558349609375, 0.01107025146484375, -0.0168304443359375, -0.02947998046875, -0.028228759765625, -0.02081298828125, 0.01535797119140625, 0.0049591064453125, -0.033294677734375, -0.006069183349609375, 0.014923095703125, 0.0308380126953125, -0.006641387939453125, -0.0226287841796875, 0.01255035400390625, 0.0279998779296875, -0.0214385986328125, -0.0034160614013671875, -0.018157958984375, -0.0025081634521484375, -0.01514434814453125, 0.0379638671875, 0.055145263671875, -0.0213775634765625, -0.0031719207763671875, 0.053314208984375, 0.03961181640625, 0.0982666015625, -0.035430908203125, 0.01163482666015625, 0.06500244140625, -0.00310516357421875, -0.05596923828125, -0.122314453125, 0.0011434555053710938, -0.08636474609375, 0.037078857421875, -0.0029659271240234375, 0.00885772705078125, 0.023956298828125, -0.04345703125, -0.08038330078125, -0.00768280029296875, -0.00803375244140625, -0.048797607421875, -0.053863525390625, -0.0138092041015625, -0.040802001953125, 0.09930419921875, 0.0026035308837890625, -0.0196075439453125, 0.0130157470703125, 0.07232666015625, -0.007488250732421875, 0.057159423828125, -0.00897979736328125, -0.01505279541015625, -0.00832366943359375, 0.01727294921875, 0.023406982421875, 0.0090789794921875, 0.0020923614501953125, 0.0012712478637695312, 0.0290374755859375, 0.033905029296875, -0.0211944580078125, -0.02178955078125, -0.0006117820739746094, -0.032928466796875, -0.0174407958984375, -0.06201171875, -0.03515625, -0.0225372314453125, 0.0721435546875, 0.0643310546875, 0.0200958251953125, -0.0303802490234375, -0.039459228515625, -0.0161285400390625, -0.0083770751953125, 0.004367828369140625, 0.021942138671875, -0.05804443359375, 0.00788116455078125, 0.0291900634765625, -0.00373077392578125, -0.039031982421875, 0.00543975830078125, -0.0185394287109375, -0.00997161865234375, 0.006351470947265625, -0.00542449951171875, 0.001972198486328125, -0.000010669231414794922, 0.01409149169921875, -0.0038890838623046875, 0.02410888671875, -0.0270843505859375, 0.0226898193359375, 0.0216522216796875, 0.0147552490234375, -0.0266571044921875, 0.01065826416015625, -0.020294189453125, 0.0240020751953125, -0.0032520294189453125, 0.07122802734375, -0.01495361328125, 0.0016307830810546875, -0.0018978118896484375, -0.004680633544921875, -0.001781463623046875, -0.04571533203125, -0.03887939453125, 0.015533447265625, -0.0216217041015625, 0.064697265625, -0.018768310546875, 0.056365966796875, -0.0121002197265625, 0.046234130859375, -0.01123809814453125, -0.004238128662109375, 0.01160430908203125, -0.01161956787109375, 0.00006347894668579102, -0.003604888916015625, -0.0165252685546875, -0.07574462890625, 0.0489501953125, 0.09906005859375, 0.006256103515625, 0.039398193359375 ]
11f85828e4041464bf10e1e142334cdeff623c7f
Wordpress Stackexchange Q: How can I use WordPress as a job board ? (but free) I wish to use WordPress installation for a job board. Looking online I found the following two posts that give a list of options: http://www.wpmods.com/turn-wordpress-into-job-board/ http://skyje.com/2010/01/job-board-solutions-for-wordpress/ But all of the options (except 1) cost money. Is there a free (good) solution for WP job board (theme/plugins) ? A: I think what you want to do is add a custom post type for a job posting. Take a look at this example custom post type which should give you a good template for creating a job post. In the past (before 3.0) I have used the Magic Fields plugin to add a custom post type for "Jobs" by adding the fields I want for job posts.
Q: How can I use WordPress as a job board ? (but free) I wish to use WordPress installation for a job board. Looking online I found the following two posts that give a list of options: http://www.wpmods.com/turn-wordpress-into-job-board/ http://skyje.com/2010/01/job-board-solutions-for-wordpress/ But all of the options (except 1) cost money. Is there a free (good) solution for WP job board (theme/plugins) ? A: I think what you want to do is add a custom post type for a job posting. Take a look at this example custom post type which should give you a good template for creating a job post. In the past (before 3.0) I have used the Magic Fields plugin to add a custom post type for "Jobs" by adding the fields I want for job posts. A: You get what you pay for. I've used Templatic and DailyWP's job board themes (in your first link) and they're both very good. I haven't seen a free theme that comes close to them as far as overall quality, payment integration, etc etc.
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:415872", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38172" }
[ 0.06695556640625, -0.0153045654296875, 0.01198577880859375, 0.0124664306640625, 0.01519775390625, -0.05072021484375, 0.0799560546875, -0.04364013671875, -0.006069183349609375, 0.004486083984375, -0.01470184326171875, 0.004283905029296875, -0.035064697265625, -0.0233306884765625, -0.0056610107421875, -0.034423828125, 0.0362548828125, -0.005260467529296875, 0.03509521484375, -0.0082855224609375, 0.01149749755859375, 0.01300048828125, 0.01226806640625, 0.0028820037841796875, 0.030487060546875, 0.0391845703125, 0.01181793212890625, -0.0256195068359375, 0.04937744140625, 0.032196044921875, 0.037261962890625, -0.0787353515625, 0.02154541015625, -0.009246826171875, 0.03961181640625, 0.06512451171875, -0.000507354736328125, 0.004978179931640625, 0.039825439453125, 0.004947662353515625, 0.01194000244140625, -0.001811981201171875, 0.0059051513671875, 0.0289764404296875, -0.0083465576171875, -0.05084228515625, 0.035797119140625, -0.036468505859375, 0.008392333984375, -0.050018310546875, 0.0190277099609375, 0.0079498291015625, 0.051483154296875, -0.03466796875, -0.024932861328125, 0.005565643310546875, -0.03759765625, 0.0266265869140625, 0.039031982421875, 0.0104522705078125, -0.01464080810546875, -0.0265045166015625, 0.0195465087890625, -0.0133514404296875, 0.0013580322265625, -0.0020198822021484375, -0.059051513671875, 0.016021728515625, -0.038604736328125, -0.0035762786865234375, 0.0233612060546875, -0.049102783203125, -0.0025634765625, 0.0004489421844482422, -0.03875732421875, -0.0333251953125, 0.033172607421875, -0.02093505859375, 0.0011377334594726562, 0.018402099609375, -0.00588226318359375, 0.02655029296875, -0.027679443359375, -0.026611328125, -0.00658416748046875, -0.0140533447265625, -0.016632080078125, 0.00251007080078125, -0.055206298828125, -0.042694091796875, -0.016387939453125, -0.004299163818359375, -0.10699462890625, -0.012786865234375, -0.0028095245361328125, -0.01052093505859375, 0.01393890380859375, 0.00550079345703125, -0.0015783309936523438, 0.0034427642822265625, 0.00690460205078125, -0.052032470703125, 0.04119873046875, -0.0188751220703125, -0.004848480224609375, 0.058319091796875, -0.0103912353515625, -0.020904541015625, 0.01079559326171875, 0.017852783203125, 0.0149688720703125, -0.004863739013671875, 0.015777587890625, -0.047943115234375, 0.0041656494140625, 0.0062103271484375, -0.01104736328125, 0.037750244140625, 0.02032470703125, -0.0025177001953125, -0.02154541015625, -0.01259613037109375, 0.0013093948364257812, -0.0144805908203125, 0.006927490234375, -0.0148468017578125, -0.0225982666015625, 0.0008845329284667969, 0.005458831787109375, 0.01508331298828125, -0.01488494873046875, -0.0006518363952636719, 0.031768798828125, 0.0447998046875, 0.0029315948486328125, -0.018096923828125, 0.00815582275390625, -0.0283050537109375, -0.021575927734375, 0.01534271240234375, -0.006023406982421875, -0.031585693359375, -0.01995849609375, -0.0019140243530273438, 0.043670654296875, 0.00891876220703125, 0.0167388916015625, 0.0200042724609375, 0.0030612945556640625, 0.0063323974609375, 0.00164794921875, 0.0189056396484375, -0.03729248046875, 0.044647216796875, 0.07733154296875, 0.013702392578125, 0.043121337890625, -0.0234222412109375, 0.050323486328125, 0.00914764404296875, 0.0125732421875, 0.01091766357421875, 0.05267333984375, -0.0280303955078125, -0.0242462158203125, -0.00823974609375, -0.08892822265625, -0.01336669921875, 0.028656005859375, -0.06231689453125, 0.0614013671875, 0.006954193115234375, 0.023834228515625, -0.008270263671875, 0.0163726806640625, -0.006320953369140625, 0.00820159912109375, -0.0028476715087890625, 0.029754638671875, 0.0096893310546875, -0.004238128662109375, -0.03094482421875, 0.0755615234375, -0.03973388671875, -0.0343017578125, 0.007244110107421875, -0.0111083984375, 0.0304412841796875, 0.049835205078125, 0.01332855224609375, -0.026580810546875, -0.0032501220703125, 0.021881103515625, 0.0174407958984375, -0.01666259765625, -0.033538818359375, -0.0216064453125, 0.01390838623046875, -0.031280517578125, -0.0024566650390625, -0.0018930435180664062, 0.01172637939453125, 0.01507568359375, -0.0187835693359375, -0.00858306884765625, 0.00220489501953125, -0.003963470458984375, 0.02685546875, 0.051361083984375, -0.0086822509765625, 0.0004076957702636719, -0.00989532470703125, 0.032684326171875, -0.088134765625, -0.07952880859375, 0.0220489501953125, 0.00449371337890625, 0.0311279296875, 0.0000776052474975586, -0.005352020263671875, 0.0029468536376953125, -0.03302001953125, 0.006046295166015625, 0.039215087890625, 0.0300140380859375, 0.0144805908203125, -0.0218505859375, 0.00836944580078125, 0.021759033203125, 0.0163421630859375, 0.0043487548828125, 0.02471923828125, -0.0310821533203125, 0.02545166015625, -0.0088958740234375, -0.017974853515625, -0.006343841552734375, -0.01074981689453125, 0.0215911865234375, 0.03204345703125, 0.01171875, 0.042327880859375, -0.00653839111328125, 0.05078125, 0.05877685546875, 0.004486083984375, 0.01641845703125, 0.024505615234375, 0.0119171142578125, 0.036407470703125, -0.007171630859375, 0.00800323486328125, 0.029998779296875, -0.035797119140625, -0.0093994140625, 0.03741455078125, -0.03131103515625, -0.0279998779296875, 0.0181121826171875, -0.045562744140625, 0.0218963623046875, -0.0322265625, -0.035003662109375, -0.0039043426513671875, 0.00536346435546875, 0.033203125, 0.040771484375, 0.031158447265625, -0.01168060302734375, 0.006389617919921875, 0.0028934478759765625, 0.0041046142578125, 0.0006661415100097656, 0.0197601318359375, 0.01360321044921875, 0.0224151611328125, -0.032806396484375, 0.0013742446899414062, -0.0007748603820800781, 0.003055572509765625, -0.01335906982421875, 0.0261077880859375, 0.006549835205078125, -0.01233673095703125, -0.004711151123046875, -0.029754638671875, 0.00876617431640625, -0.0120697021484375, 0.005596160888671875, -0.0228271484375, 0.0205535888671875, 0.01470184326171875, -0.0316162109375, 0.049835205078125, -0.0201873779296875, -0.0308074951171875, -0.063720703125, -0.01244354248046875, 0.0325927734375, -0.0111846923828125, -0.0250396728515625, 0.0635986328125, 0.043731689453125, -0.0174560546875, -0.00518035888671875, 0.006984710693359375, 0.004283905029296875, 0.0129547119140625, -0.014190673828125, -0.0335693359375, -0.0310211181640625, -0.0178375244140625, 0.01172637939453125, 0.01415252685546875, 0.032989501953125, -0.0174407958984375, 0.0172882080078125, 0.0152587890625, -0.030242919921875, -0.0634765625, 0.0087127685546875, -0.0860595703125, -0.0084686279296875, -0.035400390625, -0.043487548828125, -0.0005488395690917969, -0.0188140869140625, 0.0006866455078125, -0.0010671615600585938, 0.01355743408203125, 0.003353118896484375, -0.0136260986328125, -0.043731689453125, -0.0211181640625, -0.00640869140625, 0.023406982421875, 0.0027637481689453125, 0.0306549072265625, 0.017242431640625, -0.03131103515625, 0.031768798828125, 0.0936279296875, -0.011383056640625, -0.013580322265625, 0.0246734619140625, -0.00829315185546875, 0.026092529296875, -0.00228118896484375, 0.0174407958984375, 0.039215087890625, -0.042694091796875, -0.0164794921875, -0.036529541015625, 0.01873779296875, -0.0187530517578125, -0.0013895034790039062, 0.04046630859375, -0.006671905517578125, -0.0130615234375, -0.04217529296875, 0.022430419921875, 0.004791259765625, 0.01042938232421875, 0.01056671142578125, -0.025848388671875, -0.0286407470703125, -0.0076904296875, 0.004535675048828125, -0.0002218484878540039, 0.0186614990234375, 0.01033782958984375, -0.0035381317138671875, 0.0303497314453125, -0.017791748046875, -0.0270538330078125, -0.0211944580078125, -0.03680419921875, -0.04144287109375, 0.054718017578125, -0.0233612060546875, -0.0293121337890625, -0.055908203125, 0.049346923828125, -0.058380126953125, -0.1541748046875, 0.054351806640625, -0.05743408203125, -0.0224151611328125, -0.06329345703125, -0.019866943359375, 0.01739501953125, 0.1483154296875, 0.0155792236328125, -0.020904541015625, -0.01189422607421875, -0.017608642578125, -0.0162811279296875, 0.0071563720703125, -0.0254974365234375, 0.004947662353515625, -0.0997314453125, 0.061492919921875, 0.0251617431640625, -0.02935791015625, -0.0231475830078125, 0.01137542724609375, -0.060150146484375, -0.0479736328125, 0.050079345703125, -0.05279541015625, 0.03741455078125, -0.002010345458984375, 0.002155303955078125, -0.01039886474609375, -0.03387451171875, -0.023284912109375, -0.048187255859375, -0.005779266357421875, -0.03326416015625, 0.04168701171875, 0.0125732421875, 0.0038394927978515625, -0.01409149169921875, 0.01303863525390625, 0.01415252685546875, 0.06939697265625, 0.0009570121765136719, 0.01007080078125, -0.0088958740234375, -0.020721435546875, 0.01541900634765625, -0.031768798828125, -0.0228118896484375, -0.0225982666015625, -0.01364898681640625, 0.04522705078125, -0.0268096923828125, 0.0189361572265625, -0.021087646484375, 0.01320648193359375, 0.011932373046875, -0.018646240234375, 0.005039215087890625, 0.045867919921875, -0.03912353515625, 0.01479339599609375, -0.0173187255859375, -0.00785064697265625, 0.04766845703125, 0.04986572265625, -0.014739990234375, 0.0025539398193359375, 0.03887939453125, 0.0023288726806640625, -0.05078125, -0.08917236328125, 0.0018510818481445312, 0.0498046875, -0.0286407470703125, 0.037109375, 0.03558349609375, -0.030426025390625, 0.06048583984375, 0.0162811279296875, -0.033721923828125, 0.0159912109375, 0.03619384765625, 0.0308990478515625, 0.0247039794921875, -0.0174407958984375, 0.0089263916015625, 0.01343536376953125, 0.01959228515625, -0.0007252693176269531, -0.00963592529296875, -0.0012912750244140625, 0.0211639404296875, -0.00569915771484375, 0.010894775390625, -0.0172882080078125, -0.040863037109375, 0.0057373046875, 0.002651214599609375, 0.0165557861328125, 0.01201629638671875, 0.007587432861328125, 0.0248565673828125, 0.0169830322265625, -0.0210113525390625, -0.01236724853515625, 0.0235443115234375, 0.031829833984375, 0.01403045654296875, 0.01085662841796875, -0.01406097412109375, -0.053802490234375, -0.021759033203125, 0.09368896484375, 0.026580810546875, -0.047393798828125, 0.0175323486328125, -0.0240325927734375, 0.041595458984375, 0.0015096664428710938, -0.00444793701171875, 0.03173828125, 0.06890869140625, -0.02001953125, -0.0044708251953125, 0.0014123916625976562, 0.04278564453125, -0.038177490234375, -0.01273345947265625, 0.01279449462890625, -0.01007080078125, 0.0118255615234375, 0.06976318359375, 0.01390838623046875, 0.0423583984375, -0.02703857421875, 0.0911865234375, 0.0791015625, -0.01207733154296875, -0.0033359527587890625, 0.01763916015625, -0.00021946430206298828, -0.028289794921875, -0.03070068359375, -0.042236328125, -0.0275726318359375, -0.006450653076171875, 0.055816650390625, -0.05194091796875, -0.0288848876953125, 0.053802490234375, -0.01146697998046875, 0.00384521484375, 0.021820068359375, 0.01947021484375, -0.0158538818359375, -0.01197052001953125, -0.0124664306640625, 0.00910186767578125, -0.01256561279296875, 0.0055999755859375, -0.0144500732421875, -0.00556182861328125, 0.0406494140625, -0.0018014907836914062, 0.03668212890625, -0.0010547637939453125, -0.027191162109375, 0.02484130859375, -0.00800323486328125, -0.005828857421875, -0.09075927734375, -0.030609130859375, -0.0168609619140625, 0.0265655517578125, 0.04351806640625, -0.0275726318359375, 0.011627197265625, -0.031707763671875, 0.0195465087890625, -0.057830810546875, 0.00629425048828125, 0.05364990234375, 0.035400390625, -0.04351806640625, -0.004817962646484375, -0.044830322265625, -0.0164031982421875, -0.07855224609375, -0.06573486328125, -0.034027099609375, 0.033447265625, -0.0018873214721679688, -0.0013990402221679688, -0.0134124755859375, -0.035247802734375, -0.0002689361572265625, 0.024322509765625, 0.017608642578125, -0.00004696846008300781, 0.00275421142578125, -0.0243682861328125, 0.00998687744140625, 0.01983642578125, 0.01035308837890625, -0.03009033203125, 0.007434844970703125, -0.023529052734375, 0.002788543701171875, -0.0535888671875, -0.017120361328125, -0.0010080337524414062, 0.030181884765625, 0.0279388427734375, 0.0080413818359375, -0.0090179443359375, 0.0172882080078125, -0.041748046875, -0.006839752197265625, -0.0199127197265625, 0.0318603515625, -0.053466796875, -0.006465911865234375, 0.019775390625, -0.031768798828125, 0.0169525146484375, -0.024444580078125, -0.01355743408203125, 0.0260162353515625, -0.038360595703125, 0.031982421875, 0.0272369384765625, -0.038818359375, 0.0285491943359375, 0.079345703125, 0.0146636962890625, 0.02728271484375, 0.0169525146484375, -0.006481170654296875, 0.01047515869140625, 0.022613525390625, -0.038970947265625, -0.0142669677734375, 0.046783447265625, 0.024261474609375, -0.019073486328125, 0.050537109375, -0.021026611328125, 0.0321044921875, 0.058807373046875, 0.0701904296875, -0.09259033203125, 0.00972747802734375, -0.00797271728515625, -0.0347900390625, 0.035736083984375, -0.013916015625, -0.0011844635009765625, -0.02777099609375, 0.006622314453125, 0.0279998779296875, -0.01580810546875, -0.0016851425170898438, 0.004802703857421875, 0.004688262939453125, -0.0131988525390625, 0.050201416015625, 0.0188751220703125, -0.051513671875, 0.0236968994140625, 0.0482177734375, 0.00511932373046875, -0.034637451171875, -0.004055023193359375, 0.0250701904296875, -0.01467132568359375, -0.06475830078125, 0.031463623046875, -0.02801513671875, 0.004940032958984375, -0.004337310791015625, 0.0216522216796875, 0.0214080810546875, 0.02606201171875, 0.00678253173828125, -0.0246734619140625, 0.00145721435546875, 0.032257080078125, 0.02032470703125, -0.0382080078125, 0.0197906494140625, 0.0163421630859375, -0.0280303955078125, 0.0244140625, 0.01055908203125, -0.055511474609375, -0.031005859375, -0.011962890625, 0.09942626953125, -0.0235748291015625, -0.01537322998046875, 0.0305023193359375, 0.025390625, -0.0249176025390625, -0.00576019287109375, 0.0005450248718261719, -0.017852783203125, -0.0170440673828125, -0.0025959014892578125, -0.0297393798828125, 0.0283203125, 0.0019044876098632812, -0.01287078857421875, 0.11114501953125, -0.01248931884765625, -0.03155517578125, 0.0224151611328125, 0.0750732421875, -0.02960205078125, 0.0621337890625, -0.0262908935546875, 0.0288238525390625, -0.00690460205078125, 0.0110626220703125, -0.030426025390625, -0.000766754150390625, -0.0010614395141601562, 0.0311279296875, 0.0244903564453125, 0.0032100677490234375, -0.018951416015625, -0.0244140625, 0.0177001953125, 0.02459716796875, 0.0004627704620361328, 0.03173828125, -0.010162353515625, 0.004749298095703125, 0.0176544189453125, -0.0126190185546875, 0.038909912109375, -0.0181121826171875, -0.01270294189453125, 0.0160064697265625, 0.0294036865234375, 0.034332275390625, 0.01343536376953125, -0.035003662109375, -0.0214996337890625, 0.0170745849609375, 0.0188751220703125, -0.00853729248046875, 0.0090789794921875, 0.04962158203125, 0.039276123046875, -0.03814697265625, 0.0263519287109375, -0.050689697265625, 0.058349609375, 0.0012578964233398438, 0.0233001708984375, -0.027069091796875, 0.0065765380859375, 0.0399169921875, -0.05535888671875, -0.00551605224609375, 0.0262908935546875, -0.04888916015625, 0.01324462890625, 0.01641845703125, 0.02642822265625, -0.025787353515625, 0.002475738525390625, 0.048675537109375, 0.0248870849609375, -0.014801025390625, -0.0865478515625, 0.0022487640380859375, -0.01593017578125, 0.018798828125, 0.001918792724609375, -0.033233642578125, -0.0301971435546875, 0.0256195068359375, 0.0017042160034179688, 0.003681182861328125, 0.002155303955078125, -0.0003917217254638672, -0.007549285888671875, 0.006443023681640625, -0.00794219970703125, 0.0302276611328125, -0.00726318359375, -0.017791748046875, 0.00753021240234375, 0.00910186767578125, 0.00959014892578125, -0.0186004638671875, 0.01861572265625, 0.01349639892578125, 0.01654052734375, 0.045928955078125, -0.016693115234375, -0.0325927734375, 0.00926971435546875, -0.07763671875, -0.031219482421875, 0.0200347900390625, 0.03924560546875, -0.0003228187561035156, 0.01479339599609375, 0.03607177734375, 0.034210205078125, -0.0003952980041503906, 0.058807373046875, -0.0011396408081054688, -0.06036376953125, -0.0092926025390625, -0.0516357421875, -0.0177154541015625, -0.0028285980224609375, 0.0197296142578125, 0.08056640625, -0.0635986328125, -0.0226287841796875, 0.041748046875, -0.0147247314453125, -0.01922607421875, 0.0289306640625, -0.0428466796875, 0.039581298828125, -0.029022216796875, -0.10028076171875, -0.0269927978515625, -0.0204010009765625, -0.03350830078125, 0.021148681640625, 0.042022705078125, -0.0184173583984375, 0.0109710693359375, -0.01206207275390625, -0.00490570068359375, 0.025299072265625, -0.006465911865234375, -0.0196075439453125, 0.0008916854858398438, 0.022186279296875, -0.0281219482421875, -0.032470703125, -0.01342010498046875, 0.00995635986328125, 0.0182952880859375, 0.01342010498046875, 0.041351318359375, 0.001987457275390625, 0.016143798828125, -0.029449462890625, -0.0031604766845703125, 0.013153076171875, 0.001827239990234375, -0.080810546875, 0.05078125, 0.03216552734375, -0.006992340087890625, -0.01018524169921875, 0.0186767578125, 0.0173187255859375, -0.0036163330078125, 0.004482269287109375, -0.0193634033203125, 0.026519775390625, 0.00870513916015625, 0.0155792236328125, -0.02685546875, 0.0241851806640625, -0.0035037994384765625, -0.045989990234375, 0.040985107421875, -0.0227203369140625, 0.005786895751953125, 0.04864501953125, 0.0121002197265625, 0.00797271728515625, 0.0104522705078125, -0.0298004150390625, 0.0086669921875, 0.022491455078125, -0.003795623779296875, -0.048248291015625, 0.03314208984375, -0.00896453857421875, -0.0165252685546875, 0.03369140625, 0.0234527587890625, 0.023162841796875, -0.0579833984375, 0.024505615234375, 0.048187255859375, 0.0533447265625, -0.0038585662841796875, 0.0228271484375, 0.0164947509765625, -0.0081939697265625, 0.0020160675048828125, 0.001506805419921875, -0.0214691162109375, -0.01224517822265625, -0.004913330078125, -0.01110076904296875, 0.006565093994140625, -0.0430908203125, -0.0042724609375, 0.0143890380859375, 0.005279541015625, 0.017578125, -0.043243408203125, 0.06732177734375, -0.0209808349609375, -0.033905029296875, 0.00400543212890625, 0.025115966796875, 0.0276641845703125, 0.079345703125, -0.056060791015625, 0.0023288726806640625, 0.00916290283203125, -0.0159454345703125, 0.0007119178771972656, 0.027618408203125, 0.031768798828125, -0.029754638671875, 0.0205535888671875, 0.019378662109375, 0.0230865478515625, 0.06903076171875, -0.00445556640625, -0.00972747802734375, -0.017669677734375, 0.0002942085266113281, -0.0258636474609375, -0.039215087890625, 0.040924072265625, -0.0638427734375, -0.0694580078125, -0.0168609619140625, -0.00896453857421875, -0.0081024169921875, -0.047515869140625, -0.07623291015625, 0.08477783203125, -0.0255584716796875, -0.038360595703125, -0.01418304443359375, -0.009490966796875, 0.00901031494140625, -0.01340484619140625, -0.006866455078125, -0.006931304931640625, -0.040863037109375, -0.0019006729125976562, -0.0143280029296875, 0.040618896484375, 0.01299285888671875, -0.01702880859375, -0.01190185546875, -0.01512908935546875, -0.00911712646484375, -0.002574920654296875, 0.0294189453125, 0.007904052734375, 0.0013837814331054688, 0.0379638671875, -0.031341552734375, -0.01366424560546875, -0.024871826171875, -0.0301971435546875, 0.00885772705078125, 0.016693115234375, -0.0303955078125, -0.025848388671875, 0.004924774169921875, 0.05120849609375, -0.005733489990234375, 0.002780914306640625, -0.00839996337890625, -0.0401611328125, -0.036346435546875, 0.01128387451171875, 0.0087890625, -0.036376953125, 0.0146026611328125, 0.012939453125, -0.044036865234375, -0.01617431640625, 0.0166015625, -0.05621337890625, 0.0118408203125, -0.0209197998046875, -0.013916015625, -0.0732421875, 0.017669677734375, 0.058441162109375, -0.035675048828125, 0.026519775390625, -0.021087646484375, 0.004993438720703125, 0.048492431640625, -0.0152130126953125, -0.024078369140625, 0.0145111083984375, 0.003997802734375, 0.01068115234375, -0.00518035888671875, 0.0200958251953125, 0.0095367431640625, 0.0108642578125, -0.02850341796875, 0.03515625, 0.005985260009765625, 0.04278564453125, -0.029876708984375, 0.030487060546875, 0.0176849365234375, 0.036895751953125, 0.016448974609375, 0.0038604736328125, -0.0225067138671875, 0.06591796875, -0.0297698974609375, -0.0127716064453125, -0.00922393798828125, -0.0311279296875, 0.029266357421875, -0.0135345458984375, 0.018218994140625, 0.0153961181640625, -0.02001953125, -0.0232086181640625, -0.036865234375, 0.00046563148498535156 ]
9af6fb81328dcd3d718dc89fe48b47cad19bff06
Wordpress Stackexchange Q: Which to use to execute code during the saving of a plugin settings page? I'm writing a plugin with a settings/option page and I want some php code to be executed whenever someone saves the settings on that page and that page alone. Which actions do I need to hook into to accomplish this? A: If you're using Settings API, then you should use a sanitize callback: register_setting( $option_group, $option_name, $sanitize_callback ); The myth is that the $sanitize_callback actually is a filter for your options when it's saved in the database. This is the place where you can do something with your custom code. This is the sample code: register_setting( 'wpse38180', 'wpse38180', 'sanitize_wpse38180' ); function sanitize_wpse38180( $options ) { // Do anything you want return $options; }
Q: Which to use to execute code during the saving of a plugin settings page? I'm writing a plugin with a settings/option page and I want some php code to be executed whenever someone saves the settings on that page and that page alone. Which actions do I need to hook into to accomplish this? A: If you're using Settings API, then you should use a sanitize callback: register_setting( $option_group, $option_name, $sanitize_callback ); The myth is that the $sanitize_callback actually is a filter for your options when it's saved in the database. This is the place where you can do something with your custom code. This is the sample code: register_setting( 'wpse38180', 'wpse38180', 'sanitize_wpse38180' ); function sanitize_wpse38180( $options ) { // Do anything you want return $options; } A: There is a pre-update filter, applied just after the sanitize filter. It's called pre_update_option_optionname and takes the new and old values of the option as parameters. Use it like this: register_setting( $my_option_group , $my_option_name ); // 10 is the filter priority, 2 is the number of arguments add_filter( 'pre_update_option_' . $my_option_name , 'my_callback', 10, 2 ); function my_callback( $newvalue, $oldvalue ) { // $newvalue has already been sanitized, but not yet saved // do whatever you like here return 'filtered value'; } The benefit of using this is that the intent is clearer, and you don't have to manually get the old option value (if you need it) since it's passed in for you. This filter is specific to a field, so if you want it to run once when saving options, just add it to only one field.
wordpress
{ "language": "en", "length": 268, "provenance": "stackexchange_00019.jsonl.gz:415875", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38180" }
[ 0.03173828125, 0.014495849609375, -0.043975830078125, -0.0455322265625, 0.0233612060546875, -0.03594970703125, 0.00714111328125, 0.004367828369140625, 0.0133056640625, 0.011199951171875, -0.0218658447265625, 0.0250396728515625, -0.023834228515625, -0.02020263671875, 0.0120391845703125, -0.0234832763671875, 0.02777099609375, 0.004405975341796875, 0.0289154052734375, -0.00788116455078125, -0.0180206298828125, 0.01549530029296875, 0.020721435546875, 0.0389404296875, 0.02410888671875, -0.07293701171875, 0.091064453125, 0.0122833251953125, 0.01067352294921875, -0.01039886474609375, 0.017730712890625, -0.01364898681640625, 0.0224456787109375, 0.034454345703125, -0.02099609375, 0.059112548828125, 0.021331787109375, 0.0033054351806640625, 0.0026035308837890625, 0.044036865234375, 0.05059814453125, -0.0194244384765625, 0.0201568603515625, 0.035125732421875, -0.004119873046875, -0.04248046875, 0.0802001953125, -0.017669677734375, -0.00734710693359375, -0.004169464111328125, 0.0220184326171875, -0.044952392578125, 0.03326416015625, -0.00713348388671875, -0.0237579345703125, -0.0193634033203125, -0.0460205078125, 0.04034423828125, 0.0233917236328125, 0.02996826171875, -0.01139068603515625, -0.0173492431640625, -0.00970458984375, -0.0362548828125, 0.054840087890625, -0.02191162109375, -0.023773193359375, 0.053863525390625, -0.040924072265625, 0.039703369140625, 0.024261474609375, -0.04412841796875, 0.006206512451171875, -0.0257568359375, -0.00867462158203125, -0.0184783935546875, 0.0295257568359375, -0.011627197265625, -0.01003265380859375, 0.0103302001953125, 0.022125244140625, -0.0124053955078125, 0.027862548828125, -0.0272979736328125, 0.0126800537109375, 0.00888824462890625, -0.0022449493408203125, -0.01270294189453125, -0.01334381103515625, -0.0095977783203125, -0.0205841064453125, 0.00341033935546875, 0.043548583984375, -0.0245208740234375, -0.0499267578125, -0.0179595947265625, 0.006927490234375, 0.04901123046875, -0.024322509765625, 0.00931549072265625, 0.0271148681640625, -0.045318603515625, 0.0126495361328125, -0.0246124267578125, 0.00554656982421875, 0.04473876953125, 0.026519775390625, -0.056732177734375, -0.00800323486328125, -0.01380157470703125, -0.0141754150390625, -0.0215606689453125, 0.0027065277099609375, -0.034454345703125, 0.00005370378494262695, -0.036224365234375, -0.045806884765625, 0.01568603515625, 0.020721435546875, -0.07000732421875, -0.00019085407257080078, 0.0076446533203125, -0.006256103515625, -0.0226287841796875, -0.02301025390625, -0.036041259765625, -0.0194091796875, -0.00823974609375, -0.0184173583984375, 0.00315093994140625, -0.02203369140625, 0.007656097412109375, 0.0511474609375, 0.039703369140625, 0.008331298828125, -0.01386260986328125, 0.039947509765625, -0.006824493408203125, -0.0219573974609375, 0.0243682861328125, 0.0189056396484375, -0.0289154052734375, -0.034423828125, -0.01885986328125, 0.024322509765625, -0.009765625, 0.0077056884765625, 0.056549072265625, 0.0208740234375, -0.017242431640625, 0.0489501953125, 0.0013666152954101562, 0.008209228515625, -0.013580322265625, -0.00037026405334472656, 0.0005698204040527344, -0.024261474609375, 0.0039215087890625, 0.01129913330078125, 0.0133056640625, -0.0313720703125, -0.010772705078125, 0.005527496337890625, -0.0019741058349609375, 0.00859832763671875, 0.0011844635009765625, 0.007556915283203125, 0.0135955810546875, 0.007595062255859375, 0.01122283935546875, -0.0026950836181640625, 0.015167236328125, -0.0283203125, 0.0196380615234375, 0.00923919677734375, 0.021331787109375, -0.027191162109375, -0.01493072509765625, 0.04010009765625, -0.00943756103515625, -0.026885986328125, -0.0283355712890625, 0.02642822265625, -0.0146026611328125, -0.031982421875, 0.0176849365234375, -0.0007205009460449219, 0.051361083984375, 0.0246429443359375, 0.024383544921875, -0.00713348388671875, -0.0002371072769165039, -0.007617950439453125, 0.0128631591796875, 0.0226898193359375, -0.022613525390625, -0.00203704833984375, -0.0028514862060546875, -0.002140045166015625, -0.0294342041015625, -0.02435302734375, -0.0018291473388671875, 0.00839996337890625, 0.0099639892578125, -0.058624267578125, 0.003917694091796875, -0.033843994140625, 0.0220947265625, 0.0136566162109375, 0.018707275390625, 0.00620269775390625, -0.0042724609375, -0.005809783935546875, -0.01221466064453125, -0.034942626953125, 0.007659912109375, -0.01372528076171875, 0.0711669921875, 0.0026950836181640625, 0.038055419921875, 0.03533935546875, -0.06060791015625, 0.0296173095703125, -0.01349639892578125, 0.00959014892578125, -0.0292816162109375, -0.003917694091796875, -0.02117919921875, 0.006610870361328125, -0.023162841796875, 0.048370361328125, 0.03643798828125, 0.019805908203125, 0.00533294677734375, -0.033935546875, -0.0013332366943359375, -0.04888916015625, -0.086181640625, -0.009246826171875, 0.06744384765625, 0.0227203369140625, 0.01432037353515625, -0.005207061767578125, 0.0164794921875, 0.016815185546875, -0.00644683837890625, 0.029510498046875, -0.0027217864990234375, 0.0548095703125, 0.034698486328125, -0.0073089599609375, -0.040008544921875, 0.0173492431640625, -0.06072998046875, 0.02734375, 0.009002685546875, -0.06304931640625, -0.027435302734375, 0.043365478515625, -0.0284576416015625, -0.005397796630859375, -0.04638671875, 0.025177001953125, -0.040283203125, 0.053314208984375, -0.041656494140625, 0.006183624267578125, -0.01416015625, -0.002567291259765625, -0.0013265609741210938, 0.022796630859375, -0.06658935546875, -0.0069122314453125, 0.01494598388671875, 0.036590576171875, -0.048828125, -0.04376220703125, 0.0005130767822265625, 0.00012421607971191406, 0.0121002197265625, 0.0021152496337890625, 0.039642333984375, -0.0396728515625, -0.02386474609375, -0.00434112548828125, -0.0237579345703125, -0.0159759521484375, 0.006671905517578125, -0.030517578125, -0.03680419921875, 0.0033779144287109375, 0.0166168212890625, -0.044921875, 0.02764892578125, 0.00725555419921875, -0.0279693603515625, 0.0305328369140625, -0.011474609375, 0.0171051025390625, -0.0037784576416015625, 0.044219970703125, 0.053619384765625, 0.0001811981201171875, -0.00467681884765625, 0.0166015625, -0.03948974609375, 0.02923583984375, 0.013885498046875, 0.01102447509765625, -0.01537322998046875, -0.049957275390625, 0.00519561767578125, 0.0160369873046875, 0.05438232421875, -0.040252685546875, -0.05853271484375, -0.0308837890625, 0.01361083984375, -0.071044921875, -0.0478515625, 0.023193359375, -0.068603515625, 0.051910400390625, -0.04681396484375, -0.013031005859375, -0.028289794921875, -0.0206451416015625, 0.0120391845703125, -0.034881591796875, -0.0258331298828125, -0.0288848876953125, -0.04022216796875, -0.02288818359375, 0.0236663818359375, -0.0001684427261352539, -0.003925323486328125, -0.004291534423828125, 0.0616455078125, -0.01416778564453125, -0.07537841796875, -0.0322265625, -0.064697265625, -0.0095672607421875, 0.004634857177734375, -0.004032135009765625, -0.005615234375, 0.0171966552734375, -0.0034580230712890625, -0.0023040771484375, 0.019439697265625, -0.01282501220703125, -0.010406494140625, 0.00811767578125, -0.0166168212890625, 0.00351715087890625, 0.0165557861328125, -0.01425933837890625, 0.00669097900390625, 0.0016841888427734375, -0.050323486328125, -0.02581787109375, -0.01067352294921875, -0.047088623046875, -0.0023651123046875, 0.027862548828125, 0.0005893707275390625, -0.01432037353515625, 0.01214599609375, 0.018157958984375, 0.01358795166015625, 0.01666259765625, 0.019805908203125, -0.018218994140625, -0.0089263916015625, -0.0045013427734375, -0.00954437255859375, 0.03240966796875, -0.0091094970703125, -0.0343017578125, -0.0012731552124023438, 0.0117950439453125, 0.0031375885009765625, -0.0240478515625, -0.0477294921875, -0.008758544921875, 0.039886474609375, 0.01094818115234375, 0.049774169921875, -0.006999969482421875, -0.02703857421875, -0.0109405517578125, 0.08270263671875, -0.0604248046875, -0.0047607421875, -0.004291534423828125, 0.0131378173828125, -0.0177764892578125, -0.0272674560546875, -0.0638427734375, -0.00884246826171875, -0.09765625, 0.006237030029296875, -0.01690673828125, -0.03680419921875, 0.0181732177734375, -0.0309295654296875, -0.0179443359375, -0.056549072265625, 0.0252838134765625, -0.0188446044921875, -0.00710296630859375, -0.00423431396484375, -0.01255035400390625, -0.04443359375, 0.003253936767578125, -0.0177764892578125, -0.1090087890625, -0.01153564453125, -0.030364990234375, 0.07855224609375, 0.04248046875, -0.055633544921875, 0.002040863037109375, 0.05328369140625, 0.01343536376953125, 0.0259246826171875, 0.0218048095703125, 0.0272979736328125, -0.030303955078125, -0.034759521484375, 0.033538818359375, -0.057159423828125, 0.0128936767578125, 0.047210693359375, -0.04681396484375, 0.035003662109375, -0.00771331787109375, -0.0050811767578125, 0.048980712890625, -0.070556640625, -0.0284576416015625, -0.0158843994140625, -0.045806884765625, -0.02801513671875, -0.006481170654296875, -0.0146331787109375, 0.0011768341064453125, -0.04022216796875, 0.04193115234375, -0.057769775390625, 0.00039696693420410156, 0.00836944580078125, 0.098876953125, 0.007537841796875, 0.0151824951171875, -0.014556884765625, -0.040435791015625, 0.00836944580078125, 0.0089111328125, 0.0206298828125, 0.006984710693359375, -0.01611328125, 0.0202484130859375, -0.008148193359375, 0.01154327392578125, -0.07183837890625, 0.0640869140625, -0.00667572021484375, 0.0098876953125, -0.0005431175231933594, -0.033935546875, 0.055511474609375, 0.035003662109375, -0.006450653076171875, -0.006114959716796875, 0.00951385498046875, -0.006061553955078125, -0.04620361328125, 0.0377197265625, 0.004913330078125, -0.0083465576171875, 0.00103759765625, 0.012786865234375, 0.037628173828125, 0.050384521484375, -0.022308349609375, 0.01534271240234375, -0.003917694091796875, 0.003856658935546875, 0.01739501953125, 0.032989501953125, 0.01369476318359375, 0.046295166015625, -0.0140380859375, -0.005859375, -0.0118560791015625, 0.0014123916625976562, -0.0155487060546875, -0.00583648681640625, -0.0234375, -0.048583984375, 0.0001461505889892578, -0.0005664825439453125, 0.00405120849609375, -0.0052337646484375, 0.029632568359375, 0.0269622802734375, -0.03973388671875, 0.006404876708984375, -0.00887298583984375, 0.0133514404296875, -0.04632568359375, -0.03033447265625, 0.002292633056640625, -0.024322509765625, -0.00753021240234375, 0.019012451171875, -0.01837158203125, 0.00689697265625, -0.0007996559143066406, 0.05548095703125, 0.05316162109375, -0.043426513671875, 0.01432037353515625, 0.0294342041015625, 0.022796630859375, -0.0838623046875, 0.0023937225341796875, -0.0021991729736328125, 0.019378662109375, -0.019378662109375, -0.0162811279296875, -0.01551055908203125, -0.014892578125, 0.06182861328125, 0.00024068355560302734, -0.046234130859375, 0.02886962890625, -0.0216217041015625, -0.045074462890625, -0.041412353515625, -0.0006618499755859375, 0.0273284912109375, 0.01416778564453125, 0.01282501220703125, 0.0214385986328125, -0.0036106109619140625, 0.0144805908203125, -0.00736236572265625, -0.014892578125, -0.00362396240234375, -0.006988525390625, -0.00965118408203125, -0.03265380859375, -0.007709503173828125, 0.008941650390625, 0.0237579345703125, -0.019256591796875, -0.0270538330078125, 0.029266357421875, -0.04071044921875, 0.0408935546875, -0.0262603759765625, -0.0120849609375, 0.032928466796875, 0.00136566162109375, 0.061798095703125, 0.037078857421875, -0.0557861328125, 0.01007843017578125, -0.02288818359375, 0.00621795654296875, 0.0119171142578125, -0.028656005859375, -0.035064697265625, -0.04193115234375, -0.01335906982421875, 0.034423828125, -0.037506103515625, -0.01303863525390625, 0.0028743743896484375, 0.023773193359375, -0.01349639892578125, 0.0677490234375, -0.038299560546875, 0.0863037109375, -0.0098724365234375, 0.05718994140625, -0.01204681396484375, 0.0238494873046875, -0.0215606689453125, 0.0128173828125, -0.01090240478515625, 0.01335906982421875, -0.010101318359375, -0.02294921875, 0.02520751953125, 0.039794921875, 0.08441162109375, -0.00783538818359375, 0.038055419921875, 0.0212860107421875, 0.01464080810546875, -0.01398468017578125, -0.014892578125, 0.005462646484375, -0.00251007080078125, 0.059600830078125, -0.0699462890625, -0.048095703125, 0.0254669189453125, 0.0233612060546875, 0.053985595703125, -0.0357666015625, 0.01971435546875, 0.01519012451171875, -0.02740478515625, 0.038055419921875, 0.052032470703125, 0.024688720703125, 0.056365966796875, 0.00028014183044433594, 0.021209716796875, 0.00887298583984375, 0.01036834716796875, -0.039276123046875, 0.00732421875, 0.049713134765625, 0.01367950439453125, -0.01428985595703125, 0.0284576416015625, -0.01751708984375, 0.031158447265625, 0.07977294921875, 0.06640625, -0.12548828125, 0.00921630859375, 0.016998291015625, 0.01213836669921875, 0.033233642578125, 0.0010995864868164062, -0.0238189697265625, -0.045745849609375, 0.05633544921875, -0.046173095703125, -0.01306915283203125, 0.0330810546875, -0.016845703125, -0.032257080078125, -0.009765625, 0.0240936279296875, 0.01419830322265625, 0.00853729248046875, 0.035064697265625, -0.0291595458984375, 0.0089569091796875, -0.005126953125, 0.029693603515625, 0.0234832763671875, -0.032135009765625, -0.0498046875, 0.03253173828125, -0.00617218017578125, -0.04150390625, -0.0294647216796875, -0.0218353271484375, 0.036407470703125, 0.050750732421875, -0.027557373046875, -0.00534820556640625, 0.0020809173583984375, 0.04388427734375, -0.0899658203125, -0.01385498046875, 0.0328369140625, 0.05670166015625, -0.046630859375, 0.047119140625, -0.0189666748046875, -0.01407623291015625, -0.0092010498046875, -0.00982666015625, 0.09124755859375, -0.01386260986328125, -0.0232391357421875, 0.0279083251953125, -0.01119232177734375, -0.018768310546875, -0.02728271484375, 0.0413818359375, -0.053924560546875, -0.040130615234375, -0.006229400634765625, -0.042938232421875, -0.042510986328125, -0.059539794921875, -0.05975341796875, 0.111083984375, -0.0139617919921875, 0.01548004150390625, -0.01369476318359375, 0.051849365234375, -0.0131683349609375, 0.0243682861328125, -0.03485107421875, 0.06927490234375, 0.00887298583984375, 0.019866943359375, -0.05426025390625, -0.0095062255859375, -0.01465606689453125, 0.031890869140625, 0.033355712890625, 0.0167236328125, -0.02166748046875, -0.0008416175842285156, 0.0175323486328125, -0.056060791015625, -0.041717529296875, 0.06732177734375, 0.0020503997802734375, -0.007289886474609375, 0.03955078125, -0.021087646484375, 0.037750244140625, -0.035888671875, 0.0074462890625, 0.0031604766845703125, 0.0002741813659667969, -0.0044403076171875, -0.0168304443359375, 0.042724609375, -0.031524658203125, -0.005527496337890625, 0.010894775390625, 0.0235748291015625, -0.01116180419921875, 0.0241546630859375, 0.00348663330078125, 0.0066375732421875, 0.01336669921875, -0.0200347900390625, 0.0279998779296875, -0.011871337890625, 0.00229644775390625, 0.019744873046875, 0.0034961700439453125, -0.0140533447265625, -0.0013866424560546875, -0.0134429931640625, 0.007793426513671875, 0.00417327880859375, 0.01546478271484375, 0.010711669921875, 0.01444244384765625, -0.0098419189453125, 0.015106201171875, -0.0064239501953125, 0.01519012451171875, -0.01983642578125, -0.0262908935546875, 0.007419586181640625, 0.027557373046875, -0.00025463104248046875, 0.01094818115234375, 0.0226287841796875, -0.054168701171875, 0.01383209228515625, 0.005680084228515625, 0.01213836669921875, 0.0087432861328125, 0.021392822265625, 0.01300811767578125, 0.035247802734375, -0.064208984375, 0.01061248779296875, -0.003139495849609375, -0.001186370849609375, -0.0052337646484375, 0.0144500732421875, 0.00653839111328125, 0.0016651153564453125, -0.0231781005859375, -0.0035495758056640625, -0.04022216796875, 0.061767578125, 0.00691986083984375, 0.03533935546875, -0.046173095703125, -0.039093017578125, 0.006465911865234375, 0.03704833984375, 0.005924224853515625, 0.05242919921875, 0.05841064453125, 0.049591064453125, -0.007747650146484375, 0.00620269775390625, 0.05035400390625, -0.0181121826171875, -0.0289459228515625, -0.00592803955078125, -0.0162506103515625, 0.01276397705078125, -0.01387786865234375, -0.02398681640625, 0.01396942138671875, 0.021575927734375, -0.034423828125, 0.06854248046875, -0.01256561279296875, 0.00209808349609375, 0.023345947265625, -0.01517486572265625, 0.052490234375, 0.00904083251953125, 0.014923095703125, 0.021942138671875, -0.0189666748046875, -0.037994384765625, -0.014190673828125, 0.018035888671875, -0.0216522216796875, 0.051513671875, 0.030548095703125, -0.02386474609375, 0.041839599609375, -0.0094757080078125, 0.0012369155883789062, -0.00751495361328125, 0.01617431640625, -0.0169677734375, -0.0330810546875, -0.035675048828125, -0.0362548828125, 0.080810546875, 0.006439208984375, 0.0706787109375, -0.044158935546875, 0.0418701171875, 0.007198333740234375, 0.001171112060546875, -0.006336212158203125, -0.01331329345703125, 0.0310516357421875, -0.023590087890625, -0.0206146240234375, 0.005279541015625, -0.0149383544921875, 0.056060791015625, -0.00290679931640625, -0.002471923828125, 0.0077362060546875, 0.006977081298828125, 0.0143280029296875, 0.036529541015625, 0.05792236328125, -0.0155181884765625, -0.04339599609375, -0.0304412841796875, 0.006744384765625, 0.0146484375, 0.036865234375, -0.0004911422729492188, 0.00998687744140625, -0.004604339599609375, 0.0194091796875, -0.00493621826171875, 0.0293121337890625, -0.031219482421875, 0.01507568359375, -0.037384033203125, -0.0013360977172851562, -0.012176513671875, -0.01428985595703125, -0.02752685546875, 0.03460693359375, -0.009521484375, 0.007526397705078125, -0.00467681884765625, -0.006641387939453125, 0.01338958740234375, 0.03192138671875, -0.003265380859375, 0.01085662841796875, 0.005413055419921875, 0.0032024383544921875, -0.01959228515625, -0.0426025390625, -0.0257415771484375, -0.0179595947265625, 0.006549835205078125, 0.02593994140625, -0.020843505859375, -0.0391845703125, -0.049560546875, -0.0069580078125, 0.030670166015625, -0.00879669189453125, -0.0394287109375, -0.01190948486328125, -0.0152435302734375, 0.048736572265625, -0.0200958251953125, 0.0147552490234375, -0.0184783935546875, -0.000244140625, -0.0180816650390625, -0.0273895263671875, -0.03057861328125, 0.056640625, -0.0110931396484375, 0.00850677490234375, 0.01325225830078125, -0.0108795166015625, -0.035888671875, 0.059783935546875, -0.006404876708984375, 0.09130859375, -0.01470947265625, -0.004787445068359375, 0.035247802734375, 0.0165863037109375, -0.043304443359375, -0.05841064453125, -0.0012912750244140625, 0.005771636962890625, 0.034271240234375, -0.0226287841796875, 0.0157928466796875, 0.0236358642578125, -0.0211029052734375, -0.05157470703125, 0.061065673828125, -0.017303466796875, -0.02105712890625, -0.052093505859375, 0.0443115234375, 0.0219268798828125, -0.001010894775390625, -0.030975341796875, 0.005794525146484375, -0.016815185546875, 0.002918243408203125, -0.0006575584411621094, 0.024261474609375, 0.0164031982421875, -0.009674072265625, -0.06292724609375, -0.018035888671875, -0.032623291015625, -0.01186370849609375, 0.0022869110107421875, -0.0074310302734375, 0.037353515625, 0.055511474609375, -0.006175994873046875, -0.0013628005981445312, 0.01546478271484375, -0.0236968994140625, -0.0148468017578125, -0.00016701221466064453, -0.02252197265625, 0.0360107421875, 0.096435546875, 0.0738525390625, 0.02618408203125, -0.08135986328125, -0.02508544921875, -0.043914794921875, 0.019989013671875, -0.0147857666015625, -0.0031871795654296875, -0.027557373046875, 0.0092620849609375, -0.01386260986328125, 0.01490020751953125, 0.01219940185546875, 0.0201873779296875, 0.029510498046875, -0.021881103515625, 0.056915283203125, -0.0257110595703125, -0.0118255615234375, -0.0540771484375, 0.0543212890625, -0.0252532958984375, -0.00001615285873413086, 0.0241851806640625, 0.02069091796875, 0.0250244140625, 0.0743408203125, 0.03057861328125, 0.0416259765625, -0.054656982421875, -0.00537872314453125, 0.01515960693359375, 0.031158447265625, -0.03717041015625, -0.02587890625, 0.0009598731994628906, 0.01263427734375, -0.005260467529296875, 0.015899658203125, -0.002735137939453125, 0.039642333984375, 0.00785064697265625, 0.01233673095703125, -0.03106689453125, -0.009246826171875, -0.0325927734375, 0.0048065185546875, 0.032012939453125, -0.0020999908447265625, 0.09210205078125, -0.0112762451171875, 0.01334381103515625, -0.03485107421875, 0.039764404296875, -0.0718994140625, 0.0498046875, 0.01201629638671875, 0.0080108642578125, 0.045135498046875 ]
a4e0013b0727f926e84aa457d8414f2be796f4ac
Wordpress Stackexchange Q: Remove Wordpress.org Meta link In my footer, I have a set of links labeled Meta, it has... Register Log in Entries RSS Comments RSS Wordpress.org How can I remove just the wordpress.org and and comments rss link from the meta links? A: Depending on your theme, they may be hard coded into a sidebar or footer file. If this is the case, you will need to get your hands dirty and edit your theme files. But you can usually remove them by adding a widget, as these items often only show up when no widgets have been added. So go to Appearance -> Widgets and add the widgets that you want in the appropriate sidebar.
Q: Remove Wordpress.org Meta link In my footer, I have a set of links labeled Meta, it has... Register Log in Entries RSS Comments RSS Wordpress.org How can I remove just the wordpress.org and and comments rss link from the meta links? A: Depending on your theme, they may be hard coded into a sidebar or footer file. If this is the case, you will need to get your hands dirty and edit your theme files. But you can usually remove them by adding a widget, as these items often only show up when no widgets have been added. So go to Appearance -> Widgets and add the widgets that you want in the appropriate sidebar. A: I believe those are not generated by the system so you'd have to remove it by editing the theme. If your sure it's in the footer, edit the theme's footer.php by deleting those lines where those links are. In most themes, they are usually in sidebar.php, so if you don't find the links in footer.php, check for sidebar.php. A: Use custom CSS... .widget_meta > ul > li:nth-last-child(1) { display: none; } .widget_meta > ul > li:nth-last-child(2) { display: none; } Look here A: There's a super easy way to remove the wordpress.org link from the Meta widget. Just use: add_filter( 'widget_meta_poweredby', '__return_empty_string' ); and it's gone! A: The answer by Oscar Silván is actually to remove the RSS links. To remove the WordPress link use: .widget_meta > ul > li:nth-last-child(0) { display: none; } The numbers work backwards from the end. I have been trying to solve this problem for a couple of days now, and the answers given in the WordPress forum don't work. Using the plugins suggested to stop the RSS feeds from working, but the links are still displayed. Since WordPress is now being used for static websites and not just blogs it is time they offered this in customization. Anyway it works fine for me now, and I only have the sign-on link for the administrators. I still have "powered by WordPress" at the bottom, but that is fine. A: If you have ever enabled the Meta widget you see a link to WordPress. I know many of us do not want this link to be there. There is a very simple way to remove it. Find a file named default-widgets.php located in /wp-includes folder. Open default-widgets.php and remove the line 299: <li><a href="http://wordpress.org/" title="<?php echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>">WordPress.org</a></li> to get rid of the link. However, with the upgrade you get this link back again and if you want to remove it, you need to follow the same procedure.
wordpress
{ "language": "en", "length": 446, "provenance": "stackexchange_00019.jsonl.gz:415889", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38234" }
[ 0.06158447265625, 0.0163726806640625, 0.0249786376953125, 0.027679443359375, 0.018096923828125, -0.040863037109375, 0.1029052734375, -0.06439208984375, -0.0150604248046875, 0.042236328125, 0.0222320556640625, -0.04119873046875, 0.00589752197265625, -0.0186767578125, -0.026336669921875, -0.03350830078125, 0.03271484375, -0.0009708404541015625, 0.027130126953125, -0.0024700164794921875, 0.01019287109375, 0.032073974609375, 0.02362060546875, 0.04400634765625, 0.025299072265625, -0.0159912109375, 0.1068115234375, -0.0279693603515625, 0.00933837890625, -0.027252197265625, 0.028106689453125, -0.007587432861328125, 0.0205230712890625, 0.0164642333984375, -0.023345947265625, -0.060882568359375, -0.035125732421875, 0.009063720703125, -0.0252838134765625, 0.0126495361328125, 0.018096923828125, -0.01082611083984375, -0.01153564453125, -0.01277923583984375, -0.01045989990234375, -0.01751708984375, 0.0170440673828125, -0.03228759765625, 0.0206146240234375, -0.038787841796875, -0.004108428955078125, 0.01059722900390625, 0.010833740234375, -0.0262908935546875, -0.0232696533203125, -0.01629638671875, 0.00036716461181640625, 0.02398681640625, 0.0013990402221679688, -0.0298309326171875, -0.0101470947265625, 0.044219970703125, 0.007476806640625, 0.05169677734375, -0.0343017578125, -0.0080413818359375, -0.046600341796875, 0.027496337890625, -0.02752685546875, -0.0413818359375, 0.01087188720703125, -0.018707275390625, -0.006855010986328125, 0.0048980712890625, 0.01088714599609375, -0.0120086669921875, -0.0108642578125, -0.01383209228515625, 0.01436614990234375, 0.020477294921875, 0.011749267578125, -0.0276031494140625, -0.0511474609375, 0.0018644332885742188, 0.029754638671875, 0.0391845703125, -0.010345458984375, -0.036285400390625, -0.05548095703125, 0.00890350341796875, -0.030242919921875, -0.0657958984375, -0.0232391357421875, 0.0224761962890625, -0.0258026123046875, 0.022308349609375, 0.0172271728515625, 0.0645751953125, -0.0299530029296875, -0.033294677734375, -0.0294647216796875, 0.0024471282958984375, -0.059051513671875, -0.01611328125, -0.0194854736328125, 0.0164031982421875, -0.0089263916015625, 0.0222015380859375, 0.037628173828125, 0.049896240234375, 0.019744873046875, -0.01291656494140625, -0.020233154296875, -0.01373291015625, 0.0014734268188476562, 0.012176513671875, -0.03900146484375, 0.035675048828125, -0.00597381591796875, 0.0330810546875, -0.0013074874877929688, 0.040374755859375, 0.00797271728515625, -0.04229736328125, -0.00199127197265625, -0.01360321044921875, -0.030120849609375, -0.0247955322265625, -0.043487548828125, 0.02337646484375, -0.033935546875, 0.0189666748046875, 0.048187255859375, 0.040313720703125, -0.00884246826171875, -0.0296478271484375, 0.0396728515625, -0.01432037353515625, -0.00864410400390625, 0.037078857421875, -0.014984130859375, -0.06390380859375, -0.01806640625, -0.009124755859375, -0.017852783203125, 0.01428985595703125, 0.003696441650390625, 0.006381988525390625, 0.01300048828125, -0.0081329345703125, -0.06396484375, -0.016754150390625, 0.052947998046875, 0.003997802734375, -0.0010051727294921875, -0.04852294921875, 0.060089111328125, -0.055999755859375, 0.0177154541015625, -0.061614990234375, -0.0161590576171875, -0.004299163818359375, 0.0203704833984375, -0.01334381103515625, -0.042266845703125, 0.0253143310546875, -0.030853271484375, -0.0062255859375, 0.0191497802734375, 0.037200927734375, -0.00394439697265625, -0.05438232421875, -0.0267486572265625, 0.01654052734375, -0.0013437271118164062, 0.0308380126953125, 0.005077362060546875, 0.031646728515625, -0.032745361328125, 0.02716064453125, 0.003238677978515625, -0.051605224609375, -0.0026149749755859375, 0.006900787353515625, -0.05267333984375, 0.0203094482421875, 0.0150299072265625, 0.065673828125, 0.019439697265625, 0.0214080810546875, 0.07763671875, -0.0171051025390625, 0.01352691650390625, -0.035552978515625, 0.019287109375, -0.0281982421875, 0.01220703125, -0.0078125, 0.0014944076538085938, 0.0016393661499023438, 0.0020313262939453125, 0.0281219482421875, -0.0224609375, 0.0321044921875, -0.07122802734375, 0.0491943359375, -0.040557861328125, 0.059417724609375, -0.024200439453125, 0.01004791259765625, 0.01328277587890625, -0.0249786376953125, -0.01531219482421875, -0.00390625, -0.01043701171875, -0.01090240478515625, 0.0212860107421875, -0.006099700927734375, 0.0016384124755859375, -0.01020050048828125, -0.0034542083740234375, -0.0004239082336425781, -0.01922607421875, 0.035400390625, 0.043670654296875, -0.03131103515625, -0.020263671875, -0.051513671875, 0.001087188720703125, 0.00014674663543701172, -0.07623291015625, 0.050079345703125, 0.01593017578125, 0.01238250732421875, 0.00992584228515625, 0.03436279296875, 0.03643798828125, -0.0261688232421875, -0.020111083984375, 0.00235748291015625, 0.03704833984375, 0.038299560546875, 0.0151214599609375, 0.01580810546875, 0.020599365234375, -0.0345458984375, 0.02703857421875, -0.033905029296875, 0.0231170654296875, 0.0325927734375, 0.0102081298828125, 0.00330352783203125, 0.01232147216796875, 0.0126953125, 0.0012645721435546875, 0.01534271240234375, -0.005794525146484375, -0.034149169921875, 0.01146697998046875, 0.015228271484375, 0.00643157958984375, 0.03131103515625, -0.028656005859375, 0.0137786865234375, 0.0205078125, 0.0015611648559570312, 0.0557861328125, 0.0565185546875, -0.00908660888671875, -0.0291900634765625, 0.0159149169921875, 0.056976318359375, -0.01641845703125, 0.048797607421875, 0.0697021484375, -0.029052734375, -0.00223541259765625, -0.0323486328125, -0.0078582763671875, 0.025848388671875, -0.00731658935546875, 0.009735107421875, -0.00955963134765625, -0.00395965576171875, -0.02264404296875, -0.04541015625, 0.01922607421875, 0.017608642578125, 0.0095977783203125, 0.0016489028930664062, 0.0283966064453125, -0.006748199462890625, -0.00052642822265625, 0.0008368492126464844, 0.024932861328125, -0.032196044921875, 0.047393798828125, -0.03875732421875, 0.0287017822265625, -0.01157379150390625, 0.054046630859375, 0.05364990234375, -0.01342010498046875, -0.0035858154296875, 0.00308990478515625, -0.006641387939453125, -0.021636962890625, 0.002574920654296875, -0.00048351287841796875, 0.0164947509765625, -0.05914306640625, 0.0205078125, -0.016845703125, -0.0416259765625, -0.0157318115234375, -0.0293426513671875, -0.02239990234375, -0.032745361328125, -0.08587646484375, -0.01702880859375, 0.040771484375, 0.00978851318359375, -0.037353515625, 0.030517578125, -0.0236968994140625, -0.00914764404296875, 0.04486083984375, -0.0180816650390625, 0.005462646484375, -0.05419921875, -0.08026123046875, -0.058380126953125, -0.07623291015625, 0.0254669189453125, -0.0005412101745605469, 0.0165252685546875, 0.01296234130859375, 0.0156402587890625, 0.010101318359375, -0.023040771484375, 0.0290985107421875, 0.03179931640625, -0.0018873214721679688, -0.00957489013671875, 0.006870269775390625, -0.00574493408203125, 0.0022258758544921875, -0.002422332763671875, 0.0614013671875, 0.044189453125, -0.046630859375, -0.0020732879638671875, 0.0006289482116699219, -0.01444244384765625, 0.0209197998046875, -0.043365478515625, -0.0246124267578125, -0.015869140625, -0.01306915283203125, -0.05621337890625, -0.00647735595703125, 0.00203704833984375, -0.0224761962890625, -0.01103973388671875, 0.00424957275390625, -0.0162811279296875, -0.0233154296875, 0.03228759765625, 0.0200347900390625, 0.031982421875, 0.0665283203125, -0.009307861328125, -0.0352783203125, -0.016326904296875, -0.01160430908203125, -0.037109375, 0.0246429443359375, -0.0140838623046875, 0.030303955078125, -0.0020294189453125, 0.0218658447265625, 0.003498077392578125, 0.0098876953125, -0.038818359375, 0.01316070556640625, 0.04241943359375, -0.0040435791015625, 0.050994873046875, -0.00067138671875, -0.02716064453125, -0.02301025390625, 0.0618896484375, -0.006549835205078125, -0.04107666015625, -0.0172119140625, 0.01126861572265625, -0.0197601318359375, -0.0303497314453125, 0.0322265625, -0.00893402099609375, -0.1038818359375, 0.03131103515625, -0.007354736328125, -0.007137298583984375, -0.017059326171875, 0.0217132568359375, -0.039581298828125, -0.052978515625, 0.01277923583984375, -0.007656097412109375, -0.0120391845703125, 0.0262603759765625, -0.0369873046875, 0.0100555419921875, -0.01837158203125, -0.023284912109375, -0.0251007080078125, -0.00563812255859375, -0.034820556640625, 0.042510986328125, 0.023590087890625, -0.0113677978515625, -0.004299163818359375, 0.023193359375, -0.04443359375, -0.0257415771484375, -0.003574371337890625, 0.004505157470703125, -0.01195526123046875, 0.04095458984375, 0.001346588134765625, -0.0083465576171875, -0.007129669189453125, -0.0013093948364257812, -0.025604248046875, 0.04083251953125, -0.004215240478515625, 0.0062255859375, 0.0162811279296875, -0.015838623046875, -0.01557159423828125, -0.040374755859375, -0.01030731201171875, 0.0002491474151611328, 0.015167236328125, -0.01605224609375, -0.027008056640625, -0.001708984375, 0.006893157958984375, -0.017120361328125, -0.03326416015625, 0.0271453857421875, 0.0032901763916015625, 0.0269622802734375, -0.009033203125, -0.03955078125, 0.01641845703125, 0.01540374755859375, -0.01320648193359375, 0.059417724609375, 0.033721923828125, 0.01428985595703125, 0.0212249755859375, -0.0281524658203125, 0.04022216796875, -0.037078857421875, 0.06988525390625, -0.01111602783203125, -0.01312255859375, 0.048675537109375, -0.0143890380859375, -0.0210418701171875, 0.0042877197265625, 0.0310211181640625, -0.01361083984375, 0.032806396484375, -0.0185089111328125, 0.03924560546875, -0.045745849609375, 0.004791259765625, -0.0113677978515625, 0.004913330078125, -0.002819061279296875, 0.0625, 0.0305328369140625, -0.00736236572265625, 0.03851318359375, 0.029693603515625, -0.0011110305786132812, -0.0643310546875, -0.055572509765625, -0.056396484375, -0.01305389404296875, -0.037933349609375, -0.032073974609375, -0.0018253326416015625, 0.0009064674377441406, 0.041290283203125, 0.0266265869140625, -0.0031490325927734375, -0.03424072265625, 0.01727294921875, 0.0215301513671875, -0.002429962158203125, 0.06048583984375, 0.07586669921875, -0.004032135009765625, -0.0164337158203125, -0.03204345703125, -0.0249481201171875, -0.0214996337890625, -0.072998046875, -0.009521484375, -0.0172576904296875, -0.00872039794921875, 0.02130126953125, 0.0555419921875, -0.029571533203125, 0.058135986328125, -0.017425537109375, -0.00977325439453125, -0.00586700439453125, 0.0404052734375, 0.00705718994140625, -0.0091552734375, -0.005584716796875, 0.03155517578125, 0.03924560546875, -0.0248870849609375, -0.03228759765625, 0.031280517578125, 0.03173828125, 0.0187530517578125, -0.00791168212890625, -0.009979248046875, -0.0117034912109375, -0.0142822265625, 0.04052734375, 0.0005192756652832031, -0.052276611328125, -0.0146636962890625, -0.0033168792724609375, 0.012542724609375, -0.026702880859375, 0.0016803741455078125, -0.006221771240234375, 0.032928466796875, 0.009521484375, -0.0012798309326171875, -0.050201416015625, 0.0199737548828125, 0.0303497314453125, -0.0260009765625, 0.0020465850830078125, 0.0003170967102050781, -0.0626220703125, -0.0506591796875, -0.0113525390625, -0.002994537353515625, 0.0308837890625, 0.006832122802734375, 0.02630615234375, -0.0228271484375, -0.0078125, -0.002208709716796875, 0.003814697265625, 0.0217132568359375, -0.0095367431640625, -0.08685302734375, -0.0210723876953125, -0.0306854248046875, -0.01776123046875, -0.037017822265625, -0.0141143798828125, -0.04547119140625, 0.022369384765625, 0.0042877197265625, 0.0307159423828125, -0.0278167724609375, -0.0021114349365234375, 0.01117706298828125, 0.00824737548828125, -0.01245880126953125, 0.0308074951171875, -0.01499176025390625, 0.033599853515625, 0.0265655517578125, 0.044464111328125, 0.022491455078125, 0.03851318359375, 0.0221405029296875, -0.050323486328125, 0.032257080078125, -0.044677734375, -0.051239013671875, -0.048675537109375, -0.03057861328125, 0.017608642578125, 0.03253173828125, -0.0010747909545898438, -0.018402099609375, -0.032470703125, -0.0019502639770507812, -0.03912353515625, 0.08038330078125, -0.025054931640625, 0.017578125, -0.036529541015625, -0.0255584716796875, 0.0266571044921875, 0.010589599609375, 0.02655029296875, -0.01154327392578125, -0.01169586181640625, -0.005779266357421875, 0.02166748046875, -0.0289306640625, 0.04248046875, 0.08331298828125, 0.006664276123046875, 0.048736572265625, 0.01442718505859375, 0.0115814208984375, 0.0308837890625, 0.0355224609375, 0.0143890380859375, -0.0207977294921875, 0.033203125, 0.00083160400390625, -0.0053253173828125, 0.0175323486328125, -0.029571533203125, 0.01035308837890625, 0.0171966552734375, 0.04498291015625, -0.06640625, 0.032012939453125, 0.025115966796875, 0.039794921875, 0.08087158203125, 0.01172637939453125, 0.002208709716796875, -0.0230865478515625, -0.00943756103515625, 0.0170135498046875, -0.002857208251953125, 0.006099700927734375, 0.0228118896484375, -0.0027599334716796875, 0.01187896728515625, 0.01183319091796875, 0.01007843017578125, -0.0304718017578125, -0.019256591796875, 0.0301971435546875, -0.01206207275390625, -0.030609130859375, -0.0092315673828125, 0.034088134765625, -0.036376953125, -0.08282470703125, 0.006107330322265625, -0.0175628662109375, -0.0092620849609375, 0.05609130859375, -0.0096588134765625, 0.016357421875, 0.02691650390625, -0.01140594482421875, 0.018463134765625, -0.01180267333984375, -0.015869140625, -0.03314208984375, -0.0498046875, 0.007030487060546875, -0.022430419921875, 0.0089874267578125, 0.0288238525390625, -0.0125274658203125, -0.08428955078125, -0.01047515869140625, -0.00995635986328125, 0.1033935546875, -0.06829833984375, -0.014434814453125, 0.005413055419921875, 0.025146484375, -0.004913330078125, -0.03118896484375, 0.060394287109375, -0.04510498046875, 0.01007080078125, -0.00766754150390625, 0.0226898193359375, -0.0269775390625, -0.038726806640625, -0.083251953125, 0.06829833984375, 0.016021728515625, 0.028839111328125, 0.01163482666015625, 0.01763916015625, -0.040557861328125, -0.0019016265869140625, 0.004962921142578125, 0.04656982421875, 0.040863037109375, 0.0097198486328125, 0.032989501953125, -0.0079345703125, 0.035552978515625, 0.0188140869140625, 0.05755615234375, 0.0135345458984375, 0.022369384765625, -0.0277557373046875, 0.0258026123046875, 0.032135009765625, -0.0141448974609375, 0.0035343170166015625, -0.03143310546875, 0.025665283203125, 0.0106964111328125, -0.042205810546875, 0.01708984375, -0.0006422996520996094, -0.0489501953125, -0.00852203369140625, 0.004085540771484375, -0.0245361328125, 0.0031414031982421875, 0.04052734375, -0.01959228515625, 0.01092529296875, -0.0115966796875, 0.032196044921875, 0.024932861328125, 0.0153045654296875, 0.0219268798828125, -0.011810302734375, 0.0282135009765625, -0.0318603515625, 0.0452880859375, 0.00424957275390625, 0.04864501953125, 0.0223846435546875, 0.0220489501953125, 0.06591796875, -0.0260009765625, 0.035980224609375, 0.0253753662109375, -0.032073974609375, 0.0469970703125, 0.0222930908203125, 0.015625, -0.054351806640625, -0.002407073974609375, 0.039764404296875, 0.057220458984375, -0.031463623046875, -0.043609619140625, -0.0040130615234375, -0.022979736328125, 0.031280517578125, -0.00499725341796875, 0.041900634765625, -0.02734375, -0.01308441162109375, -0.015716552734375, -0.0090484619140625, 0.0018596649169921875, 0.0169830322265625, -0.004421234130859375, 0.034759521484375, -0.00936126708984375, -0.0272979736328125, -0.0102996826171875, -0.00945281982421875, 0.00994110107421875, 0.00856781005859375, 0.0338134765625, -0.0199432373046875, 0.0244598388671875, 0.0124053955078125, -0.01036834716796875, 0.0684814453125, -0.015380859375, 0.00800323486328125, -0.04345703125, -0.06927490234375, 0.00862884521484375, 0.03271484375, 0.03155517578125, 0.045501708984375, 0.0545654296875, 0.00968170166015625, -0.050537109375, -0.001995086669921875, 0.00379180908203125, -0.0396728515625, -0.01898193359375, -0.000823974609375, 0.009765625, 0.03814697265625, 0.00017881393432617188, -0.0168304443359375, 0.025115966796875, 0.053558349609375, 0.0245513916015625, -0.0423583984375, 0.0270538330078125, -0.0220947265625, 0.0260009765625, -0.00036454200744628906, -0.04345703125, 0.031463623046875, -0.01227569580078125, 0.0006084442138671875, -0.00018656253814697266, -0.0010690689086914062, -0.0016603469848632812, 0.019805908203125, -0.0355224609375, 0.042724609375, -0.01898193359375, 0.01593017578125, 0.002124786376953125, -0.028533935546875, 0.006740570068359375, 0.0294952392578125, 0.0214080810546875, 0.02264404296875, -0.019561767578125, -0.025543212890625, 0.0225982666015625, 0.04132080078125, -0.0028858184814453125, 0.05743408203125, -0.0289764404296875, -0.0019702911376953125, -0.049530029296875, -0.0333251953125, 0.006988525390625, -0.0206451416015625, -0.005962371826171875, 0.04833984375, -0.00402069091796875, -0.0231781005859375, -0.020843505859375, 0.0307159423828125, 0.0426025390625, -0.0226898193359375, 0.052154541015625, -0.040863037109375, -0.0020008087158203125, -0.045623779296875, 0.00980377197265625, -0.0302276611328125, -0.00595855712890625, -0.005767822265625, -0.0231781005859375, 0.034271240234375, 0.01171875, 0.004161834716796875, 0.036865234375, -0.00272369384765625, 0.017974853515625, 0.0026035308837890625, 0.0152130126953125, -0.018585205078125, 0.018951416015625, -0.01515960693359375, 0.00732421875, 0.0154266357421875, -0.017913818359375, 0.048065185546875, -0.01031494140625, 0.0252838134765625, 0.0260772705078125, -0.036407470703125, -0.0047454833984375, -0.0005087852478027344, 0.0158233642578125, -0.0258026123046875, -0.0191497802734375, 0.0144500732421875, -0.01296234130859375, -0.00566864013671875, 0.032745361328125, 0.0025348663330078125, -0.0149383544921875, -0.041229248046875, 0.0033969879150390625, -0.0400390625, -0.06488037109375, -0.0692138671875, 0.0158538818359375, 0.00843048095703125, 0.013671875, -0.054595947265625, 0.04425048828125, 0.005008697509765625, 0.0261993408203125, -0.01238250732421875, -0.004596710205078125, -0.0250244140625, 0.0223846435546875, 0.006488800048828125, -0.045379638671875, -0.0271148681640625, 0.0660400390625, -0.0197296142578125, 0.008880615234375, -0.0248565673828125, -0.0294952392578125, 0.042144775390625, 0.005725860595703125, 0.04296875, 0.0526123046875, 0.09844970703125, -0.019378662109375, -0.0185699462890625, 0.026031494140625, -0.0005774497985839844, -0.0574951171875, 0.0037364959716796875, -0.03253173828125, -0.01409149169921875, 0.008941650390625, -0.01751708984375, 0.0005640983581542969, -0.03887939453125, -0.08709716796875, 0.10693359375, -0.0234832763671875, -0.0311737060546875, -0.027374267578125, 0.00366973876953125, 0.017364501953125, 0.011627197265625, -0.006816864013671875, 0.01702880859375, -0.044525146484375, 0.0086822509765625, 0.0302886962890625, 0.032684326171875, -0.00811767578125, 0.0294036865234375, 0.0085601806640625, 0.07049560546875, 0.052520751953125, 0.02490234375, -0.057525634765625, 0.01276397705078125, -0.007965087890625, 0.0151214599609375, -0.03961181640625, 0.01125335693359375, 0.016876220703125, 0.05364990234375, -0.0165252685546875, -0.052642822265625, -0.043609619140625, -0.0230865478515625, 0.0703125, 0.06475830078125, 0.01983642578125, -0.034332275390625, 0.00981903076171875, -0.0159759521484375, -0.004955291748046875, -0.056396484375, 0.004665374755859375, -0.075927734375, -0.0657958984375, 0.0015039443969726562, -0.007110595703125, 0.025482177734375, -0.0782470703125, -0.044830322265625, -0.0010099411010742188, -0.04693603515625, 0.034088134765625, -0.01036834716796875, 0.045013427734375, 0.0026454925537109375, -0.0205078125, 0.0340576171875, -0.036712646484375, -0.000701904296875, 0.0254058837890625, -0.04595947265625, -0.0093231201171875, -0.07489013671875, 0.0100250244140625, 0.06256103515625, -0.01039886474609375, 0.038787841796875, -0.03631591796875, -0.050537109375, -0.029296875, 0.0072784423828125, 0.01715087890625, 0.00862884521484375, -0.01122283935546875, 0.014251708984375, 0.01282501220703125, 0.041168212890625, -0.02215576171875, 0.01396942138671875, -0.0260009765625, 0.02935791015625, -0.036163330078125, 0.006435394287109375, 0.00724029541015625, -0.0024890899658203125, 0.001888275146484375, -0.01116180419921875, -0.0110626220703125, -0.08038330078125, 0.0265655517578125, -0.007389068603515625, 0.007244110107421875, 0.042022705078125 ]
0fd628925b63c582e8ad6ea4cbeb8444e2570e4e
Wordpress Stackexchange Q: Is it appropriate to remove custom posts and terms on plugin uninstall? This is more of a "best practices" than a question, but I was wondering, what to people typically remove when their plugin is removed? I have a plugin that does the following: * *registers custom post types *registers custom taxonomies *uses custom options Right now my plugin removes all of the custom options as they are installed by the plugin and used mostly internally. Since the posts for the custom post type and terms for the custom taxonomy are added by the user, would be be appropriate to remove these? A: In another answer I wrote about uninstall/activate/deactivate/upgrade routines. I guess most of the comments already tell it, but to sum it up: * *Uninstall: Remove everything, your plugin added *Deactivate: Do nothing *Activate: Do what your plugin needs. On Uninstall the user simply wants to get rid of the plugin, so it's fair to not leave any mess. Remove everything including tables, etc. Ok, if you got tables, you should maybe tell the user what your plugin is going to do. A simple alert() should do the trick.
Q: Is it appropriate to remove custom posts and terms on plugin uninstall? This is more of a "best practices" than a question, but I was wondering, what to people typically remove when their plugin is removed? I have a plugin that does the following: * *registers custom post types *registers custom taxonomies *uses custom options Right now my plugin removes all of the custom options as they are installed by the plugin and used mostly internally. Since the posts for the custom post type and terms for the custom taxonomy are added by the user, would be be appropriate to remove these? A: In another answer I wrote about uninstall/activate/deactivate/upgrade routines. I guess most of the comments already tell it, but to sum it up: * *Uninstall: Remove everything, your plugin added *Deactivate: Do nothing *Activate: Do what your plugin needs. On Uninstall the user simply wants to get rid of the plugin, so it's fair to not leave any mess. Remove everything including tables, etc. Ok, if you got tables, you should maybe tell the user what your plugin is going to do. A simple alert() should do the trick. A: I think it's important that you remove custom options by default (or maybe even give the user the chance to export/import them, depending on the depth/scope of your plug-in). The user should definitely be prompted before deleting custom posts and taxonomies though (i.e. "Would you also like to delete..."). Maybe they wish to re-use the data with their own functions, another plug-in or otherwise.
wordpress
{ "language": "en", "length": 257, "provenance": "stackexchange_00019.jsonl.gz:415899", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38267" }
[ 0.054351806640625, 0.03668212890625, -0.0116119384765625, 0.0039215087890625, 0.048370361328125, -0.0343017578125, 0.055633544921875, -0.05364990234375, -0.0218353271484375, 0.024566650390625, 0.0362548828125, -0.0012540817260742188, -0.048675537109375, -0.050872802734375, -0.0141754150390625, -0.035858154296875, 0.03558349609375, 0.0260772705078125, 0.0660400390625, -0.007701873779296875, 0.02587890625, 0.019439697265625, 0.054840087890625, 0.03436279296875, 0.013458251953125, 0.00664520263671875, 0.0771484375, -0.0265045166015625, -0.0007014274597167969, -0.0263519287109375, 0.01511383056640625, -0.0010938644409179688, -0.014190673828125, 0.046295166015625, -0.005615234375, -0.0187835693359375, -0.02783203125, 0.0286712646484375, 0.0162811279296875, 0.00858306884765625, 0.0357666015625, -0.0104827880859375, 0.022796630859375, -0.0133514404296875, -0.00351715087890625, -0.036712646484375, 0.05926513671875, -0.0164794921875, 0.00902557373046875, -0.05267333984375, 0.022308349609375, -0.007785797119140625, 0.059783935546875, -0.078125, -0.03857421875, -0.0205078125, -0.017120361328125, 0.033233642578125, 0.0244140625, 0.03314208984375, -0.027587890625, 0.0140838623046875, -0.002384185791015625, -0.044189453125, 0.05206298828125, 0.002262115478515625, 0.0156402587890625, 0.038116455078125, -0.097900390625, 0.034820556640625, 0.0621337890625, -0.07147216796875, 0.00952911376953125, -0.011016845703125, 0.0013523101806640625, -0.0357666015625, 0.029205322265625, -0.0014629364013671875, -0.005405426025390625, 0.00572967529296875, -0.00400543212890625, 0.0250244140625, 0.000014841556549072266, 0.0003097057342529297, -0.0206756591796875, 0.003086090087890625, -0.0185394287109375, -0.017852783203125, -0.01495361328125, -0.02655029296875, -0.017730712890625, -0.032196044921875, -0.023895263671875, 0.036224365234375, -0.0109710693359375, 0.0001741647720336914, 0.03656005859375, 0.0157470703125, -0.0055999755859375, -0.015625, 0.00370025634765625, -0.0364990234375, 0.008087158203125, -0.01171112060546875, 0.01617431640625, 0.01485443115234375, -0.031829833984375, -0.0206298828125, 0.05242919921875, 0.03961181640625, 0.0035572052001953125, -0.00571441650390625, -0.004695892333984375, -0.0231170654296875, -0.00919342041015625, 0.0029964447021484375, -0.03082275390625, 0.0223388671875, 0.007305145263671875, 0.019744873046875, -0.0083770751953125, 0.0018901824951171875, -0.017303466796875, -0.01277923583984375, -0.0014286041259765625, -0.0308380126953125, -0.0246124267578125, 0.0184783935546875, -0.036834716796875, 0.0161895751953125, -0.03326416015625, 0.0158843994140625, 0.05419921875, 0.020172119140625, -0.004032135009765625, -0.0226898193359375, 0.0206451416015625, 0.034423828125, 0.0092620849609375, -0.021270751953125, 0.02642822265625, -0.00849151611328125, 0.0013399124145507812, 0.005413055419921875, 0.030609130859375, 0.00476837158203125, -0.0038509368896484375, 0.0178680419921875, 0.032318115234375, 0.0013399124145507812, 0.01093292236328125, -0.033233642578125, 0.053314208984375, -0.004817962646484375, -0.007213592529296875, -0.0185394287109375, 0.054443359375, -0.04840087890625, -0.0261077880859375, -0.04986572265625, 0.0250091552734375, -0.01220703125, -0.0263519287109375, -0.01611328125, -0.0401611328125, 0.033050537109375, -0.00809478759765625, 0.001644134521484375, 0.0186004638671875, -0.04327392578125, 0.0440673828125, -0.057281494140625, -0.0178985595703125, 0.00023186206817626953, 0.018157958984375, 0.049957275390625, -0.01151275634765625, -0.0158843994140625, 0.042449951171875, 0.035064697265625, -0.0018777847290039062, -0.012451171875, 0.053070068359375, -0.0186614990234375, -0.06573486328125, -0.015838623046875, 0.0160980224609375, 0.046234130859375, 0.0284423828125, 0.0313720703125, 0.0712890625, -0.0230865478515625, -0.057830810546875, 0.0248565673828125, 0.0190582275390625, -0.0061187744140625, -0.0413818359375, -0.0138702392578125, -0.006328582763671875, -0.0132293701171875, -0.0181884765625, 0.0068359375, -0.0200347900390625, -0.0133056640625, -0.09722900390625, 0.0028018951416015625, -0.036102294921875, 0.05120849609375, -0.01953125, 0.0141448974609375, 0.021728515625, -0.01491546630859375, -0.04498291015625, 0.04193115234375, 0.0006566047668457031, -0.0190277099609375, 0.010650634765625, 0.022552490234375, -0.0036182403564453125, 0.0032291412353515625, 0.0097198486328125, -0.0301055908203125, 0.006656646728515625, 0.051055908203125, 0.0250244140625, 0.0006756782531738281, -0.01580810546875, -0.013763427734375, 0.00739288330078125, 0.01416015625, -0.0294342041015625, 0.0304412841796875, 0.004398345947265625, 0.0135955810546875, -0.00138092041015625, -0.01087188720703125, 0.031005859375, -0.085205078125, 0.0232696533203125, 0.05145263671875, 0.00452423095703125, 0.020172119140625, -0.036651611328125, 0.0011892318725585938, 0.046295166015625, 0.0005946159362792969, 0.004032135009765625, 0.0186309814453125, 0.033905029296875, 0.07183837890625, 0.002971649169921875, 0.0032520294189453125, 0.00090789794921875, 0.03009033203125, 0.0276641845703125, 0.013519287109375, -0.03607177734375, -0.038787841796875, 0.0445556640625, -0.033660888671875, 0.02294921875, -0.0210418701171875, -0.02752685546875, -0.004909515380859375, 0.003509521484375, -0.00637054443359375, 0.004970550537109375, 0.00909423828125, -0.0265350341796875, 0.0007634162902832031, 0.0286865234375, 0.0004382133483886719, -0.01739501953125, 0.007442474365234375, 0.069091796875, -0.0325927734375, -0.048248291015625, -0.0069122314453125, 0.0169677734375, 0.00371551513671875, -0.00679779052734375, -0.006008148193359375, -0.0212249755859375, -0.0107421875, -0.00875091552734375, -0.075439453125, 0.01435089111328125, 0.019439697265625, -0.05145263671875, -0.02838134765625, 0.0031108856201171875, 0.0142669677734375, -0.041656494140625, 0.0196075439453125, 0.020660400390625, -0.01296234130859375, -0.03350830078125, -0.042205810546875, 0.0297393798828125, -0.0197296142578125, 0.024261474609375, 0.067626953125, 0.0281982421875, -0.00222015380859375, 0.0079193115234375, 0.04864501953125, 0.048736572265625, -0.00620269775390625, -0.005245208740234375, 0.017242431640625, -0.056884765625, -0.0293121337890625, 0.01531219482421875, 0.08203125, -0.038909912109375, -0.0543212890625, -0.007556915283203125, 0.0286407470703125, -0.035858154296875, -0.0181427001953125, 0.00664520263671875, -0.01088714599609375, 0.0074005126953125, -0.004146575927734375, 0.01000213623046875, -0.0093841552734375, 0.0017147064208984375, 0.0004398822784423828, 0.01300811767578125, -0.029693603515625, -0.0306243896484375, -0.047607421875, -0.04931640625, -0.01351165771484375, 0.00821685791015625, 0.0010128021240234375, -0.004535675048828125, 0.0872802734375, 0.00905609130859375, -0.07763671875, -0.00662994384765625, -0.039794921875, -0.0210723876953125, 0.041595458984375, 0.0229034423828125, 0.01409149169921875, 0.006488800048828125, 0.0148773193359375, 0.0236053466796875, 0.041748046875, -0.06695556640625, -0.029632568359375, 0.021514892578125, 0.0248870849609375, 0.025054931640625, -0.06781005859375, -0.0280914306640625, 0.0162811279296875, -0.04510498046875, -0.052337646484375, 0.01094818115234375, -0.005367279052734375, -0.005748748779296875, 0.0010814666748046875, -0.02618408203125, 0.00716400146484375, -0.01406097412109375, 0.027008056640625, -0.0119171142578125, -0.00986480712890625, -0.0109710693359375, -0.0018739700317382812, 0.01407623291015625, -0.0160980224609375, 0.002109527587890625, 0.00027179718017578125, 0.006885528564453125, -0.042144775390625, 0.007236480712890625, -0.005573272705078125, -0.01401519775390625, 0.012542724609375, -0.0260772705078125, -0.006427764892578125, -0.043731689453125, 0.036163330078125, -0.004467010498046875, -0.0160675048828125, 0.0164031982421875, -0.017852783203125, 0.0278167724609375, 0.0657958984375, -0.053741455078125, -0.01100921630859375, -0.002010345458984375, -0.0005826950073242188, 0.0083770751953125, -0.0116119384765625, -0.053009033203125, -0.019134521484375, -0.107177734375, 0.0157928466796875, 0.0172271728515625, -0.046417236328125, -0.04559326171875, 0.06341552734375, -0.10333251953125, -0.0316162109375, 0.03955078125, -0.043212890625, 0.03619384765625, -0.0248870849609375, 0.03021240234375, -0.05767822265625, -0.01110076904296875, -0.0229339599609375, -0.01611328125, 0.00983428955078125, -0.0400390625, 0.01045989990234375, 0.0266571044921875, 0.0023517608642578125, -0.0053863525390625, 0.00873565673828125, -0.0033206939697265625, 0.019073486328125, -0.0005950927734375, 0.01561737060546875, -0.03338623046875, 0.002582550048828125, 0.0070343017578125, -0.017120361328125, -0.001094818115234375, 0.0038909912109375, -0.004375457763671875, 0.024200439453125, -0.0015020370483398438, 0.007236480712890625, 0.02276611328125, -0.0270233154296875, -0.0191497802734375, -0.013946533203125, -0.06427001953125, -0.0252227783203125, -0.045806884765625, -0.0152130126953125, 0.0022220611572265625, -0.020355224609375, 0.017547607421875, 0.0235748291015625, -0.0158233642578125, 0.0125732421875, 0.0574951171875, 0.01611328125, -0.01445770263671875, -0.056121826171875, 0.0216064453125, 0.027496337890625, 0.023162841796875, 0.041717529296875, 0.02276611328125, 0.0025272369384765625, 0.0121612548828125, 0.005512237548828125, -0.000644683837890625, -0.042022705078125, 0.0936279296875, -0.01105499267578125, -0.0142364501953125, 0.028289794921875, -0.039276123046875, 0.02459716796875, 0.028717041015625, -0.005641937255859375, -0.02069091796875, -0.01247406005859375, 0.0178375244140625, -0.035125732421875, 0.033935546875, -0.005542755126953125, -0.06353759765625, 0.05523681640625, -0.022857666015625, -0.026336669921875, -0.00628662109375, -0.01297760009765625, 0.005859375, -0.06829833984375, 0.019683837890625, -0.015716552734375, 0.01421356201171875, -0.032257080078125, 0.027130126953125, 0.006778717041015625, 0.00323486328125, -0.0237884521484375, 0.00848388671875, 0.039154052734375, -0.0308837890625, -0.042449951171875, -0.07537841796875, -0.0008172988891601562, 0.0283203125, 0.0264434814453125, 0.00649261474609375, 0.0596923828125, 0.03851318359375, -0.01129150390625, -0.0015230178833007812, -0.0222015380859375, 0.011627197265625, -0.0501708984375, -0.0640869140625, -0.0106658935546875, -0.033782958984375, 0.0008716583251953125, 0.0103912353515625, -0.0296630859375, -0.0045013427734375, -0.003173828125, 0.04107666015625, 0.029388427734375, 0.02667236328125, 0.01500701904296875, -0.01152801513671875, -0.0003044605255126953, -0.0279541015625, -0.0285186767578125, -0.01560211181640625, -0.01165771484375, -0.0257415771484375, 0.00850677490234375, -0.02734375, 0.0065155029296875, 0.052032470703125, -0.01383209228515625, -0.0231170654296875, 0.03717041015625, -0.005523681640625, -0.056121826171875, -0.01438140869140625, 0.02655029296875, 0.047271728515625, -0.0157318115234375, -0.0244598388671875, -0.00196075439453125, -0.049072265625, -0.019989013671875, -0.02362060546875, -0.044036865234375, 0.0019283294677734375, 0.02581787109375, -0.005611419677734375, 0.001407623291015625, 0.00937652587890625, -0.026275634765625, -0.036773681640625, -0.0018787384033203125, -0.01311492919921875, 0.0159454345703125, -0.0239410400390625, 0.01018524169921875, -0.007091522216796875, -0.0165557861328125, -0.0013980865478515625, 0.01503753662109375, 0.043853759765625, 0.01806640625, -0.082763671875, 0.0003387928009033203, -0.01441192626953125, -0.0036411285400390625, -0.060211181640625, -0.059783935546875, -0.053070068359375, 0.00203704833984375, 0.0074920654296875, 0.006084442138671875, -0.00958251953125, -0.00582122802734375, -0.00617218017578125, 0.0308685302734375, 0.007678985595703125, 0.019073486328125, 0.006916046142578125, 0.005008697509765625, 0.0116729736328125, 0.043365478515625, 0.025909423828125, 0.01580810546875, 0.012451171875, -0.040283203125, 0.0189056396484375, -0.04046630859375, -0.042327880859375, -0.0242156982421875, -0.0287322998046875, -0.003948211669921875, 0.01202392578125, -0.00817108154296875, -0.02447509765625, -0.00223541259765625, -0.00798797607421875, -0.019866943359375, 0.059600830078125, 0.0251922607421875, 0.00909423828125, -0.0035877227783203125, -0.061187744140625, -0.013031005859375, 0.03326416015625, 0.0281829833984375, 0.006137847900390625, -0.030853271484375, -0.01497650146484375, 0.040863037109375, 0.028778076171875, -0.00853729248046875, 0.0133209228515625, -0.0115509033203125, 0.01461029052734375, 0.0186614990234375, 0.0160675048828125, 0.0018634796142578125, -0.0440673828125, 0.007568359375, -0.0251312255859375, 0.03472900390625, -0.01059722900390625, -0.01361083984375, 0.053863525390625, -0.0234527587890625, 0.0126953125, 0.0506591796875, 0.03704833984375, -0.1185302734375, 0.0307769775390625, 0.00396728515625, 0.0038852691650390625, 0.04290771484375, 0.012786865234375, -0.0017919540405273438, 0.001056671142578125, -0.057403564453125, 0.035247802734375, -0.038848876953125, -0.0188446044921875, 0.031494140625, -0.007556915283203125, -0.00807952880859375, 0.029388427734375, 0.00806427001953125, -0.0106964111328125, 0.003871917724609375, 0.02215576171875, -0.01358795166015625, -0.01239013671875, 0.01383209228515625, 0.00864410400390625, -0.01171875, -0.055267333984375, 0.038909912109375, -0.0311737060546875, -0.01132965087890625, 0.044036865234375, 0.0053863525390625, 0.0015230178833007812, 0.057525634765625, -0.021575927734375, 0.0230712890625, 0.018218994140625, -0.043670654296875, -0.06402587890625, -0.01174163818359375, 0.018096923828125, 0.0208740234375, -0.0270538330078125, 0.0323486328125, -0.0272979736328125, -0.036529541015625, -0.0222320556640625, -0.028472900390625, 0.0711669921875, -0.049102783203125, -0.00850677490234375, -0.00295257568359375, 0.05133056640625, 0.02850341796875, -0.053375244140625, -0.00019478797912597656, -0.06829833984375, 0.00664520263671875, -0.0455322265625, 0.0133056640625, 0.01277923583984375, -0.0635986328125, -0.07025146484375, 0.11383056640625, 0.00787353515625, 0.0026092529296875, -0.03662109375, 0.05242919921875, -0.0037479400634765625, 0.0465087890625, 0.007110595703125, 0.0245819091796875, -0.030426025390625, -0.01128387451171875, 0.00354766845703125, 0.016143798828125, -0.0113525390625, 0.01259613037109375, 0.06793212890625, 0.01419830322265625, 0.003040313720703125, -0.01439666748046875, 0.03607177734375, 0.0165252685546875, -0.0210113525390625, 0.007061004638671875, 0.01282501220703125, 0.0347900390625, 0.00968170166015625, 0.00502777099609375, 0.0535888671875, -0.0224609375, -0.036651611328125, 0.041595458984375, 0.017608642578125, 0.0236358642578125, -0.037017822265625, 0.0251922607421875, 0.0064239501953125, -0.0318603515625, -0.0012369155883789062, 0.0130615234375, 0.0152740478515625, -0.003566741943359375, -0.0197296142578125, -0.006923675537109375, 0.03253173828125, -0.017333984375, 0.035552978515625, -0.0321044921875, 0.046875, 0.0124969482421875, 0.026519775390625, 0.013916015625, -0.06719970703125, 0.023223876953125, -0.0008287429809570312, -0.0633544921875, 0.0384521484375, -0.00656890869140625, 0.005016326904296875, -0.044830322265625, 0.032684326171875, 0.0146026611328125, 0.0298919677734375, -0.041595458984375, -0.0419921875, 0.026641845703125, 0.01183319091796875, -0.0014638900756835938, 0.007770538330078125, 0.00399017333984375, -0.041656494140625, 0.0228424072265625, -0.04364013671875, 0.0167388916015625, 0.0182037353515625, 0.024993896484375, -0.009735107421875, 0.0131988525390625, -0.04412841796875, -0.0091705322265625, 0.01202392578125, -0.0318603515625, -0.00847625732421875, -0.0269317626953125, 0.0270233154296875, -0.023040771484375, 0.01239013671875, 0.0257415771484375, 0.0026111602783203125, 0.048736572265625, 0.00865936279296875, -0.004547119140625, -0.0458984375, -0.0926513671875, 0.025543212890625, 0.04656982421875, 0.004558563232421875, -0.0169830322265625, 0.01580810546875, 0.03436279296875, -0.010986328125, -0.01552581787109375, 0.027923583984375, -0.00460052490234375, -0.00763702392578125, -0.0250244140625, 0.041656494140625, 0.036895751953125, -0.0032672882080078125, 0.0038661956787109375, 0.0292816162109375, 0.041595458984375, -0.03118896484375, 0.05328369140625, 0.00545501708984375, -0.0268402099609375, 0.06549072265625, -0.021240234375, 0.089111328125, -0.005916595458984375, -0.01348114013671875, -0.00858306884765625, -0.040435791015625, -0.0002332925796508789, -0.0007328987121582031, 0.022735595703125, 0.026641845703125, 0.0021991729736328125, 0.0186004638671875, -0.037078857421875, 0.0162506103515625, 0.029205322265625, -0.00850677490234375, 0.01546478271484375, 0.031951904296875, -0.00907135009765625, 0.015899658203125, 0.004116058349609375, 0.0089874267578125, 0.032196044921875, 0.005435943603515625, 0.04669189453125, -0.034332275390625, 0.0151214599609375, -0.016937255859375, 0.0078582763671875, -0.01128387451171875, 0.0016183853149414062, 0.0118560791015625, 0.007171630859375, -0.00273895263671875, -0.0105743408203125, -0.03997802734375, 0.034332275390625, 0.028106689453125, 0.0014238357543945312, 0.022430419921875, 0.004596710205078125, 0.0083770751953125, -0.01824951171875, 0.0113525390625, -0.017059326171875, -0.0030078887939453125, -0.0045013427734375, -0.02484130859375, 0.030426025390625, 0.0233154296875, 0.0106201171875, 0.01125335693359375, 0.01702880859375, -0.0091552734375, 0.01285552978515625, -0.017974853515625, 0.0103302001953125, 0.042633056640625, 0.00971221923828125, -0.06317138671875, 0.033905029296875, -0.0009751319885253906, -0.042327880859375, 0.04510498046875, 0.043731689453125, 0.009918212890625, -0.05426025390625, -0.044647216796875, -0.036407470703125, 0.034271240234375, 0.01058197021484375, 0.014739990234375, -0.0723876953125, 0.02490234375, -0.027069091796875, -0.0080108642578125, -0.03265380859375, -0.028594970703125, -0.01458740234375, 0.00689697265625, -0.019866943359375, -0.0626220703125, -0.07049560546875, 0.0081024169921875, 0.03826904296875, 0.01247406005859375, -0.0980224609375, 0.0408935546875, -0.026397705078125, 0.032470703125, -0.013275146484375, -0.0285797119140625, -0.01145172119140625, 0.0321044921875, 0.0123291015625, -0.039703369140625, -0.0369873046875, 0.05517578125, -0.034515380859375, 0.033966064453125, 0.027374267578125, -0.047637939453125, -0.0498046875, 0.045928955078125, 0.05126953125, 0.0701904296875, 0.08392333984375, -0.0092315673828125, 0.03192138671875, -0.0180206298828125, -0.0238494873046875, -0.0699462890625, 0.003955841064453125, -0.0560302734375, -0.040069580078125, -0.0106658935546875, 0.024658203125, 0.0479736328125, -0.015899658203125, -0.051788330078125, 0.0830078125, -0.0206146240234375, -0.0182647705078125, -0.02392578125, 0.01473236083984375, 0.024627685546875, -0.037109375, -0.0161285400390625, -0.00910186767578125, -0.06414794921875, -0.01525115966796875, -0.0189208984375, 0.046295166015625, 0.0008215904235839844, -0.006023406982421875, -0.01137542724609375, 0.01593017578125, 0.00534820556640625, -0.0188140869140625, 0.0164031982421875, -0.0201416015625, 0.024627685546875, 0.042938232421875, -0.0240325927734375, -0.0096435546875, -0.0118408203125, -0.01296234130859375, -0.030303955078125, -0.049591064453125, 0.023193359375, 0.0219879150390625, 0.021881103515625, 0.04168701171875, 0.00278472900390625, -0.049041748046875, -0.01311492919921875, -0.046844482421875, 0.019561767578125, -0.021148681640625, -0.00827789306640625, -0.045135498046875, 0.004253387451171875, 0.01506805419921875, -0.02288818359375, 0.0085601806640625, -0.007328033447265625, -0.028778076171875, -0.0022525787353515625, 0.0006413459777832031, -0.0020580291748046875, -0.045501708984375, 0.036346435546875, -0.02142333984375, 0.00867462158203125, 0.024627685546875, -0.0239715576171875, -0.01375579833984375, -0.0005044937133789062, 0.04449462890625, -0.0113525390625, 0.0130767822265625, -0.04754638671875, 0.0252532958984375, -0.0241241455078125, 0.037078857421875, -0.0528564453125, -0.0004138946533203125, -0.01654052734375, 0.037841796875, 0.00580596923828125, 0.04852294921875, -0.0340576171875, 0.05108642578125, 0.03912353515625, -0.0070953369140625, -0.0023651123046875, -0.036712646484375, -0.047760009765625, 0.03900146484375, 0.02899169921875, -0.0240936279296875, 0.06292724609375, -0.00566864013671875, 0.006351470947265625, -0.017974853515625, -0.00836181640625, -0.040008544921875, 0.0199737548828125, 0.053131103515625, -0.0207366943359375, 0.0251312255859375 ]
d0b927312e2cfd702af29b620a80d77ee2287b89
Wordpress Stackexchange Q: Run javascript code after wp_login hook? After using the wp_login hook, is it possible to add a snippet of javascript code to the page seen immediately after the login in wordpress? I want to use this top implement a notification system that notifies the user when they login. A: I would do something like this: function wpse38285_wp_login( $user_login ) { set_transient( $user_login, '1', 0 ); } add_action( 'wp_login', 'wpse38285_wp_login' ); function wpse38285_wp_footer() { global $current_user; get_currentuserinfo(); if ( ! is_user_logged_in() ) return; if ( ! get_transient( $current_user->user_login ) ) return; $js = <<<JS <script type="text/javascript"> jQuery('<div />') .html('<p>You are now logged in as <strong>$current_user->user_login</strong><br /><small>(click to close)</small></p>') .css({ 'width': '300px', 'position': 'absolute', 'left': '50%', 'marginLeft': '-160px', 'top': '100px', 'backgroundColor': '#cdcdcd', 'textAlign': 'center', 'padding': '10px' }) .appendTo('body') .on('click', function() { jQuery(this).remove(); } ); </script> JS; echo $js; delete_transient( $current_user->user_login ); } add_action( 'wp_footer', 'wpse38285_wp_footer' ); Set a never-expiring transient for the user after logging on. If a transient is set for that user, inject some JavaScript code and delete the transient.
Q: Run javascript code after wp_login hook? After using the wp_login hook, is it possible to add a snippet of javascript code to the page seen immediately after the login in wordpress? I want to use this top implement a notification system that notifies the user when they login. A: I would do something like this: function wpse38285_wp_login( $user_login ) { set_transient( $user_login, '1', 0 ); } add_action( 'wp_login', 'wpse38285_wp_login' ); function wpse38285_wp_footer() { global $current_user; get_currentuserinfo(); if ( ! is_user_logged_in() ) return; if ( ! get_transient( $current_user->user_login ) ) return; $js = <<<JS <script type="text/javascript"> jQuery('<div />') .html('<p>You are now logged in as <strong>$current_user->user_login</strong><br /><small>(click to close)</small></p>') .css({ 'width': '300px', 'position': 'absolute', 'left': '50%', 'marginLeft': '-160px', 'top': '100px', 'backgroundColor': '#cdcdcd', 'textAlign': 'center', 'padding': '10px' }) .appendTo('body') .on('click', function() { jQuery(this).remove(); } ); </script> JS; echo $js; delete_transient( $current_user->user_login ); } add_action( 'wp_footer', 'wpse38285_wp_footer' ); Set a never-expiring transient for the user after logging on. If a transient is set for that user, inject some JavaScript code and delete the transient. A: The typical method to store pending action in WordPress is to set short-lived transient (set_transient()). Since this would need to distinguish between users you can incorporate user info as part of transient key or use different storage API, such as user option (update_user_option()), instead.
wordpress
{ "language": "en", "length": 216, "provenance": "stackexchange_00019.jsonl.gz:415902", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38285" }
[ 0.040618896484375, 0.019134521484375, -0.041717529296875, -0.04388427734375, 0.0243377685546875, -0.051361083984375, 0.0174102783203125, -0.0006389617919921875, -0.05462646484375, 0.0078887939453125, -0.0067901611328125, 0.01476287841796875, -0.0233917236328125, -0.025634765625, 0.0303802490234375, -0.037078857421875, 0.052886962890625, -0.02789306640625, 0.036773681640625, -0.015411376953125, -0.004913330078125, 0.0175628662109375, 0.057891845703125, 0.07794189453125, 0.00276947021484375, -0.0272216796875, 0.1712646484375, -0.030029296875, 0.0159149169921875, -0.01605224609375, 0.021759033203125, -0.04571533203125, 0.0077972412109375, 0.051422119140625, -0.0517578125, 0.010040283203125, -0.01251983642578125, 0.03961181640625, 0.00472259521484375, 0.0116424560546875, 0.028961181640625, -0.01314544677734375, -0.018585205078125, 0.00565338134765625, -0.0208892822265625, -0.03009033203125, 0.0194091796875, -0.035186767578125, 0.02191162109375, -0.0180206298828125, 0.025299072265625, -0.003177642822265625, 0.043731689453125, -0.0017347335815429688, -0.02642822265625, 0.0269317626953125, -0.062408447265625, 0.01503753662109375, 0.01983642578125, 0.09722900390625, 0.0479736328125, -0.0125732421875, -0.02392578125, -0.06451416015625, -0.0176544189453125, -0.017608642578125, -0.056976318359375, 0.0133514404296875, 0.0115966796875, -0.0193634033203125, -0.0008883476257324219, -0.01215362548828125, -0.0190887451171875, -0.0168914794921875, -0.003856658935546875, 0.01470947265625, 0.006328582763671875, 0.02093505859375, -0.0027179718017578125, 0.0270233154296875, 0.00949859619140625, 0.0122833251953125, -0.0201873779296875, -0.021484375, 0.019744873046875, 0.0027637481689453125, -0.0181884765625, -0.0201416015625, -0.03729248046875, -0.03558349609375, -0.038665771484375, -0.028106689453125, -0.01116943359375, -0.03533935546875, -0.0458984375, -0.0139617919921875, -0.0096435546875, 0.031707763671875, -0.0068359375, -0.00435638427734375, 0.012603759765625, -0.0276031494140625, -0.01043701171875, -0.02978515625, -0.00551605224609375, 0.07659912109375, 0.01270294189453125, -0.004512786865234375, -0.0286712646484375, -0.0174102783203125, 0.0017347335815429688, -0.0887451171875, 0.0183258056640625, 0.01219940185546875, -0.031280517578125, -0.018463134765625, -0.04150390625, -0.007480621337890625, -0.01309967041015625, 0.0160064697265625, -0.0186920166015625, -0.0005812644958496094, -0.0078887939453125, -0.01396942138671875, 0.012725830078125, -0.01300811767578125, -0.007080078125, -0.00868988037109375, -0.01151275634765625, -0.01287841796875, -0.032806396484375, 0.050140380859375, 0.069091796875, 0.017303466796875, 0.006587982177734375, -0.0103607177734375, 0.027130126953125, 0.002742767333984375, 0.01715087890625, -0.01139068603515625, 0.00250244140625, -0.0162811279296875, 0.0128326416015625, 0.0106353759765625, 0.021026611328125, 0.01509857177734375, 0.0004794597625732422, 0.0003020763397216797, 0.0146636962890625, -0.02685546875, 0.02587890625, -0.048736572265625, 0.00582122802734375, 0.0221405029296875, -0.006092071533203125, 0.0032176971435546875, 0.037994384765625, -0.0224151611328125, -0.01116180419921875, -0.032379150390625, -0.0034160614013671875, -0.0140533447265625, 0.007659912109375, -0.029083251953125, -0.03448486328125, 0.006137847900390625, -0.029144287109375, -0.0010471343994140625, 0.027130126953125, 0.08551025390625, 0.01666259765625, -0.0257415771484375, -0.005916595458984375, 0.038177490234375, -0.00849151611328125, 0.01218414306640625, -0.037689208984375, 0.060821533203125, 0.06097412109375, -0.087158203125, -0.048370361328125, -0.05908203125, 0.09991455078125, -0.03619384765625, -0.037384033203125, 0.0088653564453125, 0.0250244140625, 0.0662841796875, -0.001125335693359375, 0.0254669189453125, 0.0266571044921875, 0.0153656005859375, -0.02423095703125, 0.02752685546875, -0.014801025390625, -0.0447998046875, -0.0290985107421875, -0.020965576171875, -0.0318603515625, 0.033355712890625, 0.0134124755859375, 0.004940032958984375, 0.000858306884765625, -0.023193359375, -0.050323486328125, 0.0079345703125, -0.015777587890625, 0.044342041015625, -0.0033855438232421875, -0.01061248779296875, 0.01178741455078125, 0.003986358642578125, 0.006259918212890625, -0.0650634765625, -0.049957275390625, 0.00904083251953125, -0.04461669921875, 0.04180908203125, 0.00438690185546875, 0.060943603515625, 0.007965087890625, -0.0094146728515625, 0.01447296142578125, -0.047515869140625, 0.01361083984375, -0.0209503173828125, -0.02008056640625, -0.02740478515625, -0.0016498565673828125, -0.005176544189453125, -0.0189056396484375, 0.047393798828125, -0.004241943359375, 0.002872467041015625, -0.028961181640625, 0.00431060791015625, -0.01114654541015625, -0.027496337890625, 0.004444122314453125, 0.03289794921875, 0.0267333984375, 0.054534912109375, 0.00591278076171875, -0.00240325927734375, 0.052825927734375, 0.009429931640625, 0.039794921875, -0.03753662109375, 0.022918701171875, 0.07073974609375, -0.031707763671875, 0.00855255126953125, 0.0022068023681640625, -0.03753662109375, -0.00429534912109375, 0.047332763671875, 0.0106353759765625, -0.0178070068359375, -0.005619049072265625, 0.01123046875, 0.00421905517578125, -0.0194244384765625, -0.029022216796875, -0.005584716796875, 0.0384521484375, -0.032196044921875, -0.00024211406707763672, -0.02032470703125, -0.01399993896484375, 0.0036640167236328125, 0.0291290283203125, -0.0654296875, -0.0037593841552734375, -0.00656890869140625, 0.02581787109375, -0.0367431640625, -0.002719879150390625, -0.00670623779296875, 0.0169219970703125, -0.0144805908203125, -0.0079193115234375, 0.005474090576171875, -0.0259857177734375, -0.01425933837890625, 0.032806396484375, 0.00653076171875, -0.007343292236328125, -0.01166534423828125, 0.0172119140625, -0.0029354095458984375, 0.040435791015625, -0.0119171142578125, -0.0281982421875, 0.0305633544921875, -0.005035400390625, -0.030731201171875, -0.000743865966796875, -0.026275634765625, 0.0247039794921875, -0.0278167724609375, 0.0064849853515625, 0.0447998046875, 0.00103759765625, -0.001293182373046875, -0.0129241943359375, 0.0114288330078125, 0.00499725341796875, -0.0294952392578125, -0.03118896484375, -0.036376953125, 0.006145477294921875, 0.048553466796875, 0.022705078125, 0.051971435546875, -0.01065826416015625, -0.03668212890625, -0.00655364990234375, 0.01204681396484375, -0.06573486328125, -0.09490966796875, -0.0288848876953125, -0.08721923828125, 0.0273590087890625, 0.006259918212890625, -0.039337158203125, 0.00189971923828125, 0.0469970703125, 0.023193359375, -0.06463623046875, -0.0237579345703125, 0.00406646728515625, -0.0535888671875, -0.035858154296875, 0.037750244140625, 0.005146026611328125, 0.007686614990234375, 0.01097869873046875, 0.013671875, -0.003055572509765625, -0.0596923828125, -0.01806640625, 0.06976318359375, -0.0202789306640625, -0.033111572265625, -0.0213623046875, 0.004848480224609375, 0.01351165771484375, -0.00881195068359375, -0.064208984375, 0.001766204833984375, 0.0242767333984375, -0.019256591796875, -0.006076812744140625, -0.0278778076171875, -0.0035037994384765625, 0.0158538818359375, 0.0077667236328125, 0.0005125999450683594, 0.0160980224609375, -0.03118896484375, 0.03741455078125, -0.02783203125, -0.0205535888671875, -0.01059722900390625, 0.024871826171875, -0.0240936279296875, -0.004901885986328125, -0.040557861328125, 0.018890380859375, 0.013153076171875, 0.00824737548828125, 0.02154541015625, 0.00443267822265625, -0.031951904296875, -0.029205322265625, -0.0255584716796875, 0.0325927734375, -0.017974853515625, -0.0293426513671875, -0.016845703125, 0.0181121826171875, -0.004940032958984375, 0.0003447532653808594, -0.0212860107421875, -0.0301666259765625, 0.033843994140625, -0.00637054443359375, 0.00994873046875, -0.0147247314453125, -0.0134429931640625, -0.0024242401123046875, 0.065673828125, -0.0902099609375, -0.0056610107421875, 0.005702972412109375, 0.01172637939453125, -0.059661865234375, 0.00787353515625, -0.09014892578125, 0.0124053955078125, -0.080078125, 0.0390625, 0.01152801513671875, -0.003307342529296875, -0.0301361083984375, 0.044586181640625, -0.052520751953125, -0.0289306640625, 0.0078582763671875, 0.00901031494140625, 0.00212860107421875, -0.04705810546875, -0.034912109375, -0.033050537109375, 0.0335693359375, -0.0374755859375, -0.04083251953125, -0.015411376953125, -0.048095703125, 0.0838623046875, 0.07366943359375, -0.050933837890625, 0.010406494140625, 0.055511474609375, -0.01263427734375, 0.0125579833984375, 0.006893157958984375, 0.03521728515625, 0.00957489013671875, -0.032867431640625, -0.0212249755859375, -0.0217437744140625, 0.01258087158203125, -0.0032138824462890625, -0.0153350830078125, 0.0053863525390625, -0.041656494140625, 0.007137298583984375, -0.006244659423828125, -0.024139404296875, -0.027191162109375, -0.01117706298828125, -0.0031185150146484375, 0.022125244140625, -0.01898193359375, 0.0223846435546875, -0.0184173583984375, -0.0289764404296875, 0.0121002197265625, 0.029083251953125, -0.024932861328125, 0.00746917724609375, 0.00788116455078125, 0.017181396484375, -0.008270263671875, 0.017333984375, 0.03558349609375, 0.046173095703125, -0.0269927978515625, 0.01708984375, -0.015594482421875, -0.05712890625, 0.1204833984375, 0.006500244140625, 0.0156402587890625, -0.03204345703125, 0.046173095703125, -0.00083160400390625, -0.043304443359375, 0.055633544921875, 0.0029144287109375, -0.01216888427734375, -0.02685546875, -0.035247802734375, 0.04095458984375, 0.007106781005859375, -0.014404296875, -0.02734375, 0.039337158203125, 0.0223388671875, -0.049163818359375, -0.00461578369140625, -0.03265380859375, 0.029052734375, 0.0214080810546875, -0.000024497509002685547, 0.022705078125, 0.032196044921875, -0.021881103515625, -0.01496124267578125, -0.0255126953125, 0.01358795166015625, 0.0107879638671875, -0.00431060791015625, -0.0015468597412109375, -0.017730712890625, -0.024810791015625, 0.09765625, 0.029754638671875, -0.020050048828125, -0.01035308837890625, -0.020111083984375, 0.033050537109375, -0.0218963623046875, 0.00310516357421875, 0.04278564453125, 0.00124359130859375, -0.01171112060546875, -0.0148162841796875, -0.0163116455078125, -0.018310546875, -0.046417236328125, -0.00411224365234375, 0.01076507568359375, -0.0219268798828125, 0.009735107421875, 0.01258087158203125, -0.017608642578125, 0.0141448974609375, 0.007755279541015625, 0.045806884765625, 0.0193023681640625, 0.03204345703125, 0.024749755859375, -0.0131072998046875, -0.0146484375, 0.004062652587890625, -0.0284423828125, -0.039764404296875, 0.0177001953125, 0.0159454345703125, 0.0221710205078125, 0.01287841796875, -0.006488800048828125, 0.0006866455078125, -0.002132415771484375, -0.006397247314453125, 0.0117340087890625, -0.00817108154296875, -0.018707275390625, -0.012603759765625, 0.01444244384765625, 0.0151824951171875, -0.00870513916015625, 0.015716552734375, 0.022552490234375, 0.0101318359375, 0.0268096923828125, 0.018798828125, 0.0198822021484375, -0.0259552001953125, -0.0374755859375, -0.042205810546875, -0.0234222412109375, 0.021759033203125, -0.078125, 0.00003057718276977539, -0.0104217529296875, -0.015106201171875, -0.005069732666015625, 0.0123291015625, 0.0157470703125, -0.05413818359375, 0.00492095947265625, -0.02490234375, -0.0171966552734375, 0.027679443359375, -0.0171966552734375, -0.05438232421875, 0.0010862350463867188, -0.02923583984375, -0.01556396484375, -0.0207366943359375, -0.013885498046875, -0.037628173828125, -0.01297760009765625, 0.0259552001953125, 0.01126861572265625, -0.017059326171875, -0.048431396484375, -0.037689208984375, 0.0264892578125, 0.05810546875, 0.05047607421875, -0.01959228515625, 0.0528564453125, 0.018157958984375, -0.01381683349609375, 0.01702880859375, 0.0517578125, 0.00405120849609375, -0.00986480712890625, 0.0242156982421875, -0.0031642913818359375, -0.0089569091796875, -0.045501708984375, 0.028839111328125, -0.0090484619140625, 0.049560546875, -0.00800323486328125, 0.0197601318359375, 0.011749267578125, -0.01195526123046875, -0.003498077392578125, 0.003749847412109375, 0.0521240234375, 0.026397705078125, 0.054595947265625, 0.005458831787109375, 0.00560760498046875, -0.0011262893676757812, -0.01169586181640625, 0.0006313323974609375, 0.017852783203125, 0.014556884765625, -0.015380859375, -0.0195465087890625, 0.0195159912109375, 0.044952392578125, -0.0026264190673828125, 0.054656982421875, 0.012603759765625, 0.032135009765625, 0.0367431640625, -0.0167999267578125, 0.02996826171875, -0.018890380859375, 0.045745849609375, -0.007480621337890625, -0.031158447265625, 0.033203125, -0.053192138671875, -0.016357421875, 0.06402587890625, 0.03717041015625, -0.077880859375, -0.002269744873046875, -0.021575927734375, -0.015625, 0.023193359375, 0.01027679443359375, -0.0016317367553710938, 0.00319671630859375, 0.01535797119140625, 0.031829833984375, 0.004547119140625, 0.031036376953125, 0.021331787109375, -0.01226806640625, 0.01336669921875, -0.0243072509765625, 0.0020294189453125, -0.04168701171875, 0.018890380859375, 0.031341552734375, 0.0178375244140625, -0.027679443359375, -0.012969970703125, 0.04742431640625, -0.0234375, -0.060272216796875, 0.030426025390625, -0.012176513671875, -0.0108642578125, 0.007114410400390625, -0.0269927978515625, 0.0310516357421875, -0.0017728805541992188, -0.004962921142578125, 0.0031986236572265625, -0.03448486328125, 0.01180267333984375, 0.0084228515625, -0.00792694091796875, -0.002391815185546875, 0.01047515869140625, -0.0133819580078125, 0.0083465576171875, -0.0008525848388671875, -0.01380157470703125, -0.0233154296875, -0.044769287109375, 0.06787109375, -0.0162200927734375, -0.0149383544921875, 0.035980224609375, 0.033538818359375, -0.032501220703125, -0.0261993408203125, 0.0182037353515625, -0.0751953125, -0.044281005859375, -0.009124755859375, -0.0501708984375, -0.0015764236450195312, -0.04339599609375, -0.0498046875, 0.0689697265625, -0.001842498779296875, 0.0008420944213867188, 0.0027751922607421875, 0.03338623046875, -0.0305328369140625, -0.0006928443908691406, -0.047332763671875, 0.07232666015625, -0.02008056640625, 0.045074462890625, -0.02471923828125, 0.01195526123046875, 0.01486968994140625, -0.0171966552734375, 0.054412841796875, 0.0158233642578125, -0.011383056640625, -0.0283966064453125, 0.0032520294189453125, 0.0236358642578125, -0.026275634765625, 0.026763916015625, -0.002685546875, 0.053680419921875, 0.0178985595703125, -0.05694580078125, 0.023223876953125, -0.03228759765625, -0.044342041015625, 0.01064300537109375, 0.00102996826171875, -0.0000037550926208496094, 0.01357269287109375, 0.03656005859375, -0.059234619140625, 0.0195159912109375, 0.0305328369140625, 0.042388916015625, 0.0018262863159179688, 0.0196380615234375, -0.034149169921875, 0.040191650390625, -0.00489044189453125, -0.017242431640625, 0.01346588134765625, -0.0189666748046875, 0.003910064697265625, -0.0005125999450683594, 0.0255584716796875, -0.0423583984375, -0.0032329559326171875, -0.01055908203125, 0.0218048095703125, -0.0228271484375, 0.060546875, 0.0191497802734375, 0.0257568359375, -0.04400634765625, -0.0021839141845703125, 0.023773193359375, 0.06231689453125, -0.048583984375, -0.0214691162109375, 0.0014934539794921875, -0.0004703998565673828, 0.03411865234375, 0.00656890869140625, 0.059295654296875, -0.020416259765625, -0.01058197021484375, 0.01207733154296875, 0.0099029541015625, -0.004352569580078125, 0.02178955078125, 0.015655517578125, 0.07415771484375, -0.05413818359375, 0.0223388671875, -0.023040771484375, 0.00833892822265625, 0.0035839080810546875, -0.003780364990234375, 0.0009694099426269531, 0.0300750732421875, 0.0489501953125, 0.0048980712890625, -0.00589752197265625, 0.009368896484375, 0.0256500244140625, -0.0077056884765625, 0.02215576171875, 0.0186920166015625, -0.0209503173828125, -0.0001327991485595703, 0.0108184814453125, 0.01233673095703125, 0.03070068359375, 0.0124969482421875, -0.03350830078125, -0.0165557861328125, -0.0176239013671875, -0.02734375, 0.00853729248046875, -0.003467559814453125, 0.0076446533203125, 0.00995635986328125, 0.0018377304077148438, -0.011962890625, 0.05987548828125, 0.0035305023193359375, -0.049072265625, 0.031646728515625, -0.0118255615234375, -0.03363037109375, 0.047698974609375, 0.005672454833984375, 0.0816650390625, -0.003261566162109375, -0.0310821533203125, 0.005359649658203125, -0.0537109375, -0.038909912109375, 0.02557373046875, 0.043670654296875, 0.01386260986328125, 0.0056610107421875, 0.031646728515625, -0.0172271728515625, 0.00385284423828125, -0.0033359527587890625, 0.0217132568359375, -0.0261077880859375, 0.01512908935546875, -0.005802154541015625, -0.0767822265625, -0.02447509765625, -0.037811279296875, 0.01111602783203125, -0.00945281982421875, 0.041778564453125, 0.01526641845703125, 0.0131988525390625, -0.0006952285766601562, 0.018707275390625, 0.0031795501708984375, 0.0010118484497070312, 0.0054168701171875, 0.0087127685546875, -0.0059051513671875, -0.0225982666015625, -0.0704345703125, 0.061920166015625, -0.0148773193359375, 0.0672607421875, 0.07855224609375, -0.048797607421875, 0.0112152099609375, 0.0214996337890625, -0.005214691162109375, -0.0263824462890625, -0.04669189453125, -0.002452850341796875, 0.0221099853515625, -0.00202178955078125, 0.01061248779296875, -0.0045318603515625, 0.041595458984375, -0.0120849609375, 0.0086517333984375, -0.01142120361328125, -0.0014324188232421875, -0.043212890625, 0.0106201171875, -0.005710601806640625, 0.03125, -0.0223388671875, -0.022064208984375, 0.016021728515625, -0.00885009765625, -0.0206298828125, -0.0054473876953125, 0.01727294921875, 0.031524658203125, 0.05908203125, 0.06048583984375, -0.022369384765625, 0.02001953125, 0.03497314453125, -0.0158843994140625, 0.033843994140625, 0.0015821456909179688, -0.053497314453125, -0.038299560546875, 0.0178070068359375, 0.0262451171875, 0.0013113021850585938, -0.03143310546875, -0.06658935546875, 0.017486572265625, 0.022064208984375, 0.004154205322265625, -0.06591796875, 0.0233001708984375, -0.004009246826171875, 0.064697265625, -0.021392822265625, 0.0184478759765625, -0.0477294921875, -0.0455322265625, -0.01142120361328125, -0.0178680419921875, -0.062164306640625, 0.055145263671875, -0.022705078125, -0.038330078125, 0.00711822509765625, 0.01401519775390625, -0.0246429443359375, -0.039764404296875, -0.0333251953125, 0.00696563720703125, -0.01262664794921875, -0.0015535354614257812, -0.00003236532211303711, 0.03631591796875, -0.0117950439453125, -0.07147216796875, -0.0307769775390625, 0.03643798828125, 0.01849365234375, -0.002033233642578125, -0.01050567626953125, -0.01210784912109375, -0.04400634765625, -0.08087158203125, 0.07513427734375, 0.0025234222412109375, -0.03076171875, -0.0338134765625, -0.0169830322265625, 0.01255035400390625, -0.04351806640625, -0.029510498046875, -0.01113128662109375, -0.0462646484375, 0.03350830078125, 0.0128936767578125, 0.0169525146484375, 0.0205078125, 0.00012314319610595703, -0.073486328125, -0.0070037841796875, -0.00789642333984375, 0.027557373046875, -0.04693603515625, 0.0008168220520019531, 0.033843994140625, 0.03521728515625, 0.018585205078125, 0.048095703125, 0.0479736328125, -0.0210418701171875, -0.01363372802734375, -0.037353515625, -0.006412506103515625, 0.01187896728515625, 0.0819091796875, 0.0158843994140625, 0.008087158203125, -0.028839111328125, -0.045654296875, -0.0577392578125, -0.029998779296875, -0.033905029296875, 0.0285797119140625, -0.0782470703125, 0.0124969482421875, 0.0007681846618652344, -0.002674102783203125, -0.0523681640625, 0.005092620849609375, -0.03131103515625, -0.0195465087890625, 0.021728515625, 0.029937744140625, -0.00847625732421875, -0.0164337158203125, 0.0555419921875, -0.0198211669921875, 0.0211639404296875, 0.0033893585205078125, 0.0162353515625, 0.053680419921875, 0.04058837890625, 0.033050537109375, 0.003963470458984375, -0.047088623046875, 0.003154754638671875, 0.00881195068359375, 0.024871826171875, -0.031494140625, -0.041839599609375, 0.006000518798828125, 0.0179595947265625, 0.0030670166015625, 0.027496337890625, -0.0006146430969238281, 0.00557708740234375, -0.004077911376953125, 0.00792694091796875, -0.0462646484375, 0.027008056640625, -0.016265869140625, 0.0102081298828125, 0.0221099853515625, 0.007732391357421875, 0.0784912109375, -0.0242919921875, -0.01088714599609375, 0.00659942626953125, 0.0014791488647460938, -0.07012939453125, 0.02960205078125, 0.0212249755859375, 0.036773681640625, 0.033477783203125 ]
19a9ff71fcfb21ed9d0b14bddc1ed465d30937d7
Wordpress Stackexchange Q: Why max-width:97.5% on content images? Is there a specific reason why we find max-width:97.5% instead of 100% in common themes such as Twenty Eleven? A: Since the TwentyEleven theme also includes some default padding and a border for (fluid) images (see CSS below), a width of 100% would push the image outside of its container's width. This is because of how the box model works: border and padding are added to the width/height. img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img { border: 1px solid #DDDDDD; padding: 6px; } A better solution would be to change the box model calculation for images in this case. A CSS3 property called box-sizing is available for that. img.size-full, img.size-large { height: auto; width: auto; max-width: 100%; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } Note: box-sizing does not work in Internet Explorer 7 or lower.
Q: Why max-width:97.5% on content images? Is there a specific reason why we find max-width:97.5% instead of 100% in common themes such as Twenty Eleven? A: Since the TwentyEleven theme also includes some default padding and a border for (fluid) images (see CSS below), a width of 100% would push the image outside of its container's width. This is because of how the box model works: border and padding are added to the width/height. img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img { border: 1px solid #DDDDDD; padding: 6px; } A better solution would be to change the box model calculation for images in this case. A CSS3 property called box-sizing is available for that. img.size-full, img.size-large { height: auto; width: auto; max-width: 100%; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } Note: box-sizing does not work in Internet Explorer 7 or lower.
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:415922", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38344" }
[ -0.03192138671875, -0.0299072265625, -0.001049041748046875, 0.035614013671875, -0.032470703125, -0.019256591796875, 0.040496826171875, -0.016876220703125, 0.03082275390625, 0.0182342529296875, -0.05718994140625, 0.0275115966796875, -0.0123443603515625, 0.007297515869140625, 0.005474090576171875, -0.037017822265625, 0.0283966064453125, -0.047760009765625, -0.00490570068359375, 0.0007228851318359375, 0.012237548828125, 0.001605987548828125, -0.01361083984375, 0.0281219482421875, 0.0166015625, -0.0004570484161376953, 0.058685302734375, 0.01316070556640625, -0.0229949951171875, -0.0216522216796875, 0.0244903564453125, 0.0224151611328125, 0.007266998291015625, 0.04296875, -0.037567138671875, 0.006755828857421875, 0.0225067138671875, -0.0000813603401184082, -0.005840301513671875, 0.04962158203125, -0.01068878173828125, 0.0168914794921875, 0.07977294921875, 0.01522064208984375, 0.01023101806640625, -0.0197296142578125, 0.0122833251953125, -0.0300445556640625, 0.0168609619140625, -0.04730224609375, 0.0276641845703125, 0.01971435546875, 0.0640869140625, -0.0280914306640625, -0.0439453125, -0.0237884521484375, -0.05584716796875, -0.01506805419921875, 0.0322265625, 0.0237884521484375, 0.0034923553466796875, -0.0270538330078125, -0.0026092529296875, -0.02069091796875, 0.003543853759765625, -0.0183868408203125, 0.0183563232421875, 0.036407470703125, -0.0209503173828125, -0.01419830322265625, 0.0156707763671875, 0.005947113037109375, 0.0098724365234375, -0.0579833984375, -0.004886627197265625, 0.03997802734375, -0.0163421630859375, -0.00891876220703125, 0.023345947265625, -0.0213470458984375, -0.002964019775390625, -0.0213623046875, -0.001972198486328125, 0.0039043426513671875, 0.01187896728515625, 0.046051025390625, -0.0098114013671875, -0.0192108154296875, -0.0125885009765625, -0.013336181640625, -0.0207366943359375, -0.0230712890625, -0.054107666015625, -0.00007277727127075195, -0.01502227783203125, -0.0241851806640625, -0.0009493827819824219, 0.0219268798828125, 0.007297515869140625, 0.0203094482421875, 0.00867462158203125, -0.054718017578125, 0.0263824462890625, -0.01476287841796875, 0.01268768310546875, -0.0019512176513671875, -0.0012159347534179688, 0.049652099609375, 0.039886474609375, 0.0478515625, -0.0004792213439941406, 0.0313720703125, -0.0088043212890625, -0.0111541748046875, -0.03204345703125, -0.005336761474609375, -0.03839111328125, 0.031280517578125, 0.003570556640625, 0.03387451171875, -0.01131439208984375, 0.002208709716796875, 0.05511474609375, 0.031951904296875, -0.006641387939453125, 0.0220184326171875, -0.01824951171875, -0.04986572265625, -0.048248291015625, 0.0242462158203125, -0.037811279296875, 0.026214599609375, 0.04742431640625, 0.004009246826171875, -0.019439697265625, -0.0260467529296875, -0.00836181640625, -0.034271240234375, -0.04351806640625, 0.05181884765625, -0.0220489501953125, -0.01678466796875, 0.057281494140625, -0.04241943359375, 0.0240631103515625, -0.01102447509765625, 0.0289764404296875, 0.02886962890625, 0.002620697021484375, -0.058135986328125, 0.0243988037109375, 0.03057861328125, 0.073974609375, -0.0095977783203125, -0.03900146484375, -0.050018310546875, 0.040191650390625, -0.041839599609375, -0.063720703125, -0.06494140625, -0.004058837890625, 0.040740966796875, 0.08148193359375, -0.0220794677734375, 0.004734039306640625, -0.05615234375, -0.06402587890625, -0.01326751708984375, 0.01934814453125, -0.01995849609375, -0.0245513916015625, -0.010498046875, -0.018035888671875, -0.0218505859375, -0.006298065185546875, 0.03564453125, 0.0450439453125, -0.0096893310546875, 0.0081787109375, 0.05181884765625, 0.00435638427734375, -0.00734710693359375, 0.043212890625, -0.029937744140625, 0.038970947265625, -0.079833984375, 0.0235748291015625, -0.04180908203125, -0.003448486328125, 0.032073974609375, 0.01355743408203125, 0.0130157470703125, -0.05670166015625, 0.03228759765625, -0.01039886474609375, -0.00782012939453125, -0.027099609375, -0.004390716552734375, -0.0089263916015625, -0.005855560302734375, 0.026519775390625, -0.0019893646240234375, 0.028350830078125, -0.00010502338409423828, -0.029571533203125, 0.0175933837890625, -0.0185089111328125, 0.0252838134765625, -0.023345947265625, 0.02789306640625, 0.006061553955078125, 0.0099639892578125, -0.004497528076171875, -0.03125, -0.0032558441162109375, -0.0226287841796875, 0.0008077621459960938, 0.047515869140625, -0.025177001953125, -0.00550079345703125, 0.0011196136474609375, -0.084228515625, 0.01019287109375, 0.06298828125, 0.0156402587890625, 0.01508331298828125, -0.040313720703125, -0.00203704833984375, 0.00016355514526367188, 0.0002422332763671875, 0.00012576580047607422, 0.054931640625, -0.01009368896484375, 0.0430908203125, -0.0030574798583984375, -0.0247955322265625, 0.0216827392578125, -0.04901123046875, 0.039642333984375, 0.031158447265625, 0.0266876220703125, 0.0244903564453125, -0.0120086669921875, 0.0142669677734375, 0.032012939453125, 0.00506591796875, 0.033233642578125, -0.01448822021484375, 0.0009088516235351562, -0.03570556640625, -0.0154876708984375, -0.04412841796875, 0.0635986328125, -0.03839111328125, 0.004718780517578125, 0.0307464599609375, -0.0131072998046875, -0.01239776611328125, -0.042694091796875, 0.06842041015625, -0.010711669921875, 0.037322998046875, 0.01837158203125, 0.0003993511199951172, -0.0265350341796875, -0.01091766357421875, 0.0030364990234375, 0.0012369155883789062, 0.01934814453125, -0.0122222900390625, 0.00537109375, -0.048248291015625, 0.0005998611450195312, 0.0198516845703125, 0.03192138671875, 0.01413726806640625, -0.03485107421875, 0.0007429122924804688, 0.04351806640625, 0.016448974609375, 0.00518798828125, 0.0308685302734375, -0.031524658203125, -0.00797271728515625, 0.0111846923828125, -0.07305908203125, -0.01520538330078125, 0.03973388671875, 0.0202789306640625, 0.0035266876220703125, 0.0227203369140625, 0.0302581787109375, 0.0176849365234375, 0.031341552734375, -0.0313720703125, -0.0018739700317382812, -0.0186004638671875, -0.0562744140625, 0.06512451171875, -0.05059814453125, 0.07574462890625, 0.07525634765625, -0.046875, 0.05810546875, 0.02117919921875, 0.0233154296875, 0.044158935546875, 0.01245880126953125, 0.009765625, -0.0204925537109375, 0.00044989585876464844, -0.0284881591796875, 0.024444580078125, 0.01091766357421875, -0.007778167724609375, -0.01277923583984375, -0.045196533203125, 0.0100860595703125, -0.047698974609375, -0.033233642578125, 0.0171661376953125, -0.053466796875, -0.0264892578125, -0.00026535987854003906, -0.0250396728515625, -0.009857177734375, 0.0214385986328125, -0.01220703125, -0.0006442070007324219, -0.06707763671875, -0.01096343994140625, -0.07818603515625, -0.034576416015625, 0.025054931640625, 0.018463134765625, -0.0020694732666015625, 0.0024318695068359375, 0.025390625, -0.014984130859375, -0.054656982421875, -0.07086181640625, 0.07708740234375, -0.0164947509765625, -0.060638427734375, -0.0123138427734375, -0.044342041015625, -0.0275115966796875, -0.0121917724609375, -0.0108642578125, -0.0182037353515625, 0.01593017578125, 0.020843505859375, -0.0521240234375, -0.0462646484375, -0.038848876953125, 0.0518798828125, 0.05633544921875, -0.050506591796875, 0.0086212158203125, -0.0616455078125, -0.0098724365234375, -0.057464599609375, -0.060302734375, 0.0283050537109375, 0.057037353515625, 0.00847625732421875, -0.032318115234375, -0.0109405517578125, 0.0265655517578125, 0.0014371871948242188, 0.04730224609375, -0.038909912109375, 0.07293701171875, 0.00536346435546875, 0.0115203857421875, -0.0787353515625, 0.025970458984375, -0.031951904296875, 0.0201416015625, -0.002246856689453125, -0.00018858909606933594, -0.014556884765625, 0.00859832763671875, -0.048736572265625, -0.032379150390625, 0.03131103515625, 0.0130767822265625, 0.05303955078125, -0.01230621337890625, -0.018707275390625, -0.00786590576171875, 0.09210205078125, -0.0106353759765625, -0.020782470703125, 0.0186309814453125, 0.0289764404296875, -0.0107269287109375, -0.023193359375, -0.00487518310546875, -0.0229339599609375, -0.0146484375, 0.00803375244140625, 0.0196533203125, -0.031524658203125, -0.0225982666015625, 0.0233306884765625, -0.016937255859375, -0.016387939453125, 0.02783203125, 0.03424072265625, 0.00005310773849487305, 0.01264190673828125, -0.021240234375, 0.0299530029296875, 0.018890380859375, -0.0222015380859375, -0.1064453125, -0.01934814453125, 0.004180908203125, 0.08001708984375, -0.0290069580078125, 0.042572021484375, -0.063720703125, 0.031402587890625, 0.01183319091796875, 0.000873565673828125, 0.0186920166015625, -0.0012750625610351562, 0.005084991455078125, 0.0013055801391601562, 0.034271240234375, -0.032928466796875, -0.005611419677734375, -0.016998291015625, -0.054412841796875, -0.055999755859375, -0.0132904052734375, -0.041961669921875, 0.0306549072265625, -0.0290679931640625, -0.02001953125, -0.05780029296875, -0.021942138671875, 0.0205230712890625, 0.0019445419311523438, 0.0092620849609375, -0.072509765625, -0.0105133056640625, 0.0210113525390625, -0.007038116455078125, -0.01497650146484375, 0.01971435546875, 0.074462890625, 0.01131439208984375, -0.0011415481567382812, -0.0782470703125, 0.01337432861328125, 0.053009033203125, 0.0390625, -0.0035037994384765625, 0.0204315185546875, -0.036346435546875, 0.0278167724609375, 0.05267333984375, 0.02691650390625, -0.0279388427734375, 0.038055419921875, -0.02020263671875, -0.036773681640625, 0.039215087890625, -0.01580810546875, 0.0030517578125, 0.055694580078125, 0.028076171875, -0.0309906005859375, -0.00399017333984375, 0.0347900390625, -0.00534820556640625, -0.007610321044921875, -0.01453399658203125, 0.0292510986328125, -0.0222015380859375, 0.051300048828125, 0.0821533203125, 0.038818359375, 0.004062652587890625, 0.0130462646484375, 0.0303192138671875, 0.0090179443359375, 0.029388427734375, -0.0169525146484375, -0.0205078125, 0.03253173828125, 0.0259552001953125, -0.0117950439453125, 0.039459228515625, 0.0011243820190429688, 0.014801025390625, 0.009124755859375, -0.019500732421875, -0.03948974609375, 0.00952911376953125, 0.03631591796875, 0.023040771484375, -0.006191253662109375, 0.039215087890625, 0.01198577880859375, -0.006092071533203125, -0.017822265625, -0.0270538330078125, 0.00506591796875, -0.042755126953125, -0.040618896484375, 0.0098114013671875, -0.040557861328125, 0.0109100341796875, -0.020599365234375, 0.022857666015625, -0.0170440673828125, -0.014495849609375, 0.01142120361328125, 0.014007568359375, 0.040985107421875, 0.0235443115234375, -0.0186614990234375, -0.015472412109375, 0.0301666259765625, 0.0019435882568359375, -0.0210418701171875, 0.00727081298828125, 0.0066680908203125, -0.002727508544921875, 0.04931640625, 0.0199127197265625, 0.005268096923828125, 0.0074462890625, -0.0004546642303466797, -0.014373779296875, -0.058990478515625, -0.05731201171875, 0.002140045166015625, 0.057373046875, 0.048736572265625, -0.019073486328125, -0.052642822265625, -0.028961181640625, -0.03668212890625, 0.01044464111328125, 0.033599853515625, -0.07977294921875, 0.06927490234375, 0.059173583984375, -0.035430908203125, -0.043243408203125, -0.0234527587890625, -0.0093994140625, 0.03619384765625, -0.022796630859375, -0.0273284912109375, 0.0284423828125, -0.047760009765625, -0.01186370849609375, -0.02362060546875, 0.034027099609375, -0.0631103515625, 0.053436279296875, -0.02264404296875, -0.01088714599609375, 0.021942138671875, -0.0601806640625, -0.015655517578125, -0.007198333740234375, 0.08465576171875, -0.016357421875, 0.0426025390625, -0.0172882080078125, -0.0156097412109375, -0.01430511474609375, -0.01910400390625, -0.0080413818359375, -0.0379638671875, 0.055145263671875, 0.0413818359375, -0.0009007453918457031, -0.033721923828125, -0.00384521484375, 0.0007319450378417969, -0.053680419921875, -0.03900146484375, -0.02215576171875, 0.007465362548828125, 0.01434326171875, -0.00616455078125, -0.003932952880859375, 0.00009799003601074219, -0.00905609130859375, 0.01531982421875, -0.03265380859375, 0.023223876953125, 0.0007948875427246094, 0.031158447265625, -0.036407470703125, -0.0020294189453125, -0.0273895263671875, 0.048004150390625, -0.069091796875, 0.0333251953125, -0.00867462158203125, 0.01824951171875, 0.0938720703125, -0.0462646484375, -0.053955078125, 0.019317626953125, -0.0176239013671875, 0.03338623046875, 0.060821533203125, -0.01508331298828125, -0.00424957275390625, 0.06805419921875, 0.00615692138671875, 0.0273590087890625, 0.0095672607421875, 0.00983428955078125, -0.0019588470458984375, -0.0188751220703125, 0.00782012939453125, 0.01497650146484375, 0.0281829833984375, 0.005069732666015625, 0.017547607421875, 0.0338134765625, -0.0142669677734375, 0.027557373046875, 0.0098419189453125, 0.0732421875, -0.0095367431640625, 0.0166473388671875, 0.0160064697265625, -0.0595703125, 0.01788330078125, -0.011871337890625, 0.004116058349609375, 0.01483917236328125, 0.00995635986328125, 0.0237884521484375, -0.0211029052734375, 0.0023193359375, 0.01378631591796875, -0.0109405517578125, 0.0145111083984375, 0.024932861328125, 0.02203369140625, -0.0303802490234375, 0.020263671875, 0.0307769775390625, 0.034698486328125, 0.01300048828125, 0.032470703125, -0.051666259765625, -0.01094818115234375, -0.004138946533203125, -0.024871826171875, -0.00460052490234375, -0.0302886962890625, 0.0511474609375, -0.005367279052734375, 0.0244598388671875, 0.05340576171875, -0.00772857666015625, 0.0221405029296875, 0.01499176025390625, -0.037445068359375, 0.0196380615234375, 0.00223541259765625, 0.036346435546875, -0.0263214111328125, -0.03631591796875, 0.00279998779296875, -0.044464111328125, -0.0022029876708984375, -0.0016689300537109375, -0.04248046875, 0.046875, -0.042327880859375, 0.0126495361328125, 0.034332275390625, 0.02337646484375, -0.01934814453125, 0.0138702392578125, 0.0124969482421875, -0.00823974609375, -0.026092529296875, -0.0030803680419921875, -0.04779052734375, -0.005458831787109375, -0.0313720703125, -0.025054931640625, 0.0209808349609375, -0.0312042236328125, 0.02838134765625, 0.0262298583984375, 0.002811431884765625, 0.007049560546875, 0.010284423828125, 0.01229095458984375, -0.00032973289489746094, -0.047271728515625, -0.037994384765625, 0.0004031658172607422, 0.012359619140625, -0.0271759033203125, 0.00518798828125, -0.01885986328125, -0.00943756103515625, -0.0284271240234375, -0.0255126953125, 0.059112548828125, 0.052032470703125, 0.048919677734375, 0.001422882080078125, -0.029296875, 0.0218963623046875, -0.0303192138671875, -0.053558349609375, 0.00832366943359375, -0.0438232421875, -0.060333251953125, 0.003986358642578125, -0.0143280029296875, -0.0306854248046875, 0.034515380859375, 0.04931640625, -0.062225341796875, 0.01375579833984375, 0.045379638671875, -0.03765869140625, 0.03668212890625, 0.018035888671875, 0.03985595703125, -0.03509521484375, -0.0168914794921875, -0.0252685546875, 0.053924560546875, 0.000415802001953125, -0.0112152099609375, 0.038665771484375, 0.0266876220703125, 0.0243072509765625, -0.029083251953125, -0.004146575927734375, 0.0013761520385742188, -0.00733184814453125, -0.044281005859375, -0.00009119510650634766, 0.00411224365234375, -0.03668212890625, 0.007022857666015625, 0.044403076171875, -0.00893402099609375, -0.014984130859375, -0.0445556640625, -0.007755279541015625, -0.00737762451171875, 0.008880615234375, -0.005138397216796875, -0.01064300537109375, -0.036224365234375, 0.01432037353515625, -0.0046844482421875, -0.0011701583862304688, 0.03564453125, 0.0228118896484375, 0.00279998779296875, 0.006805419921875, -0.0533447265625, 0.0023345947265625, -0.035400390625, 0.0181121826171875, 0.0029449462890625, 0.03375244140625, 0.006618499755859375, 0.022552490234375, 0.0001289844512939453, 0.001972198486328125, -0.042236328125, 0.0168609619140625, -0.0002906322479248047, 0.050384521484375, -0.00823974609375, 0.0513916015625, -0.0218963623046875, 0.026397705078125, -0.006763458251953125, -0.048614501953125, -0.0131072998046875, 0.0235748291015625, -0.0180206298828125, -0.0226898193359375, -0.019927978515625, -0.01348876953125, 0.0078582763671875, -0.0244598388671875, 0.045379638671875, 0.044036865234375, -0.0016994476318359375, -0.008819580078125, -0.00121307373046875, 0.0731201171875, 0.0239715576171875, -0.0207977294921875, 0.03955078125, -0.02081298828125, -0.04351806640625, -0.00809478759765625, -0.027618408203125, 0.04644775390625, -0.054473876953125, -0.0005230903625488281, -0.01177978515625, -0.037811279296875, 0.007282257080078125, 0.02642822265625, -0.0272979736328125, 0.037017822265625, -0.01503753662109375, -0.01369476318359375, -0.00292205810546875, 0.01364898681640625, -0.007511138916015625, 0.0294036865234375, 0.02435302734375, -0.01396942138671875, 0.0036773681640625, 0.034088134765625, -0.0042724609375, 0.0169830322265625, 0.00942230224609375, 0.041778564453125, -0.01488494873046875, 0.0258636474609375, 0.0296173095703125, -0.048126220703125, 0.0279998779296875, 0.025604248046875, -0.00949859619140625, -0.035797119140625, -0.0316162109375, 0.00027751922607421875, -0.024566650390625, -0.034515380859375, 0.0183258056640625, -0.05853271484375, -0.037078857421875, -0.032958984375, 0.02825927734375, 0.01256561279296875, -0.0170440673828125, -0.033905029296875, 0.00225067138671875, -0.02252197265625, -0.01555633544921875, 0.0184173583984375, -0.043548583984375, -0.0163116455078125, 0.01102447509765625, 0.0005259513854980469, -0.01959228515625, 0.032623291015625, -0.0170745849609375, 0.022430419921875, 0.022857666015625, -0.00849151611328125, -0.024993896484375, -0.00664520263671875, -0.012786865234375, -0.001007080078125, -0.0013074874877929688, 0.0384521484375, -0.024658203125, -0.01308441162109375, 0.00856781005859375, 0.052520751953125, 0.03173828125, -0.043670654296875, 0.0028057098388671875, 0.0592041015625, -0.01947021484375, -0.0166473388671875, 0.01629638671875, -0.0005249977111816406, -0.0119476318359375, -0.02587890625, 0.0148773193359375, -0.0185394287109375, 0.01291656494140625, -0.036407470703125, -0.031585693359375, -0.002071380615234375, 0.005954742431640625, -0.0255279541015625, -0.0025844573974609375, 0.031219482421875, 0.0022258758544921875, -0.0164794921875, -0.024658203125, -0.04156494140625, -0.0305633544921875, 0.0162506103515625, -0.04315185546875, -0.045135498046875, 0.0728759765625, 0.0116119384765625, 0.00464630126953125, 0.0218048095703125, -0.023956298828125, -0.01541900634765625, 0.005863189697265625, 0.0168304443359375, 0.052764892578125, -0.004917144775390625, 0.01163482666015625, 0.0197296142578125, 0.021026611328125, -0.0460205078125, -0.0162353515625, 0.0145111083984375, 0.0300140380859375, -0.010772705078125, 0.017364501953125, -0.022308349609375, 0.00463104248046875, -0.034332275390625, -0.049560546875, -0.002361297607421875, 0.0171356201171875, -0.045623779296875, -0.03759765625, -0.0284271240234375, -0.002162933349609375, 0.0138702392578125, -0.0266876220703125, 0.02294921875, -0.0279388427734375, 0.052703857421875, 0.05029296875, 0.0305938720703125, 0.04681396484375, 0.0195159912109375, -0.0222930908203125, 0.0305023193359375, 0.0155792236328125, 0.055816650390625, -0.03509521484375, 0.007511138916015625, -0.0014352798461914062, 0.0227508544921875, -0.016845703125, -0.01483154296875, 0.024505615234375, 0.036651611328125, -0.0088348388671875, -0.018707275390625, 0.0401611328125, 0.01457977294921875, -0.0295867919921875, 0.00812530517578125, -0.0262451171875, -0.0276947021484375, 0.0657958984375, 0.03106689453125, -0.03826904296875, 0.005153656005859375, 0.0181121826171875, -0.051300048828125, -0.04840087890625, 0.021942138671875, -0.028564453125, -0.005260467529296875, -0.028594970703125, -0.06768798828125, 0.004627227783203125, -0.06298828125, -0.0157012939453125, -0.0164031982421875, 0.0833740234375, 0.04425048828125, -0.0447998046875, -0.004344940185546875, 0.0004622936248779297, -0.029205322265625, 0.01531219482421875, -0.03680419921875, 0.01129913330078125, 0.054351806640625, -0.04437255859375, 0.006137847900390625, 0.02880859375, 0.0234832763671875, -0.03564453125, -0.00533294677734375, 0.0323486328125, -0.011505126953125, -0.030242919921875, 0.00891876220703125, 0.036651611328125, -0.03546142578125, -0.05816650390625, -0.009735107421875, -0.0199737548828125, -0.00911712646484375, -0.050445556640625, 0.03277587890625, -0.004608154296875, -0.0244293212890625, 0.04718017578125, -0.02020263671875, 0.0161285400390625, 0.0264434814453125, 0.00537872314453125, -0.035308837890625, 0.0262908935546875, 0.0272064208984375, 0.0142974853515625, 0.00799560546875 ]
7c2becff450f7653f0d78d3f9f52d42a27a8b0b5
Wordpress Stackexchange Q: What happened to convertEntities? I was using the javascript function convertEntities in a plugin that worked great until recently and now the function seems to have vanished under 3.3 - Is there a substitute function I should be using? I am tempted to just copy the function into my script - is there a reason that is a bad idea? A: convertEntities was removed because strings are passed to JavaScript via json_encode() now: http://core.trac.wordpress.org/ticket/11520
Q: What happened to convertEntities? I was using the javascript function convertEntities in a plugin that worked great until recently and now the function seems to have vanished under 3.3 - Is there a substitute function I should be using? I am tempted to just copy the function into my script - is there a reason that is a bad idea? A: convertEntities was removed because strings are passed to JavaScript via json_encode() now: http://core.trac.wordpress.org/ticket/11520
wordpress
{ "language": "en", "length": 75, "provenance": "stackexchange_00019.jsonl.gz:415923", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38353" }
[ 0.039215087890625, 0.001171112060546875, -0.0379638671875, -0.0146331787109375, 0.0291595458984375, -0.047698974609375, 0.041351318359375, 0.0010004043579101562, 0.0491943359375, 0.0049896240234375, -0.022674560546875, -0.01739501953125, 0.01514434814453125, -0.0285797119140625, -0.02008056640625, -0.01433563232421875, 0.049468994140625, -0.04974365234375, 0.017822265625, 0.00460052490234375, 0.030364990234375, 0.0364990234375, 0.02105712890625, 0.04315185546875, 0.028900146484375, -0.033203125, 0.0721435546875, -0.044952392578125, 0.033111572265625, -0.0169219970703125, 0.030609130859375, 0.004302978515625, 0.0201263427734375, 0.033660888671875, -0.048187255859375, 0.0209808349609375, 0.0196990966796875, 0.011474609375, 0.0022945404052734375, 0.0253753662109375, 0.04486083984375, -0.01126861572265625, -0.0240020751953125, -0.017425537109375, 0.0003256797790527344, -0.047698974609375, 0.059234619140625, -0.034149169921875, 0.0119171142578125, -0.00994873046875, 0.040618896484375, -0.0183563232421875, 0.0445556640625, 0.0053558349609375, -0.0193023681640625, -0.00347900390625, -0.06451416015625, 0.05218505859375, -0.0108489990234375, 0.06280517578125, 0.0260009765625, 0.04315185546875, -0.0294952392578125, -0.0203094482421875, 0.0211944580078125, 0.00818634033203125, -0.00788116455078125, 0.017852783203125, 0.004177093505859375, 0.02252197265625, 0.0011358261108398438, -0.038543701171875, 0.00722503662109375, 0.0136566162109375, 0.0038738250732421875, -0.01244354248046875, 0.0109405517578125, 0.01459503173828125, 0.01031494140625, 0.02630615234375, 0.03155517578125, 0.04205322265625, -0.016082763671875, -0.004222869873046875, 0.0117034912109375, 0.004161834716796875, 0.0035190582275390625, -0.044891357421875, -0.00945281982421875, 0.0006127357482910156, -0.01082611083984375, 0.025482177734375, -0.0187530517578125, 0.021514892578125, -0.0230255126953125, -0.01885986328125, -0.009033203125, -0.00817108154296875, -0.0178985595703125, -0.007152557373046875, 0.048614501953125, -0.048858642578125, 0.0150299072265625, -0.0005764961242675781, -0.006992340087890625, 0.00034499168395996094, -0.0051116943359375, -0.0273284912109375, 0.02593994140625, 0.042266845703125, -0.023101806640625, 0.029296875, 0.0251922607421875, -0.03076171875, 0.0201416015625, 0.0109405517578125, 0.00203704833984375, 0.06549072265625, 0.0195159912109375, 0.045623779296875, 0.0207366943359375, -0.0094146728515625, -0.033233642578125, 0.04693603515625, 0.0287017822265625, -0.004840850830078125, -0.052520751953125, 0.05108642578125, 0.0005917549133300781, 0.0022640228271484375, -0.02734375, 0.0126495361328125, 0.062225341796875, 0.0301361083984375, -0.00254058837890625, -0.0166778564453125, 0.053253173828125, 0.0105133056640625, -0.0084381103515625, 0.01384735107421875, 0.0036182403564453125, -0.02630615234375, -0.0162353515625, -0.01155853271484375, -0.0207366943359375, -0.007183074951171875, -0.0146636962890625, 0.0408935546875, 0.03192138671875, -0.02337646484375, 0.0178680419921875, -0.05828857421875, 0.034149169921875, -0.007171630859375, -0.00812530517578125, -0.038116455078125, 0.0165252685546875, -0.045654296875, -0.003284454345703125, -0.0511474609375, -0.00742340087890625, -0.01824951171875, -0.02435302734375, -0.020721435546875, -0.01373291015625, -0.004459381103515625, 0.0258026123046875, 0.0254669189453125, 0.0272979736328125, 0.08038330078125, -0.0280609130859375, -0.050994873046875, -0.02203369140625, 0.034698486328125, -0.0063018798828125, 0.0216827392578125, -0.0006895065307617188, 0.01096343994140625, 0.045166015625, 0.0224151611328125, -0.00543975830078125, -0.031524658203125, 0.055938720703125, -0.017364501953125, -0.027679443359375, 0.051849365234375, 0.00634765625, 0.0293426513671875, 0.00897216796875, 0.00632476806640625, 0.01910400390625, 0.028656005859375, -0.037689208984375, 0.00902557373046875, 0.039581298828125, 0.00356292724609375, -0.03619384765625, -0.01348114013671875, 0.01409149169921875, -0.04290771484375, -0.00855255126953125, 0.038665771484375, -0.038238525390625, -0.0051727294921875, -0.003025054931640625, -0.00041365623474121094, 0.0195465087890625, 0.02734375, -0.040252685546875, 0.0148162841796875, 0.030975341796875, -0.013946533203125, -0.061767578125, 0.08905029296875, 0.01119232177734375, -0.0311431884765625, 0.01280975341796875, 0.0027484893798828125, -0.0256500244140625, -0.019073486328125, -0.0206756591796875, -0.0213775634765625, -0.0199737548828125, 0.05804443359375, -0.03424072265625, -0.00215911865234375, -0.0097198486328125, 0.004589080810546875, 0.006130218505859375, 0.01001739501953125, 0.0699462890625, -0.0115966796875, 0.03448486328125, 0.05755615234375, -0.0027484893798828125, -0.0067596435546875, -0.01502227783203125, -0.0633544921875, 0.003749847412109375, 0.04150390625, 0.029815673828125, 0.0246734619140625, -0.032012939453125, -0.043975830078125, 0.04278564453125, -0.052703857421875, -0.00424957275390625, -0.020599365234375, 0.02960205078125, 0.00927734375, -0.03118896484375, -0.03253173828125, 0.044647216796875, -0.0187530517578125, 0.04150390625, 0.02545166015625, -0.0005631446838378906, -0.0200347900390625, 0.020782470703125, 0.0177459716796875, -0.0036487579345703125, 0.01259613037109375, -0.0104217529296875, 0.004657745361328125, 0.01409912109375, 0.01343536376953125, 0.0234527587890625, 0.0183868408203125, -0.0206451416015625, 0.0030078887939453125, 0.0166168212890625, 0.01375579833984375, 0.007694244384765625, 0.05474853515625, 0.046722412109375, 0.055023193359375, -0.040374755859375, -0.036285400390625, 0.046905517578125, 0.0579833984375, 0.006320953369140625, 0.041656494140625, -0.08062744140625, -0.018951416015625, -0.002025604248046875, 0.032073974609375, -0.034698486328125, 0.027984619140625, -0.0276947021484375, -0.021240234375, 0.029327392578125, 0.021026611328125, 0.0005345344543457031, -0.0089569091796875, 0.0168914794921875, -0.00359344482421875, -0.00039887428283691406, -0.007183074951171875, -0.008087158203125, -0.04144287109375, 0.0016565322875976562, 0.032806396484375, -0.011138916015625, -0.038299560546875, 0.024261474609375, 0.03497314453125, 0.04388427734375, 0.0228271484375, 0.0286407470703125, 0.0390625, -0.060882568359375, -0.03985595703125, 0.0014362335205078125, 0.022247314453125, -0.04827880859375, -0.05963134765625, -0.04437255859375, -0.010986328125, -0.1142578125, -0.0279388427734375, -0.0218048095703125, -0.0290069580078125, -0.021148681640625, -0.0197601318359375, -0.0086669921875, 0.0167694091796875, -0.02984619140625, 0.0029430389404296875, 0.06976318359375, 0.0151519775390625, -0.07598876953125, -0.0010385513305664062, -0.08282470703125, 0.006061553955078125, -0.015869140625, 0.0048980712890625, 0.0007696151733398438, -0.024078369140625, -0.0101165771484375, -0.0185394287109375, 0.00786590576171875, 0.004878997802734375, 0.006664276123046875, 0.00206756591796875, 0.05426025390625, -0.0303802490234375, -0.0169830322265625, 0.0014581680297851562, 0.0216827392578125, 0.02984619140625, -0.035400390625, -0.0012941360473632812, -0.03253173828125, 0.0203704833984375, -0.02362060546875, 0.028900146484375, 0.059783935546875, 0.045135498046875, 0.01666259765625, -0.006839752197265625, -0.01428985595703125, -0.00516510009765625, -0.037261962890625, 0.027862548828125, 0.00795745849609375, -0.0025310516357421875, -0.0069580078125, 0.0269775390625, -0.0045928955078125, -0.0192718505859375, -0.01485443115234375, -0.0252532958984375, 0.028411865234375, -0.00829315185546875, 0.0124359130859375, -0.0013523101806640625, 0.03802490234375, -0.01419830322265625, 0.033111572265625, 0.0205535888671875, 0.0291290283203125, 0.01654052734375, -0.01161956787109375, -0.0283050537109375, -0.019744873046875, 0.05657958984375, 0.00955963134765625, -0.0018854141235351562, -0.041656494140625, -0.0367431640625, -0.035003662109375, 0.05096435546875, 0.03485107421875, -0.0083770751953125, 0.032501220703125, -0.01332855224609375, -0.0452880859375, 0.03729248046875, -0.06683349609375, -0.005123138427734375, 0.0372314453125, -0.0305938720703125, -0.0391845703125, 0.020782470703125, -0.00812530517578125, 0.030975341796875, 0.04827880859375, -0.0208740234375, 0.0322265625, -0.04022216796875, 0.004047393798828125, 0.01305389404296875, 0.00203704833984375, -0.0264129638671875, -0.0201568603515625, -0.031097412109375, -0.039520263671875, -0.0243682861328125, -0.048858642578125, 0.08282470703125, 0.049957275390625, -0.032562255859375, -0.0021228790283203125, 0.04205322265625, 0.0296630859375, -0.042327880859375, 0.014617919921875, -0.008544921875, -0.01166534423828125, -0.026458740234375, -0.0162506103515625, -0.046905517578125, -0.0289764404296875, -0.038177490234375, -0.02392578125, -0.036834716796875, -0.0288238525390625, -0.048309326171875, -0.00868988037109375, -0.029815673828125, -0.0401611328125, -0.056060791015625, -0.02044677734375, -0.01146697998046875, -0.023193359375, 0.006103515625, -0.039764404296875, -0.0171966552734375, 0.02435302734375, 0.0298309326171875, 0.0029010772705078125, -0.0127716064453125, 0.004611968994140625, 0.00897216796875, -0.0416259765625, 0.0227508544921875, -0.035980224609375, 0.0252685546875, -0.0301361083984375, 0.03619384765625, 0.0038738250732421875, -0.044525146484375, 0.108642578125, -0.0125274658203125, 0.0222930908203125, -0.07098388671875, 0.06201171875, 0.0100555419921875, 0.0301666259765625, -0.0001596212387084961, 0.006916046142578125, 0.025146484375, 0.007755279541015625, 0.01136016845703125, -0.02685546875, 0.05462646484375, 0.026214599609375, -0.01360321044921875, -0.022003173828125, -0.0109100341796875, -0.05621337890625, 0.020721435546875, 0.01409912109375, 0.0031223297119140625, 0.01153564453125, 0.004650115966796875, 0.021759033203125, 0.023712158203125, 0.0007443428039550781, -0.039031982421875, -0.0102386474609375, -0.034423828125, 0.04840087890625, -0.066650390625, -0.00678253173828125, -0.0166168212890625, -0.0006012916564941406, 0.01849365234375, 0.019500732421875, -0.0119781494140625, -0.0033359527587890625, -0.00738525390625, -0.00826263427734375, -0.0187225341796875, -0.02606201171875, 0.0012607574462890625, 0.06097412109375, 0.01837158203125, 0.00365447998046875, -0.04827880859375, 0.06695556640625, -0.01537322998046875, 0.00765228271484375, -0.005344390869140625, 0.0022754669189453125, -0.00487518310546875, 0.032501220703125, -0.01885986328125, 0.0179595947265625, 0.00487518310546875, 0.0038013458251953125, -0.034423828125, 0.044891357421875, 0.03369140625, -0.04107666015625, 0.006542205810546875, 0.023406982421875, -0.01270294189453125, -0.044525146484375, -0.0092010498046875, 0.031982421875, 0.027496337890625, 0.006221771240234375, -0.0110931396484375, 0.0107879638671875, 0.00044417381286621094, -0.01473236083984375, -0.0157623291015625, 0.01525115966796875, 0.0011606216430664062, 0.00958251953125, 0.02301025390625, 0.007625579833984375, 0.029754638671875, 0.02490234375, 0.0044708251953125, 0.0146026611328125, 0.0175933837890625, -0.025634765625, -0.0017862319946289062, -0.03509521484375, -0.0131683349609375, 0.0034351348876953125, -0.0032444000244140625, -0.0195465087890625, -0.0037288665771484375, -0.012969970703125, -0.00777435302734375, -0.032470703125, 0.037384033203125, 0.02423095703125, 0.0016384124755859375, -0.01035308837890625, -0.0307769775390625, 0.0207977294921875, -0.019134521484375, 0.07183837890625, 0.00733184814453125, -0.034210205078125, -0.0222625732421875, -0.0111846923828125, -0.03167724609375, 0.0010175704956054688, 0.045623779296875, -0.044830322265625, 0.018035888671875, 0.0229644775390625, 0.0264434814453125, -0.04119873046875, -0.08294677734375, 0.02276611328125, -0.000743865966796875, 0.01194000244140625, 0.0255279541015625, 0.0077972412109375, 0.004756927490234375, 0.004947662353515625, 0.04425048828125, -0.00684356689453125, -0.001567840576171875, 0.004741668701171875, -0.037628173828125, 0.0311279296875, 0.007038116455078125, -0.048370361328125, -0.040863037109375, 0.00824737548828125, -0.0149688720703125, 0.039154052734375, -0.0264892578125, 0.012725830078125, -0.00759124755859375, -0.007171630859375, -0.01152801513671875, 0.019378662109375, 0.00794219970703125, -0.01837158203125, 0.037353515625, -0.01971435546875, -0.026092529296875, 0.003467559814453125, 0.0220489501953125, -0.015899658203125, -0.0002789497375488281, -0.02056884765625, -0.0074005126953125, 0.006252288818359375, -0.0181884765625, -0.035614013671875, 0.0016717910766601562, 0.0240478515625, -0.0221710205078125, 0.0308837890625, 0.01183319091796875, 0.025299072265625, -0.007114410400390625, -0.0136871337890625, 0.01053619384765625, -0.01399993896484375, -0.0176544189453125, -0.02825927734375, -0.01482391357421875, 0.00548553466796875, 0.0843505859375, 0.05389404296875, -0.1304931640625, 0.0199432373046875, -0.0043487548828125, 0.035675048828125, 0.056610107421875, 0.03094482421875, -0.004253387451171875, -0.00234222412109375, -0.00433349609375, 0.0208892822265625, 0.005054473876953125, 0.0203857421875, 0.0230865478515625, -0.033935546875, -0.0017328262329101562, -0.001983642578125, 0.021575927734375, 0.014617919921875, 0.035797119140625, -0.0236358642578125, 0.0389404296875, -0.0251007080078125, -0.01052093505859375, 0.0357666015625, -0.0355224609375, -0.061187744140625, 0.041290283203125, -0.01251220703125, -0.013519287109375, -0.08612060546875, 0.005451202392578125, 0.049102783203125, 0.054595947265625, -0.02197265625, -0.038787841796875, 0.047637939453125, 0.00528717041015625, -0.031646728515625, -0.0452880859375, 0.02362060546875, 0.052734375, -0.0606689453125, 0.047088623046875, 0.00380706787109375, -0.034088134765625, -0.006862640380859375, 0.007232666015625, 0.03033447265625, 0.004604339599609375, -0.024322509765625, 0.05584716796875, -0.018310546875, -0.035675048828125, 0.00940704345703125, 0.038482666015625, -0.065673828125, -0.047576904296875, 0.0181884765625, -0.04449462890625, -0.0073394775390625, 0.016357421875, -0.059295654296875, 0.08160400390625, 0.034088134765625, -0.0091094970703125, -0.0147247314453125, 0.03692626953125, -0.033050537109375, 0.0118408203125, -0.00690460205078125, -0.0022678375244140625, -0.05230712890625, 0.02197265625, -0.003459930419921875, 0.02508544921875, -0.009918212890625, -0.00585174560546875, 0.0116729736328125, 0.00682830810546875, 0.0140228271484375, -0.0041351318359375, -0.0100250244140625, 0.01873779296875, -0.0290679931640625, 0.007343292236328125, 0.0119171142578125, 0.01377105712890625, 0.08563232421875, -0.0202178955078125, 0.038177490234375, -0.00015294551849365234, 0.03082275390625, 0.025115966796875, 0.0214080810546875, 0.04083251953125, -0.029327392578125, 0.00736236572265625, -0.051788330078125, -0.0188446044921875, 0.0460205078125, -0.055328369140625, -0.01287841796875, 0.050323486328125, 0.01284027099609375, 0.0106201171875, -0.015625, -0.023040771484375, 0.037872314453125, -0.0116119384765625, 0.03802490234375, 0.0260009765625, 0.0255126953125, 0.0199127197265625, -0.047515869140625, 0.006313323974609375, -0.01003265380859375, -0.050537109375, 0.063232421875, 0.0311737060546875, 0.0201416015625, -0.046051025390625, -0.01419830322265625, 0.046051025390625, 0.08355712890625, -0.0501708984375, -0.0577392578125, -0.003833770751953125, 0.0145416259765625, 0.061492919921875, 0.015380859375, 0.0631103515625, 0.0138397216796875, 0.018585205078125, 0.03326416015625, -0.01030731201171875, 0.00890350341796875, 0.00946044921875, 0.0309906005859375, 0.08221435546875, -0.041778564453125, 0.002887725830078125, -0.08319091796875, 0.0304107666015625, 0.0217132568359375, 0.07275390625, 0.029266357421875, 0.069091796875, 0.0191802978515625, -0.05242919921875, -0.01812744140625, 0.058807373046875, 0.0252227783203125, -0.00045180320739746094, -0.004241943359375, -0.01227569580078125, -0.019012451171875, 0.017791748046875, -0.031280517578125, 0.036407470703125, 0.028900146484375, 0.000537872314453125, -0.039154052734375, -0.005420684814453125, 0.0579833984375, -0.045806884765625, 0.0106048583984375, -0.0255279541015625, 0.0208740234375, 0.032562255859375, 0.0080108642578125, -0.032745361328125, 0.0029392242431640625, 0.07733154296875, 0.0021724700927734375, 0.046905517578125, -0.0007319450378417969, -0.031494140625, 0.00518798828125, -0.017822265625, 0.096923828125, 0.0256805419921875, 0.0106353759765625, -0.0145111083984375, -0.001804351806640625, -0.01233673095703125, -0.00811767578125, 0.01436614990234375, -0.016754150390625, 0.0411376953125, -0.0277252197265625, -0.043121337890625, 0.0226898193359375, 0.039703369140625, -0.0303497314453125, 0.0286102294921875, 0.0283203125, -0.0256805419921875, -0.061492919921875, -0.016754150390625, -0.0189666748046875, 0.004364013671875, -0.005130767822265625, 0.08660888671875, -0.00928497314453125, 0.010589599609375, -0.0111541748046875, -0.00402069091796875, -0.0182952880859375, -0.0145111083984375, -0.01360321044921875, 0.004650115966796875, 0.0077056884765625, -0.009521484375, -0.03350830078125, 0.01116943359375, 0.0088348388671875, -0.0408935546875, -0.0360107421875, 0.0286865234375, 0.0229644775390625, 0.04302978515625, 0.03167724609375, -0.02362060546875, -0.01715087890625, -0.03509521484375, -0.048004150390625, 0.031463623046875, 0.025421142578125, 0.0251312255859375, 0.021087646484375, 0.030120849609375, -0.0229339599609375, 0.0020313262939453125, -0.017242431640625, 0.01209259033203125, 0.022857666015625, 0.046630859375, 0.054046630859375, 0.02020263671875, -0.01480865478515625, 0.043548583984375, 0.0211334228515625, -0.0250701904296875, 0.031005859375, 0.018463134765625, -0.01174163818359375, 0.0198516845703125, -0.002765655517578125, -0.0252532958984375, -0.032379150390625, 0.035491943359375, -0.036468505859375, -0.024749755859375, 0.0200347900390625, -0.01360321044921875, -0.0182952880859375, -0.00753021240234375, 0.01424407958984375, -0.0029163360595703125, 0.01422882080078125, -0.04962158203125, 0.0112457275390625, 0.011199951171875, 0.0216827392578125, -0.059722900390625, 0.057769775390625, -0.004291534423828125, -0.004108428955078125, -0.00012421607971191406, 0.006805419921875, -0.00814056396484375, 0.0004673004150390625, -0.01544189453125, -0.0180816650390625, -0.024566650390625, 0.042236328125, 0.01503753662109375, 0.040618896484375, 0.046844482421875, -0.05255126953125, -0.08013916015625, 0.03985595703125, 0.044219970703125, 0.0789794921875, 0.04315185546875, -0.005626678466796875, -0.0355224609375, 0.0254058837890625, -0.036590576171875, -0.01522064208984375, 0.043487548828125, -0.02044677734375, -0.05157470703125, -0.003932952880859375, 0.01416015625, 0.042510986328125, -0.012481689453125, -0.06146240234375, 0.05908203125, -0.00821685791015625, -0.0269317626953125, -0.050994873046875, -0.00789642333984375, 0.034942626953125, -0.0141143798828125, -0.044036865234375, 0.01419830322265625, -0.07391357421875, 0.0143890380859375, 0.018035888671875, 0.026031494140625, 0.006359100341796875, -0.025726318359375, -0.07562255859375, 0.00801849365234375, -0.0014505386352539062, 0.039398193359375, -0.0008096694946289062, 0.013214111328125, 0.0197906494140625, 0.0290374755859375, -0.01537322998046875, 0.0283203125, -0.0002167224884033203, -0.0153656005859375, 0.0189208984375, 0.03961181640625, 0.016815185546875, 0.011383056640625, -0.00218963623046875, 0.005401611328125, -0.01236724853515625, -0.0135650634765625, -0.004039764404296875, -0.01096343994140625, 0.0161895751953125, -0.01262664794921875, -0.0086822509765625, -0.035858154296875, -0.0200653076171875, 0.002178192138671875, 0.01172637939453125, 0.014068603515625, -0.03411865234375, -0.0106353759765625, -0.01971435546875, -0.0274658203125, -0.0092010498046875, -0.035552978515625, -0.0341796875, 0.0140380859375, -0.01340484619140625, -0.01326751708984375, 0.0273284912109375, 0.0196685791015625, -0.0273895263671875, 0.0528564453125, 0.0022487640380859375, -0.01485443115234375, -0.01305389404296875, 0.018341064453125, -0.00545501708984375, 0.041595458984375, -0.0161590576171875, -0.0231475830078125, 0.005710601806640625, 0.022186279296875, 0.019866943359375, 0.05267333984375, 0.0013761520385742188, -0.01715087890625, 0.004146575927734375, -0.061370849609375, -0.06488037109375, 0.031280517578125, -0.04180908203125, 0.0246734619140625, -0.03265380859375, 0.0305023193359375, 0.053558349609375, -0.02435302734375, 0.006992340087890625, -0.0034427642822265625, -0.01678466796875, -0.035186767578125, 0.006641387939453125, -0.022979736328125, -0.02044677734375, 0.01442718505859375 ]
25870618c30e89420b3795d6ca42e1db3da5d611
Wordpress Stackexchange Q: Get user id from email? I'm working on an email system, and I'm onto the unsubscribing stage. Since most of my users would not know their user ID, I'm asking them to put their email into a text box (definitely preferred, since this IS an email system). In order to change their user meta (their subscribed status), I need to know the users ID. I mean I suppose I could pass it into an email and put it in the unsubscribe link, but I'm planning on sending out emails to people who don't have wordpress accounts. So my main question is this: What logic or functions should I use to determine a users ID from an inputted email address, and if none are found, store them in the wordpress database? Thanks, I appreciate every answer!! A: Couldn't you use: http://codex.wordpress.org/Function_Reference/get_user_by
Q: Get user id from email? I'm working on an email system, and I'm onto the unsubscribing stage. Since most of my users would not know their user ID, I'm asking them to put their email into a text box (definitely preferred, since this IS an email system). In order to change their user meta (their subscribed status), I need to know the users ID. I mean I suppose I could pass it into an email and put it in the unsubscribe link, but I'm planning on sending out emails to people who don't have wordpress accounts. So my main question is this: What logic or functions should I use to determine a users ID from an inputted email address, and if none are found, store them in the wordpress database? Thanks, I appreciate every answer!! A: Couldn't you use: http://codex.wordpress.org/Function_Reference/get_user_by A: You are probably looking for the user_exists function. http://codex.wordpress.org/Function_Reference/email_exists This function will check whether or not a given email address ($email) has already been registered to a username, and returns that users ID (or false if none exists). If the email address does not exist (user_exists returns false), you may want to use the wp_create_user function. http://codex.wordpress.org/Function_Reference/wp_create_user The wp_create_user function allows you to insert a new user into the WordPress database Only do that if you want to create a WordPress user though, which you may or may not. I'm a bit confused by this part of the question. A: You can only get this email and verify if there is any user have this email then change this email by the correspond username like this $login ='[email protected]'; if(is_email( $login )){ if( email_exists( $login )) { $userID__ = email_exists($login); $user_info_kim = get_userdata($userID__); $login = $user_info_kim->user_login; } }
wordpress
{ "language": "en", "length": 289, "provenance": "stackexchange_00019.jsonl.gz:415924", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38357" }
[ 0.039794921875, 0.0117340087890625, 0.009521484375, 0.00888824462890625, 0.009674072265625, -0.02313232421875, 0.046722412109375, -0.06494140625, 0.021087646484375, 0.045074462890625, -0.044158935546875, -0.00994873046875, 0.016326904296875, -0.005695343017578125, -0.035186767578125, -0.0306243896484375, 0.021881103515625, -0.0017461776733398438, -0.00876617431640625, -0.007171630859375, 0.005039215087890625, -0.0037555694580078125, 0.004425048828125, -0.008392333984375, -0.001979827880859375, 0.01331329345703125, 0.05755615234375, -0.007022857666015625, 0.00006246566772460938, -0.00921630859375, -0.0007185935974121094, -0.0078582763671875, 0.0019741058349609375, 0.0036449432373046875, 0.0229949951171875, 0.0265960693359375, 0.027435302734375, 0.002437591552734375, 0.050079345703125, -0.005828857421875, 0.038116455078125, -0.01187896728515625, -0.00812530517578125, -0.01326751708984375, -0.008026123046875, -0.05621337890625, 0.05511474609375, -0.0246429443359375, 0.011749267578125, 0.06158447265625, 0.022216796875, 0.0509033203125, 0.022064208984375, -0.0095367431640625, 0.00826263427734375, -0.0014066696166992188, -0.003002166748046875, -0.005626678466796875, 0.034881591796875, -0.0180511474609375, -0.025146484375, -0.0109100341796875, 0.0298004150390625, -0.00907135009765625, -0.006961822509765625, -0.0109710693359375, -0.0006918907165527344, 0.0170440673828125, 0.021209716796875, -0.0166168212890625, -0.006214141845703125, 0.018768310546875, -0.0040435791015625, -0.01450347900390625, -0.02587890625, 0.00826263427734375, 0.0215606689453125, -0.003459930419921875, -0.005146026611328125, -0.0027103424072265625, -0.04083251953125, -0.032470703125, -0.1109619140625, 0.0447998046875, -0.015655517578125, 0.06903076171875, -0.0288238525390625, -0.0202484130859375, -0.044464111328125, -0.0087890625, -0.02447509765625, -0.00875091552734375, -0.0274200439453125, -0.005641937255859375, -0.034423828125, 0.0003380775451660156, 0.006191253662109375, 0.07373046875, -0.042572021484375, -0.016448974609375, -0.00443267822265625, 0.0003399848937988281, -0.03985595703125, -0.01995849609375, -0.0229644775390625, 0.04730224609375, 0.0167694091796875, 0.0277252197265625, -0.008636474609375, 0.0201263427734375, -0.00482177734375, -0.059356689453125, -0.01230621337890625, -0.00823211669921875, -0.024322509765625, 0.041229248046875, -0.01088714599609375, -0.015899658203125, -0.0222930908203125, 0.0115203857421875, 0.01215362548828125, 0.028564453125, -0.023193359375, -0.0200653076171875, -0.01403045654296875, -0.035614013671875, -0.02044677734375, 0.00757598876953125, -0.01416015625, 0.00034356117248535156, -0.0443115234375, 0.01702880859375, 0.0853271484375, 0.0308074951171875, 0.0084075927734375, -0.020111083984375, -0.0103759765625, 0.006839752197265625, 0.004917144775390625, 0.0185699462890625, -0.01611328125, -0.0433349609375, 0.0186767578125, 0.0037326812744140625, -0.031951904296875, 0.0297393798828125, 0.01451873779296875, 0.00028705596923828125, -0.00672149658203125, -0.03460693359375, -0.03692626953125, -0.0277252197265625, 0.002620697021484375, 0.0225067138671875, 0.01335906982421875, 0.033660888671875, 0.0210113525390625, -0.0213775634765625, -0.01361083984375, -0.005062103271484375, 0.059356689453125, -0.0126800537109375, -0.0169830322265625, 0.01678466796875, -0.00757598876953125, 0.0004916191101074219, -0.04693603515625, -0.0019626617431640625, 0.022918701171875, -0.015228271484375, 0.04315185546875, 0.036590576171875, 0.0307769775390625, 0.01041412353515625, 0.016815185546875, -0.01459503173828125, 0.0163421630859375, 0.0247802734375, -0.01342010498046875, 0.0212860107421875, -0.00899505615234375, -0.04681396484375, 0.00963592529296875, -0.00804901123046875, -0.033935546875, 0.03839111328125, 0.01245880126953125, 0.048980712890625, 0.006244659423828125, 0.0009407997131347656, 0.007904052734375, 0.0305328369140625, -0.003086090087890625, -0.0003147125244140625, -0.0056915283203125, -0.038055419921875, 0.00789642333984375, -0.0156402587890625, -0.01375579833984375, 0.021514892578125, 0.022125244140625, -0.04052734375, 0.038330078125, -0.025848388671875, -0.0284881591796875, -0.0193328857421875, -0.01102447509765625, 0.0144805908203125, -0.019439697265625, 0.016845703125, 0.01708984375, -0.03167724609375, -0.00246429443359375, -0.006961822509765625, 0.0005512237548828125, -0.0086822509765625, -0.0231781005859375, -0.006336212158203125, -0.0182037353515625, 0.037200927734375, -0.06591796875, 0.024566650390625, -0.057525634765625, -0.00615692138671875, 0.0017480850219726562, 0.007534027099609375, -0.02374267578125, 0.001979827880859375, 0.01016998291015625, 0.0227203369140625, -0.0133056640625, 0.01025390625, 0.032806396484375, 0.050689697265625, -0.0201263427734375, 0.01514434814453125, 0.0128021240234375, -0.01336669921875, 0.003932952880859375, 0.012847900390625, 0.0352783203125, -0.015777587890625, 0.00972747802734375, 0.033111572265625, 0.02130126953125, 0.00321197509765625, 0.035797119140625, -0.00017547607421875, 0.00109100341796875, 0.054290771484375, 0.0004949569702148438, 0.0248260498046875, 0.00032901763916015625, -0.0141448974609375, -0.00690460205078125, 0.046905517578125, -0.0123138427734375, 0.0210418701171875, 0.0132293701171875, -0.016754150390625, -0.0075225830078125, -0.04559326171875, -0.00696563720703125, -0.037628173828125, 0.00345611572265625, 0.004528045654296875, 0.0160980224609375, 0.0273284912109375, -0.006832122802734375, 0.004833221435546875, -0.00390625, -0.0222930908203125, 0.022674560546875, 0.0132904052734375, -0.01348114013671875, 0.046600341796875, -0.0164947509765625, -0.034942626953125, 0.053558349609375, 0.0211334228515625, -0.028106689453125, -0.0112457275390625, 0.018890380859375, -0.00693511962890625, 0.0185089111328125, -0.01546478271484375, 0.0240936279296875, -0.030242919921875, -0.0013990402221679688, 0.009674072265625, 0.0196533203125, 0.056182861328125, -0.004451751708984375, 0.0496826171875, -0.036895751953125, 0.0005583763122558594, 0.005908966064453125, -0.01464080810546875, 0.030914306640625, -0.01483154296875, 0.0157012939453125, 0.0604248046875, 0.00524139404296875, 0.003864288330078125, 0.001129150390625, -0.016815185546875, -0.0258941650390625, 0.01374053955078125, 0.00897216796875, -0.01346588134765625, -0.010955810546875, 0.079833984375, 0.0081939697265625, 0.06866455078125, -0.025238037109375, -0.05035400390625, -0.00429534912109375, 0.0030670166015625, -0.0489501953125, -0.06378173828125, 0.006885528564453125, -0.030303955078125, -0.03411865234375, -0.010406494140625, -0.0133819580078125, 0.01320648193359375, -0.00605010986328125, 0.0008692741394042969, 0.00209808349609375, -0.0267791748046875, -0.0850830078125, -0.06134033203125, -0.0872802734375, 0.01096343994140625, -0.017181396484375, 0.034271240234375, -0.006702423095703125, 0.007694244384765625, -0.0088653564453125, -0.05621337890625, -0.0157928466796875, 0.048980712890625, -0.00010085105895996094, -0.0250701904296875, -0.01548004150390625, -0.0302734375, -0.006229400634765625, 0.00548553466796875, 0.016845703125, -0.0152587890625, 0.01488494873046875, -0.01544952392578125, -0.006381988525390625, 0.0024051666259765625, 0.035369873046875, -0.034637451171875, -0.016571044921875, 0.032501220703125, 0.0273895263671875, -0.033843994140625, 0.045623779296875, -0.012908935546875, -0.0037975311279296875, 0.0085906982421875, -0.00337982177734375, -0.0217742919921875, -0.00894927978515625, -0.01049041748046875, 0.021484375, 0.01381683349609375, -0.00937652587890625, -0.00025343894958496094, 0.005809783935546875, 0.00197601318359375, 0.01209259033203125, 0.005340576171875, 0.03863525390625, 0.0090179443359375, -0.017303466796875, -0.0106048583984375, 0.044464111328125, -0.005706787109375, 0.01451873779296875, -0.047149658203125, -0.0877685546875, 0.07025146484375, 0.01486968994140625, -0.00020134449005126953, -0.029693603515625, -0.045684814453125, 0.021759033203125, 0.1298828125, 0.034698486328125, -0.01233673095703125, -0.0195159912109375, -0.0016565322875976562, -0.052276611328125, -0.036468505859375, -0.039276123046875, 0.0164947509765625, -0.0214691162109375, -0.0166778564453125, -0.03558349609375, -0.00299835205078125, 0.002696990966796875, -0.0211181640625, 0.023468017578125, -0.03570556640625, 0.016326904296875, -0.0126800537109375, 0.03887939453125, 0.007312774658203125, 0.02386474609375, 0.0159759521484375, 0.0014848709106445312, -0.05755615234375, 0.00945281982421875, -0.01258087158203125, 0.00989532470703125, -0.021026611328125, -0.00908660888671875, 0.0178070068359375, 0.005279541015625, 0.013458251953125, -0.039794921875, 0.02178955078125, -0.00775909423828125, 0.057708740234375, -0.0147705078125, -0.048980712890625, -0.0249786376953125, -0.045745849609375, -0.0237884521484375, -0.040863037109375, -0.027587890625, -0.00994873046875, -0.0206451416015625, 0.017181396484375, -0.0035572052001953125, -0.0038356781005859375, -0.0021114349365234375, -0.044921875, -0.035125732421875, 0.0113525390625, -0.0124359130859375, -0.024017333984375, -0.045074462890625, -0.044647216796875, 0.06365966796875, 0.04754638671875, 0.01312255859375, -0.005397796630859375, 0.06488037109375, 0.0080108642578125, -0.044036865234375, -0.0278472900390625, -0.007381439208984375, 0.061614990234375, 0.02386474609375, 0.00563812255859375, 0.0229949951171875, -0.05291748046875, 0.05670166015625, 0.049224853515625, 0.0055999755859375, -0.0274658203125, 0.0771484375, -0.0247039794921875, -0.031646728515625, 0.041961669921875, -0.0275421142578125, -0.01763916015625, 0.031524658203125, -0.01214599609375, -0.0281982421875, 0.0022602081298828125, 0.052215576171875, -0.04400634765625, 0.05487060546875, -0.022918701171875, -0.06512451171875, 0.037933349609375, -0.0919189453125, -0.0199432373046875, -0.01163482666015625, 0.00757598876953125, -0.009033203125, -0.0106658935546875, -0.0087738037109375, -0.01824951171875, -0.01812744140625, 0.007076263427734375, 0.0105438232421875, -0.011383056640625, 0.002716064453125, -0.017242431640625, -0.01386260986328125, 0.0902099609375, 0.003704071044921875, -0.047149658203125, 0.00902557373046875, -0.0270843505859375, -0.021575927734375, 0.028533935546875, -0.04345703125, 0.043701171875, 0.0517578125, -0.0276947021484375, 0.005970001220703125, -0.04034423828125, 0.0087890625, -0.050750732421875, -0.03717041015625, -0.00531768798828125, -0.0220184326171875, 0.0015926361083984375, 0.07470703125, -0.0224761962890625, 0.037445068359375, -0.016387939453125, 0.038360595703125, 0.027984619140625, 0.02618408203125, 0.0196990966796875, 0.00969696044921875, -0.0224609375, 0.003398895263671875, -0.018829345703125, -0.025390625, 0.037200927734375, 0.033782958984375, 0.036956787109375, 0.058685302734375, -0.016754150390625, -0.0311431884765625, -0.058441162109375, -0.0032062530517578125, 0.00917816162109375, -0.01024627685546875, -0.0059356689453125, -0.0292205810546875, -0.009674072265625, 0.01169586181640625, 0.002490997314453125, 0.034210205078125, -0.038665771484375, -0.006988525390625, -0.02728271484375, 0.0186767578125, -0.008026123046875, -0.034820556640625, -0.0183563232421875, -0.029754638671875, -0.0107879638671875, -0.004947662353515625, -0.004306793212890625, -0.0064697265625, -0.0136260986328125, -0.0399169921875, 0.049468994140625, -0.00897979736328125, 0.0126495361328125, -0.040130615234375, 0.02166748046875, -0.06201171875, -0.005054473876953125, 0.03912353515625, 0.027008056640625, -0.0587158203125, 0.01245880126953125, -0.054107666015625, 0.0100250244140625, 0.00617218017578125, -0.0462646484375, -0.021484375, -0.0175018310546875, -0.00274658203125, 0.03948974609375, -0.0191192626953125, -0.013763427734375, 0.00592803955078125, -0.0095672607421875, -0.0186004638671875, 0.029388427734375, 0.004558563232421875, 0.0280914306640625, -0.0164031982421875, 0.0594482421875, -0.005832672119140625, 0.00537109375, -0.020050048828125, -0.0254974365234375, -0.0037441253662109375, 0.0101776123046875, 0.024444580078125, -0.0269775390625, 0.041229248046875, -0.0516357421875, 0.023193359375, 0.007564544677734375, -0.006702423095703125, -0.0157470703125, 0.0004379749298095703, -0.00800323486328125, 0.0318603515625, 0.0202484130859375, 0.00920867919921875, -0.006656646728515625, -0.043701171875, -0.017425537109375, 0.0270538330078125, 0.06158447265625, -0.048919677734375, -0.03570556640625, -0.046478271484375, 0.0240325927734375, 0.00115966796875, 0.03704833984375, 0.042938232421875, -0.0152130126953125, 0.028778076171875, 0.0201568603515625, 0.008941650390625, -0.002964019775390625, 0.038116455078125, -0.0386962890625, -0.0028514862060546875, 0.064453125, 0.0298004150390625, -0.037506103515625, 0.03790283203125, -0.03717041015625, 0.01593017578125, 0.049591064453125, 0.0816650390625, -0.06591796875, 0.01494598388671875, 0.01031494140625, -0.0248260498046875, 0.01023101806640625, -0.003215789794921875, -0.01335906982421875, -0.049713134765625, 0.06585693359375, -0.01171112060546875, -0.004123687744140625, 0.0224609375, -0.0123748779296875, -0.029632568359375, -0.048492431640625, 0.0234222412109375, 0.0050506591796875, 0.046417236328125, -0.00968170166015625, -0.033416748046875, -0.0054931640625, -0.06219482421875, 0.00537872314453125, 0.033599853515625, -0.0061187744140625, -0.0772705078125, 0.0195159912109375, 0.00530242919921875, 0.0214080810546875, 0.0008006095886230469, -0.006595611572265625, 0.07391357421875, 0.018035888671875, 0.0102081298828125, -0.045135498046875, 0.00122833251953125, -0.006587982177734375, 0.00911712646484375, -0.023773193359375, -0.01139068603515625, 0.01117706298828125, -0.00913238525390625, 0.01995849609375, -0.0008220672607421875, -0.0172882080078125, -0.01392364501953125, 0.00384521484375, 0.078857421875, -0.0458984375, -0.01155853271484375, 0.032989501953125, 0.050262451171875, -0.0191497802734375, -0.015899658203125, -0.0188446044921875, 0.0054931640625, 0.03924560546875, -0.0143890380859375, -0.0022563934326171875, 0.0133514404296875, -0.01425933837890625, -0.072998046875, 0.039154052734375, 0.005413055419921875, 0.03399658203125, -0.022186279296875, 0.00208282470703125, 0.02301025390625, 0.00969696044921875, -0.0361328125, 0.043182373046875, -0.0229034423828125, 0.0667724609375, -0.035186767578125, -0.0017681121826171875, 0.027740478515625, 0.0263519287109375, 0.11138916015625, 0.039794921875, -0.036651611328125, -0.024932861328125, 0.0162200927734375, 0.0236053466796875, -0.031585693359375, 0.045562744140625, 0.01104736328125, 0.031494140625, 0.06829833984375, -0.049163818359375, 0.016448974609375, 0.0120391845703125, 0.00748443603515625, 0.0247344970703125, -0.0153656005859375, -0.0465087890625, 0.01074981689453125, 0.052032470703125, -0.0308074951171875, -0.01108551025390625, 0.01092529296875, -0.045196533203125, 0.022613525390625, 0.0087738037109375, 0.04278564453125, -0.07745361328125, 0.052398681640625, -0.046112060546875, 0.07415771484375, -0.00568389892578125, 0.01192474365234375, 0.037353515625, 0.028350830078125, 0.03460693359375, -0.005252838134765625, 0.00531005859375, -0.0036411285400390625, 0.00020265579223632812, 0.0648193359375, 0.015625, 0.0170135498046875, -0.08349609375, -0.0467529296875, 0.0718994140625, 0.09716796875, -0.038360595703125, -0.0284271240234375, 0.01617431640625, -0.00006890296936035156, 0.034423828125, 0.021026611328125, 0.0810546875, -0.017669677734375, -0.0208892822265625, -0.021575927734375, 0.023040771484375, 0.00495147705078125, 0.02532958984375, -0.0109100341796875, -0.0183563232421875, -0.033355712890625, 0.0261688232421875, -0.03515625, -0.0005769729614257812, 0.01378631591796875, -0.0191650390625, -0.004016876220703125, 0.033843994140625, 0.08306884765625, 0.01953125, 0.01473236083984375, 0.00925445556640625, 0.060577392578125, -0.042938232421875, 0.0220947265625, -0.0022411346435546875, 0.03375244140625, -0.00003069639205932617, -0.01421356201171875, 0.0014019012451171875, 0.033447265625, 0.0110321044921875, -0.07769775390625, -0.022613525390625, 0.0030612945556640625, -0.044403076171875, 0.03985595703125, -0.0184783935546875, 0.0274810791015625, 0.01403045654296875, -0.0009703636169433594, -0.059326171875, 0.0270233154296875, 0.06817626953125, -0.01605224609375, 0.072265625, -0.0034236907958984375, -0.00066375732421875, 0.0301666259765625, 0.000008761882781982422, 0.038482666015625, 0.0090179443359375, -0.08892822265625, -0.0190277099609375, 0.00323486328125, -0.006626129150390625, 0.0007548332214355469, 0.0218658447265625, -0.01493072509765625, 0.0328369140625, -0.011993408203125, -0.00150299072265625, -0.01049041748046875, -0.00791168212890625, 0.0196533203125, 0.0137786865234375, 0.0099334716796875, 0.001556396484375, -0.059844970703125, -0.0143890380859375, -0.006412506103515625, -0.00942230224609375, 0.0018987655639648438, 0.03863525390625, 0.032806396484375, 0.004093170166015625, -0.035491943359375, 0.042083740234375, -0.0723876953125, -0.05828857421875, 0.08453369140625, -0.01131439208984375, -0.023162841796875, 0.005413055419921875, -0.032806396484375, 0.054901123046875, 0.007312774658203125, 0.043212890625, 0.03692626953125, -0.016815185546875, 0.0120697021484375, 0.0258331298828125, 0.0233306884765625, -0.0128021240234375, -0.027191162109375, -0.017242431640625, -0.0011386871337890625, 0.0355224609375, 0.04217529296875, -0.01422119140625, 0.00550079345703125, -0.01010894775390625, -0.01483154296875, -0.0014314651489257812, 0.0017242431640625, -0.0135650634765625, 0.021240234375, -0.0265655517578125, -0.0018787384033203125, 0.02056884765625, -0.00917816162109375, 0.01422119140625, -0.0069732666015625, 0.041473388671875, 0.004180908203125, -0.01995849609375, 0.0244140625, 0.043609619140625, 0.07342529296875, 0.01129913330078125, 0.022064208984375, 0.006195068359375, 0.00827789306640625, 0.00009649991989135742, -0.06842041015625, -0.01494598388671875, -0.039215087890625, 0.016845703125, 0.03802490234375, -0.00131988525390625, 0.034088134765625, -0.0258331298828125, 0.0088043212890625, 0.012939453125, 0.006011962890625, -0.050811767578125, 0.0219573974609375, 0.003948211669921875, 0.05401611328125, -0.04010009765625, 0.030548095703125, -0.01293182373046875, 0.030487060546875, -0.032470703125, -0.0498046875, -0.0190582275390625, 0.06585693359375, -0.0222320556640625, 0.011444091796875, 0.03985595703125, -0.01285552978515625, -0.032958984375, 0.00720977783203125, 0.0070953369140625, 0.03955078125, -0.037872314453125, -0.032684326171875, -0.0010051727294921875, -0.0041961669921875, 0.0159454345703125, -0.037322998046875, -0.0022335052490234375, -0.04864501953125, 0.00017070770263671875, -0.004245758056640625, 0.040863037109375, 0.0728759765625, -0.012664794921875, -0.052490234375, 0.0675048828125, -0.0267486572265625, -0.021209716796875, 0.0059661865234375, -0.0010738372802734375, 0.005016326904296875, -0.03179931640625, -0.011749267578125, -0.006328582763671875, -0.031646728515625, -0.00004035234451293945, 0.0182647705078125, -0.018524169921875, 0.057464599609375, 0.0142669677734375, -0.065673828125, 0.0021953582763671875, -0.0189971923828125, -0.0023136138916015625, -0.009918212890625, -0.01348876953125, 0.0236358642578125, 0.031219482421875, -0.042755126953125, -0.02923583984375, 0.006072998046875, 0.0311737060546875, -0.045318603515625, -0.032440185546875, 0.0055999755859375, 0.003574371337890625, 0.0704345703125, 0.068359375, 0.01050567626953125, -0.0426025390625, -0.0242919921875, -0.0011882781982421875, -0.0054473876953125, -0.019744873046875, 0.0123138427734375, -0.06689453125, -0.00873565673828125, -0.0108642578125, -0.051300048828125, 0.003448486328125, -0.0059967041015625, -0.078125, 0.03369140625, -0.0234375, -0.02386474609375, -0.0194549560546875, -0.00959014892578125, 0.01495361328125, -0.03765869140625, -0.04364013671875, 0.002307891845703125, -0.0023403167724609375, -0.0243377685546875, -0.019256591796875, 0.032379150390625, -0.006870269775390625, -0.028472900390625, 0.0364990234375, 0.0149993896484375, 0.039642333984375, -0.041534423828125, -0.04150390625, -0.019622802734375, 0.0185089111328125, 0.001468658447265625, 0.0098114013671875, 0.0197296142578125, 0.0176239013671875, 0.00830078125, 0.058135986328125, -0.023895263671875, -0.031402587890625, -0.04876708984375, 0.053192138671875, -0.0041656494140625, -0.0017881393432617188, 0.035186767578125, -0.011505126953125, 0.0079498291015625, 0.01495361328125, 0.08477783203125, -0.039276123046875, 0.0513916015625, 0.033782958984375, 0.037567138671875, 0.033111572265625 ]
4209c82f2ff64835562dc1b373524bba851a3f78
Wordpress Stackexchange Q: Advanced search form with filters for custom taxonomies and custom fields I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties (fields and taxonomies) which will be links to the first post type using a custom relationship field. I've recently started off with WPs custom post types, fields, and taxonomies, I love it so far but to make the best of it I'd like to be able to search it properly. Do I need to do it manually? If so, how? PS. If it matters, I'm using the plugins: Advanced Custom Fields and Custom Post Type UI. Below I've mocked up an example of how the filtering would look and how it might relate to the post types above. A: Try Taxonomy Picker plugin together with Relevanssi. Killer combination. http://www.squidoo.com/taxonomy-picker-wordpress-plugin http://wordpress.org/extend/plugins/relevanssi/
Q: Advanced search form with filters for custom taxonomies and custom fields I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties (fields and taxonomies) which will be links to the first post type using a custom relationship field. I've recently started off with WPs custom post types, fields, and taxonomies, I love it so far but to make the best of it I'd like to be able to search it properly. Do I need to do it manually? If so, how? PS. If it matters, I'm using the plugins: Advanced Custom Fields and Custom Post Type UI. Below I've mocked up an example of how the filtering would look and how it might relate to the post types above. A: Try Taxonomy Picker plugin together with Relevanssi. Killer combination. http://www.squidoo.com/taxonomy-picker-wordpress-plugin http://wordpress.org/extend/plugins/relevanssi/ A: I think something like this you would be best writing yourself. Take a look at: http://www.catalysthomes.co.uk/homes-for-sale/ Properties are loaded into a CPT and I have my own custom search in the sidebar. Of that search its searching a number of things such as taxonomies, custom fields and ordering by date price etc. So how do I achieve this? I submit the form to a page template and from there I deal with the post data and build a new WP_query based on the search criteria. I use sessions to store the search variables so that I can paginate the results. WP_Query is very powerful. Take a look: http://codex.wordpress.org/Class_Reference/WP_Query In there you can use meta_query to query multiple custom fields and use tax_query to query your taxonomies, plus there is more. Below is how mine is built to give you an idea. Template File: <?php $temp = $wp_query; $wp_query = NULL; $args = array(); ?> <?php include("functions/Homes-for-sale/propertyrawresults.php"); ?> <?php include("functions/Homes-for-sale/propertysearchresults.php"); ?> <?php $args['post_type'] = "homes-for-sale"; $args['showposts'] = 10; $args['paged'] = $paged; $wp_query = new WP_Query($args); ?> <?php include("functions/Homes-for-sale/propertylistlayout.php"); ?> Raw Results <?php if($_POST['sortby']) { $_SESSION['prop_selectedsortby'] = $_POST['sortby']; } switch($_SESSION['prop_selectedsortby']) { case "name-asc": $args['order'] = "ASC"; $args['orderby'] = "title"; break; case "name-desc": $args['orderby'] = "title"; break; case "price-asc": $args['order'] = "ASC"; $args['orderby'] = "meta_value_num"; $args['meta_key'] = "chb_homes_for_sale_specifics_fmv"; break; case "price-desc": $args['orderby'] = "meta_value_num"; $args['meta_key'] = "chb_homes_for_sale_specifics_fmv"; break; case "date-asc": $args['order'] = "ASC"; break; default: /* No need to set arguments here as wp query defaults */ break; } $selectedsortby[$_SESSION['prop_selectedsortby']] = " selected=\"selected\""; ?> Search Results <?php if( ! empty( $_SESSION['s_property_ptype'] ) ) { $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_types_nbrs', 'value' => $_SESSION['s_property_ptype'] ); } if( ! empty( $_SESSION['s_property_development'] ) ) { $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_ofdevelopment', 'value' => $_SESSION['s_property_development'] ); } if( isset( $_SESSION['s_property_area'] ) && 0 != $_SESSION['s_property_area'] ) { $args['tax_query'][] = array( 'taxonomy' => 'areas', 'field' => 'id', 'terms' => array( (int) $_SESSION['s_property_area'] ), ); } $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_bedrooms', 'value' => $_SESSION['s_property_bedrooms_min'], 'compare' => '>=', 'type' => 'SIGNED' ); $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_bedrooms', 'value' => $_SESSION['s_property_bedrooms_max'], 'compare' => '<=', 'type' => 'SIGNED' ); $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_bathrooms', 'value' => $_SESSION['s_property_bathrooms_min'], 'compare' => '>=', 'type' => 'SIGNED' ); $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_bathrooms', 'value' => $_SESSION['s_property_bathrooms_max'], 'compare' => '<=', 'type' => 'SIGNED' ); $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_fmv', 'value' => $_SESSION['s_property_min_price'], 'compare' => '>=', 'type' => 'SIGNED' ); $args['meta_query'][] = array( 'key' => 'chb_homes_for_sale_specifics_fmv', 'value' => $_SESSION['s_property_max_price'], 'compare' => '<=', 'type' => 'SIGNED' ); ?> List Layout Just a standard WP loop to show post excerpts and info. A: Take a look at Relevanssi plugin, it might do what you are looking for: http://wordpress.org/extend/plugins/relevanssi/ A: If anyone is having difficulty implementing Brady's solution above (as I did) here's a hint: It appears that WordPress has some problems with passing session data so you will probably have to do something extra to make it work properly. The issues are discussed here In functions.php: function init_sessions() { if (!session_id()) { session_start(); } } add_action('init', 'init_sessions'); In your template: /** * Enable sessions */ if (!session_id()) session_start(); For me installing Peter Wooster's "Simple Session Support" plugin did the trick.
wordpress
{ "language": "en", "length": 681, "provenance": "stackexchange_00019.jsonl.gz:415926", "question_score": "32", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38361" }
[ 0.05096435546875, -0.0032978057861328125, 0.0423583984375, -0.020782470703125, -0.0029582977294921875, -0.0069427490234375, 0.037445068359375, -0.0280914306640625, 0.04266357421875, -0.0041656494140625, -0.0311279296875, -0.0080718994140625, -0.0194854736328125, -0.03155517578125, -0.00321197509765625, -0.026397705078125, -0.005279541015625, 0.0008530616760253906, 0.0194091796875, -0.033660888671875, 0.039886474609375, -0.05438232421875, 0.0213470458984375, -0.0280303955078125, 0.032196044921875, -0.0173797607421875, 0.06787109375, 0.00627899169921875, 0.051422119140625, 0.0045928955078125, 0.0273590087890625, -0.058624267578125, 0.018035888671875, -0.01537322998046875, 0.036163330078125, 0.0254364013671875, 0.036285400390625, -0.006519317626953125, 0.00864410400390625, 0.035888671875, 0.02978515625, -0.01485443115234375, -0.05181884765625, 0.02923583984375, -0.031707763671875, -0.08953857421875, 0.046478271484375, -0.024993896484375, 0.0276336669921875, -0.002246856689453125, 0.00276947021484375, 0.0263519287109375, 0.02886962890625, -0.0748291015625, -0.0174560546875, -0.028411865234375, 0.0021724700927734375, -0.0195770263671875, 0.05133056640625, -0.01727294921875, -0.01763916015625, -0.04833984375, 0.03985595703125, -0.01122283935546875, -0.0107269287109375, 0.007610321044921875, -0.0185699462890625, 0.0008006095886230469, 0.006103515625, -0.017059326171875, 0.0095062255859375, -0.02398681640625, 0.02130126953125, 0.0176544189453125, -0.00310516357421875, -0.07257080078125, 0.04132080078125, -0.01181793212890625, 0.0124053955078125, 0.02044677734375, -0.00482177734375, -0.0107574462890625, -0.0238494873046875, -0.01152801513671875, -0.0140533447265625, -0.00656890869140625, -0.0081024169921875, -0.00921630859375, -0.007411956787109375, -0.030975341796875, -0.002590179443359375, -0.0543212890625, -0.07373046875, 0.03570556640625, 0.0177459716796875, -0.03192138671875, 0.0184326171875, 0.022857666015625, 0.004871368408203125, 0.0333251953125, 0.036834716796875, -0.06494140625, 0.0816650390625, -0.048828125, -0.0028743743896484375, 0.02020263671875, 0.004634857177734375, 0.02178955078125, 0.031646728515625, 0.018218994140625, 0.0096893310546875, 0.006378173828125, -0.0001443624496459961, -0.011138916015625, -0.022369384765625, 0.01385498046875, 0.0033779144287109375, -0.01110076904296875, -0.010955810546875, -0.015960693359375, -0.000942230224609375, 0.003635406494140625, 0.025787353515625, -0.006381988525390625, -0.018768310546875, -0.0275726318359375, -0.0238800048828125, -0.0182342529296875, 0.0221099853515625, 0.051483154296875, -0.053924560546875, -0.0132293701171875, 0.030303955078125, 0.013427734375, 0.007801055908203125, -0.024932861328125, 0.0361328125, -0.010009765625, 0.021575927734375, -0.0224761962890625, 0.04498291015625, -0.0194549560546875, -0.0247955322265625, 0.0377197265625, -0.00856781005859375, 0.0148468017578125, 0.024932861328125, 0.0260772705078125, -0.03204345703125, -0.034820556640625, 0.02166748046875, 0.0105438232421875, 0.06854248046875, -0.00963592529296875, -0.06561279296875, -0.054962158203125, 0.046142578125, -0.0550537109375, -0.0479736328125, -0.09649658203125, 0.0239715576171875, 0.004512786865234375, -0.018280029296875, -0.033416748046875, -0.046356201171875, -0.0187530517578125, -0.01415252685546875, -0.006298065185546875, 0.0231475830078125, -0.06536865234375, 0.04638671875, -0.01617431640625, 0.016876220703125, 0.0077056884765625, 0.0203857421875, 0.033203125, 0.00505828857421875, 0.01812744140625, 0.0237274169921875, 0.027740478515625, 0.0090789794921875, -0.020843505859375, 0.09490966796875, -0.033905029296875, -0.044708251953125, 0.0118865966796875, 0.0106201171875, 0.04290771484375, 0.00867462158203125, 0.01210784912109375, 0.0380859375, -0.00371551513671875, -0.0312042236328125, 0.0232696533203125, 0.00586700439453125, 0.0040435791015625, -0.032928466796875, 0.0007729530334472656, -0.013671875, -0.0015172958374023438, -0.048065185546875, 0.0185546875, -0.0207672119140625, 0.00707244873046875, 0.01068878173828125, -0.0121612548828125, -0.0007266998291015625, 0.02569580078125, -0.01812744140625, -0.00467681884765625, 0.042327880859375, 0.00467681884765625, -0.038970947265625, -0.0021915435791015625, -0.024017333984375, -0.00507354736328125, -0.0013456344604492188, -0.022186279296875, -0.002658843994140625, -0.042816162109375, 0.0097808837890625, -0.01247406005859375, -0.00408172607421875, 0.0303955078125, 0.0169219970703125, 0.01258087158203125, 0.00176239013671875, 0.00771331787109375, 0.0321044921875, 0.03509521484375, -0.0202484130859375, -0.003383636474609375, 0.06695556640625, 0.03656005859375, -0.03253173828125, 0.002376556396484375, 0.0059356689453125, -0.056365966796875, -0.006832122802734375, 0.044769287109375, 0.019256591796875, 0.06707763671875, 0.005153656005859375, 0.032958984375, 0.1004638671875, -0.00609588623046875, -0.001033782958984375, 0.0209808349609375, 0.006404876708984375, 0.06109619140625, -0.0236663818359375, 0.0362548828125, 0.01288604736328125, 0.0232086181640625, 0.01500701904296875, 0.04541015625, -0.020263671875, -0.01500701904296875, -0.01007080078125, -0.008148193359375, 0.0115966796875, -0.05401611328125, -0.0401611328125, -0.007106781005859375, 0.042816162109375, 0.03216552734375, 0.054107666015625, 0.044189453125, -0.0204620361328125, 0.0207672119140625, 0.004741668701171875, -0.022857666015625, 0.0038585662841796875, -0.033935546875, -0.01275634765625, -0.006622314453125, -0.005527496337890625, 0.01343536376953125, -0.004486083984375, -0.034210205078125, -0.0011529922485351562, 0.03863525390625, 0.006168365478515625, -0.0030345916748046875, -0.04443359375, -0.06060791015625, 0.025634765625, 0.028656005859375, -0.01049041748046875, -0.004810333251953125, 0.026458740234375, -0.0230560302734375, -0.04248046875, 0.0220184326171875, 0.01158905029296875, -0.039215087890625, 0.005603790283203125, -0.048065185546875, 0.06011962890625, -0.04766845703125, 0.01165008544921875, 0.054290771484375, -0.039764404296875, 0.0218505859375, -0.00653076171875, 0.01528167724609375, -0.0145263671875, 0.0303955078125, 0.005580902099609375, -0.03765869140625, -0.0137176513671875, -0.01031494140625, 0.0282440185546875, 0.0203857421875, 0.017059326171875, -0.0310516357421875, 0.0090179443359375, 0.03363037109375, -0.03411865234375, -0.020233154296875, 0.0001074671745300293, -0.043914794921875, -0.004390716552734375, -0.0027790069580078125, -0.024688720703125, -0.0123291015625, 0.0216064453125, 0.005596160888671875, 0.0028667449951171875, -0.037078857421875, -0.0648193359375, -0.0543212890625, -0.07666015625, -0.0087127685546875, 0.00647735595703125, -0.0030956268310546875, 0.018035888671875, 0.041717529296875, 0.0158233642578125, -0.0684814453125, 0.030029296875, 0.0126190185546875, -0.029571533203125, 0.039825439453125, -0.0016317367553710938, -0.038330078125, 0.04608154296875, -0.0127105712890625, 0.05181884765625, 0.044219970703125, -0.0078277587890625, 0.00698089599609375, -0.0187835693359375, 0.038360595703125, 0.0021152496337890625, -0.0140228271484375, 0.01404571533203125, 0.020355224609375, -0.006511688232421875, -0.032501220703125, 0.00894927978515625, -0.02490234375, -0.0070343017578125, 0.03314208984375, -0.008880615234375, -0.01363372802734375, -0.016998291015625, 0.04095458984375, 0.021575927734375, 0.0191650390625, -0.018768310546875, -0.0284881591796875, 0.01354217529296875, 0.0281829833984375, 0.058319091796875, 0.0211639404296875, 0.01380157470703125, -0.042938232421875, 0.038299560546875, 0.00229644775390625, -0.007328033447265625, 0.00969696044921875, -0.0026531219482421875, 0.002227783203125, -0.09765625, 0.0601806640625, -0.034423828125, -0.0253753662109375, -0.053070068359375, -0.031219482421875, -0.00305938720703125, 0.0968017578125, -0.07452392578125, -0.00592041015625, 0.007572174072265625, 0.00225067138671875, 0.0133056640625, -0.0328369140625, -0.0440673828125, -0.0325927734375, -0.11187744140625, 0.01190185546875, -0.0010042190551757812, -0.0386962890625, -0.0170135498046875, 0.00970458984375, -0.0703125, -0.0435791015625, 0.0250091552734375, -0.025482177734375, 0.003902435302734375, -0.021759033203125, -0.0147247314453125, -0.036712646484375, 0.0027294158935546875, -0.0303955078125, -0.0682373046875, -0.0130767822265625, -0.014129638671875, 0.036163330078125, -0.00856781005859375, 0.01036834716796875, -0.01172637939453125, 0.03778076171875, -0.0015411376953125, 0.040679931640625, -0.005268096923828125, -0.01059722900390625, 0.03460693359375, -0.0012035369873046875, -0.0071868896484375, -0.01263427734375, -0.0079193115234375, 0.0153045654296875, -0.00921630859375, 0.0290069580078125, -0.02362060546875, -0.0267791748046875, -0.00832366943359375, -0.034698486328125, -0.026153564453125, -0.02471923828125, -0.07855224609375, -0.024932861328125, -0.041229248046875, -0.03704833984375, 0.00368499755859375, -0.049591064453125, 0.0232086181640625, 0.03228759765625, -0.004528045654296875, 0.0022430419921875, 0.055419921875, 0.00801849365234375, -0.019927978515625, -0.05108642578125, -0.00421905517578125, 0.02362060546875, -0.016632080078125, 0.03717041015625, 0.0009455680847167969, -0.0230255126953125, 0.0643310546875, -0.007785797119140625, 0.003055572509765625, -0.0233154296875, 0.045501708984375, -0.006694793701171875, -0.032073974609375, 0.033111572265625, -0.0096588134765625, 0.003082275390625, 0.02288818359375, -0.0309600830078125, -0.038787841796875, -0.022186279296875, 0.0748291015625, -0.0243682861328125, 0.0467529296875, -0.045013427734375, -0.033935546875, 0.021270751953125, -0.0113525390625, 0.033843994140625, 0.016265869140625, -0.0182952880859375, 0.01361846923828125, -0.0294952392578125, 0.0157012939453125, -0.0022449493408203125, 0.014739990234375, 0.0140380859375, 0.04083251953125, 0.00591278076171875, 0.03131103515625, -0.01702880859375, -0.0008502006530761719, 0.00933837890625, -0.036956787109375, -0.05633544921875, -0.0103759765625, -0.0135650634765625, -0.0195465087890625, 0.038970947265625, -0.0155029296875, 0.01360321044921875, 0.054351806640625, 0.01464080810546875, 0.027130126953125, -0.0168304443359375, 0.048828125, -0.01276397705078125, -0.016326904296875, 0.0015344619750976562, -0.01044464111328125, -0.01009368896484375, 0.03997802734375, -0.01305389404296875, 0.018463134765625, -0.005809783935546875, 0.026763916015625, 0.04364013671875, 0.00836181640625, 0.0221405029296875, -0.00971221923828125, 0.004726409912109375, -0.02191162109375, 0.018096923828125, -0.022369384765625, -0.017242431640625, -0.019989013671875, 0.0013265609741210938, -0.01378631591796875, 0.0004267692565917969, 0.053009033203125, 0.014739990234375, -0.03607177734375, -0.033050537109375, 0.01073455810546875, 0.007904052734375, -0.015380859375, 0.0171661376953125, 0.0152740478515625, 0.0426025390625, -0.0164337158203125, 0.0174102783203125, -0.02239990234375, 0.0206298828125, -0.009033203125, -0.0026416778564453125, 0.00470733642578125, 0.0155181884765625, -0.023162841796875, -0.0013065338134765625, 0.04986572265625, -0.09295654296875, -0.0307769775390625, -0.0189056396484375, -0.0127105712890625, 0.03240966796875, -0.031341552734375, 0.049102783203125, 0.006481170654296875, -0.0223236083984375, 0.021728515625, 0.0186920166015625, 0.00724029541015625, -0.0031147003173828125, -0.00843048095703125, -0.001617431640625, -0.01493072509765625, -0.0222625732421875, -0.038909912109375, -0.0139617919921875, -0.0491943359375, -0.0037212371826171875, -0.0086822509765625, 0.01470947265625, 0.00428009033203125, -0.0006771087646484375, 0.00771331787109375, -0.0115966796875, -0.01351165771484375, -0.0201416015625, -0.0032291412353515625, 0.04022216796875, -0.0238189697265625, 0.0638427734375, -0.00689697265625, 0.00841522216796875, -0.02423095703125, -0.01342010498046875, -0.00959014892578125, -0.0894775390625, -0.07281494140625, 0.0302581787109375, -0.091064453125, 0.1077880859375, 0.05389404296875, -0.0031719207763671875, 0.01282501220703125, -0.019195556640625, 0.004756927490234375, -0.0220794677734375, 0.0243072509765625, -0.022186279296875, 0.01139068603515625, 0.0211029052734375, -0.0105133056640625, 0.0457763671875, 0.0168304443359375, -0.0072784423828125, -0.00832366943359375, -0.00702667236328125, 0.0229339599609375, 0.0184326171875, 0.0001360177993774414, 0.00870513916015625, -0.01338958740234375, -0.0137939453125, 0.00832366943359375, 0.0120391845703125, 0.01910400390625, 0.01174163818359375, -0.026947021484375, 0.000720977783203125, 0.0009303092956542969, 0.03936767578125, -0.00855255126953125, -0.01910400390625, 0.027740478515625, -0.0254364013671875, 0.00717926025390625, 0.0084228515625, 0.028564453125, -0.0428466796875, 0.0033168792724609375, 0.0085296630859375, -0.0041351318359375, 0.017364501953125, 0.019561767578125, -0.0029163360595703125, 0.007602691650390625, -0.0016155242919921875, 0.0096588134765625, -0.0201416015625, 0.018096923828125, 0.023712158203125, -0.024322509765625, 0.0070953369140625, 0.002887725830078125, 0.000029921531677246094, 0.0088348388671875, -0.03570556640625, -0.016387939453125, -0.00006747245788574219, 0.0038471221923828125, 0.035552978515625, -0.044921875, -0.0224761962890625, -0.039764404296875, -0.01345062255859375, -0.0114898681640625, -0.0225982666015625, 0.037750244140625, -0.0283966064453125, 0.046844482421875, 0.033538818359375, -0.0021762847900390625, -0.0189971923828125, -0.0025806427001953125, -0.00048470497131347656, 0.031890869140625, -0.056396484375, -0.02178955078125, 0.0288543701171875, -0.01288604736328125, 0.0175933837890625, 0.0247650146484375, -0.03759765625, -0.0262451171875, -0.03460693359375, 0.08282470703125, -0.034637451171875, -0.0164794921875, -0.00820159912109375, 0.048828125, 0.0258941650390625, 0.005252838134765625, 0.0011167526245117188, -0.035675048828125, -0.037261962890625, -0.006542205810546875, -0.05670166015625, -0.00890350341796875, -0.00397491455078125, -0.061676025390625, 0.041778564453125, 0.046661376953125, 0.00811004638671875, -0.026458740234375, 0.0222625732421875, -0.01107025146484375, 0.0253753662109375, -0.0170745849609375, 0.03826904296875, 0.0053863525390625, 0.0065765380859375, -0.01861572265625, -0.0164031982421875, 0.00669097900390625, 0.04852294921875, 0.06475830078125, 0.0156097412109375, -0.0310516357421875, -0.00948333740234375, 0.052337646484375, 0.045318603515625, 0.0074310302734375, 0.03253173828125, 0.0263214111328125, 0.0276947021484375, 0.0229339599609375, -0.0238189697265625, 0.032470703125, -0.050140380859375, 0.003936767578125, 0.041900634765625, 0.01085662841796875, 0.020904541015625, -0.004177093505859375, 0.0163421630859375, -0.0174560546875, -0.0158843994140625, 0.021575927734375, -0.00376129150390625, 0.0202789306640625, 0.00919342041015625, 0.0305023193359375, -0.0034389495849609375, 0.016815185546875, -0.0115203857421875, 0.04461669921875, 0.01476287841796875, 0.051971435546875, 0.05194091796875, 0.0241851806640625, 0.0528564453125, -0.0216522216796875, 0.04718017578125, 0.0009026527404785156, -0.02374267578125, 0.0257415771484375, -0.0248870849609375, -0.0091400146484375, -0.060882568359375, 0.006923675537109375, 0.0389404296875, 0.035675048828125, -0.032989501953125, -0.09515380859375, 0.005321502685546875, 0.0245819091796875, 0.03802490234375, 0.048095703125, 0.024658203125, 0.022674560546875, 0.107666015625, -0.07904052734375, 0.02484130859375, 0.031463623046875, 0.014801025390625, -0.038970947265625, -0.040496826171875, -0.019500732421875, 0.03448486328125, -0.007343292236328125, -0.0278472900390625, 0.039642333984375, 0.06512451171875, -0.00946807861328125, 0.046112060546875, -0.04498291015625, -0.01580810546875, -0.018585205078125, 0.012176513671875, 0.00516510009765625, 0.00919342041015625, -0.00855255126953125, 0.0091094970703125, -0.03533935546875, 0.037384033203125, 0.051544189453125, 0.016571044921875, 0.0299530029296875, -0.00408935546875, -0.0006227493286132812, 0.01374053955078125, 0.0310821533203125, -0.0171661376953125, -0.016387939453125, -0.046875, 0.0423583984375, 0.06268310546875, 0.02630615234375, 0.00836181640625, -0.00689697265625, 0.072509765625, -0.0032711029052734375, 0.020355224609375, 0.00749969482421875, -0.0496826171875, 0.03997802734375, -0.026947021484375, 0.09063720703125, 0.01105499267578125, -0.1007080078125, -0.0118408203125, -0.0276641845703125, -0.09130859375, 0.040191650390625, 0.06201171875, -0.022796630859375, -0.0216064453125, 0.0181121826171875, -0.043212890625, -0.0127105712890625, 0.027557373046875, 0.033172607421875, 0.00215911865234375, -0.0155181884765625, -0.00653076171875, -0.00965118408203125, 0.0168304443359375, 0.041168212890625, -0.01549530029296875, -0.00909423828125, 0.0733642578125, -0.00685882568359375, -0.0198516845703125, -0.010986328125, 0.0239715576171875, -0.0153656005859375, -0.0190582275390625, 0.059234619140625, 0.006298065185546875, -0.004947662353515625, -0.0176239013671875, 0.015625, -0.01560211181640625, 0.030670166015625, -0.06585693359375, -0.02520751953125, -0.0113067626953125, 0.0197601318359375, -0.00714111328125, 0.0151519775390625, -0.047027587890625, -0.01629638671875, -0.037811279296875, -0.05694580078125, 0.0214080810546875, -0.01666259765625, 0.0143280029296875, 0.035186767578125, 0.0271148681640625, 0.0197906494140625, 0.0261993408203125, -0.0267486572265625, 0.06341552734375, 0.05126953125, -0.0137176513671875, -0.01904296875, 0.0223846435546875, -0.0167236328125, 0.0089874267578125, 0.004756927490234375, 0.00893402099609375, 0.005344390869140625, -0.03973388671875, 0.00878143310546875, -0.004608154296875, 0.04345703125, -0.00428009033203125, 0.001216888427734375, -0.0087890625, 0.0008635520935058594, -0.01277923583984375, -0.035797119140625, -0.03192138671875, -0.02117919921875, -0.0104827880859375, 0.0172882080078125, 0.0137481689453125, -0.037078857421875, -0.0297393798828125, -0.0118865966796875, 0.046112060546875, 0.004085540771484375, -0.05804443359375, 0.0249786376953125, -0.0234222412109375, 0.0209808349609375, 0.00855255126953125, -0.01386260986328125, 0.005794525146484375, 0.052734375, -0.004329681396484375, -0.01666259765625, -0.0170440673828125, 0.0115966796875, -0.009735107421875, 0.0185089111328125, 0.021087646484375, -0.0164031982421875, -0.007755279541015625, 0.006832122802734375, 0.010955810546875, 0.049896240234375, 0.0389404296875, -0.022064208984375, 0.0309295654296875, -0.01255035400390625, -0.0195465087890625, -0.0251617431640625, 0.0258941650390625, -0.04412841796875, -0.01491546630859375, 0.00733184814453125, 0.006061553955078125, 0.026092529296875, -0.02056884765625, -0.0941162109375, 0.044036865234375, -0.0202789306640625, -0.0271148681640625, -0.054962158203125, 0.01031494140625, 0.0242767333984375, -0.0171051025390625, -0.008148193359375, -0.0555419921875, -0.06988525390625, 0.01277923583984375, 0.00400543212890625, 0.0183868408203125, 0.01483917236328125, 0.049652099609375, -0.019622802734375, 0.00848388671875, -0.001262664794921875, -0.026031494140625, 0.017364501953125, -0.029449462890625, 0.0274505615234375, 0.0092926025390625, -0.053558349609375, -0.043701171875, -0.0016088485717773438, -0.007541656494140625, 0.0153656005859375, -0.048675537109375, -0.06719970703125, -0.053802490234375, 0.07110595703125, 0.01552581787109375, 0.0189361572265625, -0.0022830963134765625, -0.0158538818359375, -0.0347900390625, -0.0064239501953125, -0.0225677490234375, 0.005298614501953125, -0.0450439453125, 0.002292633056640625, 0.00010353326797485352, 0.01194000244140625, 0.01123046875, 0.0019350051879882812, 0.0100250244140625, 0.0004725456237792969, 0.0616455078125, 0.00293731689453125, -0.04705810546875, 0.047760009765625, 0.0237884521484375, -0.047027587890625, -0.053192138671875, 0.00981903076171875, -0.0188140869140625, -0.0222320556640625, -0.0293426513671875, -0.0225067138671875, 0.0102081298828125, -0.0011224746704101562, 0.016571044921875, 0.01251983642578125, -0.00893402099609375, 0.0131378173828125, 0.0214996337890625, -0.0136566162109375, 0.00685882568359375, 0.024017333984375, 0.00243377685546875, -0.06939697265625, 0.05572509765625, 0.005176544189453125, 0.043670654296875, -0.01171112060546875, -0.0087432861328125, -0.0350341796875, 0.0516357421875, -0.00696563720703125, -0.01491546630859375, 0.01067352294921875, -0.01340484619140625, -0.01092529296875, -0.00010210275650024414, -0.050628662109375, -0.034759521484375, -0.00110626220703125, 0.044830322265625, -0.01258087158203125, 0.0190277099609375 ]
90704e82abfe59753e3f75fc9a4260fdad1aae2e
Wordpress Stackexchange Q: using wp_enqueue_script to attach jquery-ui I am trying to load jquery-ui using wp_enqueue_script. I can check that jquery is loaded. jquery-ui is registered i.e. output of var_dump( wp_script_is( 'jquery-ui-tabs', 'registered' ) ); is bool(true) which indicates it is registered but it does not get included to the page. I am using wordpress version 3.3.1 What is going wrong? I am attaching the relavant snippet from functions.php from my theme. <?php function my_scripts_method() { wp_register_script('jquery'); wp_register_script('jquery-ui-core'); wp_register_script('jquery-ui-tabs'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); ?> A: I think you're looking for wp_enqueue_script, and not wp_register_script. If the script comes with WordPress wp_enqueue_script( 'jquery-ui' );
Q: using wp_enqueue_script to attach jquery-ui I am trying to load jquery-ui using wp_enqueue_script. I can check that jquery is loaded. jquery-ui is registered i.e. output of var_dump( wp_script_is( 'jquery-ui-tabs', 'registered' ) ); is bool(true) which indicates it is registered but it does not get included to the page. I am using wordpress version 3.3.1 What is going wrong? I am attaching the relavant snippet from functions.php from my theme. <?php function my_scripts_method() { wp_register_script('jquery'); wp_register_script('jquery-ui-core'); wp_register_script('jquery-ui-tabs'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); ?> A: I think you're looking for wp_enqueue_script, and not wp_register_script. If the script comes with WordPress wp_enqueue_script( 'jquery-ui' ); A: Here's an alternative way to load a popular script like jquery-ui (using google api's) <?php // first, check to see if jquery-ui is already loaded if( !wp_script_is('jquery-ui') ) { // you don't have to use googleapi's, but I think it helps. It saves the user's browser from loading the same script again if it has already been loade> wp_enqueue_script( 'jquery-ui' , 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js' ); } ?> *If you are still having problems, try using the full path to the "siteroot", which is usually the directory you will find the wp-content folder in. So to load jquery-ui locally from your theme folder if it's not connecting, try something like: <?php // first, check to see if jquery-ui is already loaded if( !wp_script_is('jquery-ui') ) { wp_enqueue_script( 'jquery-ui' , '/home/<myusername>/<mysite.com>/wp-content/themes/<mycustomthemename>/js/jquery-ui.min.js' ); } ?> This only works if you have the file in that folder and inside of a js folder you created inside the theme. This is inadvisable if you need to change sites to a different url - but you will just have to update the folder if you do so. A: You should register new scripts with the following method: wp_register_script('jquery-ui', get_template_directory_uri().'/js/jquery-ui.js'); Currently your letting WordPress know of a new script with no source, you need to link to your source, too. Also, after registering the script, in order to use it in your theme, you need to enqueue it: wp_enqueue_script('jquery-ui'); Do that after the wp_register lines. A: jQuery and jQuery-ui are already registered with WordPress. You need enqueue them to load them on the page. But you are using 'wp_register_script()' instead of 'wp_enqueue_script()' within your 'my_scripts_method()' function. Please use the code below: function my_scripts_method() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-tabs'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); Note: you may want to load them conditionally by using 'wp_script_is()'. Example: if( !wp_script_is('jquery-ui-tabs') ) { wp_enqueue_script('jquery-ui-tabs'); }
wordpress
{ "language": "en", "length": 399, "provenance": "stackexchange_00019.jsonl.gz:415934", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38387" }
[ 0.024505615234375, 0.0016336441040039062, -0.0552978515625, -0.006191253662109375, 0.0309600830078125, -0.06744384765625, 0.07586669921875, 0.008148193359375, -0.004856109619140625, 0.03131103515625, -0.0272369384765625, 0.005420684814453125, -0.004184722900390625, 0.01166534423828125, -0.030181884765625, -0.04052734375, 0.039520263671875, -0.051971435546875, 0.005413055419921875, 0.003265380859375, 0.0236358642578125, 0.0018243789672851562, 0.0283355712890625, 0.06988525390625, 0.027191162109375, -0.0369873046875, 0.0562744140625, 0.024139404296875, 0.0277099609375, 0.01239013671875, 0.031524658203125, -0.03033447265625, 0.0136566162109375, 0.026947021484375, -0.0024738311767578125, 0.01519012451171875, 0.0357666015625, 0.00885009765625, 0.0162506103515625, 0.0283660888671875, 0.023406982421875, -0.004863739013671875, 0.006687164306640625, 0.016571044921875, -0.00444793701171875, -0.027252197265625, 0.0135650634765625, -0.0270233154296875, 0.00022721290588378906, -0.0196075439453125, 0.017364501953125, -0.0139312744140625, 0.03369140625, -0.05352783203125, -0.003948211669921875, 0.016998291015625, -0.0036182403564453125, -0.0523681640625, 0.009368896484375, 0.10577392578125, 0.031280517578125, 0.00620269775390625, -0.01290130615234375, -0.07989501953125, -0.0251617431640625, -0.00901031494140625, -0.02325439453125, -0.01430511474609375, -0.0121612548828125, -0.0015048980712890625, 0.034881591796875, -0.0029296875, -0.0069122314453125, 0.0174560546875, -0.00524139404296875, -0.054901123046875, 0.03173828125, -0.0232086181640625, -0.01190185546875, 0.03289794921875, 0.0300140380859375, -0.01190185546875, -0.0199432373046875, 0.0293731689453125, -0.01042938232421875, 0.04718017578125, -0.0026111602783203125, -0.03472900390625, -0.0249786376953125, -0.021575927734375, -0.01904296875, -0.031402587890625, -0.0400390625, 0.027801513671875, -0.002994537353515625, 0.000039458274841308594, 0.06878662109375, 0.055267333984375, 0.03790283203125, 0.01251983642578125, 0.0274200439453125, -0.07421875, 0.03460693359375, -0.025360107421875, -0.0030155181884765625, 0.07781982421875, 0.01207733154296875, 0.0093231201171875, 0.0085296630859375, -0.0011882781982421875, 0.01629638671875, 0.0018825531005859375, 0.047882080078125, 0.00688934326171875, -0.01221466064453125, -0.031585693359375, -0.01177978515625, 0.00774383544921875, -0.0035247802734375, -0.0120086669921875, 0.007663726806640625, 0.0394287109375, -0.0277099609375, 0.0003514289855957031, 0.00795745849609375, 0.003692626953125, 0.020416259765625, -0.047760009765625, -0.00495147705078125, 0.00608062744140625, 0.00077056884765625, 0.01169586181640625, 0.0197906494140625, 0.0283966064453125, -0.006549835205078125, -0.0032367706298828125, 0.047210693359375, -0.038116455078125, -0.006633758544921875, -0.0244598388671875, 0.0288543701171875, 0.0097198486328125, 0.0020275115966796875, -0.0031299591064453125, -0.022216796875, 0.0208282470703125, 0.00992584228515625, 0.00460052490234375, 0.01285552978515625, -0.049774169921875, 0.0176849365234375, -0.0310821533203125, 0.0238189697265625, 0.022369384765625, 0.0160369873046875, -0.007503509521484375, 0.0750732421875, -0.04083251953125, -0.0266265869140625, -0.041778564453125, -0.0260162353515625, 0.02130126953125, -0.0103607177734375, -0.04376220703125, -0.01197052001953125, -0.050872802734375, 0.04010009765625, 0.03167724609375, 0.0237274169921875, 0.01898193359375, -0.024505615234375, -0.04974365234375, 0.0272674560546875, -0.0008087158203125, -0.0211944580078125, 0.0447998046875, 0.021240234375, 0.0020999908447265625, 0.053466796875, 0.004199981689453125, -0.0251922607421875, -0.0199432373046875, 0.089111328125, -0.049102783203125, -0.045623779296875, -0.0036640167236328125, 0.0220184326171875, 0.03887939453125, 0.0261383056640625, -0.00007295608520507812, 0.06842041015625, 0.0124664306640625, 0.0037822723388671875, -0.044342041015625, 0.004791259765625, -0.0081634521484375, 0.0120391845703125, 0.01270294189453125, 0.0005211830139160156, 0.01151275634765625, 0.04150390625, -0.0204315185546875, 0.01461029052734375, -0.0244293212890625, -0.08660888671875, -0.0009775161743164062, -0.042724609375, 0.040985107421875, 0.01226043701171875, 0.02203369140625, 0.017181396484375, 0.0489501953125, -0.038421630859375, -0.0245208740234375, -0.04583740234375, 0.01568603515625, -0.020965576171875, 0.08013916015625, -0.006916046142578125, 0.02703857421875, 0.007511138916015625, -0.046356201171875, 0.0273895263671875, 0.0059967041015625, 0.003742218017578125, -0.017913818359375, -0.0266265869140625, -0.04058837890625, 0.007030487060546875, -0.0262603759765625, 0.0160980224609375, 0.06561279296875, 0.034271240234375, 0.0258636474609375, -0.026824951171875, -0.010986328125, -0.0082855224609375, -0.0090179443359375, 0.0018291473388671875, 0.0308685302734375, 0.028472900390625, 0.06231689453125, -0.00655364990234375, 0.015106201171875, 0.0198211669921875, -0.0633544921875, 0.01168060302734375, 0.0084075927734375, -0.0445556640625, -0.013641357421875, 0.0246429443359375, 0.03021240234375, 0.0238494873046875, -0.034820556640625, -0.0061187744140625, 0.055816650390625, -0.0174102783203125, 0.014862060546875, -0.037933349609375, 0.031646728515625, -0.0158843994140625, -0.002803802490234375, 0.0207366943359375, -0.0300750732421875, 0.0043792724609375, 0.00527191162109375, 0.014862060546875, 0.0213623046875, -0.0019140243530273438, -0.01078033447265625, 0.0106201171875, -0.02490234375, -0.0182037353515625, 0.0304107666015625, 0.045318603515625, 0.001087188720703125, -0.0562744140625, -0.005451202392578125, 0.03619384765625, 0.0244293212890625, 0.001300811767578125, -0.0009393692016601562, 0.022003173828125, -0.0072174072265625, 0.0276336669921875, -0.026397705078125, 0.0258331298828125, -0.001163482666015625, 0.0198822021484375, -0.0173492431640625, 0.0186004638671875, 0.03143310546875, 0.034942626953125, -0.0164031982421875, 0.050628662109375, -0.0269927978515625, 0.09039306640625, 0.017608642578125, 0.00321197509765625, 0.00490570068359375, 0.02117919921875, 0.0270538330078125, 0.0088653564453125, -0.01568603515625, 0.0126800537109375, -0.01934814453125, 0.0264892578125, -0.0172119140625, -0.008056640625, 0.005283355712890625, -0.0631103515625, 0.034881591796875, 0.02294921875, 0.0233306884765625, 0.0210418701171875, -0.034423828125, 0.008819580078125, 0.008056640625, -0.09686279296875, -0.1270751953125, -0.051239013671875, -0.0648193359375, 0.033599853515625, -0.0155792236328125, -0.0185394287109375, 0.007080078125, 0.0101165771484375, 0.0275421142578125, -0.015594482421875, 0.0081024169921875, -0.044708251953125, -0.0228118896484375, -0.0595703125, 0.00994110107421875, -0.0007100105285644531, 0.0154266357421875, 0.01340484619140625, -0.01058197021484375, 0.0091400146484375, -0.022369384765625, 0.0280914306640625, 0.02386474609375, -0.005672454833984375, -0.00286102294921875, 0.033050537109375, -0.048187255859375, -0.050506591796875, 0.01177215576171875, -0.042388916015625, -0.0137939453125, 0.019805908203125, -0.01532745361328125, -0.00283050537109375, -0.042724609375, 0.0208892822265625, 0.04888916015625, -0.01806640625, -0.038116455078125, 0.029022216796875, -0.058990478515625, -0.02630615234375, 0.037017822265625, -0.0109405517578125, -0.007450103759765625, -0.0112762451171875, -0.041595458984375, 0.0146942138671875, 0.008270263671875, 0.0286407470703125, -0.006195068359375, 0.016357421875, -0.004184722900390625, 0.0850830078125, -0.00307464599609375, 0.00860595703125, -0.06494140625, 0.037750244140625, -0.034210205078125, 0.0026607513427734375, -0.00232696533203125, -0.007556915283203125, 0.0006055831909179688, -0.038543701171875, -0.00469207763671875, 0.007053375244140625, 0.025177001953125, -0.0142822265625, 0.0136260986328125, -0.021209716796875, -0.00991058349609375, -0.004547119140625, 0.049957275390625, -0.0391845703125, -0.0223388671875, 0.01514434814453125, 0.029876708984375, -0.029571533203125, -0.061370849609375, -0.018524169921875, -0.023345947265625, -0.027435302734375, -0.006458282470703125, -0.034759521484375, -0.01468658447265625, -0.018280029296875, -0.0014238357543945312, -0.021697998046875, -0.029449462890625, 0.051788330078125, -0.029632568359375, 0.0009598731994628906, 0.01953125, 0.0157318115234375, -0.0457763671875, -0.03314208984375, 0.004238128662109375, -0.091552734375, -0.01180267333984375, -0.077392578125, 0.10235595703125, 0.06512451171875, -0.048065185546875, 0.0184173583984375, 0.0543212890625, 0.04022216796875, 0.0174407958984375, 0.0579833984375, -0.0030574798583984375, 0.02203369140625, -0.004703521728515625, 0.06182861328125, -0.04449462890625, -0.0060882568359375, -0.0335693359375, -0.07855224609375, -0.0723876953125, -0.0175323486328125, -0.0028705596923828125, 0.03338623046875, -0.0197906494140625, 0.0008845329284667969, 0.0037860870361328125, -0.01245880126953125, -0.0227508544921875, 0.01407623291015625, -0.0306549072265625, 0.021636962890625, -0.0012722015380859375, 0.007259368896484375, -0.035369873046875, -0.0129852294921875, 0.01300048828125, 0.0230255126953125, 0.0308380126953125, 0.00914764404296875, -0.011566162109375, 0.00882720947265625, 0.0154266357421875, 0.044189453125, 0.007404327392578125, -0.0321044921875, -0.02099609375, 0.0275421142578125, 0.0038776397705078125, 0.01129913330078125, 0.0007457733154296875, 0.015716552734375, 0.038665771484375, 0.00911712646484375, -0.00785064697265625, 0.036590576171875, -0.0310211181640625, -0.0101165771484375, -0.01385498046875, -0.0002397298812866211, 0.036102294921875, 0.0159759521484375, -0.0416259765625, 0.034454345703125, -0.0061798095703125, -0.020721435546875, -0.003482818603515625, -0.021270751953125, 0.076904296875, 0.0213623046875, -0.004665374755859375, 0.035797119140625, 0.051239013671875, -0.01073455810546875, 0.01364898681640625, 0.01061248779296875, 0.00836944580078125, 0.0264434814453125, 0.02972412109375, 0.0160675048828125, -0.0115966796875, -0.006137847900390625, 0.0308074951171875, 0.016204833984375, -0.038665771484375, -0.04241943359375, 0.00646209716796875, 0.10052490234375, -0.032562255859375, 0.01366424560546875, 0.0223846435546875, 0.07342529296875, -0.0190277099609375, -0.03399658203125, 0.0509033203125, 0.023834228515625, -0.03839111328125, 0.03271484375, 0.00408172607421875, -0.0157012939453125, -0.0218048095703125, 0.0265045166015625, -0.0041046142578125, -0.004016876220703125, 0.007572174072265625, 0.0292205810546875, 0.007076263427734375, 0.044189453125, 0.01751708984375, -0.040924072265625, -0.0011043548583984375, 0.0270538330078125, -0.023895263671875, -0.024169921875, 0.0152130126953125, 0.0237884521484375, 0.015960693359375, -0.0003590583801269531, -0.026641845703125, 0.009918212890625, -0.014373779296875, -0.0250396728515625, 0.029205322265625, 0.00576019287109375, -0.0166168212890625, -0.02532958984375, -0.01412200927734375, 0.037994384765625, 0.000011563301086425781, 0.0294952392578125, 0.0187225341796875, 0.0191650390625, 0.01287841796875, 0.020263671875, -0.005130767822265625, -0.0267486572265625, -0.0121612548828125, 0.030670166015625, 0.0374755859375, 0.01666259765625, -0.0587158203125, -0.048858642578125, -0.02105712890625, 0.0001571178436279297, 0.042572021484375, -0.0223541259765625, 0.0232696533203125, -0.041534423828125, 0.01861572265625, -0.03704833984375, 0.0025424957275390625, 0.059783935546875, 0.03472900390625, -0.00934600830078125, -0.0066375732421875, -0.05462646484375, -0.00652313232421875, -0.02032470703125, -0.053009033203125, 0.0009150505065917969, -0.009246826171875, -0.005107879638671875, 0.020233154296875, -0.0106201171875, -0.025054931640625, -0.02294921875, 0.0177459716796875, 0.01192474365234375, 0.032562255859375, -0.01971435546875, 0.07476806640625, 0.02288818359375, 0.04498291015625, 0.0164947509765625, 0.036834716796875, -0.01462554931640625, -0.030670166015625, -0.00974273681640625, -0.07781982421875, 0.0173187255859375, 0.007350921630859375, -0.0194244384765625, 0.004878997802734375, 0.01409149169921875, 0.0158538818359375, 0.0184173583984375, 0.007183074951171875, 0.0110626220703125, -0.004085540771484375, 0.0008287429809570312, 0.0197601318359375, 0.0023365020751953125, 0.057769775390625, -0.0253753662109375, -0.001605987548828125, -0.003208160400390625, 0.03692626953125, -0.007419586181640625, -0.03155517578125, -0.019500732421875, 0.0005068778991699219, -0.047515869140625, 0.05572509765625, 0.042205810546875, 0.00795745849609375, 0.035400390625, 0.00421905517578125, 0.000017881393432617188, -0.0015411376953125, 0.0391845703125, -0.05999755859375, -0.05474853515625, 0.01348114013671875, 0.0013628005981445312, -0.032440185546875, 0.00482177734375, -0.0018587112426757812, -0.006519317626953125, 0.021575927734375, 0.027923583984375, -0.035430908203125, 0.001583099365234375, -0.0058441162109375, -0.0333251953125, -0.0257415771484375, -0.025177001953125, 0.008575439453125, -0.0036144256591796875, 0.039642333984375, 0.0338134765625, -0.0246429443359375, 0.01464080810546875, 0.004146575927734375, -0.01378631591796875, -0.0276031494140625, -0.008392333984375, 0.0131683349609375, 0.004459381103515625, 0.0170745849609375, -0.004550933837890625, 0.01898193359375, -0.006305694580078125, -0.0012998580932617188, 0.0225830078125, -0.0137786865234375, -0.02001953125, 0.053741455078125, -0.0506591796875, 0.0001932382583618164, 0.01334381103515625, 0.0007638931274414062, 0.0478515625, 0.059539794921875, 0.004474639892578125, 0.0157928466796875, 0.01220703125, 0.01378631591796875, 0.029022216796875, -0.0220794677734375, 0.04229736328125, 0.0005855560302734375, -0.055908203125, 0.0033321380615234375, -0.00879669189453125, -0.033447265625, 0.0013027191162109375, -0.0224761962890625, 0.0556640625, -0.0296630859375, -0.01331329345703125, -0.00452423095703125, 0.0028934478759765625, 0.00829315185546875, 0.006683349609375, 0.0230712890625, -0.06829833984375, -0.07574462890625, 0.0330810546875, -0.10455322265625, -0.035736083984375, -0.016876220703125, -0.01055908203125, 0.07623291015625, -0.01175689697265625, -0.03204345703125, 0.00787353515625, 0.042724609375, -0.0144195556640625, 0.04266357421875, -0.005161285400390625, 0.0276641845703125, 0.01073455810546875, 0.0185546875, 0.0096893310546875, 0.00969696044921875, 0.0240936279296875, 0.0108489990234375, -0.00762176513671875, -0.00849151611328125, 0.040740966796875, -0.01120758056640625, 0.01491546630859375, 0.043304443359375, 0.005031585693359375, -0.0217132568359375, 0.026153564453125, -0.0227203369140625, 0.005352020263671875, -0.008575439453125, 0.0235443115234375, -0.0611572265625, 0.01076507568359375, 0.04034423828125, 0.0086669921875, 0.023651123046875, -0.01849365234375, -0.0016756057739257812, 0.0015687942504882812, -0.004566192626953125, -0.00046253204345703125, 0.02490234375, -0.0240020751953125, 0.04840087890625, -0.0306549072265625, 0.036041259765625, -0.0293121337890625, -0.015655517578125, 0.012115478515625, -0.01305389404296875, -0.0170440673828125, 0.027130126953125, 0.01727294921875, -0.01262664794921875, 0.0031528472900390625, -0.009979248046875, 0.0390625, -0.02294921875, 0.00301361083984375, -0.00020325183868408203, 0.033050537109375, -0.031097412109375, -0.05859375, 0.0136871337890625, 0.0120086669921875, -0.0008029937744140625, -0.04937744140625, 0.0104522705078125, 0.01262664794921875, 0.0225982666015625, 0.020416259765625, 0.039398193359375, -0.050079345703125, 0.00818634033203125, -0.005352020263671875, -0.022003173828125, -0.003261566162109375, -0.0156707763671875, -0.00255584716796875, -0.0174407958984375, 0.047943115234375, 0.03741455078125, -0.03509521484375, 0.00965118408203125, 0.008453369140625, 0.07232666015625, 0.0205841064453125, 0.0477294921875, -0.062408447265625, -0.045318603515625, -0.003116607666015625, 0.0261077880859375, -0.017913818359375, 0.01122283935546875, -0.01351165771484375, -0.0335693359375, 0.0007710456848144531, 0.0251617431640625, 0.0178985595703125, -0.007236480712890625, 0.02532958984375, 0.01407623291015625, -0.046661376953125, 0.0007429122924804688, 0.08587646484375, -0.00833892822265625, 0.0293121337890625, 0.02337646484375, 0.023895263671875, 0.03411865234375, 0.00267791748046875, -0.029144287109375, 0.07647705078125, 0.037811279296875, -0.05487060546875, 0.01226806640625, 0.002838134765625, -0.050994873046875, 0.02899169921875, 0.0292205810546875, 0.07366943359375, 0.006908416748046875, -0.0278778076171875, -0.0192413330078125, 0.0142364501953125, -0.00981903076171875, 0.01215362548828125, 0.0286865234375, -0.007503509521484375, 0.017822265625, 0.052001953125, -0.029022216796875, 0.023712158203125, 0.0233306884765625, 0.007205963134765625, 0.00034737586975097656, 0.035980224609375, 0.00925445556640625, -0.0099945068359375, -0.007579803466796875, 0.0311431884765625, 0.003482818603515625, 0.0001914501190185547, -0.0147552490234375, 0.00720977783203125, -0.00262451171875, 0.03125, -0.00284576416015625, 0.030548095703125, 0.024505615234375, -0.00435638427734375, -0.0033740997314453125, 0.014678955078125, -0.033233642578125, -0.0693359375, 0.04022216796875, -0.01200103759765625, 0.029022216796875, -0.0079803466796875, 0.00872039794921875, 0.0298614501953125, 0.047943115234375, 0.027587890625, -0.03509521484375, -0.04815673828125, -0.043121337890625, -0.01522064208984375, -0.00394439697265625, 0.01265716552734375, 0.0274200439453125, -0.015960693359375, 0.019775390625, -0.0243072509765625, -0.0079498291015625, 0.02569580078125, -0.036407470703125, 0.003330230712890625, 0.023956298828125, 0.0004119873046875, 0.0113372802734375, -0.01300048828125, 0.023040771484375, -0.002033233642578125, 0.01947021484375, -0.00689697265625, -0.0267486572265625, -0.01490020751953125, 0.08526611328125, 0.052642822265625, 0.00724029541015625, 0.043304443359375, 0.0288238525390625, -0.053955078125, 0.00434112548828125, 0.00286865234375, -0.0131378173828125, -0.03277587890625, -0.01476287841796875, 0.009368896484375, -0.0111083984375, -0.0093536376953125, -0.033935546875, -0.00467681884765625, 0.029632568359375, 0.0131072998046875, -0.09075927734375, 0.0594482421875, -0.032379150390625, 0.03656005859375, -0.03460693359375, 0.042724609375, -0.005344390869140625, 0.002124786376953125, -0.047027587890625, -0.0166168212890625, -0.006683349609375, 0.037353515625, 0.01093292236328125, 0.018096923828125, 0.032257080078125, -0.036285400390625, -0.0014333724975585938, 0.0101470947265625, 0.0380859375, 0.05731201171875, 0.019378662109375, -0.007732391357421875, -0.007091522216796875, 0.05438232421875, -0.01678466796875, -0.06561279296875, -0.0149688720703125, -0.00496673583984375, 0.03369140625, -0.032012939453125, 0.0323486328125, 0.0277862548828125, -0.034027099609375, -0.1060791015625, 0.0261383056640625, -0.027008056640625, -0.03790283203125, -0.05841064453125, 0.03692626953125, 0.0195770263671875, -0.04632568359375, -0.0268707275390625, -0.02947998046875, -0.023834228515625, 0.025054931640625, 0.0173187255859375, 0.0389404296875, 0.032501220703125, -0.034088134765625, -0.03143310546875, -0.0160064697265625, -0.0207977294921875, 0.04595947265625, -0.054107666015625, 0.0268402099609375, 0.01322174072265625, 0.046173095703125, 0.0029125213623046875, 0.0024662017822265625, 0.0242919921875, -0.016143798828125, -0.005542755126953125, -0.045013427734375, -0.019134521484375, -0.027069091796875, 0.08856201171875, -0.02362060546875, 0.010498046875, -0.01084136962890625, -0.043670654296875, -0.055694580078125, 0.01326751708984375, 0.00003081560134887695, 0.0026416778564453125, -0.061431884765625, 0.0142364501953125, 0.0188446044921875, -0.0019588470458984375, -0.046539306640625, -0.0222625732421875, -0.0548095703125, -0.0270843505859375, -0.033905029296875, 0.03546142578125, -0.02984619140625, -0.01593017578125, 0.07012939453125, -0.0238037109375, 0.0167388916015625, 0.02227783203125, 0.01666259765625, 0.05133056640625, 0.040985107421875, -0.0117950439453125, 0.025482177734375, -0.047698974609375, 0.0099639892578125, -0.01519775390625, 0.0123291015625, -0.03582763671875, 0.007678985595703125, 0.018707275390625, 0.0247802734375, 0.00264739990234375, 0.04876708984375, -0.0088958740234375, 0.0012950897216796875, -0.020355224609375, -0.01119232177734375, -0.0439453125, -0.007579803466796875, -0.029296875, -0.0116729736328125, 0.022796630859375, 0.0279388427734375, 0.080078125, -0.004451751708984375, 0.0096588134765625, 0.013763427734375, -0.026275634765625, 0.0164794921875, -0.033416748046875, -0.0892333984375, -0.0218505859375, -0.0204925537109375 ]
6968a04eb10b2ef1cb2f47091ea86ce7abe51d41
Wordpress Stackexchange Q: How to override the wordpress default widget markup I am new to wordpress, Here i use the wordpress TwentyEleven theme, i need to customize the widget markup. It means the suppose i want to change the element 'ul' to div and add some class or id to this element. Now currently it was not possible for me because the wordpress default widgets are already available inside wordpress core file.. A: http://codex.wordpress.org/Function_Reference/unregister_widget add something like this to functions.php: if (!function_exists('my_unregister_default_wp_widgets')) { function my_unregister_default_wp_widgets() { unregister_widget('WP_Widget_Calendar'); unregister_widget('WP_Widget_Recent_Posts'); } add_action('widgets_init', 'my_unregister_default_wp_widgets', 1); } Also... you can look at the http://codex.wordpress.org/Widgets_API examples to see how you can extend the WP_Widget class to create custom widgets that you want.
Q: How to override the wordpress default widget markup I am new to wordpress, Here i use the wordpress TwentyEleven theme, i need to customize the widget markup. It means the suppose i want to change the element 'ul' to div and add some class or id to this element. Now currently it was not possible for me because the wordpress default widgets are already available inside wordpress core file.. A: http://codex.wordpress.org/Function_Reference/unregister_widget add something like this to functions.php: if (!function_exists('my_unregister_default_wp_widgets')) { function my_unregister_default_wp_widgets() { unregister_widget('WP_Widget_Calendar'); unregister_widget('WP_Widget_Recent_Posts'); } add_action('widgets_init', 'my_unregister_default_wp_widgets', 1); } Also... you can look at the http://codex.wordpress.org/Widgets_API examples to see how you can extend the WP_Widget class to create custom widgets that you want. A: You can disable all the standard widgets easily by adding an empty text-box widget to the first widget area (see Appearance->Widgets in your admin interface). But i don't really understand your question, can you specify what you mean? What do you want to show in the widget area? If you just want to edit the standard widgets in the TwentyEleven theme go to the file: sidebar.php (wp-content/themes/twentyeleven/sidebar.php)
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:415948", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38454" }
[ 0.058746337890625, -0.022796630859375, 0.01488494873046875, -0.019561767578125, -0.0029354095458984375, -0.034210205078125, 0.06475830078125, -0.034393310546875, 0.0143585205078125, -0.002765655517578125, -0.00791168212890625, -0.045379638671875, 0.00975799560546875, -0.035369873046875, -0.0085296630859375, -0.038787841796875, 0.02203369140625, 0.041473388671875, 0.03662109375, -0.003429412841796875, 0.00968170166015625, 0.00543212890625, 0.0157470703125, 0.09039306640625, -0.002376556396484375, -0.0270843505859375, 0.088134765625, -0.0152587890625, -0.00960540771484375, -0.034698486328125, 0.022216796875, 0.006298065185546875, 0.018096923828125, 0.02899169921875, -0.0577392578125, -0.0273590087890625, -0.033966064453125, 0.015228271484375, -0.01364898681640625, 0.01534271240234375, 0.045379638671875, -0.037750244140625, -0.01209259033203125, -0.00222015380859375, -0.019012451171875, -0.0301055908203125, 0.055450439453125, 0.0005288124084472656, 0.0308380126953125, -0.0192413330078125, 0.0026912689208984375, 0.013092041015625, 0.041595458984375, -0.1148681640625, -0.0262603759765625, -0.044647216796875, 0.007648468017578125, -0.05426025390625, 0.0428466796875, 0.013763427734375, 0.00033211708068847656, -0.057342529296875, 0.0231475830078125, -0.02178955078125, 0.0146026611328125, -0.01039886474609375, 0.044708251953125, 0.01910400390625, -0.029266357421875, 0.004039764404296875, 0.045989990234375, -0.0031280517578125, 0.001224517822265625, -0.00804901123046875, 0.0012035369873046875, 0.00567626953125, -0.01247406005859375, 0.00959014892578125, 0.027618408203125, 0.003368377685546875, 0.07427978515625, 0.00420379638671875, 0.034820556640625, -0.020416259765625, 0.0406494140625, 0.00555419921875, 0.01053619384765625, -0.044158935546875, -0.0213470458984375, 0.02911376953125, -0.00843048095703125, -0.037811279296875, -0.009735107421875, 0.005443572998046875, 0.0117034912109375, -0.0197296142578125, 0.0214080810546875, 0.051116943359375, 0.00032591819763183594, 0.0406494140625, 0.01131439208984375, -0.0587158203125, 0.063232421875, -0.042388916015625, -0.0174713134765625, 0.02716064453125, 0.0008764266967773438, 0.04449462890625, 0.01922607421875, 0.03997802734375, 0.004886627197265625, 0.00799560546875, 0.0288543701171875, 0.00836944580078125, -0.025421142578125, -0.028106689453125, -0.00646209716796875, -0.00359344482421875, 0.00669097900390625, -0.020904541015625, -0.0026226043701171875, -0.0018911361694335938, 0.00927734375, 0.01194000244140625, 0.003936767578125, -0.00858306884765625, -0.025360107421875, -0.0186309814453125, -0.01092529296875, -0.019500732421875, -0.04736328125, 0.0149383544921875, 0.08685302734375, 0.06182861328125, 0.042083740234375, -0.00705718994140625, 0.075927734375, 0.0233917236328125, 0.00368499755859375, 0.055816650390625, -0.049346923828125, -0.027679443359375, 0.0007767677307128906, -0.020416259765625, 0.01654052734375, 0.0242919921875, 0.0207672119140625, 0.0005774497985839844, 0.01003265380859375, -0.0312347412109375, 0.0006890296936035156, -0.021331787109375, 0.0186767578125, 0.00909423828125, 0.029388427734375, -0.022918701171875, 0.07598876953125, -0.047393798828125, -0.018798828125, -0.0394287109375, -0.0330810546875, -0.0169830322265625, 0.002674102783203125, -0.054168701171875, -0.045623779296875, 0.015869140625, 0.0081329345703125, 0.0006160736083984375, 0.0277099609375, 0.0265350341796875, 0.01123809814453125, -0.018035888671875, 0.0209503173828125, 0.03778076171875, 0.01194000244140625, 0.03564453125, -0.02020263671875, 0.010589599609375, 0.037872314453125, -0.0199737548828125, -0.03375244140625, -0.0321044921875, 0.051971435546875, -0.004726409912109375, -0.07769775390625, 0.0007691383361816406, 0.02667236328125, 0.07073974609375, 0.0311279296875, 0.03125, 0.06671142578125, -0.029998779296875, -0.0665283203125, -0.00199127197265625, 0.003204345703125, -0.00241851806640625, 0.005222320556640625, -0.015045166015625, 0.00330352783203125, 0.023284912109375, 0.028228759765625, 0.014678955078125, -0.005245208740234375, -0.0074920654296875, -0.06298828125, 0.007415771484375, -0.017822265625, 0.0440673828125, -0.0140228271484375, 0.0237884521484375, 0.0218963623046875, 0.0087432861328125, -0.0265350341796875, -0.0246734619140625, -0.0219573974609375, -0.01177215576171875, 0.0215301513671875, 0.088134765625, 0.00547027587890625, 0.0257720947265625, 0.006099700927734375, -0.05303955078125, 0.0271759033203125, 0.069091796875, 0.04931640625, -0.0203857421875, -0.01197052001953125, -0.03955078125, 0.048828125, 0.0017299652099609375, -0.054107666015625, 0.052947998046875, -0.005207061767578125, -0.0208587646484375, -0.049102783203125, -0.0249786376953125, -0.02008056640625, -0.051300048828125, 0.01123809814453125, 0.06134033203125, 0.02423095703125, 0.033111572265625, -0.023193359375, 0.01434326171875, 0.046417236328125, -0.0290679931640625, 0.00907135009765625, -0.0006089210510253906, -0.00008791685104370117, 0.006916046142578125, -0.006866455078125, 0.016632080078125, 0.0307769775390625, -0.0225067138671875, 0.0277862548828125, 0.03472900390625, 0.009185791015625, -0.035858154296875, -0.0157318115234375, 0.0183258056640625, 0.0052642822265625, 0.01302337646484375, -0.04473876953125, 0.024444580078125, 0.047515869140625, -0.00583648681640625, 0.043670654296875, 0.0316162109375, -0.007778167724609375, -0.025054931640625, 0.006320953369140625, -0.012451171875, -0.01222991943359375, 0.0133514404296875, 0.0215606689453125, 0.0181427001953125, -0.045623779296875, 0.01070404052734375, 0.00843048095703125, 0.00467681884765625, 0.00585174560546875, 0.08917236328125, -0.02178955078125, -0.0178070068359375, -0.0196380615234375, -0.04052734375, -0.0347900390625, -0.01092529296875, 0.01812744140625, -0.0241851806640625, 0.01256561279296875, 0.004497528076171875, -0.02459716796875, 0.0199737548828125, 0.033782958984375, -0.038177490234375, 0.0091400146484375, -0.029937744140625, 0.043670654296875, -0.026702880859375, 0.0426025390625, 0.05999755859375, -0.0224151611328125, 0.0209503173828125, 0.006519317626953125, 0.033782958984375, 0.00997161865234375, 0.0396728515625, 0.01611328125, -0.005397796630859375, -0.03851318359375, -0.0273590087890625, 0.01861572265625, 0.054779052734375, -0.01024627685546875, -0.03765869140625, -0.0093231201171875, 0.024932861328125, -0.0247802734375, -0.010498046875, 0.0208587646484375, -0.033111572265625, 0.0083160400390625, 0.007129669189453125, -0.01430511474609375, -0.0169677734375, 0.01617431640625, 0.0115814208984375, -0.035064697265625, -0.021270751953125, -0.0364990234375, -0.0687255859375, -0.051116943359375, -0.0146636962890625, -0.00888824462890625, 0.0189361572265625, 0.00649261474609375, 0.0625, -0.0022525787353515625, -0.03424072265625, 0.0005745887756347656, 0.052093505859375, -0.01129913330078125, -0.004489898681640625, 0.019287109375, -0.04736328125, -0.027557373046875, 0.00717926025390625, 0.02166748046875, -0.011322021484375, -0.005374908447265625, -0.01213836669921875, 0.01739501953125, -0.0148162841796875, -0.00896453857421875, 0.051849365234375, 0.004673004150390625, -0.0447998046875, 0.005474090576171875, -0.054168701171875, 0.006031036376953125, 0.0044097900390625, -0.0288238525390625, 0.01177978515625, -0.0224761962890625, -0.007534027099609375, 0.0195770263671875, -0.005706787109375, -0.00380706787109375, -0.0197906494140625, 0.05548095703125, -0.057159423828125, 0.0139312744140625, -0.005970001220703125, 0.002716064453125, -0.042999267578125, 0.023101806640625, -0.00830841064453125, -0.011260986328125, 0.0020008087158203125, 0.0222015380859375, 0.01441192626953125, 0.00882720947265625, 0.00013840198516845703, -0.047149658203125, 0.01541900634765625, -0.0919189453125, -0.008087158203125, -0.01898193359375, 0.0268707275390625, 0.033477783203125, 0.0762939453125, -0.03643798828125, -0.0034999847412109375, 0.0175933837890625, 0.01995849609375, -0.030059814453125, -0.04437255859375, -0.05560302734375, -0.01502227783203125, -0.11712646484375, 0.0178375244140625, 0.014892578125, -0.0270843505859375, -0.032379150390625, 0.04547119140625, -0.08465576171875, -0.035858154296875, 0.0162353515625, -0.0012722015380859375, -0.00380706787109375, 0.0207672119140625, -0.010894775390625, -0.013671875, 0.0247802734375, -0.02593994140625, -0.0853271484375, -0.020355224609375, -0.0667724609375, 0.07171630859375, 0.048828125, -0.03521728515625, -0.035369873046875, 0.034271240234375, -0.0089569091796875, 0.001918792724609375, 0.039031982421875, 0.03485107421875, 0.0264739990234375, -0.013671875, 0.02899169921875, -0.035308837890625, -0.0107574462890625, -0.005001068115234375, -0.060516357421875, -0.0124053955078125, -0.0128021240234375, -0.0128631591796875, 0.04437255859375, -0.043243408203125, -0.007049560546875, -0.06854248046875, -0.03533935546875, 0.0095062255859375, -0.0389404296875, 0.03643798828125, -0.06304931640625, -0.00818634033203125, 0.031951904296875, 0.0212249755859375, -0.012847900390625, 0.00994110107421875, 0.0419921875, 0.0168914794921875, -0.03582763671875, -0.0223541259765625, -0.0245208740234375, 0.0166168212890625, 0.035797119140625, 0.0057525634765625, -0.0138092041015625, 0.00533294677734375, 0.0141448974609375, -0.00353240966796875, -0.00156402587890625, -0.0036067962646484375, 0.061614990234375, 0.01055908203125, 0.00736236572265625, -0.009552001953125, -0.005138397216796875, -0.0260467529296875, 0.002803802490234375, 0.018707275390625, -0.00991058349609375, 0.058746337890625, -0.006412506103515625, 0.0234222412109375, -0.039947509765625, -0.0019931793212890625, 0.0330810546875, -0.011444091796875, 0.0115814208984375, 0.02032470703125, 0.0096282958984375, 0.0157012939453125, -0.047332763671875, 0.0030307769775390625, -0.014495849609375, 0.0090484619140625, 0.020233154296875, -0.01446533203125, 0.0006737709045410156, 0.034332275390625, -0.0264129638671875, -0.005126953125, -0.0096588134765625, 0.09051513671875, 0.0290069580078125, -0.01312255859375, -0.0222320556640625, 0.008026123046875, 0.051788330078125, -0.006839752197265625, -0.002105712890625, -0.0017614364624023438, 0.0188446044921875, -0.00273895263671875, -0.006305694580078125, 0.0092620849609375, 0.0189208984375, -0.023956298828125, -0.054718017578125, 0.006496429443359375, -0.035064697265625, -0.00927734375, 0.01180267333984375, 0.06243896484375, -0.02581787109375, -0.0248870849609375, 0.03607177734375, -0.0200042724609375, 0.05499267578125, 0.033416748046875, -0.029632568359375, -0.0019512176513671875, 0.0193328857421875, -0.0301055908203125, 0.0198211669921875, 0.005527496337890625, 0.00762176513671875, 0.0009317398071289062, 0.0006661415100097656, -0.00154876708984375, 0.0136260986328125, -0.03253173828125, -0.01493072509765625, 0.01395416259765625, -0.018402099609375, -0.053741455078125, 0.0111846923828125, 0.01540374755859375, 0.00658416748046875, -0.01788330078125, -0.02764892578125, -0.0009336471557617188, -0.037322998046875, 0.0196533203125, 0.01611328125, -0.0160675048828125, 0.022674560546875, 0.0111541748046875, -0.0252532958984375, -0.006122589111328125, 0.01325225830078125, -0.1024169921875, -0.0193328857421875, -0.0075836181640625, -0.01030731201171875, 0.0266265869140625, -0.04412841796875, 0.039642333984375, -0.0325927734375, 0.007694244384765625, -0.042816162109375, 0.03369140625, 0.03411865234375, 0.0318603515625, -0.0259552001953125, -0.031402587890625, -0.042327880859375, -0.03997802734375, -0.047760009765625, -0.0264129638671875, -0.0408935546875, 0.027435302734375, 0.0280609130859375, 0.001811981201171875, 0.0125732421875, -0.0164642333984375, -0.033599853515625, 0.0298614501953125, 0.0460205078125, 0.02911376953125, -0.01438140869140625, 0.03692626953125, -0.016998291015625, 0.01788330078125, -0.023895263671875, -0.01428985595703125, -0.0262908935546875, 0.0062408447265625, 0.0272369384765625, -0.023651123046875, -0.0498046875, -0.0183563232421875, -0.072509765625, -0.001956939697265625, 0.050201416015625, -0.0292816162109375, 0.048187255859375, -0.039337158203125, -0.006134033203125, -0.01424407958984375, 0.042022705078125, -0.06622314453125, 0.0189971923828125, 0.013092041015625, -0.0156402587890625, 0.00921630859375, 0.002017974853515625, -0.003021240234375, 0.010986328125, -0.010833740234375, 0.01103973388671875, 0.001605987548828125, -0.08465576171875, 0.048248291015625, 0.0182037353515625, -0.0010967254638671875, 0.0283660888671875, -0.03631591796875, 0.01215362548828125, 0.01499176025390625, -0.01275634765625, -0.0230865478515625, 0.02264404296875, 0.036346435546875, -0.0198516845703125, -0.0127410888671875, 0.007556915283203125, -0.01015472412109375, -0.004390716552734375, 0.05694580078125, 0.0523681640625, -0.07293701171875, 0.00394439697265625, -0.01605224609375, -0.01419830322265625, 0.0235137939453125, 0.0130157470703125, -0.020416259765625, -0.0185089111328125, 0.0372314453125, -0.02545166015625, 0.0026531219482421875, 0.03692626953125, 0.005023956298828125, -0.0002225637435913086, -0.03521728515625, 0.0721435546875, 0.0271759033203125, 0.01020050048828125, -0.005977630615234375, -0.0181884765625, 0.01873779296875, -0.0300445556640625, -0.007488250732421875, 0.0116729736328125, -0.04376220703125, -0.09234619140625, -0.0263214111328125, 0.0161590576171875, -0.031646728515625, 0.042144775390625, -0.0305938720703125, 0.042938232421875, 0.04931640625, -0.032958984375, 0.056854248046875, -0.023193359375, 0.038055419921875, 0.00980377197265625, 0.01459503173828125, 0.037384033203125, 0.005481719970703125, -0.018951416015625, 0.0187225341796875, -0.032562255859375, -0.0204620361328125, 0.00524139404296875, -0.0195159912109375, 0.06292724609375, -0.04901123046875, 0.00836181640625, 0.034027099609375, 0.039794921875, -0.0213775634765625, -0.029510498046875, 0.0252227783203125, -0.048797607421875, -0.011138916015625, -0.0185546875, -0.03607177734375, 0.0023937225341796875, -0.044464111328125, -0.03271484375, 0.11370849609375, -0.00824737548828125, -0.0029506683349609375, 0.017669677734375, 0.056121826171875, -0.0292510986328125, 0.040802001953125, -0.03619384765625, -0.00004649162292480469, -0.00785064697265625, 0.01149749755859375, 0.01548004150390625, 0.0266571044921875, -0.01267242431640625, -0.0285186767578125, 0.03021240234375, 0.01348114013671875, -0.0266571044921875, -0.0178375244140625, 0.02093505859375, 0.02679443359375, -0.01403045654296875, 0.03509521484375, -0.0023441314697265625, 0.023406982421875, -0.031219482421875, -0.0008401870727539062, 0.0221099853515625, -0.03375244140625, -0.06097412109375, 0.03424072265625, 0.007534027099609375, 0.0029144287109375, -0.0010805130004882812, 0.05078125, -0.033172607421875, -0.0024280548095703125, 0.0221099853515625, -0.005290985107421875, 0.004169464111328125, 0.04150390625, 0.045654296875, -0.01160430908203125, -0.007015228271484375, -0.0275726318359375, 0.045623779296875, 0.01213836669921875, -0.0041046142578125, 0.032073974609375, 0.0093536376953125, -0.0274810791015625, 0.019744873046875, 0.0055389404296875, 0.0309906005859375, 0.00453948974609375, 0.016387939453125, 0.0167236328125, -0.00012755393981933594, -0.0159454345703125, 0.03692626953125, 0.052490234375, 0.01256561279296875, -0.03900146484375, -0.007686614990234375, 0.01293182373046875, 0.00978851318359375, -0.007415771484375, -0.00841522216796875, 0.035369873046875, -0.06829833984375, -0.052276611328125, -0.062042236328125, -0.00640869140625, 0.039581298828125, 0.0309600830078125, -0.0286102294921875, -0.03863525390625, -0.005725860595703125, -0.0262451171875, -0.0203704833984375, -0.005107879638671875, -0.01270294189453125, 0.03857421875, 0.00432586669921875, 0.03387451171875, -0.020355224609375, -0.006320953369140625, 0.01053619384765625, -0.00299072265625, 0.0163726806640625, -0.021026611328125, -0.005970001220703125, 0.003871917724609375, -0.00771331787109375, 0.0129547119140625, -0.01239013671875, 0.006694793701171875, 0.02593994140625, 0.0048065185546875, -0.0577392578125, -0.017791748046875, 0.032867431640625, -0.032684326171875, 0.004852294921875, -0.0248260498046875, 0.0216827392578125, 0.0027561187744140625, 0.005847930908203125, -0.0162506103515625, 0.052093505859375, 0.0174713134765625, -0.048675537109375, 0.0584716796875, -0.005863189697265625, -0.0010766983032226562, 0.03778076171875, 0.0016508102416992188, 0.047760009765625, -0.01332855224609375, -0.1004638671875, -0.0164337158203125, -0.0008168220520019531, -0.06890869140625, 0.03387451171875, 0.043212890625, -0.051513671875, 0.010650634765625, 0.00664520263671875, 0.003292083740234375, 0.017669677734375, -0.034912109375, 0.0158538818359375, 0.018585205078125, 0.012847900390625, 0.0201416015625, -0.044219970703125, 0.00048279762268066406, -0.032470703125, 0.034271240234375, 0.0256500244140625, 0.0233917236328125, 0.006015777587890625, 0.03253173828125, -0.0245819091796875, 0.016937255859375, -0.0252685546875, -0.0379638671875, 0.043609619140625, -0.0003998279571533203, 0.004100799560546875, -0.021697998046875, -0.0195159912109375, 0.0012578964233398438, 0.01505279541015625, -0.040863037109375, 0.02337646484375, -0.044158935546875, 0.0125579833984375, -0.0208892822265625, -0.009765625, -0.039947509765625, -0.023162841796875, -0.0179443359375, -0.01412200927734375, 0.01342010498046875, -0.0186309814453125, -0.0002913475036621094, -0.0193023681640625, -0.0038280487060546875, -0.0251312255859375, -0.007122039794921875, 0.016082763671875, -0.022857666015625, 0.03424072265625, -0.0009288787841796875, -0.030792236328125, -0.018768310546875, -0.0158843994140625, -0.024261474609375, 0.0178375244140625, -0.0225677490234375, -0.019073486328125, -0.034942626953125, -0.0121917724609375, 0.017608642578125, 0.00514984130859375, -0.0452880859375, 0.0140533447265625, 0.04266357421875, -0.0203399658203125, -0.004192352294921875, -0.0175018310546875, -0.0118408203125, -0.09429931640625, -0.01216888427734375, 0.0276031494140625, -0.0753173828125, 0.0033092498779296875, -0.08465576171875, 0.005252838134765625, 0.042755126953125, 0.0243377685546875, -0.07330322265625, 0.04986572265625, -0.01849365234375, 0.031951904296875, 0.0090484619140625, 0.02557373046875, -0.0134124755859375, -0.0012264251708984375, -0.048492431640625, -0.047454833984375, -0.0377197265625, 0.036865234375, -0.040618896484375, -0.01412200927734375, 0.007030487060546875, -0.0139007568359375, 0.0029048919677734375, -0.0147247314453125, 0.00960540771484375, 0.04290771484375, -0.001895904541015625, -0.0224761962890625, 0.006290435791015625, -0.0015668869018554688, 0.0006542205810546875, -0.039398193359375, 0.01082611083984375, -0.052032470703125, 0.003589630126953125, 0.047119140625, -0.034393310546875, 0.01206207275390625, -0.049041748046875, -0.08642578125, 0.036376953125, 0.00432586669921875, -0.04541015625, 0.004611968994140625, 0.00044155120849609375, -0.02740478515625, 0.0021724700927734375, 0.0066070556640625, -0.020111083984375, 0.004917144775390625, 0.03192138671875, 0.01715087890625, 0.035797119140625, 0.026458740234375, 0.0274658203125, -0.0679931640625, 0.00913238525390625, -0.03155517578125, 0.0264434814453125, -0.0258636474609375, -0.00452423095703125, 0.00478363037109375, 0.01387786865234375, -0.05010986328125, -0.037506103515625, -0.0057525634765625, 0.051666259765625, -0.00026226043701171875, -0.0374755859375, -0.044281005859375, -0.034332275390625, 0.03643798828125, 0.045654296875, 0.00829315185546875, -0.00321197509765625, -0.0143585205078125, -0.00690460205078125, -0.0243682861328125, -0.016357421875, 0.0263671875, -0.07623291015625, -0.022369384765625, 0.0244293212890625, -0.039825439453125, 0.01326751708984375, -0.004238128662109375, -0.056732177734375, 0.01580810546875, -0.01776123046875, -0.00009942054748535156, -0.06463623046875, 0.034637451171875, 0.06512451171875, -0.0279693603515625, 0.0345458984375, -0.00734710693359375, 0.0023784637451171875, 0.06414794921875, -0.01873779296875, -0.037628173828125, 0.0043182373046875, -0.0185089111328125, -0.0034198760986328125, -0.01203155517578125, 0.03662109375, -0.02093505859375, 0.005176544189453125, -0.0288543701171875, -0.0006418228149414062, 0.0030002593994140625, 0.01192474365234375, 0.00609588623046875, 0.00988006591796875, 0.016815185546875, 0.0281982421875, -0.0063018798828125, 0.006866455078125, -0.0191650390625, 0.032623291015625, 0.0014858245849609375, -0.0008978843688964844, 0.0248565673828125, -0.015899658203125, 0.015655517578125, 0.00069427490234375, 0.032806396484375, -0.0265045166015625, 0.01036834716796875, -0.0291290283203125, -0.01125335693359375, 0.002559661865234375 ]
dcc6ffc0a48fc9190afe9a7a76ffe13ee728bb8c
Wordpress Stackexchange Q: Collaborative question/answer plugin for WordPress I am looking for a collaborative question/answer plugin built in the same sort of style as StackOverflow. Features I am looking for: * *Profiles *Index of questions with search by tag/title/contents *Vote up/down *Edit yours and other peoples questions+answers (wiki style) *Integrated markdown (or similar) Before you ask, yes I have seen Question and Answer Forum Plugin and WP-Answers but neither have support for collaborative editing. A: Templatic has one called Q&A WordPress. Here is the demo.
Q: Collaborative question/answer plugin for WordPress I am looking for a collaborative question/answer plugin built in the same sort of style as StackOverflow. Features I am looking for: * *Profiles *Index of questions with search by tag/title/contents *Vote up/down *Edit yours and other peoples questions+answers (wiki style) *Integrated markdown (or similar) Before you ask, yes I have seen Question and Answer Forum Plugin and WP-Answers but neither have support for collaborative editing. A: Templatic has one called Q&A WordPress. Here is the demo. A: WPMU's Q&A plugin has almost all the functionality you're looking for -- it uses HTML instead of Markdown. The admin panel lets you assign various capabilities to different roles, including the ability to edit others' questions and answers. A: Try Q&A Lite plugin. I could not find it by search on my site plugin install, but downloading the zip and uploading in the admin helped.
wordpress
{ "language": "en", "length": 149, "provenance": "stackexchange_00019.jsonl.gz:415952", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38462" }
[ -0.015350341796875, -0.0091552734375, -0.02655029296875, 0.0261993408203125, -0.01224517822265625, -0.0282440185546875, 0.051055908203125, -0.01427459716796875, 0.0182952880859375, -0.0019855499267578125, 0.0026645660400390625, 0.024322509765625, -0.056488037109375, -0.033172607421875, -0.01293182373046875, -0.0092315673828125, -0.0017900466918945312, -0.0005135536193847656, 0.0017175674438476562, -0.0200653076171875, 0.01044464111328125, -0.0134429931640625, -0.00322723388671875, 0.0127716064453125, 0.055389404296875, 0.0151824951171875, 0.01398468017578125, -0.00475311279296875, 0.05194091796875, 0.02044677734375, 0.033721923828125, -0.0753173828125, 0.00849151611328125, 0.053375244140625, -0.0526123046875, -0.07916259765625, 0.00966644287109375, 0.0006308555603027344, -0.0170135498046875, 0.0288543701171875, 0.0299530029296875, -0.02386474609375, -0.00218963623046875, 0.0200347900390625, 0.0035991668701171875, -0.0560302734375, 0.056671142578125, -0.04534912109375, 0.04339599609375, -0.0205078125, -0.0263824462890625, 0.036224365234375, -0.017486572265625, -0.0443115234375, -0.0004296302795410156, 0.00395965576171875, 0.01593017578125, -0.0153656005859375, 0.046661376953125, -0.019256591796875, -0.035308837890625, -0.0447998046875, 0.04290771484375, -0.0182952880859375, -0.01837158203125, -0.00942230224609375, 0.008056640625, 0.00908660888671875, 0.0211944580078125, -0.0124664306640625, -0.00012862682342529297, -0.00112152099609375, -0.00579071044921875, 0.0159759521484375, -0.0191497802734375, -0.040679931640625, 0.020660400390625, -0.039764404296875, 0.0060577392578125, 0.0171356201171875, -0.0220184326171875, -0.022430419921875, -0.027099609375, -0.05780029296875, 0.01085662841796875, -0.034515380859375, -0.01419830322265625, 0.0185394287109375, -0.0478515625, -0.0110931396484375, -0.0184173583984375, -0.0904541015625, -0.072509765625, 0.04962158203125, 0.022674560546875, -0.00933837890625, 0.01163482666015625, -0.033203125, -0.00439453125, -0.00384521484375, 0.056304931640625, -0.038970947265625, 0.019683837890625, -0.007778167724609375, 0.00444793701171875, 0.0455322265625, 0.004291534423828125, 0.007701873779296875, 0.0247802734375, 0.019134521484375, 0.0048980712890625, 0.00896453857421875, -0.0119171142578125, -0.0584716796875, 0.03509521484375, 0.0163116455078125, -0.0295257568359375, 0.0616455078125, 0.02703857421875, 0.017608642578125, -0.0279998779296875, -0.0133209228515625, 0.052947998046875, 0.00965118408203125, -0.004467010498046875, -0.00246429443359375, -0.005580902099609375, -0.0294342041015625, -0.01369476318359375, -0.003154754638671875, -0.03155517578125, 0.0308837890625, 0.058349609375, 0.0017271041870117188, -0.0176239013671875, -0.021392822265625, -0.01041412353515625, 0.00406646728515625, -0.019775390625, -0.0006818771362304688, -0.0307464599609375, 0.02301025390625, 0.07696533203125, -0.055816650390625, 0.0257110595703125, 0.00769805908203125, 0.03643798828125, 0.02471923828125, -0.0260162353515625, -0.01934814453125, 0.00962066650390625, 0.046173095703125, 0.0199737548828125, -0.0213623046875, 0.0142364501953125, -0.0548095703125, -0.01476287841796875, -0.0213623046875, 0.041107177734375, 0.0002390146255493164, 0.0281524658203125, -0.00634765625, 0.00257110595703125, 0.013153076171875, -0.01045989990234375, 0.0020885467529296875, -0.020477294921875, 0.00814056396484375, 0.0193634033203125, -0.0211334228515625, 0.0248870849609375, 0.0142974853515625, 0.053436279296875, -0.003421783447265625, 0.00418853759765625, 0.0007839202880859375, -0.022552490234375, 0.0201263427734375, 0.020111083984375, 0.07073974609375, 0.0199127197265625, -0.0186004638671875, 0.05035400390625, 0.00566864013671875, -0.003185272216796875, 0.0157470703125, 0.005462646484375, 0.01184844970703125, 0.004032135009765625, 0.01348114013671875, -0.0031223297119140625, 0.018707275390625, -0.00872039794921875, 0.005413055419921875, -0.026031494140625, -0.0017805099487304688, 0.01447296142578125, 0.037078857421875, -0.0197296142578125, -0.0243072509765625, -0.04254150390625, 0.0239715576171875, -0.0279083251953125, 0.037445068359375, -0.051300048828125, 0.010223388671875, -0.02581787109375, 0.02899169921875, 0.01142120361328125, 0.050567626953125, -0.00592041015625, 0.00241851806640625, 0.0178985595703125, -0.05047607421875, 0.006816864013671875, -0.0021724700927734375, -0.0208282470703125, -0.0228729248046875, 0.0127105712890625, -0.01045989990234375, -0.0015821456909179688, 0.036895751953125, -0.00917816162109375, -0.0187530517578125, 0.008453369140625, -0.0140228271484375, -0.00848388671875, -0.0088958740234375, -0.01116180419921875, 0.0035076141357421875, -0.011383056640625, 0.042449951171875, 0.037689208984375, 0.0810546875, 0.0218048095703125, -0.0027790069580078125, 0.036041259765625, -0.042449951171875, 0.01068115234375, -0.00443267822265625, 0.024658203125, -0.007354736328125, -0.022369384765625, -0.006916046142578125, 0.035369873046875, 0.0205841064453125, 0.0389404296875, -0.00689697265625, 0.00527191162109375, 0.035980224609375, -0.012237548828125, -0.004131317138671875, 0.01509857177734375, 0.0030460357666015625, 0.00927734375, 0.006114959716796875, -0.0190887451171875, 0.0078125, 0.01303863525390625, -0.012359619140625, -0.0116424560546875, -0.047760009765625, -0.0128021240234375, -0.0237274169921875, 0.01446533203125, -0.0195159912109375, 0.04248046875, 0.0335693359375, -0.0036258697509765625, -0.03485107421875, 0.01047515869140625, 0.029998779296875, 0.00800323486328125, 0.07012939453125, 0.045684814453125, 0.0133209228515625, -0.0203857421875, -0.034912109375, 0.0205230712890625, 0.046478271484375, 0.0056304931640625, 0.0032787322998046875, 0.009979248046875, -0.01422119140625, 0.009857177734375, -0.05194091796875, 0.0095367431640625, 0.0020275115966796875, 0.006389617919921875, -0.019012451171875, 0.008331298828125, 0.0194549560546875, -0.04339599609375, 0.0706787109375, 0.00499725341796875, -0.0445556640625, 0.0246734619140625, -0.04730224609375, 0.031951904296875, -0.026885986328125, 0.06646728515625, 0.080078125, -0.00627899169921875, 0.016998291015625, 0.00543212890625, 0.00305938720703125, 0.018829345703125, -0.011566162109375, -0.0123291015625, 0.0477294921875, -0.0748291015625, -0.0020580291748046875, -0.00550079345703125, -0.002948760986328125, -0.0198211669921875, -0.051361083984375, -0.0203704833984375, -0.00433349609375, -0.0985107421875, -0.04254150390625, 0.022918701171875, -0.059326171875, 0.003902435302734375, -0.00839996337890625, -0.0287628173828125, -0.005191802978515625, 0.0257415771484375, -0.01137542724609375, -0.0075225830078125, -0.037506103515625, -0.0517578125, -0.07952880859375, -0.0845947265625, -0.0206298828125, -0.006328582763671875, 0.0220794677734375, 0.0095062255859375, 0.0189208984375, 0.017303466796875, 0.01132965087890625, 0.051361083984375, -0.02532958984375, -0.0083160400390625, -0.01203155517578125, 0.005176544189453125, 0.01499176025390625, 0.0010309219360351562, 0.01568603515625, 0.04205322265625, 0.050567626953125, -0.055145263671875, -0.0052490234375, 0.0011186599731445312, -0.0021114349365234375, 0.04010009765625, -0.0282135009765625, -0.017486572265625, 0.00994873046875, 0.0228729248046875, -0.037353515625, 0.02154541015625, -0.0005717277526855469, -0.0096893310546875, -0.03436279296875, 0.004779815673828125, -0.021453857421875, -0.0111083984375, -0.01519012451171875, 0.022369384765625, 0.015716552734375, 0.00008720159530639648, -0.0183868408203125, -0.01435089111328125, 0.00592803955078125, 0.01092529296875, -0.01160430908203125, -0.044677734375, -0.06719970703125, 0.0833740234375, -0.0218658447265625, -0.018798828125, -0.007686614990234375, 0.04193115234375, 0.01543426513671875, 0.0201416015625, 0.0311126708984375, 0.023101806640625, 0.05035400390625, -0.023162841796875, -0.034881591796875, -0.035736083984375, 0.045562744140625, -0.0172576904296875, 0.00157928466796875, 0.014190673828125, -0.006908416748046875, 0.0025615692138671875, -0.0247955322265625, -0.06378173828125, -0.01306915283203125, -0.0215301513671875, 0.06280517578125, 0.01904296875, 0.0054779052734375, -0.0188446044921875, 0.05389404296875, -0.0262451171875, -0.0025882720947265625, 0.0086669921875, -0.033599853515625, 0.0185546875, -0.03448486328125, -0.01280975341796875, -0.056610107421875, 0.0157623291015625, -0.0535888671875, -0.06549072265625, -0.00027251243591308594, -0.0517578125, 0.05926513671875, 0.035003662109375, -0.0215301513671875, -0.0232086181640625, 0.040924072265625, -0.0090789794921875, 0.026824951171875, -0.021331787109375, 0.00963592529296875, -0.029388427734375, -0.048614501953125, -0.0233001708984375, -0.047943115234375, -0.00423431396484375, 0.0019311904907226562, 0.02264404296875, -0.033721923828125, -0.07391357421875, -0.10064697265625, -0.043914794921875, -0.03338623046875, -0.009033203125, -0.005374908447265625, -0.01690673828125, 0.0247039794921875, -0.01311492919921875, -0.01093292236328125, -0.00731658935546875, -0.020782470703125, -0.013092041015625, -0.01552581787109375, -0.034027099609375, 0.0309600830078125, 0.01476287841796875, 0.0276336669921875, 0.0122528076171875, -0.0638427734375, -0.0229339599609375, 0.038116455078125, 0.076171875, 0.0254974365234375, 0.03021240234375, -0.0252685546875, 0.01244354248046875, 0.0706787109375, 0.036773681640625, -0.033935546875, 0.0109710693359375, 0.005893707275390625, -0.018035888671875, 0.03240966796875, -0.004436492919921875, 0.00907135009765625, -0.0110626220703125, -0.0245208740234375, 0.0117950439453125, -0.03631591796875, 0.007465362548828125, 0.01513671875, 0.01143646240234375, -0.01953125, -0.042510986328125, 0.028167724609375, -0.025115966796875, 0.017852783203125, 0.0059661865234375, -0.0118408203125, 0.0072174072265625, -0.0008749961853027344, -0.031463623046875, 0.0028228759765625, -0.0038280487060546875, -0.025665283203125, -0.0017633438110351562, -0.0036334991455078125, -0.06390380859375, 0.00988006591796875, -0.00750732421875, 0.0643310546875, -0.0018024444580078125, -0.047821044921875, 0.0008788108825683594, -0.0011529922485351562, 0.0158233642578125, 0.0251617431640625, 0.01629638671875, 0.0141754150390625, 0.06195068359375, 0.004230499267578125, -0.005809783935546875, 0.006336212158203125, 0.046875, -0.03131103515625, -0.02392578125, -0.04241943359375, 0.0082855224609375, 0.019073486328125, 0.038818359375, -0.08563232421875, 0.04754638671875, 0.0108489990234375, 0.024322509765625, 0.0377197265625, -0.01279449462890625, 0.0151824951171875, 0.004817962646484375, -0.0095062255859375, -0.0270538330078125, 0.0167236328125, 0.002986907958984375, 0.00926971435546875, -0.0091552734375, -0.004474639892578125, 0.0129852294921875, 0.01100921630859375, 0.026824951171875, -0.015899658203125, -0.03338623046875, -0.00717926025390625, 0.03369140625, -0.0038776397705078125, 0.0009737014770507812, 0.0158843994140625, -0.0048370361328125, 0.0419921875, -0.0036945343017578125, -0.003574371337890625, -0.0389404296875, -0.01332855224609375, 0.0181121826171875, -0.039794921875, -0.01311492919921875, -0.01215362548828125, 0.059600830078125, 0.03533935546875, 0.00124359130859375, -0.041473388671875, -0.027679443359375, -0.0374755859375, 0.01519012451171875, 0.1046142578125, -0.01519012451171875, 0.0129547119140625, -0.0017042160034179688, 0.002094268798828125, 0.017913818359375, -0.01407623291015625, 0.054412841796875, 0.031890869140625, -0.04840087890625, -0.01308441162109375, -0.020477294921875, -0.030059814453125, -0.0205841064453125, -0.007190704345703125, -0.05224609375, -0.015625, 0.0203704833984375, -0.005962371826171875, -0.0019016265869140625, -0.037078857421875, -0.01245880126953125, 0.042816162109375, 0.057830810546875, 0.034393310546875, -0.004947662353515625, 0.024627685546875, 0.021087646484375, 0.04229736328125, 0.0236358642578125, 0.01336669921875, -0.022308349609375, -0.0289764404296875, -0.0196990966796875, -0.05780029296875, 0.0070953369140625, 0.022247314453125, -0.0143585205078125, 0.0236358642578125, 0.008697509765625, 0.02203369140625, 0.007061004638671875, 0.002506256103515625, 0.005702972412109375, -0.002231597900390625, 0.007678985595703125, 0.0341796875, -0.007038116455078125, 0.0313720703125, -0.0623779296875, -0.003444671630859375, 0.005786895751953125, 0.015350341796875, 0.0270538330078125, -0.038818359375, 0.006626129150390625, 0.062408447265625, -0.026947021484375, 0.023956298828125, 0.042999267578125, 0.02996826171875, 0.04833984375, 0.018798828125, 0.0298004150390625, -0.00777435302734375, -0.007488250732421875, 0.0015935897827148438, -0.02606201171875, 0.00945281982421875, -0.0195770263671875, -0.0023708343505859375, 0.0255584716796875, -0.017822265625, -0.0041351318359375, 0.0181121826171875, 0.049072265625, -0.026580810546875, 0.005680084228515625, 0.00891876220703125, -0.0201416015625, 0.01068878173828125, 0.01134490966796875, 0.0151519775390625, -0.0042724609375, 0.004833221435546875, -0.0098114013671875, -0.0083770751953125, 0.0017795562744140625, -0.0238800048828125, -0.036865234375, -0.0014209747314453125, -0.0065460205078125, 0.016448974609375, -0.0302734375, 0.0211944580078125, 0.0257720947265625, 0.0181884765625, -0.0283050537109375, 0.01727294921875, 0.019775390625, -0.006683349609375, -0.06964111328125, 0.0258026123046875, 0.00405120849609375, -0.0131988525390625, 0.035552978515625, -0.0284423828125, -0.054412841796875, 0.0253448486328125, -0.064208984375, 0.03955078125, -0.0206451416015625, -0.05230712890625, -0.006633758544921875, -0.02545166015625, 0.0175323486328125, 0.025787353515625, -0.0008268356323242188, 0.0173187255859375, 0.012664794921875, -0.0291748046875, -0.008514404296875, 0.06976318359375, 0.11517333984375, -0.0450439453125, -0.0212249755859375, 0.06787109375, -0.0021514892578125, -0.03997802734375, -0.011383056640625, -0.01210784912109375, -0.07366943359375, -0.048858642578125, -0.0235137939453125, -0.06646728515625, 0.025726318359375, -0.0171356201171875, -0.03680419921875, 0.07794189453125, 0.050018310546875, -0.0208740234375, 0.0015125274658203125, 0.041961669921875, -0.035797119140625, 0.01861572265625, -0.0230560302734375, 0.064453125, -0.041778564453125, 0.0189971923828125, -0.05279541015625, 0.0037670135498046875, -0.01122283935546875, 0.004741668701171875, 0.0230560302734375, 0.008544921875, -0.07586669921875, -0.02386474609375, 0.002521514892578125, -0.01343536376953125, 0.0059814453125, 0.074951171875, 0.0261077880859375, 0.0065765380859375, 0.046417236328125, -0.0176239013671875, 0.0246124267578125, -0.01824951171875, 0.0252838134765625, 0.050750732421875, 0.00963592529296875, 0.00307464599609375, -0.02374267578125, 0.0777587890625, -0.02978515625, -0.009490966796875, 0.01258087158203125, 0.02294921875, 0.013671875, 0.007427215576171875, 0.0234375, -0.03179931640625, 0.0247039794921875, -0.0247650146484375, 0.049591064453125, -0.0101470947265625, -0.0254974365234375, -0.00998687744140625, -0.000054895877838134766, -0.01041412353515625, -0.0280609130859375, -0.0248870849609375, 0.018035888671875, -0.006816864013671875, 0.029876708984375, -0.0178070068359375, 0.029052734375, -0.0765380859375, -0.045562744140625, 0.02728271484375, 0.06390380859375, -0.020111083984375, -0.059844970703125, -0.003589630126953125, 0.0185089111328125, 0.0308380126953125, 0.0199432373046875, 0.0180816650390625, -0.030517578125, 0.056610107421875, -0.006580352783203125, 0.0298614501953125, 0.02996826171875, -0.046600341796875, -0.00830078125, 0.006805419921875, 0.0170135498046875, 0.0748291015625, -0.0236968994140625, 0.015350341796875, -0.01262664794921875, 0.00984954833984375, 0.01374053955078125, 0.023651123046875, -0.0101470947265625, 0.006595611572265625, -0.00893402099609375, 0.0229949951171875, 0.00974273681640625, 0.0134735107421875, -0.0301361083984375, -0.03668212890625, 0.0189361572265625, 0.03265380859375, 0.0312347412109375, 0.07745361328125, 0.06964111328125, 0.0156402587890625, -0.0023975372314453125, 0.01580810546875, 0.0172576904296875, -0.036346435546875, 0.0184478759765625, -0.03106689453125, 0.058502197265625, 0.050994873046875, 0.0165557861328125, -0.04071044921875, 0.012054443359375, 0.08233642578125, 0.00255584716796875, 0.03167724609375, -0.0010519027709960938, -0.007160186767578125, -0.00861358642578125, -0.04010009765625, 0.01165008544921875, -0.00408935546875, -0.0760498046875, -0.0258636474609375, 0.00627899169921875, -0.00274658203125, 0.0201568603515625, 0.036895751953125, -0.01200103759765625, 0.0166015625, 0.00872039794921875, -0.0123138427734375, 0.0079498291015625, -0.01384735107421875, 0.032318115234375, 0.0281219482421875, -0.01184844970703125, 0.002422332763671875, -0.039825439453125, -0.0187835693359375, -0.0201873779296875, 0.04534912109375, 0.007080078125, 0.026947021484375, -0.00295257568359375, 0.035369873046875, 0.0118865966796875, -0.0152587890625, -0.0004367828369140625, -0.0093841552734375, 0.04193115234375, -0.0253448486328125, -0.031463623046875, -0.0027790069580078125, -0.01273345947265625, -0.0245361328125, 0.052825927734375, -0.046875, -0.02838134765625, 0.01172637939453125, 0.026611328125, -0.022216796875, -0.004123687744140625, -0.01727294921875, -0.01065826416015625, 0.0205230712890625, -0.005092620849609375, -0.0037384033203125, -0.01025390625, 0.00630950927734375, 0.0616455078125, -0.0173187255859375, 0.0149993896484375, 0.01261138916015625, -0.047882080078125, -0.01419830322265625, 0.0191650390625, -0.043731689453125, 0.004909515380859375, 0.031707763671875, -0.00989532470703125, 0.0021305084228515625, 0.0250396728515625, 0.0026950836181640625, 0.014373779296875, -0.047271728515625, 0.06402587890625, 0.0020389556884765625, 0.0458984375, -0.03607177734375, -0.0001876354217529297, 0.032745361328125, 0.0207366943359375, 0.031890869140625, 0.017333984375, -0.0230712890625, -0.04779052734375, 0.006816864013671875, 0.0037822723388671875, -0.01372528076171875, -0.03668212890625, -0.04925537109375, -0.0304107666015625, -0.0015287399291992188, -0.020355224609375, -0.0057373046875, -0.02606201171875, -0.0028934478759765625, -0.00844573974609375, -0.0181427001953125, -0.07330322265625, 0.010955810546875, -0.00360107421875, -0.0169677734375, 0.00107574462890625, -0.035614013671875, -0.01253509521484375, 0.0018053054809570312, 0.044525146484375, 0.0445556640625, -0.0389404296875, 0.0199432373046875, 0.050079345703125, 0.044189453125, 0.1080322265625, 0.037933349609375, -0.019287109375, 0.000804901123046875, -0.0084228515625, 0.0013341903686523438, -0.007625579833984375, 0.007053375244140625, -0.0272979736328125, -0.0219879150390625, 0.0289154052734375, -0.0282745361328125, -0.004314422607421875, -0.06573486328125, -0.156494140625, 0.047210693359375, -0.0159149169921875, -0.07025146484375, -0.0178070068359375, -0.0267181396484375, 0.01898193359375, -0.021697998046875, -0.018157958984375, 0.0310516357421875, -0.088134765625, -0.011962890625, -0.006084442138671875, 0.00676727294921875, 0.0345458984375, -0.007633209228515625, -0.02178955078125, -0.006412506103515625, -0.0095062255859375, -0.046722412109375, 0.01294708251953125, 0.02459716796875, -0.037078857421875, -0.0011920928955078125, -0.057525634765625, -0.10797119140625, -0.055389404296875, 0.00893402099609375, 0.021331787109375, 0.00551605224609375, -0.003849029541015625, 0.001163482666015625, -0.004917144775390625, 0.00913238525390625, -0.0054473876953125, -0.01751708984375, 0.0625, -0.0035953521728515625, -0.06524658203125, 0.0157318115234375, 0.013885498046875, -0.0049591064453125, 0.01251220703125, 0.0006794929504394531, -0.00411224365234375, 0.006038665771484375, 0.024322509765625, -0.01557159423828125, -0.01019287109375, -0.01251220703125, -0.036834716796875, -0.047821044921875, 0.02166748046875, 0.0439453125, -0.0301971435546875, 0.00533294677734375, 0.00623321533203125, -0.01232147216796875, 0.032073974609375, 0.009033203125, 0.034942626953125, 0.0087432861328125, -0.0193328857421875, 0.01611328125, 0.0290679931640625, -0.001651763916015625, -0.0205841064453125, -0.049163818359375, -0.0014934539794921875, 0.0232086181640625, -0.00934600830078125, 0.01253509521484375, -0.0218963623046875, 0.045745849609375, -0.0055694580078125, 0.0626220703125, -0.006816864013671875, -0.04412841796875, -0.02154541015625, 0.0207672119140625, 0.006351470947265625, -0.0181121826171875, 0.0355224609375, -0.037322998046875, 0.031951904296875, 0.002971649169921875, 0.0531005859375, -0.003879547119140625, 0.035888671875, 0.0288238525390625, -0.01495361328125, 0.0224151611328125 ]
a226c430f1de879b6e561623702679c9f9674e40
Wordpress Stackexchange Q: Is it possible to change the URL of custom post types to hide the post type slug? I would like to turn /{custom-post-type}/{post-name} to /{post-name}, is this possible? If this is not possible, can I change the labels/terminology in Pages or Posts so that they could be called "Clients" or "Projects" etc? A: 'rewrite' => array('slug' => '/', 'with_front' => false) This will get the url correctly formed for you, but it will 404 unless you handle it in your theme.
Q: Is it possible to change the URL of custom post types to hide the post type slug? I would like to turn /{custom-post-type}/{post-name} to /{post-name}, is this possible? If this is not possible, can I change the labels/terminology in Pages or Posts so that they could be called "Clients" or "Projects" etc? A: 'rewrite' => array('slug' => '/', 'with_front' => false) This will get the url correctly formed for you, but it will 404 unless you handle it in your theme. A: I just changed a slug for a custom post type (in this case, I changed it from "best-practices" to "bestpractices"). I had copied some code that had a blank slug, like so: 'rewrite' => array('slug' => ''), Since it was originally left blank, Wordpress was just using the name of the custom post type ("best-practices") as the slug. I changed my line of code to 'rewrite' => array('slug' => 'bestpractices'), I just wanted to note here that you'll need to reset your permalinks to get the change to take effect, if you're changing slugs on pre-existing custom post types. A: You need to use option 'rewrite' in your custom post type registration. E.g. 'rewrite' => array('slug' => 'products'), From the codex When you namespace a URL and still want to use a "clean" URL structure, you need to add the "rewrite" element to the array. For example, assuming the "ACME Widgets" example from above: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'products') ) ); } The above will result in a URL like http:/example.com/products/%product_name% (see description of %product_name% above.) Note that we used a plural form here which is a format that some people prefer because it implies a more logical URL for a page that embeds a list of products, i.e. http:/example.com/products/. Also note using a generic name like "products" here can potentially conflict with other plugins or themes that use the same name but most people would dislike longer and more obscure URLs like http:/example.com/acme_products/foobrozinator and resolving the URL conflict between two plugins is easier simply because the URL structure is not stored persistently in each post record in the database in the same way custom post type names are stored. A: yes, we can change the slug. Please follow the steps: Step 1: Change the slug name from the option "rewrite". (located at Theme Functions (functions.php)) 'rewrite' => array('slug' => 'products') Step 2: Reset the permanent link. Otherwise, it will give 404 error. 1> goto wp dashboard. 2> Setting --> Permalinks Under the common setting section--- 1st change it to plain and save it. After that, again change the setting as your preferred format.
wordpress
{ "language": "en", "length": 467, "provenance": "stackexchange_00019.jsonl.gz:415978", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38576" }
[ 0.020355224609375, 0.006847381591796875, 0.00836181640625, -0.002689361572265625, -0.01270294189453125, -0.00740814208984375, 0.0265960693359375, -0.0364990234375, -0.035308837890625, 0.003711700439453125, 0.040863037109375, -0.04107666015625, 0.0167083740234375, -0.07135009765625, 0.038970947265625, -0.032470703125, 0.01197052001953125, 0.01654052734375, 0.0293121337890625, -0.0233001708984375, 0.03228759765625, -0.020843505859375, 0.0247955322265625, 0.043548583984375, 0.0292510986328125, -0.02191162109375, 0.058074951171875, -0.048370361328125, 0.01264190673828125, -0.0257415771484375, 0.033843994140625, -0.01352691650390625, -0.0143890380859375, 0.023834228515625, 0.03399658203125, 0.0252838134765625, 0.020172119140625, 0.0254364013671875, 0.046142578125, -0.0023403167724609375, 0.025634765625, -0.02325439453125, -0.0016613006591796875, -0.0296173095703125, 0.0119476318359375, -0.028472900390625, 0.0194244384765625, -0.06427001953125, 0.033294677734375, 0.007457733154296875, 0.007396697998046875, 0.06414794921875, 0.0182952880859375, -0.01261138916015625, -0.01490020751953125, 0.0029659271240234375, 0.00745391845703125, 0.0162811279296875, 0.0310211181640625, -0.051788330078125, -0.02490234375, 0.007091522216796875, 0.0286102294921875, 0.02130126953125, 0.01465606689453125, -0.001140594482421875, -0.0196380615234375, 0.03155517578125, -0.0236053466796875, 0.010223388671875, 0.0098876953125, -0.03045654296875, 0.031341552734375, -0.0237579345703125, -0.0007276535034179688, -0.036102294921875, 0.003459930419921875, -0.01424407958984375, 0.0206146240234375, -0.0140380859375, 0.037933349609375, -0.03863525390625, 0.0123291015625, -0.014984130859375, 0.0084991455078125, 0.0076141357421875, 0.000050067901611328125, -0.0129547119140625, -0.0026340484619140625, 0.00470733642578125, -0.0116729736328125, 0.00018334388732910156, -0.0250091552734375, 0.07269287109375, 0.00868988037109375, 0.00984954833984375, 0.024658203125, -0.0248565673828125, 0.007843017578125, -0.0025501251220703125, 0.018341064453125, -0.048065185546875, 0.0380859375, -0.00769805908203125, 0.002685546875, 0.035064697265625, 0.0181121826171875, 0.072998046875, 0.07086181640625, -0.003662109375, 0.01116180419921875, 0.048004150390625, -0.014190673828125, 0.03302001953125, -0.058197021484375, 0.0132293701171875, -0.03607177734375, -0.0321044921875, -0.0294036865234375, 0.03558349609375, 0.0201873779296875, 0.043853759765625, 0.03070068359375, 0.0169219970703125, -0.01224517822265625, 0.009674072265625, -0.01148223876953125, -0.0673828125, 0.038818359375, 0.033538818359375, -0.0421142578125, -0.005413055419921875, 0.07232666015625, 0.03118896484375, 0.025299072265625, -0.03399658203125, 0.0086669921875, -0.0206298828125, -0.0084686279296875, 0.019073486328125, -0.006320953369140625, -0.02252197265625, -0.0005712509155273438, -0.0051116943359375, 0.041229248046875, 0.01336669921875, 0.00150299072265625, 0.02618408203125, 0.0007853507995605469, -0.0019855499267578125, -0.00004947185516357422, -0.0240936279296875, 0.04046630859375, 0.0088653564453125, -0.0120391845703125, -0.003093719482421875, 0.043212890625, -0.0247039794921875, -0.03143310546875, -0.034454345703125, 0.0216217041015625, -0.01377105712890625, 0.0162353515625, -0.000008821487426757812, -0.05255126953125, 0.0294952392578125, -0.04156494140625, -0.01371002197265625, 0.0040740966796875, -0.002674102783203125, 0.0367431640625, 0.00254058837890625, -0.048614501953125, -0.0019521713256835938, 0.0146026611328125, -0.00276947021484375, -0.0028076171875, 0.01251220703125, 0.01174163818359375, 0.07574462890625, 0.031524658203125, -0.019256591796875, 0.0228118896484375, 0.0030498504638671875, -0.0709228515625, 0.061492919921875, 0.00012636184692382812, 0.049774169921875, 0.0076904296875, -0.00785064697265625, 0.06512451171875, 0.037445068359375, -0.0226287841796875, 0.0026416778564453125, -0.031219482421875, -0.00806427001953125, 0.0003104209899902344, 0.00130462646484375, -0.02667236328125, 0.028411865234375, -0.0614013671875, 0.044586181640625, -0.0377197265625, 0.0635986328125, 0.01271820068359375, 0.017974853515625, 0.0004222393035888672, 0.046234130859375, 0.003582000732421875, 0.00908660888671875, 0.02081298828125, 0.0025157928466796875, -0.046112060546875, 0.01378631591796875, -0.0249176025390625, 0.004154205322265625, 0.0252532958984375, 0.00185394287109375, -0.02838134765625, 0.010009765625, -0.00933837890625, 0.01059722900390625, -0.036529541015625, 0.03546142578125, 0.035369873046875, 0.004428863525390625, -0.01544189453125, -0.01140594482421875, 0.0018548965454101562, 0.035125732421875, -0.06829833984375, 0.0042877197265625, 0.0197906494140625, 0.00502777099609375, -0.02899169921875, 0.00026798248291015625, 0.04095458984375, -0.0277252197265625, 0.015899658203125, 0.034332275390625, 0.032440185546875, 0.01148223876953125, -0.0181121826171875, 0.001262664794921875, 0.025115966796875, -0.0213775634765625, 0.00921630859375, -0.000545501708984375, 0.009063720703125, 0.0128326416015625, 0.020294189453125, 0.0098419189453125, 0.020233154296875, -0.0170135498046875, 0.0311737060546875, 0.0265045166015625, -0.001819610595703125, -0.024932861328125, 0.01122283935546875, 0.0030498504638671875, 0.0127105712890625, 0.026458740234375, -0.01482391357421875, 0.0136260986328125, -0.00394439697265625, 0.01494598388671875, 0.020904541015625, 0.024078369140625, -0.0256805419921875, 0.0088348388671875, 0.01383209228515625, 0.0186767578125, -0.004840850830078125, 0.0302886962890625, 0.058380126953125, -0.012298583984375, -0.0078125, -0.0223388671875, -0.006504058837890625, 0.0132904052734375, -0.0137176513671875, 0.0062713623046875, -0.024383544921875, -0.0023708343505859375, -0.0165863037109375, -0.0765380859375, 0.02886962890625, 0.04681396484375, -0.0019435882568359375, 0.0088348388671875, 0.01531982421875, 0.0279388427734375, 0.010040283203125, 0.018768310546875, 0.007678985595703125, -0.00673675537109375, 0.011322021484375, -0.0589599609375, 0.051849365234375, -0.043060302734375, 0.040069580078125, 0.05755615234375, 0.00002378225326538086, 0.0080413818359375, 0.0186767578125, -0.01560211181640625, 0.006519317626953125, 0.033203125, 0.0161895751953125, -0.0291748046875, -0.034027099609375, 0.0008511543273925781, 0.0148468017578125, 0.0007076263427734375, 0.0037899017333984375, -0.0318603515625, 0.005950927734375, 0.025604248046875, -0.032012939453125, -0.0016155242919921875, 0.007595062255859375, -0.037841796875, -0.019287109375, 0.0138397216796875, -0.0172882080078125, 0.00466156005859375, 0.02264404296875, -0.0031719207763671875, 0.034820556640625, -0.015167236328125, -0.07147216796875, -0.038604736328125, -0.05841064453125, -0.0192413330078125, -0.0097198486328125, -0.009124755859375, 0.0193634033203125, 0.059783935546875, 0.0245513916015625, -0.05450439453125, 0.03131103515625, 0.043060302734375, -0.0211029052734375, 0.0298614501953125, 0.012115478515625, -0.01505279541015625, 0.046630859375, 0.0116119384765625, 0.0228729248046875, 0.03472900390625, -0.0194091796875, -0.0288848876953125, -0.02789306640625, -0.00878143310546875, 0.0012826919555664062, 0.025665283203125, 0.04071044921875, -0.009674072265625, 0.02191162109375, -0.037567138671875, -0.06463623046875, -0.0137481689453125, -0.0584716796875, 0.00453948974609375, 0.01015472412109375, 0.01824951171875, -0.047698974609375, 0.06689453125, 0.0313720703125, 0.01702880859375, 0.0272064208984375, -0.01404571533203125, 0.043731689453125, 0.003070831298828125, 0.028167724609375, -0.058441162109375, 0.02911376953125, -0.00887298583984375, 0.0187835693359375, 0.00815582275390625, 0.0218505859375, 0.0058441162109375, 0.0072174072265625, -0.03582763671875, -0.0980224609375, 0.049713134765625, -0.0977783203125, -0.0472412109375, -0.0430908203125, -0.00040221214294433594, -0.000186920166015625, 0.078125, -0.042633056640625, -0.00299835205078125, 0.0037899017333984375, -0.00479888916015625, 0.00443267822265625, -0.0177764892578125, -0.076416015625, -0.00858306884765625, -0.0728759765625, 0.031982421875, 0.0015726089477539062, -0.0223846435546875, -0.002117156982421875, 0.00150299072265625, -0.0211181640625, -0.04119873046875, 0.043731689453125, -0.01496124267578125, 0.0229949951171875, -0.004833221435546875, 0.0174102783203125, -0.0221405029296875, -0.0382080078125, -0.001438140869140625, -0.058563232421875, -0.0291900634765625, 0.032684326171875, 0.06341552734375, -0.01132965087890625, -0.020050048828125, 0.0101165771484375, 0.06591796875, 0.02166748046875, 0.01369476318359375, -0.0081634521484375, -0.03759765625, 0.00571441650390625, 0.043121337890625, 0.0015172958374023438, 0.010650634765625, -0.00626373291015625, -0.01314544677734375, -0.064697265625, 0.004100799560546875, 0.00901031494140625, 0.00838470458984375, 0.0496826171875, -0.043548583984375, -0.035369873046875, -0.017364501953125, -0.0237884521484375, 0.0247344970703125, -0.0009975433349609375, -0.015716552734375, -0.033416748046875, -0.056396484375, 0.047760009765625, 0.01331329345703125, -0.0109710693359375, -0.0035457611083984375, 0.04718017578125, -0.0007042884826660156, -0.0214691162109375, -0.030120849609375, 0.02178955078125, 0.03118896484375, 0.01035308837890625, 0.022705078125, 0.0101776123046875, -0.0038604736328125, 0.026275634765625, -0.00787353515625, -0.041717529296875, 0.01180267333984375, 0.05133056640625, -0.004913330078125, -0.01328277587890625, 0.0031414031982421875, -0.050323486328125, 0.049224853515625, 0.06573486328125, -0.0121917724609375, -0.002101898193359375, -0.0187530517578125, 0.040313720703125, -0.0430908203125, -0.005279541015625, -0.054718017578125, -0.048187255859375, 0.04095458984375, 0.0179901123046875, -0.02923583984375, -0.01397705078125, 0.0037860870361328125, -0.001251220703125, -0.0567626953125, 0.02532958984375, -0.020751953125, -0.007747650146484375, -0.03350830078125, 0.03125, -0.006183624267578125, 0.0034809112548828125, 0.008056640625, -0.002593994140625, 0.056365966796875, 0.00565338134765625, -0.019287109375, -0.019195556640625, -0.0180816650390625, -0.0189208984375, -0.006458282470703125, -0.01406097412109375, 0.023101806640625, 0.06512451171875, 0.0160675048828125, 0.0182037353515625, -0.0243682861328125, 0.05780029296875, -0.0261077880859375, 0.034942626953125, 0.038055419921875, -0.01242828369140625, 0.0147705078125, 0.030303955078125, 0.047821044921875, -0.006946563720703125, -0.0216827392578125, 0.01557159423828125, 0.0262603759765625, -0.00785064697265625, 0.020416259765625, 0.023773193359375, 0.001377105712890625, -0.03717041015625, -0.0008783340454101562, -0.0196533203125, -0.01403045654296875, 0.0161590576171875, 0.0458984375, 0.0042877197265625, 0.002567291259765625, -0.005313873291015625, -0.029266357421875, -0.01654052734375, 0.0058135986328125, -0.0235748291015625, -0.0309906005859375, -0.0223388671875, -0.0184173583984375, 0.0009174346923828125, -0.01483154296875, -0.0281982421875, -0.01074981689453125, -0.03668212890625, 0.005130767822265625, -0.0015878677368164062, -0.029876708984375, 0.019073486328125, 0.0166168212890625, -0.01568603515625, -0.0175018310546875, -0.0021114349365234375, -0.00716400146484375, -0.001739501953125, -0.007579803466796875, -0.0218505859375, 0.0239715576171875, -0.0174713134765625, 0.0240936279296875, -0.00788116455078125, -0.0221405029296875, 0.046905517578125, 0.0106964111328125, 0.07098388671875, 0.021636962890625, -0.0601806640625, 0.03326416015625, -0.046630859375, 0.020538330078125, -0.03839111328125, -0.076416015625, -0.01428985595703125, -0.0330810546875, 0.0205078125, 0.034820556640625, -0.0112457275390625, -0.0309295654296875, 0.004207611083984375, -0.0036640167236328125, -0.0042572021484375, 0.028076171875, -0.018890380859375, 0.0278778076171875, 0.0169219970703125, 0.0166015625, -0.002208709716796875, -0.0007662773132324219, -0.0092010498046875, -0.01395416259765625, -0.0257720947265625, -0.0687255859375, -0.0147247314453125, 0.0214996337890625, -0.0258941650390625, 0.0631103515625, 0.03851318359375, 0.007625579833984375, 0.01291656494140625, -0.00011581182479858398, 0.00473785400390625, -0.03387451171875, -0.0129547119140625, -0.0198822021484375, 0.0390625, -0.0419921875, 0.0293731689453125, 0.0595703125, 0.003986358642578125, -0.0272064208984375, -0.0139617919921875, 0.02764892578125, 0.031005859375, -0.0268707275390625, -0.04217529296875, 0.0108795166015625, 0.060638427734375, 0.00341033935546875, 0.0540771484375, 0.0021991729736328125, 0.017913818359375, 0.07501220703125, -0.039764404296875, -0.007022857666015625, 0.01220703125, 0.03753662109375, -0.0032672882080078125, -0.0164337158203125, 0.04656982421875, -0.020355224609375, 0.04205322265625, 0.0826416015625, 0.07183837890625, -0.1258544921875, 0.006595611572265625, 0.004405975341796875, -0.006866455078125, 0.052642822265625, 0.028228759765625, -0.0007982254028320312, 0.044769287109375, -0.03924560546875, -0.047515869140625, -0.0214080810546875, -0.01128387451171875, 0.0133514404296875, -0.00879669189453125, -0.006771087646484375, 0.055389404296875, 0.00992584228515625, -0.0033855438232421875, -0.008880615234375, 0.00004464387893676758, 0.01023101806640625, -0.047760009765625, 0.0060272216796875, 0.0203399658203125, -0.005619049072265625, -0.050628662109375, 0.055419921875, -0.0137939453125, 0.03118896484375, 0.038543701171875, 0.01099395751953125, 0.024871826171875, 0.047882080078125, -0.004871368408203125, 0.0005140304565429688, 0.00905609130859375, -0.037841796875, 0.03741455078125, -0.01065826416015625, 0.0033626556396484375, 0.0282135009765625, -0.0145111083984375, -0.0010776519775390625, -0.019195556640625, 0.0005216598510742188, -0.0233154296875, -0.03680419921875, 0.106201171875, -0.017608642578125, -0.027496337890625, 0.031646728515625, 0.01335906982421875, -0.03436279296875, 0.004421234130859375, -0.027557373046875, -0.0172119140625, -0.003810882568359375, -0.0268707275390625, -0.048309326171875, 0.0090179443359375, -0.033111572265625, -0.08251953125, 0.11761474609375, -0.004261016845703125, 0.07666015625, -0.002513885498046875, 0.02545166015625, 0.00225830078125, 0.0279998779296875, -0.03265380859375, 0.04248046875, -0.01013946533203125, 0.060699462890625, -0.027191162109375, -0.004787445068359375, 0.031341552734375, 0.0167999267578125, 0.0517578125, 0.00827789306640625, -0.0087432861328125, -0.00716400146484375, 0.05047607421875, 0.038604736328125, -0.002010345458984375, 0.01666259765625, -0.005580902099609375, 0.035919189453125, 0.019134521484375, -0.033599853515625, 0.0265045166015625, -0.0152740478515625, -0.03076171875, 0.0185546875, 0.03094482421875, 0.04217529296875, -0.0025348663330078125, -0.0240936279296875, -0.0231781005859375, 0.0030078887939453125, 0.0372314453125, -0.01081085205078125, 0.0019121170043945312, 0.0199737548828125, 0.037322998046875, -0.06292724609375, -0.005641937255859375, -0.0300750732421875, 0.053436279296875, 0.00826263427734375, -0.0032024383544921875, 0.0027217864990234375, -0.0019140243530273438, 0.022186279296875, -0.036834716796875, -0.026763916015625, 0.01293182373046875, -0.012725830078125, 0.032257080078125, 0.0271453857421875, 0.01277923583984375, -0.0290679931640625, 0.0347900390625, 0.05694580078125, 0.051025390625, -0.05523681640625, -0.03564453125, 0.01165771484375, -0.01433563232421875, -0.01265716552734375, -0.01383209228515625, -0.007488250732421875, 0.0211639404296875, 0.0245361328125, -0.049285888671875, 0.031829833984375, 0.038970947265625, 0.04302978515625, -0.023101806640625, -0.0223388671875, -0.06622314453125, -0.012237548828125, -0.057586669921875, -0.0106964111328125, 0.0155181884765625, 0.083251953125, 0.05841064453125, 0.04443359375, -0.016387939453125, -0.040863037109375, 0.00685882568359375, 0.008819580078125, -0.003414154052734375, -0.0186309814453125, -0.03472900390625, -0.040069580078125, 0.015228271484375, 0.03662109375, 0.0609130859375, 0.028228759765625, 0.057891845703125, 0.015625, -0.005985260009765625, 0.0156097412109375, 0.031280517578125, -0.0002397298812866211, 0.058746337890625, -0.04083251953125, 0.035186767578125, -0.0031280517578125, -0.00965118408203125, -0.04754638671875, -0.0118255615234375, 0.040924072265625, -0.0002033710479736328, 0.057037353515625, -0.00800323486328125, 0.005062103271484375, 0.043487548828125, -0.00786590576171875, 0.05078125, 0.024139404296875, -0.045989990234375, -0.011932373046875, -0.033355712890625, -0.0706787109375, 0.0177001953125, 0.045074462890625, -0.01242828369140625, 0.011962890625, 0.021392822265625, -0.004619598388671875, -0.0189361572265625, 0.0012044906616210938, 0.0154876708984375, -0.01390838623046875, -0.0026378631591796875, 0.01366424560546875, -0.06732177734375, -0.039825439453125, -0.01142120361328125, 0.02642822265625, -0.006378173828125, 0.137451171875, -0.03985595703125, -0.005107879638671875, -0.047515869140625, 0.03436279296875, -0.051849365234375, -0.03057861328125, -0.0038318634033203125, 0.008941650390625, 0.0186614990234375, 0.0171051025390625, -0.003444671630859375, -0.011627197265625, 0.03729248046875, -0.07635498046875, 0.00357818603515625, -0.035003662109375, 0.014617919921875, -0.045257568359375, 0.006256103515625, -0.031402587890625, -0.03985595703125, -0.02691650390625, 0.0036945343017578125, -0.0026035308837890625, -0.018035888671875, -0.031829833984375, 0.03375244140625, -0.0218353271484375, -0.018524169921875, 0.0165557861328125, -0.04327392578125, 0.0254364013671875, 0.032470703125, -0.029296875, -0.0272674560546875, 0.03460693359375, -0.01422882080078125, 0.00036644935607910156, 0.0372314453125, 0.02691650390625, 0.00907135009765625, 0.00547027587890625, -0.05072021484375, -0.061676025390625, -0.01537322998046875, -0.0177001953125, -0.00499725341796875, -0.0487060546875, 0.0132293701171875, -0.0340576171875, 0.00044846534729003906, -0.0300140380859375, -0.01788330078125, 0.004001617431640625, 0.017547607421875, 0.007354736328125, -0.0212860107421875, -0.02362060546875, -0.0193634033203125, 0.026123046875, -0.0009918212890625, -0.04180908203125, 0.0013952255249023438, -0.01531982421875, 0.0267791748046875, -0.00458526611328125, -0.03594970703125, 0.02935791015625, 0.018402099609375, -0.0293121337890625, 0.0169525146484375, -0.00795745849609375, -0.0288238525390625, 0.0080108642578125, 0.031494140625, 0.0535888671875, -0.03759765625, -0.0280914306640625, 0.008819580078125, 0.0175933837890625, 0.052154541015625, -0.018890380859375, -0.01192474365234375, -0.0312042236328125, 0.028900146484375, -0.030303955078125, -0.0693359375, 0.0194549560546875, -0.0440673828125, -0.0306549072265625, 0.01519012451171875, -0.037445068359375, -0.0223236083984375, -0.041534423828125, -0.045074462890625, 0.07049560546875, 0.01259613037109375, -0.025115966796875, -0.06671142578125, 0.02484130859375, -0.0025959014892578125, 0.0194091796875, -0.0121002197265625, -0.0255889892578125, -0.0299072265625, 0.0106048583984375, -0.006313323974609375, 0.0670166015625, -0.01389312744140625, 0.01629638671875, 0.01068115234375, 0.0272369384765625, 0.005870819091796875, -0.0189208984375, 0.023040771484375, -0.01177215576171875, 0.0007371902465820312, 0.00977325439453125, -0.054443359375, -0.0120849609375, -0.02685546875, 0.0190887451171875, -0.005580902099609375, -0.05352783203125, -0.04327392578125, -0.037384033203125, 0.0638427734375, 0.0428466796875, 0.021331787109375, -0.00677490234375, -0.033447265625, -0.040679931640625, -0.0264739990234375, -0.00148773193359375, 0.04058837890625, -0.0738525390625, 0.01004791259765625, 0.041748046875, 0.002948760986328125, 0.012420654296875, -0.01580810546875, -0.01114654541015625, -0.00836181640625, -0.008087158203125, -0.01421356201171875, -0.0281982421875, 0.057403564453125, 0.032928466796875, -0.032012939453125, 0.0006580352783203125, -0.013671875, -0.006134033203125, 0.0185089111328125, -0.061370849609375, -0.054107666015625, -0.038543701171875, 0.0216827392578125, 0.03375244140625, -0.0226287841796875, 0.0163116455078125, -0.00963592529296875, 0.0186920166015625, -0.005702972412109375, 0.031494140625, -0.0005869865417480469, 0.01885986328125, -0.042938232421875, 0.0633544921875, 0.0257415771484375, 0.06439208984375, -0.016845703125, 0.0007443428039550781, -0.00676727294921875, 0.0165252685546875, -0.0338134765625, 0.007175445556640625, 0.01922607421875, -0.032684326171875, 0.0025234222412109375, -0.00926971435546875, -0.030517578125, -0.01486968994140625, -0.0170745849609375, 0.00019359588623046875, -0.0213470458984375, 0.01105499267578125 ]
ba0337d765f7f97f0e420862bc9838cdb169eb23
Wordpress Stackexchange Q: Why do themes have `while( have_posts() )` in templates like single.php? Example: https://github.com/markjaquith/WordPress/blob/master/wp-content/themes/twentyeleven/single.php Isn't single.php's purpose to show single posts? A: The idea is to ensure that all the content is displayed properly. Some functions are not available outside of The Loop, as it's called, so depending on what you are doing, it may be advantageous to start the loop, even if you're relatively certain it will only be used for one post object.
Q: Why do themes have `while( have_posts() )` in templates like single.php? Example: https://github.com/markjaquith/WordPress/blob/master/wp-content/themes/twentyeleven/single.php Isn't single.php's purpose to show single posts? A: The idea is to ensure that all the content is displayed properly. Some functions are not available outside of The Loop, as it's called, so depending on what you are doing, it may be advantageous to start the loop, even if you're relatively certain it will only be used for one post object.
wordpress
{ "language": "en", "length": 75, "provenance": "stackexchange_00019.jsonl.gz:415993", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38609" }
[ 0.047882080078125, -0.024810791015625, 0.01904296875, -0.03375244140625, -0.0066986083984375, -0.00072479248046875, 0.0307464599609375, -0.019012451171875, 0.0285186767578125, 0.0276641845703125, -0.002254486083984375, -0.00429534912109375, -0.0174713134765625, -0.03094482421875, -0.00847625732421875, -0.0158538818359375, 0.0247955322265625, -0.0364990234375, -0.0003457069396972656, 0.0017833709716796875, 0.00415802001953125, 0.0218353271484375, 0.0030765533447265625, -0.0018310546875, 0.005191802978515625, -0.03564453125, 0.0175933837890625, -0.029296875, -0.016265869140625, -0.0357666015625, -0.007781982421875, 0.069580078125, 0.0173187255859375, 0.0033092498779296875, 0.000598907470703125, 0.0014820098876953125, -0.0173492431640625, 0.0016269683837890625, -0.0018777847290039062, 0.021942138671875, -0.00385284423828125, 0.00775146484375, 0.032318115234375, 0.016815185546875, 0.00611114501953125, -0.05267333984375, 0.0154266357421875, -0.056121826171875, 0.02691650390625, -0.0022144317626953125, 0.021331787109375, -0.0166778564453125, 0.0293121337890625, -0.030242919921875, -0.04022216796875, -0.04840087890625, 0.018157958984375, -0.0546875, 0.05181884765625, -0.0313720703125, -0.04461669921875, -0.07373046875, 0.06488037109375, -0.0260162353515625, -0.018768310546875, -0.00035262107849121094, -0.0266571044921875, 0.014068603515625, -0.0797119140625, -0.040802001953125, 0.038665771484375, -0.0380859375, 0.0147705078125, -0.00885009765625, -0.006298065185546875, 0.0003516674041748047, 0.00899505615234375, 0.01265716552734375, 0.0188446044921875, -0.000457763671875, -0.02215576171875, -0.006488800048828125, -0.043304443359375, -0.0045318603515625, -0.0004210472106933594, 0.0266571044921875, -0.0328369140625, -0.00550079345703125, -0.05999755859375, -0.0049591064453125, -0.03961181640625, -0.003387451171875, -0.0119476318359375, -0.03948974609375, -0.037506103515625, -0.00644683837890625, 0.0254364013671875, 0.0171051025390625, -0.0130462646484375, -0.03094482421875, 0.035003662109375, -0.05029296875, 0.0012216567993164062, -0.0084381103515625, 0.00986480712890625, 0.032989501953125, -0.001476287841796875, -0.00836181640625, 0.020904541015625, 0.01383209228515625, -0.00066375732421875, 0.03460693359375, -0.00258636474609375, -0.0198211669921875, -0.0272674560546875, -0.0291595458984375, -0.055267333984375, 0.019622802734375, 0.016387939453125, -0.011871337890625, 0.01029205322265625, 0.03857421875, 0.03424072265625, -0.009552001953125, -0.01323699951171875, 0.0168304443359375, -0.0233154296875, -0.0701904296875, 0.004726409912109375, 0.0160064697265625, -0.00984954833984375, -0.034820556640625, 0.0024242401123046875, 0.06561279296875, 0.00942230224609375, -0.0166168212890625, -0.00322723388671875, 0.00811004638671875, -0.0137786865234375, 0.0165252685546875, -0.007389068603515625, -0.026947021484375, 0.009765625, -0.0183868408203125, 0.00995635986328125, -0.0032444000244140625, 0.0278778076171875, 0.037567138671875, 0.0159454345703125, -0.020660400390625, -0.0249481201171875, 0.07977294921875, -0.0172576904296875, 0.0139923095703125, 0.046051025390625, -0.0114288330078125, -0.013916015625, -0.01140594482421875, 0.0594482421875, 0.00948333740234375, 0.027801513671875, -0.0163726806640625, 0.001239776611328125, -0.0262451171875, -0.0565185546875, 0.01506805419921875, -0.043731689453125, -0.0159454345703125, 0.00875091552734375, -0.015716552734375, -0.047607421875, 0.0285491943359375, 0.041900634765625, 0.00868988037109375, -0.005279541015625, 0.03515625, -0.009979248046875, -0.034881591796875, 0.04150390625, 0.037109375, -0.0241546630859375, -0.039093017578125, 0.031097412109375, -0.012176513671875, -0.0841064453125, 0.07281494140625, -0.01088714599609375, 0.05364990234375, 0.0210113525390625, -0.0013294219970703125, 0.042816162109375, 0.041351318359375, -0.0208740234375, 0.050323486328125, 0.00714874267578125, -0.0252532958984375, -0.04229736328125, -0.0036773681640625, -0.01499176025390625, -0.0391845703125, -0.00037479400634765625, 0.009002685546875, 0.01030731201171875, -0.01274871826171875, -0.0127716064453125, 0.003566741943359375, -0.0186309814453125, 0.03125, -0.025970458984375, 0.0024242401123046875, 0.0223236083984375, -0.0135040283203125, -0.006801605224609375, -0.01326751708984375, -0.0218048095703125, -0.01056671142578125, 0.022186279296875, 0.01148223876953125, -0.0134429931640625, -0.0341796875, 0.000690460205078125, -0.0219879150390625, 0.004364013671875, 0.08453369140625, 0.08392333984375, 0.001590728759765625, -0.03485107421875, -0.0389404296875, -0.0022907257080078125, 0.01294708251953125, -0.07965087890625, 0.06817626953125, 0.0142669677734375, 0.0172271728515625, -0.04376220703125, 0.001483917236328125, -0.007556915283203125, 0.0205841064453125, 0.003009796142578125, 0.037017822265625, 0.033538818359375, 0.026397705078125, -0.0002903938293457031, 0.006740570068359375, 0.0239715576171875, -0.0298004150390625, 0.02642822265625, -0.0251617431640625, -0.0005979537963867188, 0.005687713623046875, 0.007598876953125, 0.0162200927734375, 0.0205535888671875, -0.06439208984375, 0.0170745849609375, 0.006683349609375, -0.017333984375, -0.009246826171875, -0.019683837890625, 0.0178680419921875, 0.01345062255859375, 0.0428466796875, 0.01050567626953125, -0.00031304359436035156, 0.052947998046875, 0.015869140625, 0.048919677734375, 0.020050048828125, -0.01210784912109375, 0.0216064453125, -0.007541656494140625, -0.032257080078125, -0.0031642913818359375, 0.0012750625610351562, -0.0247802734375, 0.03546142578125, -0.0287322998046875, -0.000545501708984375, -0.0015287399291992188, 0.0007276535034179688, -0.0271148681640625, -0.0086212158203125, -0.0299530029296875, -0.025421142578125, 0.00933074951171875, -0.04620361328125, 0.00528717041015625, -0.015899658203125, 0.053070068359375, 0.0016717910766601562, 0.004329681396484375, 0.03961181640625, -0.02459716796875, 0.06787109375, 0.019378662109375, -0.0309295654296875, 0.01500701904296875, -0.036651611328125, 0.032867431640625, -0.045867919921875, 0.030364990234375, 0.045928955078125, -0.027862548828125, 0.0130767822265625, 0.0296173095703125, -0.0100250244140625, 0.05230712890625, 0.017669677734375, 0.005657196044921875, 0.01094818115234375, -0.046142578125, -0.0204315185546875, 0.0254364013671875, 0.085693359375, 0.005706787109375, -0.05511474609375, 0.015472412109375, 0.05633544921875, -0.023590087890625, -0.044097900390625, 0.036956787109375, -0.03814697265625, -0.0026397705078125, -0.0382080078125, -0.027313232421875, -0.01099395751953125, -0.032867431640625, 0.0010499954223632812, -0.003986358642578125, 0.005733489990234375, -0.0753173828125, -0.053436279296875, -0.08197021484375, 0.00530242919921875, -0.02203369140625, 0.0196380615234375, 0.012664794921875, 0.060211181640625, 0.013702392578125, -0.07177734375, -0.0101165771484375, 0.037933349609375, -0.051605224609375, 0.00616455078125, 0.0097503662109375, -0.006633758544921875, -0.02490234375, 0.0184783935546875, -0.051727294921875, 0.0025997161865234375, -0.0181732177734375, -0.04132080078125, -0.0269622802734375, 0.0093841552734375, 0.02801513671875, -0.004405975341796875, 0.01021575927734375, 0.032623291015625, 0.047760009765625, -0.01079559326171875, -0.059112548828125, -0.0301971435546875, -0.09454345703125, -0.02142333984375, 0.055908203125, 0.0234832763671875, -0.032135009765625, -0.0087432861328125, -0.00013887882232666016, -0.01763916015625, -0.04022216796875, -0.024658203125, 0.09820556640625, 0.01262664794921875, 0.01690673828125, 0.0097808837890625, -0.0426025390625, -0.029266357421875, 0.042938232421875, -0.02960205078125, 0.01263427734375, -0.017547607421875, 0.018157958984375, -0.0268096923828125, -0.0260772705078125, 0.045074462890625, 0.006893157958984375, 0.047760009765625, -0.03936767578125, -0.03497314453125, -0.026275634765625, 0.0819091796875, -0.0965576171875, -0.00045680999755859375, 0.0145721435546875, 0.008544921875, 0.0012264251708984375, -0.027618408203125, -0.07135009765625, -0.0281829833984375, -0.0291595458984375, 0.0211334228515625, -0.008819580078125, 0.01336669921875, -0.033721923828125, 0.0242919921875, -0.020904541015625, -0.0172576904296875, 0.0165557861328125, -0.0286865234375, 0.027099609375, -0.007061004638671875, 0.0298004150390625, -0.047943115234375, 0.0256195068359375, -0.053375244140625, -0.02020263671875, -0.01192474365234375, 0.041961669921875, 0.0159759521484375, -0.02520751953125, 0.031341552734375, -0.01403045654296875, 0.030303955078125, 0.0017652511596679688, 0.0171661376953125, 0.007099151611328125, -0.01161956787109375, 0.04132080078125, 0.030792236328125, 0.0078125, 0.00873565673828125, -0.045684814453125, -0.038543701171875, -0.0012311935424804688, 0.01470947265625, -0.02154541015625, -0.027099609375, -0.0175628662109375, 0.01203155517578125, -0.0006866455078125, -0.0290069580078125, 0.0418701171875, 0.057769775390625, 0.0005736351013183594, 0.04022216796875, -0.051025390625, 0.007129669189453125, 0.007312774658203125, 0.02960205078125, -0.043060302734375, 0.019744873046875, 0.029876708984375, 0.01415252685546875, -0.0305023193359375, -0.1099853515625, 0.0077667236328125, 0.049102783203125, 0.0279388427734375, 0.04730224609375, 0.042236328125, -0.021514892578125, 0.05078125, 0.037506103515625, 0.0029296875, -0.00688934326171875, 0.0186920166015625, -0.01200103759765625, -0.018707275390625, 0.01264190673828125, -0.032989501953125, 0.03753662109375, 0.01439666748046875, 0.006435394287109375, -0.007061004638671875, 0.026611328125, 0.0285797119140625, -0.007129669189453125, -0.0227203369140625, -0.029632568359375, -0.039520263671875, 0.0051422119140625, 0.0198974609375, 0.0252685546875, 0.036895751953125, 0.0106964111328125, 0.061187744140625, 0.042327880859375, -0.00878143310546875, 0.0211334228515625, 0.0244293212890625, 0.0280609130859375, 0.020721435546875, 0.0189208984375, 0.00232696533203125, -0.0261077880859375, -0.007305145263671875, 0.072998046875, 0.0333251953125, -0.041839599609375, 0.0037136077880859375, -0.004817962646484375, 0.046600341796875, -0.01277923583984375, 0.0242767333984375, -0.00324249267578125, -0.029205322265625, -0.0021190643310546875, -0.01305389404296875, 0.00823974609375, -0.011199951171875, -0.01209259033203125, -0.018096923828125, 0.00702667236328125, -0.0174713134765625, 0.03704833984375, 0.00986480712890625, 0.004486083984375, 0.039276123046875, -0.0285491943359375, 0.041778564453125, 0.043548583984375, 0.0174713134765625, 0.0278167724609375, -0.0113372802734375, -0.0121917724609375, -0.007640838623046875, -0.005535125732421875, -0.036651611328125, -0.008514404296875, -0.0163726806640625, 0.0277862548828125, 0.00408935546875, -0.006591796875, 0.054656982421875, 0.0094146728515625, -0.033966064453125, 0.041290283203125, 0.040374755859375, -0.04638671875, -0.0176849365234375, 0.02294921875, 0.0175323486328125, 0.02313232421875, 0.0017108917236328125, -0.002620697021484375, -0.0159912109375, -0.01708984375, -0.0024127960205078125, -0.045501708984375, 0.0024261474609375, 0.02081298828125, -0.02288818359375, -0.01678466796875, 0.006923675537109375, -0.03228759765625, -0.007015228271484375, -0.0284423828125, -0.030181884765625, 0.042266845703125, 0.01288604736328125, 0.057769775390625, -0.01456451416015625, -0.08392333984375, 0.01512908935546875, -0.01000213623046875, 0.0714111328125, 0.02960205078125, -0.10546875, 0.021820068359375, -0.056884765625, 0.01207733154296875, 0.00054931640625, -0.048797607421875, -0.0557861328125, -0.01262664794921875, 0.03173828125, 0.025543212890625, 0.023468017578125, -0.019378662109375, -0.04254150390625, 0.002658843994140625, 0.0210418701171875, 0.07623291015625, -0.004688262939453125, 0.053375244140625, -0.004657745361328125, -0.0014495849609375, 0.017486572265625, 0.04302978515625, -0.00351715087890625, -0.006267547607421875, 0.011688232421875, -0.0291595458984375, 0.004116058349609375, -0.01322174072265625, 0.01073455810546875, -0.0234222412109375, 0.00716400146484375, -0.0014438629150390625, -0.0190887451171875, -0.01543426513671875, 0.00016546249389648438, -0.01605224609375, 0.035980224609375, 0.0111541748046875, -0.00313568115234375, 0.00792694091796875, -0.021270751953125, -0.020965576171875, 0.024017333984375, -0.0460205078125, -0.0052490234375, 0.038970947265625, -0.0216827392578125, 0.0288848876953125, -0.0227813720703125, 0.02508544921875, 0.0634765625, 0.01100921630859375, 0.0225677490234375, 0.0275726318359375, 0.005931854248046875, -0.0189971923828125, -0.03662109375, -0.01409912109375, 0.0189361572265625, 0.04168701171875, -0.023956298828125, -0.019683837890625, 0.030731201171875, -0.038848876953125, 0.031463623046875, 0.044647216796875, 0.06549072265625, -0.05255126953125, 0.007373809814453125, 0.019317626953125, -0.031707763671875, 0.01666259765625, 0.0003972053527832031, 0.00323486328125, -0.021026611328125, 0.039337158203125, 0.046173095703125, -0.004230499267578125, 0.0222930908203125, -0.020721435546875, 0.02862548828125, -0.0022258758544921875, 0.07989501953125, 0.0045623779296875, -0.1036376953125, 0.01320648193359375, 0.06597900390625, -0.017791748046875, -0.043182373046875, -0.0010013580322265625, -0.0184478759765625, -0.0115203857421875, -0.05010986328125, 0.004932403564453125, -0.01001739501953125, 0.028533935546875, 0.0306243896484375, 0.049957275390625, -0.0089111328125, 0.08416748046875, -0.02001953125, 0.046142578125, 0.040863037109375, -0.014892578125, -0.08282470703125, -0.0234375, 0.032012939453125, 0.051025390625, -0.04022216796875, 0.04217529296875, -0.01036834716796875, -0.024169921875, -0.0230712890625, -0.07464599609375, 0.0204620361328125, -0.0023193359375, -0.0196990966796875, 0.0101470947265625, 0.019378662109375, 0.0005650520324707031, -0.0007910728454589844, -0.002567291259765625, -0.05853271484375, -0.023834228515625, -0.003322601318359375, -0.036895751953125, 0.004444122314453125, -0.00418853759765625, -0.04248046875, 0.08612060546875, -0.01418304443359375, 0.041015625, 0.025970458984375, 0.0260772705078125, -0.0013713836669921875, 0.0325927734375, -0.0085296630859375, 0.0234222412109375, -0.01000213623046875, 0.0214080810546875, -0.0195159912109375, 0.002216339111328125, -0.00368499755859375, 0.029083251953125, 0.04510498046875, 0.0004069805145263672, 0.01224517822265625, 0.00966644287109375, 0.067138671875, 0.036163330078125, -0.006450653076171875, 0.0001556873321533203, -0.0019102096557617188, 0.046661376953125, 0.0104522705078125, -0.01305389404296875, 0.0311431884765625, -0.006282806396484375, -0.056182861328125, 0.040313720703125, 0.03509521484375, 0.035675048828125, 0.01055908203125, -0.01456451416015625, -0.07476806640625, 0.025604248046875, 0.0509033203125, 0.022735595703125, -0.00943756103515625, 0.06915283203125, 0.01739501953125, -0.038330078125, 0.0157012939453125, -0.056976318359375, 0.05523681640625, -0.020721435546875, 0.038482666015625, 0.039947509765625, 0.0231475830078125, 0.064697265625, -0.0110931396484375, 0.0247650146484375, 0.0127410888671875, -0.026611328125, -0.0189056396484375, -0.0079803466796875, 0.01702880859375, -0.058563232421875, 0.01480865478515625, 0.0207061767578125, -0.0015430450439453125, -0.017974853515625, -0.0162811279296875, 0.00963592529296875, -0.006549835205078125, -0.0139007568359375, -0.032684326171875, -0.021331787109375, 0.0192108154296875, 0.039215087890625, -0.045745849609375, -0.0154266357421875, 0.03131103515625, 0.0241241455078125, 0.003849029541015625, 0.01885986328125, -0.025665283203125, -0.034332275390625, -0.032928466796875, 0.033538818359375, 0.0015087127685546875, 0.03619384765625, -0.005916595458984375, 0.021697998046875, -0.0220947265625, -0.004238128662109375, -0.004482269287109375, 0.0030460357666015625, 0.00482940673828125, 0.0036792755126953125, -0.04864501953125, -0.032989501953125, 0.0216217041015625, 0.04962158203125, 0.06103515625, 0.00278472900390625, 0.0215911865234375, -0.01351165771484375, -0.010772705078125, 0.006290435791015625, 0.01873779296875, -0.01364898681640625, 0.0019044876098632812, -0.00484466552734375, -0.0271759033203125, 0.023651123046875, -0.0217132568359375, 0.0209808349609375, 0.00238800048828125, 0.039398193359375, -0.0298919677734375, 0.014678955078125, -0.01039886474609375, -0.052154541015625, 0.02911376953125, -0.0001875162124633789, 0.10687255859375, 0.0048065185546875, -0.07220458984375, -0.0126953125, -0.01229095458984375, -0.041412353515625, 0.0201568603515625, 0.04632568359375, -0.0276641845703125, 0.0152587890625, 0.0100860595703125, 0.014190673828125, -0.0009832382202148438, -0.0240020751953125, 0.00823974609375, 0.00452423095703125, 0.014251708984375, 0.0093841552734375, -0.08416748046875, -0.049896240234375, -0.0247802734375, 0.031463623046875, 0.005069732666015625, 0.038330078125, 0.0176544189453125, 0.015380859375, -0.004840850830078125, 0.0036563873291015625, -0.01654052734375, -0.02264404296875, 0.044464111328125, -0.00991058349609375, -0.01788330078125, -0.01085662841796875, -0.040985107421875, 0.004428863525390625, 0.05645751953125, -0.02752685546875, 0.00319671630859375, 0.031982421875, 0.00931549072265625, -0.0347900390625, 0.050750732421875, -0.01461029052734375, 0.0018587112426757812, -0.006801605224609375, -0.019775390625, 0.035797119140625, -0.00968170166015625, -0.00795745849609375, 0.01338958740234375, -0.015472412109375, -0.07476806640625, 0.00287628173828125, -0.04998779296875, -0.03662109375, 0.0166778564453125, 0.059295654296875, -0.0002579689025878906, -0.0262298583984375, -0.035308837890625, 0.01812744140625, 0.0028896331787109375, 0.0004055500030517578, -0.01215362548828125, 0.00963592529296875, 0.060546875, 0.007354736328125, 0.0269317626953125, -0.0310211181640625, -0.00969696044921875, 0.04327392578125, 0.0036373138427734375, -0.0097808837890625, 0.0438232421875, -0.01010894775390625, -0.025238037109375, -0.01342010498046875, -0.0175323486328125, -0.043670654296875, -0.041168212890625, -0.039886474609375, -0.03436279296875, 0.012054443359375, -0.01456451416015625, -0.004070281982421875, -0.023406982421875, -0.018585205078125, -0.01033782958984375, -0.03546142578125, 0.0282135009765625, 0.005809783935546875, 0.034912109375, -0.0384521484375, -0.0020732879638671875, -0.0167083740234375, 0.00815582275390625, -0.00119781494140625, 0.00891876220703125, 0.0084075927734375, -0.02642822265625, 0.0328369140625, 0.00281524658203125, 0.017913818359375, 0.059722900390625, 0.03240966796875, -0.02178955078125, 0.00927734375, 0.0111541748046875, -0.0036487579345703125, -0.03961181640625, 0.00168609619140625, -0.00980377197265625, -0.004985809326171875, -0.026947021484375, 0.0347900390625, 0.04534912109375, -0.031890869140625, -0.087158203125, 0.042816162109375, -0.034637451171875, -0.03729248046875, -0.035980224609375, -0.008514404296875, -0.0155487060546875, 0.00980377197265625, -0.0163116455078125, -0.01076507568359375, 0.01126861572265625, 0.06964111328125, 0.0180511474609375, -0.00673675537109375, 0.057281494140625, -0.01273345947265625, -0.036346435546875, 0.01367950439453125, 0.01271820068359375, -0.0024242401123046875, 0.0171966552734375, -0.016448974609375, 0.039215087890625, 0.0467529296875, -0.041473388671875, -0.0198516845703125, -0.01474761962890625, 0.0030059814453125, 0.0159912109375, 0.0011205673217773438, -0.05780029296875, -0.01500701904296875, 0.053070068359375, 0.05633544921875, 0.032379150390625, -0.032989501953125, -0.007537841796875, -0.053955078125, -0.052001953125, 0.012542724609375, 0.030487060546875, -0.06402587890625, 0.02679443359375, 0.051116943359375, -0.023345947265625, -0.004383087158203125, -0.01184844970703125, -0.045135498046875, -0.0104522705078125, -0.035247802734375, 0.002445220947265625, -0.0474853515625, 0.00421905517578125, 0.003902435302734375, -0.004032135009765625, 0.0225982666015625, -0.0160064697265625, 0.0028591156005859375, 0.005275726318359375, 0.04498291015625, 0.02423095703125, 0.03045654296875, -0.024871826171875, -0.005939483642578125, 0.034820556640625, 0.0204620361328125, -0.00891876220703125, -0.0135955810546875, -0.00647735595703125, 0.02581787109375, 0.0265655517578125, 0.036834716796875, -0.0396728515625, 0.029144287109375, 0.019012451171875, 0.032379150390625, 0.0131378173828125, 0.047698974609375, -0.01340484619140625, 0.048675537109375, -0.015869140625, -0.0149993896484375, -0.0195159912109375, 0.01279449462890625, 0.00991058349609375, 0.004627227783203125, -0.008209228515625, -0.0030345916748046875, 0.005771636962890625, 0.02166748046875, -0.0189971923828125, 0.01277923583984375 ]
13b89be1bbda51131cde4183fbb1a37dc1025d04
Wordpress Stackexchange Q: wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); Getting thumb from wrong loop I am using a plugin which sets the thumbail for your fb share image. The src is <?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> Which was working fine, but not it's showing thumb X on every page (rather then the currect thumbnail) I found the problem is I have a loop in the sidebar. Is there a way to make <?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> Get its attachment from the FIRST loop (as this code is at the bottom of the page) Or is there some other hack to make it get it from the first loop? A: Set a variable in the first loop like: $saved_post_id = $post->ID; Then later down the page use that variable like: echo wp_get_attachment_url( get_post_thumbnail_id( $saved_post_id ) );
Q: wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); Getting thumb from wrong loop I am using a plugin which sets the thumbail for your fb share image. The src is <?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> Which was working fine, but not it's showing thumb X on every page (rather then the currect thumbnail) I found the problem is I have a loop in the sidebar. Is there a way to make <?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> Get its attachment from the FIRST loop (as this code is at the bottom of the page) Or is there some other hack to make it get it from the first loop? A: Set a variable in the first loop like: $saved_post_id = $post->ID; Then later down the page use that variable like: echo wp_get_attachment_url( get_post_thumbnail_id( $saved_post_id ) );
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:415999", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38633" }
[ 0.045562744140625, -0.0180206298828125, 0.047149658203125, -0.01219940185546875, -0.0018482208251953125, -0.014678955078125, 0.043975830078125, -0.038909912109375, 0.0294952392578125, 0.0168914794921875, -0.030487060546875, 0.0016222000122070312, -0.01885986328125, -0.0099334716796875, -0.0302886962890625, -0.01666259765625, 0.05377197265625, -0.063720703125, 0.0218963623046875, 0.005855560302734375, -0.004199981689453125, 0.036163330078125, 0.0521240234375, -0.003421783447265625, 0.03839111328125, -0.03717041015625, 0.041534423828125, 0.006988525390625, 0.006885528564453125, -0.01058197021484375, 0.0294342041015625, -0.00859832763671875, 0.0321044921875, 0.0015668869018554688, -0.013580322265625, -0.00426483154296875, 0.0182342529296875, -0.010986328125, -0.019073486328125, 0.04766845703125, 0.0262603759765625, -0.004241943359375, -0.006908416748046875, 0.0014095306396484375, -0.02838134765625, -0.01212310791015625, 0.0026988983154296875, -0.041015625, 0.00681304931640625, 0.025177001953125, 0.01050567626953125, 0.0032711029052734375, 0.021484375, 0.048553466796875, -0.01739501953125, -0.0260162353515625, -0.007232666015625, 0.00435638427734375, 0.0186004638671875, 0.0005669593811035156, -0.0335693359375, 0.0079803466796875, 0.019622802734375, -0.0204315185546875, -0.0016145706176757812, 0.00537109375, -0.04315185546875, 0.01190185546875, -0.01390838623046875, -0.023834228515625, -0.00571441650390625, -0.03729248046875, -0.01102447509765625, -0.034576416015625, -0.0121612548828125, 0.0239715576171875, -0.00011426210403442383, -0.0067901611328125, -0.0030975341796875, -0.00621795654296875, -0.0205230712890625, -0.053863525390625, -0.0716552734375, 0.08233642578125, -0.0274658203125, 0.0975341796875, -0.0102691650390625, -0.0286102294921875, -0.0167083740234375, -0.016845703125, -0.020843505859375, -0.0233001708984375, -0.0016870498657226562, 0.004703521728515625, -0.0128936767578125, -0.037628173828125, 0.06494140625, 0.0694580078125, -0.0082550048828125, -0.007312774658203125, -0.002277374267578125, -0.044769287109375, 0.00557708740234375, -0.037139892578125, 0.00600433349609375, -0.0027790069580078125, 0.005420684814453125, 0.01264190673828125, 0.04241943359375, 0.0389404296875, -0.0099945068359375, 0.048065185546875, 0.01326751708984375, 0.02557373046875, -0.0310821533203125, -0.018890380859375, -0.04443359375, 0.023193359375, -0.0251007080078125, 0.0182037353515625, 0.0081634521484375, 0.03570556640625, 0.00025463104248046875, 0.01313018798828125, -0.0014400482177734375, 0.02001953125, -0.01035308837890625, -0.040740966796875, 0.0028839111328125, 0.00743865966796875, -0.034149169921875, 0.0020656585693359375, 0.057647705078125, 0.034332275390625, 0.0269775390625, -0.01020050048828125, -0.0273590087890625, -0.026123046875, -0.0272216796875, 0.0205535888671875, -0.0355224609375, -0.006053924560546875, 0.040802001953125, -0.057098388671875, -0.00531768798828125, 0.02935791015625, 0.0210723876953125, 0.020599365234375, -0.0109710693359375, -0.049102783203125, 0.006267547607421875, -0.01522064208984375, 0.0032367706298828125, 0.018707275390625, 0.03900146484375, -0.04986572265625, 0.06341552734375, -0.05035400390625, 0.0377197265625, -0.04864501953125, 0.02557373046875, -0.01560211181640625, -0.037933349609375, 0.01309967041015625, 0.005039215087890625, 0.0086669921875, -0.0031452178955078125, 0.01544189453125, 0.0153045654296875, 0.051025390625, 0.017852783203125, 0.006000518798828125, -0.007701873779296875, -0.01068115234375, -0.0159149169921875, -0.0181732177734375, 0.0148468017578125, -0.040557861328125, 0.04095458984375, 0.02044677734375, -0.053802490234375, -0.04412841796875, 0.027496337890625, -0.038665771484375, -0.044830322265625, 0.0279541015625, -0.01282501220703125, 0.00004756450653076172, 0.0284271240234375, -0.01186370849609375, 0.034912109375, 0.03704833984375, -0.054290771484375, 0.101318359375, -0.0005106925964355469, -0.018951416015625, -0.0477294921875, 0.00983428955078125, -0.0246124267578125, -0.052398681640625, 0.01123046875, 0.0182037353515625, 0.002445220947265625, 0.021240234375, -0.03594970703125, 0.01132965087890625, -0.01171112060546875, 0.031768798828125, 0.0032176971435546875, 0.039642333984375, 0.006317138671875, 0.021759033203125, -0.032501220703125, 0.003894805908203125, -0.01280975341796875, 0.005863189697265625, -0.0218353271484375, -0.01132965087890625, -0.029754638671875, -0.0003647804260253906, -0.054229736328125, 0.0257415771484375, -0.0528564453125, -0.0004115104675292969, 0.039642333984375, 0.0087127685546875, -0.0377197265625, -0.01971435546875, -0.01142120361328125, 0.0224761962890625, -0.08673095703125, 0.06866455078125, -0.056121826171875, -0.01319122314453125, -0.031158447265625, -0.01490020751953125, -0.02545166015625, -0.048553466796875, 0.0244598388671875, 0.04156494140625, 0.060455322265625, 0.034393310546875, 0.01094818115234375, -0.010162353515625, 0.042144775390625, -0.0205535888671875, 0.031707763671875, -0.03741455078125, 0.004261016845703125, 0.0306549072265625, 0.0037021636962890625, 0.00478363037109375, 0.004215240478515625, -0.05023193359375, 0.00943756103515625, 0.0283660888671875, 0.00885772705078125, 0.0311431884765625, -0.009979248046875, 0.0196685791015625, -0.00908660888671875, 0.00547027587890625, 0.002010345458984375, -0.01200103759765625, 0.0367431640625, -0.007205963134765625, 0.016143798828125, 0.0001380443572998047, -0.0274505615234375, 0.007480621337890625, 0.01297760009765625, -0.0167999267578125, -0.01153564453125, 0.0380859375, 0.020172119140625, -0.01531219482421875, -0.0184326171875, -0.01059722900390625, -0.032073974609375, 0.0078887939453125, -0.00554656982421875, 0.0340576171875, -0.005832672119140625, -0.006572723388671875, -0.03240966796875, -0.043243408203125, 0.0107421875, 0.011260986328125, -0.02313232421875, -0.0190582275390625, 0.0011243820190429688, 0.039337158203125, -0.020294189453125, 0.0360107421875, -0.02001953125, 0.004364013671875, -0.01398468017578125, -0.038818359375, 0.035797119140625, -0.017578125, 0.045745849609375, 0.07147216796875, -0.0159454345703125, 0.042327880859375, -0.005359649658203125, -0.03521728515625, -0.0254974365234375, 0.00835418701171875, 0.006397247314453125, -0.0218048095703125, -0.031585693359375, 0.0264892578125, 0.00135040283203125, 0.0894775390625, -0.04791259765625, -0.07763671875, 0.016815185546875, 0.0180511474609375, -0.0809326171875, -0.0858154296875, 0.017852783203125, -0.07861328125, 0.0008807182312011719, -0.020233154296875, -0.053131103515625, -0.004726409912109375, 0.0267791748046875, 0.004608154296875, 0.0357666015625, -0.038360595703125, -0.062744140625, -0.02099609375, -0.07415771484375, -0.005336761474609375, 0.0020580291748046875, 0.0164947509765625, 0.0158538818359375, -0.0173492431640625, -0.009490966796875, -0.0209197998046875, 0.001575469970703125, 0.043975830078125, -0.011962890625, -0.04766845703125, -0.039794921875, -0.010833740234375, -0.06732177734375, -0.002777099609375, -0.01263427734375, -0.0229034423828125, 0.025421142578125, 0.015960693359375, -0.0157928466796875, -0.00551605224609375, 0.028289794921875, 0.0060272216796875, -0.002841949462890625, 0.0301361083984375, 0.03955078125, -0.031890869140625, -0.01194000244140625, -0.0263214111328125, -0.042633056640625, 0.040008544921875, 0.02081298828125, 0.01071929931640625, -0.0046234130859375, 0.0289459228515625, 0.0157012939453125, -0.0029449462890625, -0.0008463859558105469, -0.0103607177734375, 0.064697265625, -0.01476287841796875, 0.0170135498046875, -0.0302276611328125, -0.0037670135498046875, -0.020660400390625, -0.0007958412170410156, -0.01126861572265625, 0.024627685546875, 0.0081787109375, 0.0023174285888671875, 0.00731658935546875, -0.0146942138671875, 0.0195770263671875, -0.03155517578125, 0.01457977294921875, -0.0214691162109375, -0.01030731201171875, -0.014617919921875, 0.04266357421875, -0.039520263671875, -0.024200439453125, -0.006336212158203125, 0.0257415771484375, -0.02667236328125, -0.05975341796875, -0.0078125, -0.00693511962890625, -0.08709716796875, -0.0018339157104492188, -0.00003820657730102539, -0.0283966064453125, 0.00951385498046875, 0.022705078125, -0.04315185546875, -0.04559326171875, 0.0274505615234375, 0.009674072265625, 0.001415252685546875, 0.039642333984375, -0.01525115966796875, 0.050689697265625, -0.03460693359375, -0.004322052001953125, -0.1072998046875, -0.0208587646484375, 0.007022857666015625, 0.07110595703125, -0.01479339599609375, -0.0028781890869140625, -0.0350341796875, 0.04833984375, -0.03289794921875, 0.0323486328125, 0.0056610107421875, 0.027099609375, -0.003376007080078125, -0.0010290145874023438, 0.0224761962890625, -0.0149993896484375, -0.00506591796875, -0.062103271484375, -0.06005859375, -0.0438232421875, -0.036895751953125, 0.0282135009765625, -0.007080078125, -0.00518798828125, -0.03717041015625, 0.00695037841796875, 0.0528564453125, 0.0703125, 0.0166473388671875, 0.0155181884765625, -0.0196685791015625, -0.0550537109375, 0.041748046875, 0.01052093505859375, -0.0162811279296875, -0.001102447509765625, 0.0618896484375, 0.01236724853515625, -0.0280303955078125, -0.058349609375, -0.01180267333984375, 0.019805908203125, -0.01331329345703125, 0.059051513671875, 0.047515869140625, 0.0000010728836059570312, 0.006145477294921875, 0.006671905517578125, 0.02099609375, -0.0180511474609375, 0.0675048828125, -0.0050201416015625, -0.0196533203125, 0.0303497314453125, -0.0032558441162109375, -0.038299560546875, 0.0149688720703125, -0.035186767578125, 0.01137542724609375, 0.00818634033203125, 0.00628662109375, -0.0290679931640625, 0.0176849365234375, -0.0205535888671875, -0.039276123046875, 0.012451171875, -0.040008544921875, 0.04095458984375, 0.047027587890625, -0.026153564453125, 0.037994384765625, 0.0234527587890625, -0.01398468017578125, 0.0055389404296875, -0.0076904296875, 0.035125732421875, 0.024993896484375, -0.0007843971252441406, 0.01160430908203125, -0.0076904296875, 0.00580596923828125, 0.0023040771484375, 0.009857177734375, 0.0147705078125, -0.04742431640625, 0.005725860595703125, 0.0004620552062988281, -0.021026611328125, -0.01461029052734375, 0.029815673828125, -0.011871337890625, -0.031951904296875, -0.01806640625, -0.035980224609375, -0.0430908203125, -0.04229736328125, 0.04669189453125, 0.011993408203125, 0.0018787384033203125, 0.02935791015625, 0.05023193359375, 0.02801513671875, 0.02398681640625, -0.0276947021484375, 0.0013980865478515625, 0.05181884765625, -0.02215576171875, 0.021209716796875, 0.044097900390625, -0.033477783203125, -0.00945281982421875, 0.03375244140625, -0.0567626953125, 0.0245513916015625, 0.00864410400390625, 0.06158447265625, 0.0018177032470703125, -0.058258056640625, 0.033843994140625, -0.051971435546875, -0.005199432373046875, 0.0191192626953125, 0.0135498046875, -0.013641357421875, -0.009765625, -0.003803253173828125, 0.0196533203125, 0.0032329559326171875, -0.00315093994140625, -0.0017385482788085938, -0.0012998580932617188, 0.0024662017822265625, -0.0170135498046875, -0.038360595703125, 0.018218994140625, 0.025115966796875, 0.0007176399230957031, -0.0246734619140625, -0.041748046875, 0.038482666015625, 0.0032901763916015625, -0.0265655517578125, -0.01580810546875, 0.05792236328125, -0.00565338134765625, 0.0482177734375, -0.02117919921875, -0.0506591796875, -0.0758056640625, 0.0019063949584960938, 0.05572509765625, 0.0638427734375, -0.048065185546875, 0.03497314453125, -0.03179931640625, 0.016876220703125, 0.0180206298828125, -0.046600341796875, -0.04071044921875, -0.051300048828125, 0.006740570068359375, 0.04132080078125, -0.00469207763671875, 0.0214385986328125, 0.027801513671875, 0.01192474365234375, -0.02496337890625, 0.07763671875, -0.005352020263671875, 0.02728271484375, 0.026275634765625, 0.022430419921875, 0.0009508132934570312, -0.0202789306640625, -0.05267333984375, 0.00591278076171875, -0.022125244140625, -0.059173583984375, 0.0275726318359375, 0.0223388671875, 0.01152801513671875, -0.004497528076171875, -0.002704620361328125, 0.017974853515625, -0.031585693359375, -0.0016040802001953125, -0.00853729248046875, -0.02667236328125, 0.0367431640625, 0.03546142578125, -0.023162841796875, 0.0036487579345703125, -0.04876708984375, -0.055328369140625, 0.01027679443359375, 0.031951904296875, -0.002819061279296875, -0.03759765625, -0.031158447265625, 0.033477783203125, 0.00148773193359375, 0.03912353515625, 0.11798095703125, 0.017913818359375, 0.07391357421875, 0.05419921875, 0.0257415771484375, 0.022430419921875, 0.062744140625, 0.0183258056640625, -0.03216552734375, 0.07562255859375, 0.0258941650390625, -0.036773681640625, 0.0177001953125, -0.049896240234375, 0.0367431640625, -0.029541015625, 0.03851318359375, 0.0216217041015625, 0.0347900390625, 0.0279083251953125, -0.032196044921875, 0.0225677490234375, -0.015716552734375, -0.01197052001953125, -0.0220947265625, 0.07940673828125, -0.040618896484375, -0.031982421875, 0.0014390945434570312, -0.028961181640625, 0.006595611572265625, -0.006259918212890625, -0.004932403564453125, -0.00498199462890625, -0.07867431640625, -0.0073089599609375, 0.048614501953125, -0.01141357421875, -0.020904541015625, 0.002094268798828125, -0.00980377197265625, -0.0003304481506347656, -0.052490234375, -0.01690673828125, -0.0116729736328125, 0.00998687744140625, 0.006671905517578125, 0.01229095458984375, 0.020111083984375, 0.03167724609375, -0.0028972625732421875, 0.01373291015625, 0.0070343017578125, -0.0233001708984375, 0.0285797119140625, 0.01352691650390625, 0.0029315948486328125, 0.034759521484375, -0.035614013671875, 0.002407073974609375, -0.0213775634765625, 0.030426025390625, -0.0111846923828125, 0.00862884521484375, 0.07952880859375, -0.050262451171875, -0.004245758056640625, 0.04229736328125, 0.05499267578125, -0.03448486328125, -0.00839996337890625, 0.01910400390625, -0.04437255859375, -0.00994110107421875, -0.0014810562133789062, -0.01151275634765625, -0.0099029541015625, -0.019256591796875, -0.048248291015625, 0.0313720703125, -0.0027027130126953125, 0.03717041015625, 0.00434112548828125, -0.0018262863159179688, -0.004390716552734375, -0.0181732177734375, -0.03546142578125, 0.02899169921875, -0.00687408447265625, 0.0174560546875, -0.03021240234375, -0.0018987655639648438, 0.000461578369140625, 0.016876220703125, 0.09625244140625, 0.020355224609375, -0.038665771484375, -0.0091094970703125, 0.06842041015625, 0.04669189453125, 0.00041985511779785156, 0.031494140625, 0.031494140625, 0.0099945068359375, 0.035308837890625, -0.01462554931640625, 0.0289459228515625, -0.0191802978515625, 0.0214996337890625, 0.051513671875, 0.0092010498046875, 0.01284027099609375, 0.008941650390625, 0.0008115768432617188, -0.056365966796875, 0.0037784576416015625, 0.049468994140625, -0.05426025390625, 0.00989532470703125, 0.04534912109375, 0.0310211181640625, 0.00894927978515625, -0.0284576416015625, -0.0084381103515625, 0.039215087890625, 0.00013065338134765625, -0.0013017654418945312, 0.0216064453125, 0.00814056396484375, 0.0687255859375, 0.00856781005859375, -0.00792694091796875, 0.01580810546875, 0.032012939453125, 0.034515380859375, 0.02166748046875, 0.01824951171875, -0.05450439453125, -0.01148223876953125, 0.07244873046875, 0.055755615234375, -0.039825439453125, -0.03387451171875, 0.0195770263671875, 0.0041961669921875, -0.020416259765625, 0.00798797607421875, -0.005878448486328125, -0.0345458984375, 0.0218048095703125, -0.0703125, 0.026580810546875, 0.052154541015625, 0.058013916015625, -0.00913238525390625, -0.0157012939453125, -0.0950927734375, -0.00847625732421875, -0.01367950439453125, 0.018768310546875, 0.0176849365234375, 0.005146026611328125, -0.01331329345703125, 0.01605224609375, -0.01285552978515625, 0.00669097900390625, -0.0198974609375, 0.051483154296875, -0.0032100677490234375, 0.03216552734375, -0.030242919921875, -0.037353515625, 0.01221466064453125, 0.022918701171875, -0.01116943359375, 0.0036296844482421875, 0.0180511474609375, -0.0080718994140625, -0.07470703125, -0.018035888671875, 0.01265716552734375, -0.032470703125, 0.003711700439453125, -0.027069091796875, 0.0083770751953125, 0.0271759033203125, -0.003124237060546875, -0.005962371826171875, -0.0224456787109375, 0.057952880859375, -0.025238037109375, 0.09442138671875, -0.01253509521484375, 0.0097808837890625, 0.027130126953125, -0.0225067138671875, 0.06170654296875, 0.0055084228515625, -0.0869140625, -0.0001971721649169922, -0.031585693359375, -0.0184326171875, -0.008148193359375, 0.00942230224609375, -0.03668212890625, 0.05859375, -0.0086822509765625, -0.00876617431640625, -0.002651214599609375, -0.0009794235229492188, 0.00458526611328125, 0.01068878173828125, 0.0152740478515625, 0.001476287841796875, -0.048492431640625, -0.038543701171875, -0.0160064697265625, 0.038330078125, 0.031280517578125, 0.00676727294921875, 0.0216217041015625, 0.0255279541015625, 0.019744873046875, 0.004741668701171875, -0.023895263671875, 0.02484130859375, -0.02960205078125, -0.0022945404052734375, 0.01812744140625, -0.0235748291015625, -0.0172119140625, 0.045257568359375, 0.0161895751953125, -0.006740570068359375, 0.00489044189453125, 0.00921630859375, 0.01023101806640625, 0.01105499267578125, 0.03399658203125, -0.01493072509765625, -0.0501708984375, -0.0706787109375, -0.0163116455078125, 0.037750244140625, 0.061492919921875, 0.007068634033203125, 0.00605010986328125, 0.0261077880859375, 0.0092315673828125, 0.02093505859375, 0.022552490234375, 0.032989501953125, 0.029754638671875, -0.049652099609375, -0.04132080078125, -0.0035724639892578125, -0.007534027099609375, -0.000339508056640625, 0.0035343170166015625, 0.060150146484375, -0.0206298828125, 0.027435302734375, 0.0097198486328125, -0.0003771781921386719, 0.0298614501953125, -0.0003962516784667969, -0.00035691261291503906, -0.007045745849609375, 0.0122222900390625, -0.041168212890625, -0.03204345703125, -0.00406646728515625, -0.033203125, -0.0122833251953125, 0.016754150390625, 0.0034656524658203125, 0.026611328125, 0.02410888671875, -0.033172607421875, 0.027099609375, 0.0208282470703125, -0.05078125, 0.017333984375, 0.0177154541015625, 0.002902984619140625, -0.0136871337890625, 0.006572723388671875, -0.00032329559326171875, 0.01325225830078125, -0.019439697265625, -0.045806884765625, -0.01190185546875, 0.06085205078125, -0.01390838623046875, 0.0269317626953125, 0.033721923828125, -0.025146484375, -0.00994110107421875, 0.035919189453125, 0.021942138671875, 0.08062744140625, -0.00789642333984375, -0.029541015625, -0.024444580078125, 0.0106048583984375, -0.0052337646484375, -0.0244598388671875, 0.01129150390625, -0.046539306640625, -0.01432037353515625, -0.0089111328125, -0.0198211669921875, -0.003360748291015625, -0.034912109375, -0.02850341796875, 0.034271240234375, -0.004642486572265625, -0.03350830078125, -0.035552978515625, 0.022247314453125, 0.0169677734375, -0.01861572265625, -0.016937255859375, -0.01264190673828125, -0.0243682861328125, 0.01509857177734375, 0.0231170654296875, -0.040008544921875, 0.039794921875, 0.0012226104736328125, -0.0255584716796875, 0.01397705078125, 0.01303863525390625, -0.0185089111328125, 0.00018453598022460938, -0.0163421630859375, 0.03497314453125, 0.0364990234375, -0.02020263671875, -0.036529541015625, 0.0178375244140625, -0.0245361328125, -0.01538848876953125, -0.003513336181640625, -0.0235443115234375, 0.0175323486328125, 0.061981201171875, 0.082763671875, 0.016143798828125, -0.053955078125, 0.00379180908203125, -0.0135650634765625, -0.0865478515625, 0.0020046234130859375, 0.04034423828125, -0.05712890625, -0.0013980865478515625, 0.006496429443359375, -0.01479339599609375, 0.004428863525390625, 0.0012035369873046875, -0.0482177734375, -0.0014324188232421875, -0.0140838623046875, -0.0006561279296875, -0.0838623046875, 0.0203094482421875, 0.07232666015625, -0.04840087890625, 0.006244659423828125, -0.010955810546875, 0.004993438720703125, 0.04315185546875, -0.02752685546875, 0.0288238525390625, 0.031768798828125, -0.0439453125, -0.01253509521484375, 0.0251007080078125, -0.00321197509765625, -0.006870269775390625, -0.0234375, -0.022216796875, 0.0200653076171875, -0.0027904510498046875, 0.0158843994140625, 0.022186279296875, 0.01284027099609375, 0.017364501953125, 0.0272216796875, -0.01422882080078125, 0.032012939453125, -0.00965118408203125, 0.0179443359375, -0.0216217041015625, 0.0012340545654296875, 0.007537841796875, -0.0146636962890625, -0.004848480224609375, 0.00447845458984375, 0.0016927719116210938, -0.03173828125, -0.007450103759765625, -0.016510009765625, -0.0011501312255859375, -0.00010782480239868164 ]
89e009d0d1722d2c2e7eeb9d230cc911e2c7e268
Wordpress Stackexchange Q: order by numeric value for meta value I have read countless posts on ordering data by numeric value ( as opposed to string - it i have a numeric meta value and it gets ordered like this 1 11 12 2 233 etc as opposed to the way i want it I am using WP_Query have tried using meta_query => 'NUMERIC' but i'm not sure if that's what it's actually supposed to do eg $args = array( 'meta_query' => array( array( 'type' => 'NUMERIC' ) ), 'orderby' => 'meta_value', 'meta_key' => '_date', 'post_type' => 'events', 'posts_per_page' => 5, 'order' => 'ASC' ); A: you need to use 'orderby' => 'meta_value_num', also if you are ordering dates, the best advice is to put them in an easy to order way such as 2012-12-31
Q: order by numeric value for meta value I have read countless posts on ordering data by numeric value ( as opposed to string - it i have a numeric meta value and it gets ordered like this 1 11 12 2 233 etc as opposed to the way i want it I am using WP_Query have tried using meta_query => 'NUMERIC' but i'm not sure if that's what it's actually supposed to do eg $args = array( 'meta_query' => array( array( 'type' => 'NUMERIC' ) ), 'orderby' => 'meta_value', 'meta_key' => '_date', 'post_type' => 'events', 'posts_per_page' => 5, 'order' => 'ASC' ); A: you need to use 'orderby' => 'meta_value_num', also if you are ordering dates, the best advice is to put them in an easy to order way such as 2012-12-31
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:416008", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38657" }
[ 0.04638671875, 0.0163726806640625, 0.01995849609375, 0.006488800048828125, 0.0211029052734375, -0.030242919921875, 0.049346923828125, -0.049530029296875, 0.04046630859375, 0.032745361328125, -0.00684356689453125, -0.0299835205078125, -0.0032520294189453125, -0.0254058837890625, -0.04425048828125, -0.0345458984375, 0.0226898193359375, 0.0029926300048828125, 0.00232696533203125, -0.014892578125, 0.029632568359375, 0.0125885009765625, -0.0201416015625, 0.0115966796875, 0.04632568359375, -0.0118255615234375, 0.056304931640625, -0.038482666015625, 0.0533447265625, -0.0098114013671875, 0.0345458984375, -0.040924072265625, 0.01461029052734375, -0.039520263671875, 0.0655517578125, -0.007564544677734375, 0.0011262893676757812, -0.01447296142578125, 0.0286712646484375, -0.0221710205078125, 0.01251220703125, -0.000942230224609375, 0.0141143798828125, 0.0399169921875, -0.0019245147705078125, -0.0307464599609375, 0.01080322265625, -0.05010986328125, 0.01116180419921875, -0.039031982421875, -0.0036830902099609375, 0.01412200927734375, 0.01776123046875, -0.0258941650390625, -0.015716552734375, -0.01372528076171875, -0.01024627685546875, 0.002788543701171875, 0.00809478759765625, -0.00435638427734375, 0.0086212158203125, 0.037445068359375, 0.019256591796875, 0.005153656005859375, -0.03729248046875, -0.0377197265625, 0.0197601318359375, 0.00927734375, -0.00023090839385986328, -0.0218048095703125, 0.047760009765625, 0.033782958984375, -0.010894775390625, -0.0711669921875, 0.030731201171875, 0.015167236328125, -0.0241851806640625, -0.033111572265625, 0.002719879150390625, 0.0195465087890625, 0.034332275390625, 0.00982666015625, 0.033203125, -0.0282745361328125, 0.0202178955078125, -0.0235748291015625, -0.017578125, -0.0149688720703125, -0.0121307373046875, -0.056610107421875, -0.01375579833984375, 0.0137176513671875, -0.032806396484375, -0.008148193359375, -0.044525146484375, -0.03253173828125, 0.00457763671875, 0.041229248046875, -0.04290771484375, -0.012542724609375, -0.040771484375, 0.005260467529296875, -0.038482666015625, -0.014434814453125, -0.005023956298828125, 0.01152801513671875, 0.0174560546875, 0.00835418701171875, 0.0251922607421875, 0.033599853515625, -0.00201416015625, 0.024261474609375, -0.01953125, -0.0164031982421875, -0.0201416015625, 0.04254150390625, -0.0247955322265625, 0.0183563232421875, 0.0026607513427734375, 0.019500732421875, 0.05694580078125, 0.058746337890625, 0.0506591796875, -0.030853271484375, 0.0269775390625, 0.044708251953125, -0.049468994140625, -0.090576171875, -0.0545654296875, 0.06488037109375, -0.0235443115234375, 0.00447845458984375, 0.03118896484375, -0.00571441650390625, -0.046417236328125, -0.026611328125, 0.01334381103515625, -0.055206298828125, -0.0012445449829101562, 0.0088653564453125, 0.00060272216796875, -0.020904541015625, 0.02874755859375, -0.01342010498046875, -0.01363372802734375, 0.03094482421875, 0.0096893310546875, -0.009368896484375, -0.008026123046875, -0.0099334716796875, -0.03350830078125, -0.0297698974609375, 0.037353515625, -0.00299072265625, -0.0643310546875, 0.0185546875, -0.01451873779296875, -0.00885772705078125, -0.041015625, -0.021514892578125, -0.0089263916015625, -0.00569915771484375, 0.009185791015625, -0.043365478515625, -0.043731689453125, 0.013671875, -0.0162200927734375, -0.016510009765625, 0.0230865478515625, 0.0477294921875, -0.0003516674041748047, -0.004878997802734375, 0.005809783935546875, -0.004573822021484375, -0.0200347900390625, -0.004611968994140625, 0.00978851318359375, -0.022979736328125, 0.01389312744140625, 0.0160980224609375, -0.0276947021484375, -0.030731201171875, -0.0036563873291015625, -0.0016031265258789062, -0.046356201171875, 0.0341796875, 0.00039076805114746094, 0.0159759521484375, -0.00196075439453125, -0.003757476806640625, 0.047882080078125, 0.03594970703125, -0.041900634765625, 0.0201263427734375, 0.04010009765625, -0.006351470947265625, -0.0267486572265625, -0.0024127960205078125, 0.0286865234375, -0.052337646484375, -0.0036411285400390625, 0.04339599609375, -0.052093505859375, 0.0168304443359375, -0.06146240234375, 0.004413604736328125, -0.0156402587890625, 0.031707763671875, -0.0357666015625, 0.049560546875, 0.0179901123046875, -0.02001953125, -0.0258636474609375, 0.031982421875, 0.03369140625, -0.0308837890625, -0.0004534721374511719, 0.00975799560546875, -0.058258056640625, 0.00882720947265625, -0.09210205078125, -0.039886474609375, -0.08966064453125, 0.033294677734375, 0.0293731689453125, 0.001689910888671875, -0.031890869140625, -0.0121002197265625, 0.03466796875, -0.012237548828125, 0.01522064208984375, 0.044586181640625, -0.03497314453125, -0.00548553466796875, -0.02001953125, 0.0169830322265625, 0.00861358642578125, -0.019500732421875, 0.01580810546875, 0.01540374755859375, 0.042877197265625, 0.052978515625, 0.046417236328125, 0.036163330078125, 0.02703857421875, -0.048248291015625, 0.02667236328125, -0.018890380859375, -0.0164337158203125, 0.0297088623046875, -0.01421356201171875, 0.017608642578125, 0.01654052734375, -0.008636474609375, -0.015960693359375, 0.037750244140625, -0.0035648345947265625, 0.029815673828125, -0.0078125, 0.01418304443359375, -0.0201263427734375, 0.036834716796875, 0.00960540771484375, -0.0032634735107421875, 0.01849365234375, -0.013275146484375, 0.039276123046875, 0.03173828125, -0.005802154541015625, -0.0195159912109375, 0.015838623046875, 0.0107879638671875, 0.01201629638671875, -0.01375579833984375, -0.07330322265625, -0.0247802734375, -0.02606201171875, 0.040802001953125, 0.0305328369140625, -0.0272064208984375, -0.0127716064453125, 0.00766754150390625, -0.043792724609375, -0.0015439987182617188, -0.0157012939453125, -0.002765655517578125, 0.015838623046875, 0.03924560546875, -0.0594482421875, -0.038116455078125, 0.013519287109375, 0.01284027099609375, -0.024322509765625, -0.01342010498046875, 0.00402069091796875, -0.0196075439453125, -0.0235748291015625, -0.049468994140625, 0.0350341796875, -0.050384521484375, 0.0254669189453125, 0.06072998046875, -0.042724609375, 0.048980712890625, -0.02423095703125, 0.012725830078125, -0.06878662109375, 0.046112060546875, 0.00417327880859375, -0.04364013671875, -0.033599853515625, 0.007213592529296875, 0.03582763671875, 0.03143310546875, 0.0272979736328125, -0.0026226043701171875, 0.01235198974609375, 0.02838134765625, -0.07720947265625, -0.1412353515625, -0.00888824462890625, 0.0017023086547851562, -0.0210418701171875, -0.014892578125, -0.0006117820739746094, 0.01043701171875, -0.035125732421875, -0.001766204833984375, 0.006046295166015625, 0.011566162109375, -0.017059326171875, -0.0106048583984375, -0.0401611328125, -0.019744873046875, 0.00823211669921875, 0.0165557861328125, 0.006877899169921875, 0.055206298828125, 0.005252838134765625, -0.0650634765625, -0.00811767578125, 0.0263519287109375, -0.007549285888671875, 0.019561767578125, 0.0145111083984375, -0.060333251953125, 0.0235443115234375, -0.021942138671875, 0.062255859375, 0.03521728515625, -0.023406982421875, 0.032562255859375, -0.01371002197265625, 0.0145721435546875, 0.0219879150390625, 0.02105712890625, 0.008514404296875, 0.02947998046875, 0.0345458984375, -0.013214111328125, -0.0066986083984375, -0.008697509765625, -0.02880859375, 0.046112060546875, 0.0153656005859375, -0.0008893013000488281, -0.0030498504638671875, 0.02490234375, -0.0198974609375, -0.0213623046875, 0.031707763671875, -0.037109375, -0.008026123046875, -0.01085662841796875, -0.0147857666015625, -0.0019683837890625, 0.00968170166015625, -0.04522705078125, 0.0091094970703125, -0.00804901123046875, -0.0247039794921875, -0.021820068359375, -0.0002282857894897461, -0.00624847412109375, -0.027191162109375, 0.055816650390625, 0.0247650146484375, -0.0078887939453125, -0.0159454345703125, -0.044189453125, 0.0012569427490234375, 0.067138671875, -0.006130218505859375, -0.0272064208984375, -0.0304718017578125, 0.0112152099609375, -0.044830322265625, -0.0197296142578125, 0.0145721435546875, 0.01751708984375, -0.059600830078125, 0.0272674560546875, 0.0224761962890625, -0.030853271484375, -0.0296783447265625, 0.0069732666015625, -0.054168701171875, -0.016143798828125, 0.0149383544921875, -0.012115478515625, -0.01117706298828125, 0.021636962890625, -0.0176849365234375, 0.00859832763671875, -0.00592041015625, -0.01242828369140625, -0.040283203125, -0.0225677490234375, 0.0174407958984375, 0.05621337890625, 0.004787445068359375, -0.0303955078125, -0.00260162353515625, 0.045318603515625, -0.0251312255859375, -0.01078033447265625, -0.005218505859375, 0.0217742919921875, -0.0450439453125, -0.004077911376953125, -0.01389312744140625, -0.034881591796875, -0.023834228515625, -0.032012939453125, 0.01401519775390625, 0.01715087890625, -0.0191802978515625, 0.01470184326171875, -0.029937744140625, 0.01446533203125, -0.0224151611328125, -0.019317626953125, -0.0635986328125, 0.0153961181640625, -0.03179931640625, -0.007335662841796875, -0.03155517578125, -0.06597900390625, 0.04632568359375, 0.0284576416015625, 0.00522613525390625, -0.005710601806640625, 0.05902099609375, 0.0128936767578125, -0.039398193359375, -0.04010009765625, -0.001216888427734375, 0.0183258056640625, 0.0201873779296875, -0.0214691162109375, -0.0518798828125, -0.0213165283203125, 0.042022705078125, -0.0247039794921875, 0.0225677490234375, 0.00263214111328125, 0.02197265625, -0.0070953369140625, -0.04730224609375, 0.0574951171875, 0.004802703857421875, -0.0220794677734375, 0.049560546875, -0.002094268798828125, -0.051361083984375, -0.022491455078125, 0.056121826171875, -0.00676727294921875, 0.01471710205078125, -0.06439208984375, -0.04205322265625, 0.015594482421875, -0.03131103515625, -0.0268707275390625, 0.007785797119140625, -0.01265716552734375, -0.01163482666015625, -0.00677490234375, -0.005916595458984375, 0.0164337158203125, 0.0193939208984375, -0.04681396484375, -0.01018524169921875, 0.0228424072265625, -0.044769287109375, 0.014923095703125, -0.01065826416015625, 0.078857421875, 0.0134735107421875, -0.0219268798828125, -0.0311431884765625, 0.0024166107177734375, 0.04742431640625, -0.004711151123046875, -0.0455322265625, 0.0085296630859375, 0.03399658203125, -0.005191802978515625, 0.0243377685546875, -0.0433349609375, 0.0237579345703125, -0.034149169921875, -0.024810791015625, 0.01302337646484375, -0.0250701904296875, -0.033843994140625, 0.09014892578125, -0.0133514404296875, 0.0283966064453125, -0.0306243896484375, 0.03570556640625, 0.032562255859375, -0.0031604766845703125, 0.01531982421875, -0.007415771484375, -0.00811004638671875, -0.007076263427734375, 0.011474609375, -0.0171051025390625, -0.006229400634765625, -0.004764556884765625, -0.0153045654296875, 0.0285797119140625, 0.0305938720703125, 0.03662109375, 0.045623779296875, -0.0182037353515625, -0.0223846435546875, 0.01084136962890625, 0.01898193359375, -0.01432037353515625, -0.05975341796875, -0.0297088623046875, 0.022735595703125, 0.0179595947265625, 0.01177978515625, -0.007389068603515625, 0.066162109375, -0.05511474609375, 0.1068115234375, -0.05255126953125, -0.074951171875, 0.0211029052734375, 0.01727294921875, -0.0216217041015625, -0.0322265625, -0.051666259765625, 0.00399017333984375, -0.00370025634765625, 0.053070068359375, -0.0269622802734375, 0.04388427734375, -0.032379150390625, 0.0177764892578125, -0.035400390625, 0.029571533203125, -0.004413604736328125, 0.0128936767578125, -0.02557373046875, -0.0125579833984375, -0.0210418701171875, -0.0260772705078125, 0.06512451171875, 0.0007491111755371094, -0.0276641845703125, -0.028778076171875, -0.00018417835235595703, 0.035125732421875, -0.046112060546875, -0.056976318359375, 0.057098388671875, -0.003940582275390625, -0.03045654296875, 0.02252197265625, -0.013397216796875, 0.06219482421875, -0.01526641845703125, 0.0460205078125, 0.00801849365234375, 0.018218994140625, -0.03662109375, -0.004817962646484375, 0.0239105224609375, -0.01251220703125, -0.06561279296875, -0.013153076171875, -0.04022216796875, -0.045684814453125, -0.005359649658203125, -0.0457763671875, 0.0112762451171875, -0.02862548828125, -0.007717132568359375, -0.0118255615234375, 0.00196075439453125, -0.007251739501953125, 0.031280517578125, -0.0036487579345703125, 0.0077056884765625, 0.0083465576171875, -0.01053619384765625, -0.005573272705078125, -0.018035888671875, 0.01531982421875, 0.0199432373046875, -0.022613525390625, -0.00579071044921875, 0.0284881591796875, 0.061981201171875, 0.0361328125, 0.03826904296875, -0.01953125, 0.0215606689453125, 0.0017004013061523438, 0.005615234375, 0.0225067138671875, 0.0086822509765625, 0.06585693359375, -0.004058837890625, -0.0191802978515625, 0.0289764404296875, -0.0341796875, 0.01129913330078125, 0.0455322265625, 0.036529541015625, -0.06494140625, 0.00614166259765625, 0.0118408203125, 0.0273590087890625, 0.050079345703125, -0.0184783935546875, -0.004711151123046875, -0.0228729248046875, 0.0306396484375, 0.0264434814453125, -0.0168304443359375, 0.00833892822265625, 0.01242828369140625, -0.0191497802734375, 0.00902557373046875, -0.033905029296875, -0.03302001953125, -0.004486083984375, -0.03985595703125, -0.0264739990234375, -0.0209503173828125, -0.00188446044921875, -0.002605438232421875, 0.01100921630859375, -0.03509521484375, -0.1142578125, -0.05743408203125, -0.022369384765625, -0.05010986328125, 0.030548095703125, -0.00971221923828125, 0.07489013671875, 0.01110076904296875, 0.031463623046875, -0.042236328125, -0.0290374755859375, 0.029510498046875, 0.0203857421875, -0.010223388671875, -0.0118560791015625, -0.021636962890625, 0.036712646484375, -0.00492095947265625, 0.00634002685546875, -0.040496826171875, -0.01885986328125, -0.01788330078125, 0.078857421875, -0.03265380859375, -0.00974273681640625, 0.040374755859375, 0.016510009765625, -0.042327880859375, 0.008575439453125, 0.0294342041015625, -0.041839599609375, 0.0194549560546875, 0.028533935546875, 0.039337158203125, -0.0265045166015625, 0.013275146484375, -0.030487060546875, 0.032501220703125, -0.0238189697265625, -0.007595062255859375, 0.0046539306640625, 0.0219268798828125, -0.0015354156494140625, 0.01441192626953125, -0.052825927734375, 0.05029296875, -0.01910400390625, 0.07720947265625, -0.09637451171875, -0.0155487060546875, 0.007694244384765625, 0.03900146484375, 0.01285552978515625, -0.0080718994140625, -0.047607421875, 0.0204925537109375, 0.07708740234375, 0.042449951171875, 0.037872314453125, 0.0401611328125, 0.0086517333984375, 0.04364013671875, 0.04730224609375, -0.0106201171875, 0.032012939453125, 0.00949859619140625, -0.043243408203125, 0.03887939453125, 0.0164337158203125, 0.005550384521484375, -0.024139404296875, 0.00586700439453125, -0.03009033203125, -0.0072479248046875, 0.03082275390625, -0.0304718017578125, 0.04248046875, -0.008392333984375, 0.0260009765625, -0.055694580078125, -0.0704345703125, 0.003936767578125, 0.0294189453125, 0.01428985595703125, 0.01120758056640625, 0.08251953125, 0.017608642578125, 0.0278472900390625, 0.00560760498046875, 0.01148223876953125, -0.01568603515625, 0.0146026611328125, 0.05908203125, -0.0013561248779296875, 0.02044677734375, -0.047943115234375, -0.001529693603515625, 0.022003173828125, 0.061492919921875, -0.05419921875, 0.0032444000244140625, 0.0145721435546875, 0.001811981201171875, 0.0166168212890625, -0.0689697265625, -0.015655517578125, -0.0303955078125, -0.0157318115234375, -0.0185089111328125, -0.03271484375, -0.00507354736328125, 0.04296875, 0.0121307373046875, 0.00927734375, -0.00946044921875, -0.047027587890625, -0.071044921875, 0.06536865234375, 0.030548095703125, 0.04852294921875, -0.0166168212890625, 0.09466552734375, 0.01364898681640625, -0.031280517578125, -0.0276641845703125, 0.01073455810546875, 0.01546478271484375, 0.0290069580078125, -0.0400390625, 0.0087432861328125, -0.008087158203125, 0.042999267578125, 0.01294708251953125, 0.008880615234375, 0.04156494140625, 0.053802490234375, -0.0162353515625, -0.0103912353515625, 0.051239013671875, -0.01348876953125, -0.04010009765625, -0.028076171875, 0.007747650146484375, 0.015411376953125, 0.003887176513671875, 0.01446533203125, 0.042236328125, 0.004779815673828125, 0.01641845703125, 0.006160736083984375, 0.018768310546875, 0.005184173583984375, 0.0369873046875, 0.005458831787109375, -0.00732421875, 0.03363037109375, -0.0093841552734375, 0.0031890869140625, -0.0107269287109375, -0.0245513916015625, 0.0014028549194335938, 0.031494140625, -0.005123138427734375, 0.01971435546875, -0.00933074951171875, -0.0251617431640625, 0.022674560546875, 0.0118560791015625, 0.0116119384765625, 0.049957275390625, 0.002597808837890625, 0.003253936767578125, -0.061248779296875, -0.0287933349609375, -0.023193359375, 0.030975341796875, 0.00797271728515625, 0.01335906982421875, 0.0160675048828125, 0.0294189453125, -0.0090789794921875, -0.00872039794921875, -0.0013074874877929688, -0.01305389404296875, 0.0372314453125, 0.00829315185546875, -0.0106964111328125, -0.017547607421875, 0.044952392578125, -0.03472900390625, 0.057708740234375, -0.044708251953125, -0.054931640625, -0.01186370849609375, 0.04046630859375, 0.0189971923828125, -0.0058441162109375, -0.023040771484375, -0.0013256072998046875, -0.011383056640625, -0.023345947265625, 0.0261077880859375, 0.03900146484375, 0.0162353515625, -0.0074310302734375, 0.014556884765625, -0.038665771484375, 0.020263671875, 0.0026378631591796875, 0.04229736328125, 0.031280517578125, -0.0044708251953125, 0.03265380859375, 0.0064697265625, -0.0229034423828125, 0.0543212890625, -0.0177154541015625, 0.0200958251953125, 0.0111541748046875, -0.002773284912109375, -0.0055389404296875, 0.034698486328125, 0.0595703125, 0.0255889892578125, 0.006397247314453125, -0.0005407333374023438, -0.03607177734375, 0.00003808736801147461, 0.0074310302734375, -0.041259765625, -0.032501220703125, 0.044036865234375, 0.01236724853515625, 0.0396728515625, 0.00377655029296875, -0.003673553466796875, 0.0020599365234375, 0.00766754150390625, -0.0032558441162109375, -0.0080718994140625, 0.01702880859375, -0.02642822265625, -0.0238800048828125, 0.00669097900390625, -0.02685546875, -0.024749755859375, -0.008880615234375, -0.0202178955078125, -0.0010290145874023438, -0.06329345703125, -0.0038242340087890625, -0.02374267578125, 0.007274627685546875, 0.007038116455078125, -0.01410675048828125, 0.009735107421875, 0.01168060302734375, -0.003204345703125, 0.0408935546875, 0.002773284912109375, 0.018768310546875, 0.03656005859375, 0.0275115966796875, -0.0662841796875, -0.095458984375, 0.024383544921875, -0.033660888671875, 0.01154327392578125, -0.0084381103515625, 0.0147247314453125, 0.03961181640625, -0.01947021484375, -0.0693359375, 0.059295654296875, -0.00705718994140625, -0.0377197265625, 0.00594329833984375, -0.01389312744140625, -0.000888824462890625, 0.0333251953125, 0.01004791259765625, -0.0013885498046875, -0.03460693359375, 0.0006299018859863281, 0.045806884765625, -0.01629638671875, 0.0238800048828125, 0.0653076171875, -0.1199951171875, 0.0147247314453125, -0.033111572265625, 0.008575439453125, -0.00925445556640625, 0.0041351318359375, 0.00928497314453125, 0.0200347900390625, -0.04522705078125, 0.025970458984375, 0.010009765625, 0.048095703125, -0.0030059814453125, -0.01148223876953125, -0.025360107421875, 0.00589752197265625, 0.04571533203125, 0.04315185546875, 0.0240936279296875, -0.037353515625, 0.025390625, -0.02923583984375, -0.01343536376953125, -0.060577392578125, 0.01155853271484375, -0.0836181640625, -0.05865478515625, 0.006389617919921875, 0.0035247802734375, 0.046875, -0.002788543701171875, 0.004150390625, 0.005535125732421875, 0.0335693359375, -0.0023345947265625, -0.055145263671875, -0.022918701171875, 0.00843048095703125, -0.01641845703125, -0.00608062744140625, -0.01215362548828125, 0.0159454345703125, -0.0238494873046875, 0.0230712890625, -0.027191162109375, -0.0304107666015625, 0.017852783203125, 0.0298004150390625, -0.00740814208984375, 0.02923583984375, 0.008453369140625, -0.005283355712890625, -0.0389404296875, 0.00885772705078125, 0.0177459716796875, 0.0035305023193359375, -0.00992584228515625, -0.00601959228515625, 0.0333251953125, 0.01104736328125, -0.01079559326171875, 0.06640625, -0.012725830078125, 0.0197296142578125, -0.003948211669921875, 0.0019741058349609375, 0.035064697265625, 0.005340576171875, 0.0082855224609375, -0.0247802734375, 0.004856109619140625, -0.0031032562255859375, -0.004016876220703125, -0.0022411346435546875, -0.03265380859375, 0.003009796142578125 ]
694341760e3ee56af447a09b7f2f02be41849928
Wordpress Stackexchange Q: how to display the wordpress login and register forms on a page? I have a wordpress site. Which has the built-in login form with the url http://domain/wp-login.php and register page http://domain/wp-login.php?action=register. As these pages have no sidebar and headers, therefore I want to display these forms on a page which I have created from the backend. Is it possible and how will I do this? A: There are a couple of ways to do this. The most simple is probably to install a plugin, such as Theme My Login. The more complicated but flexible way to do it is to use wp_login_form() to output the form, presumably to a shortcode or something, and then you can style it yourself.
Q: how to display the wordpress login and register forms on a page? I have a wordpress site. Which has the built-in login form with the url http://domain/wp-login.php and register page http://domain/wp-login.php?action=register. As these pages have no sidebar and headers, therefore I want to display these forms on a page which I have created from the backend. Is it possible and how will I do this? A: There are a couple of ways to do this. The most simple is probably to install a plugin, such as Theme My Login. The more complicated but flexible way to do it is to use wp_login_form() to output the form, presumably to a shortcode or something, and then you can style it yourself.
wordpress
{ "language": "en", "length": 120, "provenance": "stackexchange_00019.jsonl.gz:416033", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38718" }
[ 0.0601806640625, 0.010955810546875, -0.00524139404296875, -0.0014629364013671875, 0.006626129150390625, -0.046600341796875, 0.047821044921875, -0.02593994140625, -0.01415252685546875, 0.005191802978515625, -0.0069732666015625, -0.0182037353515625, -0.057281494140625, -0.0254364013671875, -0.007843017578125, -0.05291748046875, 0.011322021484375, 0.018310546875, 0.041748046875, -0.016937255859375, 0.035064697265625, -0.01099395751953125, 0.004383087158203125, 0.021087646484375, 0.0237274169921875, -0.041473388671875, 0.1217041015625, -0.038299560546875, 0.0394287109375, -0.0173797607421875, 0.036102294921875, -0.051666259765625, 0.02825927734375, 0.005481719970703125, 0.00418853759765625, -0.00649261474609375, 0.0122833251953125, -0.00018477439880371094, 0.005275726318359375, 0.03082275390625, 0.0361328125, -0.028839111328125, 0.0484619140625, -0.034942626953125, 0.020416259765625, -0.01947021484375, 0.0297698974609375, -0.045745849609375, 0.016998291015625, -0.01493072509765625, 0.01739501953125, 0.0180816650390625, 0.041473388671875, -0.00971221923828125, -0.0263519287109375, 0.0036334991455078125, -0.027801513671875, -0.0005269050598144531, 0.03472900390625, 0.0245513916015625, -0.01338958740234375, -0.04327392578125, 0.0175933837890625, -0.032012939453125, 0.004306793212890625, 0.02398681640625, -0.0040283203125, 0.01015472412109375, 0.000789642333984375, -0.006500244140625, -0.006557464599609375, -0.033538818359375, 0.0015401840209960938, -0.02337646484375, -0.01165771484375, 0.02484130859375, -0.0430908203125, 0.0160064697265625, 0.0419921875, -0.00849151611328125, -0.051513671875, -0.0178680419921875, -0.0628662109375, -0.008636474609375, 0.01279449462890625, 0.03436279296875, -0.032806396484375, -0.00809478759765625, -0.005039215087890625, -0.032806396484375, -0.0035800933837890625, -0.016326904296875, -0.046661376953125, 0.0189971923828125, -0.0019817352294921875, -0.04095458984375, 0.0010356903076171875, -0.0018758773803710938, 0.024200439453125, 0.0014858245849609375, 0.0121917724609375, -0.05914306640625, 0.0301513671875, -0.0108642578125, -0.0073089599609375, 0.09490966796875, 0.0166778564453125, 0.043426513671875, 0.003223419189453125, -0.0004987716674804688, 0.044586181640625, -0.023712158203125, -0.042327880859375, -0.061126708984375, -0.006038665771484375, 0.0643310546875, -0.02032470703125, -0.00144195556640625, 0.01036834716796875, 0.01473236083984375, -0.0116729736328125, 0.0195159912109375, 0.0509033203125, -0.01090240478515625, -0.0253448486328125, -0.00988006591796875, -0.000015735626220703125, -0.0772705078125, 0.0007548332214355469, 0.0170745849609375, -0.029754638671875, 0.0263824462890625, 0.0245208740234375, -0.01129150390625, -0.01513671875, -0.0170440673828125, 0.0262603759765625, 0.015899658203125, 0.0038604736328125, 0.0234527587890625, -0.004299163818359375, -0.054229736328125, 0.004810333251953125, 0.006717681884765625, -0.00681304931640625, 0.0170135498046875, 0.026031494140625, 0.016937255859375, 0.0022640228271484375, -0.035125732421875, -0.01629638671875, -0.0035266876220703125, -0.0166168212890625, 0.024871826171875, 0.0518798828125, 0.04986572265625, 0.043701171875, 0.00894927978515625, -0.0278167724609375, 0.03167724609375, 0.02886962890625, 0.0252227783203125, 0.02056884765625, -0.025970458984375, -0.0114898681640625, -0.07275390625, -0.054229736328125, 0.0040740966796875, 0.032135009765625, -0.01342010498046875, 0.054107666015625, -0.02484130859375, 0.026611328125, 0.01091766357421875, 0.00547027587890625, 0.0187835693359375, -0.0017671585083007812, 0.085693359375, -0.004314422607421875, 0.031585693359375, 0.0224761962890625, -0.03643798828125, 0.047149658203125, 0.0066986083984375, -0.03375244140625, 0.0111541748046875, 0.00835418701171875, 0.02069091796875, -0.00908660888671875, 0.0138092041015625, 0.02227783203125, 0.0264739990234375, -0.0286865234375, 0.01477813720703125, -0.00942230224609375, -0.0091400146484375, 0.0018606185913085938, 0.0078277587890625, -0.01146697998046875, 0.00502777099609375, -0.0221405029296875, -0.00943756103515625, 0.0003559589385986328, 0.0174713134765625, 0.0103759765625, -0.00325775146484375, 0.001010894775390625, 0.00937652587890625, 0.0206451416015625, -0.0011854171752929688, 0.007053375244140625, 0.031280517578125, -0.0299530029296875, -0.054351806640625, -0.05572509765625, 0.04150390625, -0.0305633544921875, 0.03057861328125, 0.0092620849609375, 0.0275421142578125, 0.0012769699096679688, -0.0084228515625, -0.016876220703125, -0.040130615234375, 0.0166473388671875, -0.028656005859375, -0.0120697021484375, -0.045196533203125, -0.006031036376953125, -0.01474761962890625, -0.01253509521484375, 0.052093505859375, -0.0185546875, 0.0003559589385986328, -0.0538330078125, -0.013336181640625, -0.03790283203125, 0.004909515380859375, -0.005435943603515625, 0.03662109375, 0.0269622802734375, 0.016815185546875, 0.011932373046875, 0.03558349609375, 0.033233642578125, -0.0173187255859375, 0.0296783447265625, 0.0015497207641601562, 0.0166778564453125, 0.0313720703125, -0.01177978515625, -0.00827789306640625, 0.026397705078125, -0.01338958740234375, 0.0127410888671875, 0.0217437744140625, -0.0023174285888671875, -0.005584716796875, -0.004669189453125, -0.0040130615234375, -0.00321197509765625, -0.06707763671875, -0.032684326171875, -0.030731201171875, -0.03155517578125, 0.00505828857421875, -0.004871368408203125, -0.008636474609375, -0.01505279541015625, -0.00038909912109375, 0.016937255859375, -0.0305938720703125, -0.015899658203125, -0.027130126953125, 0.01314544677734375, -0.0228271484375, -0.034942626953125, 0.0164642333984375, -0.005321502685546875, -0.039520263671875, -0.037750244140625, -0.0306243896484375, -0.0285491943359375, -0.00942230224609375, 0.00829315185546875, -0.07293701171875, 0.0221099853515625, 0.0082550048828125, 0.038665771484375, -0.005100250244140625, 0.025390625, 0.0007004737854003906, -0.03228759765625, 0.054229736328125, -0.0068206787109375, -0.043304443359375, 0.01519012451171875, -0.044525146484375, 0.03924560546875, -0.0380859375, 0.034027099609375, 0.056549072265625, -0.00876617431640625, 0.011871337890625, 0.006931304931640625, -0.00547027587890625, 0.033905029296875, 0.005603790283203125, 0.0100250244140625, -0.01873779296875, -0.01476287841796875, -0.004291534423828125, 0.0233001708984375, -0.007183074951171875, 0.0139007568359375, -0.034515380859375, -0.01334381103515625, 0.00958251953125, -0.0771484375, -0.039642333984375, -0.1103515625, -0.0614013671875, -0.009552001953125, 0.015106201171875, -0.022216796875, 0.04541015625, 0.02850341796875, 0.0283203125, 0.008056640625, -0.021636962890625, -0.04803466796875, -0.030303955078125, -0.056427001953125, -0.0225982666015625, -0.00528717041015625, -0.0009202957153320312, 0.00907135009765625, 0.043121337890625, 0.01215362548828125, -0.04876708984375, 0.0204010009765625, 0.029632568359375, -0.0220794677734375, 0.0200653076171875, 0.007091522216796875, -0.0367431640625, 0.02325439453125, -0.003509521484375, -0.00014865398406982422, 0.0035648345947265625, 0.0141143798828125, -0.01450347900390625, 0.0015249252319335938, -0.07000732421875, -0.01265716552734375, -0.0063629150390625, -0.0133819580078125, -0.06414794921875, -0.00689697265625, -0.0809326171875, 0.01351165771484375, -0.007965087890625, -0.0304107666015625, -0.033538818359375, 0.0063629150390625, -0.026824951171875, -0.008819580078125, -0.028778076171875, 0.0010442733764648438, -0.004878997802734375, 0.01206207275390625, -0.01171112060546875, 0.028167724609375, -0.007343292236328125, -0.00238037109375, -0.0122222900390625, -0.01299285888671875, -0.034423828125, 0.01324462890625, -0.016510009765625, 0.01016998291015625, -0.0196533203125, 0.030303955078125, -0.030731201171875, -0.10052490234375, 0.0714111328125, -0.01300048828125, -0.017791748046875, -0.0281524658203125, -0.033294677734375, 0.0023517608642578125, 0.12890625, -0.035919189453125, -0.00321197509765625, 0.0277557373046875, 0.0261993408203125, -0.05657958984375, -0.017730712890625, -0.07958984375, -0.00569915771484375, -0.059173583984375, -0.0124969482421875, -0.0277099609375, -0.01230621337890625, 0.0012273788452148438, -0.04254150390625, -0.0150299072265625, -0.052215576171875, 0.02325439453125, 0.0557861328125, -0.006252288818359375, 0.006328582763671875, 0.004611968994140625, -0.02008056640625, -0.0006184577941894531, 0.0306854248046875, -0.0677490234375, -0.011138916015625, -0.005947113037109375, 0.07391357421875, 0.045562744140625, -0.07574462890625, 0.006465911865234375, 0.04876708984375, -0.0013170242309570312, 0.030731201171875, 0.025115966796875, 0.0270233154296875, 0.0165557861328125, -0.03778076171875, 0.007495880126953125, -0.03240966796875, 0.0026035308837890625, -0.0256195068359375, -0.026458740234375, -0.0230560302734375, -0.033203125, -0.006549835205078125, -0.00283050537109375, -0.00775909423828125, 0.0102081298828125, -0.004119873046875, -0.0133209228515625, 0.02252197265625, -0.01078033447265625, -0.0118408203125, 0.0022258758544921875, 0.0106048583984375, 0.00675201416015625, 0.01374053955078125, -0.01244354248046875, 0.022918701171875, 0.05535888671875, 0.01218414306640625, -0.0005450248718261719, -0.0391845703125, 0.01430511474609375, 0.0309600830078125, 0.00814056396484375, 0.035400390625, 0.010162353515625, -0.0157470703125, 0.0257415771484375, 0.01468658447265625, -0.00409698486328125, 0.005657196044921875, 0.0003764629364013672, 0.01214599609375, -0.022247314453125, 0.00397491455078125, 0.0184478759765625, -0.004314422607421875, -0.007099151611328125, 0.010650634765625, -0.0009112358093261719, 0.0303497314453125, -0.0028858184814453125, -0.0291290283203125, 0.00698089599609375, 0.0195465087890625, -0.0137176513671875, -0.002498626708984375, 0.031646728515625, 0.0150909423828125, 0.040435791015625, -0.0018215179443359375, 0.0034847259521484375, 0.00914764404296875, -0.0267181396484375, 0.01187896728515625, -0.0635986328125, 0.0268096923828125, 0.0014638900756835938, -0.00945281982421875, -0.004405975341796875, 0.044219970703125, -0.023834228515625, 0.07672119140625, -0.006008148193359375, -0.068115234375, 0.0169677734375, -0.0288238525390625, 0.039825439453125, 0.042999267578125, 0.0008749961853027344, 0.033599853515625, 0.0181427001953125, -0.00554656982421875, -0.0018444061279296875, 0.034912109375, -0.03509521484375, -0.040924072265625, -0.026031494140625, -0.0179901123046875, -0.0088653564453125, -0.0140380859375, 0.056121826171875, -0.04388427734375, 0.038177490234375, 0.004413604736328125, 0.01302337646484375, 0.03375244140625, 0.0302581787109375, 0.0273895263671875, -0.0085296630859375, -0.007549285888671875, -0.007495880126953125, -0.002910614013671875, -0.00803375244140625, -0.007720947265625, 0.0002491474151611328, 0.01229095458984375, 0.004970550537109375, 0.021697998046875, 0.00566864013671875, -0.00444793701171875, 0.018829345703125, 0.03009033203125, -0.0438232421875, -0.0711669921875, -0.0262451171875, 0.04632568359375, 0.060150146484375, -0.054901123046875, -0.00949859619140625, 0.004062652587890625, -0.00875091552734375, 0.00296783447265625, 0.0192413330078125, -0.04400634765625, 0.021484375, 0.019317626953125, -0.020843505859375, -0.029541015625, -0.03173828125, -0.024017333984375, 0.0088348388671875, -0.0134735107421875, -0.01154327392578125, 0.007049560546875, -0.0143280029296875, -0.0170745849609375, -0.022308349609375, 0.0210113525390625, -0.01226043701171875, 0.000629425048828125, 0.059600830078125, 0.0017080307006835938, -0.057525634765625, -0.0020542144775390625, -0.0145721435546875, 0.010009765625, 0.01861572265625, -0.00841522216796875, -0.0229644775390625, -0.0143890380859375, 0.0189361572265625, 0.01641845703125, -0.007720947265625, -0.04046630859375, -0.0243988037109375, -0.0028858184814453125, 0.0125579833984375, 0.00464630126953125, 0.0168609619140625, 0.0693359375, -0.0300750732421875, 0.04327392578125, 0.02740478515625, 0.0258636474609375, -0.0489501953125, -0.021514892578125, 0.0125885009765625, -0.038604736328125, -0.030059814453125, -0.0250244140625, -0.0192718505859375, 0.0268096923828125, 0.04888916015625, 0.004100799560546875, -0.01221466064453125, -0.0251312255859375, -0.0015964508056640625, -0.01453399658203125, 0.0826416015625, -0.0015201568603515625, -0.0228118896484375, 0.007091522216796875, -0.0203704833984375, 0.0008263587951660156, 0.00618743896484375, 0.0036411285400390625, 0.01125335693359375, -0.0080413818359375, 0.01114654541015625, 0.0159454345703125, -0.048095703125, 0.04833984375, 0.043426513671875, 0.026641845703125, 0.043670654296875, -0.0007510185241699219, 0.025543212890625, 0.01290130615234375, 0.0238189697265625, -0.03265380859375, -0.0143890380859375, 0.06256103515625, 0.02679443359375, -0.029876708984375, 0.053558349609375, -0.0289459228515625, 0.025421142578125, 0.07342529296875, 0.058013916015625, -0.1326904296875, 0.032501220703125, -0.004322052001953125, 0.0109100341796875, 0.05035400390625, 0.0087890625, -0.005321502685546875, 0.0172882080078125, 0.01474761962890625, 0.0013456344604492188, -0.0082244873046875, 0.00899505615234375, 0.0196380615234375, 0.00319671630859375, 0.031524658203125, 0.07073974609375, 0.00878143310546875, -0.032073974609375, -0.036407470703125, 0.017913818359375, 0.00905609130859375, -0.02484130859375, -0.006023406982421875, 0.032318115234375, -0.019927978515625, -0.049957275390625, 0.0269317626953125, -0.0203399658203125, 0.00015246868133544922, -0.01236724853515625, 0.032684326171875, 0.04962158203125, 0.050018310546875, 0.0037784576416015625, -0.0140380859375, 0.00151824951171875, 0.046661376953125, 0.03619384765625, -0.0186767578125, -0.0220489501953125, 0.001312255859375, -0.0311737060546875, -0.0021381378173828125, -0.01458740234375, 0.0028228759765625, -0.02862548828125, -0.0511474609375, 0.10699462890625, 0.0107269287109375, -0.04254150390625, -0.00423431396484375, -0.003215789794921875, -0.00417327880859375, -0.041717529296875, 0.00833892822265625, -0.055877685546875, -0.0140838623046875, -0.0217742919921875, -0.014495849609375, 0.006381988525390625, -0.0595703125, -0.06591796875, 0.08087158203125, -0.0191802978515625, 0.03106689453125, 0.01320648193359375, 0.031341552734375, -0.0059051513671875, 0.01560211181640625, -0.01137542724609375, 0.048675537109375, 0.0304718017578125, 0.00928497314453125, 0.02716064453125, 0.007381439208984375, 0.02288818359375, -0.000278472900390625, 0.039794921875, 0.00290679931640625, -0.00994110107421875, -0.0216827392578125, 0.038360595703125, 0.0293731689453125, -0.006488800048828125, 0.02105712890625, 0.0200347900390625, 0.039703369140625, 0.03887939453125, -0.045654296875, 0.0235443115234375, -0.0203857421875, -0.0088958740234375, 0.036651611328125, -0.017669677734375, -0.05047607421875, 0.01422882080078125, 0.019134521484375, -0.08251953125, 0.0231170654296875, 0.0185546875, 0.048370361328125, -0.0105438232421875, 0.0177459716796875, 0.006595611572265625, -0.0087890625, 0.03997802734375, -0.041656494140625, 0.04083251953125, -0.0031490325927734375, 0.0197296142578125, -0.004608154296875, 0.0116424560546875, 0.038360595703125, -0.023040771484375, 0.01629638671875, 0.033538818359375, -0.028228759765625, 0.050445556640625, 0.0091705322265625, 0.036956787109375, -0.046783447265625, -0.0182647705078125, 0.032989501953125, 0.062103271484375, -0.03314208984375, -0.055908203125, 0.0165863037109375, 0.0222320556640625, 0.031494140625, 0.0189208984375, 0.0634765625, -0.047760009765625, 0.019989013671875, 0.015869140625, -0.0311431884765625, -0.01080322265625, 0.01232147216796875, -0.0023365020751953125, 0.01313018798828125, 0.0333251953125, -0.01092529296875, -0.01352691650390625, 0.03131103515625, 0.003894805908203125, 0.022247314453125, -0.0173187255859375, 0.049652099609375, -0.033538818359375, 0.01013946533203125, -0.0243988037109375, 0.053466796875, -0.00391387939453125, 0.0283355712890625, -0.041717529296875, -0.0240020751953125, -0.01457977294921875, 0.0278167724609375, 0.017486572265625, -0.01074981689453125, 0.0305938720703125, 0.03338623046875, -0.029998779296875, -0.026092529296875, 0.050506591796875, -0.006061553955078125, -0.0054473876953125, -0.026885986328125, -0.00958251953125, 0.0223388671875, -0.01070404052734375, -0.005527496337890625, -0.0236663818359375, 0.043426513671875, -0.040374755859375, 0.0255584716796875, -0.01145172119140625, -0.02728271484375, 0.0202789306640625, -0.078125, 0.0440673828125, -0.034820556640625, -0.1168212890625, -0.0210723876953125, -0.040618896484375, -0.061767578125, 0.06451416015625, 0.05731201171875, -0.0227203369140625, 0.0020008087158203125, 0.056610107421875, 0.004322052001953125, -0.0014667510986328125, -0.0153961181640625, 0.0234832763671875, -0.023101806640625, 0.028656005859375, 0.0197906494140625, -0.11474609375, -0.052154541015625, -0.0452880859375, 0.01055908203125, 0.00872802734375, 0.0849609375, 0.009521484375, 0.008209228515625, -0.024322509765625, 0.017578125, -0.0174560546875, -0.0279541015625, 0.041168212890625, 0.00275421142578125, -0.027191162109375, -0.016357421875, -0.036773681640625, 0.09503173828125, -0.02691650390625, -0.0009446144104003906, 0.073486328125, -0.0191192626953125, -0.020172119140625, -0.01171875, 0.036773681640625, -0.002227783203125, -0.060546875, -0.005825042724609375, 0.0491943359375, -0.0034084320068359375, 0.04693603515625, -0.03167724609375, 0.0290679931640625, -0.031890869140625, -0.050537109375, 0.0135650634765625, -0.06341552734375, 0.005672454833984375, 0.027069091796875, 0.016571044921875, 0.006011962890625, -0.007610321044921875, -0.01140594482421875, 0.0137481689453125, 0.002681732177734375, -0.0106353759765625, 0.020111083984375, 0.0019931793212890625, 0.0275115966796875, 0.0450439453125, 0.0609130859375, 0.01419830322265625, 0.0182647705078125, -0.0015687942504882812, -0.0149688720703125, 0.03369140625, -0.0214385986328125, -0.048614501953125, -0.07244873046875, -0.00798797607421875, 0.007686614990234375, -0.02978515625, -0.055999755859375, -0.05194091796875, 0.007289886474609375, 0.0032596588134765625, -0.0265045166015625, -0.018768310546875, -0.026580810546875, -0.0233001708984375, 0.08868408203125, -0.050201416015625, 0.018096923828125, 0.001346588134765625, 0.03271484375, -0.028564453125, 0.032623291015625, -0.0261383056640625, -0.0233154296875, -0.005870819091796875, -0.0114288330078125, 0.0235748291015625, -0.0105438232421875, 0.0009446144104003906, -0.015899658203125, -0.00243377685546875, 0.034210205078125, -0.01479339599609375, -0.0101776123046875, -0.0031890869140625, 0.004520416259765625, -0.0162353515625, -0.0253753662109375, 0.01434326171875, -0.019989013671875, -0.016082763671875, -0.042724609375, 0.021759033203125, 0.01226806640625, -0.051605224609375, -0.09686279296875, 0.0655517578125, -0.020965576171875, -0.03131103515625, -0.02783203125, 0.03692626953125, 0.01239013671875, -0.0078887939453125, -0.01678466796875, 0.000560760498046875, -0.005764007568359375, 0.01409912109375, 0.0303192138671875, -0.0013408660888671875, 0.030548095703125, 0.039031982421875, -0.0220947265625, 0.046539306640625, 0.04052734375, 0.0025882720947265625, 0.01378631591796875, -0.0005030632019042969, 0.01548004150390625, 0.0347900390625, -0.03814697265625, 0.011627197265625, -0.0161590576171875, -0.0164947509765625, 0.0163726806640625, -0.053192138671875, 0.03564453125, -0.024688720703125, -0.01442718505859375, -0.0308990478515625, -0.02386474609375, 0.01708984375, -0.0272674560546875, -0.027740478515625, -0.0215606689453125, -0.020843505859375, 0.019012451171875, -0.0670166015625, -0.01519012451171875, 0.0003833770751953125, -0.0033111572265625, -0.0272674560546875, 0.006214141845703125, -0.0423583984375, -0.019683837890625, -0.0036029815673828125, 0.0130615234375, -0.0419921875, -0.0316162109375, 0.06280517578125, -0.026214599609375, -0.0110321044921875, 0.0096282958984375, 0.0288238525390625, 0.0142669677734375, 0.01107025146484375, 0.0211029052734375, 0.022125244140625, -0.01727294921875, -0.0033283233642578125, 0.0243682861328125, 0.008941650390625, -0.006977081298828125, -0.0310211181640625, -0.0322265625, 0.0347900390625, 0.01291656494140625, 0.0562744140625, -0.017364501953125, 0.01593017578125, 0.0380859375, 0.0240325927734375, 0.00446319580078125, -0.035369873046875, -0.03094482421875, 0.0408935546875, 0.0007352828979492188, -0.030975341796875, 0.0108184814453125, -0.0205841064453125, 0.010284423828125, -0.038330078125, 0.0205078125, -0.016754150390625, 0.0138092041015625, -0.019805908203125, -0.00980377197265625, 0.019805908203125 ]
e22bfa7d8dd6d491254e25d38f7cee79801c1fff
Wordpress Stackexchange Q: How to get comments by post ID? I have this custom post query to list all the posts within a specific category. For example I have this: $args = array('cat' => 'home','post_type' => 'post')); $post_obj = new WP_Query($args); while($post_obj->have_posts() ) : $post_obj->the_post(); // do stuff here endwhile; So for this page I would like to show the list of posts but also the accompanying comments. I am only showing maximum 2 comments for each post. Is there a built in function to do this? A: You can use get_comments. Function Reference/get comments $args = array('cat' => 'home','post_type' => 'post')); $post_obj = new WP_Query($args); while($post_obj->have_posts() ) : $post_obj->the_post(); //display comments $comments = get_comments(array( 'post_id' => $post->ID, 'number' => '2' )); foreach($comments as $comment) { //format comments } endwhile;
Q: How to get comments by post ID? I have this custom post query to list all the posts within a specific category. For example I have this: $args = array('cat' => 'home','post_type' => 'post')); $post_obj = new WP_Query($args); while($post_obj->have_posts() ) : $post_obj->the_post(); // do stuff here endwhile; So for this page I would like to show the list of posts but also the accompanying comments. I am only showing maximum 2 comments for each post. Is there a built in function to do this? A: You can use get_comments. Function Reference/get comments $args = array('cat' => 'home','post_type' => 'post')); $post_obj = new WP_Query($args); while($post_obj->have_posts() ) : $post_obj->the_post(); //display comments $comments = get_comments(array( 'post_id' => $post->ID, 'number' => '2' )); foreach($comments as $comment) { //format comments } endwhile;
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:416041", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38753" }
[ 0.0506591796875, -0.010101318359375, 0.0203857421875, -0.0206298828125, 0.01171112060546875, -0.027313232421875, 0.04205322265625, -0.026153564453125, -0.049072265625, 0.031341552734375, -0.0699462890625, 0.0104827880859375, -0.043853759765625, 0.0023746490478515625, -0.00539398193359375, -0.09112548828125, 0.046142578125, 0.00405120849609375, 0.038116455078125, -0.0099639892578125, 0.0340576171875, 0.005069732666015625, 0.0303802490234375, 0.10626220703125, 0.04437255859375, -0.02593994140625, 0.09515380859375, -0.01160430908203125, 0.03033447265625, -0.020538330078125, 0.0379638671875, -0.033294677734375, 0.0179595947265625, 0.00849151611328125, 0.005443572998046875, 0.0009889602661132812, 0.01364898681640625, -0.00931549072265625, 0.018951416015625, 0.035736083984375, 0.025299072265625, -0.0195159912109375, 0.00040984153747558594, 0.018524169921875, -0.0226898193359375, 0.0016946792602539062, -0.009490966796875, -0.0276641845703125, 0.0230560302734375, -0.0198211669921875, 0.018829345703125, 0.0301055908203125, 0.04498291015625, -0.034912109375, -0.031005859375, 0.005542755126953125, -0.00933074951171875, -0.0157318115234375, 0.049530029296875, -0.041046142578125, -0.038665771484375, -0.0394287109375, 0.05438232421875, -0.005279541015625, -0.02099609375, 0.0223846435546875, 0.0557861328125, 0.0022792816162109375, -0.00534820556640625, -0.05877685546875, -0.01543426513671875, 0.003238677978515625, -0.0023860931396484375, -0.0299530029296875, 0.00890350341796875, -0.028656005859375, -0.01383209228515625, -0.044830322265625, 0.00029778480529785156, 0.0244903564453125, -0.0021343231201171875, 0.020904541015625, -0.07098388671875, 0.0149078369140625, -0.007965087890625, 0.0244140625, -0.023345947265625, -0.035888671875, -0.0013456344604492188, -0.0254669189453125, -0.0052947998046875, -0.057037353515625, -0.0191802978515625, 0.03106689453125, 0.006305694580078125, -0.03472900390625, -0.0081634521484375, 0.0285491943359375, -0.01971435546875, 0.00750732421875, -0.0181427001953125, -0.0191802978515625, 0.0079803466796875, -0.023529052734375, 0.01136016845703125, 0.0113677978515625, 0.01065826416015625, 0.003910064697265625, 0.037872314453125, 0.0379638671875, 0.0096588134765625, 0.03485107421875, -0.00955963134765625, -0.0228729248046875, -0.002742767333984375, 0.0166473388671875, -0.03216552734375, 0.0021953582763671875, -0.006656646728515625, -0.0137481689453125, 0.01479339599609375, 0.0262298583984375, 0.00946807861328125, -0.0225372314453125, 0.0091400146484375, -0.0037326812744140625, -0.0214996337890625, -0.0263824462890625, 0.00194549560546875, 0.0200653076171875, -0.0297088623046875, -0.0004940032958984375, 0.062347412109375, 0.036376953125, 0.00971221923828125, -0.0166473388671875, 0.0017261505126953125, -0.0157012939453125, 0.009765625, 0.0036106109619140625, 0.034576416015625, -0.021331787109375, -0.00672149658203125, 0.012786865234375, -0.01064300537109375, 0.0211639404296875, 0.01053619384765625, 0.0023174285888671875, -0.00859832763671875, -0.0294647216796875, -0.0174560546875, -0.010345458984375, 0.038177490234375, -0.007724761962890625, 0.002063751220703125, -0.040679931640625, 0.0208587646484375, -0.043792724609375, 0.0018100738525390625, -0.050445556640625, 0.0024738311767578125, 0.01125335693359375, 0.00473785400390625, -0.03338623046875, -0.057769775390625, -0.01377105712890625, 0.00022423267364501953, -0.0189361572265625, 0.0190582275390625, 0.04052734375, -0.01351165771484375, -0.0261077880859375, 0.03338623046875, 0.0010080337524414062, -0.0168304443359375, 0.01336669921875, -0.01873779296875, -0.021240234375, 0.019866943359375, 0.0161895751953125, -0.01143646240234375, -0.034820556640625, -0.03009033203125, 0.0249481201171875, -0.0202484130859375, 0.0330810546875, 0.038482666015625, 0.072509765625, -0.033966064453125, 0.031402587890625, 0.02423095703125, 0.02587890625, -0.0223388671875, 0.0302886962890625, -0.02984619140625, -0.03326416015625, -0.001911163330078125, 0.0017805099487304688, -0.0197296142578125, 0.0218963623046875, 0.0198974609375, -0.0286865234375, 0.004878997802734375, 0.0296173095703125, -0.07891845703125, 0.01129913330078125, -0.030853271484375, 0.026092529296875, 0.0277557373046875, 0.0271759033203125, 0.0107421875, -0.005401611328125, -0.03399658203125, 0.0063629150390625, -0.040191650390625, 0.01131439208984375, -0.0247650146484375, 0.009368896484375, -0.019622802734375, -0.00289154052734375, -0.031829833984375, -0.031890869140625, -0.0297088623046875, 0.03692626953125, 0.07330322265625, -0.0269317626953125, 0.006862640380859375, -0.0277557373046875, 0.08074951171875, 0.0171661376953125, -0.048370361328125, -0.01137542724609375, 0.041534423828125, 0.039093017578125, -0.0009140968322753906, 0.0118255615234375, 0.0293121337890625, -0.06390380859375, 0.005008697509765625, 0.03643798828125, 0.0280914306640625, -0.02313232421875, 0.0164337158203125, 0.033905029296875, 0.043365478515625, 0.00644683837890625, 0.034271240234375, -0.0181884765625, 0.01410675048828125, 0.0418701171875, -0.01404571533203125, 0.01256561279296875, 0.033233642578125, -0.006103515625, 0.0123748779296875, 0.03662109375, -0.01380157470703125, 0.020294189453125, -0.0253753662109375, 0.00518035888671875, -0.005035400390625, -0.06109619140625, -0.00801849365234375, -0.0293121337890625, -0.0023975372314453125, 0.003459930419921875, 0.01045989990234375, 0.0033130645751953125, -0.01555633544921875, -0.0140380859375, 0.013275146484375, -0.004657745361328125, 0.002552032470703125, 0.0253753662109375, -0.032623291015625, 0.00469970703125, -0.030181884765625, 0.008514404296875, 0.0204925537109375, -0.001308441162109375, 0.01467132568359375, 0.060302734375, 0.015838623046875, -0.01190948486328125, -0.006992340087890625, -0.041778564453125, -0.00811004638671875, 0.010223388671875, -0.047607421875, -0.01763916015625, 0.0017194747924804688, 0.082763671875, 0.00945281982421875, 0.0002052783966064453, 0.000347137451171875, 0.029327392578125, 0.03509521484375, -0.0631103515625, 0.056304931640625, -0.049346923828125, 0.04400634765625, 0.06884765625, -0.0177764892578125, 0.0253143310546875, 0.00768280029296875, 0.0130462646484375, 0.039093017578125, -0.004940032958984375, -0.01213836669921875, -0.01336669921875, -0.0105133056640625, 0.017852783203125, 0.026947021484375, 0.09552001953125, -0.0172119140625, -0.044891357421875, 0.006542205810546875, 0.04522705078125, -0.04913330078125, -0.06512451171875, 0.045928955078125, -0.0208892822265625, -0.02069091796875, -0.0191497802734375, -0.014404296875, -0.0028400421142578125, -0.038482666015625, -0.013153076171875, 0.0037250518798828125, -0.03546142578125, -0.07781982421875, -0.046783447265625, -0.0928955078125, 0.03546142578125, 0.001873016357421875, 0.0408935546875, 0.01509857177734375, 0.06024169921875, 0.01259613037109375, -0.032135009765625, 0.0114593505859375, 0.0185394287109375, -0.03729248046875, -0.0231475830078125, 0.005214691162109375, -0.0036029815673828125, 0.00936126708984375, -0.003185272216796875, -0.0210723876953125, 0.0298919677734375, -0.0198822021484375, -0.013458251953125, -0.002201080322265625, 0.050689697265625, 0.03656005859375, 0.010955810546875, -0.004207611083984375, 0.09368896484375, 0.036651611328125, 0.01495361328125, -0.005950927734375, -0.005352020263671875, -0.039093017578125, -0.034423828125, 0.0364990234375, -0.003997802734375, -0.03033447265625, -0.00289154052734375, 0.0199432373046875, 0.00824737548828125, 0.0277099609375, -0.0278778076171875, 0.056854248046875, 0.0156707763671875, 0.03692626953125, -0.04833984375, 0.00771331787109375, -0.01271820068359375, -0.01171112060546875, -0.017852783203125, 0.0160064697265625, -0.0252838134765625, 0.006404876708984375, -0.061065673828125, -0.07171630859375, 0.05059814453125, 0.032745361328125, 0.0222930908203125, -0.0184326171875, -0.050689697265625, -0.004337310791015625, 0.09832763671875, -0.01149749755859375, -0.034454345703125, -0.0269927978515625, 0.0048980712890625, -0.0273284912109375, -0.01514434814453125, 0.003070831298828125, -0.0134124755859375, -0.031646728515625, 0.0180511474609375, -0.0203704833984375, -0.0230712890625, -0.038116455078125, 0.01885986328125, -0.0443115234375, -0.01702880859375, 0.037994384765625, -0.037078857421875, 0.0162200927734375, 0.02191162109375, -0.0027256011962890625, 0.0134124755859375, -0.01210784912109375, -0.0290985107421875, -0.040863037109375, -0.00543975830078125, -0.0012664794921875, 0.015106201171875, -0.0001976490020751953, 0.01445770263671875, 0.006099700927734375, 0.049072265625, 0.0015964508056640625, 0.0201873779296875, -0.018524169921875, 0.0082244873046875, -0.045989990234375, -0.01580810546875, -0.00716400146484375, -0.0235595703125, -0.01323699951171875, -0.00011992454528808594, 0.00852203369140625, 0.0784912109375, -0.034912109375, 0.0299835205078125, -0.031982421875, -0.00595855712890625, -0.0014238357543945312, -0.011566162109375, -0.016448974609375, 0.0239410400390625, -0.032379150390625, 0.017120361328125, -0.028961181640625, -0.0212249755859375, 0.0164794921875, -0.00455474853515625, -0.01078033447265625, 0.01203155517578125, 0.07855224609375, 0.0186920166015625, -0.01953125, -0.03582763671875, -0.01143646240234375, 0.0377197265625, 0.004993438720703125, 0.05767822265625, 0.027801513671875, -0.0280609130859375, 0.088623046875, 0.0140228271484375, 0.0015192031860351562, -0.0255584716796875, 0.03680419921875, -0.00848388671875, -0.032684326171875, 0.032562255859375, -0.0301971435546875, 0.02880859375, 0.02117919921875, -0.0198516845703125, -0.0169830322265625, -0.028289794921875, 0.054931640625, 0.0017366409301757812, 0.017120361328125, -0.0560302734375, -0.0390625, 0.00548553466796875, -0.034576416015625, 0.047027587890625, 0.035552978515625, -0.002536773681640625, 0.049102783203125, 0.05499267578125, 0.0020694732666015625, 0.0297088623046875, 0.024139404296875, 0.0036678314208984375, 0.018463134765625, 0.040771484375, -0.01239776611328125, 0.0013484954833984375, -0.002567291259765625, 0.0506591796875, 0.0091400146484375, -0.047637939453125, -0.0004470348358154297, -0.0169677734375, 0.01255035400390625, 0.01377105712890625, 0.0259246826171875, 0.02935791015625, 0.007293701171875, -0.0023670196533203125, -0.0156707763671875, -0.0278167724609375, 0.00449371337890625, -0.036651611328125, 0.01174163818359375, 0.0177764892578125, -0.01180267333984375, 0.0235748291015625, 0.0643310546875, 0.00685882568359375, 0.067138671875, -0.0413818359375, 0.027313232421875, 0.0207977294921875, 0.0300140380859375, 0.017425537109375, 0.0002770423889160156, 0.005878448486328125, -0.01395416259765625, -0.001110076904296875, -0.0225372314453125, -0.01317596435546875, 0.034149169921875, 0.022613525390625, 0.0259552001953125, 0.005107879638671875, -0.00595855712890625, -0.004459381103515625, -0.0196380615234375, 0.01293182373046875, 0.05010986328125, 0.0090484619140625, -0.0218505859375, -0.0340576171875, -0.0006814002990722656, 0.040771484375, -0.01425933837890625, 0.01044464111328125, -0.03076171875, -0.007244110107421875, -0.011962890625, -0.0189971923828125, 0.00492095947265625, 0.035858154296875, -0.03997802734375, -0.0220794677734375, -0.00201416015625, 0.0037593841552734375, -0.020599365234375, 0.00684356689453125, -0.033599853515625, 0.009002685546875, 0.024444580078125, 0.0447998046875, -0.00934600830078125, -0.06658935546875, 0.00084686279296875, -0.01210784912109375, 0.07867431640625, 0.02618408203125, -0.025787353515625, -0.0150909423828125, -0.036376953125, -0.005672454833984375, 0.01085662841796875, -0.056304931640625, -0.0208282470703125, -0.02056884765625, -0.002300262451171875, 0.0276947021484375, -0.00690460205078125, -0.005847930908203125, -0.043121337890625, 0.004367828369140625, -0.0014867782592773438, 0.04058837890625, -0.0186920166015625, 0.06280517578125, 0.004177093505859375, 0.0301513671875, 0.0050048828125, 0.047271728515625, 0.00560760498046875, -0.0200958251953125, 0.01253509521484375, -0.037078857421875, -0.0167694091796875, -0.002460479736328125, -0.0164947509765625, -0.01354217529296875, 0.0154266357421875, -0.01155853271484375, -0.0006852149963378906, -0.024658203125, -0.006557464599609375, -0.03729248046875, -0.003452301025390625, -0.02215576171875, 0.0198516845703125, -0.0215606689453125, -0.0068206787109375, -0.009490966796875, -0.031829833984375, -0.001224517822265625, -0.00495147705078125, -0.00295257568359375, -0.0033359527587890625, 0.0034332275390625, -0.01238250732421875, 0.0423583984375, 0.0882568359375, 0.0209503173828125, 0.04254150390625, 0.029510498046875, 0.021942138671875, -0.0037822723388671875, 0.03326416015625, -0.004486083984375, -0.0195465087890625, 0.0780029296875, 0.025299072265625, -0.0240478515625, 0.054168701171875, -0.036041259765625, 0.03057861328125, -0.0264892578125, 0.04327392578125, -0.014068603515625, 0.040679931640625, 0.0073089599609375, -0.0243988037109375, 0.0675048828125, 0.0099334716796875, 0.0034847259521484375, -0.031585693359375, 0.0208892822265625, 0.0079193115234375, -0.0229644775390625, -0.0023365020751953125, -0.023162841796875, 0.008026123046875, -0.029998779296875, 0.04595947265625, -0.0191802978515625, -0.059783935546875, 0.0028667449951171875, 0.033966064453125, -0.027374267578125, -0.043060302734375, -0.0173797607421875, 0.0194854736328125, -0.01169586181640625, -0.11541748046875, 0.022216796875, -0.0274658203125, 0.004016876220703125, 0.044219970703125, 0.008697509765625, -0.0004279613494873047, 0.03594970703125, 0.002307891845703125, 0.027313232421875, 0.002208709716796875, -0.0552978515625, -0.03271484375, 0.00020384788513183594, -0.00696563720703125, 0.04058837890625, 0.00380706787109375, 0.017059326171875, -0.017486572265625, -0.01025390625, 0.00383758544921875, -0.00019657611846923828, 0.05401611328125, -0.058319091796875, -0.0047607421875, 0.0217437744140625, 0.03289794921875, 0.0135345458984375, -0.010284423828125, 0.015045166015625, -0.0303192138671875, 0.0113525390625, -0.0031261444091796875, 0.002223968505859375, -0.0233001708984375, -0.034271240234375, -0.0672607421875, 0.0657958984375, 0.006069183349609375, 0.0291900634765625, -0.0006451606750488281, 0.00690460205078125, -0.01300811767578125, 0.007030487060546875, -0.045135498046875, 0.074462890625, -0.036895751953125, 0.0428466796875, -0.09649658203125, -0.0252685546875, -0.00024890899658203125, 0.06585693359375, 0.07720947265625, 0.013153076171875, -0.0226287841796875, -0.025543212890625, 0.017852783203125, 0.03558349609375, -0.005340576171875, 0.023162841796875, 0.03155517578125, 0.0242462158203125, 0.0784912109375, -0.027801513671875, 0.0506591796875, -0.019683837890625, 0.01393890380859375, 0.0081024169921875, 0.014892578125, 0.0079193115234375, -0.0079193115234375, 0.0211334228515625, -0.02191162109375, -0.004207611083984375, 0.012420654296875, -0.047027587890625, -0.0010976791381835938, 0.065673828125, 0.058929443359375, -0.080322265625, -0.016571044921875, -0.0543212890625, 0.060150146484375, -0.005096435546875, 0.0309295654296875, 0.059539794921875, 0.038330078125, 0.058319091796875, 0.00264739990234375, 0.0303802490234375, 0.0054779052734375, -0.0152130126953125, 0.06024169921875, 0.03759765625, 0.0286865234375, -0.0438232421875, -0.034271240234375, 0.0242919921875, 0.07403564453125, -0.046112060546875, -0.00688934326171875, 0.0263671875, 0.01306915283203125, 0.01446533203125, -0.01044464111328125, 0.05816650390625, 0.0258331298828125, 0.038055419921875, -0.01788330078125, -0.009429931640625, -0.0006785392761230469, 0.0219268798828125, 0.0012178421020507812, -0.01506805419921875, 0.005001068115234375, -0.01039886474609375, -0.0330810546875, 0.008880615234375, 0.00872039794921875, 0.00846099853515625, 0.0299835205078125, 0.03564453125, -0.00521087646484375, 0.00789642333984375, 0.048583984375, 0.008453369140625, 0.008636474609375, -0.05877685546875, 0.0279998779296875, -0.0435791015625, -0.02655029296875, 0.01081085205078125, 0.0361328125, -0.0193023681640625, -0.007572174072265625, -0.024810791015625, -0.0265960693359375, -0.0007348060607910156, 0.01108551025390625, -0.0221405029296875, -0.0228118896484375, -0.043365478515625, 0.010345458984375, 0.040618896484375, -0.0008177757263183594, 0.0382080078125, -0.0253448486328125, 0.05517578125, 0.0223236083984375, 0.0190582275390625, 0.012176513671875, -0.01030731201171875, 0.0107269287109375, 0.0213623046875, 0.005794525146484375, 0.027679443359375, -0.07373046875, -0.0113067626953125, -0.022125244140625, -0.044891357421875, 0.0308990478515625, 0.031768798828125, -0.031646728515625, 0.0285797119140625, -0.0172576904296875, -0.004978179931640625, 0.0160064697265625, -0.022369384765625, 0.0211181640625, 0.02081298828125, 0.0051422119140625, 0.00853729248046875, -0.05572509765625, -0.032989501953125, -0.027069091796875, 0.007740020751953125, 0.0345458984375, 0.0209197998046875, 0.03326416015625, 0.0227813720703125, -0.05438232421875, 0.0391845703125, -0.06549072265625, -0.050323486328125, 0.06097412109375, 0.0204925537109375, 0.0011510848999023438, -0.008331298828125, 0.037139892578125, 0.059295654296875, 0.027191162109375, -0.0166015625, 0.02789306640625, -0.03900146484375, -0.0038299560546875, -0.0238494873046875, -0.00531768798828125, -0.02996826171875, -0.0242919921875, -0.044219970703125, -0.0274658203125, 0.028656005859375, 0.020263671875, 0.032958984375, 0.03399658203125, -0.0032596588134765625, 0.015625, 0.0140838623046875, 0.003284454345703125, 0.02093505859375, 0.036346435546875, -0.048583984375, 0.026397705078125, 0.0010013580322265625, -0.02191162109375, 0.0252532958984375, 0.00004369020462036133, 0.0203094482421875, -0.01197052001953125, 0.042083740234375, -0.006771087646484375, 0.01302337646484375, 0.066162109375, -0.0185089111328125, 0.0235595703125, -0.0151519775390625, 0.004604339599609375, 0.0203704833984375, -0.0292510986328125, -0.042877197265625, -0.062347412109375, 0.0162200927734375, 0.0212249755859375, -0.0248565673828125, -0.01448822021484375, -0.042510986328125, -0.024017333984375, 0.0032444000244140625, 0.00334930419921875, -0.0262908935546875, 0.01910400390625, 0.0015010833740234375, -0.00025343894958496094, -0.03839111328125, 0.0008511543273925781, 0.0012998580932617188, -0.0297393798828125, -0.056365966796875, 0.00852203369140625, -0.052154541015625, -0.0038547515869140625, -0.01708984375, 0.06500244140625, 0.037139892578125, -0.057281494140625, -0.01904296875, 0.0982666015625, 0.06280517578125, 0.12255859375, 0.054779052734375, -0.0028820037841796875, 0.0272064208984375, 0.020416259765625, -0.05560302734375, -0.0631103515625, 0.026947021484375, -0.034942626953125, -0.00402069091796875, 0.003932952880859375, 0.029876708984375, 0.046966552734375, -0.01029205322265625, -0.05157470703125, 0.0816650390625, -0.03424072265625, -0.01047515869140625, -0.04730224609375, -0.0112152099609375, 0.006519317626953125, 0.01515960693359375, -0.00797271728515625, -0.0202789306640625, -0.033172607421875, 0.02996826171875, 0.00868988037109375, -0.0040740966796875, 0.024444580078125, 0.0035152435302734375, -0.049102783203125, 0.012451171875, 0.01015472412109375, -0.00707244873046875, -0.0104827880859375, -0.011810302734375, 0.0264434814453125, 0.04241943359375, -0.0163116455078125, -0.01824951171875, 0.00855255126953125, -0.0219573974609375, 0.005451202392578125, -0.002605438232421875, -0.02178955078125, 0.00531005859375, 0.005260467529296875, 0.050811767578125, 0.003780364990234375, -0.036529541015625, 0.0299072265625, -0.01476287841796875, -0.03271484375, -0.0196990966796875, 0.011474609375, -0.041961669921875, -0.0160064697265625, 0.0095062255859375, 0.003963470458984375, -0.021209716796875, -0.034942626953125, -0.0299224853515625, -0.0291748046875, -0.0445556640625, 0.00495147705078125, 0.01474761962890625, 0.02813720703125, -0.0027065277099609375, -0.02154541015625, 0.02679443359375, -0.04296875, 0.00611114501953125, 0.01233673095703125, -0.0311737060546875, -0.0229949951171875, -0.043487548828125, 0.035888671875, 0.03082275390625, 0.010528564453125, 0.00788116455078125, 0.01059722900390625, -0.020843505859375, -0.020355224609375, 0.005374908447265625, 0.0181427001953125, -0.0098114013671875, -0.01042938232421875, -0.019012451171875, -0.0013570785522460938, 0.031890869140625, 0.0030975341796875, 0.043731689453125, -0.01053619384765625, 0.060760498046875, -0.004474639892578125, -0.02996826171875, 0.0135498046875, -0.049530029296875, -0.0171661376953125, 0.02484130859375, -0.02276611328125, -0.03369140625, 0.02020263671875, 0.07501220703125, 0.00682830810546875, 0.0122222900390625 ]
70a8870b3a3c9c50e26f6c2c80c5f7c0059f274b
Wordpress Stackexchange Q: handling login/logout redirects I have a couple issues with the way Wordpress handles redirects on login and logout. Standard behaviour is: login: /wp-login.php (with no redirect_to url) -> /wp-admin.php logout: /wp-admin.php -> /wp-login.php What want is: login: /wp-login.php (with no redirect_to url) -> homepage logout: /wp-admin.php -> homepage Would prefer a coded solution please. It helps me to learn and understand how Wordpress works. Thank you A: This really does belong in a plugin, but you can just as easily drop it in your theme's functions.php function default_login_redirect( $redirect, $request_redirect ) { if ( $request_redirect === '' ) $redirect = home_url(); return $redirect; } add_filter( 'login_redirect', 'default_login_redirect', 10, 2 );
Q: handling login/logout redirects I have a couple issues with the way Wordpress handles redirects on login and logout. Standard behaviour is: login: /wp-login.php (with no redirect_to url) -> /wp-admin.php logout: /wp-admin.php -> /wp-login.php What want is: login: /wp-login.php (with no redirect_to url) -> homepage logout: /wp-admin.php -> homepage Would prefer a coded solution please. It helps me to learn and understand how Wordpress works. Thank you A: This really does belong in a plugin, but you can just as easily drop it in your theme's functions.php function default_login_redirect( $redirect, $request_redirect ) { if ( $request_redirect === '' ) $redirect = home_url(); return $redirect; } add_filter( 'login_redirect', 'default_login_redirect', 10, 2 );
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:416058", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38810" }
[ 0.07830810546875, 0.007740020751953125, 0.03765869140625, -0.02044677734375, 0.021728515625, -0.0276641845703125, 0.07708740234375, -0.032562255859375, -0.0199127197265625, 0.0182342529296875, 0.0318603515625, 0.006313323974609375, -0.043365478515625, -0.034088134765625, 0.0058746337890625, -0.018524169921875, 0.0218505859375, -0.00606536865234375, 0.05364990234375, 0.007476806640625, 0.003589630126953125, 0.0289306640625, 0.045623779296875, -0.0016584396362304688, -0.01279449462890625, -0.01491546630859375, 0.09661865234375, -0.056671142578125, 0.031005859375, -0.01087188720703125, 0.0067291259765625, -0.0248260498046875, 0.019012451171875, 0.0433349609375, -0.03814697265625, 0.0013942718505859375, -0.019866943359375, 0.033050537109375, 0.005657196044921875, 0.0104217529296875, 0.0231781005859375, -0.0125732421875, 0.0229644775390625, -0.004741668701171875, -0.021087646484375, 0.002254486083984375, 0.00827789306640625, -0.01142120361328125, -0.00618743896484375, 0.0162353515625, 0.00734710693359375, 0.01467132568359375, 0.024810791015625, -0.04473876953125, -0.0033111572265625, -0.004917144775390625, 0.02703857421875, -0.00499725341796875, 0.027313232421875, -0.0022640228271484375, -0.026824951171875, -0.0083465576171875, 0.01528167724609375, -0.028533935546875, -0.02227783203125, 0.00194549560546875, 0.0013675689697265625, 0.0218658447265625, -0.028167724609375, -0.040374755859375, -0.00469970703125, -0.00766754150390625, -0.0175018310546875, -0.0057525634765625, -0.00408172607421875, 0.006374359130859375, 0.0092620849609375, 0.016815185546875, 0.0118560791015625, 0.0241241455078125, -0.0129241943359375, -0.036834716796875, -0.00445556640625, -0.029266357421875, 0.01512908935546875, 0.004974365234375, -0.0168914794921875, -0.004871368408203125, -0.0298919677734375, -0.010223388671875, -0.032562255859375, -0.012908935546875, -0.01959228515625, -0.01465606689453125, -0.0227508544921875, -0.02508544921875, 0.01378631591796875, 0.00982666015625, 0.0250244140625, -0.0052337646484375, -0.0305023193359375, -0.022979736328125, -0.03485107421875, -0.002277374267578125, -0.0131378173828125, 0.06689453125, 0.0309600830078125, 0.007965087890625, -0.0242156982421875, 0.00046133995056152344, 0.01538848876953125, -0.031585693359375, -0.0161590576171875, -0.049102783203125, 0.0147247314453125, 0.018890380859375, -0.025421142578125, 0.03106689453125, 0.0009503364562988281, 0.01776123046875, -0.0362548828125, -0.0256195068359375, 0.037933349609375, -0.031341552734375, -0.00911712646484375, -0.04931640625, -0.0253143310546875, -0.01275634765625, -0.01064300537109375, 0.0185089111328125, -0.03558349609375, 0.0242767333984375, 0.04217529296875, -0.0296783447265625, -0.02862548828125, -0.0201568603515625, 0.07684326171875, -0.02166748046875, -0.0163116455078125, 0.028228759765625, 0.011627197265625, -0.0230560302734375, -0.026397705078125, -0.009765625, 0.036376953125, 0.040069580078125, 0.0192718505859375, 0.007152557373046875, -0.0136871337890625, -0.0462646484375, 0.022247314453125, -0.0184173583984375, 0.00742340087890625, -0.014984130859375, 0.0313720703125, -0.01318359375, -0.00525665283203125, 0.00444793701171875, -0.004489898681640625, 0.02227783203125, 0.010406494140625, 0.007274627685546875, 0.0011434555053710938, -0.0328369140625, -0.053253173828125, -0.01611328125, -0.04058837890625, -0.008209228515625, 0.034515380859375, 0.039215087890625, 0.0677490234375, -0.032501220703125, -0.01001739501953125, 0.043548583984375, 0.0218048095703125, 0.001728057861328125, -0.0269622802734375, 0.028411865234375, 0.00850677490234375, 0.034423828125, 0.017547607421875, -0.026031494140625, 0.00579833984375, 0.03375244140625, -0.033447265625, 0.042999267578125, -0.01296234130859375, 0.01294708251953125, 0.01131439208984375, -0.00693511962890625, 0.00762939453125, 0.0271759033203125, -0.053741455078125, 0.020904541015625, -0.0305328369140625, -0.0228424072265625, 0.03228759765625, 0.0009741783142089844, -0.002246856689453125, 0.00988006591796875, 0.0345458984375, 0.019683837890625, -0.028594970703125, -0.004665374755859375, -0.032012939453125, -0.00565338134765625, -0.004909515380859375, 0.0175628662109375, 0.020660400390625, 0.042083740234375, -0.0018606185913085938, 0.0126953125, -0.0161285400390625, -0.015838623046875, -0.024505615234375, 0.010406494140625, -0.043212890625, 0.036529541015625, -0.0158538818359375, 0.028076171875, -0.0170440673828125, -0.0477294921875, -0.0200347900390625, -0.01904296875, 0.0308837890625, -0.033599853515625, -0.005222320556640625, -0.02947998046875, 0.0269622802734375, -0.01296234130859375, 0.00003439188003540039, 0.051239013671875, 0.017486572265625, 0.006511688232421875, -0.05621337890625, 0.0037174224853515625, -0.0210418701171875, -0.0117034912109375, -0.006732940673828125, 0.03424072265625, 0.0211639404296875, 0.019927978515625, -0.028564453125, 0.0280914306640625, -0.00452423095703125, -0.068359375, -0.0025119781494140625, 0.0174560546875, 0.0298614501953125, 0.0205841064453125, -0.02996826171875, -0.0416259765625, 0.0418701171875, -0.062255859375, -0.012054443359375, 0.03985595703125, -0.026275634765625, -0.051544189453125, -0.0101318359375, -0.0212860107421875, 0.031097412109375, -0.0816650390625, -0.06622314453125, -0.001983642578125, -0.027740478515625, -0.039764404296875, -0.0289459228515625, -0.038726806640625, -0.00875091552734375, -0.0308074951171875, 0.03240966796875, -0.03448486328125, -0.012359619140625, 0.0038852691650390625, 0.0657958984375, -0.045806884765625, -0.033905029296875, -0.0003943443298339844, 0.0166015625, -0.00646209716796875, -0.01812744140625, 0.0308990478515625, -0.0367431640625, -0.031768798828125, -0.00362396240234375, -0.005146026611328125, 0.0012331008911132812, -0.00325775146484375, 0.0616455078125, 0.01837158203125, 0.04132080078125, -0.01019287109375, -0.0168304443359375, 0.040374755859375, 0.023101806640625, -0.05865478515625, 0.004268646240234375, -0.05218505859375, 0.051483154296875, -0.037811279296875, 0.0297393798828125, 0.06689453125, -0.019927978515625, 0.036163330078125, -0.006710052490234375, 0.03753662109375, 0.00736236572265625, 0.006008148193359375, -0.0180816650390625, -0.0137176513671875, -0.0277252197265625, -0.0176239013671875, 0.021392822265625, 0.055694580078125, -0.0124664306640625, -0.05645751953125, -0.006328582763671875, 0.0144195556640625, -0.045989990234375, -0.046356201171875, -0.05859375, -0.08172607421875, 0.049713134765625, -0.00628662109375, -0.0132598876953125, 0.00443267822265625, 0.038787841796875, 0.037139892578125, 0.0213775634765625, -0.00885772705078125, -0.071533203125, -0.037139892578125, -0.0631103515625, -0.0123443603515625, -0.0196533203125, 0.0047760009765625, -0.00009375810623168945, 0.042388916015625, 0.0058746337890625, -0.037933349609375, 0.00933837890625, 0.03173828125, -0.0088348388671875, -0.005710601806640625, -0.039276123046875, -0.0233001708984375, 0.0168914794921875, -0.0094146728515625, 0.04388427734375, -0.005550384521484375, 0.02691650390625, 0.0020885467529296875, -0.007965087890625, -0.07427978515625, -0.0036525726318359375, -0.0224609375, -0.0305633544921875, -0.044158935546875, -0.00376129150390625, -0.061859130859375, 0.0227203369140625, -0.022491455078125, -0.042510986328125, 0.018402099609375, 0.055511474609375, -0.0239410400390625, 0.006793975830078125, -0.050537109375, 0.0008130073547363281, 0.00959014892578125, -0.017578125, -0.0269927978515625, 0.03314208984375, -0.001251220703125, 0.0200347900390625, -0.007175445556640625, 0.0272979736328125, -0.0242919921875, 0.007770538330078125, 0.0002646446228027344, -0.0169525146484375, -0.031585693359375, -0.00493621826171875, -0.0679931640625, -0.07708740234375, 0.04925537109375, -0.0233612060546875, -0.0234222412109375, -0.0254364013671875, -0.00566864013671875, -0.00420379638671875, 0.07891845703125, -0.01061248779296875, 0.0082550048828125, 0.002635955810546875, 0.0151824951171875, -0.0283355712890625, -0.04827880859375, -0.056121826171875, -0.00652313232421875, -0.0753173828125, 0.029022216796875, 0.0045166015625, -0.01108551025390625, -0.0021457672119140625, -0.0202484130859375, -0.0269775390625, -0.054656982421875, 0.015045166015625, 0.0178375244140625, 0.043487548828125, 0.01351165771484375, 0.0203857421875, -0.00042366981506347656, 0.038299560546875, -0.039825439453125, -0.025604248046875, -0.02484130859375, -0.002170562744140625, 0.0650634765625, 0.0556640625, -0.058563232421875, 0.005809783935546875, 0.03302001953125, -0.00757598876953125, 0.00270843505859375, -0.01995849609375, -0.013763427734375, -0.002521514892578125, 0.0133514404296875, -0.02117919921875, -0.00007861852645874023, 0.01451873779296875, -0.0028476715087890625, -0.036834716796875, -0.022064208984375, -0.036163330078125, -0.00499725341796875, 0.02569580078125, -0.04266357421875, -0.033966064453125, -0.025665283203125, -0.01142120361328125, 0.001201629638671875, 0.007625579833984375, -0.01329803466796875, -0.0172271728515625, -0.051025390625, 0.0256195068359375, 0.0211029052734375, -0.043182373046875, 0.005481719970703125, 0.06878662109375, 0.037078857421875, -0.01364898681640625, -0.01006317138671875, 0.0160675048828125, -0.0008497238159179688, -0.004261016845703125, 0.0288238525390625, -0.0396728515625, -0.005130767822265625, 0.092041015625, -0.04473876953125, 0.004184722900390625, -0.024932861328125, 0.058197021484375, -0.0256195068359375, -0.034423828125, 0.0306854248046875, -0.05462646484375, 0.005855560302734375, 0.054107666015625, 0.0109100341796875, -0.0347900390625, 0.0310211181640625, 0.0277862548828125, -0.038421630859375, 0.0035762786865234375, -0.016937255859375, -0.0123443603515625, 0.00968170166015625, 0.007144927978515625, 0.0240325927734375, 0.049346923828125, -0.0183868408203125, 0.01605224609375, 0.01369476318359375, -0.00916290283203125, -0.013580322265625, -0.034271240234375, -0.0279998779296875, 0.018341064453125, -0.029815673828125, -0.033416748046875, 0.026947021484375, -0.01873779296875, 0.12103271484375, 0.024383544921875, -0.04925537109375, 0.0142364501953125, -0.0208892822265625, -0.01033782958984375, 0.0126190185546875, -0.0154571533203125, 0.0382080078125, 0.01342010498046875, -0.045196533203125, -0.0174560546875, 0.000038504600524902344, -0.0362548828125, -0.06298828125, -0.0026226043701171875, -0.036041259765625, 0.018310546875, 0.034881591796875, 0.080322265625, -0.0213470458984375, 0.08306884765625, -0.020111083984375, 0.00004845857620239258, 0.01399993896484375, 0.04534912109375, 0.021697998046875, -0.006496429443359375, -0.018218994140625, 0.040252685546875, 0.00785064697265625, -0.0292816162109375, -0.043609619140625, 0.0242767333984375, 0.035369873046875, -0.0116424560546875, 0.0177001953125, 0.01690673828125, 0.00972747802734375, -0.00005555152893066406, 0.060638427734375, 0.006610870361328125, -0.0953369140625, -0.005840301513671875, 0.00959014892578125, 0.02294921875, -0.06231689453125, -0.02935791015625, 0.0079498291015625, -0.051025390625, 0.004337310791015625, 0.00018644332885742188, -0.0308990478515625, 0.00940704345703125, -0.0125732421875, -0.0302581787109375, -0.033172607421875, -0.0010271072387695312, -0.051116943359375, 0.01959228515625, -0.0295562744140625, -0.0239105224609375, 0.024749755859375, -0.03173828125, 0.0254058837890625, -0.00342559814453125, -0.0011816024780273438, 0.03564453125, -0.005931854248046875, 0.0975341796875, 0.04339599609375, -0.06744384765625, 0.0025653839111328125, -0.0450439453125, -0.0118865966796875, -0.021820068359375, -0.00799560546875, -0.038726806640625, -0.009490966796875, 0.04351806640625, 0.0011930465698242188, 0.03271484375, 0.002117156982421875, -0.039276123046875, 0.0150909423828125, 0.0272979736328125, 0.01274871826171875, -0.00560760498046875, 0.03863525390625, -0.01922607421875, 0.0255126953125, -0.004215240478515625, 0.030059814453125, 0.007518768310546875, -0.01934814453125, 0.035614013671875, 0.0017328262329101562, -0.0343017578125, -0.05810546875, 0.00583648681640625, -0.008331298828125, 0.0704345703125, -0.01355743408203125, -0.035980224609375, -0.00963592529296875, -0.0106201171875, -0.0168609619140625, 0.042388916015625, 0.04925537109375, -0.0041351318359375, -0.016998291015625, 0.0299835205078125, 0.0372314453125, -0.009796142578125, -0.0235443115234375, -0.00408935546875, 0.0147857666015625, 0.01123046875, -0.0200653076171875, -0.051116943359375, 0.029632568359375, 0.07012939453125, 0.0263519287109375, 0.039031982421875, 0.007572174072265625, 0.022735595703125, 0.03240966796875, -0.01476287841796875, 0.0006852149963378906, 0.0079498291015625, 0.04779052734375, -0.0123748779296875, -0.04693603515625, 0.0201568603515625, -0.037384033203125, 0.0239715576171875, 0.07818603515625, 0.08135986328125, -0.13232421875, 0.037628173828125, 0.02728271484375, 0.005779266357421875, 0.042083740234375, 0.002140045166015625, 0.01352691650390625, 0.036041259765625, -0.013580322265625, -0.007122039794921875, -0.0301666259765625, -0.004299163818359375, 0.031494140625, -0.0035953521728515625, -0.01459503173828125, 0.006160736083984375, -0.0018415451049804688, -0.08270263671875, 0.020660400390625, 0.04498291015625, -0.0328369140625, -0.00019598007202148438, -0.01873779296875, 0.037506103515625, -0.04168701171875, -0.06964111328125, 0.00882720947265625, -0.028839111328125, -0.0092620849609375, 0.034210205078125, -0.0193023681640625, 0.036712646484375, 0.057098388671875, -0.01513671875, 0.0290679931640625, 0.0204010009765625, -0.01483154296875, 0.031646728515625, -0.004241943359375, 0.0125885009765625, -0.0153045654296875, -0.053466796875, 0.00955963134765625, -0.042266845703125, -0.00687408447265625, -0.01306915283203125, -0.062255859375, 0.070068359375, -0.030181884765625, -0.0023040771484375, -0.0009007453918457031, 0.006099700927734375, 0.00984954833984375, -0.0160064697265625, 0.034515380859375, -0.04736328125, -0.0268096923828125, 0.0025196075439453125, -0.03314208984375, 0.0186767578125, -0.0092620849609375, -0.05938720703125, 0.056182861328125, -0.0047454833984375, 0.02630615234375, 0.01025390625, 0.008514404296875, -0.01038360595703125, 0.01708984375, -0.04071044921875, 0.051025390625, 0.0063934326171875, 0.0249176025390625, -0.0017843246459960938, 0.01067352294921875, 0.0120086669921875, -0.00820159912109375, 0.042083740234375, 0.0191192626953125, -0.055877685546875, 0.01061248779296875, 0.0399169921875, 0.0242462158203125, 0.0090179443359375, 0.0633544921875, -0.006587982177734375, 0.01136016845703125, 0.016845703125, -0.0406494140625, 0.005397796630859375, -0.00608062744140625, -0.01373291015625, 0.00274658203125, 0.0009946823120117188, -0.0361328125, -0.0134124755859375, 0.028594970703125, -0.086181640625, 0.009613037109375, 0.0294952392578125, 0.03350830078125, -0.0005521774291992188, 0.020416259765625, 0.0213165283203125, -0.057861328125, 0.022857666015625, -0.044097900390625, 0.048797607421875, -0.004184722900390625, -0.002468109130859375, 0.05804443359375, 0.0250396728515625, -0.0004475116729736328, -0.047882080078125, 0.0074615478515625, -0.008514404296875, -0.04205322265625, 0.0701904296875, 0.01129913330078125, 0.0270538330078125, -0.0418701171875, 0.002391815185546875, -0.00688934326171875, 0.070556640625, -0.043487548828125, -0.010467529296875, 0.0010519027709960938, 0.0059051513671875, 0.0447998046875, -0.006107330322265625, 0.07568359375, -0.059234619140625, -0.05078125, 0.00792694091796875, -0.00655364990234375, 0.04119873046875, -0.0140838623046875, 0.01506805419921875, 0.0201873779296875, -0.01165008544921875, 0.0296783447265625, 0.006107330322265625, -0.0027980804443359375, 0.004116058349609375, 0.0174407958984375, -0.00817108154296875, 0.00534820556640625, -0.012451171875, 0.016143798828125, -0.0034198760986328125, 0.024261474609375, -0.016082763671875, 0.0028438568115234375, -0.0325927734375, -0.052001953125, 0.0178375244140625, 0.04486083984375, 0.0016756057739257812, -0.0229644775390625, 0.0075225830078125, -0.002166748046875, -0.04046630859375, -0.018646240234375, 0.0126190185546875, -0.034454345703125, -0.0147705078125, -0.01128387451171875, -0.0109710693359375, 0.01435089111328125, -0.0200347900390625, -0.01096343994140625, 0.0309906005859375, 0.014129638671875, -0.0313720703125, 0.0322265625, 0.006839752197265625, -0.05194091796875, 0.0021800994873046875, -0.01113128662109375, 0.0872802734375, -0.0021343231201171875, -0.022735595703125, -0.03509521484375, 0.01245880126953125, 0.0123291015625, 0.0211029052734375, 0.044586181640625, 0.026458740234375, -0.0200347900390625, 0.00026035308837890625, 0.00506591796875, -0.0007781982421875, -0.03021240234375, 0.018402099609375, -0.058990478515625, -0.000004589557647705078, -0.018310546875, -0.060821533203125, -0.01483917236328125, -0.034393310546875, 0.01282501220703125, 0.041107177734375, 0.05841064453125, -0.005558013916015625, 0.0257415771484375, -0.01169586181640625, 0.0145721435546875, -0.01512908935546875, 0.01192474365234375, 0.00774383544921875, -0.0019435882568359375, -0.01800537109375, -0.013824462890625, -0.06524658203125, 0.057464599609375, -0.00812530517578125, 0.020355224609375, 0.061492919921875, -0.006725311279296875, 0.005615234375, -0.005954742431640625, 0.004638671875, -0.031494140625, -0.0830078125, -0.041259765625, 0.0364990234375, -0.011993408203125, 0.042816162109375, -0.00032210350036621094, 0.04876708984375, -0.045135498046875, -0.0188751220703125, 0.00012302398681640625, -0.07305908203125, -0.0217437744140625, 0.0267486572265625, -0.016143798828125, 0.00287628173828125, -0.007732391357421875, -0.0137786865234375, -0.0169219970703125, 0.0241851806640625, -0.016510009765625, -0.005550384521484375, 0.0161285400390625, 0.002696990966796875, 0.00632476806640625, 0.0294952392578125, -0.00856781005859375, -0.0005106925964355469, -0.0075225830078125, -0.00222015380859375, 0.01010894775390625, -0.039825439453125, -0.03668212890625, -0.061279296875, -0.01142120361328125, -0.00531005859375, -0.0245361328125, -0.0643310546875, -0.0007309913635253906, 0.02978515625, -0.00118255615234375, -0.036468505859375, -0.0026988983154296875, 0.01467132568359375, -0.06439208984375, 0.052978515625, -0.045745849609375, 0.0109405517578125, 0.00508880615234375, 0.0237884521484375, -0.036590576171875, 0.0091094970703125, -0.04498291015625, -0.009002685546875, -0.046051025390625, -0.0177154541015625, 0.036773681640625, -0.00292205810546875, -0.031341552734375, -0.06201171875, -0.02752685546875, -0.005130767822265625, -0.043365478515625, -0.0230255126953125, 0.01126861572265625, -0.009063720703125, -0.003459930419921875, 0.005329132080078125, 0.0097808837890625, 0.02325439453125, -0.03692626953125, -0.009613037109375, -0.0223388671875, -0.019256591796875, -0.05255126953125, -0.07086181640625, 0.07183837890625, -0.00933074951171875, -0.020782470703125, -0.0248565673828125, 0.042144775390625, 0.005115509033203125, -0.0296630859375, 0.0002772808074951172, -0.0152130126953125, -0.00504302978515625, -0.004505157470703125, 0.0006380081176757812, 0.0111083984375, 0.021514892578125, 0.00946807861328125, 0.0259857177734375, 0.024932861328125, 0.0379638671875, -0.0214385986328125, -0.0128021240234375, -0.0033512115478515625, 0.03558349609375, 0.06488037109375, 0.01561737060546875, 0.0322265625, 0.0264129638671875, -0.04107666015625, 0.02001953125, -0.019073486328125, 0.012603759765625, -0.00228118896484375, -0.019195556640625, 0.0002092123031616211, -0.0167999267578125, 0.0012845993041992188, -0.052154541015625, -0.055145263671875, -0.0168304443359375, -0.0290985107421875, 0.023101806640625, -0.09747314453125, -0.0244903564453125, 0.01505279541015625, -0.01142120361328125, -0.03118896484375, 0.0303802490234375, -0.0222930908203125, -0.006366729736328125, 0.037689208984375, -0.01126861572265625, 0.00301361083984375, -0.0131378173828125, 0.051544189453125, -0.036285400390625, 0.013519287109375, -0.0130767822265625, 0.0252838134765625, 0.018585205078125, -0.020477294921875, 0.01503753662109375, 0.049652099609375, -0.0290374755859375, -0.02569580078125, 0.036346435546875, 0.0029811859130859375, -0.001567840576171875, -0.024749755859375, -0.004817962646484375, 0.0226898193359375, -0.00701141357421875, 0.040771484375, 0.017059326171875, -0.01299285888671875, 0.0028285980224609375, -0.005451202392578125, -0.005218505859375, -0.0003032684326171875, -0.02490234375, 0.0528564453125, -0.01178741455078125, -0.00974273681640625, 0.001277923583984375, -0.00212860107421875, 0.01514434814453125, 0.00940704345703125, 0.04803466796875, -0.032196044921875, 0.053314208984375, 0.02569580078125, 0.011260986328125, 0.035614013671875 ]
421868e89694509ff6e87ae59e13ea3fb5b38202
Wordpress Stackexchange Q: Edit the output of wp_widget_rss_output() I want to show rss feed in my dashboard widget, i use this code: wp_widget_rss_output(array( 'url' => 'http://www.example.com/', 'title' => __( 'Some Title' ), 'items' => 1, 'show_summary' => 1, 'show_author' => 0, 'show_date' => 0 )); but after the 'show_summary' wordpress addes '[...]'. How do i remove it? A: You can't, because the wp_widget_rss_output() prints its output. If you don't want to display '[...]' copy that function in your functions.php, rename it and remove the code that adds the '[...]' to the summary. You can also create a plugin with this code thus making independent from your theme.
Q: Edit the output of wp_widget_rss_output() I want to show rss feed in my dashboard widget, i use this code: wp_widget_rss_output(array( 'url' => 'http://www.example.com/', 'title' => __( 'Some Title' ), 'items' => 1, 'show_summary' => 1, 'show_author' => 0, 'show_date' => 0 )); but after the 'show_summary' wordpress addes '[...]'. How do i remove it? A: You can't, because the wp_widget_rss_output() prints its output. If you don't want to display '[...]' copy that function in your functions.php, rename it and remove the code that adds the '[...]' to the summary. You can also create a plugin with this code thus making independent from your theme.
wordpress
{ "language": "en", "length": 105, "provenance": "stackexchange_00019.jsonl.gz:416059", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38817" }
[ 0.059722900390625, -0.0169830322265625, -0.0026264190673828125, 0.00374603271484375, 0.003299713134765625, -0.0391845703125, 0.044036865234375, -0.04046630859375, 0.0006442070007324219, 0.0211944580078125, 0.013519287109375, -0.051513671875, -0.038909912109375, -0.0290985107421875, -0.057403564453125, -0.053955078125, 0.048797607421875, -0.03594970703125, 0.0303497314453125, 0.01953125, -0.0007157325744628906, 0.041717529296875, 0.0284423828125, 0.0269317626953125, 0.005218505859375, -0.025634765625, 0.0726318359375, -0.02410888671875, -0.00595855712890625, -0.0283355712890625, 0.0079498291015625, 0.02197265625, 0.017913818359375, 0.0181884765625, -0.0302886962890625, -0.0177459716796875, -0.0134429931640625, 0.0000997781753540039, -0.01953125, 0.0310821533203125, 0.012664794921875, -0.01058197021484375, 0.006633758544921875, -0.069091796875, -0.000888824462890625, 0.0209503173828125, 0.00875091552734375, -0.03558349609375, -0.0030612945556640625, -0.01264190673828125, -0.014739990234375, 0.0159149169921875, -0.01078033447265625, -0.018035888671875, -0.0078582763671875, -0.0296630859375, -0.0027828216552734375, 0.0119476318359375, 0.03216552734375, -0.021087646484375, -0.013671875, 0.006763458251953125, 0.0191802978515625, 0.00982666015625, -0.006317138671875, 0.00617218017578125, 0.038238525390625, 0.0042266845703125, -0.0035953521728515625, -0.01470947265625, 0.008697509765625, 0.006313323974609375, -0.0145416259765625, 0.016693115234375, -0.03314208984375, -0.0247039794921875, 0.01511383056640625, -0.04644775390625, 0.01274871826171875, 0.0172576904296875, 0.02374267578125, 0.018890380859375, -0.02447509765625, -0.03656005859375, 0.05999755859375, -0.00289154052734375, -0.005157470703125, -0.0269317626953125, -0.0260467529296875, 0.0198822021484375, -0.020721435546875, -0.036346435546875, -0.01788330078125, -0.0017290115356445312, 0.0183563232421875, -0.0177154541015625, -0.00601959228515625, 0.0251312255859375, -0.04693603515625, 0.0052032470703125, -0.054534912109375, 0.036285400390625, -0.041473388671875, -0.017486572265625, -0.00974273681640625, 0.0413818359375, 0.004199981689453125, 0.00833892822265625, 0.0268096923828125, 0.02728271484375, 0.009735107421875, 0.01078033447265625, -0.0426025390625, -0.063232421875, 0.002330780029296875, 0.05242919921875, -0.0304107666015625, 0.01065826416015625, 0.031005859375, 0.00281524658203125, 0.01175689697265625, 0.03656005859375, -0.0265045166015625, -0.0121612548828125, -0.0200347900390625, -0.0079498291015625, -0.0111541748046875, -0.0163116455078125, -0.0015611648559570312, -0.01329803466796875, -0.0284423828125, 0.01071929931640625, 0.05987548828125, 0.0765380859375, 0.044036865234375, -0.00994110107421875, 0.03021240234375, -0.032318115234375, -0.0170135498046875, 0.042327880859375, -0.03662109375, -0.059967041015625, 0.00240325927734375, -0.03472900390625, 0.0248260498046875, 0.01560211181640625, 0.017669677734375, 0.004306793212890625, 0.028045654296875, -0.03594970703125, -0.0091094970703125, 0.017181396484375, 0.004947662353515625, 0.048126220703125, 0.0222015380859375, -0.0308685302734375, 0.059814453125, -0.055389404296875, 0.044708251953125, -0.03887939453125, -0.0252685546875, -0.021759033203125, -0.0005669593811035156, -0.062164306640625, -0.06298828125, 0.0244140625, -0.03363037109375, 0.0016946792602539062, 0.0157318115234375, 0.010162353515625, 0.00727081298828125, -0.054107666015625, 0.000008702278137207031, 0.01396942138671875, -0.000018656253814697266, 0.0501708984375, -0.026214599609375, -0.033355712890625, 0.035369873046875, 0.00786590576171875, -0.02154541015625, -0.0242462158203125, 0.003925323486328125, 0.0167236328125, -0.0626220703125, 0.0277862548828125, 0.0197296142578125, 0.066650390625, 0.0186614990234375, 0.0211944580078125, 0.039886474609375, 0.0050201416015625, -0.0170135498046875, 0.007541656494140625, 0.0155181884765625, -0.031158447265625, -0.01139068603515625, -0.0206298828125, -0.0079803466796875, 0.00714111328125, 0.0073394775390625, 0.0307159423828125, -0.018310546875, 0.01165008544921875, -0.11767578125, 0.06280517578125, -0.057586669921875, 0.06146240234375, -0.004497528076171875, 0.022491455078125, 0.004146575927734375, 0.0111541748046875, -0.01244354248046875, -0.0225067138671875, -0.025543212890625, 0.0003941059112548828, 0.005619049072265625, 0.043426513671875, -0.0011539459228515625, 0.0213470458984375, 0.0037250518798828125, -0.0018482208251953125, 0.01078033447265625, 0.02325439453125, 0.08233642578125, -0.03704833984375, -0.0128021240234375, -0.057830810546875, 0.052154541015625, -0.03192138671875, -0.0228118896484375, 0.0660400390625, -0.0114288330078125, 0.003147125244140625, -0.025726318359375, 0.00896453857421875, 0.0015115737915039062, -0.022491455078125, 0.005939483642578125, 0.0231475830078125, 0.0229034423828125, 0.00417327880859375, -0.00603485107421875, 0.009307861328125, 0.02813720703125, -0.043670654296875, 0.0099334716796875, 0.0005536079406738281, 0.031280517578125, 0.0582275390625, -0.0188751220703125, -0.00826263427734375, 0.01324462890625, -0.05792236328125, 0.0013713836669921875, 0.052093505859375, -0.004261016845703125, 0.02276611328125, -0.01560211181640625, 0.007511138916015625, -0.0116729736328125, 0.0200653076171875, 0.0019855499267578125, -0.006099700927734375, 0.0160369873046875, 0.054718017578125, 0.05072021484375, 0.06317138671875, -0.056793212890625, 0.01114654541015625, 0.009033203125, 0.0567626953125, -0.0007953643798828125, 0.038970947265625, 0.011871337890625, -0.040985107421875, -0.0018434524536132812, -0.015625, -0.04443359375, 0.00035309791564941406, 0.01503753662109375, 0.0538330078125, 0.00830078125, -0.0199432373046875, -0.0188140869140625, -0.043487548828125, 0.002384185791015625, 0.0093841552734375, 0.0167694091796875, 0.02569580078125, 0.032562255859375, 0.01043701171875, -0.01209259033203125, 0.02801513671875, -0.00545501708984375, -0.004428863525390625, 0.0703125, -0.045013427734375, 0.03436279296875, -0.0126495361328125, 0.1016845703125, 0.059295654296875, -0.0208740234375, 0.02227783203125, -0.00635528564453125, 0.009033203125, -0.019561767578125, -0.017547607421875, -0.0196685791015625, 0.02655029296875, -0.11163330078125, 0.005954742431640625, 0.00913238525390625, 0.00768280029296875, -0.005474090576171875, -0.0272369384765625, -0.01336669921875, 0.00983428955078125, -0.065673828125, -0.0538330078125, 0.0216522216796875, -0.0210418701171875, -0.033966064453125, 0.013092041015625, -0.031951904296875, 0.0097808837890625, 0.0257415771484375, -0.01361846923828125, 0.0050506591796875, -0.025848388671875, -0.0634765625, -0.053558349609375, -0.07293701171875, -0.0101776123046875, -0.007297515869140625, 0.014404296875, 0.00760650634765625, 0.042877197265625, 0.0085296630859375, -0.054931640625, 0.00719451904296875, 0.054595947265625, -0.013702392578125, -0.00359344482421875, 0.027923583984375, -0.052032470703125, -0.02740478515625, 0.0015192031860351562, 0.0706787109375, 0.0174102783203125, -0.0069732666015625, 0.0131378173828125, -0.0234832763671875, -0.04510498046875, 0.004909515380859375, -0.0200347900390625, 0.00685882568359375, -0.0167388916015625, 0.01165008544921875, -0.03778076171875, 0.001369476318359375, -0.01334381103515625, -0.024200439453125, -0.0216217041015625, 0.005901336669921875, 0.010284423828125, -0.02850341796875, 0.007415771484375, -0.007465362548828125, -0.005710601806640625, 0.04034423828125, -0.024627685546875, 0.0302276611328125, -0.007305145263671875, -0.0113677978515625, -0.02911376953125, 0.0080718994140625, -0.01593017578125, 0.0290679931640625, 0.004199981689453125, 0.022003173828125, -0.0096282958984375, 0.0226593017578125, -0.041015625, 0.01971435546875, 0.015716552734375, -0.04486083984375, -0.01206207275390625, 0.0179595947265625, 0.01093292236328125, 0.014190673828125, 0.005462646484375, -0.05450439453125, -0.0164947509765625, -0.0275115966796875, 0.0207672119140625, -0.0165557861328125, -0.08294677734375, -0.0008001327514648438, -0.024566650390625, -0.107177734375, 0.00940704345703125, -0.0208740234375, -0.0257110595703125, -0.006214141845703125, -0.0149383544921875, -0.04534912109375, -0.052825927734375, 0.02178955078125, 0.00846099853515625, 0.00485992431640625, 0.0087890625, -0.010101318359375, -0.01338958740234375, -0.01276397705078125, -0.014801025390625, -0.044769287109375, -0.0167388916015625, -0.0078582763671875, 0.022064208984375, 0.009063720703125, -0.026397705078125, 0.00667572021484375, 0.031402587890625, -0.0301361083984375, -0.00954437255859375, 0.0110321044921875, 0.0274200439453125, -0.0228271484375, 0.0204010009765625, 0.0031280517578125, -0.02655029296875, -0.019378662109375, -0.0060577392578125, -0.03839111328125, 0.040191650390625, -0.009246826171875, 0.006481170654296875, 0.007556915283203125, -0.017913818359375, -0.047821044921875, -0.03192138671875, 0.0031185150146484375, 0.037078857421875, 0.007061004638671875, 0.022186279296875, -0.05426025390625, -0.066650390625, -0.00908660888671875, -0.019378662109375, -0.006610870361328125, 0.0214691162109375, 0.03692626953125, 0.0229949951171875, 0.0013532638549804688, -0.01134490966796875, -0.0292816162109375, 0.01488494873046875, -0.0119781494140625, 0.040313720703125, 0.01001739501953125, -0.0225372314453125, 0.07696533203125, -0.028472900390625, 0.0198822021484375, -0.015106201171875, 0.0677490234375, -0.00396728515625, -0.01319122314453125, 0.02838134765625, -0.00659942626953125, -0.04547119140625, 0.0102691650390625, 0.01044464111328125, 0.004512786865234375, 0.051025390625, 0.017181396484375, -0.021209716796875, -0.0013685226440429688, 0.0021514892578125, 0.017547607421875, 0.006305694580078125, 0.009613037109375, 0.0041961669921875, 0.006145477294921875, 0.0007276535034179688, -0.06671142578125, -0.033294677734375, 0.0174102783203125, -0.01062774658203125, -0.0226593017578125, -0.042388916015625, 0.0015316009521484375, 0.0108795166015625, -0.0162506103515625, 0.0169525146484375, -0.0037784576416015625, -0.02313232421875, 0.024505615234375, -0.01371002197265625, -0.024078369140625, 0.03302001953125, 0.035186767578125, -0.01116943359375, 0.046600341796875, 0.04046630859375, 0.03961181640625, 0.00562286376953125, -0.028778076171875, 0.037994384765625, 0.0246734619140625, -0.037994384765625, -0.0236053466796875, -0.01214599609375, -0.0016880035400390625, 0.005413055419921875, 0.0762939453125, -0.035186767578125, 0.057891845703125, -0.0179443359375, 0.0316162109375, 0.0307159423828125, -0.0034923553466796875, 0.008697509765625, 0.0380859375, -0.0192108154296875, -0.01093292236328125, 0.0008912086486816406, -0.01456451416015625, 0.0052490234375, 0.01078033447265625, -0.014862060546875, 0.0236358642578125, -0.0177154541015625, 0.0163116455078125, 0.006793975830078125, -0.017791748046875, 0.0908203125, 0.0129241943359375, -0.03558349609375, -0.05859375, -0.025604248046875, 0.065185546875, -0.001316070556640625, 0.007099151611328125, -0.013946533203125, -0.01023101806640625, 0.0280303955078125, 0.0031719207763671875, 0.0108184814453125, -0.0027599334716796875, -0.023345947265625, -0.0345458984375, -0.0144500732421875, 0.006938934326171875, -0.09002685546875, -0.066162109375, 0.006694793701171875, 0.011871337890625, 0.019622802734375, -0.0157318115234375, 0.019989013671875, -0.0450439453125, 0.020751953125, -0.0604248046875, -0.0139923095703125, 0.053192138671875, 0.050537109375, -0.11407470703125, -0.002044677734375, -0.037445068359375, 0.01181793212890625, -0.0018749237060546875, -0.007793426513671875, -0.043487548828125, -0.00872039794921875, 0.01708984375, -0.006328582763671875, 0.021087646484375, -0.001491546630859375, -0.0203857421875, 0.027130126953125, 0.0270233154296875, 0.017059326171875, 0.01226043701171875, 0.056854248046875, -0.0194244384765625, 0.08331298828125, 0.0036830902099609375, 0.006557464599609375, -0.052276611328125, -0.042144775390625, 0.048309326171875, 0.00084686279296875, -0.048309326171875, -0.0322265625, -0.01169586181640625, -0.041046142578125, 0.01509857177734375, -0.0321044921875, -0.0001914501190185547, 0.003971099853515625, 0.00939178466796875, -0.016082763671875, -0.003215789794921875, 0.0167236328125, -0.01337432861328125, 0.0178680419921875, -0.01171112060546875, -0.01953125, 0.0031948089599609375, 0.05267333984375, -0.023193359375, -0.01064300537109375, -0.032318115234375, -0.0267486572265625, -0.0660400390625, 0.0743408203125, 0.08587646484375, 0.00035762786865234375, 0.037353515625, 0.00931549072265625, -0.01348876953125, -0.00024187564849853516, 0.0005040168762207031, 0.019927978515625, -0.0029277801513671875, 0.042877197265625, -0.01261138916015625, -0.00859832763671875, 0.010223388671875, -0.0289459228515625, -0.0033054351806640625, 0.0316162109375, 0.0145263671875, -0.0626220703125, 0.01190185546875, -0.0073394775390625, 0.0258941650390625, 0.053314208984375, 0.01122283935546875, -0.0133056640625, -0.06011962890625, 0.02191162109375, 0.0205230712890625, -0.0014314651489257812, 0.018280029296875, 0.0084381103515625, 0.0016927719116210938, 0.004180908203125, 0.056427001953125, 0.0101318359375, -0.0762939453125, -0.0187835693359375, 0.04205322265625, -0.0181427001953125, -0.014923095703125, -0.0120391845703125, 0.03582763671875, -0.0184478759765625, -0.072021484375, 0.021148681640625, -0.04144287109375, -0.0029315948486328125, 0.01666259765625, -0.00738525390625, 0.039337158203125, 0.033599853515625, -0.01313018798828125, 0.018280029296875, 0.004566192626953125, -0.00347137451171875, -0.0284881591796875, -0.0194244384765625, -0.0014495849609375, 0.049285888671875, -0.0386962890625, 0.01959228515625, -0.009979248046875, -0.003604888916015625, -0.016937255859375, -0.00013589859008789062, 0.11370849609375, -0.0202484130859375, -0.032989501953125, -0.00792694091796875, 0.0119476318359375, 0.01065826416015625, -0.0013275146484375, 0.0748291015625, -0.08587646484375, -0.038360595703125, 0.01849365234375, -0.0233612060546875, -0.0131683349609375, -0.007083892822265625, -0.061798095703125, 0.10650634765625, 0.0125274658203125, 0.01439666748046875, 0.01171112060546875, 0.04168701171875, -0.0413818359375, 0.0086212158203125, -0.0267486572265625, 0.018524169921875, 0.0300750732421875, 0.019073486328125, -0.0006561279296875, 0.004398345947265625, 0.012237548828125, 0.0107879638671875, 0.02154541015625, 0.01092529296875, 0.006916046142578125, -0.021270751953125, -0.004047393798828125, 0.028472900390625, -0.021514892578125, 0.0125732421875, -0.005916595458984375, 0.041717529296875, 0.0300750732421875, -0.037811279296875, 0.035125732421875, -0.0169830322265625, -0.0243072509765625, 0.01235198974609375, 0.0224609375, 0.0111541748046875, 0.0162353515625, 0.0009746551513671875, -0.0104522705078125, 0.00449371337890625, 0.002628326416015625, 0.0232696533203125, -0.0139312744140625, 0.057861328125, 0.061859130859375, -0.051788330078125, 0.00860595703125, -0.050628662109375, 0.056396484375, 0.0247039794921875, 0.022491455078125, 0.004364013671875, 0.0084381103515625, 0.0179443359375, 0.02532958984375, 0.025390625, 0.046173095703125, -0.0135040283203125, 0.0076751708984375, 0.03448486328125, 0.0289306640625, 0.016326904296875, 0.01517486572265625, 0.040679931640625, 0.0163726806640625, -0.019195556640625, -0.0124664306640625, 0.00951385498046875, 0.014801025390625, 0.01270294189453125, -0.0013093948364257812, 0.0479736328125, -0.0287933349609375, -0.01268768310546875, -0.039703369140625, -0.01251220703125, 0.0186920166015625, 0.05230712890625, -0.0207672119140625, -0.006984710693359375, -0.0262603759765625, -0.056640625, -0.0291290283203125, 0.000576019287109375, -0.01209259033203125, 0.0391845703125, 0.03155517578125, 0.0220489501953125, -0.030670166015625, -0.020965576171875, -0.00240325927734375, 0.022430419921875, -0.00897216796875, -0.00756072998046875, -0.0258636474609375, -0.033477783203125, 0.04278564453125, 0.018707275390625, -0.0130157470703125, -0.02252197265625, 0.00823974609375, 0.0172119140625, -0.04266357421875, -0.0245208740234375, 0.0200347900390625, -0.0140533447265625, -0.036773681640625, -0.028533935546875, 0.0058135986328125, 0.0270233154296875, 0.00839996337890625, 0.0081787109375, 0.045989990234375, 0.00632476806640625, -0.06304931640625, 0.0024166107177734375, -0.0118255615234375, -0.019989013671875, 0.03179931640625, -0.0204925537109375, -0.011932373046875, -0.043853759765625, -0.0908203125, -0.0157318115234375, 0.00669097900390625, -0.09033203125, 0.03399658203125, 0.05291748046875, -0.027496337890625, -0.01806640625, -0.0294189453125, 0.0458984375, -0.0242767333984375, -0.0443115234375, 0.014923095703125, -0.00647735595703125, 0.01812744140625, 0.0199432373046875, -0.0175933837890625, -0.01580810546875, -0.02001953125, 0.062164306640625, 0.03204345703125, 0.03558349609375, -0.00687408447265625, 0.034698486328125, -0.0242156982421875, -0.0009832382202148438, -0.024017333984375, -0.026275634765625, 0.018890380859375, 0.000766754150390625, 0.001918792724609375, -0.0176544189453125, -0.0286102294921875, -0.015533447265625, 0.04034423828125, -0.06561279296875, 0.036834716796875, -0.07098388671875, 0.0138397216796875, -0.06756591796875, -0.0103759765625, -0.007114410400390625, 0.026153564453125, 0.0230255126953125, -0.0010776519775390625, 0.04534912109375, 0.00969696044921875, -0.016265869140625, 0.00543212890625, 0.032470703125, -0.004680633544921875, 0.014892578125, 0.01282501220703125, 0.0115966796875, 0.019012451171875, 0.0094146728515625, -0.01238250732421875, 0.0011835098266601562, -0.01239013671875, 0.0210418701171875, 0.0084381103515625, 0.03192138671875, -0.0034770965576171875, 0.045806884765625, -0.014251708984375, -0.0391845703125, -0.00714111328125, -0.05194091796875, -0.00881195068359375, 0.002925872802734375, 0.004405975341796875, -0.0096282958984375, -0.0001728534698486328, -0.0298614501953125, -0.0002624988555908203, -0.013763427734375, 0.007472991943359375, 0.00019061565399169922, -0.06549072265625, -0.0941162109375, 0.01287841796875, 0.0262908935546875, -0.0179443359375, -0.020782470703125, 0.0247344970703125, -0.033935546875, 0.028289794921875, -0.02362060546875, -0.0253448486328125, -0.00763702392578125, 0.0281829833984375, 0.0021533966064453125, -0.036590576171875, -0.04840087890625, 0.03509521484375, -0.037994384765625, -0.01568603515625, -0.0164642333984375, -0.010009765625, 0.035369873046875, -0.01800537109375, -0.002140045166015625, 0.02520751953125, 0.03924560546875, -0.01800537109375, -0.0307464599609375, 0.0193023681640625, -0.00726318359375, -0.032257080078125, 0.01468658447265625, -0.050628662109375, -0.0223236083984375, 0.048583984375, -0.05169677734375, -0.0255584716796875, -0.045074462890625, -0.05816650390625, 0.06494140625, 0.0209503173828125, -0.02691650390625, 0.019012451171875, 0.0263671875, 0.0029888153076171875, -0.028167724609375, 0.00991058349609375, 0.0041656494140625, 0.006320953369140625, -0.0237884521484375, 0.0239105224609375, 0.0094451904296875, 0.029571533203125, 0.01947021484375, -0.04376220703125, 0.0178375244140625, -0.01184844970703125, 0.01149749755859375, -0.06549072265625, 0.0294952392578125, -0.0194244384765625, -0.0031414031982421875, -0.032623291015625, 0.02410888671875, 0.0258331298828125, 0.06549072265625, 0.005252838134765625, -0.01739501953125, -0.07806396484375, -0.021514892578125, 0.078369140625, 0.06756591796875, 0.0321044921875, -0.026458740234375, -0.044097900390625, -0.0305328369140625, -0.0021572113037109375, -0.015869140625, 0.019561767578125, -0.0899658203125, -0.0231170654296875, 0.0299530029296875, -0.0203704833984375, 0.0140380859375, -0.02117919921875, -0.041717529296875, -0.007106781005859375, -0.0290374755859375, 0.0157470703125, -0.057342529296875, -0.0076446533203125, 0.034637451171875, -0.02410888671875, 0.0248260498046875, -0.02532958984375, 0.01494598388671875, 0.0250244140625, -0.030517578125, -0.0338134765625, -0.047698974609375, -0.00030422210693359375, 0.03900146484375, -0.0167083740234375, 0.055419921875, -0.033721923828125, -0.00215911865234375, -0.033843994140625, -0.00045800209045410156, 0.0196533203125, -0.007411956787109375, 0.01392364501953125, -0.01288604736328125, 0.004428863525390625, 0.00579833984375, -0.032501220703125, 0.01007843017578125, -0.0229949951171875, 0.0182647705078125, -0.037872314453125, 0.0186309814453125, 0.0010890960693359375, -0.01540374755859375, 0.019195556640625, -0.00722503662109375, 0.035247802734375, -0.034881591796875, 0.0234527587890625, -0.05828857421875, 0.006343841552734375, 0.028717041015625 ]
ce27de4d4039fe228391d00c6763b4a6b55c5575
Wordpress Stackexchange Q: How to remove Biography from user profile admin page I would like to remove or hide the Biography input field from the profile page. How do you do this? I already removed some contact methods from this page, but I'm not sure how to get rid of the biography. A: The simplest and most lightweight solution is to use CSS to just hide it from view. .user-description-wrap { display: none; }
Q: How to remove Biography from user profile admin page I would like to remove or hide the Biography input field from the profile page. How do you do this? I already removed some contact methods from this page, but I'm not sure how to get rid of the biography. A: The simplest and most lightweight solution is to use CSS to just hide it from view. .user-description-wrap { display: none; } A: Since the recent class change this works: add_action( 'personal_options', array ( 'T5_Hide_Profile_Bio_Box', 'start' ) ); /** * Captures the part with the biobox in an output buffer and removes it. * * @author Thomas Scholz, <[email protected]> * */ class T5_Hide_Profile_Bio_Box { /** * Called on 'personal_options'. * * @return void */ public static function start() { $action = ( IS_PROFILE_PAGE ? 'show' : 'edit' ) . '_user_profile'; add_action( $action, array ( __CLASS__, 'stop' ) ); ob_start(); } /** * Strips the bio box from the buffered content. * * @return void */ public static function stop() { $html = ob_get_contents(); ob_end_clean(); // remove the headline $headline = __( IS_PROFILE_PAGE ? 'About Yourself' : 'About the user' ); $html = str_replace( '<h3>' . $headline . '</h3>', '', $html ); // remove the table row $html = preg_replace( '~<tr class="user-description-wrap">\s*<th><label for="description".*</tr>~imsUu', '', $html ); print $html; } } A: There is no dedicated hook – user management is a low priority in WordPress. You have to use output buffering (yes, not nice). Here is a simple demonstration how this could be done: add_action( 'personal_options', array ( 'T5_Hide_Profile_Bio_Box', 'start' ) ); /** * Captures the part with the biobox in an output buffer and removes it. */ class T5_Hide_Profile_Bio_Box { /** * Called on 'personal_options'. * * @return void */ public static function start() { $action = ( IS_PROFILE_PAGE ? 'show' : 'edit' ) . '_user_profile'; add_action( $action, array ( __CLASS__, 'stop' ) ); ob_start(); } /** * Strips the bio box from the buffered content. * * @return void */ public static function stop() { $html = ob_get_contents(); ob_end_clean(); // remove the headline $headline = __( IS_PROFILE_PAGE ? 'About Yourself' : 'About the user' ); $html = str_replace( '<h2>' . $headline . '</h2>', '', $html ); // remove the table row $html = preg_replace( '~<tr>\s*<th><label for="description".*</tr>~imsUu', '', $html ); print $html; } } You can download the code as a standalone plugin: Plugin Remove Bio Box. The password fields are now under Contact Info … if you don’t like that, add a headline in stop() – and take care for I18n. ;) A: Building on the previous answers, here is what I'm using to remove the parts of the User page I don't want: $pagesToAffect = [ '/wp-admin/user-edit.php', '/wp-admin/profile.php' ]; if (isset($PHP_SELF) && in_array($PHP_SELF, $pagesToAffect)) { add_action('admin_head', [UserProfileCleaner::class, 'start']); add_action('admin_footer', [UserProfileCleaner::class, 'finish']); add_filter('user_contactmethods',[UserProfileCleaner::class, 'hideInstantMessaging'],10000,1); } class UserProfileCleaner { public static function start() { ob_start(function($buffer) { // Personal Options if (!IS_PROFILE_PAGE) { $startHeading = 'Personal Options'; $pattern = "@<(h[0-9]) ?[^>]*?>".preg_quote(_x($startHeading))."</\\1 ?>@is"; preg_match($pattern, $buffer, $start, PREG_OFFSET_CAPTURE); $endHeading = 'Name'; $pattern = "@<(h[0-9]) ?[^>]*?>".preg_quote(_x($endHeading))."</\\1 ?>@is"; preg_match($pattern, $buffer, $end, PREG_OFFSET_CAPTURE); if (isset($start[0][1]) && isset($end[0][1]) && $start[0][1]<$end[0][1]) { $buffer = substr($buffer, 0, $start[0][1]).substr($buffer,$end[0][1]); } } $buffer = self::removeSectionHeading($buffer, 'Name'); $buffer = self::removeSectionHeading($buffer, 'Contact Info'); $buffer = self::removeSectionHeading($buffer, 'Additional Capabilities'); $buffer = self::removeSectionRow($buffer, 'Capabilities'); $buffer = self::removeSectionHeading($buffer, 'Forums'); // About / Bio $heading = IS_PROFILE_PAGE ? 'About Yourself' : 'About the user'; $buffer = self::removeStandardSection($buffer, $heading); // Yoast $heading = 'Yoast SEO Settings'; $buffer = self::removeStandardSection($buffer, $heading); $heading = 'Memberships'; $pattern = "@<(h[0-9]) ?[^>]*?>".preg_quote(_x($heading))."</\\1 ?>.*?</p>@is"; $buffer = preg_replace($pattern, "", $buffer, 1); return $buffer; }); } private static function removeStandardSection($buffer, $heading) { $pattern = "@<(h[0-9]) ?[^>]*?>".preg_quote(_x($heading))."</\\1 ?>.*?</table>@is"; return preg_replace($pattern, "", $buffer, 1); } private static function removeSectionHeading($buffer, $heading) { $pattern = "@<(h[0-9]) ?[^>]*?>".preg_quote(_x($heading))."</\\1 ?>@is"; return preg_replace($pattern, "", $buffer, 1); } function removeSectionRow($buffer, $heading) { $pattern = "@<tr ?[^>]*?>[^<]*?<th ?[^>]*?>[^<]*?".preg_quote(_x($heading))."[^<]*?</th ?[^>]*?>.*?</tr ?>@is"; return preg_replace($pattern, "", $buffer, 1); } public static function finish() { ob_end_flush(); } public static function hideInstantMessaging( $contactmethods ) { unset($contactmethods['googleplus']); unset($contactmethods['twitter']); unset($contactmethods['facebook']); return $contactmethods; } } It's still reliant on the structure of the HTML, but it works for me. A: If you add the below code to your functions.php file, it will remove the bio section for all languages of a multi-language site: //remove the bio function remove_plain_bio($buffer) { $titles = array('#<h3>'._x('About Yourself').'</h3>#','#<h3>'._x('About the user').'</h3>#'); $buffer=preg_replace($titles,'<h3>'._x('Password').'</h3>',$buffer,1); $biotable='#<h3>'._x('Password').'</h3>.+?<table.+?/tr>#s'; $buffer=preg_replace($biotable,'<h3>'._x('Password').'</h3> <table class="form-table">',$buffer,1); return $buffer; } function profile_admin_buffer_start() { ob_start("remove_plain_bio"); } function profile_admin_buffer_end() { ob_end_flush(); } add_action('admin_head', 'profile_admin_buffer_start'); add_action('admin_footer', 'profile_admin_buffer_end');
wordpress
{ "language": "en", "length": 734, "provenance": "stackexchange_00019.jsonl.gz:416060", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38819" }
[ 0.04925537109375, 0.00214385986328125, -0.0234375, -0.01552581787109375, 0.005741119384765625, -0.036865234375, 0.0007586479187011719, -0.030426025390625, -0.03424072265625, 0.0285491943359375, 0.04901123046875, 0.00710296630859375, -0.04730224609375, -0.0291595458984375, -0.02423095703125, -0.033050537109375, -0.02142333984375, 0.04559326171875, 0.0343017578125, 0.0032863616943359375, -0.004009246826171875, -0.009979248046875, -0.008636474609375, -0.07025146484375, 0.0164337158203125, -0.0289306640625, 0.0340576171875, -0.0201568603515625, 0.003963470458984375, -0.01898193359375, 0.01369476318359375, 0.038055419921875, -0.0184783935546875, 0.02813720703125, -0.005374908447265625, -0.005817413330078125, -0.007152557373046875, 0.0220184326171875, 0.0282440185546875, -0.0027217864990234375, 0.016693115234375, -0.001285552978515625, -0.06585693359375, -0.020050048828125, -0.036651611328125, -0.03826904296875, 0.024871826171875, 0.004070281982421875, 0.0178375244140625, 0.00397491455078125, 0.00548553466796875, -0.0065155029296875, 0.0250396728515625, -0.01910400390625, -0.01384735107421875, -0.02069091796875, -0.03314208984375, -0.0174560546875, 0.024627685546875, 0.051544189453125, 0.00800323486328125, -0.00528717041015625, 0.0014753341674804688, -0.042816162109375, -0.0048675537109375, -0.01226806640625, -0.05126953125, 0.034423828125, -0.06842041015625, -0.0010204315185546875, 0.04168701171875, -0.04931640625, 0.0019702911376953125, -0.019866943359375, -0.029937744140625, 0.007274627685546875, -0.01537322998046875, -0.03302001953125, 0.029388427734375, -0.01432037353515625, -0.0254974365234375, 0.00899505615234375, -0.033538818359375, -0.0017795562744140625, 0.00443267822265625, 0.034210205078125, -0.028076171875, -0.0183563232421875, 0.00852203369140625, 0.0026569366455078125, 0.00397491455078125, -0.05706787109375, 0.01342010498046875, 0.054229736328125, -0.0017423629760742188, -0.0008778572082519531, 0.033721923828125, 0.030914306640625, 0.0038547515869140625, -0.033355712890625, 0.01198577880859375, -0.02264404296875, -0.05670166015625, 0.00135040283203125, 0.001476287841796875, 0.04693603515625, -0.03179931640625, 0.01457977294921875, 0.0400390625, 0.028717041015625, 0.0191802978515625, -0.0229949951171875, -0.01413726806640625, -0.010650634765625, -0.00640106201171875, 0.01024627685546875, -0.03466796875, 0.046722412109375, -0.005153656005859375, 0.050750732421875, -0.0171661376953125, -0.006595611572265625, -0.00992584228515625, -0.0287017822265625, 0.0268402099609375, -0.0168304443359375, -0.0357666015625, 0.034423828125, 0.045501708984375, -0.01451873779296875, -0.048675537109375, 0.0159912109375, 0.078125, 0.0311126708984375, 0.0224456787109375, -0.02313232421875, 0.0214385986328125, -0.01143646240234375, -0.028533935546875, 0.039154052734375, -0.00982666015625, -0.062408447265625, -0.027435302734375, -0.005458831787109375, -0.0433349609375, 0.024017333984375, 0.019317626953125, -0.01239776611328125, -0.00664520263671875, -0.040985107421875, -0.0745849609375, -0.00557708740234375, 0.00910186767578125, 0.04058837890625, 0.044097900390625, 0.01280975341796875, 0.0753173828125, -0.0255126953125, -0.01471710205078125, -0.01224517822265625, 0.053863525390625, -0.002582550048828125, 0.005016326904296875, -0.00962066650390625, -0.044952392578125, -0.006587982177734375, -0.035308837890625, -0.00988006591796875, 0.0159912109375, -0.0298614501953125, 0.03924560546875, -0.0494384765625, -0.001857757568359375, 0.01358795166015625, 0.00487518310546875, 0.03839111328125, 0.003498077392578125, 0.004299163818359375, -0.00960540771484375, 0.0596923828125, -0.00058746337890625, -0.043853759765625, 0.01113128662109375, 0.006702423095703125, -0.06170654296875, 0.041961669921875, 0.00988006591796875, 0.04754638671875, 0.01678466796875, 0.0002486705780029297, 0.061920166015625, 0.035003662109375, -0.01324462890625, -0.0239105224609375, -0.00048661231994628906, -0.00901031494140625, -0.00986480712890625, -0.01009368896484375, -0.01861572265625, 0.025115966796875, 0.0230255126953125, 0.0166168212890625, -0.014617919921875, 0.0174407958984375, -0.0277252197265625, -0.01416015625, -0.006870269775390625, 0.025909423828125, 0.00246429443359375, 0.036163330078125, 0.00926971435546875, 0.0008263587951660156, -0.0286407470703125, 0.01239776611328125, -0.01300048828125, -0.056671142578125, -0.01398468017578125, -0.00006514787673950195, 0.00792694091796875, 0.015167236328125, -0.0004646778106689453, -0.0018796920776367188, -0.01448822021484375, -0.0011301040649414062, 0.0195770263671875, -0.0296783447265625, -0.0142974853515625, -0.041107177734375, 0.0147705078125, -0.05841064453125, 0.037872314453125, 0.0760498046875, 0.0264892578125, -0.0037021636962890625, -0.0245361328125, 0.01485443115234375, 0.00922393798828125, -0.02789306640625, -0.023162841796875, 0.02520751953125, 0.01067352294921875, -0.006622314453125, 0.004459381103515625, 0.0579833984375, 0.01050567626953125, -0.01032257080078125, 0.031463623046875, 0.02392578125, -0.0065460205078125, -0.011383056640625, 0.0458984375, -0.0195465087890625, 0.0243988037109375, -0.0560302734375, 0.0226898193359375, 0.01300048828125, -0.021270751953125, -0.00991058349609375, 0.04608154296875, -0.0265960693359375, 0.0116729736328125, 0.005157470703125, -0.005054473876953125, 0.0053558349609375, 0.02752685546875, -0.01934814453125, 0.01171112060546875, 0.0141754150390625, -0.024139404296875, -0.0211029052734375, 0.043182373046875, 0.047882080078125, -0.01137542724609375, 0.0166015625, 0.04083251953125, -0.004669189453125, -0.032928466796875, -0.0018434524536132812, -0.00966644287109375, -0.00957489013671875, 0.0206451416015625, 0.007289886474609375, 0.018035888671875, 0.004138946533203125, 0.0186767578125, -0.04583740234375, 0.03515625, 0.054779052734375, 0.0216217041015625, 0.0108795166015625, 0.0085906982421875, 0.047760009765625, -0.00498199462890625, 0.035003662109375, 0.019622802734375, -0.01389312744140625, -0.044708251953125, -0.07537841796875, 0.0499267578125, -0.05126953125, 0.00789642333984375, 0.08489990234375, 0.021240234375, 0.004199981689453125, 0.02081298828125, -0.037750244140625, -0.00762939453125, 0.0222015380859375, 0.0243682861328125, -0.0190582275390625, 0.0178985595703125, 0.08770751953125, 0.02874755859375, -0.0229949951171875, 0.0243377685546875, -0.0036907196044921875, -0.023712158203125, 0.042572021484375, -0.0067138671875, 0.039581298828125, -0.0390625, -0.07244873046875, -0.01788330078125, 0.0382080078125, -0.0389404296875, 0.00765228271484375, 0.0865478515625, 0.0027103424072265625, 0.0307159423828125, -0.028228759765625, -0.0706787109375, -0.024627685546875, -0.050018310546875, 0.0029754638671875, -0.0099639892578125, 0.005687713623046875, 0.005191802978515625, 0.0858154296875, 0.0044097900390625, -0.05499267578125, 0.00792694091796875, -0.05816650390625, 0.0012073516845703125, 0.066162109375, 0.034271240234375, -0.035736083984375, 0.005107879638671875, 0.01412200927734375, -0.01247406005859375, 0.00391387939453125, -0.01134490966796875, -0.0173797607421875, -0.006107330322265625, -0.0301361083984375, -0.00543975830078125, 0.006771087646484375, 0.00001627206802368164, -0.03057861328125, -0.012908935546875, -0.059661865234375, -0.029296875, 0.034881591796875, -0.0180816650390625, 0.0272064208984375, -0.01947021484375, -0.016693115234375, 0.0303802490234375, 0.041046142578125, 0.01506805419921875, 0.025390625, -0.0350341796875, 0.004123687744140625, 0.00015020370483398438, 0.0036602020263671875, 0.0113983154296875, 0.013427734375, 0.037445068359375, -0.020111083984375, -0.005313873291015625, 0.00988006591796875, -0.004398345947265625, 0.007808685302734375, 0.005962371826171875, 0.0232391357421875, -0.06781005859375, 0.057708740234375, -0.00543212890625, -0.0182342529296875, -0.0102996826171875, -0.0214996337890625, 0.01326751708984375, 0.0760498046875, 0.033233642578125, 0.0083160400390625, -0.00395965576171875, -0.0227813720703125, -0.04949951171875, 0.01488494873046875, -0.07080078125, 0.01497650146484375, -0.09674072265625, 0.01036834716796875, 0.0005106925964355469, -0.0270843505859375, -0.04559326171875, 0.034454345703125, -0.06951904296875, -0.038360595703125, 0.0024471282958984375, 0.034759521484375, -0.03729248046875, -0.01082611083984375, -0.0396728515625, -0.0374755859375, 0.01525115966796875, -0.006671905517578125, -0.0017614364624023438, -0.0078582763671875, 0.01262664794921875, 0.0011415481567382812, -0.027496337890625, 0.046875, -0.0140533447265625, 0.01442718505859375, 0.03656005859375, 0.005077362060546875, 0.00945281982421875, -0.033935546875, -0.016876220703125, 0.007434844970703125, 0.014923095703125, -0.02410888671875, -0.04534912109375, -0.0272064208984375, 0.0225830078125, 0.0557861328125, -0.004718780517578125, 0.02886962890625, -0.0138702392578125, 0.0214996337890625, -0.021209716796875, -0.0235137939453125, -0.017303466796875, -0.0107879638671875, -0.007778167724609375, -0.01055908203125, -0.0155029296875, -0.0215911865234375, 0.04376220703125, 0.005443572998046875, -0.006839752197265625, -0.00970458984375, 0.054412841796875, 0.0156707763671875, -0.0234375, -0.00981903076171875, 0.03466796875, 0.02886962890625, -0.01351165771484375, 0.058319091796875, 0.01134490966796875, -0.0178375244140625, 0.0809326171875, -0.0278778076171875, 0.0177154541015625, -0.0401611328125, 0.046051025390625, -0.0197906494140625, -0.0256195068359375, 0.031280517578125, -0.0196380615234375, -0.002185821533203125, 0.003032684326171875, 0.0227813720703125, 0.007904052734375, 0.01061248779296875, -0.0013933181762695312, 0.022705078125, -0.053558349609375, -0.0084075927734375, -0.03582763671875, 0.007549285888671875, -0.061248779296875, 0.0166015625, -0.005832672119140625, 0.0161895751953125, -0.01551055908203125, 0.01496124267578125, -0.0030231475830078125, -0.0806884765625, -0.07177734375, -0.07403564453125, -0.01151275634765625, -0.058013916015625, -0.018096923828125, -0.007465362548828125, -0.005626678466796875, 0.05126953125, -0.011322021484375, -0.053619384765625, 0.006626129150390625, -0.0094146728515625, 0.0264739990234375, 0.0260467529296875, 0.0628662109375, 0.0231475830078125, 0.007167816162109375, 0.042938232421875, -0.0274810791015625, 0.031463623046875, 0.0307159423828125, -0.0178375244140625, 0.06451416015625, 0.00733184814453125, -0.006591796875, 0.04473876953125, 0.051483154296875, -0.045440673828125, 0.060394287109375, -0.0145721435546875, 0.05291748046875, 0.0499267578125, -0.0262298583984375, 0.0032711029052734375, 0.05487060546875, 0.0006589889526367188, -0.054931640625, -0.0010786056518554688, -0.020538330078125, -0.0022335052490234375, 0.022674560546875, 0.00919342041015625, 0.0276641845703125, 0.00771331787109375, -0.026611328125, -0.00879669189453125, -0.005649566650390625, 0.0093841552734375, -0.04620361328125, -0.059051513671875, 0.014739990234375, 0.02874755859375, 0.003414154052734375, -0.0369873046875, -0.0035839080810546875, -0.056243896484375, -0.0482177734375, -0.04827880859375, 0.042877197265625, -0.0860595703125, 0.00214385986328125, 0.01445770263671875, 0.008575439453125, -0.0125579833984375, -0.0299530029296875, -0.042572021484375, -0.02056884765625, 0.01364898681640625, 0.0279693603515625, 0.0029277801513671875, -0.01050567626953125, 0.001628875732421875, -0.034698486328125, 0.0237579345703125, -0.00609588623046875, -0.004669189453125, 0.06671142578125, 0.0272979736328125, -0.0195465087890625, -0.007785797119140625, -0.028533935546875, -0.006946563720703125, -0.0523681640625, -0.0325927734375, -0.0155181884765625, 0.012054443359375, -0.025909423828125, -0.01241302490234375, -0.00557708740234375, 0.042022705078125, 0.014801025390625, 0.055389404296875, -0.013153076171875, 0.0228118896484375, -0.0160064697265625, 0.0269012451171875, 0.0084228515625, 0.027679443359375, -0.003753662109375, 0.0147247314453125, 0.0101470947265625, -0.031097412109375, 0.0011415481567382812, 0.0166473388671875, -0.005062103271484375, -0.021392822265625, -0.014007568359375, -0.003421783447265625, 0.08294677734375, -0.005901336669921875, -0.04962158203125, 0.00160980224609375, 0.00766754150390625, -0.049468994140625, 0.0474853515625, 0.0030155181884765625, -0.01393890380859375, -0.07415771484375, 0.007053375244140625, 0.050506591796875, 0.0035457611083984375, -0.01126861572265625, -0.01947021484375, 0.00914764404296875, 0.001953125, 0.00499725341796875, 0.0175018310546875, 0.0125579833984375, -0.0124053955078125, -0.0209197998046875, -0.013092041015625, 0.00344085693359375, -0.00024962425231933594, -0.0232391357421875, 0.0357666015625, -0.02703857421875, -0.01995849609375, 0.0423583984375, 0.0303497314453125, 0.01064300537109375, 0.04608154296875, -0.0162811279296875, 0.0030078887939453125, 0.072998046875, 0.07281494140625, -0.09881591796875, 0.021575927734375, 0.01274871826171875, 0.043975830078125, 0.068115234375, -0.01302337646484375, 0.0042724609375, -0.05267333984375, -0.019683837890625, 0.0161590576171875, -0.036529541015625, -0.030731201171875, -0.0155029296875, -0.004154205322265625, -0.0034198760986328125, 0.03106689453125, 0.00543212890625, -0.018524169921875, -0.0175628662109375, 0.03302001953125, -0.0109710693359375, -0.0255126953125, -0.0021877288818359375, 0.044342041015625, -0.049591064453125, -0.05645751953125, 0.04437255859375, 0.005413055419921875, -0.0171661376953125, 0.08221435546875, 0.05828857421875, 0.0127410888671875, 0.041259765625, 0.0221710205078125, 0.006740570068359375, -0.0041046142578125, -0.039154052734375, -0.0101776123046875, -0.049652099609375, -0.0157470703125, -0.00432586669921875, -0.0301666259765625, 0.0179595947265625, -0.00009387731552124023, -0.0467529296875, -0.03131103515625, -0.035797119140625, 0.1153564453125, -0.035369873046875, -0.0304412841796875, -0.00960540771484375, 0.0170440673828125, 0.0038814544677734375, -0.010589599609375, 0.022003173828125, -0.039337158203125, -0.0014705657958984375, -0.0020656585693359375, -0.005435943603515625, 0.0019502639770507812, -0.0009918212890625, -0.08050537109375, 0.034576416015625, 0.0034122467041015625, 0.033294677734375, -0.0284423828125, 0.0149688720703125, 0.0093536376953125, -0.01136016845703125, -0.018829345703125, 0.018707275390625, 0.025360107421875, 0.0244140625, 0.006389617919921875, -0.00872802734375, 0.016693115234375, 0.0234222412109375, 0.0209197998046875, 0.003643035888671875, 0.034027099609375, -0.0097503662109375, 0.02728271484375, 0.0215301513671875, -0.01128387451171875, -0.0030422210693359375, -0.0031108856201171875, 0.018768310546875, 0.01398468017578125, -0.02880859375, 0.0179595947265625, -0.0377197265625, -0.0296783447265625, 0.0175933837890625, 0.036651611328125, 0.045501708984375, 0.0168304443359375, 0.03814697265625, -0.04925537109375, 0.015411376953125, 0.052337646484375, 0.0181884765625, -0.032318115234375, 0.029571533203125, 0.0227813720703125, -0.03448486328125, 0.0298614501953125, -0.03363037109375, 0.05804443359375, 0.03424072265625, 0.01412200927734375, 0.049530029296875, 0.018646240234375, 0.0199737548828125, 0.004047393798828125, 0.01146697998046875, 0.0005507469177246094, 0.01367950439453125, 0.044189453125, 0.00403594970703125, 0.0230560302734375, -0.0380859375, 0.0201416015625, 0.0198974609375, 0.047271728515625, -0.036376953125, -0.08258056640625, 0.019378662109375, 0.032745361328125, -0.0053863525390625, 0.0533447265625, 0.01471710205078125, -0.060272216796875, 0.059051513671875, -0.042633056640625, 0.024078369140625, 0.031463623046875, 0.0254669189453125, 0.009307861328125, 0.03155517578125, -0.057037353515625, 0.0035839080810546875, -0.025543212890625, -0.0169525146484375, -0.0018854141235351562, -0.032958984375, 0.046722412109375, -0.0428466796875, 0.0771484375, 0.0156402587890625, -0.002239227294921875, -0.0109405517578125, 0.005779266357421875, -0.00905609130859375, -0.027679443359375, -0.011749267578125, -0.00516510009765625, 0.02752685546875, 0.01438140869140625, 0.01181793212890625, 0.0141448974609375, 0.020263671875, -0.0006427764892578125, -0.0122833251953125, 0.028594970703125, -0.018463134765625, -0.005794525146484375, -0.0304412841796875, 0.036224365234375, 0.0245513916015625, 0.00864410400390625, -0.01061248779296875, -0.0005040168762207031, 0.07275390625, 0.0150299072265625, -0.02020263671875, 0.0172882080078125, -0.058502197265625, 0.01154327392578125, -0.01131439208984375, 0.0224151611328125, 0.031494140625, -0.079345703125, -0.0008969306945800781, -0.034088134765625, -0.03619384765625, 0.036712646484375, 0.0212860107421875, -0.059173583984375, 0.05853271484375, -0.0025310516357421875, 0.016876220703125, -0.0163726806640625, -0.019256591796875, -0.005039215087890625, -0.0302886962890625, 0.0269927978515625, -0.0213470458984375, -0.055511474609375, -0.027313232421875, -0.01117706298828125, 0.006694793701171875, 0.003936767578125, 0.052886962890625, 0.00629425048828125, 0.0155487060546875, -0.05413818359375, -0.002368927001953125, -0.02069091796875, -0.01166534423828125, 0.0010433197021484375, 0.033905029296875, -0.001708984375, -0.0096435546875, -0.0706787109375, 0.087890625, -0.00608062744140625, -0.00446319580078125, 0.07708740234375, 0.0313720703125, -0.031402587890625, -0.031097412109375, -0.0229644775390625, -0.0226898193359375, 0.01015472412109375, 0.0165252685546875, -0.0169830322265625, 0.01837158203125, -0.023345947265625, -0.01448822021484375, 0.0086822509765625, 0.01320648193359375, -0.03887939453125, 0.0236663818359375, -0.0108489990234375, 0.0110931396484375, 0.0221710205078125, 0.025604248046875, -0.0096282958984375, 0.00991058349609375, -0.01224517822265625, 0.043792724609375, -0.01337432861328125, 0.046051025390625, 0.01727294921875, 0.0087127685546875, -0.050628662109375, -0.0277557373046875, 0.0156707763671875, -0.007801055908203125, -0.0009741783142089844, -0.043914794921875, -0.005107879638671875, -0.0218658447265625, 0.002292633056640625, -0.00679779052734375, -0.019927978515625, -0.015106201171875, 0.03857421875, -0.027618408203125, -0.0325927734375, -0.09423828125, -0.0004239082336425781, 0.0170440673828125, -0.005390167236328125, -0.02679443359375, 0.01059722900390625, -0.01824951171875, 0.016204833984375, -0.00266265869140625, -0.0035877227783203125, 0.01480865478515625, 0.032257080078125, -0.041473388671875, 0.023590087890625, -0.0330810546875, -0.042694091796875, -0.0032100677490234375, 0.0164947509765625, 0.03350830078125, 0.0022602081298828125, 0.04052734375, 0.024444580078125, -0.011383056640625, 0.09033203125, -0.058746337890625, -0.03265380859375, -0.0225830078125, 0.033172607421875, 0.0029239654541015625, -0.04168701171875, -0.0157928466796875, 0.01105499267578125, 0.00032639503479003906, -0.0006341934204101562, -0.024871826171875, -0.0200958251953125, -0.050445556640625, -0.08563232421875, 0.0413818359375, 0.00229644775390625, -0.039886474609375, 0.043182373046875, -0.0006203651428222656, 0.002777099609375, -0.0240631103515625, 0.00848388671875, -0.0217132568359375, -0.0123748779296875, -0.023101806640625, -0.0023822784423828125, 0.055999755859375, -0.01259613037109375, -0.0096588134765625, -0.0208282470703125, 0.0203704833984375, 0.004543304443359375, 0.0101318359375, 0.0083770751953125, 0.005146026611328125, 0.01629638671875, 0.01454925537109375, -0.05096435546875, -0.0006113052368164062, -0.0186309814453125, 0.022674560546875, -0.0235748291015625, -0.01186370849609375, -0.032745361328125, -0.006195068359375, 0.0723876953125, 0.10107421875, 0.0163726806640625, -0.0267333984375, 0.0166473388671875, 0.0016260147094726562, -0.0070953369140625, 0.004856109619140625, 0.0195159912109375, -0.0367431640625, -0.01540374755859375, 0.017120361328125, -0.0012960433959960938, -0.0005645751953125, -0.025970458984375, -0.0256805419921875, -0.019561767578125, 0.0023136138916015625, 0.01251983642578125, -0.0191802978515625, 0.03228759765625, -0.012054443359375, -0.027801513671875, -0.04449462890625, -0.003658294677734375, -0.00063323974609375, -0.045318603515625, -0.039947509765625, -0.037994384765625, -0.0166015625, -0.0079193115234375, 0.06292724609375, -0.0172882080078125, 0.01097869873046875, -0.0509033203125, 0.0187225341796875, -0.0284576416015625, 0.01158905029296875, 0.0335693359375, 0.0107421875, -0.037322998046875, -0.0143890380859375, 0.020782470703125, -0.0118865966796875, -0.0190277099609375, 0.01409149169921875, -0.022979736328125, 0.0362548828125, 0.01280975341796875, -0.020355224609375, 0.0487060546875, -0.0230712890625, -0.0078277587890625, 0.01476287841796875, -0.0013332366943359375, -0.0626220703125, 0.042144775390625, 0.033477783203125, 0.032012939453125, 0.039947509765625 ]
4a11d3333336be1cb6bfb68df494fd052347947f
Wordpress Stackexchange Q: Create unique robots.txt for every site on multisite-installation Does anyone know how I can have a unique robots.txt file for every domain served by my wp-multisite-installation? I did a search on plugins but couldn't find anything suitable. A: Straight from the source, (line 1845 wp-includes/functions.php, 3.3.1): function do_robots() { header( 'Content-Type: text/plain; charset=utf-8' ); do_action( 'do_robotstxt' ); $output = "User-agent: *\n"; $public = get_option( 'blog_public' ); if ( '0' == $public ) { $output .= "Disallow: /\n"; } else { $site_url = parse_url( site_url() ); $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : ''; $output .= "Disallow: $path/wp-admin/\n"; $output .= "Disallow: $path/wp-includes/\n"; } echo apply_filters('robots_txt', $output, $public); } So to customise it: function my_custom_robots( $robots ) { if ( my_condition() ) $robots .= "\nDisallow: /something/else/"; return $robots; } add_filter( 'robots_txt', 'my_custom_robots' );
Q: Create unique robots.txt for every site on multisite-installation Does anyone know how I can have a unique robots.txt file for every domain served by my wp-multisite-installation? I did a search on plugins but couldn't find anything suitable. A: Straight from the source, (line 1845 wp-includes/functions.php, 3.3.1): function do_robots() { header( 'Content-Type: text/plain; charset=utf-8' ); do_action( 'do_robotstxt' ); $output = "User-agent: *\n"; $public = get_option( 'blog_public' ); if ( '0' == $public ) { $output .= "Disallow: /\n"; } else { $site_url = parse_url( site_url() ); $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : ''; $output .= "Disallow: $path/wp-admin/\n"; $output .= "Disallow: $path/wp-includes/\n"; } echo apply_filters('robots_txt', $output, $public); } So to customise it: function my_custom_robots( $robots ) { if ( my_condition() ) $robots .= "\nDisallow: /something/else/"; return $robots; } add_filter( 'robots_txt', 'my_custom_robots' ); A: I was able to get this working to create a sitemap using the following: function my_custom_robots( $robots ){ $GLOBALS['current_blog']->blog_id; if ( $blog_id !=(1) ) $robots .= "Sitemap: /sitemap.xml"; return $robots; } add_filter( 'robots_txt', 'my_custom_robots' );
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:416077", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38859" }
[ 0.079833984375, -0.0276947021484375, 0.044830322265625, -0.04254150390625, 0.004451751708984375, -0.016448974609375, 0.049407958984375, -0.0198822021484375, -0.049407958984375, 0.004726409912109375, -0.0224761962890625, 0.051239013671875, -0.05853271484375, -0.011322021484375, 0.0268402099609375, -0.045806884765625, 0.0201416015625, 0.037200927734375, 0.047454833984375, 0.009674072265625, 0.0096588134765625, 0.032745361328125, -0.007770538330078125, 0.039764404296875, 0.02984619140625, -0.06964111328125, 0.061737060546875, -0.013092041015625, 0.042999267578125, -0.0179443359375, 0.0210418701171875, -0.0063323974609375, 0.0169525146484375, -0.02349853515625, 0.0012006759643554688, -0.0699462890625, -0.0118255615234375, -0.009185791015625, -0.0171661376953125, 0.025146484375, 0.0244903564453125, -0.0180511474609375, 0.03997802734375, 0.012939453125, 0.016845703125, -0.03216552734375, 0.0276336669921875, -0.041778564453125, 0.026336669921875, 0.0115509033203125, -0.004421234130859375, 0.0014820098876953125, 0.0030078887939453125, -0.033172607421875, -0.01751708984375, -0.007354736328125, 0.028411865234375, -0.029144287109375, 0.02752685546875, -0.03155517578125, -0.029571533203125, -0.004619598388671875, 0.033294677734375, 0.00936126708984375, -0.029449462890625, -0.0159454345703125, -0.002185821533203125, 0.01055145263671875, -0.0399169921875, -0.03802490234375, 0.0369873046875, -0.0229034423828125, 0.00212860107421875, -0.01409912109375, -0.01078033447265625, -0.0142822265625, -0.01495361328125, -0.054656982421875, 0.029876708984375, -0.0016145706176757812, 0.0096588134765625, -0.05035400390625, 0.0074462890625, -0.0182647705078125, 0.0162200927734375, 0.01824951171875, -0.0119781494140625, -0.0011386871337890625, -0.048126220703125, -0.000003814697265625, -0.041839599609375, -0.0171356201171875, -0.03173828125, -0.003513336181640625, -0.0187225341796875, 0.0127716064453125, 0.0205078125, 0.048675537109375, -0.0323486328125, 0.031005859375, 0.013397216796875, -0.040618896484375, 0.070068359375, -0.0615234375, 0.0186920166015625, 0.0711669921875, 0.00955963134765625, -0.009246826171875, 0.0089569091796875, -0.0032806396484375, 0.005275726318359375, -0.0017986297607421875, 0.01007843017578125, -0.035400390625, -0.03167724609375, -0.00977325439453125, -0.01097869873046875, -0.0228118896484375, 0.005859375, -0.053619384765625, 0.00957489013671875, 0.01416015625, 0.027984619140625, -0.00873565673828125, -0.005229949951171875, 0.0010633468627929688, -0.022125244140625, -0.04876708984375, 0.0118255615234375, 0.010009765625, -0.0199432373046875, 0.0201416015625, 0.02447509765625, 0.0128936767578125, -0.01230621337890625, -0.01195526123046875, 0.01172637939453125, 0.018829345703125, -0.0055084228515625, -0.00968170166015625, 0.009063720703125, -0.032257080078125, -0.0179290771484375, -0.0087890625, -0.01043701171875, 0.01132965087890625, 0.02886962890625, 0.0231475830078125, -0.010528564453125, -0.0172271728515625, -0.0251007080078125, 0.01384735107421875, 0.034576416015625, -0.010009765625, -0.00183868408203125, -0.035491943359375, 0.006725311279296875, -0.0316162109375, -0.0139007568359375, -0.0226898193359375, 0.01256561279296875, 0.006145477294921875, 0.0129547119140625, -0.022552490234375, -0.004093170166015625, -0.01654052734375, -0.01264190673828125, 0.00885009765625, 0.0100860595703125, 0.0147857666015625, -0.056976318359375, -0.006927490234375, -0.01348876953125, 0.004436492919921875, -0.00402069091796875, 0.037506103515625, 0.01218414306640625, 0.0138397216796875, 0.03924560546875, 0.03204345703125, 0.0007476806640625, -0.016021728515625, 0.07830810546875, -0.01568603515625, -0.08203125, 0.041595458984375, -0.0037746429443359375, 0.0947265625, 0.04425048828125, 0.0190582275390625, 0.01363372802734375, -0.033416748046875, -0.04058837890625, 0.044525146484375, -0.00020563602447509766, -0.006938934326171875, -0.03106689453125, -0.0002944469451904297, -0.00605010986328125, -0.03314208984375, -0.032257080078125, -0.0039520263671875, 0.03753662109375, -0.00954437255859375, -0.0161590576171875, 0.0389404296875, -0.034576416015625, 0.049163818359375, -0.03460693359375, -0.013580322265625, 0.002872467041015625, -0.034515380859375, 0.006778717041015625, 0.0020618438720703125, 0.0032863616943359375, 0.020111083984375, 0.0031414031982421875, 0.045135498046875, 0.02508544921875, 0.0286712646484375, 0.028533935546875, -0.0416259765625, 0.01441192626953125, -0.03033447265625, 0.017822265625, 0.0252227783203125, -0.028564453125, 0.01230621337890625, 0.021453857421875, 0.0181884765625, 0.0185546875, 0.01654052734375, 0.08038330078125, 0.052459716796875, -0.00418853759765625, -0.0113525390625, 0.037689208984375, -0.099609375, 0.00171661376953125, 0.05133056640625, 0.0511474609375, 0.0167083740234375, 0.0123138427734375, 0.0196685791015625, 0.028900146484375, -0.038909912109375, 0.038909912109375, -0.022979736328125, 0.00423431396484375, 0.0217437744140625, -0.021759033203125, -0.00446319580078125, 0.0269012451171875, -0.04949951171875, 0.009033203125, 0.038116455078125, -0.037841796875, -0.033203125, -0.00036716461181640625, -0.005344390869140625, 0.016937255859375, -0.021484375, -0.020294189453125, 0.0186920166015625, 0.00464630126953125, 0.0158538818359375, 0.0175018310546875, 0.008575439453125, -0.032623291015625, 0.016357421875, 0.0180511474609375, 0.0052642822265625, -0.003108978271484375, 0.00811767578125, 0.0322265625, 0.037109375, -0.0307769775390625, -0.0006413459777832031, -0.0096893310546875, -0.0033721923828125, -0.0131988525390625, 0.038330078125, -0.00986480712890625, -0.01251983642578125, 0.005702972412109375, -0.025390625, -0.0153961181640625, -0.0274200439453125, -0.00647735595703125, -0.028564453125, -0.01114654541015625, 0.0272674560546875, -0.045928955078125, 0.0479736328125, 0.0199432373046875, -0.021026611328125, 0.02301025390625, -0.06787109375, 0.05023193359375, -0.05169677734375, 0.0526123046875, 0.06781005859375, -0.03497314453125, 0.036163330078125, 0.005001068115234375, 0.0041961669921875, 0.01030731201171875, -0.005702972412109375, -0.0218963623046875, 0.0297698974609375, -0.0875244140625, -0.00592041015625, 0.0063018798828125, 0.014129638671875, 0.0241546630859375, -0.035369873046875, 0.019561767578125, -0.00467681884765625, -0.07025146484375, -0.07080078125, 0.02764892578125, -0.023040771484375, -0.00583648681640625, -0.034820556640625, -0.01861572265625, -0.00994110107421875, -0.04254150390625, -0.00199127197265625, -0.042510986328125, 0.00589752197265625, -0.066650390625, -0.0418701171875, -0.055206298828125, 0.0252532958984375, -0.02471923828125, 0.00572967529296875, 0.0007815361022949219, 0.034637451171875, 0.01532745361328125, -0.0181732177734375, 0.024688720703125, 0.01363372802734375, 0.001377105712890625, -0.01399993896484375, 0.00914764404296875, -0.0273590087890625, 0.0222625732421875, 0.0018606185913085938, 0.009674072265625, 0.036468505859375, -0.01326751708984375, -0.0105743408203125, -0.007171630859375, -0.0159149169921875, 0.006221771240234375, -0.0221405029296875, 0.004192352294921875, -0.016754150390625, -0.01152801513671875, -0.046905517578125, 0.026702880859375, -0.018096923828125, 0.02874755859375, 0.096923828125, -0.005344390869140625, -0.039581298828125, -0.004970550537109375, 0.06915283203125, 0.0117645263671875, -0.0012159347534179688, -0.0044403076171875, -0.000946044921875, -0.006572723388671875, 0.003551483154296875, 0.012298583984375, -0.0052032470703125, 0.038604736328125, 0.00392913818359375, -0.005123138427734375, 0.004146575927734375, 0.0114898681640625, -0.0308990478515625, 0.048736572265625, -0.06982421875, -0.04931640625, 0.02313232421875, -0.054473876953125, 0.044677734375, -0.0673828125, -0.0208740234375, -0.01666259765625, 0.10858154296875, -0.03448486328125, -0.033172607421875, -0.0211029052734375, 0.021392822265625, 0.025634765625, -0.038848876953125, 0.0435791015625, -0.041168212890625, -0.08013916015625, 0.031890869140625, -0.0166015625, -0.01312255859375, -0.0198211669921875, -0.0487060546875, -0.035675048828125, -0.046478271484375, 0.0266571044921875, 0.0016832351684570312, 0.059967041015625, -0.00567626953125, 0.045684814453125, -0.0101165771484375, -0.014923095703125, -0.05450439453125, -0.014984130859375, 0.007373809814453125, -0.04998779296875, 0.00885009765625, 0.03961181640625, 0.01702880859375, -0.001033782958984375, 0.01554107666015625, 0.01296234130859375, -0.042572021484375, -0.0030670166015625, -0.028717041015625, 0.00337982177734375, 0.031341552734375, -0.0308685302734375, -0.00414276123046875, -0.0079498291015625, 0.0017347335815429688, -0.029327392578125, 0.033660888671875, -0.006977081298828125, 0.0037631988525390625, 0.04290771484375, -0.0308074951171875, -0.0538330078125, -0.038665771484375, -0.00899505615234375, 0.024688720703125, 0.003063201904296875, -0.022796630859375, -0.04376220703125, -0.0689697265625, -0.023223876953125, -0.018218994140625, -0.04339599609375, 0.0299530029296875, 0.0261993408203125, 0.035125732421875, 0.01073455810546875, -0.055877685546875, -0.00933074951171875, 0.0239410400390625, 0.01922607421875, 0.0423583984375, 0.024932861328125, -0.007297515869140625, 0.0120849609375, 0.0034999847412109375, -0.01236724853515625, -0.01238250732421875, 0.0660400390625, 0.00539398193359375, -0.0095672607421875, 0.0159912109375, -0.012603759765625, -0.00019478797912597656, 0.0394287109375, -0.0252227783203125, 0.00162506103515625, -0.007244110107421875, 0.039215087890625, -0.04638671875, 0.024017333984375, -0.036590576171875, -0.056121826171875, 0.030914306640625, -0.0189056396484375, -0.0105438232421875, -0.003021240234375, 0.005100250244140625, -0.006824493408203125, -0.021087646484375, 0.026611328125, 0.007343292236328125, 0.03564453125, -0.034698486328125, 0.042388916015625, 0.0228729248046875, -0.0023345947265625, -0.01226806640625, -0.01320648193359375, 0.019561767578125, -0.0006098747253417969, -0.038238525390625, 0.0266265869140625, -0.0008983612060546875, 0.00214385986328125, 0.0213775634765625, 0.04254150390625, 0.040252685546875, 0.01837158203125, -0.0367431640625, -0.0108184814453125, 0.0218353271484375, -0.0112457275390625, -0.040802001953125, -0.0168914794921875, -0.0181732177734375, -0.01019287109375, 0.0161895751953125, 0.007587432861328125, -0.033935546875, 0.0208282470703125, -0.00511932373046875, 0.00963592529296875, 0.0745849609375, -0.0203399658203125, 0.003284454345703125, 0.033905029296875, -0.0572509765625, 0.0181732177734375, 0.0094757080078125, -0.0234527587890625, -0.01381683349609375, 0.030059814453125, 0.046875, 0.0268707275390625, 0.0034542083740234375, -0.01306915283203125, -0.028350830078125, -0.02069091796875, 0.03033447265625, 0.024505615234375, -0.0261383056640625, -0.028411865234375, -0.0357666015625, -0.01446533203125, -0.004299163818359375, 0.0003535747528076172, -0.0299224853515625, -0.060455322265625, -0.028839111328125, -0.0104827880859375, -0.016143798828125, -0.033660888671875, -0.02508544921875, -0.0177154541015625, 0.0021572113037109375, -0.006519317626953125, -0.066162109375, -0.052093505859375, 0.00788116455078125, -0.005008697509765625, 0.0204925537109375, -0.01727294921875, 0.035430908203125, -0.0167388916015625, -0.0246124267578125, 0.0213623046875, 0.0256500244140625, 0.023040771484375, 0.0167388916015625, -0.005863189697265625, 0.00501251220703125, 0.00475311279296875, -0.01236724853515625, 0.0241241455078125, -0.00864410400390625, -0.0277099609375, -0.020233154296875, -0.015594482421875, -0.0032901763916015625, 0.00797271728515625, 0.035125732421875, -0.00635528564453125, 0.024200439453125, -0.01922607421875, 0.00693511962890625, -0.062744140625, 0.0335693359375, 0.060455322265625, 0.01100921630859375, 0.00012540817260742188, 0.03961181640625, 0.04827880859375, -0.025390625, -0.006565093994140625, -0.053497314453125, -0.00565338134765625, -0.0256195068359375, 0.00733184814453125, 0.058990478515625, 0.0596923828125, 0.000881195068359375, 0.026702880859375, 0.006275177001953125, -0.0024547576904296875, -0.019989013671875, -0.042694091796875, 0.00021696090698242188, 0.032196044921875, -0.0245361328125, -0.01103973388671875, 0.018218994140625, 0.0033245086669921875, -0.0178985595703125, 0.0084686279296875, -0.004154205322265625, 0.024658203125, 0.00011152029037475586, -0.05670166015625, 0.04937744140625, 0.06573486328125, 0.01763916015625, 0.0498046875, -0.00014257431030273438, 0.01971435546875, 0.01354217529296875, -0.002590179443359375, 0.01959228515625, -0.044342041015625, 0.028167724609375, -0.0179290771484375, -0.016082763671875, 0.016204833984375, -0.0151214599609375, -0.0282135009765625, -0.004364013671875, 0.0199127197265625, -0.0200042724609375, -0.007843017578125, 0.0052947998046875, 0.00170135498046875, 0.0023212432861328125, 0.00792694091796875, -0.0095062255859375, -0.0245513916015625, 0.010772705078125, 0.0005512237548828125, -0.0193939208984375, -0.0030879974365234375, 0.00647735595703125, -0.0196990966796875, 0.02374267578125, 0.0064697265625, 0.01378631591796875, 0.0206146240234375, -0.032440185546875, -0.0197296142578125, 0.0191802978515625, 0.01172637939453125, -0.00443267822265625, -0.0102386474609375, -0.01064300537109375, -0.0129547119140625, 0.0023250579833984375, -0.043853759765625, 0.0021228790283203125, 0.007110595703125, -0.018035888671875, 0.04522705078125, 0.040313720703125, 0.02001953125, -0.035919189453125, 0.03045654296875, -0.031005859375, 0.0268402099609375, -0.01465606689453125, 0.0181732177734375, 0.0279541015625, -0.036376953125, 0.0200958251953125, 0.01403045654296875, -0.027587890625, -0.015228271484375, -0.007244110107421875, 0.0714111328125, -0.03900146484375, -0.00494384765625, 0.041015625, 0.019256591796875, -0.0184173583984375, -0.01837158203125, 0.019317626953125, -0.09527587890625, -0.07073974609375, 0.00638580322265625, -0.052947998046875, 0.00763702392578125, -0.00377655029296875, -0.08428955078125, 0.11029052734375, -0.0095977783203125, 0.071044921875, 0.00801849365234375, 0.0325927734375, -0.0003833770751953125, 0.020599365234375, -0.0004298686981201172, 0.023040771484375, -0.007808685302734375, 0.0231170654296875, -0.032684326171875, -0.0239105224609375, 0.0107421875, 0.0821533203125, 0.00551605224609375, 0.017547607421875, -0.0301971435546875, 0.0038433074951171875, 0.007293701171875, -0.0156097412109375, -0.01514434814453125, 0.056915283203125, -0.025604248046875, 0.043487548828125, 0.033660888671875, -0.077880859375, 0.0166168212890625, -0.01534271240234375, -0.00830841064453125, -0.00774383544921875, -0.005130767822265625, -0.01364898681640625, -0.0236358642578125, -0.037811279296875, -0.053802490234375, 0.004871368408203125, 0.01064300537109375, 0.033905029296875, -0.00543212890625, 0.01483154296875, 0.0296630859375, -0.038482666015625, 0.0194549560546875, -0.0285491943359375, 0.058929443359375, 0.0114593505859375, 0.0122833251953125, 0.035980224609375, 0.01290130615234375, 0.036102294921875, 0.0318603515625, 0.0084686279296875, 0.0213470458984375, 0.022003173828125, 0.01413726806640625, 0.01447296142578125, 0.0224609375, -0.0000033974647521972656, 0.04052734375, 0.0163726806640625, 0.016265869140625, -0.032501220703125, -0.0267333984375, 0.00550079345703125, 0.00608062744140625, 0.047027587890625, 0.0099334716796875, 0.0750732421875, -0.0273590087890625, -0.0299072265625, 0.00157928466796875, -0.012420654296875, -0.00244903564453125, -0.01503753662109375, 0.01194000244140625, 0.032989501953125, 0.033416748046875, 0.0017900466918945312, -0.0531005859375, 0.01739501953125, 0.016265869140625, 0.0819091796875, 0.0236358642578125, 0.06451416015625, -0.0249786376953125, -0.049560546875, 0.008026123046875, 0.04559326171875, -0.0000591278076171875, -0.025360107421875, -0.0259246826171875, -0.05328369140625, 0.0201873779296875, 0.036102294921875, 0.04315185546875, 0.04986572265625, 0.046234130859375, 0.033355712890625, 0.0190277099609375, 0.018096923828125, 0.072265625, -0.01155853271484375, 0.0186920166015625, -0.04205322265625, 0.0114593505859375, -0.0137176513671875, -0.0119171142578125, 0.00046563148498535156, 0.0178985595703125, 0.00798797607421875, -0.00516510009765625, 0.0074615478515625, -0.0069580078125, -0.0389404296875, 0.015655517578125, -0.0106353759765625, 0.0528564453125, 0.015777587890625, -0.039459228515625, 0.003368377685546875, -0.057342529296875, -0.060546875, 0.02398681640625, 0.04278564453125, -0.01372528076171875, 0.00771331787109375, 0.01477813720703125, 0.025146484375, 0.0021800994873046875, -0.030548095703125, -0.01366424560546875, -0.01409912109375, 0.037872314453125, 0.0088653564453125, -0.03778076171875, -0.00833892822265625, 0.0036487579345703125, -0.0084228515625, 0.01373291015625, 0.034393310546875, 0.0104522705078125, 0.0115203857421875, 0.017913818359375, 0.0093231201171875, -0.0171661376953125, -0.02459716796875, 0.0596923828125, -0.0011835098266601562, 0.0112457275390625, -0.01202392578125, -0.038330078125, -0.00738525390625, 0.03021240234375, -0.044403076171875, 0.00785064697265625, -0.019866943359375, 0.0172271728515625, -0.0183563232421875, 0.072021484375, -0.0190887451171875, -0.05145263671875, -0.1090087890625, -0.0282135009765625, 0.06182861328125, 0.04913330078125, -0.0238800048828125, 0.023223876953125, 0.0087127685546875, -0.020904541015625, 0.0201568603515625, -0.01464080810546875, 0.0147857666015625, 0.030487060546875, 0.0117034912109375, -0.01047515869140625, -0.064208984375, -0.03521728515625, -0.0126953125, -0.0267791748046875, -0.0039043426513671875, -0.030303955078125, -0.022003173828125, -0.01544952392578125, 0.0251617431640625, 0.009796142578125, -0.042236328125, 0.007122039794921875, 0.0418701171875, -0.02154541015625, -0.00164031982421875, -0.03607177734375, -0.03009033203125, -0.0267791748046875, 0.0038776397705078125, 0.0312042236328125, 0.0017242431640625, -0.0185089111328125, -0.045989990234375, 0.0158538818359375, 0.07171630859375, 0.00322723388671875, -0.045989990234375, 0.01474761962890625, -0.0606689453125, 0.057830810546875, 0.01145172119140625, 0.04510498046875, -0.003093719482421875, 0.0234832763671875, 0.0034275054931640625, -0.0178070068359375, 0.008392333984375, 0.08233642578125, 0.03497314453125, -0.0256805419921875, -0.005748748779296875, 0.00872039794921875, -0.035369873046875, -0.01409149169921875, -0.01146697998046875, 0.0241241455078125, -0.00055694580078125, -0.030059814453125, 0.0157318115234375, -0.0308074951171875, -0.018646240234375, -0.056427001953125, 0.0117645263671875, -0.10284423828125, -0.031280517578125, -0.0215301513671875, 0.0034961700439453125, 0.0092010498046875, -0.03472900390625, -0.090087890625, 0.0026092529296875, -0.0213623046875, -0.038848876953125, -0.033294677734375, -0.0215911865234375, 0.00220489501953125, -0.004520416259765625, -0.01140594482421875, -0.0118865966796875, -0.04779052734375, 0.0213470458984375, -0.0168914794921875, 0.0692138671875, -0.02362060546875, 0.005096435546875, 0.06817626953125, 0.037506103515625, 0.049285888671875, -0.0628662109375, 0.04058837890625, -0.037322998046875, 0.052947998046875, 0.05181884765625, -0.026580810546875, -0.039520263671875, -0.0120697021484375, -0.06781005859375, -0.0113525390625, 0.01513671875, -0.044952392578125, 0.005733489990234375, 0.1060791015625, 0.07916259765625, 0.039276123046875, -0.04986572265625, -0.0293731689453125, -0.01175689697265625, -0.007289886474609375, -0.007564544677734375, 0.00511932373046875, -0.053985595703125, -0.008880615234375, -0.0076904296875, -0.03619384765625, 0.030120849609375, -0.00676727294921875, -0.036224365234375, 0.0273895263671875, 0.01580810546875, -0.0113525390625, -0.04144287109375, 0.0300750732421875, 0.0305023193359375, -0.023193359375, 0.0258941650390625, -0.034271240234375, 0.0004622936248779297, 0.0254058837890625, -0.041748046875, -0.029022216796875, 0.0216522216796875, -0.058013916015625, 0.0110015869140625, -0.004962921142578125, 0.01081085205078125, -0.037139892578125, 0.0154876708984375, -0.021942138671875, 0.03741455078125, -0.00031113624572753906, 0.042694091796875, 0.0159759521484375, 0.0254974365234375, 0.0180511474609375, 0.059814453125, -0.03466796875, 0.01320648193359375, -0.0311737060546875, 0.02630615234375, -0.04339599609375, 0.02294921875, 0.00450897216796875, -0.014892578125, 0.0098876953125, -0.017608642578125, -0.00682830810546875, -0.03570556640625, 0.017730712890625, -0.042449951171875, -0.0169525146484375, 0.0248565673828125 ]
761b45405001445afee00b5e788c21bc9862530b
Wordpress Stackexchange Q: If Post Type equals, then display X content I just need to say in single.php if post type = x then display y. Else, don't display it. A: Is this what you're looking for? (where 'product' would be the post type) if ( is_singular('product') ) { // do stuff } else { // do something else }
Q: If Post Type equals, then display X content I just need to say in single.php if post type = x then display y. Else, don't display it. A: Is this what you're looking for? (where 'product' would be the post type) if ( is_singular('product') ) { // do stuff } else { // do something else } A: if( get_post_type() == 'post_type_slug' ) { //do some stuff } else { //do other stuff } Should do it, alternately you can use templates to handle that, which wordpress has setup pretty well by default. See the codex page on template hierarchy, specifically I find the visual overview to be quite useful. A: It depends a bit on what exactly y is, but this should probably help you out: http://codex.wordpress.org/Conditional_Tags#A_Post_Type
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:416105", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/38956" }
[ 0.04022216796875, 0.0199432373046875, -0.037872314453125, -0.0246734619140625, 0.03765869140625, -0.027435302734375, 0.0350341796875, -0.01214599609375, 0.01806640625, -0.002414703369140625, -0.0256500244140625, -0.023223876953125, -0.058990478515625, -0.034515380859375, -0.006305694580078125, -0.0509033203125, 0.004482269287109375, 0.0153961181640625, 0.033447265625, -0.0155029296875, 0.007724761962890625, -0.0102386474609375, 0.003986358642578125, 0.00004756450653076172, 0.007640838623046875, -0.01168060302734375, 0.05255126953125, -0.051849365234375, 0.0001780986785888672, -0.0286102294921875, 0.0100555419921875, 0.0251922607421875, -0.0038547515869140625, 0.01480865478515625, 0.017120361328125, 0.0352783203125, -0.006069183349609375, 0.020416259765625, 0.050079345703125, -0.0160369873046875, 0.017608642578125, -0.005504608154296875, 0.0302581787109375, 0.0021915435791015625, 0.007793426513671875, -0.0303497314453125, 0.023162841796875, -0.04833984375, 0.03826904296875, -0.023406982421875, 0.025787353515625, -0.01033782958984375, 0.0280303955078125, -0.0237274169921875, -0.0259857177734375, 0.005527496337890625, -0.0221099853515625, -0.022216796875, 0.040802001953125, -0.0196685791015625, -0.035919189453125, -0.04046630859375, 0.040252685546875, -0.0129852294921875, 0.0060577392578125, -0.002346038818359375, 0.01245880126953125, 0.0019044876098632812, -0.064208984375, -0.00396728515625, 0.054351806640625, -0.0301361083984375, 0.01102447509765625, 0.01087188720703125, 0.0261077880859375, -0.0333251953125, 0.0258026123046875, 0.003002166748046875, -0.0027637481689453125, 0.03765869140625, 0.0106201171875, 0.028778076171875, -0.0162506103515625, -0.04522705078125, 0.031982421875, 0.0009508132934570312, -0.0074310302734375, -0.0191497802734375, -0.030609130859375, -0.035858154296875, -0.0238189697265625, -0.022796630859375, -0.028533935546875, -0.012542724609375, -0.01233673095703125, -0.044189453125, 0.011566162109375, 0.00537872314453125, -0.0203094482421875, -0.0025920867919921875, 0.005176544189453125, -0.03375244140625, 0.01068115234375, -0.012298583984375, 0.0267791748046875, 0.00881195068359375, -0.01085662841796875, -0.04217529296875, 0.0655517578125, 0.0163726806640625, -0.008697509765625, 0.109130859375, -0.0292510986328125, -0.012786865234375, -0.001537322998046875, 0.0202484130859375, -0.050811767578125, 0.03326416015625, -0.01548004150390625, 0.038787841796875, 0.0002008676528930664, 0.044342041015625, 0.0272979736328125, -0.056365966796875, 0.00046253204345703125, 0.0222930908203125, -0.0102691650390625, -0.0670166015625, 0.038055419921875, 0.00518035888671875, -0.00608062744140625, 0.00811004638671875, 0.00833892822265625, 0.0034732818603515625, -0.026824951171875, -0.00998687744140625, 0.0117645263671875, 0.01081085205078125, -0.01427459716796875, 0.040435791015625, -0.004138946533203125, -0.0369873046875, 0.0186614990234375, -0.00403594970703125, -0.00982666015625, 0.042999267578125, 0.0288238525390625, 0.00203704833984375, -0.0199432373046875, -0.07965087890625, 0.0065460205078125, -0.0016832351684570312, 0.003810882568359375, 0.0187225341796875, 0.0186309814453125, 0.0121002197265625, 0.007160186767578125, 0.0066680908203125, -0.00966644287109375, -0.0049896240234375, 0.049713134765625, 0.0084991455078125, 0.04046630859375, -0.0182342529296875, -0.0322265625, -0.0024890899658203125, -0.0953369140625, -0.019561767578125, 0.00623321533203125, -0.045806884765625, -0.0258026123046875, 0.0201568603515625, 0.0291595458984375, -0.0150604248046875, -0.00795745849609375, 0.00313568115234375, -0.0232086181640625, -0.0172271728515625, 0.0279388427734375, 0.032867431640625, -0.01134490966796875, -0.031951904296875, 0.0022792816162109375, 0.020904541015625, -0.058990478515625, 0.056915283203125, 0.00992584228515625, 0.00823974609375, 0.0023555755615234375, -0.01485443115234375, 0.0572509765625, 0.0352783203125, -0.039215087890625, 0.00878143310546875, 0.002178192138671875, -0.045745849609375, 0.01192474365234375, -0.0243377685546875, -0.01256561279296875, 0.018157958984375, 0.0243377685546875, 0.0029621124267578125, -0.0235748291015625, -0.003612518310546875, -0.056915283203125, -0.0275726318359375, -0.0121612548828125, 0.0098114013671875, -0.01247406005859375, 0.0242767333984375, 0.02337646484375, 0.0036907196044921875, -0.025115966796875, -0.01068878173828125, -0.01458740234375, -0.00450897216796875, 0.009429931640625, -0.00982666015625, -0.0125274658203125, 0.005466461181640625, -0.02923583984375, 0.003520965576171875, -0.048309326171875, 0.0194244384765625, 0.03997802734375, 0.0205841064453125, -0.00824737548828125, 0.007030487060546875, 0.044158935546875, 0.03656005859375, 0.005023956298828125, -0.018707275390625, -0.00031876564025878906, 0.0087432861328125, -0.036468505859375, 0.00569915771484375, 0.0037384033203125, -0.007381439208984375, 0.006549835205078125, 0.0430908203125, 0.020233154296875, 0.0008101463317871094, -0.007061004638671875, 0.0198211669921875, 0.03460693359375, 0.045257568359375, 0.03582763671875, -0.0261688232421875, 0.0032520294189453125, 0.05084228515625, -0.032196044921875, 0.01031494140625, 0.019989013671875, -0.054473876953125, -0.0084381103515625, 0.036376953125, -0.034210205078125, 0.027099609375, -0.012359619140625, 0.003131866455078125, -0.026275634765625, 0.038116455078125, 0.040435791015625, -0.01922607421875, 0.058807373046875, 0.006328582763671875, 0.033050537109375, 0.01922607421875, -0.0309906005859375, 0.021881103515625, 0.0032596588134765625, -0.017364501953125, -0.0012912750244140625, 0.06744384765625, 0.0033206939697265625, 0.0333251953125, -0.041015625, -0.02203369140625, 0.007965087890625, 0.039947509765625, -0.014373779296875, -0.004791259765625, -0.043487548828125, -0.01305389404296875, 0.029998779296875, 0.009979248046875, -0.012725830078125, -0.01245880126953125, 0.0211029052734375, 0.00032329559326171875, 0.01459503173828125, 0.038482666015625, -0.0285186767578125, 0.047576904296875, 0.0008454322814941406, -0.020782470703125, -0.0089263916015625, -0.0491943359375, 0.05963134765625, -0.05511474609375, 0.0180816650390625, 0.060089111328125, -0.0270843505859375, 0.0203094482421875, 0.019287109375, 0.00452423095703125, 0.02911376953125, 0.0237579345703125, -0.00229644775390625, 0.038116455078125, -0.0955810546875, -0.01421356201171875, 0.024627685546875, 0.01273345947265625, 0.04315185546875, -0.0173492431640625, 0.01690673828125, 0.037750244140625, -0.05780029296875, -0.078857421875, 0.0011777877807617188, -0.061370849609375, 0.0160675048828125, -0.044464111328125, -0.0139617919921875, -0.0069732666015625, -0.0272369384765625, -0.00769805908203125, -0.0004897117614746094, 0.0161590576171875, -0.07012939453125, -0.030120849609375, -0.060943603515625, 0.01873779296875, -0.023834228515625, 0.03094482421875, 0.007656097412109375, 0.03692626953125, 0.015716552734375, -0.06561279296875, 0.01116180419921875, 0.037841796875, -0.037841796875, 0.033966064453125, -0.023193359375, -0.04595947265625, 0.02899169921875, -0.01560211181640625, -0.01824951171875, 0.0015811920166015625, 0.0281219482421875, -0.0182952880859375, -0.0005669593811035156, -0.005306243896484375, 0.0570068359375, 0.0018024444580078125, -0.0380859375, 0.04864501953125, 0.0770263671875, -0.009674072265625, -0.04791259765625, -0.0003466606140136719, -0.0655517578125, 0.006870269775390625, 0.0546875, -0.00849151611328125, -0.01238250732421875, 0.007312774658203125, -0.030120849609375, -0.0235137939453125, -0.007778167724609375, -0.053436279296875, 0.052581787109375, 0.0009918212890625, 0.01318359375, 0.01369476318359375, -0.03997802734375, -0.041778564453125, 0.03570556640625, -0.0216064453125, 0.0037555694580078125, -0.0023975372314453125, -0.0024261474609375, -0.0287628173828125, -0.01056671142578125, 0.040740966796875, -0.0189666748046875, 0.0164947509765625, -0.04931640625, -0.02581787109375, -0.023468017578125, 0.062164306640625, -0.0736083984375, 0.0083770751953125, -0.034576416015625, -0.0037689208984375, -0.0248870849609375, -0.07373046875, -0.0633544921875, 0.0093994140625, 0.00218963623046875, 0.03192138671875, -0.0013723373413085938, 0.020477294921875, -0.054290771484375, 0.0007572174072265625, -0.0214691162109375, -0.007274627685546875, 0.0260772705078125, -0.0509033203125, 0.04400634765625, 0.04052734375, -0.0107421875, 0.047943115234375, -0.03192138671875, -0.0589599609375, -0.033843994140625, -0.019073486328125, 0.03863525390625, 0.0303497314453125, -0.0130462646484375, 0.00319671630859375, -0.0171356201171875, 0.032623291015625, -0.005687713623046875, -0.034576416015625, -0.0077972412109375, -0.0024967193603515625, -0.01209259033203125, 0.0169219970703125, -0.0440673828125, -0.005886077880859375, -0.0224609375, -0.0272979736328125, 0.00885009765625, 0.0352783203125, -0.0152740478515625, -0.0134124755859375, -0.010955810546875, -0.0070648193359375, -0.0489501953125, 0.0005908012390136719, 0.010894775390625, 0.04864501953125, -0.0251312255859375, 0.022064208984375, -0.0224761962890625, -0.076416015625, 0.02899169921875, 0.00897216796875, -0.048858642578125, 0.000164031982421875, 0.01491546630859375, 0.023590087890625, -0.0283966064453125, -0.030181884765625, 0.00626373291015625, 0.030029296875, 0.03179931640625, 0.04302978515625, 0.03582763671875, -0.0016908645629882812, 0.006500244140625, 0.03118896484375, -0.003879547119140625, -0.0024852752685546875, 0.086669921875, -0.0124664306640625, 0.00833892822265625, 0.0113983154296875, -0.044189453125, 0.01514434814453125, 0.031219482421875, 0.0131988525390625, -0.0293121337890625, 0.02911376953125, 0.036285400390625, -0.0202484130859375, -0.0005898475646972656, -0.0221405029296875, -0.0162811279296875, -0.0026378631591796875, 0.03240966796875, -0.009765625, 0.00240325927734375, 0.01212310791015625, -0.0190582275390625, -0.01535797119140625, -0.0220489501953125, 0.00600433349609375, 0.06866455078125, -0.0037689208984375, 0.0286102294921875, 0.01369476318359375, -0.028411865234375, -0.054229736328125, -0.0008153915405273438, 0.003185272216796875, -0.0026111602783203125, -0.0479736328125, -0.00037860870361328125, -0.00408935546875, 0.01201629638671875, 0.0194854736328125, 0.0205230712890625, -0.01277923583984375, -0.03143310546875, -0.01396942138671875, 0.0093841552734375, 0.01267242431640625, -0.0013751983642578125, -0.01342010498046875, 0.0030879974365234375, -0.0093536376953125, -0.0108184814453125, 0.019439697265625, 0.007579803466796875, -0.0102691650390625, 0.0136871337890625, -0.008941650390625, 0.025604248046875, 0.064697265625, 0.009735107421875, 0.031402587890625, -0.00919342041015625, -0.050384521484375, 0.01800537109375, -0.019439697265625, -0.01544189453125, -0.043365478515625, 0.00516510009765625, 0.0181427001953125, 0.01056671142578125, 0.039703369140625, 0.0183563232421875, 0.0280609130859375, -0.0206756591796875, 0.0186767578125, 0.028289794921875, -0.03570556640625, -0.00560760498046875, 0.0286102294921875, 0.00637054443359375, 0.003589630126953125, -0.029144287109375, 0.035186767578125, -0.0230865478515625, 0.03466796875, 0.0063629150390625, -0.031646728515625, 0.0279388427734375, 0.03143310546875, -0.0224456787109375, -0.053619384765625, 0.0103759765625, -0.044219970703125, 0.037628173828125, -0.0241241455078125, -0.03387451171875, -0.006458282470703125, -0.0200653076171875, 0.036376953125, -0.0260009765625, -0.0117950439453125, -0.0086517333984375, -0.0014057159423828125, 0.050262451171875, 0.02386474609375, -0.040771484375, 0.0089569091796875, -0.035552978515625, -0.0249786376953125, -0.005748748779296875, -0.0230255126953125, -0.05804443359375, -0.011199951171875, 0.0031681060791015625, 0.03192138671875, -0.0293731689453125, -0.031890869140625, 0.0073394775390625, -0.006610870361328125, -0.0068359375, 0.016815185546875, -0.005825042724609375, 0.0684814453125, 0.009521484375, 0.058441162109375, 0.0178375244140625, 0.031341552734375, -0.0177001953125, -0.0260467529296875, -0.01464080810546875, -0.048858642578125, 0.02008056640625, 0.016937255859375, 0.0175628662109375, 0.00677490234375, -0.003437042236328125, 0.0158538818359375, -0.03302001953125, 0.0137939453125, -0.003139495849609375, -0.032073974609375, 0.0261688232421875, 0.01561737060546875, -0.0030078887939453125, -0.048980712890625, -0.01224517822265625, 0.0294647216796875, 0.005298614501953125, -0.04705810546875, 0.0234375, 0.004581451416015625, 0.0173492431640625, 0.0316162109375, -0.03448486328125, 0.0240020751953125, 0.027191162109375, -0.01123046875, 0.03955078125, -0.0098419189453125, 0.01800537109375, 0.041778564453125, -0.039794921875, 0.0020160675048828125, 0.01690673828125, 0.00960540771484375, -0.03741455078125, -0.0021228790283203125, 0.001979827880859375, -0.0239410400390625, 0.026031494140625, 0.0958251953125, 0.08819580078125, -0.139404296875, 0.00010251998901367188, 0.018890380859375, -0.019775390625, 0.0081939697265625, -0.0281219482421875, 0.036590576171875, 0.0172882080078125, -0.0078887939453125, 0.0709228515625, -0.0232086181640625, -0.0106353759765625, -0.005237579345703125, 0.007762908935546875, 0.0107879638671875, 0.06402587890625, 0.0080718994140625, -0.07879638671875, 0.0012235641479492188, 0.055694580078125, -0.023651123046875, -0.027252197265625, 0.01500701904296875, -0.01444244384765625, 0.012786865234375, -0.044219970703125, 0.016876220703125, -0.03857421875, 0.022369384765625, 0.02044677734375, 0.020843505859375, -0.015289306640625, 0.057159423828125, -0.026397705078125, 0.0204010009765625, 0.019195556640625, -0.033843994140625, -0.047119140625, -0.01459503173828125, 0.00855255126953125, 0.0306549072265625, -0.07537841796875, 0.02764892578125, -0.06463623046875, 0.00982666015625, -0.01611328125, -0.04437255859375, 0.04296875, -0.01557159423828125, -0.004459381103515625, 0.044891357421875, 0.0297393798828125, -0.0290374755859375, -0.01258087158203125, -0.0166168212890625, -0.04156494140625, -0.003753662109375, -0.0209503173828125, -0.032806396484375, 0.0215911865234375, -0.013427734375, -0.07415771484375, 0.01220703125, -0.0029048919677734375, 0.05145263671875, -0.005252838134765625, -0.01474761962890625, 0.016357421875, -0.0225677490234375, -0.006183624267578125, 0.054931640625, -0.0011663436889648438, 0.05926513671875, -0.037506103515625, -0.0242462158203125, 0.043243408203125, 0.06591796875, 0.0362548828125, 0.0008563995361328125, -0.0423583984375, 0.01332855224609375, 0.0631103515625, 0.03338623046875, -0.00200653076171875, 0.038604736328125, -0.005268096923828125, 0.0150909423828125, 0.026763916015625, -0.01910400390625, 0.032745361328125, -0.00890350341796875, -0.02337646484375, 0.02093505859375, 0.0309295654296875, 0.03497314453125, 0.00560760498046875, 0.01375579833984375, -0.021484375, -0.007022857666015625, 0.028961181640625, 0.018035888671875, 0.01107025146484375, 0.03192138671875, 0.0156402587890625, -0.01004791259765625, 0.035797119140625, -0.036163330078125, 0.03668212890625, -0.01806640625, 0.0272674560546875, 0.036041259765625, 0.0157318115234375, 0.0802001953125, -0.009490966796875, 0.0178375244140625, 0.005641937255859375, 0.0167388916015625, -0.0166778564453125, 0.0305633544921875, 0.0299224853515625, -0.01480865478515625, -0.01024627685546875, 0.0303802490234375, 0.004154205322265625, 0.007495880126953125, -0.052734375, 0.0186004638671875, 0.0119476318359375, -0.01009368896484375, 0.00799560546875, -0.0255126953125, -0.022857666015625, 0.056365966796875, -0.04681396484375, 0.01290130615234375, 0.046875, 0.01097869873046875, -0.000255584716796875, 0.0007228851318359375, -0.06201171875, 0.002521514892578125, -0.062255859375, 0.037200927734375, 0.038543701171875, 0.076416015625, 0.0023822784423828125, 0.072509765625, -0.0158843994140625, -0.032379150390625, 0.0032520294189453125, -0.005615234375, -0.0391845703125, 0.02484130859375, -0.0657958984375, -0.05816650390625, 0.0196075439453125, 0.04840087890625, 0.039337158203125, -0.00789642333984375, -0.0095367431640625, 0.00887298583984375, 0.036895751953125, 0.0149078369140625, 0.0908203125, 0.01251983642578125, -0.0009493827819824219, -0.013671875, 0.0293426513671875, 0.020233154296875, -0.00039768218994140625, -0.016632080078125, 0.0509033203125, 0.0302886962890625, 0.0008802413940429688, 0.035064697265625, -0.0022144317626953125, -0.023651123046875, 0.049468994140625, 0.0088958740234375, 0.08905029296875, 0.0259552001953125, -0.0423583984375, -0.0111846923828125, -0.008331298828125, -0.0670166015625, 0.0504150390625, 0.055450439453125, 0.003284454345703125, -0.0295562744140625, 0.025299072265625, 0.00382232666015625, 0.0036640167236328125, 0.00736236572265625, -0.0002810955047607422, -0.0261383056640625, 0.0255279541015625, -0.01065826416015625, -0.06781005859375, -0.031494140625, -0.020355224609375, 0.01654052734375, -0.003284454345703125, 0.0045623779296875, 0.029510498046875, 0.0200653076171875, -0.050384521484375, 0.016204833984375, -0.045196533203125, -0.06585693359375, 0.0665283203125, -0.0072479248046875, -0.005706787109375, -0.0025501251220703125, -0.004467010498046875, -0.00431060791015625, 0.043365478515625, -0.0266571044921875, 0.005229949951171875, -0.05670166015625, 0.03564453125, -0.01525115966796875, 0.0455322265625, -0.0134429931640625, -0.006603240966796875, -0.00047278404235839844, -0.0016107559204101562, 0.0247344970703125, 0.013702392578125, -0.0005130767822265625, 0.03564453125, 0.0037593841552734375, -0.07177734375, 0.01727294921875, -0.078125, 0.00860595703125, 0.0225677490234375, 0.07476806640625, -0.017425537109375, -0.01433563232421875, -0.0216827392578125, 0.004184722900390625, 0.00414276123046875, 0.0214691162109375, -0.02313232421875, -0.000858306884765625, 0.007663726806640625, -0.0015554428100585938, 0.006259918212890625, -0.0290679931640625, -0.0188751220703125, 0.04052734375, -0.00765228271484375, -0.0259552001953125, 0.07373046875, -0.0028095245361328125, 0.010406494140625, -0.002010345458984375, -0.03369140625, 0.02227783203125, -0.044342041015625, 0.0279388427734375, -0.0233917236328125, 0.01336669921875, -0.05853271484375, 0.057586669921875, -0.08038330078125, -0.040863037109375, 0.015777587890625, -0.04425048828125, -0.0184173583984375, 0.01384735107421875, 0.033935546875, -0.048919677734375, 0.0170135498046875, -0.03729248046875, -0.05303955078125, -0.01971435546875, 0.05096435546875, 0.0626220703125, -0.06689453125, -0.0310821533203125, 0.0223541259765625, 0.047210693359375, 0.05877685546875, 0.0804443359375, -0.016815185546875, -0.0018568038940429688, 0.01535797119140625, -0.0066680908203125, -0.049560546875, 0.02166748046875, -0.05145263671875, -0.0272369384765625, -0.0101776123046875, 0.030303955078125, 0.05694580078125, -0.01238250732421875, -0.057525634765625, 0.0638427734375, -0.01287078857421875, -0.0218048095703125, -0.0109405517578125, -0.0098114013671875, 0.00890350341796875, 0.013916015625, -0.02313232421875, 0.0293731689453125, -0.026763916015625, 0.0059967041015625, -0.0054473876953125, -0.0029659271240234375, 0.04840087890625, -0.0284881591796875, -0.0285491943359375, -0.01534271240234375, -0.007781982421875, -0.02215576171875, -0.00762176513671875, 0.0168609619140625, 0.004962921142578125, 0.01361083984375, -0.035064697265625, 0.0252532958984375, 0.0206146240234375, 0.017242431640625, 0.03826904296875, -0.035797119140625, -0.033721923828125, -0.03155517578125, 0.0225677490234375, 0.025360107421875, 0.0134735107421875, -0.0249786376953125, 0.0247039794921875, -0.0298004150390625, -0.0823974609375, -0.01044464111328125, 0.0172576904296875, -0.023468017578125, 0.01812744140625, -0.034637451171875, -0.016265869140625, 0.0116729736328125, 0.0224609375, -0.04669189453125, -0.0007581710815429688, -0.00370025634765625, -0.012451171875, -0.0712890625, -0.0074005126953125, -0.01378631591796875, 0.01226043701171875, 0.0010433197021484375, -0.01215362548828125, 0.0205078125, -0.0188140869140625, 0.024566650390625, 0.033935546875, 0.0450439453125, -0.01861572265625, -0.01593017578125, 0.053924560546875, 0.0214691162109375, 0.0130462646484375, -0.0281219482421875, -0.01045989990234375, 0.02581787109375, 0.007022857666015625, 0.02801513671875, -0.019683837890625, 0.037872314453125, 0.0186309814453125, 0.00838470458984375, -0.02838134765625, 0.043182373046875, -0.002368927001953125, 0.0199127197265625, -0.01229095458984375, 0.0037364959716796875, 0.0325927734375, -0.039794921875, 0.0177764892578125, -0.02484130859375, 0.0003628730773925781, -0.030609130859375, 0.03363037109375, 0.0227813720703125, -0.038177490234375, 0.033294677734375 ]
8c9c52ca4a60e69ee019dab2f8d73da8b756b46e
Wordpress Stackexchange Q: Hook/Filter before and after comments I'm writing a plugin that needs to display a custom link immediately near the comments. I have the option in the plugin admin to display before or after. I'm familiar with the comments_array, but that doesn't allow me to just add a string of html just before the comments or just after the comments but before the comment form. the_content -- ?? custom link before ?? -- comments_array -- ?? custom link after ?? -- comment_form A: I think, this is the post, that you search; all hooks on comments form visualized: http://wpengineer.com/2205/comment-form-hooks-visualized/ alternativ all hooks: * *comment_form_before *comment_form_top *comment_form_before_fields *comment_form_after_fields *comment_form *comment_form_after
Q: Hook/Filter before and after comments I'm writing a plugin that needs to display a custom link immediately near the comments. I have the option in the plugin admin to display before or after. I'm familiar with the comments_array, but that doesn't allow me to just add a string of html just before the comments or just after the comments but before the comment form. the_content -- ?? custom link before ?? -- comments_array -- ?? custom link after ?? -- comment_form A: I think, this is the post, that you search; all hooks on comments form visualized: http://wpengineer.com/2205/comment-form-hooks-visualized/ alternativ all hooks: * *comment_form_before *comment_form_top *comment_form_before_fields *comment_form_after_fields *comment_form *comment_form_after A: do_action( 'comment_form_before' ); is called on line 1553 of /wp-includes/comment-template.php, right before the output of the comment form, that should handle that one for you. I'll update this if I can find the hook before the comments. edit It seems like you might be able to modify Walker_Comment (found in the same file as above) to output the first link with __construct or something, but I can't give you precise implementation at the moment (for lack of time).
wordpress
{ "language": "en", "length": 188, "provenance": "stackexchange_00019.jsonl.gz:416128", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39028" }
[ 0.059539794921875, -0.005626678466796875, -0.0219573974609375, -0.03826904296875, 0.01922607421875, -0.042938232421875, 0.040557861328125, 0.0040740966796875, -0.00836181640625, 0.0188446044921875, -0.0282135009765625, 0.003589630126953125, -0.0286407470703125, -0.0183868408203125, -0.0082244873046875, -0.046783447265625, 0.01206207275390625, 0.012725830078125, 0.033233642578125, -0.0288238525390625, 0.028839111328125, -0.0277557373046875, 0.0305938720703125, 0.0616455078125, 0.02435302734375, -0.041229248046875, 0.1480712890625, -0.02154541015625, 0.044921875, -0.0010156631469726562, 0.03338623046875, -0.0654296875, 0.0252838134765625, 0.01067352294921875, -0.0209503173828125, -0.0001360177993774414, 0.00603485107421875, -0.00495147705078125, -0.0174560546875, 0.047821044921875, 0.040679931640625, -0.0286102294921875, -0.0059967041015625, 0.0290985107421875, -0.01739501953125, -0.0122833251953125, 0.03558349609375, -0.0189666748046875, 0.038604736328125, 0.006961822509765625, 0.01097869873046875, 0.00923919677734375, 0.0242156982421875, -0.0137176513671875, -0.007080078125, 0.0119476318359375, -0.045867919921875, 0.026885986328125, 0.02325439453125, 0.01434326171875, 0.02447509765625, 0.0017080307006835938, 0.00034499168395996094, 0.005565643310546875, 0.0118255615234375, 0.00045037269592285156, -0.01715087890625, 0.0146484375, 0.01666259765625, -0.0038776397705078125, -0.0030574798583984375, -0.029296875, -0.0030269622802734375, -0.0465087890625, 0.0053863525390625, 0.004253387451171875, 0.006412506103515625, -0.0031948089599609375, 0.0006661415100097656, -0.00583648681640625, -0.0264434814453125, 0.0112762451171875, 0.0018186569213867188, -0.051544189453125, -0.0108489990234375, -0.044342041015625, -0.0267486572265625, 0.00873565673828125, -0.0184326171875, -0.0219268798828125, -0.0178985595703125, -0.0458984375, -0.0011110305786132812, -0.0033283233642578125, -0.038360595703125, -0.0247802734375, 0.0290374755859375, 0.022613525390625, -0.0017261505126953125, -0.00923919677734375, 0.004711151123046875, -0.03033447265625, -0.0122833251953125, -0.0108795166015625, 0.0031986236572265625, -0.00018978118896484375, -0.0196075439453125, 0.0297393798828125, 0.034454345703125, 0.039215087890625, -0.0183868408203125, -0.01081085205078125, -0.0193939208984375, 0.0019102096557617188, 0.0004532337188720703, 0.005992889404296875, -0.042083740234375, 0.0003330707550048828, -0.0179290771484375, 0.007404327392578125, -0.0120391845703125, -0.0022487640380859375, 0.018768310546875, -0.017364501953125, 0.036468505859375, 0.00650787353515625, -0.026458740234375, -0.0084381103515625, -0.026123046875, 0.0295562744140625, 0.00240325927734375, 0.0236053466796875, 0.0157470703125, 0.0167236328125, -0.018341064453125, -0.01837158203125, 0.00110626220703125, -0.019989013671875, -0.0174407958984375, 0.0262603759765625, -0.0394287109375, -0.039794921875, -0.00907135009765625, -0.038055419921875, -0.0204620361328125, 0.0240631103515625, 0.00670623779296875, 0.011962890625, -0.0053253173828125, -0.07275390625, 0.0330810546875, -0.049163818359375, 0.056488037109375, -0.0088958740234375, -0.0226898193359375, -0.042877197265625, 0.011505126953125, -0.049285888671875, 0.01189422607421875, -0.05126953125, -0.00811767578125, -0.0063018798828125, -0.019134521484375, -0.09259033203125, -0.08074951171875, -0.0204620361328125, -0.025665283203125, 0.00415802001953125, 0.023284912109375, -0.0091094970703125, 0.0149688720703125, -0.0245819091796875, -0.0025539398193359375, -0.000804901123046875, 0.002552032470703125, 0.038116455078125, 0.005756378173828125, -0.0004153251647949219, 0.01320648193359375, 0.01336669921875, -0.0081939697265625, -0.0423583984375, 0.02880859375, -0.0037441253662109375, -0.06573486328125, 0.059661865234375, 0.0467529296875, 0.10955810546875, -0.04034423828125, 0.0309906005859375, 0.051513671875, 0.035675048828125, -0.0255126953125, 0.036285400390625, -0.029266357421875, -0.04058837890625, 0.023040771484375, 0.01387786865234375, -0.0200347900390625, -0.003932952880859375, -0.04705810546875, 0.00058746337890625, -0.01151275634765625, 0.0364990234375, -0.035064697265625, 0.0269012451171875, -0.030517578125, 0.03875732421875, 0.0032176971435546875, 0.005878448486328125, 0.007526397705078125, -0.0143585205078125, -0.00994873046875, -0.032623291015625, -0.0279693603515625, -0.0038204193115234375, -0.011260986328125, 0.029510498046875, 0.0159912109375, 0.060546875, 0.0183868408203125, -0.0175323486328125, -0.0036258697509765625, -0.021636962890625, 0.037567138671875, -0.0299530029296875, -0.0167083740234375, -0.02349853515625, 0.0098724365234375, 0.0125579833984375, -0.06671142578125, 0.02392578125, 0.0285186767578125, 0.01471710205078125, -0.0237274169921875, 0.02294921875, 0.01067352294921875, -0.035614013671875, -0.01068878173828125, 0.03350830078125, 0.018310546875, 0.0501708984375, 0.031646728515625, 0.049835205078125, 0.059234619140625, 0.0105743408203125, 0.041259765625, -0.0123138427734375, 0.016815185546875, 0.0205535888671875, -0.020660400390625, 0.0058441162109375, 0.041839599609375, 0.0017032623291015625, 0.0275726318359375, 0.033905029296875, -0.00356292724609375, -0.0002732276916503906, 0.0181121826171875, -0.0188140869140625, 0.00698089599609375, -0.0277252197265625, -0.0352783203125, -0.01303863525390625, -0.007724761962890625, -0.0250091552734375, -0.0050506591796875, -0.009979248046875, -0.037994384765625, -0.01314544677734375, 0.05865478515625, 0.0254364013671875, -0.010223388671875, -0.01593017578125, -0.00027298927307128906, -0.0188751220703125, -0.017669677734375, 0.0137939453125, -0.0089111328125, -0.0159759521484375, -0.004795074462890625, 0.016815185546875, -0.0138702392578125, -0.0271148681640625, 0.00821685791015625, -0.0295257568359375, -0.0171966552734375, -0.03143310546875, -0.0113525390625, -0.040374755859375, -0.0021228790283203125, -0.0119476318359375, -0.04876708984375, 0.02960205078125, -0.0009226799011230469, -0.046356201171875, -0.033782958984375, -0.042633056640625, 0.05487060546875, -0.058380126953125, 0.00934600830078125, 0.0640869140625, -0.032806396484375, 0.00017082691192626953, 0.004146575927734375, -0.020599365234375, 0.037017822265625, -0.0156707763671875, -0.0200958251953125, -0.0247650146484375, -0.0177764892578125, 0.0035762786865234375, 0.00888824462890625, 0.045654296875, -0.0277099609375, -0.04302978515625, -0.00006699562072753906, 0.00067138671875, -0.01812744140625, 0.0029315948486328125, -0.0096893310546875, -0.0210113525390625, -0.00540924072265625, 0.0024051666259765625, -0.0027828216552734375, -0.00616455078125, -0.005615234375, 0.006832122802734375, -0.0413818359375, -0.037872314453125, -0.06549072265625, -0.07513427734375, -0.07391357421875, 0.0672607421875, 0.00042557716369628906, 0.03375244140625, 0.0110015869140625, 0.02301025390625, 0.00882720947265625, -0.048980712890625, 0.02197265625, -0.02386474609375, -0.026153564453125, 0.01023101806640625, 0.005573272705078125, -0.026885986328125, 0.03228759765625, 0.006145477294921875, 0.01194000244140625, 0.043212890625, -0.020263671875, -0.015899658203125, -0.0152740478515625, 0.0084686279296875, 0.0255584716796875, -0.024810791015625, 0.00974273681640625, 0.0399169921875, 0.03662109375, -0.0130615234375, 0.0292205810546875, -0.02020263671875, -0.0194854736328125, -0.026153564453125, 0.0286712646484375, -0.023773193359375, -0.03497314453125, 0.011993408203125, -0.005268096923828125, -0.03204345703125, 0.035125732421875, -0.0258636474609375, -0.040679931640625, -0.005199432373046875, -0.01229095458984375, -0.006839752197265625, 0.0204315185546875, -0.02191162109375, 0.0115509033203125, -0.0017490386962890625, 0.0194549560546875, -0.0027904510498046875, 0.03369140625, -0.03631591796875, -0.036712646484375, 0.04693603515625, -0.019317626953125, 0.03436279296875, -0.049346923828125, -0.0308990478515625, -0.030487060546875, 0.08416748046875, -0.056732177734375, 0.0015592575073242188, 0.00827789306640625, -0.0070648193359375, 0.0269775390625, 0.0113525390625, -0.0579833984375, -0.0276336669921875, -0.12646484375, 0.06219482421875, 0.01415252685546875, -0.01739501953125, -0.0227203369140625, 0.055694580078125, -0.076416015625, -0.04180908203125, 0.01169586181640625, -0.044464111328125, -0.04571533203125, 0.04351806640625, -0.09356689453125, 0.0257110595703125, -0.0243377685546875, -0.033203125, -0.03851318359375, 0.0044708251953125, -0.01885986328125, 0.03265380859375, 0.022674560546875, 0.00868988037109375, -0.022003173828125, 0.020843505859375, -0.00652313232421875, -0.007785797119140625, -0.0001704692840576172, 0.01177215576171875, -0.0156707763671875, 0.0093536376953125, -0.007415771484375, -0.0210113525390625, -0.0031890869140625, 0.00322723388671875, 0.0129852294921875, 0.07427978515625, -0.028778076171875, 0.00389862060546875, -0.0240020751953125, -0.0203399658203125, 0.0087432861328125, -0.016998291015625, -0.03302001953125, 0.01413726806640625, -0.0333251953125, 0.00010776519775390625, -0.0140380859375, -0.018035888671875, -0.020904541015625, -0.0426025390625, -0.01119232177734375, 0.0235137939453125, 0.0253753662109375, 0.0338134765625, 0.016815185546875, 0.0195770263671875, -0.0266571044921875, 0.039398193359375, 0.0191802978515625, 0.034698486328125, 0.010223388671875, -0.04296875, 0.10302734375, 0.01555633544921875, 0.0235748291015625, 0.006500244140625, 0.0460205078125, -0.0012540817260742188, -0.0121917724609375, 0.035369873046875, 0.01337432861328125, -0.0322265625, -0.0283355712890625, -0.0211334228515625, 0.0126495361328125, 0.00605010986328125, 0.0240631103515625, -0.016448974609375, 0.021331787109375, -0.0164642333984375, 0.0016736984252929688, -0.00962066650390625, 0.01471710205078125, 0.070068359375, 0.048828125, -0.0083465576171875, 0.0423583984375, 0.020843505859375, 0.0020275115966796875, 0.0026798248291015625, -0.00861358642578125, -0.017669677734375, 0.03814697265625, -0.014892578125, -0.0065155029296875, 0.011505126953125, -0.006313323974609375, 0.07373046875, 0.011993408203125, -0.0031032562255859375, -0.0284576416015625, -0.02294921875, -0.033843994140625, -0.0095977783203125, 0.02117919921875, 0.016571044921875, -0.029388427734375, -0.00716400146484375, 0.021392822265625, -0.00787353515625, -0.0209197998046875, -0.0272369384765625, 0.038421630859375, 0.008636474609375, -0.00017702579498291016, 0.0199127197265625, 0.0223846435546875, 0.00873565673828125, 0.01496124267578125, -0.02197265625, 0.0382080078125, 0.024017333984375, 0.010833740234375, 0.00911712646484375, 0.0302734375, -0.006008148193359375, -0.00554656982421875, -0.004825592041015625, -0.0155029296875, -0.026702880859375, 0.007781982421875, -0.005092620849609375, 0.0013885498046875, 0.0270843505859375, 0.02301025390625, 0.0301361083984375, -0.0013265609741210938, 0.041290283203125, 0.05859375, -0.043121337890625, 0.01529693603515625, 0.025665283203125, -0.000006318092346191406, 0.0021152496337890625, -0.017913818359375, 0.0003871917724609375, -0.02740478515625, 0.005096435546875, -0.0218505859375, -0.0273590087890625, 0.0124053955078125, 0.0159149169921875, 0.0157318115234375, 0.00960540771484375, -0.024932861328125, -0.0361328125, -0.053314208984375, 0.0124664306640625, 0.0214996337890625, 0.0255126953125, 0.0007524490356445312, 0.026611328125, -0.03790283203125, -0.003910064697265625, -0.0721435546875, 0.003391265869140625, -0.0035457611083984375, -0.0139923095703125, -0.055206298828125, 0.004749298095703125, -0.0369873046875, -0.00939178466796875, -0.0758056640625, -0.050811767578125, -0.051239013671875, 0.01013946533203125, 0.01477813720703125, 0.03363037109375, 0.0028476715087890625, -0.00832366943359375, -0.007678985595703125, -0.0219573974609375, -0.003681182861328125, 0.0010042190551757812, 0.00021135807037353516, 0.044403076171875, -0.00811004638671875, 0.05035400390625, 0.0172576904296875, 0.0253448486328125, -0.013519287109375, -0.0224456787109375, -0.00083160400390625, -0.0288848876953125, -0.039520263671875, 0.00040340423583984375, -0.057098388671875, 0.035308837890625, 0.059783935546875, -0.0087127685546875, 0.0153656005859375, 0.0010919570922851562, -0.00786590576171875, -0.0167999267578125, -0.003337860107421875, 0.040130615234375, 0.031829833984375, 0.0161590576171875, 0.0098876953125, 0.01221466064453125, -0.003772735595703125, -0.007595062255859375, -0.031402587890625, 0.0249786376953125, -0.00977325439453125, -0.009002685546875, -0.03656005859375, 0.038055419921875, 0.052947998046875, 0.006122589111328125, 0.0460205078125, 0.0191802978515625, 0.0245513916015625, 0.01329803466796875, -0.000431060791015625, 0.00769805908203125, -0.0347900390625, 0.0712890625, 0.0181884765625, -0.0299835205078125, 0.0897216796875, -0.039031982421875, 0.01317596435546875, -0.0007963180541992188, 0.031768798828125, -0.046630859375, 0.0181121826171875, -0.0355224609375, 0.007358551025390625, 0.09246826171875, -0.018951416015625, 0.043701171875, 0.03485107421875, 0.0355224609375, 0.019744873046875, -0.003368377685546875, 0.02325439453125, -0.003231048583984375, -0.0261077880859375, -0.0107574462890625, -0.0004622936248779297, -0.00852203369140625, -0.054473876953125, 0.00970458984375, 0.0174560546875, -0.03466796875, -0.021270751953125, 0.00457763671875, 0.0123138427734375, -0.0227813720703125, -0.0310516357421875, 0.04132080078125, -0.0285186767578125, 0.0009045600891113281, 0.0626220703125, -0.0196990966796875, 0.039947509765625, 0.0180206298828125, 0.01439666748046875, -0.0178985595703125, -0.0020885467529296875, -0.0197906494140625, -0.032012939453125, -0.02667236328125, -0.0099029541015625, 0.018829345703125, 0.004589080810546875, 0.0220184326171875, -0.0042266845703125, -0.0253143310546875, -0.01139068603515625, 0.07000732421875, 0.07110595703125, -0.00962066650390625, -0.036407470703125, 0.0360107421875, 0.037841796875, -0.01490020751953125, -0.0284576416015625, -0.01166534423828125, -0.00878143310546875, 0.041412353515625, -0.04144287109375, 0.00238037109375, 0.009674072265625, -0.059234619140625, -0.0863037109375, 0.051605224609375, -0.01739501953125, 0.05487060546875, -0.00930023193359375, 0.004764556884765625, 0.00399017333984375, -0.01326751708984375, -0.042327880859375, 0.049072265625, -0.035675048828125, 0.0745849609375, -0.08575439453125, -0.032745361328125, 0.01666259765625, 0.0767822265625, 0.047760009765625, 0.00670623779296875, 0.006500244140625, 0.0025157928466796875, 0.048248291015625, 0.045440673828125, -0.0030879974365234375, 0.0015592575073242188, 0.0019855499267578125, 0.0152740478515625, 0.006496429443359375, -0.00948333740234375, 0.039031982421875, -0.0537109375, -0.0238189697265625, -0.0059356689453125, 0.01285552978515625, 0.01806640625, -0.003925323486328125, 0.07989501953125, -0.016571044921875, -0.00576019287109375, 0.0239105224609375, -0.039825439453125, -0.011932373046875, 0.038360595703125, 0.030853271484375, 0.0014123916625976562, -0.029022216796875, -0.0192108154296875, 0.040496826171875, 0.027984619140625, 0.06982421875, 0.053558349609375, 0.045013427734375, 0.01611328125, -0.01259613037109375, 0.053955078125, 0.0161285400390625, -0.05364990234375, 0.041595458984375, -0.0186004638671875, 0.00809478759765625, -0.0626220703125, -0.04302978515625, 0.0189666748046875, 0.05218505859375, -0.0220794677734375, -0.0222930908203125, 0.0011281967163085938, -0.0192413330078125, 0.0165252685546875, -0.004589080810546875, 0.0218048095703125, 0.0028629302978515625, 0.0030994415283203125, -0.0251922607421875, -0.0284271240234375, -0.0146942138671875, 0.06475830078125, -0.0101165771484375, -0.0209197998046875, 0.0010499954223632812, -0.043243408203125, -0.031951904296875, 0.009735107421875, 0.023193359375, 0.024658203125, 0.007354736328125, 0.01898193359375, 0.02398681640625, 0.0016660690307617188, 0.0232086181640625, 0.0102996826171875, -0.016632080078125, -0.00916290283203125, 0.01080322265625, -0.01255035400390625, -0.05047607421875, 0.0133209228515625, 0.046783447265625, 0.008056640625, -0.002712249755859375, -0.0399169921875, 0.00189208984375, 0.0288543701171875, -0.0034694671630859375, -0.033416748046875, 0.01270294189453125, -0.05145263671875, 0.055267333984375, 0.0509033203125, 0.01552581787109375, 0.0028839111328125, -0.039093017578125, 0.09185791015625, -0.00022327899932861328, 0.0252532958984375, 0.005535125732421875, -0.0087890625, 0.024261474609375, 0.003589630126953125, 0.0299072265625, 0.03765869140625, -0.0229644775390625, 0.021331787109375, -0.038330078125, -0.079833984375, 0.01373291015625, 0.048919677734375, -0.0086822509765625, 0.00562286376953125, 0.007061004638671875, -0.0250701904296875, 0.010772705078125, -0.034942626953125, 0.034454345703125, 0.0091094970703125, -0.00974273681640625, 0.006839752197265625, -0.06915283203125, -0.0233306884765625, -0.03326416015625, 0.011810302734375, 0.038330078125, 0.05059814453125, 0.01300811767578125, 0.0302581787109375, -0.032257080078125, -0.00533294677734375, -0.0021190643310546875, -0.040283203125, 0.08990478515625, 0.038360595703125, -0.01381683349609375, -0.0272216796875, 0.010894775390625, 0.0224761962890625, 0.0166015625, -0.0175933837890625, 0.006580352783203125, -0.04949951171875, 0.025054931640625, 0.01678466796875, 0.01462554931640625, -0.019561767578125, -0.04058837890625, -0.0110321044921875, 0.01387786865234375, -0.00033783912658691406, 0.01132965087890625, -0.0125885009765625, 0.039581298828125, -0.006191253662109375, 0.03973388671875, -0.00484466552734375, 0.0006575584411621094, -0.00284576416015625, 0.0221710205078125, -0.04827880859375, 0.032196044921875, 0.00710296630859375, -0.01837158203125, 0.006671905517578125, 0.00804901123046875, 0.00506591796875, -0.0055694580078125, 0.0298919677734375, -0.018310546875, 0.00484466552734375, 0.07171630859375, -0.01143646240234375, 0.03765869140625, -0.038421630859375, 0.01861572265625, 0.0144805908203125, -0.0311431884765625, -0.038543701171875, -0.0426025390625, 0.0036106109619140625, 0.01507568359375, -0.0247344970703125, -0.0679931640625, -0.08892822265625, -0.00868988037109375, 0.0298614501953125, 0.0093841552734375, -0.07501220703125, 0.0238800048828125, -0.0215911865234375, 0.044677734375, -0.03326416015625, 0.0308837890625, 0.00180816650390625, 0.003559112548828125, -0.030914306640625, -0.00951385498046875, -0.01178741455078125, 0.0293426513671875, 0.01416778564453125, 0.024261474609375, 0.0283355712890625, -0.032379150390625, -0.043121337890625, 0.05865478515625, 0.0322265625, 0.09765625, 0.044769287109375, -0.003566741943359375, 0.02911376953125, -0.00608062744140625, -0.0221710205078125, -0.040191650390625, 0.0206146240234375, -0.04498291015625, -0.025665283203125, 0.0015783309936523438, -0.0219879150390625, -0.008148193359375, -0.05267333984375, -0.103271484375, 0.07159423828125, -0.0198516845703125, -0.041259765625, -0.0297698974609375, -0.005184173583984375, 0.0203399658203125, -0.0017747879028320312, -0.005451202392578125, -0.02581787109375, -0.06072998046875, -0.00847625732421875, -0.00250244140625, -0.002391815185546875, 0.0360107421875, -0.0233917236328125, -0.010589599609375, 0.0026035308837890625, 0.036407470703125, -0.005970001220703125, -0.0017423629760742188, -0.006725311279296875, 0.019500732421875, 0.0079498291015625, -0.024383544921875, 0.0002015829086303711, 0.02142333984375, -0.01461029052734375, -0.01132965087890625, -0.04510498046875, 0.00395965576171875, -0.0020313262939453125, 0.029693603515625, 0.038360595703125, 0.00437164306640625, -0.040740966796875, 0.04443359375, -0.006160736083984375, -0.0299835205078125, -0.029296875, 0.01306915283203125, -0.05352783203125, -0.038299560546875, 0.0250701904296875, -0.0045928955078125, 0.01148223876953125, -0.026947021484375, -0.02435302734375, -0.01885986328125, -0.017669677734375, 0.0002180337905883789, -0.0269622802734375, 0.00787353515625, 0.08978271484375, -0.040435791015625, 0.0228271484375, 0.0153656005859375, 0.0006794929504394531, 0.0672607421875, -0.0032749176025390625, 0.0003712177276611328, -0.049713134765625, -0.0025844573974609375, 0.031829833984375, 0.0010156631469726562, 0.049591064453125, -0.016082763671875, -0.04254150390625, -0.0165557861328125, 0.01995849609375, 0.0008263587951660156, -0.007354736328125, -0.0283203125, 0.02276611328125, -0.0178680419921875, 0.0982666015625, -0.0352783203125, 0.0478515625, -0.01812744140625, 0.023284912109375, -0.0275726318359375, 0.0251617431640625, 0.02691650390625, -0.0163421630859375, -0.011199951171875, 0.01425933837890625, -0.02587890625, -0.050018310546875, 0.033935546875, 0.045440673828125, 0.01995849609375, 0.0235443115234375 ]
8a0ed6fe6dee0457a0b0a06d777ce7453b581e31
Wordpress Stackexchange Q: Remove dashboard, use Pages tab as default Is there a way to have "Pages" set as the default tab when the user logs in to the admin area? I am using a heavily customised set up, where none of the dashboard widgets are useful so they are hidden anyway. A: The best way is to re-direct user logins to your page and also remove the dashboard from the menu, this can be done with 2 filters. Redirect logins to your page edit screen example based on user roles, this example uses "author": function dashboard_redirect($url) { global $current_user; // is there a user ? if(is_array($current_user->roles)) { // check, whether user has the author role: if(in_array('author', $current_user->roles)) { $url = admin_url('edit.php?post_type=page'); } return $url; } } add_filter('login_redirect', 'dashboard_redirect'); Remove the "dashboard from the admin menu" add_action( 'admin_menu', 'Wps_remove_tools', 99 ); function Wps_remove_tools(){ remove_menu_page( 'index.php' ); //dashboard } ps. You can also order the admin menu items using the same filter.
Q: Remove dashboard, use Pages tab as default Is there a way to have "Pages" set as the default tab when the user logs in to the admin area? I am using a heavily customised set up, where none of the dashboard widgets are useful so they are hidden anyway. A: The best way is to re-direct user logins to your page and also remove the dashboard from the menu, this can be done with 2 filters. Redirect logins to your page edit screen example based on user roles, this example uses "author": function dashboard_redirect($url) { global $current_user; // is there a user ? if(is_array($current_user->roles)) { // check, whether user has the author role: if(in_array('author', $current_user->roles)) { $url = admin_url('edit.php?post_type=page'); } return $url; } } add_filter('login_redirect', 'dashboard_redirect'); Remove the "dashboard from the admin menu" add_action( 'admin_menu', 'Wps_remove_tools', 99 ); function Wps_remove_tools(){ remove_menu_page( 'index.php' ); //dashboard } ps. You can also order the admin menu items using the same filter. A: This is how you remove DASHBOARD on your Wordpress fully ! For who don't want to use plug-in(s), If you installed a plug-in for remove that. You will get extra menu about that plug-in also. What the point ? So you should have control what you do/did Insert codes on functions.php Redirect : (When user go to url like domain.com/wp-admin) function dashboard_redirect(){ wp_redirect(admin_url('edit.php?post_type=page')); } add_action('load-index.php','dashboard_redirect'); Redirect after logged-in : (For prevent logging loop bugs also) function login_redirect( $redirect_to, $request, $user ){ return admin_url('edit.php?post_type=page'); } add_filter('login_redirect','login_redirect',10,3); Remove the Dashboard menu : (Why do you still have it?) function remove_menus () { global $menu; $restricted = array(__('Dashboard')); //$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins')); end($menu); while(prev($menu)){ $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0]!= NULL?$value[0]:'',$restricted)){unset($menu[key($menu)]);} } } add_action('admin_menu','remove_menus'); Now when user logged-in or go with url like domain.com/wp-admin/ ,.. User will be redirected to domain.com/wp-admin/edit.php?post_type=page A: Yes, use Adminimize Plugin, remove dashboard and let the pages be the first screen when an user logs in. You can customize it very well and do a fine tuning of the entire admin backend! UPDATE Use the filter login_redirect and use the admin_url like in this Wordpress Stackechange post: Change default admin page for specific role(s)
wordpress
{ "language": "en", "length": 364, "provenance": "stackexchange_00019.jsonl.gz:416146", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39087" }
[ 0.051727294921875, 0.009246826171875, 0.0177764892578125, 0.00916290283203125, 0.0308380126953125, -0.038970947265625, 0.07080078125, -0.04364013671875, -0.0152587890625, 0.01160430908203125, 0.055572509765625, -0.044708251953125, -0.037200927734375, -0.05279541015625, -0.0205841064453125, -0.041168212890625, -0.007450103759765625, 0.0019550323486328125, 0.02313232421875, -0.026824951171875, 0.021453857421875, -0.036346435546875, 0.029541015625, 0.0234527587890625, 0.020355224609375, -0.0386962890625, 0.0006036758422851562, 0.00856781005859375, -0.01435089111328125, -0.0201416015625, 0.0015287399291992188, 0.0226898193359375, -0.01116943359375, 0.049774169921875, -0.02130126953125, 0.014739990234375, -0.04296875, 0.055084228515625, 0.0443115234375, -0.0290069580078125, 0.01436614990234375, 0.0175323486328125, -0.01393890380859375, 0.035430908203125, -0.03717041015625, -0.022705078125, 0.0008120536804199219, -0.01464080810546875, 0.0162811279296875, 0.00305938720703125, 0.0167999267578125, 0.01541900634765625, 0.03662109375, -0.0157928466796875, -0.025634765625, -0.01027679443359375, 0.021453857421875, -0.0255584716796875, 0.0309600830078125, 0.0164031982421875, -0.0177459716796875, -0.01448822021484375, 0.0014009475708007812, -0.050018310546875, -0.00494384765625, -0.018310546875, -0.007259368896484375, 0.025665283203125, -0.034271240234375, 0.0015687942504882812, 0.0281982421875, -0.01183319091796875, -0.013671875, -0.00730133056640625, -0.03271484375, 0.0031585693359375, -0.0055084228515625, -0.015869140625, 0.0157012939453125, 0.0184173583984375, 0.0030384063720703125, 0.0126800537109375, -0.01345062255859375, 0.01132965087890625, -0.0010194778442382812, 0.041534423828125, -0.030242919921875, -0.0234527587890625, -0.0296783447265625, 0.02301025390625, -0.01279449462890625, -0.029388427734375, -0.0030879974365234375, 0.0148162841796875, -0.0018625259399414062, -0.006824493408203125, 0.034759521484375, 0.051788330078125, 0.00815582275390625, -0.00412750244140625, -0.015899658203125, -0.0195465087890625, -0.0240325927734375, -0.033966064453125, 0.01215362548828125, 0.06610107421875, -0.011627197265625, -0.02667236328125, 0.0243377685546875, 0.011932373046875, 0.0299224853515625, -0.0298919677734375, -0.0105133056640625, -0.0296783447265625, -0.030426025390625, 0.0157012939453125, -0.0230560302734375, -0.01535797119140625, 0.00937652587890625, -0.0018663406372070312, -0.045562744140625, -0.032440185546875, -0.004695892333984375, -0.034881591796875, 0.0298309326171875, -0.02410888671875, -0.04608154296875, 0.05078125, -0.01654052734375, -0.01029205322265625, -0.025390625, 0.00887298583984375, 0.07684326171875, 0.055511474609375, 0.0277252197265625, -0.0179290771484375, 0.0208892822265625, -0.039581298828125, 0.0031223297119140625, 0.0343017578125, 0.002391815185546875, -0.03729248046875, -0.018280029296875, -0.00847625732421875, -0.004947662353515625, -0.0010404586791992188, 0.01210784912109375, 0.0186767578125, -0.00022912025451660156, -0.03411865234375, -0.009063720703125, -0.0017871856689453125, 0.0167388916015625, 0.020050048828125, 0.03240966796875, 0.00981903076171875, 0.04315185546875, -0.0145416259765625, -0.028717041015625, -0.009033203125, 0.038116455078125, -0.0023097991943359375, 0.0156707763671875, -0.04620361328125, -0.067626953125, -0.00826263427734375, -0.06207275390625, -0.01190185546875, 0.033477783203125, -0.020965576171875, 0.02410888671875, -0.074951171875, 0.0031566619873046875, 0.0257720947265625, 0.015472412109375, 0.065185546875, 0.01229095458984375, 0.018341064453125, 0.00917816162109375, 0.0018033981323242188, -0.01390838623046875, -0.0257415771484375, 0.0131683349609375, -0.0008816719055175781, -0.06610107421875, 0.02227783203125, 0.005672454833984375, 0.04534912109375, 0.0247039794921875, 0.01134490966796875, 0.04595947265625, -0.00644683837890625, -0.036224365234375, -0.03173828125, 0.00882720947265625, -0.001003265380859375, -0.00748443603515625, -0.0028934478759765625, 0.000043332576751708984, 0.01117706298828125, 0.06634521484375, 0.0301971435546875, -0.007602691650390625, -0.01134490966796875, -0.0731201171875, 0.0301971435546875, -0.0251312255859375, 0.043853759765625, 0.01953125, 0.007083892822265625, 0.00829315185546875, -0.0127716064453125, -0.0186614990234375, 0.00455474853515625, -0.0294036865234375, -0.002666473388671875, -0.004268646240234375, 0.0162200927734375, -0.006603240966796875, 0.0111236572265625, -0.001407623291015625, -0.03704833984375, -0.0007729530334472656, -0.009857177734375, 0.0780029296875, -0.016632080078125, -0.01525115966796875, -0.035614013671875, 0.06402587890625, -0.034027099609375, 0.01247406005859375, 0.0723876953125, 0.037872314453125, 0.0295257568359375, -0.019500732421875, 0.012969970703125, 0.019378662109375, -0.0374755859375, -0.003414154052734375, 0.033477783203125, 0.01511383056640625, 0.0010786056518554688, -0.0262603759765625, 0.0188751220703125, -0.0157928466796875, -0.08203125, -0.00909423828125, 0.026123046875, -0.0029926300048828125, 0.03717041015625, -0.0199432373046875, 0.0292816162109375, 0.0167694091796875, 0.0079803466796875, 0.01348114013671875, 0.0298004150390625, -0.029541015625, 0.0074615478515625, -0.00814056396484375, -0.029693603515625, 0.0034999847412109375, -0.041595458984375, -0.0092315673828125, -0.0311126708984375, 0.0224609375, -0.03350830078125, 0.020904541015625, 0.0009074211120605469, -0.036529541015625, -0.038726806640625, 0.03533935546875, 0.03717041015625, -0.02154541015625, 0.00704193115234375, 0.06640625, -0.06817626953125, -0.038177490234375, 0.00205230712890625, -0.00731658935546875, -0.022979736328125, -0.0151824951171875, 0.00551605224609375, 0.0190887451171875, -0.007049560546875, 0.00392913818359375, -0.0197296142578125, 0.024444580078125, -0.0054931640625, 0.031982421875, -0.0199737548828125, 0.016845703125, -0.0202789306640625, -0.03515625, 0.046142578125, -0.0022907257080078125, -0.0546875, 0.0204925537109375, -0.03192138671875, 0.0220947265625, -0.0196380615234375, 0.06597900390625, 0.06976318359375, 0.0108795166015625, 0.0008502006530761719, 0.003997802734375, 0.005504608154296875, 0.01175689697265625, 0.0068206787109375, 0.01464080810546875, -0.0087890625, 0.0096435546875, 0.0731201171875, 0.01399993896484375, -0.0038471221923828125, 0.0033740997314453125, -0.027801513671875, -0.0298614501953125, 0.00634765625, -0.08477783203125, -0.04290771484375, -0.01413726806640625, -0.07989501953125, 0.0128326416015625, -0.0018892288208007812, -0.03399658203125, -0.0013484954833984375, 0.039581298828125, 0.00966644287109375, 0.0300140380859375, -0.00775146484375, -0.024627685546875, -0.0049591064453125, -0.033355712890625, -0.0016002655029296875, -0.007965087890625, -0.01519012451171875, 0.0049285888671875, 0.028778076171875, -0.00681304931640625, -0.04925537109375, 0.019073486328125, -0.0097503662109375, 0.00543212890625, 0.01474761962890625, -0.00037360191345214844, -0.0198974609375, 0.042022705078125, -0.00827789306640625, 0.0232696533203125, 0.0259246826171875, -0.00504302978515625, -0.0010786056518554688, -0.01226043701171875, -0.022064208984375, 0.0031871795654296875, -0.007480621337890625, 0.004058837890625, -0.01242828369140625, 0.0021686553955078125, -0.036529541015625, 0.00908660888671875, -0.00638580322265625, -0.0212860107421875, 0.011383056640625, -0.00984954833984375, -0.01444244384765625, 0.0197601318359375, -0.005176544189453125, 0.040679931640625, 0.0186920166015625, -0.00612640380859375, 0.038604736328125, -0.035980224609375, -0.002071380615234375, 0.0147857666015625, -0.0178680419921875, 0.0193328857421875, -0.04315185546875, -0.0253143310546875, -0.0015478134155273438, -0.018280029296875, 0.0179901123046875, -0.036163330078125, 0.0338134765625, -0.038360595703125, 0.03717041015625, -0.0073394775390625, -0.01267242431640625, 0.0007305145263671875, 0.0079193115234375, 0.025115966796875, 0.05810546875, -0.058197021484375, 0.003429412841796875, 0.014434814453125, 0.00873565673828125, -0.0087890625, -0.030731201171875, -0.0667724609375, -0.020843505859375, -0.1334228515625, -0.004795074462890625, 0.0007243156433105469, -0.052734375, -0.01377105712890625, 0.0124969482421875, -0.075439453125, -0.050933837890625, 0.055328369140625, 0.003055572509765625, -0.01059722900390625, 0.03131103515625, -0.008636474609375, -0.02423095703125, -0.032928466796875, 0.01593017578125, -0.050567626953125, -0.018035888671875, -0.023040771484375, 0.0634765625, 0.0462646484375, -0.0295257568359375, -0.018310546875, 0.026275634765625, 0.02130126953125, -0.02569580078125, 0.017913818359375, 0.0023555755615234375, -0.003940582275390625, -0.023956298828125, -0.01016998291015625, -0.038543701171875, -0.0017604827880859375, -0.004535675048828125, -0.026214599609375, -0.0034847259521484375, -0.036865234375, -0.00507354736328125, 0.00884246826171875, -0.02252197265625, -0.0931396484375, -0.0697021484375, -0.036895751953125, -0.0081329345703125, -0.03912353515625, 0.0084228515625, -0.0445556640625, -0.0897216796875, 0.0267181396484375, 0.0150146484375, -0.034942626953125, 0.0118255615234375, 0.0280609130859375, 0.0211029052734375, -0.01224517822265625, 0.00043964385986328125, -0.006465911865234375, 0.03216552734375, -0.0231781005859375, 0.05902099609375, 0.039520263671875, -0.010101318359375, 0.042877197265625, 0.0013818740844726562, -0.02386474609375, -0.056884765625, 0.07666015625, -0.01010894775390625, -0.031097412109375, 0.040374755859375, -0.052734375, 0.045074462890625, 0.020111083984375, 0.004497528076171875, -0.01512908935546875, -0.0162200927734375, 0.040679931640625, 0.01102447509765625, -0.0273895263671875, -0.054779052734375, -0.00295257568359375, -0.0209503173828125, 0.03466796875, 0.0107879638671875, 0.026611328125, -0.002712249755859375, -0.0193023681640625, 0.00730133056640625, 0.0093841552734375, 0.0269775390625, 0.01155853271484375, -0.029937744140625, 0.040802001953125, 0.0004134178161621094, -0.00836181640625, 0.0200347900390625, -0.010040283203125, 0.034271240234375, 0.01479339599609375, -0.037139892578125, -0.0247650146484375, 0.0017099380493164062, 0.048309326171875, -0.003025054931640625, -0.003002166748046875, 0.045379638671875, 0.016571044921875, -0.0433349609375, -0.031585693359375, 0.006473541259765625, -0.051025390625, -0.06488037109375, -0.0211029052734375, -0.0101470947265625, -0.0023784637451171875, 0.0302276611328125, 0.052703857421875, -0.04351806640625, 0.055999755859375, -0.0105743408203125, 0.03570556640625, 0.00893402099609375, 0.017974853515625, -0.022552490234375, 0.057586669921875, 0.0124969482421875, -0.00188446044921875, 0.0214080810546875, -0.0301361083984375, -0.00888824462890625, 0.022613525390625, 0.027587890625, 0.0238037109375, -0.0092010498046875, -0.007770538330078125, -0.0179443359375, -0.003208160400390625, 0.06475830078125, -0.032073974609375, -0.1014404296875, -0.032867431640625, 0.04071044921875, 0.03607177734375, -0.058258056640625, -0.005054473876953125, 0.030548095703125, 0.00725555419921875, 0.051788330078125, 0.021087646484375, 0.001056671142578125, 0.00010573863983154297, -0.00514984130859375, -0.0062408447265625, -0.006870269775390625, 0.0300140380859375, -0.0626220703125, -0.0251617431640625, -0.0186614990234375, 0.0020618438720703125, 0.0467529296875, -0.002593994140625, 0.0345458984375, -0.032806396484375, -0.01332855224609375, 0.01558685302734375, -0.0195159912109375, 0.060516357421875, 0.01393890380859375, -0.03594970703125, -0.01061248779296875, -0.0601806640625, -0.0202789306640625, -0.02294921875, -0.01739501953125, -0.034637451171875, 0.0084228515625, 0.0194091796875, 0.00847625732421875, 0.01546478271484375, 0.001407623291015625, -0.0198974609375, 0.0182952880859375, 0.010040283203125, 0.03753662109375, -0.001094818115234375, 0.0966796875, -0.00202178955078125, 0.044281005859375, 0.037078857421875, 0.066162109375, -0.0374755859375, -0.0169677734375, 0.03546142578125, -0.0086517333984375, -0.040740966796875, -0.03887939453125, -0.055328369140625, -0.0094146728515625, 0.04998779296875, -0.027618408203125, -0.00521087646484375, 0.005130767822265625, 0.00823974609375, -0.0209197998046875, -0.0196380615234375, 0.02801513671875, -0.00736236572265625, 0.00434112548828125, 0.0141754150390625, 0.0157928466796875, -0.0260009765625, -0.0112457275390625, -0.0081939697265625, 0.017547607421875, -0.003704071044921875, -0.01123809814453125, -0.054290771484375, 0.08038330078125, 0.0859375, -0.021514892578125, 0.0401611328125, 0.0279541015625, -0.0061187744140625, 0.0263214111328125, -0.03546142578125, -0.004268646240234375, 0.004833221435546875, 0.011077880859375, -0.01010894775390625, 0.022125244140625, 0.043609619140625, -0.006256103515625, -0.01111602783203125, 0.0924072265625, 0.0333251953125, -0.1434326171875, 0.00914764404296875, -0.01276397705078125, 0.041900634765625, 0.0435791015625, -0.003696441650390625, -0.01922607421875, -0.0157012939453125, 0.0188751220703125, -0.0216064453125, -0.0340576171875, 0.0004494190216064453, 0.0130615234375, -0.0084075927734375, -0.0091552734375, 0.0322265625, 0.0081634521484375, 0.0031108856201171875, -0.02398681640625, 0.0029468536376953125, -0.013092041015625, -0.01092529296875, 0.01016998291015625, 0.0247955322265625, -0.0278472900390625, -0.0799560546875, 0.01190185546875, -0.013153076171875, -0.0279541015625, 0.0494384765625, -0.007381439208984375, 0.024261474609375, 0.039794921875, -0.0132904052734375, 0.020904541015625, -0.0028247833251953125, -0.0157318115234375, 0.00574493408203125, -0.029998779296875, 0.0256500244140625, -0.00653839111328125, -0.0296630859375, 0.0194091796875, -0.0117340087890625, -0.05975341796875, -0.0196380615234375, -0.044830322265625, 0.1053466796875, -0.0246734619140625, -0.0281829833984375, -0.0145416259765625, -0.006908416748046875, 0.0008697509765625, 0.00551605224609375, 0.01593017578125, -0.048583984375, -0.041168212890625, -0.01001739501953125, -0.06610107421875, 0.01207733154296875, -0.0120086669921875, -0.06524658203125, 0.07666015625, 0.0118255615234375, 0.019073486328125, -0.001125335693359375, 0.028228759765625, -0.0526123046875, -0.005260467529296875, -0.0321044921875, 0.04437255859375, 0.070556640625, 0.051239013671875, -0.00650787353515625, -0.0130157470703125, 0.0252838134765625, 0.033599853515625, 0.039306640625, 0.0224151611328125, -0.0297393798828125, -0.0194854736328125, -0.01132965087890625, 0.00940704345703125, -0.0165863037109375, 0.045440673828125, 0.003936767578125, 0.0262298583984375, -0.0099029541015625, -0.048065185546875, 0.0203094482421875, -0.03631591796875, -0.0241241455078125, 0.037200927734375, 0.02490234375, 0.02447509765625, -0.0285186767578125, 0.028228759765625, -0.045562744140625, -0.00223541259765625, 0.037200927734375, -0.0099029541015625, 0.002407073974609375, 0.003536224365234375, 0.0263824462890625, -0.04547119140625, -0.03936767578125, -0.0161590576171875, 0.0260467529296875, 0.038238525390625, -0.0155181884765625, 0.036895751953125, 0.040069580078125, -0.07989501953125, -0.020965576171875, -0.0007486343383789062, 0.002460479736328125, -0.0390625, 0.03955078125, 0.0083465576171875, 0.0288543701171875, -0.038482666015625, 0.00994873046875, 0.0106658935546875, 0.049102783203125, -0.028900146484375, -0.038818359375, 0.00885009765625, 0.0091552734375, 0.01934814453125, 0.032501220703125, 0.0528564453125, -0.034088134765625, 0.0216522216796875, 0.0004761219024658203, 0.0085906982421875, -0.01239013671875, -0.0300140380859375, -0.02105712890625, 0.00531768798828125, 0.028900146484375, 0.06256103515625, 0.0027790069580078125, -0.0254364013671875, -0.00846099853515625, 0.004421234130859375, 0.0222930908203125, -0.015411376953125, -0.0084686279296875, -0.00026416778564453125, -0.0202178955078125, -0.0031757354736328125, -0.053466796875, 0.04010009765625, -0.08721923828125, -0.0606689453125, 0.00524139404296875, 0.07257080078125, 0.033416748046875, -0.040130615234375, 0.0005688667297363281, -0.00125885009765625, 0.0137939453125, -0.0031566619873046875, -0.01177978515625, -0.0075836181640625, -0.00479888916015625, -0.007061004638671875, -0.004680633544921875, 0.0035953521728515625, -0.01165008544921875, 0.00296783447265625, 0.03887939453125, -0.0018634796142578125, -0.024505615234375, -0.010650634765625, 0.00024056434631347656, -0.050537109375, 0.02484130859375, -0.0015344619750976562, 0.037200927734375, 0.0025348663330078125, -0.08331298828125, -0.0185546875, -0.039703369140625, -0.01422882080078125, 0.015960693359375, 0.028717041015625, -0.0196990966796875, 0.0408935546875, -0.0217742919921875, 0.035400390625, -0.00704193115234375, -0.04248046875, -0.0003955364227294922, -0.0017757415771484375, 0.0256805419921875, 0.01117706298828125, 0.01114654541015625, 0.0173492431640625, 0.004802703857421875, 0.025299072265625, 0.00951385498046875, 0.0738525390625, -0.033843994140625, 0.0189971923828125, -0.042144775390625, 0.0253143310546875, -0.05108642578125, -0.005859375, 0.0182342529296875, 0.014404296875, -0.0304107666015625, -0.006366729736328125, -0.055419921875, 0.03863525390625, -0.00372314453125, -0.01038360595703125, 0.024200439453125, 0.0038013458251953125, 0.004772186279296875, 0.01334381103515625, -0.0009407997131347656, -0.0228271484375, -0.03436279296875, -0.0360107421875, 0.00882720947265625, 0.009796142578125, 0.0221405029296875, -0.01111602783203125, 0.036834716796875, -0.04119873046875, -0.01537322998046875, -0.006927490234375, -0.016357421875, -0.03424072265625, 0.0136871337890625, -0.0233917236328125, 0.0006642341613769531, 0.013519287109375, -0.0034732818603515625, 0.0193634033203125, 0.0161590576171875, -0.002048492431640625, 0.025054931640625, 0.0170745849609375, 0.005588531494140625, 0.0018911361694335938, 0.01442718505859375, -0.0268707275390625, -0.017059326171875, 0.0263824462890625, -0.01071929931640625, -0.03033447265625, 0.004547119140625, -0.03192138671875, 0.00469207763671875, -0.0146636962890625, 0.005405426025390625, 0.01479339599609375, -0.0859375, -0.09808349609375, 0.05828857421875, 0.032379150390625, 0.0121917724609375, -0.09814453125, 0.08038330078125, -0.04302978515625, 0.059173583984375, -0.0093231201171875, -0.0266571044921875, -0.013275146484375, -0.033721923828125, -0.024017333984375, 0.033660888671875, -0.059478759765625, -0.040313720703125, -0.01387786865234375, -0.031768798828125, 0.002964019775390625, 0.02081298828125, 0.0144805908203125, -0.060302734375, -0.056427001953125, 0.00460052490234375, -0.034210205078125, -0.019195556640625, 0.0011358261108398438, 0.015625, 0.01739501953125, -0.03887939453125, -0.0321044921875, -0.0009183883666992188, 0.024261474609375, 0.041839599609375, -0.043792724609375, -0.00580596923828125, -0.039703369140625, -0.0845947265625, 0.0733642578125, 0.0020122528076171875, -0.039093017578125, 0.0153961181640625, 0.00814056396484375, -0.03192138671875, 0.02020263671875, 0.0165252685546875, -0.04278564453125, 0.02276611328125, 0.01459503173828125, 0.0206298828125, 0.01187896728515625, 0.016571044921875, 0.00452423095703125, -0.01058197021484375, 0.0285797119140625, 0.022308349609375, 0.01568603515625, -0.02532958984375, 0.01044464111328125, 0.015838623046875, 0.03314208984375, -0.01287078857421875, 0.00689697265625, 0.01053619384765625, -0.0134735107421875, -0.016998291015625, 0.009429931640625, 0.0143890380859375, 0.0084228515625, 0.037078857421875, 0.04998779296875, 0.0091400146484375, -0.0177764892578125, -0.017852783203125, -0.0224609375, 0.01517486572265625, -0.0216827392578125, 0.0124969482421875, -0.07275390625, -0.032073974609375, 0.00830841064453125, -0.015228271484375, 0.0191802978515625, 0.0149993896484375, -0.024993896484375, 0.0048980712890625, 0.019775390625, -0.00612640380859375, -0.048980712890625, -0.015899658203125, -0.0019216537475585938, -0.01036834716796875, -0.01025390625, -0.0238189697265625, 0.0304718017578125, -0.0283660888671875, -0.0100555419921875, -0.04095458984375, -0.001689910888671875, -0.055755615234375, 0.0188446044921875, -0.03265380859375, 0.029815673828125, -0.0638427734375, 0.01377105712890625, -0.0167694091796875, 0.030181884765625, 0.00591278076171875, 0.032958984375, -0.00738525390625, 0.006855010986328125, 0.0243988037109375, -0.0034942626953125, -0.020599365234375, -0.00457763671875, -0.0230712890625, 0.020111083984375, 0.0133056640625, -0.0175018310546875, 0.05645751953125, -0.0262298583984375, -0.0117950439453125, 0.004547119140625, -0.0072479248046875, -0.085205078125, 0.038482666015625, -0.0192718505859375, 0.048309326171875, 0.0299835205078125 ]
d907af9af2839d007a0a3f710b4d83ceeaa75cc5
Wordpress Stackexchange Q: Custom Taxonomy Tree view I have been trying google for this, but not so easy to search for. I have a custom hierarchical taxonomy, something along the lines of: Chainsaws - Electric - Petrol - Other Grasscutters - Electric - Petrol - Other What I need to do is create an index page, retaining the hierarchical structure. The closest I have come to doing it is with: $products = get_terms('product-type'); foreach ($products as $product) { $out .= $product->name; } But this just shows the ones in use, and loses it hierarchy :( Any insights are very welcome. Thanks in advance Andy A: <?php $args = array( 'taxonomy' => 'product-type', 'hierarchical' => true, 'title_li' => '', 'hide_empty' => false ); ?> <ul> <?php wp_list_categories( $args ); ?> </ul> You can use the wp_list_categories function also for taxonomies. http://codex.wordpress.org/Template_Tags/wp_list_categories
Q: Custom Taxonomy Tree view I have been trying google for this, but not so easy to search for. I have a custom hierarchical taxonomy, something along the lines of: Chainsaws - Electric - Petrol - Other Grasscutters - Electric - Petrol - Other What I need to do is create an index page, retaining the hierarchical structure. The closest I have come to doing it is with: $products = get_terms('product-type'); foreach ($products as $product) { $out .= $product->name; } But this just shows the ones in use, and loses it hierarchy :( Any insights are very welcome. Thanks in advance Andy A: <?php $args = array( 'taxonomy' => 'product-type', 'hierarchical' => true, 'title_li' => '', 'hide_empty' => false ); ?> <ul> <?php wp_list_categories( $args ); ?> </ul> You can use the wp_list_categories function also for taxonomies. http://codex.wordpress.org/Template_Tags/wp_list_categories A: Here is something I whipped up: <?php //Walker function function custom_taxonomy_walker($taxonomy, $parent = 0) { $terms = get_terms($taxonomy, array('parent' => $parent, 'hide_empty' => false)); //If there are terms, start displaying if(count($terms) > 0) { //Displaying as a list $out = "<ul>"; //Cycle though the terms foreach ($terms as $term) { //Secret sauce. Function calls itself to display child elements, if any $out .="<li>" . $term->name . custom_taxonomy_walker($taxonomy, $term->term_id) . "</li>"; } $out .= "</ul>"; return $out; } return; } //Example echo custom_taxonomy_walker('category'); ?>
wordpress
{ "language": "en", "length": 222, "provenance": "stackexchange_00019.jsonl.gz:416156", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39125" }
[ 0.0054473876953125, -0.003101348876953125, -0.031463623046875, -0.04779052734375, 0.018707275390625, -0.0137481689453125, 0.0399169921875, 0.0192108154296875, -0.02679443359375, 0.00524139404296875, -0.03131103515625, -0.01971435546875, -0.07293701171875, -0.0251922607421875, -0.022064208984375, -0.0965576171875, 0.021392822265625, -0.01366424560546875, 0.04095458984375, -0.01093292236328125, 0.01336669921875, -0.009735107421875, 0.05389404296875, -0.016693115234375, 0.01128387451171875, -0.018310546875, 0.032684326171875, -0.038909912109375, 0.0137939453125, -0.042236328125, 0.01117706298828125, 0.0110321044921875, 0.0211029052734375, -0.021392822265625, 0.05535888671875, 0.03411865234375, 0.032318115234375, -0.01494598388671875, 0.0443115234375, -0.007122039794921875, 0.02215576171875, -0.01461029052734375, 0.020538330078125, 0.0037136077880859375, 0.0029506683349609375, -0.0239410400390625, 0.0056915283203125, -0.050445556640625, 0.0038127899169921875, -0.06378173828125, 0.03448486328125, -0.007457733154296875, 0.053436279296875, -0.0675048828125, -0.02197265625, 0.01505279541015625, 0.0202178955078125, -0.0270843505859375, 0.033172607421875, -0.033935546875, -0.037384033203125, -0.01490020751953125, 0.03955078125, 0.0007481575012207031, -0.0143280029296875, 0.00862884521484375, -0.0182952880859375, 0.01477813720703125, -0.027374267578125, -0.035858154296875, -0.0011224746704101562, -0.0222015380859375, -0.0027637481689453125, 0.0124359130859375, -0.0007452964782714844, -0.06121826171875, 0.01360321044921875, -0.044952392578125, 0.0067291259765625, 0.047454833984375, 0.0005078315734863281, -0.004978179931640625, -0.03570556640625, -0.0394287109375, 0.0234222412109375, 0.0020503997802734375, -0.0142669677734375, -0.008148193359375, 0.0072479248046875, -0.0362548828125, -0.01094818115234375, 0.008514404296875, -0.024169921875, 0.0142974853515625, -0.0263519287109375, -0.0034770965576171875, 0.01580810546875, 0.021331787109375, -0.0090789794921875, 0.016998291015625, -0.01532745361328125, -0.02972412109375, 0.04302978515625, -0.036468505859375, 0.0196380615234375, 0.043243408203125, -0.007633209228515625, -0.01137542724609375, 0.05682373046875, 0.0200042724609375, 0.017791748046875, 0.049530029296875, 0.00714111328125, -0.0350341796875, -0.002574920654296875, 0.01617431640625, -0.00960540771484375, 0.0178680419921875, 0.0206756591796875, -0.0018291473388671875, -0.007720947265625, 0.0218658447265625, -0.01806640625, -0.0021877288818359375, 0.0221405029296875, 0.018798828125, 0.00980377197265625, -0.0292510986328125, 0.06536865234375, -0.0015735626220703125, -0.0687255859375, 0.019622802734375, 0.0699462890625, 0.004146575927734375, 0.012481689453125, 0.0021915435791015625, 0.0167083740234375, -0.005901336669921875, 0.00308990478515625, 0.00614166259765625, 0.0241851806640625, -0.006649017333984375, 0.00981903076171875, -0.005985260009765625, 0.0074310302734375, -0.00689697265625, 0.00400543212890625, 0.027252197265625, 0.003589630126953125, -0.00098419189453125, 0.01428985595703125, -0.028594970703125, 0.05877685546875, -0.006313323974609375, -0.045989990234375, -0.044342041015625, 0.0017881393432617188, -0.02862548828125, -0.00708770751953125, -0.05560302734375, -0.013031005859375, -0.0017490386962890625, 0.000055909156799316406, -0.0538330078125, -0.046630859375, 0.0006628036499023438, -0.0145416259765625, 0.0018444061279296875, 0.0233612060546875, -0.011383056640625, 0.0005965232849121094, -0.01522064208984375, 0.00273895263671875, 0.0252227783203125, 0.023284912109375, 0.0277099609375, -0.03472900390625, -0.0107574462890625, 0.038421630859375, 0.0081329345703125, -0.01357269287109375, -0.032989501953125, -0.002788543701171875, 0.0185394287109375, -0.065673828125, 0.044158935546875, -0.0029296875, 0.0689697265625, 0.01715087890625, 0.0110931396484375, 0.043365478515625, 0.0016832351684570312, -0.09735107421875, 0.1019287109375, 0.01059722900390625, -0.03607177734375, -0.029632568359375, -0.0167999267578125, -0.006763458251953125, -0.04010009765625, -0.049774169921875, 0.0162506103515625, -0.00939178466796875, 0.03460693359375, -0.0154571533203125, 0.0278472900390625, -0.0128326416015625, 0.044708251953125, 0.0189208984375, 0.0139923095703125, 0.012115478515625, 0.014739990234375, -0.0020160675048828125, -0.057708740234375, -0.048248291015625, -0.004154205322265625, 0.0132598876953125, 0.01593017578125, -0.01111602783203125, -0.033660888671875, -0.004909515380859375, -0.0135040283203125, 0.01198577880859375, 0.037445068359375, 0.011871337890625, 0.02752685546875, -0.03533935546875, 0.017547607421875, 0.0037021636962890625, 0.0206298828125, -0.023681640625, 0.00872802734375, 0.06689453125, 0.041748046875, -0.01849365234375, -0.0005326271057128906, 0.0012531280517578125, -0.07769775390625, -0.004978179931640625, 0.06060791015625, 0.025787353515625, 0.03253173828125, -0.0211334228515625, -0.007144927978515625, 0.07763671875, -0.037567138671875, -0.02130126953125, -0.00994873046875, -0.029449462890625, 0.01020050048828125, 0.0194244384765625, 0.0224761962890625, 0.0144195556640625, 0.0233154296875, 0.01690673828125, 0.020751953125, -0.0377197265625, 0.0015439987182617188, -0.008575439453125, -0.01262664794921875, 0.0010929107666015625, -0.017242431640625, 0.006465911865234375, -0.01123046875, 0.05535888671875, 0.019561767578125, 0.057373046875, 0.047576904296875, -0.04046630859375, 0.0040130615234375, 0.0241851806640625, 0.0226593017578125, -0.006351470947265625, -0.00945281982421875, 0.038238525390625, -0.0513916015625, -0.0325927734375, 0.006694793701171875, 0.0251617431640625, -0.029022216796875, 0.0032444000244140625, 0.0384521484375, -0.0173797607421875, 0.005046844482421875, -0.034393310546875, -0.057586669921875, 0.003444671630859375, 0.0589599609375, -0.018157958984375, -0.03436279296875, -0.0080413818359375, 0.0299072265625, -0.03448486328125, 0.0399169921875, -0.031890869140625, -0.012969970703125, -0.0305938720703125, -0.035552978515625, 0.0423583984375, -0.051116943359375, 0.01242828369140625, 0.056365966796875, -0.005748748779296875, -0.0003533363342285156, 0.019378662109375, 0.0021686553955078125, 0.0223388671875, 0.00762939453125, 0.0010833740234375, 0.0161285400390625, -0.0548095703125, 0.00232696533203125, 0.039520263671875, 0.047515869140625, 0.020355224609375, -0.0191497802734375, 0.0211944580078125, 0.045867919921875, -0.0159149169921875, -0.035980224609375, 0.0287628173828125, -0.03704833984375, -0.009674072265625, -0.01560211181640625, -0.02587890625, -0.0212249755859375, 0.009521484375, 0.0011844635009765625, -0.0308990478515625, -0.036285400390625, -0.0341796875, -0.06756591796875, -0.058380126953125, 0.004283905029296875, 0.01033782958984375, 0.0226593017578125, 0.01213836669921875, 0.0426025390625, 0.00865936279296875, -0.0311737060546875, 0.009002685546875, 0.026031494140625, -0.004425048828125, -0.001605987548828125, 0.0053863525390625, -0.047943115234375, 0.01091766357421875, -0.00989532470703125, -0.0017299652099609375, 0.0191192626953125, 0.0019130706787109375, -0.00324249267578125, -0.0160369873046875, 0.005458831787109375, 0.0015268325805664062, -0.0190277099609375, 0.0115509033203125, 0.050079345703125, 0.002788543701171875, -0.0134124755859375, -0.045013427734375, -0.0131988525390625, -0.0246429443359375, 0.00958251953125, -0.027069091796875, 0.00791168212890625, -0.0100250244140625, 0.05755615234375, 0.0207977294921875, 0.0291900634765625, -0.01983642578125, 0.0023288726806640625, 0.01419830322265625, 0.005718231201171875, 0.020782470703125, -0.0078582763671875, 0.0162200927734375, -0.022552490234375, -0.005779266357421875, 0.00513458251953125, -0.008544921875, -0.0169677734375, 0.015838623046875, -0.042877197265625, -0.042388916015625, 0.0340576171875, -0.011749267578125, 0.01044464111328125, -0.0238037109375, -0.0035858154296875, -0.0007538795471191406, 0.049224853515625, -0.043975830078125, -0.007568359375, -0.00868988037109375, 0.0091705322265625, -0.0149078369140625, -0.038848876953125, -0.05743408203125, -0.0157928466796875, -0.0968017578125, 0.0281219482421875, 0.0017194747924804688, -0.036529541015625, -0.0284271240234375, 0.0159759521484375, -0.07769775390625, -0.0318603515625, 0.019317626953125, -0.0229949951171875, -0.01934814453125, 0.021881103515625, -0.0318603515625, -0.0005135536193847656, -0.01145172119140625, -0.0135955810546875, -0.037078857421875, -0.00827789306640625, -0.0172271728515625, 0.0125732421875, -0.004024505615234375, 0.013458251953125, -0.01357269287109375, 0.04010009765625, -0.005168914794921875, 0.034912109375, -0.01297760009765625, 0.019561767578125, -0.0321044921875, -0.0185546875, -0.01091766357421875, -0.0298004150390625, -0.0208282470703125, -0.0465087890625, -0.005161285400390625, 0.0157012939453125, -0.0240325927734375, 0.01012420654296875, -0.0287017822265625, -0.0017910003662109375, -0.09185791015625, -0.04541015625, -0.058502197265625, -0.01959228515625, -0.01360321044921875, -0.0258331298828125, -0.037994384765625, -0.10675048828125, 0.022735595703125, -0.0133209228515625, -0.015472412109375, 0.00733184814453125, 0.057464599609375, 0.0173187255859375, -0.0196990966796875, -0.0377197265625, -0.0181121826171875, 0.0281982421875, -0.0182647705078125, 0.0147552490234375, -0.0170745849609375, -0.0155029296875, 0.048736572265625, -0.0325927734375, 0.00334930419921875, 0.01430511474609375, 0.0292816162109375, 0.0203704833984375, -0.0180206298828125, 0.016326904296875, 0.005168914794921875, -0.0213165283203125, 0.0250701904296875, -0.0269622802734375, -0.03277587890625, -0.0177001953125, 0.06146240234375, -0.0202484130859375, 0.0271759033203125, -0.054107666015625, -0.03570556640625, 0.0188140869140625, -0.0127410888671875, 0.0217437744140625, 0.01047515869140625, -0.0027065277099609375, 0.0236358642578125, -0.0186920166015625, 0.0234527587890625, 0.00890350341796875, 0.00786590576171875, -0.0215606689453125, 0.018829345703125, 0.033203125, 0.003520965576171875, -0.00154876708984375, -0.004058837890625, 0.0131072998046875, 0.02880859375, -0.02423095703125, 0.0086669921875, -0.0008096694946289062, -0.0239410400390625, -0.0081024169921875, 0.007904052734375, 0.041961669921875, 0.00994873046875, 0.0096588134765625, -0.01088714599609375, -0.0775146484375, 0.026123046875, -0.04266357421875, -0.054290771484375, 0.0013818740844726562, -0.0256195068359375, -0.020538330078125, 0.0304412841796875, -0.0193634033203125, 0.006732940673828125, -0.001338958740234375, 0.0207977294921875, 0.0297393798828125, 0.02239990234375, 0.0252685546875, -0.01323699951171875, -0.00379180908203125, -0.0030918121337890625, -0.0011758804321289062, -0.03662109375, -0.02435302734375, 0.01488494873046875, 0.038970947265625, -0.00949859619140625, -0.0166168212890625, 0.01094818115234375, -0.021575927734375, -0.0155029296875, -0.023590087890625, -0.033905029296875, -0.007122039794921875, -0.016082763671875, 0.01393890380859375, 0.02789306640625, -0.006439208984375, -0.0257720947265625, 0.00794219970703125, -0.036407470703125, 0.002429962158203125, -0.0118408203125, -0.017913818359375, 0.00222015380859375, 0.01450347900390625, -0.0250091552734375, 0.0169677734375, 0.042236328125, -0.12060546875, -0.06280517578125, -0.0004470348358154297, -0.0184173583984375, 0.0283050537109375, -0.032501220703125, 0.0660400390625, -0.023895263671875, -0.033721923828125, 0.004711151123046875, 0.0093536376953125, 0.06781005859375, 0.05364990234375, -0.09979248046875, 0.028045654296875, -0.049102783203125, 0.02239990234375, -0.0662841796875, -0.0885009765625, -0.039764404296875, 0.002178192138671875, -0.0291290283203125, 0.0096282958984375, 0.010345458984375, 0.048248291015625, -0.01422882080078125, 0.0092926025390625, -0.0443115234375, -0.015777587890625, 0.0006747245788574219, 0.0189666748046875, 0.005077362060546875, 0.031829833984375, -0.00012433528900146484, -0.01462554931640625, -0.0267181396484375, -0.0240478515625, -0.0007476806640625, -0.0634765625, -0.015289306640625, -0.01067352294921875, -0.034576416015625, 0.05645751953125, 0.060272216796875, 0.005779266357421875, 0.0190887451171875, -0.01361846923828125, 0.005535125732421875, -0.01416778564453125, 0.0164031982421875, -0.0290069580078125, 0.0215301513671875, 0.006801605224609375, -0.005130767822265625, 0.003631591796875, 0.00684356689453125, 0.0004055500030517578, -0.0030879974365234375, 0.0016937255859375, -0.0015544891357421875, -0.002178192138671875, -0.0169219970703125, 0.018096923828125, 0.0186920166015625, 0.01467132568359375, 0.046356201171875, 0.0169677734375, 0.0284423828125, 0.0120086669921875, -0.01053619384765625, 0.0240020751953125, -0.0033435821533203125, 0.0914306640625, 0.003993988037109375, -0.035858154296875, 0.056793212890625, -0.058837890625, -0.04864501953125, 0.028656005859375, 0.01068115234375, -0.045501708984375, 0.0015316009521484375, 0.009124755859375, 0.0155181884765625, -0.0139007568359375, 0.026214599609375, -0.00890350341796875, -0.038726806640625, -0.054656982421875, -0.006252288818359375, -0.03228759765625, -0.0447998046875, 0.0031337738037109375, 0.001392364501953125, -0.00844573974609375, 0.039398193359375, 0.00713348388671875, 0.018951416015625, -0.0274810791015625, -0.02325439453125, 0.024658203125, -0.03753662109375, 0.0153350830078125, -0.0188140869140625, 0.01226043701171875, -0.032379150390625, 0.041168212890625, -0.041748046875, 0.036590576171875, 0.038665771484375, -0.01824951171875, -0.007251739501953125, 0.031463623046875, -0.0185394287109375, 0.03033447265625, -0.0006747245788574219, -0.05804443359375, 0.04339599609375, 0.0077362060546875, -0.013031005859375, -0.0232696533203125, -0.033905029296875, -0.0203399658203125, -0.05145263671875, 0.0283355712890625, -0.007740020751953125, 0.0013866424560546875, 0.0648193359375, -0.03363037109375, -0.01526641845703125, 0.0352783203125, 0.01416778564453125, -0.0175628662109375, 0.0347900390625, 0.03143310546875, -0.04296875, -0.034454345703125, 0.03265380859375, -0.0235748291015625, -0.00757598876953125, 0.037994384765625, -0.06268310546875, 0.060699462890625, -0.034423828125, 0.034942626953125, 0.00951385498046875, 0.01715087890625, 0.0086822509765625, 0.0043792724609375, -0.022430419921875, 0.010894775390625, 0.0145416259765625, 0.042144775390625, -0.047698974609375, -0.033355712890625, -0.0008816719055175781, 0.062469482421875, 0.01727294921875, 0.0083465576171875, -0.03564453125, -0.004833221435546875, -0.0033588409423828125, -0.003917694091796875, -0.02239990234375, 0.05780029296875, -0.00984954833984375, 0.029754638671875, 0.028472900390625, -0.0012445449829101562, 0.05206298828125, -0.0032215118408203125, -0.05126953125, 0.01544189453125, 0.01548004150390625, 0.01194000244140625, -0.0281219482421875, 0.0270233154296875, -0.044342041015625, -0.0194244384765625, 0.0297088623046875, -0.017852783203125, 0.04449462890625, 0.01715087890625, 0.034820556640625, -0.0002994537353515625, -0.007488250732421875, -0.00844573974609375, 0.0465087890625, 0.002597808837890625, -0.0005316734313964844, 0.044464111328125, 0.0191650390625, -0.0015058517456054688, 0.003696441650390625, 0.0016841888427734375, 0.019561767578125, -0.003627777099609375, 0.03790283203125, -0.016571044921875, -0.0007758140563964844, -0.0723876953125, -0.00275421142578125, 0.052520751953125, 0.055023193359375, -0.046234130859375, -0.0771484375, 0.01515960693359375, 0.0364990234375, 0.01500701904296875, 0.02703857421875, 0.01372528076171875, 0.0770263671875, 0.127197265625, -0.039947509765625, -0.0057830810546875, 0.0242919921875, 0.035675048828125, 0.004932403564453125, -0.0201263427734375, -0.053466796875, -0.036041259765625, -0.0225677490234375, 0.0011005401611328125, 0.0120086669921875, 0.039764404296875, 0.01224517822265625, 0.043548583984375, -0.0295257568359375, -0.021087646484375, -0.0018968582153320312, 0.017822265625, -0.00975799560546875, 0.002552032470703125, -0.00522613525390625, -0.031951904296875, -0.0183563232421875, 0.024932861328125, -0.00447845458984375, 0.02825927734375, 0.0255584716796875, 0.043609619140625, 0.022705078125, -0.012603759765625, 0.0540771484375, -0.01090240478515625, -0.01544189453125, -0.043060302734375, 0.04754638671875, 0.038665771484375, 0.03570556640625, -0.0096588134765625, 0.0285797119140625, 0.060394287109375, -0.023681640625, 0.049530029296875, -0.004199981689453125, -0.047332763671875, 0.0174560546875, -0.0288848876953125, 0.09869384765625, 0.004703521728515625, -0.0439453125, -0.0184783935546875, -0.00279998779296875, -0.021331787109375, 0.01325225830078125, 0.03607177734375, -0.00324249267578125, -0.0005931854248046875, 0.033355712890625, -0.00687408447265625, -0.0110321044921875, 0.0191497802734375, 0.0017175674438476562, -0.01415252685546875, 0.028076171875, 0.01010894775390625, -0.033935546875, -0.011138916015625, -0.004039764404296875, 0.007328033447265625, -0.0017595291137695312, 0.08013916015625, -0.01171875, 0.0051727294921875, -0.00359344482421875, 0.0166015625, -0.0172119140625, -0.03253173828125, 0.058258056640625, -0.00785064697265625, 0.00031447410583496094, -0.00977325439453125, -0.0218505859375, -0.005504608154296875, 0.05169677734375, -0.054229736328125, -0.004184722900390625, -0.007251739501953125, 0.0223541259765625, -0.0215606689453125, 0.031707763671875, -0.0264129638671875, -0.042755126953125, -0.060272216796875, -0.0289306640625, 0.0386962890625, 0.059967041015625, 0.010589599609375, 0.02520751953125, 0.02947998046875, -0.0177154541015625, 0.034454345703125, -0.027984619140625, 0.056793212890625, 0.0287017822265625, 0.0200347900390625, -0.0296478271484375, 0.0264129638671875, -0.01959228515625, 0.02166748046875, -0.006801605224609375, 0.036376953125, 0.012847900390625, -0.0447998046875, 0.00806427001953125, 0.03875732421875, 0.03289794921875, -0.0226593017578125, 0.0083160400390625, 0.0190277099609375, -0.0263214111328125, 0.0086212158203125, -0.03314208984375, -0.0418701171875, -0.03729248046875, 0.037017822265625, 0.0183563232421875, 0.00916290283203125, -0.0194854736328125, -0.056365966796875, 0.01629638671875, 0.03564453125, 0.020263671875, -0.06494140625, 0.0616455078125, -0.023193359375, 0.004543304443359375, 0.00634765625, -0.0075836181640625, 0.0035190582275390625, 0.0286865234375, -0.0110321044921875, 0.01494598388671875, -0.02264404296875, -0.021942138671875, -0.0020542144775390625, 0.0087127685546875, 0.007320404052734375, -0.019866943359375, -0.0146636962890625, 0.033782958984375, 0.0295867919921875, 0.0628662109375, 0.050933837890625, -0.031707763671875, -0.0174560546875, 0.0120086669921875, -0.02142333984375, -0.0211944580078125, 0.033538818359375, -0.053741455078125, -0.0260467529296875, 0.0061187744140625, 0.005176544189453125, 0.037322998046875, -0.038726806640625, -0.100341796875, 0.0263519287109375, -0.01849365234375, -0.051239013671875, 0.002803802490234375, 0.0030918121337890625, -0.03814697265625, 0.046234130859375, 0.025146484375, -0.041107177734375, 0.006439208984375, 0.02203369140625, 0.01116180419921875, 0.049407958984375, 0.01291656494140625, 0.04180908203125, -0.035247802734375, -0.008209228515625, -0.037994384765625, -0.006866455078125, -0.018951416015625, 0.0045318603515625, 0.0084228515625, 0.004299163818359375, -0.029815673828125, 0.0127105712890625, 0.0181884765625, 0.027435302734375, 0.0291290283203125, -0.033966064453125, -0.0141143798828125, -0.0572509765625, -0.0149688720703125, -0.045379638671875, -0.00565338134765625, 0.039306640625, -0.0740966796875, -0.06463623046875, -0.0247650146484375, -0.0124664306640625, 0.0251617431640625, -0.0855712890625, 0.028228759765625, 0.0399169921875, -0.0130462646484375, 0.00380706787109375, 0.026031494140625, -0.03564453125, -0.01276397705078125, -0.001377105712890625, -0.01690673828125, -0.0628662109375, 0.05230712890625, -0.0272064208984375, -0.01129913330078125, -0.02313232421875, -0.046844482421875, -0.01047515869140625, -0.0501708984375, -0.06591796875, -0.044647216796875, -0.0115203857421875, 0.012939453125, 0.0006265640258789062, -0.00844573974609375, 0.01849365234375, 0.0238037109375, 0.01580810546875, -0.015899658203125, 0.0118865966796875, -0.0023174285888671875, 0.0004630088806152344, -0.0416259765625, 0.06549072265625, 0.005764007568359375, 0.11724853515625, -0.0037994384765625, -0.004436492919921875, -0.03741455078125, 0.044921875, -0.0300750732421875, -0.006557464599609375, -0.004207611083984375, -0.0231781005859375, 0.004657745361328125, -0.023040771484375, -0.022308349609375, -0.0207672119140625, 0.00098419189453125, 0.046905517578125, -0.049072265625, 0.013275146484375 ]
404f35fdf849bb2d31bf9fc752301d17c480a335
Wordpress Stackexchange Q: How do I convert a page's title to lower case? On my test case, the page' title is "Privacy". The straightforward approach strtolower(the_title()) also returns "Privacy" -- still with a capital P. I also tried mb_strtolower(the_title()) and mb_strtolower(the_title(), 'utf8') with similar results. Not sure if it matters, but my wp-config.php has define('WPLANG', ''); define('DB_CHARSET', 'utf8'); A: I think the best method for this is by using CSS (text-transform: lowercase). But if you want to use PHP, WP for this you can use: <h1><?php echo strtolower( get_the_title() ); ?></h1>
Q: How do I convert a page's title to lower case? On my test case, the page' title is "Privacy". The straightforward approach strtolower(the_title()) also returns "Privacy" -- still with a capital P. I also tried mb_strtolower(the_title()) and mb_strtolower(the_title(), 'utf8') with similar results. Not sure if it matters, but my wp-config.php has define('WPLANG', ''); define('DB_CHARSET', 'utf8'); A: I think the best method for this is by using CSS (text-transform: lowercase). But if you want to use PHP, WP for this you can use: <h1><?php echo strtolower( get_the_title() ); ?></h1> A: lowercasing the title If I'm understanding you correctly, you should be doing: strtolower(get_the_title()); or print strtolower(get_the_title()); if you want to display it. Below is an explanation as to why. the_title() vs. get_the_title() The function the_title() prints the current post's title unless you pass false as its third argument. Unless you call it like: $title = the_title('', '', false); The title will be printed, and the $title variable won't contain anything. This matters because calling strtolower() on an empty variable doesn't do very much. You want to use get_the_title() function in most cases where you're looking to fill a variable with the content posts title. Note, however, that if you're not currently in a loop, you'll need to pass a post ID to get_the_title(). In almost all cases when on a single post or page you can do this by using: get_the_title($post->ID); as the $post variable should be in the global scope. A: Here is a great plugin for doing this. It's on my website, WordPress.org, Github and others. It's 100% free, with no membership versions. Please feel free to download it. This does it on the data level, which allows you to change it later, or do it on some and not others. It's a good option, and as I said. Works Great! My Site: https://properprogramming.com/tools/wp-change-titles-case/ Wordpress: https://wordpress.org/plugins/change-titles-case/
wordpress
{ "language": "en", "length": 308, "provenance": "stackexchange_00019.jsonl.gz:416165", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39145" }
[ -0.03082275390625, -0.0249481201171875, -0.0166778564453125, 0.020477294921875, -0.02398681640625, -0.027435302734375, 0.015960693359375, -0.004131317138671875, 0.0076751708984375, 0.01421356201171875, 0.01381683349609375, -0.00408935546875, -0.023468017578125, -0.035552978515625, -0.0030918121337890625, -0.039886474609375, 0.00536346435546875, -0.0218353271484375, 0.01715087890625, -0.0277252197265625, 0.00643157958984375, -0.0234375, 0.037994384765625, -0.025238037109375, 0.03814697265625, -0.0833740234375, 0.126953125, -0.044158935546875, 0.0491943359375, -0.037841796875, 0.03753662109375, -0.004322052001953125, 0.008056640625, -0.0231781005859375, 0.0806884765625, 0.09222412109375, 0.028656005859375, -0.01387786865234375, 0.05322265625, 0.0022449493408203125, 0.0171966552734375, 0.01407623291015625, -0.00769805908203125, 0.0194854736328125, -0.0157623291015625, -0.05670166015625, 0.037628173828125, -0.0214691162109375, 0.01226043701171875, 0.003185272216796875, 0.028472900390625, 0.0071868896484375, 0.0321044921875, -0.038421630859375, -0.00440216064453125, 0.0159454345703125, -0.00913238525390625, -0.0098419189453125, 0.0272979736328125, -0.043853759765625, -0.0178375244140625, -0.01537322998046875, 0.0322265625, 0.0286407470703125, -0.01763916015625, 0.032196044921875, 0.022369384765625, 0.001468658447265625, 0.0015048980712890625, -0.0238494873046875, -0.0201568603515625, -0.0215911865234375, -0.002651214599609375, -0.033233642578125, 0.006687164306640625, 0.007801055908203125, -0.0278167724609375, -0.034454345703125, 0.0219573974609375, 0.0048828125, 0.049713134765625, -0.0156707763671875, -0.024566650390625, -0.0004456043243408203, 0.0260467529296875, 0.0267791748046875, 0.006809234619140625, -0.040130615234375, -0.001796722412109375, 0.0002810955047607422, -0.017791748046875, 0.0714111328125, -0.0215911865234375, 0.0078277587890625, -0.0279083251953125, -0.023193359375, 0.005519866943359375, 0.0272674560546875, -0.0191650390625, -0.0033969879150390625, 0.029510498046875, -0.047882080078125, 0.0210723876953125, -0.011962890625, 0.0119171142578125, 0.002197265625, -0.0347900390625, -0.040618896484375, 0.035064697265625, 0.036285400390625, -0.00994110107421875, 0.01190185546875, -0.022796630859375, -0.0499267578125, 0.01345062255859375, 0.06988525390625, -0.01495361328125, 0.03607177734375, 0.0025119781494140625, 0.023651123046875, -0.0022830963134765625, -0.006496429443359375, 0.04229736328125, -0.048919677734375, 0.001811981201171875, -0.01529693603515625, -0.03387451171875, -0.030364990234375, -0.0182952880859375, 0.04571533203125, 0.0079193115234375, -0.01220703125, 0.034942626953125, 0.028289794921875, -0.015411376953125, -0.0369873046875, -0.0009746551513671875, -0.0074615478515625, 0.0012912750244140625, 0.02093505859375, -0.0022125244140625, -0.025634765625, 0.01953125, 0.0024013519287109375, -0.01508331298828125, -0.0002865791320800781, 0.0030803680419921875, 0.038421630859375, -0.005451202392578125, -0.06732177734375, 0.08441162109375, -0.06646728515625, 0.017547607421875, 0.0413818359375, -0.052703857421875, -0.00510406494140625, -0.002483367919921875, -0.0299224853515625, 0.00975799560546875, -0.06658935546875, 0.0413818359375, -0.002277374267578125, -0.0120697021484375, 0.04681396484375, 0.0193634033203125, -0.005466461181640625, -0.013641357421875, 0.00308990478515625, 0.012451171875, -0.02886962890625, 0.0120697021484375, 0.0153656005859375, -0.0299530029296875, -0.0258941650390625, 0.0030956268310546875, 0.00292205810546875, -0.040313720703125, 0.013641357421875, 0.0181121826171875, 0.0235137939453125, 0.006175994873046875, -0.0200347900390625, 0.0016384124755859375, 0.0186767578125, 0.0184173583984375, -0.0287933349609375, 0.0148468017578125, -0.02191162109375, -0.0049285888671875, 0.0274810791015625, -0.0216064453125, 0.034393310546875, -0.005596160888671875, 0.0301055908203125, -0.002719879150390625, -0.021453857421875, -0.0027904510498046875, 0.01239776611328125, -0.004917144775390625, -0.0272674560546875, -0.00250244140625, -0.002460479736328125, -0.0186614990234375, 0.0214996337890625, 0.0066680908203125, -0.0211029052734375, 0.006633758544921875, 0.00606536865234375, -0.0313720703125, -0.000690460205078125, 0.032135009765625, -0.01788330078125, -0.018035888671875, -0.0232086181640625, -0.0264892578125, -0.016754150390625, -0.0181427001953125, -0.046417236328125, -0.01377105712890625, -0.049041748046875, 0.00424957275390625, 0.0155792236328125, -0.0308837890625, 0.043701171875, 0.06292724609375, 0.0083770751953125, -0.021453857421875, -0.011260986328125, 0.06732177734375, -0.0038814544677734375, -0.00815582275390625, 0.0251312255859375, 0.054290771484375, 0.0174560546875, -0.04742431640625, -0.00644683837890625, -0.0426025390625, -0.0628662109375, -0.006534576416015625, 0.0810546875, 0.033172607421875, 0.022216796875, 0.00545501708984375, 0.0035266876220703125, 0.072998046875, -0.01250457763671875, 0.01129150390625, -0.0219268798828125, 0.038421630859375, 0.05950927734375, 0.01055145263671875, -0.040008544921875, 0.0112152099609375, -0.107177734375, 0.0034580230712890625, 0.0389404296875, -0.0229034423828125, -0.0298919677734375, 0.0160980224609375, -0.008087158203125, 0.01364898681640625, -0.035797119140625, -0.0084686279296875, -0.025421142578125, -0.0008516311645507812, 0.00487518310546875, -0.017486572265625, -0.0172576904296875, -0.025238037109375, 0.00791168212890625, 0.0249786376953125, -0.04754638671875, 0.001392364501953125, 0.0166015625, 0.013641357421875, 0.001338958740234375, -0.03533935546875, 0.001979827880859375, 0.0176239013671875, 0.00600433349609375, 0.0015935897827148438, 0.0404052734375, -0.044403076171875, -0.020355224609375, -0.00753021240234375, -0.0419921875, -0.0238037109375, 0.034576416015625, -0.0218353271484375, -0.0218048095703125, -0.0225372314453125, 0.0828857421875, -0.01690673828125, 0.068359375, 0.005664825439453125, 0.00859832763671875, 0.093994140625, -0.029937744140625, 0.0273895263671875, -0.0135040283203125, 0.09259033203125, 0.0516357421875, -0.0173187255859375, -0.0010347366333007812, -0.0001767873764038086, 0.01349639892578125, 0.0330810546875, -0.0211639404296875, -0.0172882080078125, 0.0041046142578125, -0.05389404296875, 0.0089874267578125, 0.005462646484375, 0.0220947265625, -0.01242828369140625, -0.025482177734375, -0.01434326171875, 0.016510009765625, -0.07684326171875, -0.050750732421875, -0.006053924560546875, -0.048858642578125, -0.0202789306640625, 0.030548095703125, -0.0303497314453125, 0.014007568359375, 0.05316162109375, -0.00954437255859375, 0.0310821533203125, -0.02496337890625, -0.0304412841796875, -0.03369140625, -0.06201171875, -0.028106689453125, 0.00008189678192138672, 0.0036525726318359375, 0.0177154541015625, -0.0335693359375, -0.0036869049072265625, -0.0130767822265625, 0.0073699951171875, 0.051666259765625, 0.0163421630859375, -0.02032470703125, -0.0126190185546875, -0.0044403076171875, -0.0010862350463867188, 0.0146331787109375, -0.061553955078125, -0.0255279541015625, 0.028594970703125, -0.0292510986328125, -0.0157623291015625, 0.00274658203125, -0.0279998779296875, 0.0352783203125, 0.0204010009765625, -0.01320648193359375, -0.00885009765625, -0.0712890625, -0.056976318359375, 0.0199432373046875, -0.0313720703125, 0.033721923828125, 0.0035495758056640625, -0.0234222412109375, -0.00021731853485107422, 0.048309326171875, 0.0208892822265625, 0.031829833984375, 0.0185546875, 0.0268402099609375, -0.027679443359375, -0.00965118408203125, -0.0222015380859375, -0.00865936279296875, 0.0191192626953125, -0.01401519775390625, 0.017791748046875, 0.006397247314453125, 0.019866943359375, 0.0059967041015625, -0.0205841064453125, -0.0284271240234375, -0.0924072265625, 0.062225341796875, -0.041534423828125, 0.0146331787109375, -0.032196044921875, -0.0389404296875, 0.029083251953125, 0.1456298828125, -0.031768798828125, -0.0215606689453125, 0.018707275390625, 0.0252838134765625, -0.0245513916015625, 0.006381988525390625, -0.048187255859375, -0.025421142578125, -0.07366943359375, 0.018890380859375, -0.01131439208984375, -0.03326416015625, -0.0028133392333984375, -0.060150146484375, -0.01480865478515625, -0.040985107421875, 0.00513458251953125, 0.0193328857421875, -0.00905609130859375, 0.031890869140625, -0.0239410400390625, 0.037628173828125, 0.01554107666015625, -0.0281829833984375, -0.07080078125, -0.01137542724609375, 0.0039825439453125, 0.0292205810546875, -0.04315185546875, 0.0254974365234375, -0.015869140625, 0.049163818359375, 0.0244598388671875, 0.033172607421875, -0.0210723876953125, -0.03167724609375, 0.02178955078125, 0.045684814453125, 0.01316070556640625, 0.0010194778442382812, 0.0018949508666992188, -0.0092926025390625, -0.0799560546875, -0.016448974609375, -0.0179443359375, 0.0345458984375, 0.0268096923828125, -0.054046630859375, -0.042694091796875, -0.0122222900390625, 0.0237884521484375, -0.006412506103515625, 0.004428863525390625, -0.0009984970092773438, 0.017303466796875, -0.02398681640625, 0.06170654296875, 0.048431396484375, 0.015411376953125, -0.018646240234375, 0.05706787109375, 0.01120758056640625, -0.05615234375, 0.01100921630859375, -0.0245513916015625, 0.01194000244140625, -0.035491943359375, 0.05908203125, 0.0288238525390625, -0.0028057098388671875, 0.05072021484375, -0.0149688720703125, -0.001983642578125, 0.019683837890625, 0.02276611328125, -0.0156402587890625, -0.048004150390625, 0.042694091796875, -0.01678466796875, -0.0265045166015625, 0.0225067138671875, -0.028411865234375, 0.040191650390625, -0.0176849365234375, -0.0183563232421875, -0.0198211669921875, 0.00021851062774658203, 0.0017948150634765625, -0.05218505859375, 0.0175018310546875, -0.0180206298828125, -0.0035228729248046875, -0.021453857421875, 0.0155029296875, -0.01226043701171875, 0.01511383056640625, 0.0183563232421875, -0.057220458984375, -0.003490447998046875, -0.0185546875, 0.065673828125, -0.05889892578125, 0.0267791748046875, -0.035003662109375, -0.00557708740234375, 0.025665283203125, 0.01342010498046875, -0.048309326171875, 0.00524139404296875, -0.0187225341796875, -0.0032215118408203125, 0.00860595703125, 0.0189666748046875, -0.035247802734375, -0.0228729248046875, 0.0114593505859375, 0.048736572265625, 0.0078582763671875, 0.00728607177734375, 0.01708984375, 0.033233642578125, 0.043121337890625, -0.025970458984375, -0.013214111328125, 0.04901123046875, 0.0218658447265625, 0.00855255126953125, -0.0082550048828125, 0.00551605224609375, 0.01300811767578125, 0.025909423828125, 0.004791259765625, -0.01354217529296875, 0.01361846923828125, 0.018218994140625, 0.0188140869140625, -0.0283355712890625, -0.026611328125, 0.038848876953125, 0.038665771484375, -0.0211181640625, 0.004291534423828125, 0.007671356201171875, 0.005825042724609375, -0.0086517333984375, -0.0011835098266601562, -0.0173797607421875, -0.0255126953125, -0.00839996337890625, 0.01470184326171875, -0.0084381103515625, -0.01186370849609375, 0.025543212890625, -0.008819580078125, 0.01605224609375, 0.004985809326171875, -0.022491455078125, -0.00962066650390625, -0.030548095703125, -0.02142333984375, 0.018218994140625, -0.0031528472900390625, 0.005870819091796875, -0.0171356201171875, -0.00791168212890625, -0.0099639892578125, -0.0265655517578125, 0.047119140625, -0.0128326416015625, 0.0467529296875, -0.032196044921875, -0.01233673095703125, 0.0183868408203125, 0.019073486328125, 0.013946533203125, -0.0037288665771484375, -0.0065460205078125, 0.017333984375, -0.04254150390625, 0.004638671875, 0.006832122802734375, -0.03350830078125, -0.007770538330078125, -0.0457763671875, 0.023468017578125, 0.029266357421875, 0.0013933181762695312, -0.045623779296875, -0.04107666015625, 0.00539398193359375, 0.030609130859375, 0.050384521484375, -0.046478271484375, 0.079345703125, 0.01369476318359375, 0.0289764404296875, -0.0074462890625, 0.044586181640625, 0.01070404052734375, -0.00435638427734375, 0.01007843017578125, -0.026275634765625, -0.0328369140625, -0.016326904296875, 0.00968170166015625, 0.0237579345703125, 0.037628173828125, -0.008514404296875, 0.0218048095703125, 0.01137542724609375, 0.013824462890625, -0.01934814453125, -0.00406646728515625, -0.0158538818359375, -0.0154876708984375, 0.0261383056640625, 0.0150146484375, 0.046234130859375, -0.0271148681640625, -0.0247650146484375, 0.0289306640625, -0.004169464111328125, 0.011749267578125, 0.04632568359375, -0.051788330078125, 0.037261962890625, 0.046905517578125, 0.0252532958984375, 0.023162841796875, -0.0033245086669921875, 0.0028705596923828125, 0.01355743408203125, -0.00402069091796875, 0.003437042236328125, 0.016754150390625, 0.06439208984375, -0.0030040740966796875, -0.0231781005859375, 0.0186309814453125, -0.035430908203125, 0.006732940673828125, 0.09844970703125, 0.06732177734375, -0.13134765625, 0.006931304931640625, 0.0147857666015625, 0.0168609619140625, 0.01424407958984375, -0.0111083984375, -0.0111236572265625, -0.04290771484375, 0.06683349609375, -0.045318603515625, -0.00920867919921875, 0.016143798828125, -0.01386260986328125, 0.017547607421875, -0.024322509765625, 0.09124755859375, 0.01507568359375, -0.07427978515625, 0.00809478759765625, 0.022369384765625, 0.013580322265625, -0.0297088623046875, -0.005916595458984375, 0.032958984375, -0.037139892578125, -0.0750732421875, 0.02471923828125, 0.00478363037109375, -0.02435302734375, 0.01849365234375, -0.0030307769775390625, -0.0046234130859375, 0.057830810546875, -0.0292510986328125, 0.01849365234375, 0.0253143310546875, -0.02191162109375, -0.0072479248046875, -0.029510498046875, 0.0182037353515625, 0.004962921142578125, -0.054962158203125, 0.009246826171875, -0.03851318359375, -0.00864410400390625, -0.01291656494140625, -0.047119140625, 0.056854248046875, -0.00025725364685058594, -0.03497314453125, 0.0134124755859375, -0.046234130859375, -0.004550933837890625, 0.0013360977172851562, 0.040618896484375, -0.05364990234375, -0.005290985107421875, 0.0164031982421875, -0.01763916015625, -0.03155517578125, -0.01105499267578125, -0.06256103515625, 0.033203125, -0.00287628173828125, 0.041656494140625, 0.01358795166015625, -0.010650634765625, -0.013763427734375, -0.01544952392578125, 0.0030994415283203125, 0.04107666015625, -0.0223236083984375, -0.0038051605224609375, -0.00864410400390625, -0.005771636962890625, -0.0003180503845214844, 0.013092041015625, -0.0154571533203125, -0.01407623291015625, -0.0177764892578125, 0.001407623291015625, 0.067626953125, 0.058685302734375, 0.04815673828125, 0.019744873046875, -0.0083465576171875, 0.014312744140625, 0.01201629638671875, -0.03387451171875, 0.0184478759765625, -0.03118896484375, -0.0206756591796875, 0.0159759521484375, 0.02099609375, 0.00681304931640625, 0.00179290771484375, -0.006275177001953125, -0.06756591796875, 0.00988006591796875, 0.04632568359375, -0.016326904296875, 0.006076812744140625, 0.041717529296875, 0.052276611328125, -0.072021484375, -0.0281829833984375, -0.03631591796875, 0.04400634765625, 0.0178070068359375, -0.019561767578125, 0.03143310546875, 0.0159759521484375, -0.0206146240234375, -0.01239776611328125, -0.0148468017578125, -0.0002853870391845703, -0.00650787353515625, 0.050506591796875, 0.04058837890625, 0.01151275634765625, -0.0118408203125, 0.04168701171875, 0.0304718017578125, 0.05828857421875, -0.055145263671875, -0.0218353271484375, 0.01812744140625, 0.016357421875, 0.01296234130859375, -0.0234222412109375, 0.032745361328125, -0.00942230224609375, 0.0091400146484375, 0.0019817352294921875, -0.0200042724609375, 0.055419921875, -0.010467529296875, 0.01422882080078125, 0.0160675048828125, 0.0029048919677734375, -0.0027904510498046875, -0.0167694091796875, 0.0047607421875, 0.027587890625, 0.06317138671875, -0.00206756591796875, 0.056732177734375, -0.06298828125, -0.010772705078125, -0.0021076202392578125, 0.003902435302734375, 0.02178955078125, -0.002033233642578125, 0.01073455810546875, 0.012359619140625, 0.021759033203125, 0.0062255859375, 0.0174713134765625, 0.025177001953125, 0.07476806640625, 0.051116943359375, -0.0310821533203125, -0.00836181640625, 0.006805419921875, -0.0218353271484375, 0.03472900390625, 0.0027923583984375, 0.00994873046875, -0.005321502685546875, -0.022369384765625, -0.036163330078125, 0.055572509765625, 0.00659942626953125, -0.002719879150390625, 0.00905609130859375, 0.0017080307006835938, -0.0028972625732421875, 0.032318115234375, 0.0026607513427734375, 0.009246826171875, 0.01543426513671875, -0.04986572265625, 0.0072479248046875, -0.029693603515625, -0.048248291015625, 0.003936767578125, 0.0287628173828125, -0.0305938720703125, 0.035614013671875, -0.02642822265625, 0.00717926025390625, 0.0116729736328125, 0.0144805908203125, -0.0170745849609375, 0.019012451171875, 0.04461669921875, -0.01099395751953125, -0.08917236328125, -0.051788330078125, -0.07489013671875, 0.054931640625, 0.00962066650390625, 0.065185546875, -0.002407073974609375, 0.0635986328125, -0.0606689453125, 0.0046844482421875, -0.046356201171875, -0.058319091796875, 0.0635986328125, 0.0104827880859375, -0.02459716796875, -0.00431060791015625, -0.06011962890625, 0.04437255859375, -0.008636474609375, -0.003902435302734375, 0.01085662841796875, 0.010772705078125, 0.01107025146484375, 0.0165863037109375, 0.00435638427734375, -0.02423095703125, -0.00989532470703125, -0.01219940185546875, -0.0184783935546875, 0.038909912109375, 0.0279388427734375, -0.0010156631469726562, 0.0013713836669921875, -0.035980224609375, -0.01561737060546875, 0.0295867919921875, -0.03369140625, 0.01259613037109375, 0.0086669921875, -0.00730133056640625, -0.016998291015625, 0.00472259521484375, -0.017608642578125, 0.0127105712890625, 0.0198516845703125, 0.0254669189453125, 0.006473541259765625, 0.01035308837890625, -0.03607177734375, -0.029937744140625, 0.010009765625, -0.0010013580322265625, 0.005535125732421875, -0.045806884765625, -0.0088348388671875, -0.0281982421875, -0.02783203125, -0.03521728515625, -0.00959014892578125, -0.00536346435546875, 0.0170745849609375, 0.0138092041015625, -0.035430908203125, -0.036285400390625, -0.0391845703125, -0.014556884765625, -0.02801513671875, 0.045196533203125, -0.026031494140625, -0.0195159912109375, -0.044677734375, -0.029541015625, 0.003932952880859375, 0.0098724365234375, 0.02484130859375, -0.051055908203125, -0.0033321380615234375, -0.046661376953125, -0.026947021484375, -0.039215087890625, 0.0023250579833984375, 0.04248046875, -0.0201568603515625, -0.04376220703125, 0.003353118896484375, 0.01512908935546875, 0.0445556640625, 0.01232147216796875, -0.025726318359375, -0.007465362548828125, 0.006870269775390625, 0.0049896240234375, -0.05780029296875, 0.036834716796875, -0.105224609375, 0.0020656585693359375, 0.0266571044921875, -0.03387451171875, -0.0151214599609375, -0.039306640625, -0.00240325927734375, 0.01715087890625, 0.0306243896484375, -0.0277252197265625, -0.043792724609375, 0.020172119140625, 0.01263427734375, -0.0019063949584960938, -0.00966644287109375, 0.0008244514465332031, -0.01134490966796875, 0.01003265380859375, 0.01934814453125, 0.06781005859375, 0.0136566162109375, 0.0601806640625, -0.0291595458984375, 0.03448486328125, -0.0224609375, -0.0029468536376953125, -0.01500701904296875, -0.01497650146484375, -0.00739288330078125, 0.01898193359375, -0.0382080078125, -0.0576171875, -0.0009512901306152344, 0.02398681640625, -0.006832122802734375, -0.0136566162109375, 0.0031032562255859375, -0.00264739990234375, 0.00527191162109375, 0.0196685791015625, 0.0002008676528930664, -0.011444091796875, 0.00615692138671875, 0.00734710693359375, -0.01219940185546875, 0.018341064453125, 0.01457977294921875, -0.03173828125, -0.00151824951171875, 0.003978729248046875, 0.004138946533203125, 0.0019855499267578125, -0.07720947265625, -0.0207061767578125, -0.0166778564453125, -0.042205810546875, 0.00402069091796875, 0.055084228515625, -0.052490234375, 0.10430908203125, -0.07293701171875, -0.04931640625, 0.0345458984375, 0.0347900390625, 0.01103973388671875, -0.0184478759765625, 0.00498199462890625, -0.0044403076171875, 0.0248870849609375, -0.004669189453125, 0.0278472900390625, -0.00878143310546875, 0.0251007080078125, -0.0208282470703125, -0.0258331298828125, 0.02099609375, 0.0260772705078125, 0.0361328125, -0.0288238525390625, 0.0089263916015625, 0.02740478515625, -0.00827789306640625, 0.0019664764404296875, 0.00940704345703125, -0.0132904052734375, 0.059051513671875, -0.0012197494506835938, -0.038787841796875, 0.0004467964172363281, -0.01354217529296875, 0.00870513916015625, 0.0161590576171875, 0.023345947265625, 0.01093292236328125, 0.0191497802734375, -0.03900146484375, -0.004085540771484375, 0.00533294677734375 ]
aeb725d5acf8ae4eaf1fd273a42acad7e0b9fcce
Wordpress Stackexchange Q: What is the correct way for a theme to support plugin UIs? For instance if my plugin is creating a form on a page, what can I do to make it as easy as possible for theme developers to skin the form too? A: First of all, provide a well-formed default HTML form. Use <label>, <fieldset> and <legend> where appropriate. This markup provides a good structure for CSS styling. Adding in some CSS classes may help too. Provide a filter that allows developers to tweak the default form. To go even further, you can allow developers to completely rewrite the form output to their likings by allowing them to provide a custom form template file within a theme. if ($custom_form = locate_template('plugin_form.php')) { // Load custom form include $custom_form; } else { // Default form with filter $form = '<form><!-- Default HTML --></form>'; $form = apply_filters('pluginprefix_form_output', $form); echo $form; } Have a look at the get_search_form() function in wp-includes/general-template.php for a good example of a similar implementation.
Q: What is the correct way for a theme to support plugin UIs? For instance if my plugin is creating a form on a page, what can I do to make it as easy as possible for theme developers to skin the form too? A: First of all, provide a well-formed default HTML form. Use <label>, <fieldset> and <legend> where appropriate. This markup provides a good structure for CSS styling. Adding in some CSS classes may help too. Provide a filter that allows developers to tweak the default form. To go even further, you can allow developers to completely rewrite the form output to their likings by allowing them to provide a custom form template file within a theme. if ($custom_form = locate_template('plugin_form.php')) { // Load custom form include $custom_form; } else { // Default form with filter $form = '<form><!-- Default HTML --></form>'; $form = apply_filters('pluginprefix_form_output', $form); echo $form; } Have a look at the get_search_form() function in wp-includes/general-template.php for a good example of a similar implementation. A: In general, less is more, i.e. do no styling besides adding WP standard classes. If your plugin is to blend in, it should look like the rest. However, if you have sufficient reason to believe that your plugin's output should be styled differently than the rest of the site (i.e. if you add a distinct visual feature), you can add -- besides the standard classes -- your own class names to the elements you create. Stick to as few classes as possible as high up in the hierarchy as possible, e.g. <div style="am01_div"> <ul> <li>Test</li> </ul> </div> is better than <div style="am01_div"> <ul style="am01_ul"> <li style="am01_li">Test</li> </ul> </div> Then, users can create a child theme of their main theme in whose CSS they can add styling information for your elements. (I actually used to think that plugins should provide options to style their output but I changed my mind. Separation of concerns should be applied here: you create (reasonable) output, users style if they want to.)
wordpress
{ "language": "en", "length": 335, "provenance": "stackexchange_00019.jsonl.gz:416206", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39284" }
[ 0.046661376953125, -0.01277923583984375, 0.012603759765625, -0.00820159912109375, -0.00991058349609375, -0.025634765625, 0.0298309326171875, -0.0164794921875, -0.003078460693359375, 0.006786346435546875, 0.0176849365234375, -0.00836944580078125, -0.0697021484375, -0.03350830078125, -0.0283050537109375, -0.03253173828125, 0.00722503662109375, -0.0244293212890625, -0.008697509765625, -0.04736328125, 0.036285400390625, -0.040557861328125, -0.0008740425109863281, 0.046630859375, 0.03887939453125, -0.063232421875, 0.0538330078125, -0.0106353759765625, 0.0294342041015625, -0.007587432861328125, 0.02264404296875, -0.007663726806640625, 0.025299072265625, 0.003082275390625, -0.006275177001953125, 0.03338623046875, 0.045989990234375, -0.0216827392578125, 0.01325225830078125, 0.02685546875, 0.057403564453125, -0.037139892578125, -0.02008056640625, -0.01403045654296875, -0.0125579833984375, -0.0504150390625, 0.07000732421875, -0.0077667236328125, 0.020721435546875, -0.020416259765625, 0.01241302490234375, 0.0027027130126953125, 0.041046142578125, -0.04754638671875, -0.03277587890625, -0.028533935546875, -0.01104736328125, -0.0400390625, 0.04046630859375, 0.00910186767578125, -0.00867462158203125, -0.045928955078125, 0.029052734375, 0.007106781005859375, 0.023681640625, -0.00946044921875, -0.01387786865234375, 0.023284912109375, 0.0035953521728515625, 0.02392578125, 0.0165252685546875, -0.024383544921875, 0.019805908203125, -0.029693603515625, -0.0034275054931640625, -0.012176513671875, 0.01568603515625, 0.0006628036499023438, 0.01403045654296875, -0.016845703125, 0.0008530616760253906, 0.0003771781921386719, -0.0214080810546875, -0.03228759765625, 0.011505126953125, 0.003559112548828125, -0.01149749755859375, -0.01122283935546875, -0.03564453125, -0.012969970703125, -0.0206451416015625, -0.0469970703125, -0.05938720703125, 0.026519775390625, 0.022430419921875, -0.03448486328125, 0.0289764404296875, 0.012542724609375, 0.033966064453125, 0.0249786376953125, 0.037933349609375, -0.08294677734375, 0.08380126953125, -0.0333251953125, -0.01291656494140625, 0.0953369140625, 0.019378662109375, 0.0293121337890625, 0.00342559814453125, -0.0028591156005859375, 0.038421630859375, -0.03271484375, 0.004505157470703125, -0.0367431640625, -0.009765625, 0.041748046875, 0.0181121826171875, 0.01023101806640625, 0.004486083984375, 0.024932861328125, -0.0082855224609375, 0.0020503997802734375, 0.0252227783203125, -0.0297698974609375, -0.0231781005859375, -0.03631591796875, -0.02752685546875, -0.0208892822265625, -0.00597381591796875, -0.036773681640625, -0.0297698974609375, 0.0241851806640625, 0.08990478515625, 0.049407958984375, 0.03155517578125, -0.00788116455078125, 0.005008697509765625, -0.013671875, 0.0197601318359375, -0.0364990234375, 0.0135498046875, 0.0229949951171875, 0.046356201171875, -0.009979248046875, -0.0169677734375, 0.0178375244140625, 0.01294708251953125, 0.0185089111328125, -0.025604248046875, -0.050567626953125, 0.027496337890625, -0.0229949951171875, -0.006237030029296875, 0.0086517333984375, 0.05078125, -0.0134429931640625, 0.069580078125, -0.029205322265625, 0.0029087066650390625, -0.008331298828125, -0.016571044921875, 0.007289886474609375, 0.0239105224609375, -0.0692138671875, -0.05731201171875, -0.038818359375, -0.0181427001953125, 0.003711700439453125, 0.01128387451171875, -0.031707763671875, 0.0029125213623046875, -0.018402099609375, -0.0050811767578125, 0.0038051605224609375, 0.0018167495727539062, 0.04736328125, -0.0022525787353515625, 0.0362548828125, 0.03411865234375, 0.0013322830200195312, -0.019317626953125, -0.042327880859375, 0.0927734375, -0.03802490234375, -0.06158447265625, 0.042938232421875, -0.0143585205078125, 0.033538818359375, 0.01515960693359375, -0.006298065185546875, 0.041900634765625, 0.033599853515625, -0.018646240234375, 0.01343536376953125, -0.0036144256591796875, -0.006359100341796875, -0.02191162109375, 0.017669677734375, -0.019989013671875, 0.0008916854858398438, -0.005035400390625, 0.004241943359375, 0.005771636962890625, -0.004146575927734375, -0.01458740234375, -0.0035343170166015625, -0.0125274658203125, 0.023468017578125, 0.017852783203125, 0.00879669189453125, -0.00838470458984375, 0.017913818359375, -0.0207977294921875, -0.0060577392578125, -0.014434814453125, 0.05120849609375, 0.0049285888671875, 0.040008544921875, 0.018951416015625, 0.01180267333984375, 0.03778076171875, -0.0574951171875, 0.018310546875, 0.008575439453125, 0.0270843505859375, 0.0287322998046875, -0.0291595458984375, 0.000919342041015625, 0.0269622802734375, 0.0144195556640625, 0.0078887939453125, 0.032073974609375, 0.01227569580078125, 0.0411376953125, -0.00708770751953125, -0.0022449493408203125, 0.001941680908203125, -0.05450439453125, 0.01149749755859375, 0.0191192626953125, 0.00901031494140625, 0.0225372314453125, -0.004268646240234375, 0.043304443359375, 0.042388916015625, -0.016937255859375, 0.00611114501953125, 0.029449462890625, 0.032012939453125, 0.048553466796875, -0.031982421875, -0.046905517578125, 0.0217742919921875, -0.056915283203125, -0.0016508102416992188, 0.0161895751953125, -0.0088653564453125, -0.0263824462890625, 0.0038909912109375, -0.013153076171875, 0.007617950439453125, -0.06463623046875, -0.05584716796875, -0.01544189453125, -0.006198883056640625, -0.004276275634765625, -0.0022144317626953125, -0.006908416748046875, -0.03387451171875, 0.011260986328125, 0.0125885009765625, -0.01434326171875, -0.015960693359375, -0.02423095703125, -0.0021572113037109375, 0.0298004150390625, -0.038421630859375, 0.0148773193359375, 0.0189208984375, -0.01177978515625, -0.02496337890625, 0.0298614501953125, -0.01139068603515625, -0.01305389404296875, -0.03729248046875, -0.0888671875, 0.027923583984375, 0.0195465087890625, 0.04742431640625, 0.0161285400390625, 0.04010009765625, 0.008880615234375, -0.035369873046875, 0.062408447265625, 0.0131683349609375, -0.037994384765625, -0.003238677978515625, -0.010772705078125, 0.027069091796875, -0.02032470703125, 0.01971435546875, 0.050262451171875, -0.0154876708984375, -0.001018524169921875, -0.00934600830078125, -0.00934600830078125, -0.00931549072265625, 0.003204345703125, -0.01190948486328125, -0.0303192138671875, -0.03070068359375, 0.0026035308837890625, 0.025665283203125, 0.057403564453125, -0.0036754608154296875, -0.052642822265625, 0.008056640625, 0.0266571044921875, -0.0195770263671875, -0.007183074951171875, -0.030517578125, -0.052581787109375, 0.0004734992980957031, -0.019805908203125, -0.0138092041015625, 0.0113525390625, -0.003391265869140625, 0.0074615478515625, -0.00791168212890625, -0.045379638671875, -0.0693359375, -0.07122802734375, -0.08013916015625, -0.0072021484375, -0.004364013671875, 0.0198822021484375, 0.0077972412109375, 0.0304107666015625, 0.01317596435546875, -0.0482177734375, 0.020843505859375, 0.040283203125, -0.007617950439453125, 0.0029468536376953125, 0.03656005859375, -0.07464599609375, 0.01568603515625, 0.0027332305908203125, -0.0132293701171875, 0.006557464599609375, 0.0082244873046875, -0.0169219970703125, -0.03692626953125, -0.046356201171875, -0.040924072265625, 0.00754547119140625, 0.03790283203125, -0.032806396484375, 0.015411376953125, -0.047821044921875, 0.0038928985595703125, -0.0007219314575195312, -0.0203094482421875, 0.0008807182312011719, -0.0083465576171875, -0.01334381103515625, 0.0084686279296875, 0.0022220611572265625, -0.00982666015625, -0.00408935546875, 0.0129547119140625, -0.039154052734375, 0.00794219970703125, 0.00481414794921875, 0.0015716552734375, 0.01154327392578125, 0.04168701171875, -0.031768798828125, -0.025543212890625, -0.0036468505859375, -0.014190673828125, 0.00972747802734375, -0.033050537109375, -0.0114288330078125, -0.056060791015625, 0.035430908203125, -0.0194091796875, 0.0081787109375, -0.034912109375, -0.00577545166015625, -0.0139617919921875, 0.07342529296875, -0.045074462890625, -0.01461029052734375, 0.01904296875, 0.017852783203125, -0.0143280029296875, -0.0206146240234375, -0.04656982421875, -0.02264404296875, -0.1142578125, 0.0005235671997070312, 0.00939178466796875, -0.053741455078125, 0.01044464111328125, 0.01337432861328125, -0.067626953125, -0.048492431640625, 0.0201873779296875, -0.0105133056640625, -0.0030727386474609375, 0.01447296142578125, -0.01389312744140625, -0.00984954833984375, 0.006076812744140625, -0.029876708984375, -0.058837890625, -0.017608642578125, -0.0258026123046875, 0.07275390625, 0.04815673828125, -0.047607421875, -0.004241943359375, 0.03753662109375, -0.010894775390625, 0.03118896484375, -0.0106048583984375, -0.00366973876953125, -0.0203399658203125, 0.0269927978515625, 0.0154571533203125, -0.00411224365234375, 0.0203399658203125, 0.00601959228515625, -0.058349609375, -0.0157318115234375, -0.0256195068359375, -0.03582763671875, 0.0203094482421875, -0.05328369140625, -0.0013475418090820312, -0.026580810546875, -0.051513671875, -0.0137786865234375, -0.043853759765625, -0.007595062255859375, 0.020355224609375, -0.0061492919921875, 0.040313720703125, 0.020416259765625, 0.0077362060546875, 0.00878143310546875, 0.093505859375, 0.0095977783203125, -0.0223846435546875, -0.06951904296875, -0.007366180419921875, 0.02001953125, 0.040985107421875, -0.0073089599609375, -0.0120391845703125, -0.03985595703125, 0.044525146484375, 0.0228118896484375, -0.00768280029296875, 0.002956390380859375, 0.0288848876953125, -0.007343292236328125, -0.04498291015625, 0.02423095703125, 0.0010843276977539062, 0.0009613037109375, -0.01128387451171875, -0.0098724365234375, -0.0001837015151977539, -0.01120758056640625, 0.01180267333984375, 0.01087188720703125, 0.0014200210571289062, -0.0304412841796875, -0.00641632080078125, -0.00377655029296875, 0.0198211669921875, 0.0240325927734375, 0.04132080078125, -0.0028209686279296875, 0.00678253173828125, -0.01485443115234375, 0.010223388671875, -0.00382232666015625, 0.0032291412353515625, -0.00954437255859375, 0.0145111083984375, 0.04278564453125, 0.0187225341796875, -0.00971221923828125, -0.006824493408203125, 0.06292724609375, 0.0064697265625, -0.025543212890625, -0.052886962890625, 0.0015192031860351562, 0.005420684814453125, 0.006683349609375, 0.0185546875, 0.04803466796875, 0.00743865966796875, -0.017913818359375, -0.0018596649169921875, 0.0232391357421875, -0.0236053466796875, -0.046234130859375, -0.036773681640625, -0.02728271484375, -0.01387786865234375, 0.01120758056640625, 0.0159759521484375, -0.005672454833984375, 0.01035308837890625, -0.01375579833984375, 0.0230712890625, 0.0188140869140625, 0.006679534912109375, 0.0295257568359375, -0.0157318115234375, 0.022979736328125, -0.04571533203125, 0.01068115234375, -0.028076171875, -0.040863037109375, -0.021820068359375, 0.006725311279296875, -0.0350341796875, 0.00809478759765625, 0.045318603515625, 0.00975799560546875, 0.0149383544921875, -0.02520751953125, -0.05999755859375, -0.02874755859375, -0.005306243896484375, 0.032745361328125, 0.03399658203125, -0.008636474609375, -0.01253509521484375, 0.0284271240234375, -0.0263824462890625, 0.007633209228515625, -0.009521484375, -0.046417236328125, 0.021392822265625, 0.0308990478515625, 0.0184173583984375, 0.006969451904296875, -0.002246856689453125, -0.0765380859375, -0.0400390625, -0.00811767578125, 0.0265960693359375, 0.0345458984375, -0.035675048828125, 0.030303955078125, -0.0259246826171875, 0.007793426513671875, -0.07135009765625, 0.0164794921875, 0.0362548828125, 0.03936767578125, -0.03277587890625, 0.000025272369384765625, -0.04547119140625, -0.020111083984375, -0.07806396484375, -0.048065185546875, -0.05035400390625, -0.003265380859375, -0.0016155242919921875, 0.010955810546875, -0.01052093505859375, -0.01568603515625, 0.00666046142578125, 0.0305328369140625, 0.00806427001953125, 0.04638671875, 0.0171966552734375, 0.031463623046875, -0.01316070556640625, 0.044677734375, 0.016326904296875, 0.0033111572265625, -0.0377197265625, -0.0229949951171875, -0.00023639202117919922, -0.03228759765625, -0.034027099609375, -0.0207061767578125, -0.0205230712890625, 0.06524658203125, 0.08868408203125, 0.0009226799011230469, -0.0129241943359375, -0.0282440185546875, -0.01137542724609375, -0.018402099609375, 0.08319091796875, -0.03759765625, -0.0300445556640625, 0.003719329833984375, -0.0165252685546875, -0.023590087890625, 0.01186370849609375, -0.0010709762573242188, -0.0162200927734375, 0.02349853515625, -0.0167236328125, -0.009796142578125, -0.05120849609375, 0.06884765625, 0.03143310546875, -0.00830841064453125, 0.0159759521484375, 0.0185546875, 0.00839996337890625, -0.00981903076171875, 0.027618408203125, -0.0142822265625, -0.01617431640625, 0.06298828125, 0.024505615234375, -0.0055999755859375, 0.045562744140625, -0.0197906494140625, 0.0283355712890625, 0.049407958984375, 0.043121337890625, -0.1103515625, 0.02630615234375, -0.01421356201171875, 0.00455474853515625, 0.06317138671875, -0.0234527587890625, 0.011505126953125, 0.01052093505859375, 0.038848876953125, 0.0175628662109375, -0.026031494140625, 0.0196075439453125, 0.01055145263671875, -0.0049591064453125, 0.00196075439453125, 0.032745361328125, -0.00273895263671875, 0.01107025146484375, -0.050537109375, 0.00009757280349731445, -0.0240631103515625, 0.033660888671875, -0.0037593841552734375, -0.00881195068359375, -0.031982421875, -0.05242919921875, -0.0301666259765625, -0.0560302734375, -0.04156494140625, 0.072265625, 0.037017822265625, 0.06671142578125, 0.0643310546875, 0.018798828125, 0.0150299072265625, 0.0215606689453125, 0.0386962890625, -0.0060272216796875, -0.00782012939453125, 0.006988525390625, 0.04217529296875, -0.04510498046875, 0.0215911865234375, -0.0083770751953125, -0.0028972625732421875, -0.0418701171875, -0.062164306640625, 0.11810302734375, -0.004756927490234375, -0.030609130859375, -0.00466156005859375, 0.0377197265625, -0.010955810546875, -0.043670654296875, -0.00803375244140625, -0.04925537109375, -0.0163726806640625, -0.0247344970703125, -0.038360595703125, 0.024017333984375, -0.04498291015625, -0.0655517578125, 0.0238189697265625, 0.0176544189453125, 0.02606201171875, 0.005535125732421875, 0.00007611513137817383, -0.024078369140625, -0.0262451171875, -0.01509857177734375, 0.01483154296875, -0.01287841796875, -0.00505828857421875, -0.0038776397705078125, 0.01198577880859375, -0.01470947265625, 0.00812530517578125, 0.034912109375, 0.003299713134765625, -0.0390625, 0.005786895751953125, 0.08349609375, 0.033294677734375, 0.00799560546875, 0.0479736328125, 0.03070068359375, 0.0226898193359375, 0.041107177734375, -0.01934814453125, 0.0423583984375, -0.0296478271484375, 0.012786865234375, 0.03955078125, 0.002780914306640625, -0.0015764236450195312, -0.0196685791015625, 0.009735107421875, -0.01861572265625, -0.019989013671875, -0.0003204345703125, 0.005207061767578125, -0.009979248046875, 0.030181884765625, 0.02423095703125, -0.051544189453125, -0.0049591064453125, -0.0347900390625, 0.033050537109375, 0.0120391845703125, 0.0189971923828125, 0.0194854736328125, 0.01055145263671875, 0.02349853515625, -0.02545166015625, 0.00951385498046875, 0.0043182373046875, -0.0200653076171875, 0.0132904052734375, -0.052520751953125, -0.0011358261108398438, -0.0845947265625, -0.0286865234375, 0.004116058349609375, 0.0123138427734375, -0.0150604248046875, -0.042144775390625, 0.0173187255859375, 0.018157958984375, -0.006587982177734375, 0.0312042236328125, 0.0177154541015625, -0.0245361328125, 0.0217132568359375, -0.013427734375, -0.0172576904296875, 0.006591796875, -0.0213623046875, -0.0226287841796875, -0.042236328125, 0.057830810546875, 0.0309295654296875, -0.008331298828125, 0.0201416015625, 0.02093505859375, 0.0199737548828125, -0.0260467529296875, 0.04052734375, -0.03753662109375, 0.004688262939453125, -0.00786590576171875, 0.019622802734375, 0.0178375244140625, 0.0010805130004882812, 0.02386474609375, 0.0266876220703125, -0.007450103759765625, -0.00270843505859375, 0.01203155517578125, -0.0005536079406738281, 0.0135040283203125, -0.006290435791015625, -0.0161285400390625, -0.005977630615234375, -0.0118255615234375, -0.0261688232421875, -0.0193023681640625, -0.043975830078125, 0.024627685546875, 0.044952392578125, 0.0008769035339355469, 0.0170745849609375, -0.03948974609375, 0.0765380859375, -0.0286865234375, 0.01523590087890625, 0.00930023193359375, -0.05718994140625, 0.050079345703125, -0.04669189453125, 0.11761474609375, -0.00801849365234375, -0.040283203125, -0.0156707763671875, -0.0035152435302734375, -0.0362548828125, 0.0310516357421875, 0.0565185546875, -0.00594329833984375, -0.0003597736358642578, 0.0192413330078125, -0.0011425018310546875, 0.0205841064453125, -0.0221710205078125, 0.01151275634765625, 0.0200347900390625, 0.0306243896484375, 0.00905609130859375, -0.0200042724609375, -0.00994110107421875, -0.0124359130859375, 0.034698486328125, 0.00473785400390625, 0.073486328125, -0.027374267578125, 0.0200042724609375, -0.02032470703125, -0.0022411346435546875, -0.0051116943359375, -0.0196075439453125, 0.04669189453125, 0.013092041015625, -0.0280303955078125, -0.0113983154296875, -0.01470947265625, -0.006343841552734375, 0.00008541345596313477, -0.0215606689453125, -0.030914306640625, -0.0022983551025390625, 0.037445068359375, 0.050445556640625, -0.00211334228515625, -0.0098419189453125, -0.05889892578125, -0.036346435546875, 0.027069091796875, 0.0162811279296875, 0.056976318359375, -0.04010009765625, 0.0206298828125, -0.0115814208984375, 0.0162200927734375, 0.00043654441833496094, -0.003253936767578125, -0.003452301025390625, 0.03173828125, -0.053375244140625, -0.032470703125, -0.0013380050659179688, -0.00728607177734375, -0.0084686279296875, 0.004764556884765625, 0.048431396484375, -0.0105133056640625, -0.013580322265625, 0.07501220703125, 0.01409912109375, 0.06170654296875, -0.0438232421875, 0.013031005859375, 0.04376220703125, 0.02978515625, 0.0177459716796875, -0.0333251953125, -0.02197265625, -0.0322265625, 0.004825592041015625, 0.0169677734375, -0.0082855224609375, -0.035797119140625, -0.055267333984375, 0.020538330078125, 0.0265350341796875, -0.0171356201171875, -0.0623779296875, 0.01216888427734375, -0.03253173828125, 0.08441162109375, -0.0509033203125, 0.0221710205078125, -0.0016660690307617188, 0.043212890625, -0.0191497802734375, -0.004154205322265625, -0.0291595458984375, -0.00183868408203125, -0.0179443359375, 0.0310516357421875, 0.04962158203125, -0.02783203125, -0.0213470458984375, 0.037384033203125, 0.02142333984375, 0.0875244140625, -0.0128631591796875, -0.01556396484375, 0.03753662109375, -0.015472412109375, -0.00908660888671875, -0.049835205078125, -0.01165771484375, -0.05706787109375, 0.0002968311309814453, -0.00194549560546875, -0.0187835693359375, 0.003650665283203125, -0.05322265625, -0.126220703125, 0.039031982421875, -0.016021728515625, -0.04852294921875, -0.016021728515625, -0.0019178390502929688, 0.015045166015625, -0.0164794921875, -0.0144805908203125, -0.050628662109375, -0.0487060546875, -0.004749298095703125, -0.01438140869140625, 0.01090240478515625, 0.030029296875, -0.0185546875, -0.057708740234375, -0.038604736328125, -0.0350341796875, -0.0096435546875, 0.0101318359375, -0.0240020751953125, 0.0269012451171875, 0.0310211181640625, -0.0311431884765625, -0.0310516357421875, 0.00911712646484375, -0.002002716064453125, -0.0040283203125, -0.04058837890625, 0.0002703666687011719, 0.00513458251953125, 0.04510498046875, 0.01465606689453125, 0.0068817138671875, -0.030487060546875, 0.01385498046875, -0.01873779296875, -0.0200958251953125, 0.01490020751953125, 0.0195465087890625, -0.050445556640625, 0.004283905029296875, 0.034942626953125, -0.02001953125, -0.00434112548828125, 0.00034117698669433594, -0.0325927734375, -0.005504608154296875, -0.0277252197265625, -0.017486572265625, -0.034423828125, -0.0467529296875, 0.0823974609375, -0.044464111328125, 0.007415771484375, 0.0200653076171875, 0.021759033203125, 0.03643798828125, 0.0229034423828125, -0.010223388671875, 0.03643798828125, -0.05908203125, 0.00669097900390625, -0.005161285400390625, 0.046356201171875, -0.037567138671875, -0.0012903213500976562, -0.0249481201171875, 0.0400390625, 0.002429962158203125, 0.048828125, -0.048583984375, 0.0570068359375, 0.0248870849609375, 0.05133056640625, -0.023712158203125, -0.057708740234375, -0.02728271484375, 0.0032558441162109375, 0.01358795166015625, 0.004802703857421875, 0.046417236328125, -0.01267242431640625, 0.0131988525390625, -0.00616455078125, 0.01483154296875, -0.016876220703125, 0.04449462890625, -0.035614013671875, 0.00213623046875, 0.026519775390625 ]
ba8a9da1394c12f845982f9ab24aab217c0817ac
Wordpress Stackexchange Q: Get multiple roles with get_users I've got some code like this: $query_args = array(); $query_args['fields'] = array( 'ID', 'display_name' ); $query_args['role'] = 'subscriber'; $users = get_users( $query_args ); foreach ($users as $user) $users_array[$user->ID] = $user->display_name; I want to get more roles and also include contributor, author and some custom roles I created with the Role Scoper plugin e.g. Manager, etc. Any ideas how I can do this with get_users? Thanks A: $users = array_merge( get_users('role=subscriber'), get_users('role=contributor') ); Since get_users() returns an array of users that match the query string given as a param. Just run the get_users() query for every role you want separately and merge the results. You can then loop through $users the same way you would have otherwise.
Q: Get multiple roles with get_users I've got some code like this: $query_args = array(); $query_args['fields'] = array( 'ID', 'display_name' ); $query_args['role'] = 'subscriber'; $users = get_users( $query_args ); foreach ($users as $user) $users_array[$user->ID] = $user->display_name; I want to get more roles and also include contributor, author and some custom roles I created with the Role Scoper plugin e.g. Manager, etc. Any ideas how I can do this with get_users? Thanks A: $users = array_merge( get_users('role=subscriber'), get_users('role=contributor') ); Since get_users() returns an array of users that match the query string given as a param. Just run the get_users() query for every role you want separately and merge the results. You can then loop through $users the same way you would have otherwise. A: The problem with using array_merge is that you can't use pagination. I really like @Andy Adams's solution, but if you're searching on many roles, using his meta query will result in a very slow query (internally it does a new INNER JOIN for each meta query). My solution is to use a regular expression meta query: <?php global $wpdb; $blog_id = get_current_blog_id(); $roles = array('editor', 'administrator'); $meta_query = array( 'key' => $wpdb->get_blog_prefix($blog_id) . 'capabilities', 'value' => '"(' . implode('|', array_map('preg_quote', $roles)) . ')"', 'compare' => 'REGEXP' ); $user_query = new WP_User_Query(array( 'meta_query' = array($meta_query) )); ?> This generates a query that looks something like: array( 'meta_query' => array( array( 'key' => 'wp_capabilities' 'value' => '"(editor|administrator)"' 'compare' => 'REGEXP' ) ) ); A: Fastforward to WordPress 4.4 - it will support the role__in attribute! It looks like WordPress 4.4 is our lucky version number, because it will support both the role__in and role__not_in attributes of the WP_User_Query class. So to include the subscriber, contributor and author roles, we can simply use: $users = get_users( [ 'role__in' => [ 'subscriber', 'subscriber', 'author' ] ] ); Check out the ticket #22212 for the whole story! A: You can also do this via a single call to get_users or using a single WP_User_Query by making use of the meta_query argument: global $wpdb; $blog_id = get_current_blog_id(); $user_query = new WP_User_Query( array( 'meta_query' => array( 'relation' => 'OR', array( 'key' => $wpdb->get_blog_prefix( $blog_id ) . 'capabilities', 'value' => 'role_one', 'compare' => 'like' ), array( 'key' => $wpdb->get_blog_prefix( $blog_id ) . 'capabilities', 'value' => 'role_two', 'compare' => 'like' ) ) ) ); The meta_query is pulled from how WP_User_Query handles the role parameter, if you're interested. A: I managed to solve this by using this function: function get_clients() { $users = array(); $roles = array('subscriber', 'custom_role1', 'custom_role2'); foreach ($roles as $role) : $users_query = new WP_User_Query( array( 'fields' => 'all_with_meta', 'role' => $role, 'orderby' => 'display_name' ) ); $results = $users_query->get_results(); if ($results) $users = array_merge($users, $results); endforeach; return $users; } Then in my theme I can do this: $users_array = get_clients(); A: You could simply merge more user query results. Let's say you want to include both Author and Editor roles. Define the query for each case then use array_merge to consolidate into a single array. $xuser_query = new WP_user_query(array( 'role' => 'Author')); $yuser_query = new WP_user_query(array( 'role' => 'Editor')); $mergedRoles=array_merge($xuser_query->results,$xuser_query->results); // further on you might want to do some sorting // of the resulting array of objects before looping through it: if (!empty( $mergedRoles->results ) ) { foreach ( $mergedRoles->results as $user ) { echo $user->display_name; } else echo "nada, no users found"; A: All the parameters from the function get_users are optional. If you specify nothing you will get an array that contains objects corresponding to each and every user of the current blog, including ones with custom roles. A: <?php $xuser_query = new WP_user_query(array( 'role' => 'Author')); $yuser_query = new WP_user_query(array( 'role' => 'Editor')); $mergedRoles=array_merge($xuser_query->results,$xuser_query->results); // further on you might want to do some sorting // of the resulting array of objects before looping through it: if (!empty( $mergedRoles) ) { foreach ( $mergedRoles as $user ) { echo $user->display_name; } } else { echo "nada, no users found"; } ?> A: Hi you can use this easy way $admins = get_users( array( 'role__in' => array('administrator', 'editor', 'author'), 'fields' => array( 'ID' ), ) ); $admins_ids = wp_list_pluck( $admins, 'ID' ); $users = get_users(array( 'exclude' => $admins_ids, 'fields' => array( 'ID' ), ) ); $users_ids = wp_list_pluck( $users, 'ID' );
wordpress
{ "language": "en", "length": 710, "provenance": "stackexchange_00019.jsonl.gz:416216", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39315" }
[ 0.04949951171875, -0.0239105224609375, -0.001956939697265625, -0.0601806640625, -0.0036220550537109375, -0.01407623291015625, 0.015716552734375, 0.002552032470703125, -0.046478271484375, 0.04949951171875, 0.010711669921875, 0.018585205078125, -0.0304718017578125, -0.01555633544921875, -0.01280975341796875, -0.037841796875, -0.003070831298828125, -0.00344085693359375, -0.0257110595703125, -0.0269317626953125, 0.0214080810546875, -0.02398681640625, -0.036651611328125, 0.04498291015625, -0.0022716522216796875, 0.0008001327514648438, 0.02117919921875, -0.005809783935546875, -0.0078887939453125, -0.0135955810546875, -0.0005102157592773438, 0.01001739501953125, -0.00183868408203125, 0.0035533905029296875, 0.039703369140625, -0.0011034011840820312, 0.04742431640625, -0.02056884765625, 0.044830322265625, -0.0037555694580078125, 0.0159149169921875, 0.00695037841796875, -0.0109405517578125, 0.031402587890625, -0.028778076171875, -0.0587158203125, 0.036376953125, 0.0023479461669921875, 0.026336669921875, 0.020843505859375, 0.0032806396484375, -0.03070068359375, -0.002254486083984375, 0.003414154052734375, -0.00850677490234375, -0.0063323974609375, 0.01242828369140625, -0.019805908203125, 0.04248046875, -0.024658203125, -0.051177978515625, -0.032684326171875, 0.047637939453125, -0.03961181640625, -0.023101806640625, 0.02740478515625, 0.044342041015625, 0.004261016845703125, -0.021636962890625, -0.05291748046875, -0.0143585205078125, -0.006107330322265625, -0.0159912109375, -0.0019073486328125, -0.028839111328125, -0.0135040283203125, -0.017913818359375, -0.04388427734375, 0.0204925537109375, 0.02105712890625, -0.01873779296875, -0.023345947265625, -0.045928955078125, 0.04345703125, -0.032318115234375, 0.034698486328125, -0.0137481689453125, -0.0164031982421875, -0.0125274658203125, -0.01824951171875, -0.00939178466796875, -0.07244873046875, 0.00027632713317871094, 0.02020263671875, -0.004840850830078125, -0.041107177734375, 0.040496826171875, 0.05010986328125, -0.006786346435546875, -0.029083251953125, -0.0094757080078125, -0.0245513916015625, -0.040435791015625, -0.00872039794921875, 0.0117034912109375, 0.06536865234375, 0.003429412841796875, 0.042938232421875, 0.036956787109375, 0.0172576904296875, 0.0224609375, 0.01258087158203125, -0.01215362548828125, -0.01428985595703125, -0.00899505615234375, 0.017333984375, -0.039306640625, 0.0256805419921875, -0.0028171539306640625, 0.0193634033203125, -0.00017213821411132812, 0.029327392578125, -0.0123291015625, -0.05596923828125, -0.002300262451171875, -0.0147552490234375, -0.007266998291015625, -0.0178680419921875, -0.028900146484375, 0.030303955078125, -0.01384735107421875, -0.002231597900390625, 0.03460693359375, 0.0305023193359375, 0.00017070770263671875, -0.0209197998046875, 0.0079498291015625, -0.0194244384765625, -0.0008068084716796875, 0.0198211669921875, 0.01342010498046875, -0.03131103515625, 0.0041046142578125, 0.005359649658203125, -0.0214996337890625, -0.007228851318359375, -0.0014858245849609375, 0.01352691650390625, 0.01605224609375, 0.01043701171875, -0.0654296875, 0.016510009765625, -0.021514892578125, 0.0239715576171875, 0.04962158203125, 0.0298309326171875, 0.00887298583984375, 0.00396728515625, 0.0168304443359375, 0.0164337158203125, -0.004375457763671875, 0.0159454345703125, 0.035797119140625, -0.036376953125, -0.045318603515625, -0.0233917236328125, -0.0330810546875, -0.0170745849609375, 0.027130126953125, -0.039581298828125, 0.00524139404296875, -0.0126800537109375, 0.047515869140625, 0.0400390625, 0.0249176025390625, 0.061065673828125, 0.0020885467529296875, 0.032958984375, 0.015869140625, -0.050689697265625, -0.042083740234375, -0.053192138671875, 0.0296783447265625, -0.002437591552734375, -0.057586669921875, 0.035003662109375, -0.03997802734375, 0.01471710205078125, 0.0655517578125, -0.01378631591796875, -0.006557464599609375, 0.0300750732421875, -0.020263671875, 0.002101898193359375, -0.00601959228515625, -0.04168701171875, 0.038665771484375, -0.0034732818603515625, 0.0023212432861328125, -0.0028285980224609375, 0.075927734375, -0.01708984375, -0.002307891845703125, -0.02001953125, -0.0565185546875, -0.0179443359375, -0.0039215087890625, -0.00585174560546875, -0.007556915283203125, 0.0274810791015625, 0.0005960464477539062, 0.0171051025390625, -0.0244140625, -0.032501220703125, -0.00791168212890625, 0.00921630859375, -0.01451873779296875, 0.0134429931640625, 0.00028204917907714844, 0.005954742431640625, 0.00524139404296875, -0.0213165283203125, 0.0084381103515625, 0.02130126953125, 0.06549072265625, -0.03631591796875, 0.0091094970703125, -0.040802001953125, 0.07220458984375, -0.0149078369140625, 0.00823974609375, 0.01294708251953125, 0.09320068359375, 0.08245849609375, 0.007686614990234375, 0.036468505859375, 0.0517578125, -0.035125732421875, -0.028167724609375, 0.016143798828125, 0.04144287109375, 0.0223388671875, 0.00103759765625, -0.017547607421875, 0.051116943359375, -0.0604248046875, -0.002593994140625, -0.007171630859375, -0.005794525146484375, 0.081298828125, -0.0005955696105957031, 0.03326416015625, -0.0182342529296875, -0.018157958984375, -0.01593017578125, 0.043609619140625, -0.03997802734375, 0.0210113525390625, -0.016937255859375, -0.0159454345703125, -0.0012836456298828125, -0.103271484375, -0.00345611572265625, -0.0556640625, -0.053985595703125, 0.0030765533447265625, -0.03594970703125, -0.018341064453125, -0.01364898681640625, -0.00778961181640625, 0.03265380859375, -0.0134735107421875, 0.005870819091796875, 0.015625, -0.0118255615234375, -0.0283050537109375, 0.00024080276489257812, -0.004482269287109375, -0.0307159423828125, -0.017578125, 0.0202789306640625, 0.047210693359375, 0.03497314453125, 0.0038700103759765625, -0.007671356201171875, 0.0423583984375, 0.033050537109375, 0.035797119140625, 0.00982666015625, -0.0067901611328125, 0.02886962890625, 0.024078369140625, -0.01074981689453125, 0.046783447265625, -0.03564453125, -0.01035308837890625, 0.00719451904296875, -0.046630859375, 0.03131103515625, -0.0280609130859375, 0.01885986328125, 0.0660400390625, 0.0252838134765625, -0.0257720947265625, 0.00751495361328125, -0.06439208984375, -0.0008130073547363281, 0.027252197265625, 0.00447845458984375, -0.05078125, 0.00501251220703125, 0.06280517578125, 0.0248260498046875, 0.023895263671875, 0.00836944580078125, -0.01406097412109375, -0.0155029296875, 0.03631591796875, -0.045074462890625, -0.032867431640625, 0.036224365234375, -0.0400390625, -0.0213775634765625, 0.0190887451171875, -0.038421630859375, -0.01322174072265625, 0.04144287109375, -0.0123291015625, 0.0204925537109375, 0.0029754638671875, -0.053924560546875, 0.0264129638671875, -0.06329345703125, 0.09197998046875, -0.0035381317138671875, 0.0380859375, -0.000010132789611816406, 0.0071563720703125, -0.0037593841552734375, 0.011688232421875, -0.006595611572265625, 0.055206298828125, 0.00356292724609375, -0.0633544921875, 0.00809478759765625, -0.0128631591796875, -0.023345947265625, 0.0003414154052734375, 0.04107666015625, 0.0139617919921875, -0.0341796875, -0.004180908203125, 0.0146636962890625, 0.000820159912109375, 0.048431396484375, -0.0285186767578125, -0.04229736328125, 0.06768798828125, 0.06878662109375, -0.005199432373046875, 0.0142059326171875, 0.00836944580078125, -0.00743865966796875, 0.01380157470703125, -0.01251220703125, -0.0188751220703125, 0.01291656494140625, 0.0034732818603515625, 0.0191650390625, 0.0164947509765625, -0.031982421875, 0.0099029541015625, 0.00897979736328125, 0.01451873779296875, 0.036895751953125, 0.033172607421875, -0.0046234130859375, -0.015228271484375, 0.004497528076171875, -0.0204620361328125, 0.0175018310546875, -0.007625579833984375, 0.01385498046875, -0.033905029296875, -0.06298828125, 0.06427001953125, -0.030548095703125, -0.0019245147705078125, -0.079833984375, -0.0306396484375, -0.038421630859375, 0.0948486328125, 0.029296875, -0.01690673828125, -0.01348876953125, -0.002178192138671875, -0.03460693359375, -0.0159759521484375, -0.02227783203125, -0.00812530517578125, -0.005306243896484375, -0.028076171875, -0.042266845703125, -0.0004715919494628906, -0.0223388671875, -0.0216522216796875, -0.0096893310546875, -0.03326416015625, 0.037750244140625, -0.042877197265625, 0.057586669921875, 0.011016845703125, 0.04376220703125, -0.0268707275390625, -0.0254669189453125, -0.029876708984375, -0.0732421875, -0.02313232421875, 0.015899658203125, 0.056060791015625, -0.0012178421020507812, -0.0033435821533203125, -0.0027408599853515625, 0.07220458984375, -0.002162933349609375, 0.007442474365234375, 0.0008487701416015625, -0.0015401840209960938, 0.01325225830078125, 0.00778961181640625, 0.00008922815322875977, -0.002429962158203125, -0.0166015625, -0.035980224609375, 0.01502227783203125, 0.01119232177734375, -0.059234619140625, 0.0088043212890625, -0.07659912109375, 0.00902557373046875, -0.042938232421875, -0.00644683837890625, 0.031280517578125, 0.0137786865234375, 0.0007762908935546875, 0.01212310791015625, 0.004718780517578125, -0.05859375, 0.032470703125, -0.02313232421875, -0.007518768310546875, 0.00823974609375, 0.09466552734375, 0.0267791748046875, 0.001827239990234375, -0.01477813720703125, -0.0186614990234375, 0.0291290283203125, -0.004428863525390625, 0.048919677734375, 0.040802001953125, -0.0202178955078125, 0.033355712890625, -0.0005970001220703125, 0.0279541015625, 0.01116180419921875, 0.01053619384765625, 0.003749847412109375, -0.031524658203125, 0.0255126953125, 0.01198577880859375, -0.05072021484375, -0.0282440185546875, -0.00363922119140625, -0.0196533203125, 0.0186767578125, 0.0303497314453125, -0.00567626953125, 0.023956298828125, -0.0158843994140625, -0.05560302734375, 0.00041031837463378906, -0.04571533203125, 0.027374267578125, 0.0313720703125, -0.00788116455078125, 0.03521728515625, 0.032440185546875, -0.0168914794921875, 0.002910614013671875, 0.0078125, -0.000030934810638427734, 0.025665283203125, -0.03143310546875, -0.0180511474609375, -0.0216217041015625, -0.0104217529296875, 0.0693359375, 0.012908935546875, -0.029815673828125, 0.025421142578125, -0.0312042236328125, 0.022064208984375, -0.004207611083984375, -0.00274658203125, 0.07379150390625, 0.043914794921875, 0.005504608154296875, -0.00968170166015625, -0.021728515625, 0.0164642333984375, -0.037078857421875, -0.00009036064147949219, -0.0276031494140625, 0.01448822021484375, -0.03228759765625, 0.094482421875, -0.0000489354133605957, 0.042877197265625, -0.023101806640625, 0.04461669921875, 0.0557861328125, -0.0121307373046875, -0.006710052490234375, 0.043853759765625, -0.0185546875, -0.00445556640625, 0.0255279541015625, -0.0347900390625, 0.01561737060546875, 0.03753662109375, 0.032196044921875, 0.05731201171875, -0.01013946533203125, -0.01427459716796875, -0.0146636962890625, -0.01187896728515625, 0.031341552734375, -0.0215301513671875, -0.036163330078125, -0.038604736328125, -0.01515960693359375, 0.025390625, -0.021697998046875, -0.01812744140625, -0.0015707015991210938, -0.01702880859375, 0.00008428096771240234, -0.0190582275390625, -0.052642822265625, 0.00974273681640625, 0.031890869140625, -0.040863037109375, -0.016387939453125, 0.02069091796875, -0.03125, -0.013885498046875, -0.0204010009765625, -0.04632568359375, 0.04437255859375, 0.006847381591796875, 0.02740478515625, -0.0592041015625, 0.0025482177734375, -0.06884765625, -0.01934814453125, 0.06890869140625, 0.04437255859375, -0.030975341796875, -0.006977081298828125, -0.043243408203125, -0.0012578964233398438, -0.00919342041015625, -0.036163330078125, -0.0163726806640625, -0.01031494140625, -0.0017223358154296875, 0.027069091796875, 0.007965087890625, -0.0204010009765625, -0.0301361083984375, -0.020477294921875, 0.0117034912109375, 0.01326751708984375, 0.0153656005859375, 0.0191497802734375, -0.0295562744140625, 0.00885009765625, -0.00417327880859375, -0.00775146484375, -0.031524658203125, -0.00299072265625, -0.0234527587890625, -0.04150390625, 0.0230712890625, 0.0032176971435546875, 0.0003323554992675781, -0.0118408203125, 0.0284576416015625, 0.016387939453125, 0.02679443359375, -0.0024394989013671875, 0.005084991455078125, -0.0147857666015625, -0.035003662109375, -0.00537872314453125, -0.0003495216369628906, 0.0274658203125, -0.0269775390625, -0.015869140625, -0.00618743896484375, -0.01476287841796875, 0.0024013519287109375, 0.0008225440979003906, -0.01465606689453125, 0.003192901611328125, -0.01873779296875, 0.0020580291748046875, 0.0135955810546875, -0.028656005859375, 0.0150604248046875, 0.0135040283203125, 0.00901031494140625, 0.03375244140625, -0.0101470947265625, 0.01082611083984375, 0.026947021484375, 0.03759765625, -0.0184478759765625, 0.0006337165832519531, 0.0026149749755859375, -0.01270294189453125, 0.0184478759765625, 0.005626678466796875, 0.03173828125, -0.06610107421875, 0.048919677734375, 0.0076904296875, 0.0242156982421875, 0.064697265625, 0.0089874267578125, -0.00350189208984375, -0.037841796875, 0.0175323486328125, -0.0128631591796875, -0.0208282470703125, 0.004985809326171875, -0.01464080810546875, -0.022430419921875, -0.01151275634765625, -0.0196075439453125, -0.0060272216796875, 0.040313720703125, 0.01508331298828125, -0.03961181640625, 0.027984619140625, 0.003940582275390625, 0.026824951171875, -0.0009665489196777344, -0.00809478759765625, -0.0687255859375, -0.006473541259765625, -0.005016326904296875, -0.05609130859375, -0.006008148193359375, -0.0005555152893066406, 0.030548095703125, 0.057098388671875, -0.0040283203125, -0.012908935546875, 0.05596923828125, -0.0584716796875, -0.04791259765625, -0.037689208984375, -0.0076446533203125, -0.0011415481567382812, -0.045867919921875, 0.03741455078125, -0.023773193359375, -0.0188446044921875, -0.006931304931640625, 0.0290374755859375, 0.030548095703125, 0.00400543212890625, -0.032745361328125, 0.030731201171875, 0.045806884765625, -0.0003457069396972656, 0.0198822021484375, 0.0019664764404296875, -0.07061767578125, -0.069580078125, 0.019500732421875, -0.04864501953125, 0.0016870498657226562, 0.0204925537109375, -0.08551025390625, 0.081787109375, -0.006992340087890625, 0.05096435546875, 0.01071929931640625, 0.00637054443359375, -0.0310211181640625, -0.038726806640625, -0.0325927734375, 0.0482177734375, -0.00028228759765625, 0.035369873046875, -0.046844482421875, -0.000024437904357910156, 0.0045013427734375, 0.0189361572265625, 0.038116455078125, 0.0238037109375, -0.049041748046875, -0.009796142578125, 0.003978729248046875, 0.0125732421875, -0.00595855712890625, 0.0501708984375, 0.0305328369140625, 0.064453125, 0.060821533203125, -0.0126190185546875, 0.06170654296875, -0.033233642578125, -0.0145111083984375, 0.0341796875, -0.00460052490234375, -0.01151275634765625, 0.0239715576171875, 0.0125732421875, -0.0308074951171875, 0.0009965896606445312, 0.018280029296875, -0.021453857421875, 0.035125732421875, 0.011810302734375, 0.043121337890625, 0.016387939453125, 0.0411376953125, -0.0141448974609375, 0.052032470703125, 0.00705718994140625, -0.03204345703125, 0.0115509033203125, 0.0002627372741699219, 0.0413818359375, 0.01470947265625, -0.01461029052734375, 0.03985595703125, 0.035614013671875, 0.0282135009765625, 0.0423583984375, 0.012481689453125, -0.0489501953125, -0.036590576171875, 0.065673828125, 0.0596923828125, -0.0272216796875, -0.07745361328125, 0.01444244384765625, 0.00913238525390625, 0.0184173583984375, 0.038421630859375, -0.0012369155883789062, -0.03875732421875, 0.049468994140625, -0.040771484375, 0.0178375244140625, -0.0117950439453125, -0.0164794921875, -0.033660888671875, -0.052978515625, 0.0430908203125, 0.040985107421875, -0.03302001953125, -0.00658416748046875, 0.0038909912109375, 0.00258636474609375, 0.0352783203125, 0.0161590576171875, 0.04754638671875, -0.0106658935546875, 0.01934814453125, 0.017181396484375, -0.0128326416015625, -0.038909912109375, 0.006603240966796875, -0.052490234375, -0.025543212890625, 0.0223846435546875, 0.03515625, -0.047393798828125, -0.00966644287109375, 0.0380859375, 0.0211181640625, -0.00390625, 0.01035308837890625, 0.002994537353515625, 0.023773193359375, -0.02288818359375, 0.00835418701171875, 0.0182342529296875, -0.020172119140625, -0.015625, -0.007457733154296875, 0.0537109375, -0.01250457763671875, 0.0141143798828125, -0.0108184814453125, -0.0153961181640625, 0.0005984306335449219, -0.040496826171875, 0.01326751708984375, -0.010772705078125, -0.06982421875, 0.0218353271484375, -0.0787353515625, -0.0689697265625, 0.048065185546875, 0.05029296875, -0.023040771484375, 0.018707275390625, -0.022674560546875, -0.026580810546875, 0.013946533203125, 0.00762939453125, 0.0039215087890625, 0.00173187255859375, -0.007114410400390625, -0.033203125, -0.03961181640625, -0.004673004150390625, 0.007015228271484375, -0.009674072265625, 0.00809478759765625, -0.0015544891357421875, 0.03216552734375, 0.0027637481689453125, -0.042266845703125, -0.00008958578109741211, -0.024200439453125, -0.04278564453125, 0.03265380859375, 0.0002276897430419922, -0.0189971923828125, 0.0063629150390625, 0.0202789306640625, 0.01514434814453125, 0.03887939453125, -0.02801513671875, -0.027496337890625, 0.01404571533203125, 0.0177001953125, -0.01198577880859375, 0.0108795166015625, -0.0247344970703125, -0.02886962890625, -0.06378173828125, -0.0251922607421875, 0.050933837890625, 0.039581298828125, -0.00260162353515625, 0.0274505615234375, -0.0023632049560546875, -0.0201568603515625, -0.00879669189453125, -0.01355743408203125, -0.033416748046875, 0.0160675048828125, 0.0243682861328125, 0.0093841552734375, -0.02520751953125, -0.0151824951171875, 0.0138397216796875, 0.006298065185546875, -0.01806640625, 0.00734710693359375, 0.02880859375, 0.0299835205078125, 0.04193115234375, 0.06427001953125, -0.0033168792724609375, 0.0245819091796875, 0.0305938720703125, -0.0043182373046875, -0.01485443115234375, -0.0679931640625, -0.037872314453125, -0.0197601318359375, -0.00530242919921875, 0.01739501953125, 0.01227569580078125, -0.0723876953125, -0.06097412109375, -0.0193634033203125, 0.029815673828125, 0.0022563934326171875, -0.0538330078125, 0.01457977294921875, -0.0199432373046875, 0.0038661956787109375, -0.032440185546875, -0.0970458984375, 0.038238525390625, 0.03094482421875, -0.0036716461181640625, 0.037689208984375, -0.01500701904296875, -0.07275390625, 0.00179290771484375, 0.0153045654296875, 0.0173492431640625, 0.00966644287109375, 0.005401611328125, 0.0452880859375, -0.01409912109375, 0.0810546875, -0.04888916015625, 0.00836944580078125, -0.0017938613891601562, 0.0234222412109375, -0.0230560302734375, -0.057769775390625, 0.0182952880859375, -0.0227508544921875, -0.035797119140625, -0.01029205322265625, 0.036346435546875, 0.059814453125, -0.0015344619750976562, -0.0235748291015625, 0.10858154296875, -0.0338134765625, -0.007781982421875, -0.05670166015625, 0.0246734619140625, 0.0257110595703125, -0.043487548828125, -0.02490234375, -0.00911712646484375, -0.04315185546875, 0.005855560302734375, -0.0006542205810546875, -0.05169677734375, 0.04217529296875, 0.004192352294921875, -0.0625, 0.008941650390625, 0.004390716552734375, -0.044158935546875, -0.0187835693359375, -0.0106048583984375, 0.03082275390625, 0.0472412109375, 0.006504058837890625, -0.06494140625, 0.0226898193359375, -0.044097900390625, -0.028656005859375, -0.0027637481689453125, 0.007221221923828125, 0.006137847900390625, 0.0203094482421875, 0.054046630859375, 0.0020618438720703125, -0.029388427734375, -0.01274871826171875, -0.0293121337890625, -0.0294342041015625, -0.0213165283203125, 0.039093017578125, -0.07525634765625, -0.006504058837890625, 0.01387786865234375, -0.04473876953125, -0.0004773139953613281, 0.00455474853515625, -0.051300048828125, 0.01470947265625, -0.0078277587890625, 0.0021114349365234375, -0.0270233154296875, 0.06622314453125, 0.0117950439453125, -0.038604736328125, -0.060028076171875, -0.00948333740234375, -0.0230255126953125, -0.03997802734375, -0.07476806640625, 0.001735687255859375, 0.004795074462890625, -0.01824951171875, 0.022216796875, 0.0087890625, 0.0000883340835571289, -0.01494598388671875, -0.0013837814331054688, 0.01346588134765625, 0.032379150390625, -0.01007843017578125, 0.0237274169921875, -0.0029659271240234375, 0.0284881591796875, -0.0193634033203125, 0.0733642578125, -0.03448486328125, 0.0276336669921875, -0.02215576171875, 0.041412353515625, 0.00759124755859375, -0.0022430419921875, 0.042510986328125, -0.026763916015625, 0.00238800048828125, 0.03485107421875, -0.0202484130859375, -0.00507354736328125, 0.0220489501953125, 0.04632568359375, -0.006744384765625, 0.0009126663208007812 ]
1b295f7e2b50b2c4217dbde24eaa8a3f6c29f0df
Wordpress Stackexchange Q: Override default cropping in Wordpress Possible Duplicate: How can I make add_image_size() crop from the top? Is there any way to have cropping happen from the center point in an image? All of my Featured Image uploads are cropped poorly (mostly website screenshots), and I'd love to have those crop instead from top/center for preview versions of the image (such as what would show on index.php [loop] in the theme). I saw this, but I absolutely hate hacking the core out of fear a Wordpress upgrade with cause my changes to vanish. Any recommendations are welcome. I prefer to do this via functions.php if possible, rather than edit my 99% completed theme. A: Checkout these plugins: http://wordpress.org/extend/plugins/scissors/screenshots/ http://wordpress.org/extend/plugins/easy-image-crop/ http://wordpress.org/extend/plugins/nextgen-image-cropper/
Q: Override default cropping in Wordpress Possible Duplicate: How can I make add_image_size() crop from the top? Is there any way to have cropping happen from the center point in an image? All of my Featured Image uploads are cropped poorly (mostly website screenshots), and I'd love to have those crop instead from top/center for preview versions of the image (such as what would show on index.php [loop] in the theme). I saw this, but I absolutely hate hacking the core out of fear a Wordpress upgrade with cause my changes to vanish. Any recommendations are welcome. I prefer to do this via functions.php if possible, rather than edit my 99% completed theme. A: Checkout these plugins: http://wordpress.org/extend/plugins/scissors/screenshots/ http://wordpress.org/extend/plugins/easy-image-crop/ http://wordpress.org/extend/plugins/nextgen-image-cropper/ A: Looks like add_image_size() may be the only way to do it. I was searching for a way to do it site-wide for all images, but I may have to settle for doing it to each image size....custom, in my theme.
wordpress
{ "language": "en", "length": 161, "provenance": "stackexchange_00019.jsonl.gz:416236", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39377" }
[ 0.057861328125, -0.0235443115234375, 0.072265625, 0.00992584228515625, -0.0218505859375, -0.004558563232421875, 0.08489990234375, -0.06878662109375, 0.042724609375, 0.020233154296875, -0.06005859375, 0.0030517578125, 0.01473236083984375, -0.0017871856689453125, -0.056671142578125, -0.0184173583984375, 0.042236328125, -0.028900146484375, 0.0240631103515625, -0.0042724609375, 0.006671905517578125, 0.022552490234375, 0.028594970703125, 0.0814208984375, -0.046844482421875, 0.056488037109375, 0.06732177734375, -0.035247802734375, -0.02667236328125, -0.03399658203125, -0.0218353271484375, 0.038665771484375, 0.00823211669921875, 0.0345458984375, -0.016845703125, 0.00676727294921875, -0.0004343986511230469, 0.0106201171875, 0.0085906982421875, 0.0128631591796875, 0.0297393798828125, -0.006671905517578125, 0.0172576904296875, 0.038177490234375, -0.03985595703125, -0.01316070556640625, -0.003482818603515625, 0.0004744529724121094, 0.0186004638671875, 0.016815185546875, 0.004535675048828125, 0.00936126708984375, 0.013580322265625, -0.01085662841796875, -0.0152435302734375, -0.008941650390625, -0.020263671875, 0.0552978515625, 0.017913818359375, -0.0240478515625, -0.0220947265625, 0.034515380859375, 0.0225067138671875, 0.0208740234375, 0.018768310546875, -0.01340484619140625, 0.01849365234375, 0.0190582275390625, -0.0202484130859375, 0.006282806396484375, 0.016265869140625, -0.004199981689453125, -0.0019702911376953125, -0.0240020751953125, -0.0009732246398925781, 0.0285186767578125, -0.0285186767578125, 0.00432586669921875, 0.026519775390625, 0.00469970703125, -0.020599365234375, -0.055084228515625, -0.00684356689453125, -0.021881103515625, 0.01181793212890625, 0.00946044921875, -0.0169830322265625, 0.01204681396484375, -0.0291595458984375, 0.01611328125, -0.01824951171875, -0.0016689300537109375, -0.042938232421875, 0.0279388427734375, -0.0067138671875, -0.0023555755615234375, 0.009033203125, 0.000194549560546875, -0.037841796875, -0.02276611328125, 0.0272674560546875, -0.047698974609375, 0.0303955078125, -0.024749755859375, 0.002288818359375, 0.02032470703125, -0.00759124755859375, -0.024627685546875, 0.0231170654296875, 0.04058837890625, 0.0025272369384765625, 0.01523590087890625, -0.0198516845703125, -0.0230255126953125, -0.00616455078125, 0.01406097412109375, -0.052032470703125, 0.0430908203125, 0.0013818740844726562, 0.032379150390625, -0.009368896484375, 0.0308990478515625, -0.0239715576171875, -0.0278167724609375, 0.030364990234375, -0.0019159317016601562, -0.00908660888671875, -0.0226287841796875, -0.048736572265625, 0.0127410888671875, -0.0240020751953125, 0.035980224609375, 0.047943115234375, 0.0174102783203125, -0.00797271728515625, -0.012664794921875, 0.01126861572265625, -0.0587158203125, -0.0321044921875, 0.0209503173828125, -0.030303955078125, -0.0092926025390625, 0.036224365234375, -0.0298309326171875, 0.028717041015625, 0.004901885986328125, -0.0030536651611328125, 0.040435791015625, 0.0287322998046875, -0.040069580078125, 0.057403564453125, -0.04425048828125, -0.0050811767578125, 0.0005612373352050781, 0.02142333984375, -0.00428009033203125, 0.04827880859375, -0.027496337890625, -0.006603240966796875, -0.027496337890625, 0.003719329833984375, -0.0163726806640625, -0.0179290771484375, -0.01285552978515625, -0.0404052734375, 0.02655029296875, -0.03167724609375, -0.006092071533203125, 0.01593017578125, -0.0279998779296875, 0.00043964385986328125, 0.038177490234375, 0.0546875, 0.023681640625, 0.009613037109375, 0.01497650146484375, 0.03546142578125, 0.01122283935546875, -0.00708770751953125, 0.055572509765625, 0.01200103759765625, -0.03704833984375, 0.0345458984375, -0.0201263427734375, 0.0033779144287109375, -0.05279541015625, 0.006916046142578125, -0.0171356201171875, 0.01393890380859375, 0.018768310546875, 0.01290130615234375, 0.010711669921875, -0.0682373046875, 0.0193023681640625, -0.015411376953125, 0.004123687744140625, -0.0242462158203125, -0.0156707763671875, -0.01361083984375, 0.0247650146484375, 0.0245819091796875, 0.0017919540405273438, 0.002208709716796875, -0.00579071044921875, 0.007030487060546875, -0.025390625, 0.00260162353515625, 0.004913330078125, -0.005084991455078125, 0.0013303756713867188, 0.005123138427734375, -0.038116455078125, 0.0107574462890625, -0.04931640625, -0.036895751953125, -0.0017900466918945312, 0.024993896484375, -0.006793975830078125, -0.00943756103515625, 0.027496337890625, -0.031280517578125, -0.0033969879150390625, -0.0305328369140625, 0.036834716796875, 0.050140380859375, 0.005290985107421875, -0.0222625732421875, -0.0203094482421875, 0.032379150390625, 0.01113128662109375, -0.061492919921875, 0.04071044921875, -0.01470947265625, 0.0006651878356933594, -0.03253173828125, 0.0006785392761230469, -0.0216522216796875, -0.029632568359375, -0.002956390380859375, 0.036102294921875, 0.0115966796875, 0.049163818359375, -0.01436614990234375, 0.044891357421875, 0.064697265625, 0.00859832763671875, -0.0023288726806640625, 0.0245819091796875, 0.01348876953125, -0.0113372802734375, -0.020843505859375, -0.05426025390625, 0.0435791015625, -0.0938720703125, 0.018798828125, 0.02825927734375, -0.021331787109375, -0.0127105712890625, -0.058990478515625, 0.036529541015625, 0.01313018798828125, -0.0229644775390625, -0.0139312744140625, -0.01140594482421875, -0.0023021697998046875, -0.001583099365234375, 0.0100250244140625, 0.0056304931640625, -0.0115814208984375, -0.006214141845703125, 0.02398681640625, 0.01175689697265625, -0.0089263916015625, -0.0082550048828125, -0.0194549560546875, -0.0253448486328125, -0.03375244140625, 0.046875, -0.004802703857421875, -0.0304718017578125, 0.004482269287109375, 0.036651611328125, -0.052764892578125, -0.021697998046875, 0.01861572265625, -0.0364990234375, -0.03729248046875, -0.01087188720703125, 0.020721435546875, -0.0286407470703125, 0.0041961669921875, 0.010650634765625, -0.0131072998046875, 0.0261383056640625, -0.0019159317016601562, -0.031951904296875, 0.00518798828125, -0.049835205078125, 0.060821533203125, -0.038055419921875, 0.06640625, 0.08685302734375, -0.051910400390625, 0.04913330078125, -0.002880096435546875, -0.0165863037109375, -0.031982421875, 0.00937652587890625, -0.01451873779296875, -0.006122589111328125, -0.052215576171875, 0.0185699462890625, 0.0135040283203125, 0.04779052734375, -0.0219268798828125, -0.032501220703125, 0.0136260986328125, 0.0216064453125, 0.0161285400390625, 0.0193023681640625, 0.0285491943359375, -0.06591796875, -0.05316162109375, -0.0013170242309570312, -0.0426025390625, 0.01067352294921875, 0.0150604248046875, -0.0201568603515625, -0.0235137939453125, 0.0021762847900390625, 0.0360107421875, -0.01422882080078125, -0.0309295654296875, -0.0499267578125, 0.0138702392578125, 0.012664794921875, 0.013031005859375, -0.021331787109375, 0.007183074951171875, -0.0176849365234375, 0.0177154541015625, 0.04058837890625, 0.01436614990234375, -0.008575439453125, 0.0078582763671875, 0.008544921875, -0.037353515625, 0.00836181640625, -0.03094482421875, 0.0258941650390625, -0.0309600830078125, -0.004241943359375, -0.0428466796875, -0.0760498046875, -0.06317138671875, 0.0638427734375, 0.06768798828125, -0.084228515625, 0.008697509765625, -0.062255859375, -0.00211334228515625, -0.026763916015625, -0.052215576171875, -0.0184783935546875, 0.015411376953125, 0.0098876953125, -0.020111083984375, -0.0207672119140625, 0.059326171875, 0.036895751953125, 0.00986480712890625, 0.0335693359375, -0.0080108642578125, -0.01444244384765625, 0.01312255859375, -0.04852294921875, -0.0002474784851074219, -0.0260772705078125, 0.030792236328125, -0.01059722900390625, 0.00823974609375, -0.00968170166015625, 0.0234527587890625, -0.01568603515625, -0.035186767578125, 0.0272979736328125, -0.00392913818359375, 0.0191192626953125, -0.0093536376953125, -0.02276611328125, 0.0164337158203125, 0.07965087890625, -0.048736572265625, -0.0234222412109375, -0.0171356201171875, 0.005046844482421875, 0.01477813720703125, -0.01299285888671875, -0.0244140625, -0.01445770263671875, -0.10107421875, 0.006084442138671875, -0.0079345703125, -0.0279693603515625, -0.01064300537109375, 0.03277587890625, -0.04644775390625, -0.049468994140625, 0.01319122314453125, -0.04229736328125, -0.01012420654296875, 0.00635528564453125, -0.0175933837890625, 0.0109100341796875, 0.0154571533203125, -0.0518798828125, -0.0751953125, -0.01611328125, 0.018890380859375, 0.05047607421875, -0.061431884765625, 0.07373046875, -0.038421630859375, 0.04217529296875, -0.005786895751953125, 0.003101348876953125, -0.0012464523315429688, 0.01873779296875, -0.02569580078125, -0.0200347900390625, 0.0009450912475585938, -0.04620361328125, -0.01049041748046875, -0.032623291015625, -0.03851318359375, -0.05560302734375, -0.0185699462890625, -0.0139007568359375, 0.024688720703125, -0.030059814453125, -0.040191650390625, -0.063232421875, -0.0341796875, 0.01461029052734375, -0.02667236328125, -0.006183624267578125, -0.07305908203125, -0.04168701171875, 0.039764404296875, -0.0023174285888671875, -0.0247039794921875, 0.0201568603515625, 0.060516357421875, 0.01149749755859375, -0.01442718505859375, -0.0626220703125, -0.00455474853515625, 0.043731689453125, 0.004993438720703125, 0.00800323486328125, -0.004589080810546875, -0.0253753662109375, 0.0207061767578125, 0.00722503662109375, -0.0251007080078125, -0.04376220703125, 0.076171875, -0.0220794677734375, -0.014984130859375, 0.00698089599609375, -0.064208984375, 0.045623779296875, 0.0188751220703125, -0.034332275390625, 0.01403045654296875, -0.0301666259765625, 0.011444091796875, -0.006252288818359375, 0.01519775390625, -0.0209197998046875, -0.017547607421875, -0.0016736984252929688, 0.0006031990051269531, 0.013214111328125, -0.0012674331665039062, 0.0024318695068359375, -0.00153350830078125, 0.042999267578125, -0.004459381103515625, -0.0101470947265625, -0.005218505859375, -0.0064239501953125, 0.034027099609375, -0.004055023193359375, -0.0006284713745117188, 0.00852203369140625, 0.002201080322265625, 0.01384735107421875, 0.038604736328125, -0.0168914794921875, -0.02874755859375, -0.013946533203125, -0.0052947998046875, -0.04962158203125, -0.0099945068359375, 0.03765869140625, 0.0164947509765625, -0.00695037841796875, -0.00705718994140625, -0.07379150390625, 0.0301666259765625, -0.06573486328125, 0.00218963623046875, 0.0166168212890625, -0.0251007080078125, 0.09002685546875, -0.07415771484375, -0.002223968505859375, -0.0014371871948242188, 0.0048828125, -0.0010766983032226562, 0.0269012451171875, 0.01070404052734375, 0.0175628662109375, 0.013702392578125, -0.0256805419921875, 0.0161590576171875, 0.036712646484375, -0.017242431640625, 0.02294921875, -0.0089569091796875, 0.0279083251953125, -0.0241241455078125, -0.03631591796875, 0.03973388671875, -0.040679931640625, -0.0231475830078125, 0.006847381591796875, -0.03216552734375, -0.04083251953125, -0.00824737548828125, 0.0162353515625, 0.0236968994140625, -0.0160369873046875, -0.027557373046875, -0.006336212158203125, -0.0295562744140625, 0.00354766845703125, 0.038177490234375, -0.04730224609375, 0.0247802734375, 0.034210205078125, -0.01910400390625, -0.041534423828125, -0.0285491943359375, -0.0004954338073730469, 0.015289306640625, -0.028167724609375, -0.006683349609375, 0.0167083740234375, -0.0377197265625, 0.004852294921875, -0.023040771484375, 0.01065826416015625, 0.0017271041870117188, 0.0236663818359375, 0.0114593505859375, 0.00010526180267333984, -0.0003216266632080078, -0.0360107421875, -0.062255859375, -0.041107177734375, 0.0068511962890625, 0.032196044921875, -0.006969451904296875, 0.0203704833984375, -0.002819061279296875, 0.00751495361328125, -0.0216827392578125, -0.05078125, -0.0265045166015625, 0.0212249755859375, 0.042144775390625, -0.0030536651611328125, -0.0002429485321044922, 0.034637451171875, -0.01324462890625, 0.0165863037109375, 0.00775909423828125, 0.02752685546875, -0.01496124267578125, -0.026397705078125, -0.00899505615234375, -0.024078369140625, 0.006694793701171875, 0.016754150390625, 0.0005736351013183594, 0.0084686279296875, 0.019989013671875, 0.00753021240234375, 0.03704833984375, -0.0030498504638671875, 0.0124053955078125, -0.029632568359375, -0.00580596923828125, -0.041900634765625, 0.01517486572265625, -0.0032253265380859375, -0.011138916015625, 0.0704345703125, -0.0239410400390625, 0.0098114013671875, -0.007518768310546875, -0.05108642578125, 0.0249786376953125, 0.04388427734375, 0.00908660888671875, 0.0239715576171875, 0.0849609375, -0.055450439453125, 0.035247802734375, 0.049041748046875, -0.0147247314453125, 0.0567626953125, 0.0007038116455078125, -0.00115203857421875, -0.03253173828125, 0.0166473388671875, -0.0022869110107421875, 0.0032806396484375, 0.004558563232421875, -0.005748748779296875, 0.0221099853515625, 0.0304718017578125, 0.062225341796875, -0.042510986328125, 0.0258941650390625, 0.01806640625, -0.0081024169921875, 0.046173095703125, 0.0102081298828125, 0.0013551712036132812, 0.0149688720703125, 0.039581298828125, -0.0462646484375, -0.01323699951171875, 0.016815185546875, -0.0008082389831542969, -0.010284423828125, -0.0250701904296875, 0.0287322998046875, 0.00833892822265625, -0.0245819091796875, -0.0224456787109375, 0.0024852752685546875, -0.0244140625, -0.00794219970703125, 0.032501220703125, -0.0157623291015625, 0.033355712890625, -0.0275421142578125, 0.02301025390625, -0.051605224609375, -0.0034389495849609375, 0.034027099609375, -0.00714111328125, 0.023223876953125, 0.046417236328125, -0.0078887939453125, 0.00682830810546875, 0.016815185546875, -0.0438232421875, 0.0806884765625, -0.00296783447265625, 0.005641937255859375, -0.00609588623046875, -0.046783447265625, -0.0192413330078125, -0.0298614501953125, 0.0400390625, 0.0029163360595703125, -0.020599365234375, 0.02276611328125, -0.032745361328125, -0.0001653432846069336, 0.030792236328125, 0.029205322265625, -0.01120758056640625, -0.0092010498046875, 0.039764404296875, -0.048614501953125, -0.0101318359375, 0.0151214599609375, 0.0081939697265625, 0.0323486328125, 0.0015535354614257812, -0.0064239501953125, 0.037567138671875, 0.004077911376953125, -0.03558349609375, 0.00887298583984375, 0.030731201171875, -0.0311431884765625, 0.0132293701171875, -0.01837158203125, 0.01486968994140625, -0.03814697265625, 0.0196685791015625, -0.04864501953125, 0.0110931396484375, -0.01509857177734375, 0.0116119384765625, 0.056732177734375, -0.001338958740234375, -0.03314208984375, -0.022918701171875, 0.0947265625, 0.1029052734375, 0.055511474609375, -0.00039505958557128906, -0.0037288665771484375, 0.0011997222900390625, -0.002582550048828125, -0.0186004638671875, 0.0167083740234375, -0.016845703125, -0.0257110595703125, 0.037811279296875, -0.0026226043701171875, -0.0038433074951171875, 0.03985595703125, 0.00047326087951660156, -0.07550048828125, 0.02935791015625, 0.051513671875, -0.0290679931640625, 0.03369140625, 0.0450439453125, 0.035614013671875, 0.0164337158203125, -0.0400390625, -0.0016374588012695312, 0.042449951171875, 0.002346038818359375, 0.035736083984375, 0.052276611328125, 0.0240478515625, -0.0107574462890625, 0.016357421875, 0.038665771484375, 0.037933349609375, -0.036224365234375, -0.0235748291015625, 0.01328277587890625, -0.0032787322998046875, 0.0034389495849609375, 0.048583984375, 0.017547607421875, -0.02435302734375, -0.0223846435546875, 0.00635528564453125, -0.00021600723266601562, -0.0246124267578125, 0.01522064208984375, -0.040374755859375, 0.002689361572265625, -0.0653076171875, -0.0736083984375, -0.02581787109375, -0.01111602783203125, 0.036102294921875, 0.053131103515625, 0.0151824951171875, 0.002582550048828125, -0.06475830078125, -0.05120849609375, 0.0063629150390625, -0.03857421875, -0.0215606689453125, 0.00848388671875, 0.0250396728515625, -0.004405975341796875, 0.0298919677734375, 0.00914764404296875, 0.004711151123046875, 0.0222320556640625, -0.017974853515625, -0.0121612548828125, 0.024658203125, 0.00856781005859375, -0.05841064453125, 0.007904052734375, -0.003875732421875, -0.0032958984375, 0.05810546875, -0.00354766845703125, -0.1141357421875, -0.023468017578125, -0.00795745849609375, -0.06976318359375, -0.012908935546875, -0.048431396484375, 0.01641845703125, 0.0391845703125, 0.00586700439453125, 0.01153564453125, -0.0165252685546875, 0.06219482421875, -0.02752685546875, 0.036376953125, -0.0006380081176757812, -0.0227508544921875, 0.0263671875, -0.02313232421875, 0.049713134765625, -0.01454925537109375, -0.08160400390625, -0.02520751953125, -0.041717529296875, -0.02691650390625, 0.038482666015625, 0.04058837890625, 0.00003147125244140625, -0.004486083984375, -0.0137786865234375, -0.01369476318359375, 0.034454345703125, -0.038604736328125, -0.003330230712890625, 0.024261474609375, 0.01245880126953125, -0.0064239501953125, -0.023956298828125, -0.0030384063720703125, -0.01064300537109375, 0.029815673828125, 0.0223388671875, 0.05718994140625, -0.022674560546875, 0.017486572265625, 0.0311431884765625, 0.0205078125, -0.009613037109375, 0.00705718994140625, 0.029266357421875, -0.0267486572265625, -0.01172637939453125, -0.0188140869140625, -0.02593994140625, -0.0235595703125, 0.02923583984375, -0.051025390625, -0.0169830322265625, -0.0152587890625, 0.01491546630859375, 0.004512786865234375, -0.005146026611328125, -0.025726318359375, -0.023651123046875, -0.03790283203125, -0.0129547119140625, 0.0250701904296875, -0.0029888153076171875, -0.01319122314453125, 0.044219970703125, 0.00710296630859375, 0.05694580078125, -0.0037403106689453125, 0.0134735107421875, 0.00841522216796875, 0.04071044921875, -0.07684326171875, -0.051055908203125, 0.016143798828125, -0.00070953369140625, -0.0249176025390625, 0.027069091796875, 0.0276947021484375, 0.00995635986328125, -0.014190673828125, 0.0171051025390625, -0.0220184326171875, 0.025054931640625, -0.032684326171875, -0.01287078857421875, -0.00606536865234375, 0.02923583984375, -0.00801849365234375, -0.007472991943359375, -0.004711151123046875, -0.0113983154296875, -0.0134429931640625, 0.019195556640625, -0.0025482177734375, 0.012664794921875, 0.005016326904296875, 0.028289794921875, 0.00664520263671875, 0.020477294921875, -0.08209228515625, 0.06793212890625, -0.0272064208984375, 0.019317626953125, -0.028839111328125, -0.0672607421875, 0.00562286376953125, 0.0147857666015625, -0.0100860595703125, -0.0592041015625, -0.0450439453125, 0.028106689453125, -0.0550537109375, 0.0419921875, 0.06976318359375, -0.034210205078125, 0.0012559890747070312, 0.01367950439453125, 0.043731689453125, 0.0706787109375, -0.07269287109375, -0.0304718017578125, -0.016204833984375, 0.0096435546875, 0.01486968994140625, -0.01812744140625, 0.006664276123046875, -0.05352783203125, -0.0015230178833007812, -0.07586669921875, 0.03076171875, -0.006404876708984375, -0.0300750732421875, -0.00988006591796875, 0.0026092529296875, -0.00392913818359375, -0.01198577880859375, 0.033203125, 0.00402069091796875, -0.048065185546875, 0.075927734375, 0.042816162109375, -0.009185791015625, 0.037384033203125, 0.00681304931640625, 0.00644683837890625, -0.023345947265625, 0.02227783203125, 0.01922607421875, -0.0023288726806640625, 0.03436279296875, 0.045318603515625, -0.0380859375, 0.0176544189453125, -0.027618408203125, 0.0618896484375, 0.05902099609375, -0.0209808349609375, 0.0038394927978515625, 0.01953125, -0.046661376953125, -0.016357421875, -0.0249176025390625, -0.044036865234375, -0.004268646240234375, 0.0703125, 0.07122802734375, 0.0172119140625, -0.04486083984375, -0.03009033203125, -0.0269775390625, 0.01309967041015625, -0.040313720703125, 0.01517486572265625, -0.07952880859375, -0.0157928466796875, 0.0012617111206054688, -0.047149658203125, -0.0219573974609375, -0.0072174072265625, -0.086181640625, 0.005657196044921875, -0.041534423828125, 0.00655364990234375, -0.071533203125, 0.08544921875, 0.00739288330078125, -0.0169830322265625, -0.01282501220703125, -0.032501220703125, -0.0218963623046875, 0.004764556884765625, -0.061370849609375, -0.0029773712158203125, 0.0284423828125, -0.025665283203125, 0.00289154052734375, 0.002197265625, 0.0118408203125, -0.0023136138916015625, -0.010101318359375, 0.00778961181640625, 0.03326416015625, -0.00955963134765625, 0.04852294921875, 0.0078582763671875, 0.03704833984375, 0.002655029296875, -0.03271484375, 0.002033233642578125, -0.005023956298828125, -0.0218048095703125, 0.04095458984375, -0.007778167724609375, -0.01555633544921875, 0.008148193359375, -0.0286712646484375, 0.032073974609375, 0.03466796875, 0.0118560791015625, 0.0262908935546875, -0.01335906982421875, 0.01024627685546875, -0.01073455810546875, -0.016265869140625 ]
94a18347fbdca5e47698956bef2a74a2691dc572
Wordpress Stackexchange Q: Is there a hook for user activation (after they click the email confirm)? Is there a hook for user activation (after they click the email confirm)? I am creating a plugin to automatically add them to my email software, but I want them to have to confirm their email first. A: wpmu_welcome_user_notification is a filter, but you can execute your action there, too. Take care not to turn off notification mails accidentally; see the source.
Q: Is there a hook for user activation (after they click the email confirm)? Is there a hook for user activation (after they click the email confirm)? I am creating a plugin to automatically add them to my email software, but I want them to have to confirm their email first. A: wpmu_welcome_user_notification is a filter, but you can execute your action there, too. Take care not to turn off notification mails accidentally; see the source. A: You want wpmu_activate_user, at least if you're on multi-site. my_function($user_id, $password, $meta) { // do stuff } add_action('wpmu_activate_user','my_function');
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:416248", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39412" }
[ 0.039398193359375, 0.0175933837890625, -0.035552978515625, -0.0135040283203125, 0.046112060546875, -0.06317138671875, 0.059722900390625, -0.014251708984375, -0.00604248046875, 0.0379638671875, -0.03265380859375, 0.004680633544921875, 0.03485107421875, -0.0169525146484375, -0.001148223876953125, -0.01361846923828125, 0.00377655029296875, -0.0172119140625, -0.02264404296875, -0.0310821533203125, 0.0025348663330078125, -0.0225677490234375, -0.0291595458984375, 0.019866943359375, -0.0265960693359375, 0.062347412109375, 0.038116455078125, -0.027801513671875, -0.0009613037109375, -0.0018301010131835938, 0.00258636474609375, -0.0229644775390625, 0.0119476318359375, 0.031890869140625, -0.03033447265625, 0.03125, 0.0181884765625, 0.00850677490234375, -0.0002770423889160156, 0.0276336669921875, 0.025604248046875, -0.014434814453125, -0.01263427734375, 0.0054168701171875, 0.00179290771484375, -0.04241943359375, 0.037994384765625, -0.041412353515625, 0.0345458984375, -0.01251220703125, 0.0037517547607421875, -0.0005846023559570312, 0.010833740234375, -0.042388916015625, -0.012603759765625, 0.0255279541015625, -0.06781005859375, 0.0124359130859375, 0.004207611083984375, 0.08074951171875, 0.037445068359375, 0.0103607177734375, -0.019073486328125, -0.045745849609375, 0.01068878173828125, 0.0004563331604003906, -0.0640869140625, 0.00955963134765625, 0.01532745361328125, 0.0121612548828125, 0.0007729530334472656, -0.03253173828125, -0.03497314453125, 0.0129852294921875, -0.00860595703125, 0.0159759521484375, 0.033935546875, 0.030914306640625, 0.001190185546875, 0.0589599609375, 0.00955963134765625, -0.0008726119995117188, 0.015411376953125, -0.04547119140625, -0.005580902099609375, -0.040679931640625, -0.012176513671875, 0.0097503662109375, -0.0296630859375, -0.02020263671875, -0.0271148681640625, -0.0015544891357421875, 0.0159912109375, -0.033111572265625, -0.048675537109375, -0.0211334228515625, 0.024627685546875, 0.055450439453125, 0.0012445449829101562, -0.00798797607421875, -0.005352020263671875, -0.0207672119140625, -0.0440673828125, -0.00957489013671875, 0.00102996826171875, 0.074951171875, 0.0090179443359375, -0.0186309814453125, -0.0121917724609375, -0.00902557373046875, 0.0021305084228515625, -0.03668212890625, 0.0080718994140625, -0.00848388671875, 0.0225067138671875, -0.0374755859375, -0.06292724609375, 0.06951904296875, -0.0012569427490234375, 0.030914306640625, -0.00713348388671875, -0.0041046142578125, 0.0214691162109375, -0.010284423828125, -0.0185394287109375, -0.030975341796875, -0.02734375, -0.0209197998046875, -0.040496826171875, 0.01297760009765625, 0.02288818359375, 0.051055908203125, -0.0168304443359375, -0.0070037841796875, -0.04498291015625, 0.0013360977172851562, 0.0093536376953125, 0.0257720947265625, 0.0121002197265625, -0.0028514862060546875, -0.004871368408203125, -0.053192138671875, -0.03594970703125, 0.01202392578125, 0.03594970703125, 0.0085296630859375, 0.0019588470458984375, 0.00795745849609375, 0.035736083984375, 0.035064697265625, -0.0112457275390625, -0.031402587890625, 0.0002684593200683594, 0.0149383544921875, 0.036651611328125, 0.0218505859375, 0.0240478515625, -0.0028553009033203125, -0.00254058837890625, 0.016998291015625, 0.04833984375, -0.030120849609375, -0.032806396484375, -0.023345947265625, -0.06829833984375, 0.032257080078125, -0.02972412109375, -0.00838470458984375, 0.020355224609375, -0.017913818359375, 0.01158905029296875, 0.019866943359375, 0.018310546875, -0.0006046295166015625, 0.003299713134765625, 0.0144500732421875, 0.060699462890625, 0.015899658203125, 0.0386962890625, -0.0321044921875, -0.025787353515625, -0.01268768310546875, 0.1326904296875, -0.053985595703125, -0.040130615234375, 0.0275115966796875, 0.0107269287109375, 0.051544189453125, 0.0219268798828125, 0.0194549560546875, -0.006328582763671875, 0.0212554931640625, 0.0305938720703125, -0.006137847900390625, -0.03363037109375, -0.0594482421875, 0.03179931640625, 0.0138092041015625, -0.02508544921875, 0.032684326171875, 0.05511474609375, -0.01424407958984375, 0.0297393798828125, -0.06427001953125, -0.061920166015625, -0.005859375, -0.0257568359375, 0.02667236328125, 0.0116119384765625, -0.0033969879150390625, -0.000988006591796875, 0.0023345947265625, 0.01541900634765625, -0.060028076171875, -0.040435791015625, 0.0015239715576171875, -0.0186767578125, 0.048828125, 0.008392333984375, 0.05035400390625, -0.0160369873046875, -0.00205230712890625, -0.003620147705078125, -0.018951416015625, -0.0216522216796875, -0.0271453857421875, -0.000698089599609375, -0.006130218505859375, -0.04248046875, 0.006542205810546875, -0.0020923614501953125, -0.0018825531005859375, -0.01374053955078125, -0.0218963623046875, -0.018218994140625, 0.03057861328125, 0.024078369140625, -0.043243408203125, 0.0004649162292480469, 0.0237579345703125, 0.00171661376953125, 0.032501220703125, -0.0221099853515625, 0.035491943359375, 0.032196044921875, 0.00969696044921875, 0.0262603759765625, 0.0268402099609375, -0.0022640228271484375, 0.0220947265625, -0.01422119140625, 0.00856781005859375, 0.008148193359375, -0.0305328369140625, 0.005115509033203125, 0.0233917236328125, 0.015777587890625, -0.005970001220703125, -0.0139007568359375, -0.0121917724609375, 0.0228729248046875, -0.05096435546875, -0.07720947265625, -0.002197265625, -0.0654296875, -0.035003662109375, -0.009552001953125, -0.0077972412109375, 0.0223236083984375, -0.053436279296875, 0.0249481201171875, 0.0007457733154296875, -0.01178741455078125, 0.023712158203125, 0.0596923828125, 0.0130462646484375, -0.009063720703125, -0.039703369140625, 0.004901885986328125, 0.01267242431640625, -0.032562255859375, -0.045684814453125, 0.00470733642578125, -0.010406494140625, 0.022674560546875, -0.0206451416015625, 0.0321044921875, -0.02587890625, -0.0196075439453125, 0.0143585205078125, 0.036895751953125, 0.016632080078125, -0.005832672119140625, 0.020233154296875, -0.022796630859375, -0.0089569091796875, -0.0660400390625, -0.00751495361328125, 0.01446533203125, -0.041473388671875, -0.020599365234375, 0.059539794921875, 0.017333984375, -0.0223541259765625, 0.0012331008911132812, -0.039215087890625, 0.0004031658172607422, 0.01451873779296875, 0.00395965576171875, -0.044677734375, -0.00788116455078125, 0.046722412109375, 0.0088653564453125, 0.0733642578125, -0.06109619140625, -0.066162109375, -0.026458740234375, -0.01421356201171875, -0.043975830078125, -0.0467529296875, -0.026947021484375, -0.032684326171875, 0.0345458984375, 0.0005693435668945312, -0.0012063980102539062, -0.023193359375, 0.031280517578125, 0.0194244384765625, -0.0738525390625, -0.019073486328125, -0.040283203125, -0.07452392578125, -0.0400390625, 0.0677490234375, -0.007633209228515625, 0.0264892578125, 0.0011301040649414062, -0.017303466796875, -0.0169219970703125, -0.01541900634765625, -0.004913330078125, -0.0247955322265625, 0.01381683349609375, -0.027587890625, -0.033172607421875, 0.038970947265625, 0.0008745193481445312, 0.01995849609375, -0.0129547119140625, 0.0008606910705566406, -0.007610321044921875, -0.0335693359375, 0.00238037109375, -0.01206207275390625, 0.003055572509765625, 0.0265045166015625, -0.0072479248046875, -0.00970458984375, 0.01263427734375, -0.056365966796875, 0.08648681640625, 0.0130767822265625, 0.007686614990234375, -0.08026123046875, -0.040771484375, -0.0328369140625, 0.0171966552734375, -0.06976318359375, -0.0145721435546875, 0.0026302337646484375, 0.00835418701171875, 0.001857757568359375, 0.00738525390625, -0.0357666015625, -0.042449951171875, -0.0059967041015625, -0.00026679039001464844, -0.01800537109375, 0.0017766952514648438, -0.0297393798828125, 0.0278778076171875, -0.020904541015625, 0.027008056640625, -0.054840087890625, -0.061309814453125, 0.0307769775390625, -0.027862548828125, 0.00742340087890625, -0.032135009765625, -0.006008148193359375, 0.0159912109375, 0.09197998046875, -0.023101806640625, -0.022186279296875, 0.016510009765625, 0.0140533447265625, -0.03271484375, 0.02630615234375, -0.06085205078125, -0.0117645263671875, -0.0616455078125, 0.0175018310546875, 0.026947021484375, -0.038421630859375, -0.0172119140625, -0.00899505615234375, -0.0322265625, -0.011383056640625, 0.03778076171875, -0.038970947265625, 0.01861572265625, 0.015869140625, -0.0153045654296875, 0.0041351318359375, -0.03485107421875, -0.0335693359375, -0.0283660888671875, -0.0014925003051757812, -0.011260986328125, -0.0203399658203125, -0.0006113052368164062, 0.00978851318359375, -0.01410675048828125, 0.013427734375, 0.00013077259063720703, 0.0262603759765625, -0.00351715087890625, 0.0246124267578125, 0.01302337646484375, -0.045806884765625, -0.006679534912109375, -0.03656005859375, 0.013946533203125, 0.0016021728515625, -0.0283050537109375, 0.046661376953125, -0.04296875, 0.04217529296875, -0.006061553955078125, -0.0284881591796875, 0.01216888427734375, -0.016632080078125, -0.0474853515625, 0.055938720703125, -0.020904541015625, -0.00213623046875, -0.05145263671875, -0.025421142578125, -0.0168609619140625, -0.0301055908203125, 0.0131378173828125, 0.0015411376953125, 0.031829833984375, 0.0180511474609375, 0.00817108154296875, 0.04156494140625, -0.02935791015625, 0.025421142578125, 0.04486083984375, 0.02923583984375, 0.02716064453125, -0.018646240234375, 0.00879669189453125, 0.03900146484375, 0.03411865234375, -0.0496826171875, 0.087890625, -0.01486968994140625, -0.0078277587890625, 0.044036865234375, -0.0036487579345703125, -0.0104522705078125, 0.0131683349609375, -0.0009059906005859375, -0.008453369140625, 0.042022705078125, 0.0218658447265625, -0.0292816162109375, 0.0124969482421875, 0.006076812744140625, -0.020294189453125, 0.01500701904296875, 0.006992340087890625, -0.03131103515625, -0.004230499267578125, 0.0081787109375, -0.06005859375, -0.04998779296875, -0.010162353515625, -0.0196990966796875, -0.020263671875, 0.007232666015625, 0.03533935546875, -0.043365478515625, -0.0031490325927734375, -0.019256591796875, -0.0127410888671875, 0.036163330078125, -0.004970550537109375, -0.0205535888671875, -0.0278472900390625, -0.01345062255859375, 0.033477783203125, 0.01401519775390625, -0.0019369125366210938, 0.07598876953125, 0.0726318359375, -0.018402099609375, -0.023040771484375, -0.0117950439453125, 0.0229339599609375, -0.07855224609375, -0.01454925537109375, -0.0107269287109375, -0.01282501220703125, 0.059478759765625, -0.01055908203125, -0.0038623809814453125, 0.0226287841796875, -0.0189361572265625, 0.04547119140625, 0.077880859375, -0.031707763671875, 0.01055908203125, 0.04937744140625, -0.048858642578125, -0.0215911865234375, 0.000006794929504394531, -0.0120086669921875, 0.0016498565673828125, 0.0242156982421875, 0.013946533203125, 0.032958984375, 0.01611328125, -0.00580596923828125, 0.0037708282470703125, -0.021087646484375, 0.044921875, 0.0231781005859375, -0.0494384765625, -0.0268096923828125, -0.00994873046875, 0.001972198486328125, -0.01500701904296875, 0.005207061767578125, -0.0171356201171875, -0.0069732666015625, 0.0051116943359375, 0.0239410400390625, -0.02862548828125, 0.007183074951171875, 0.01108551025390625, -0.0010089874267578125, 0.0030002593994140625, 0.0229034423828125, -0.038543701171875, -0.007049560546875, -0.018707275390625, -0.01149749755859375, 0.0499267578125, -0.00525665283203125, 0.0138092041015625, -0.053924560546875, 0.0233001708984375, -0.08038330078125, -0.0080718994140625, 0.0257568359375, 0.0123443603515625, -0.0648193359375, -0.0091094970703125, -0.040557861328125, -0.00942230224609375, -0.053497314453125, -0.05194091796875, -0.031951904296875, 0.00943756103515625, 0.0276947021484375, 0.0283966064453125, 0.01558685302734375, -0.031341552734375, -0.019500732421875, 0.0002409219741821289, 0.033660888671875, 0.039398193359375, 0.00159454345703125, 0.020172119140625, 0.017425537109375, 0.0214080810546875, 0.03131103515625, -0.0050048828125, -0.033294677734375, -0.02301025390625, -0.0166015625, -0.009918212890625, -0.0158843994140625, 0.0150909423828125, -0.033966064453125, 0.00786590576171875, 0.06390380859375, -0.0085906982421875, -0.01120758056640625, 0.004150390625, -0.00569915771484375, -0.00313568115234375, 0.04638671875, 0.056915283203125, -0.00955963134765625, 0.064208984375, -0.0156402587890625, 0.0086822509765625, -0.0098724365234375, 0.0091400146484375, -0.0213470458984375, -0.009979248046875, -0.0130462646484375, 0.0003604888916015625, -0.01715087890625, 0.0278167724609375, 0.0014162063598632812, -0.0206146240234375, 0.01206207275390625, -0.003246307373046875, 0.006259918212890625, -0.005748748779296875, 0.01049041748046875, -0.016632080078125, -0.021728515625, 0.033660888671875, -0.0081939697265625, -0.0103607177734375, 0.025146484375, -0.0183868408203125, 0.0034580230712890625, 0.0653076171875, 0.059661865234375, -0.111083984375, 0.00020015239715576172, -0.0162200927734375, 0.001220703125, 0.0253753662109375, -0.01132965087890625, 0.004512786865234375, -0.02423095703125, 0.07757568359375, -0.00785064697265625, 0.013946533203125, 0.0428466796875, -0.019561767578125, -0.003864288330078125, -0.01641845703125, 0.03363037109375, 0.0202484130859375, -0.0144195556640625, 0.00429534912109375, 0.006443023681640625, 0.01959228515625, -0.01076507568359375, 0.038116455078125, 0.0109100341796875, 0.0014591217041015625, -0.0203857421875, 0.03759765625, 0.0016717910766601562, -0.0262603759765625, -0.0200042724609375, -0.01519775390625, 0.052032470703125, 0.0030651092529296875, 0.00469207763671875, -0.04962158203125, -0.019683837890625, -0.01296234130859375, -0.05078125, -0.019775390625, -0.01885986328125, 0.010284423828125, 0.0017042160034179688, 0.0291748046875, -0.003177642822265625, -0.02581787109375, 0.00620269775390625, 0.0228118896484375, 0.035125732421875, -0.0306854248046875, -0.0185394287109375, 0.0526123046875, -0.025543212890625, -0.022552490234375, -0.025238037109375, -0.010711669921875, -0.0154571533203125, -0.0007982254028320312, -0.04302978515625, -0.04327392578125, -0.00460052490234375, -0.061431884765625, -0.039703369140625, 0.053924560546875, -0.02386474609375, 0.0093231201171875, -0.017608642578125, 0.0267181396484375, 0.0168304443359375, 0.025421142578125, -0.043365478515625, 0.08392333984375, 0.00020205974578857422, 0.036163330078125, -0.053741455078125, 0.0010089874267578125, -0.0005936622619628906, 0.0177001953125, 0.03179931640625, 0.01383209228515625, 0.038970947265625, -0.029693603515625, -0.0026493072509765625, 0.003143310546875, -0.044158935546875, -0.006977081298828125, 0.00901031494140625, 0.031829833984375, 0.038299560546875, -0.0189056396484375, 0.045623779296875, -0.03759765625, -0.018707275390625, 0.0077972412109375, 0.0010318756103515625, -0.00844573974609375, 0.00665283203125, 0.06640625, -0.0019664764404296875, -0.0131072998046875, 0.014984130859375, -0.0263671875, -0.0112152099609375, 0.00560760498046875, -0.010772705078125, 0.01110076904296875, 0.04327392578125, -0.031707763671875, 0.040252685546875, 0.01229095458984375, 0.0198822021484375, 0.007843017578125, 0.013153076171875, 0.041717529296875, 0.00002002716064453125, 0.01105499267578125, 0.061309814453125, -0.042236328125, 0.0175323486328125, -0.02587890625, 0.00034046173095703125, -0.08526611328125, -0.06439208984375, 0.00617218017578125, 0.04705810546875, -0.01390838623046875, -0.057861328125, 0.0045013427734375, 0.036041259765625, 0.045684814453125, 0.055084228515625, 0.08160400390625, -0.025146484375, 0.019317626953125, -0.065185546875, -0.00026726722717285156, 0.0238494873046875, 0.043365478515625, -0.006591796875, -0.00040912628173828125, -0.036865234375, -0.01526641845703125, -0.0109100341796875, 0.0330810546875, 0.022369384765625, -0.0272064208984375, -0.055328369140625, 0.043548583984375, 0.0266876220703125, 0.0217437744140625, -0.0263671875, 0.0272216796875, 0.04827880859375, 0.00960540771484375, -0.01540374755859375, 0.005321502685546875, 0.04327392578125, 0.016357421875, 0.003437042236328125, -0.003269195556640625, 0.04498291015625, 0.040557861328125, -0.02520751953125, -0.0158233642578125, -0.0064239501953125, -0.0233306884765625, 0.04443359375, -0.029388427734375, 0.0579833984375, 0.01511383056640625, 0.00009316205978393555, 0.0137786865234375, 0.0214080810546875, 0.0570068359375, -0.0264739990234375, 0.01739501953125, -0.005023956298828125, -0.0167083740234375, 0.05096435546875, -0.0035610198974609375, 0.03240966796875, -0.003360748291015625, -0.1007080078125, -0.0298614501953125, -0.011444091796875, -0.0240325927734375, 0.016143798828125, 0.031036376953125, -0.038787841796875, 0.0394287109375, 0.030242919921875, 0.0021820068359375, 0.0184173583984375, -0.0183563232421875, -0.003437042236328125, -0.044189453125, 0.030548095703125, -0.0169219970703125, -0.0350341796875, 0.01149749755859375, 0.03265380859375, -0.01134490966796875, -0.024566650390625, 0.047943115234375, 0.003284454345703125, -0.01366424560546875, -0.0108489990234375, -0.006519317626953125, -0.00140380859375, -0.0123138427734375, 0.022491455078125, 0.00786590576171875, -0.018798828125, -0.0144500732421875, -0.0758056640625, 0.044097900390625, 0.01239013671875, 0.03289794921875, 0.07513427734375, -0.01535797119140625, -0.00572967529296875, -0.00321197509765625, 0.0396728515625, -0.01029205322265625, -0.0185699462890625, -0.042724609375, -0.01490020751953125, 0.04205322265625, 0.043365478515625, -0.0177764892578125, 0.021514892578125, -0.04058837890625, 0.00222015380859375, -0.0304412841796875, 0.0162811279296875, -0.10504150390625, 0.0025920867919921875, 0.0160980224609375, 0.03338623046875, 0.0162200927734375, -0.01303863525390625, 0.026153564453125, 0.02349853515625, -0.02325439453125, 0.0250701904296875, -0.00434112548828125, -0.022491455078125, -0.01119232177734375, 0.011260986328125, -0.01464080810546875, -0.01207733154296875, 0.0004477500915527344, -0.0146484375, -0.031585693359375, -0.03277587890625, -0.0421142578125, -0.0295562744140625, 0.038970947265625, 0.028350830078125, 0.0132598876953125, 0.004302978515625, -0.04425048828125, 0.0261383056640625, 0.039886474609375, -0.0028362274169921875, -0.04913330078125, 0.0219573974609375, -0.025634765625, 0.055328369140625, -0.0085906982421875, 0.0079345703125, -0.004467010498046875, -0.01493072509765625, -0.06365966796875, -0.044281005859375, -0.050018310546875, 0.0335693359375, -0.03424072265625, -0.018524169921875, 0.0242156982421875, -0.0148468017578125, -0.061309814453125, -0.0308837890625, 0.0013551712036132812, 0.0022068023681640625, 0.02783203125, -0.02923583984375, -0.0119476318359375, -0.00237274169921875, 0.019134521484375, -0.0147705078125, -0.00397491455078125, -0.040313720703125, -0.0209197998046875, 0.00470733642578125, 0.01239776611328125, 0.042633056640625, -0.043212890625, -0.15185546875, 0.07818603515625, -0.03265380859375, -0.0408935546875, -0.0615234375, -0.0006246566772460938, 0.003696441650390625, -0.019866943359375, -0.033172607421875, 0.007045745849609375, -0.02056884765625, 0.04620361328125, -0.008026123046875, 0.035125732421875, 0.003856658935546875, 0.0003490447998046875, -0.00809478759765625, 0.004726409912109375, 0.0032062530517578125, -0.004425048828125, 0.035430908203125, -0.04278564453125, 0.061279296875, 0.045928955078125, -0.040374755859375, -0.037384033203125, -0.0037899017333984375, -0.03289794921875, -0.043365478515625, -0.06890869140625, 0.044769287109375, 0.01751708984375, 0.07122802734375, 0.003185272216796875, 0.0021076202392578125, -0.058074951171875, -0.016845703125, -0.0130462646484375, 0.00556182861328125, -0.0144805908203125, 0.005702972412109375, -0.04833984375, 0.004199981689453125, -0.002777099609375, -0.014068603515625, -0.024749755859375, -0.02056884765625, -0.0284576416015625, -0.0163726806640625, -0.01129150390625, 0.00708770751953125, -0.01473236083984375, -0.049163818359375, 0.00954437255859375, -0.0053558349609375, -0.0181732177734375, 0.01806640625, 0.024688720703125, -0.019378662109375, 0.06011962890625, 0.0379638671875, 0.003673553466796875, -0.0294189453125, 0.003986358642578125, 0.033538818359375, 0.01059722900390625, -0.0209197998046875, -0.029510498046875, 0.0084075927734375, 0.0301666259765625, -0.007564544677734375, 0.030914306640625, -0.0203857421875, 0.054840087890625, -0.00569915771484375, 0.054718017578125, -0.01397705078125, -0.0269927978515625, -0.031524658203125, 0.046142578125, 0.00905609130859375, -0.020111083984375, 0.0309295654296875, -0.02349853515625, 0.01053619384765625, 0.023834228515625, 0.055450439453125, -0.034698486328125, 0.039459228515625, 0.019256591796875, 0.037322998046875, 0.0082244873046875 ]
64f20058d036fcfca0304f1e096607b247a5036f
Wordpress Stackexchange Q: get_terms does not return any results for my custom taxonomy? If I go to wp-admin/edit-tags.php?taxonomy=location then I correctly see a list of terms. If I loop through: get_terms("category"); Then I correctly see several terms for the taxonomy of category. Have I created my custom taxonomy incorrectly for the same function not to output any results for my taxonomy? get_terms("location"); register_taxonomy('location', 'post', array( 'labels' => array( 'name' => _x( 'Locations', 'taxonomy general name' ), 'singular_name' => _x( 'Location', 'taxonomy singular name' ), 'search_items' => __( 'Search Locations' ), 'all_items' => __( 'All Locations' ), 'parent_item' => __( 'Parent Location' ), 'parent_item_colon' => __( 'Parent Location:' ), 'edit_item' => __( 'Edit Location' ), 'update_item' => __( 'Update Location' ), 'add_new_item' => __( 'Add New Location' ), 'new_item_name' => __( 'New Location Name' ), 'menu_name' => __( 'Locations' ), ), 'rewrite' => array( 'slug' => 'locations', 'with_front' => false, 'hierarchical' => true ), ) ); A: If you are trying to use all of the terms in that taxonomy for something, try this: get_terms( "location", array( "hide_empty" => 0 ) ); You may be trying to return taxonomy terms that have no relationship to any object.
Q: get_terms does not return any results for my custom taxonomy? If I go to wp-admin/edit-tags.php?taxonomy=location then I correctly see a list of terms. If I loop through: get_terms("category"); Then I correctly see several terms for the taxonomy of category. Have I created my custom taxonomy incorrectly for the same function not to output any results for my taxonomy? get_terms("location"); register_taxonomy('location', 'post', array( 'labels' => array( 'name' => _x( 'Locations', 'taxonomy general name' ), 'singular_name' => _x( 'Location', 'taxonomy singular name' ), 'search_items' => __( 'Search Locations' ), 'all_items' => __( 'All Locations' ), 'parent_item' => __( 'Parent Location' ), 'parent_item_colon' => __( 'Parent Location:' ), 'edit_item' => __( 'Edit Location' ), 'update_item' => __( 'Update Location' ), 'add_new_item' => __( 'Add New Location' ), 'new_item_name' => __( 'New Location Name' ), 'menu_name' => __( 'Locations' ), ), 'rewrite' => array( 'slug' => 'locations', 'with_front' => false, 'hierarchical' => true ), ) ); A: If you are trying to use all of the terms in that taxonomy for something, try this: get_terms( "location", array( "hide_empty" => 0 ) ); You may be trying to return taxonomy terms that have no relationship to any object. A: Try using WP_Term_Query: Get all args from here: https://developer.wordpress.org/reference/classes/WP_Term_Query/__construct/ $term_query = new WP_Term_Query( array( 'taxonomy' => 'regions', // <-- Custom Taxonomy name.. 'orderby' => 'name', 'order' => 'ASC', 'child_of' => 0, 'parent' => 0, 'fields' => 'all', 'hide_empty' => false, ) ); // Show Array info echo "<pre>"; print_r($term_query->terms); echo "</pre>"; //Render html if ( ! empty( $term_query->terms ) ) { foreach ( $term_query ->terms as $term ) { echo $term->name .", "; echo $term->term_id .", "; echo $term->slug .", "; echo "<br>"; } } else { echo '‘No term found.’'; } A: According to WordPress Reference: Since 4.5.0, taxonomies should be passed via the ‘taxonomy’ argument in the $args array: $terms = get_terms( array( 'taxonomy' => 'post_tag', 'hide_empty' => false, ) ); Jared's answer helped to point towards this.
wordpress
{ "language": "en", "length": 325, "provenance": "stackexchange_00019.jsonl.gz:416253", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39431" }
[ 0.04168701171875, 0.013397216796875, -0.0021514892578125, -0.0272369384765625, 0.030181884765625, -0.02008056640625, 0.033447265625, -0.0214996337890625, 0.005970001220703125, 0.01348876953125, -0.0697021484375, -0.033477783203125, -0.00839996337890625, -0.0129241943359375, -0.025238037109375, -0.060272216796875, 0.034210205078125, -0.0310821533203125, 0.0159454345703125, 0.0024585723876953125, 0.01485443115234375, 0.02447509765625, 0.0187225341796875, 0.044219970703125, 0.03076171875, -0.08160400390625, 0.0208282470703125, -0.024993896484375, -0.005588531494140625, -0.035675048828125, 0.01142120361328125, 0.05023193359375, 0.029571533203125, -0.0048980712890625, 0.0009751319885253906, -0.03924560546875, 0.02679443359375, -0.01342010498046875, -0.024627685546875, 0.051727294921875, 0.036590576171875, -0.0207977294921875, -0.009490966796875, 0.0350341796875, -0.0009851455688476562, -0.05816650390625, 0.03271484375, -0.0594482421875, -0.0229339599609375, -0.0413818359375, 0.05230712890625, -0.0016574859619140625, 0.060089111328125, -0.025787353515625, -0.013641357421875, 0.0262298583984375, 0.00695037841796875, -0.017486572265625, 0.0181732177734375, -0.060028076171875, -0.042572021484375, -0.017608642578125, 0.056640625, 0.0273284912109375, -0.007152557373046875, 0.00858306884765625, 0.0001024007797241211, 0.01299285888671875, -0.0531005859375, -0.0124359130859375, 0.04486083984375, -0.0504150390625, 0.003551483154296875, 0.037994384765625, -0.0258636474609375, -0.0919189453125, 0.026702880859375, -0.05010986328125, 0.013885498046875, 0.03271484375, 0.0321044921875, -0.038726806640625, -0.01082611083984375, 0.032501220703125, 0.003368377685546875, 0.041473388671875, -0.0032367706298828125, -0.0222320556640625, -0.03033447265625, -0.0247802734375, -0.01485443115234375, -0.0504150390625, -0.07244873046875, 0.029022216796875, 0.036346435546875, -0.045379638671875, 0.031707763671875, 0.0433349609375, -0.0311737060546875, 0.0029697418212890625, -0.040924072265625, -0.0177154541015625, 0.00678253173828125, -0.0311431884765625, 0.040496826171875, 0.0308074951171875, -0.021942138671875, -0.02276611328125, 0.054931640625, 0.008575439453125, 0.0142059326171875, 0.0711669921875, -0.0258026123046875, -0.0269622802734375, 0.004547119140625, 0.0110626220703125, -0.049102783203125, 0.0236968994140625, -0.0011644363403320312, 0.01549530029296875, 0.00359344482421875, 0.01485443115234375, 0.009918212890625, 0.0258636474609375, -0.00018978118896484375, 0.0236663818359375, 0.0026874542236328125, -0.034637451171875, -0.01012420654296875, 0.03607177734375, -0.035125732421875, 0.02587890625, 0.0158843994140625, -0.0163116455078125, -0.0149688720703125, -0.0253143310546875, -0.01404571533203125, -0.0191192626953125, -0.0037078857421875, -0.004642486572265625, 0.0162200927734375, 0.018585205078125, 0.03985595703125, -0.021240234375, 0.015869140625, -0.0340576171875, 0.0251312255859375, 0.04876708984375, 0.00467681884765625, 0.010101318359375, 0.02789306640625, 0.0213470458984375, 0.0758056640625, -0.00621795654296875, -0.042022705078125, -0.01483917236328125, 0.0404052734375, -0.04608154296875, -0.051727294921875, -0.065185546875, 0.031280517578125, -0.02056884765625, -0.0063629150390625, -0.0169219970703125, -0.04052734375, 0.02801513671875, -0.0294036865234375, -0.0140228271484375, 0.02069091796875, 0.037994384765625, 0.056732177734375, -0.005397796630859375, -0.02191162109375, 0.009002685546875, 0.00909423828125, -0.0085296630859375, -0.030059814453125, 0.0205535888671875, 0.0015735626220703125, 0.039581298828125, 0.004413604736328125, -0.048553466796875, -0.0116729736328125, 0.01366424560546875, -0.06109619140625, 0.0634765625, -0.01172637939453125, 0.058837890625, 0.0200653076171875, 0.00048232078552246094, 0.0272674560546875, 0.02447509765625, -0.0750732421875, 0.036041259765625, 0.026885986328125, 0.0235595703125, -0.03570556640625, 0.0119781494140625, -0.0008144378662109375, -0.058929443359375, 0.006893157958984375, 0.004638671875, 0.02197265625, 0.01041412353515625, 0.00927734375, 0.0305633544921875, -0.01499176025390625, 0.038970947265625, -0.006595611572265625, 0.005146026611328125, 0.00783538818359375, 0.00678253173828125, -0.0300445556640625, -0.0123138427734375, -0.0233612060546875, 0.0299224853515625, -0.0207672119140625, 0.00489044189453125, -0.00665283203125, 0.01081085205078125, -0.006519317626953125, -0.022674560546875, -0.00789642333984375, -0.001667022705078125, 0.0113983154296875, 0.0145416259765625, -0.03094482421875, -0.00507354736328125, -0.00839996337890625, 0.0305938720703125, -0.030426025390625, 0.0322265625, 0.054534912109375, 0.030853271484375, -0.0146026611328125, 0.02008056640625, 0.0299224853515625, -0.034637451171875, -0.01064300537109375, 0.0233612060546875, 0.022979736328125, 0.00907135009765625, -0.035308837890625, -0.032806396484375, 0.06201171875, -0.06878662109375, -0.036651611328125, 0.000013113021850585938, 0.01995849609375, 0.03900146484375, 0.005817413330078125, -0.00258636474609375, 0.01073455810546875, -0.0192108154296875, 0.0015382766723632812, 0.0311126708984375, -0.05615234375, -0.0244140625, 0.0341796875, -0.034210205078125, 0.01149749755859375, -0.0562744140625, 0.005603790283203125, -0.023193359375, -0.010162353515625, 0.022247314453125, -0.0009059906005859375, -0.0034637451171875, -0.043121337890625, 0.034210205078125, 0.0296478271484375, -0.0174560546875, 0.0090789794921875, -0.0009102821350097656, -0.001800537109375, -0.04400634765625, 0.0025005340576171875, 0.0023250579833984375, -0.00974273681640625, -0.02520751953125, 0.0159759521484375, 0.033843994140625, -0.0226898193359375, -0.0031185150146484375, -0.0013532638549804688, -0.06378173828125, -0.018035888671875, 0.039276123046875, -0.019439697265625, 0.0016994476318359375, 0.01806640625, 0.0443115234375, -0.00936126708984375, 0.02337646484375, -0.0301361083984375, 0.0133514404296875, 0.0159912109375, -0.004497528076171875, 0.00921630859375, -0.006031036376953125, 0.037200927734375, 0.0298614501953125, 0.013519287109375, -0.0215606689453125, 0.00789642333984375, -0.025970458984375, 0.0035343170166015625, 0.01280975341796875, -0.014617919921875, -0.01441192626953125, -0.0692138671875, -0.0122528076171875, 0.02740478515625, 0.0180206298828125, -0.0123443603515625, -0.0390625, -0.024078369140625, 0.0167694091796875, -0.05499267578125, -0.0115814208984375, 0.004871368408203125, -0.0234375, 0.0162811279296875, 0.0015001296997070312, -0.0022563934326171875, -0.0205078125, 0.015960693359375, 0.01044464111328125, 0.0771484375, -0.0226287841796875, -0.073974609375, -0.025543212890625, -0.08978271484375, -0.0307464599609375, -0.00018644332885742188, 0.0035839080810546875, 0.01204681396484375, 0.07470703125, 0.0261993408203125, -0.024566650390625, 0.04376220703125, 0.033050537109375, -0.01386260986328125, 0.022430419921875, -0.0157470703125, -0.002826690673828125, 0.0272064208984375, -0.0021686553955078125, 0.00351715087890625, 0.01531219482421875, -0.0056915283203125, -0.0239715576171875, 0.016693115234375, 0.01039886474609375, 0.041748046875, -0.0158843994140625, -0.032196044921875, 0.036529541015625, 0.0274810791015625, -0.01299285888671875, -0.0291290283203125, -0.00185394287109375, -0.02020263671875, 0.059844970703125, 0.007320404052734375, -0.01552581787109375, -0.00007146596908569336, 0.042755126953125, 0.0087432861328125, -0.0110626220703125, -0.02020263671875, -0.01157379150390625, 0.02410888671875, 0.0015163421630859375, 0.006969451904296875, -0.0014257431030273438, 0.027923583984375, -0.0195770263671875, 0.004566192626953125, 0.005130767822265625, 0.011688232421875, -0.00884246826171875, 0.0032253265380859375, -0.047607421875, -0.0755615234375, 0.044525146484375, -0.0643310546875, -0.020233154296875, -0.046966552734375, -0.0101318359375, 0.0021152496337890625, 0.09136962890625, -0.0187835693359375, -0.0189361572265625, 0.0031871795654296875, 0.01285552978515625, -0.0379638671875, -0.022705078125, -0.034027099609375, -0.005184173583984375, -0.12548828125, 0.03582763671875, 0.0087738037109375, -0.04693603515625, 0.002960205078125, -0.0311279296875, -0.07135009765625, -0.052490234375, 0.031646728515625, -0.005901336669921875, 0.02532958984375, 0.0112457275390625, 0.019927978515625, -0.022430419921875, -0.0005064010620117188, -0.0090484619140625, -0.0244903564453125, -0.0015964508056640625, 0.01201629638671875, -0.0175323486328125, -0.0223388671875, 0.033172607421875, -0.006244659423828125, 0.037689208984375, 0.0156707763671875, -0.0307464599609375, 0.024261474609375, 0.011199951171875, -0.018768310546875, 0.0180511474609375, 0.0014362335205078125, -0.0250244140625, -0.034881591796875, -0.01447296142578125, -0.01415252685546875, 0.040557861328125, -0.002349853515625, 0.007045745849609375, 0.0031147003173828125, -0.0121307373046875, -0.00579833984375, 0.00798797607421875, -0.040191650390625, -0.02655029296875, -0.03192138671875, -0.01343536376953125, 0.0172271728515625, -0.018402099609375, 0.01297760009765625, -0.0055084228515625, -0.030853271484375, 0.0135955810546875, 0.061614990234375, 0.0288238525390625, -0.01206207275390625, -0.03961181640625, 0.00916290283203125, 0.02191162109375, 0.017608642578125, 0.0209808349609375, 0.00449371337890625, -0.0174713134765625, 0.02435302734375, 0.0087738037109375, 0.01459503173828125, 0.0201263427734375, 0.03839111328125, 0.00213623046875, -0.030609130859375, 0.0279541015625, 0.00205230712890625, -0.041839599609375, 0.0293426513671875, -0.00908660888671875, -0.069580078125, -0.0548095703125, 0.093994140625, -0.005817413330078125, 0.06219482421875, -0.07476806640625, -0.020843505859375, 0.00565338134765625, 0.029571533203125, 0.0277099609375, 0.00615692138671875, -0.0015249252319335938, -0.006229400634765625, -0.02166748046875, 0.0082550048828125, 0.004276275634765625, -0.0029087066650390625, -0.0235748291015625, 0.029144287109375, -0.013397216796875, -0.002094268798828125, 0.010223388671875, -0.005344390869140625, 0.0400390625, -0.0291290283203125, -0.0548095703125, 0.00492095947265625, -0.0192718505859375, 0.0123748779296875, 0.060516357421875, -0.0093536376953125, 0.00665283203125, 0.0136871337890625, 0.002155303955078125, -0.0073089599609375, -0.018890380859375, 0.0330810546875, -0.01543426513671875, -0.0103912353515625, 0.00968170166015625, -0.0254974365234375, 0.0044708251953125, 0.05023193359375, -0.0235443115234375, 0.02313232421875, -0.004894256591796875, -0.01166534423828125, -0.0047760009765625, 0.0250396728515625, 0.0216827392578125, -0.0012197494506835938, 0.01904296875, -0.018646240234375, 0.039093017578125, -0.0267333984375, -0.026153564453125, 0.0010118484497070312, 0.0255889892578125, -0.04278564453125, -0.01453399658203125, 0.04693603515625, 0.0153045654296875, -0.013031005859375, 0.0535888671875, -0.0187835693359375, -0.08087158203125, -0.0242462158203125, 0.00893402099609375, 0.039794921875, -0.038116455078125, -0.0302276611328125, 0.0026912689208984375, -0.0272064208984375, 0.02056884765625, -0.00386810302734375, -0.01457977294921875, 0.00998687744140625, 0.00153350830078125, -0.08734130859375, -0.0240936279296875, 0.035003662109375, -0.032379150390625, -0.016448974609375, -0.00803375244140625, -0.04638671875, 0.01186370849609375, -0.0172271728515625, 0.0184326171875, -0.027069091796875, -0.02484130859375, -0.0208892822265625, -0.00839996337890625, 0.08563232421875, 0.0518798828125, -0.07159423828125, 0.021209716796875, -0.037017822265625, 0.01483917236328125, -0.03131103515625, -0.0401611328125, -0.01187896728515625, -0.0188140869140625, -0.0098876953125, 0.016357421875, 0.00920867919921875, 0.0037631988525390625, -0.034912109375, -0.00833892822265625, -0.000553131103515625, -0.0101318359375, 0.02142333984375, -0.0105133056640625, -0.007419586181640625, 0.00595855712890625, 0.00513458251953125, -0.0293731689453125, -0.030975341796875, -0.02532958984375, 0.001522064208984375, -0.09124755859375, -0.0299072265625, 0.0015316009521484375, -0.05572509765625, 0.062103271484375, 0.047210693359375, 0.0080413818359375, 0.0401611328125, 0.0031147003173828125, 0.008758544921875, 0.0037364959716796875, -0.0207672119140625, -0.0181121826171875, 0.0176544189453125, 0.03857421875, -0.0160980224609375, 0.0159454345703125, 0.00955963134765625, 0.0098724365234375, 0.0017414093017578125, -0.0257110595703125, 0.005847930908203125, 0.0139312744140625, -0.0021209716796875, 0.01453399658203125, 0.057373046875, -0.0101470947265625, 0.03448486328125, 0.00836944580078125, 0.007762908935546875, 0.037017822265625, 0.00417327880859375, -0.0012645721435546875, -0.008697509765625, 0.0731201171875, -0.00153350830078125, -0.027191162109375, 0.053009033203125, -0.043609619140625, -0.044921875, 0.02081298828125, -0.0009407997131347656, -0.03094482421875, -0.00464630126953125, 0.0304718017578125, 0.02850341796875, -0.038665771484375, 0.031341552734375, -0.018035888671875, -0.0155487060546875, -0.076416015625, -0.0040435791015625, -0.03155517578125, -0.03692626953125, 0.0244140625, -0.021484375, -0.0194244384765625, 0.0452880859375, 0.017120361328125, -0.025482177734375, 0.0194091796875, 0.0029144287109375, 0.01253509521484375, -0.0355224609375, 0.0138397216796875, -0.0096893310546875, -0.00409698486328125, -0.0491943359375, 0.03839111328125, -0.00962066650390625, 0.0316162109375, 0.013031005859375, -0.0238800048828125, -0.0017805099487304688, 0.032806396484375, -0.031341552734375, 0.0215911865234375, 0.00461578369140625, -0.053466796875, -0.0286407470703125, -0.0112762451171875, 0.0006155967712402344, 0.02105712890625, -0.03857421875, 0.0240936279296875, -0.033538818359375, 0.01004791259765625, -0.0262298583984375, -0.057525634765625, 0.048004150390625, -0.0216064453125, -0.00853729248046875, 0.01751708984375, 0.032196044921875, -0.004474639892578125, 0.002994537353515625, 0.02752685546875, -0.038909912109375, -0.01119232177734375, 0.0232696533203125, 0.001018524169921875, -0.004703521728515625, 0.01861572265625, -0.037994384765625, 0.0750732421875, 0.0027923583984375, -0.00919342041015625, 0.01485443115234375, 0.0289459228515625, -0.0236053466796875, 0.0245819091796875, -0.038360595703125, 0.048370361328125, 0.0194549560546875, 0.027679443359375, -0.05511474609375, -0.019439697265625, -0.002086639404296875, 0.034881591796875, 0.0156707763671875, 0.00899505615234375, -0.0264892578125, 0.0034694671630859375, 0.03387451171875, 0.01490020751953125, -0.0061798095703125, 0.033935546875, 0.00473785400390625, 0.039764404296875, 0.04388427734375, -0.0298919677734375, 0.0274658203125, -0.0017175674438476562, -0.0070648193359375, 0.0435791015625, 0.0142822265625, 0.02349853515625, -0.02606201171875, -0.01346588134765625, -0.03192138671875, -0.015838623046875, 0.02191162109375, 0.0074462890625, -0.00971221923828125, 0.0091705322265625, 0.01189422607421875, -0.0535888671875, 0.05841064453125, -0.044586181640625, 0.044281005859375, -0.0176239013671875, 0.02874755859375, 0.01183319091796875, 0.01128387451171875, 0.07659912109375, -0.04766845703125, 0.0014390945434570312, 0.00789642333984375, -0.0158538818359375, 0.0208587646484375, 0.0048828125, 0.0229644775390625, -0.052154541015625, -0.0055084228515625, 0.061248779296875, 0.049957275390625, -0.032562255859375, -0.060546875, 0.007415771484375, -0.0023059844970703125, -0.004261016845703125, 0.0382080078125, 0.005840301513671875, 0.0740966796875, 0.0977783203125, -0.06256103515625, 0.005321502685546875, 0.042327880859375, 0.037628173828125, -0.0104522705078125, -0.0013303756713867188, -0.02850341796875, -0.03515625, -0.036102294921875, 0.004550933837890625, 0.014129638671875, 0.04840087890625, -0.0079345703125, 0.061431884765625, -0.0347900390625, -0.0159149169921875, -0.0115203857421875, 0.031951904296875, 0.015594482421875, 0.00453948974609375, -0.025146484375, -0.0192108154296875, 0.00724029541015625, 0.01509857177734375, 0.036895751953125, 0.0210418701171875, 0.03546142578125, 0.033111572265625, 0.0140380859375, 0.00930023193359375, 0.09033203125, 0.00567626953125, -0.0142669677734375, -0.0462646484375, 0.015594482421875, 0.038238525390625, 0.021514892578125, 0.000057756900787353516, -0.021759033203125, 0.07049560546875, -0.03179931640625, 0.022216796875, -0.0017490386962890625, -0.031524658203125, 0.033538818359375, -0.041961669921875, 0.05291748046875, -0.0148773193359375, -0.0694580078125, -0.0176544189453125, -0.06390380859375, -0.01424407958984375, 0.0306854248046875, 0.037841796875, 0.0246734619140625, -0.0062713623046875, -0.023895263671875, -0.04278564453125, -0.01209259033203125, 0.050811767578125, 0.0063934326171875, -0.0207061767578125, -0.01300048828125, -0.0279083251953125, -0.0177459716796875, 0.01611328125, 0.0203857421875, -0.0156402587890625, -0.0169677734375, 0.07672119140625, -0.0169525146484375, -0.0149993896484375, -0.0228729248046875, 0.044158935546875, -0.0726318359375, -0.0304412841796875, 0.03790283203125, -0.0321044921875, -0.008575439453125, 0.004123687744140625, -0.0218963623046875, 0.020721435546875, 0.052398681640625, -0.04913330078125, 0.04595947265625, -0.0032558441162109375, -0.00921630859375, -0.061553955078125, 0.055206298828125, -0.0157623291015625, -0.03546142578125, -0.039703369140625, -0.0225677490234375, 0.0340576171875, 0.04833984375, -0.0053863525390625, 0.0162200927734375, 0.007694244384765625, -0.05419921875, 0.04217529296875, -0.06683349609375, 0.07843017578125, 0.041778564453125, 0.0010919570922851562, -0.0024471282958984375, -0.0023136138916015625, -0.019256591796875, 0.005306243896484375, 0.01157379150390625, 0.00583648681640625, -0.005184173583984375, -0.01502227783203125, -0.006622314453125, -0.037567138671875, -0.0092315673828125, -0.037200927734375, -0.009857177734375, -0.0032806396484375, 0.0159149169921875, 0.0032444000244140625, -0.07769775390625, -0.0384521484375, -0.046539306640625, -0.01253509521484375, 0.025970458984375, -0.028106689453125, -0.0404052734375, -0.034576416015625, 0.0176239013671875, 0.06396484375, -0.006744384765625, -0.002288818359375, -0.004638671875, -0.040771484375, 0.03741455078125, 0.0215911865234375, -0.020050048828125, 0.019622802734375, 0.03106689453125, -0.0253753662109375, 0.0293731689453125, -0.007099151611328125, -0.04364013671875, 0.01885986328125, 0.004001617431640625, 0.01076507568359375, -0.0037517547607421875, -0.0244293212890625, 0.00537109375, 0.010101318359375, 0.050262451171875, 0.024810791015625, -0.025909423828125, -0.047882080078125, 0.01540374755859375, -0.012542724609375, -0.019683837890625, 0.0369873046875, -0.039642333984375, -0.05902099609375, 0.022796630859375, -0.0372314453125, -0.00989532470703125, -0.05426025390625, -0.10223388671875, 0.01560211181640625, 0.006435394287109375, -0.06048583984375, -0.044097900390625, -0.01053619384765625, -0.00010973215103149414, 0.004161834716796875, -0.0030956268310546875, -0.01763916015625, -0.0450439453125, 0.0257110595703125, 0.004024505615234375, 0.013641357421875, 0.0078125, 0.00457000732421875, -0.0616455078125, 0.0027179718017578125, -0.0113677978515625, -0.0143280029296875, 0.005428314208984375, -0.0010738372802734375, 0.00475311279296875, 0.0296630859375, -0.0248565673828125, -0.038238525390625, -0.00638580322265625, -0.03228759765625, 0.0188751220703125, -0.0245361328125, -0.042022705078125, -0.047576904296875, 0.07562255859375, -0.0210113525390625, 0.0231781005859375, 0.016632080078125, -0.040283203125, -0.01270294189453125, -0.01806640625, 0.01416015625, 0.03973388671875, -0.06787109375, 0.01629638671875, 0.0160980224609375, -0.01320648193359375, -0.010650634765625, -0.017547607421875, -0.039764404296875, 0.0015010833740234375, -0.0161590576171875, -0.007663726806640625, -0.0186309814453125, 0.0020160675048828125, -0.00331878662109375, -0.020416259765625, -0.04718017578125, -0.0223541259765625, 0.0111541748046875, -0.04315185546875, -0.02618408203125, -0.043212890625, 0.00653076171875, 0.021484375, -0.007595062255859375, 0.02899169921875, -0.01421356201171875, 0.06201171875, 0.0216064453125, -0.019073486328125, 0.0162200927734375, -0.005664825439453125, -0.002040863037109375, -0.00980377197265625, 0.072265625, 0.028839111328125, 0.0655517578125, -0.0011730194091796875, 0.07781982421875, 0.0009646415710449219, 0.02496337890625, -0.031463623046875, -0.0125732421875, -0.00177764892578125, -0.01548004150390625, 0.0009613037109375, -0.0125579833984375, 0.01364898681640625, -0.028106689453125, -0.0018148422241210938, -0.037200927734375, -0.01079559326171875, 0.0178680419921875 ]
b0fa40b264ddbced1bde91f41223ed1083d07ca8
Wordpress Stackexchange Q: How to remove the tag cloud from custom taxonomy admin page? When I register the taxonomy I have this which I thought might hide it: 'show_tagcloud' => false The default category page does not show a tag cloud so why does my custom taxonomy page, how do I disable it? register_taxonomy('gmc_region', 'recipe', array( 'labels' => array( 'name' => _x( 'Regions', 'taxonomy general name' ), 'singular_name' => _x( 'Region', 'taxonomy singular name' ), 'popular_items' => __( 'Popular Regions' ), 'search_items' => __( 'Search Regions' ), 'all_items' => __( 'All Regions' ), 'parent_item' => __( 'Parent Region' ), 'parent_item_colon' => __( 'Parent Region:' ), 'edit_item' => __( 'Edit Region' ), 'update_item' => __( 'Update Region' ), 'add_new_item' => __( 'Add New Region' ), 'new_item_name' => __( 'New Region Name' ), 'menu_name' => __( 'Regions' ), ), 'rewrite' => array( 'slug' => 'regions', 'with_front' => false ), 'show_in_nav_menus' => false, 'show_ui' => false, 'show_tagcloud' => false ) ); Thanks, Kevin A: A bit late but I just learned how to remove the taxonomy cloud. In your taxonomy label definition change this line 'popular_items' => __( 'Popular Regions' ), to this 'popular_items' => NULL, and the tag cloud will no longer appear
Q: How to remove the tag cloud from custom taxonomy admin page? When I register the taxonomy I have this which I thought might hide it: 'show_tagcloud' => false The default category page does not show a tag cloud so why does my custom taxonomy page, how do I disable it? register_taxonomy('gmc_region', 'recipe', array( 'labels' => array( 'name' => _x( 'Regions', 'taxonomy general name' ), 'singular_name' => _x( 'Region', 'taxonomy singular name' ), 'popular_items' => __( 'Popular Regions' ), 'search_items' => __( 'Search Regions' ), 'all_items' => __( 'All Regions' ), 'parent_item' => __( 'Parent Region' ), 'parent_item_colon' => __( 'Parent Region:' ), 'edit_item' => __( 'Edit Region' ), 'update_item' => __( 'Update Region' ), 'add_new_item' => __( 'Add New Region' ), 'new_item_name' => __( 'New Region Name' ), 'menu_name' => __( 'Regions' ), ), 'rewrite' => array( 'slug' => 'regions', 'with_front' => false ), 'show_in_nav_menus' => false, 'show_ui' => false, 'show_tagcloud' => false ) ); Thanks, Kevin A: A bit late but I just learned how to remove the taxonomy cloud. In your taxonomy label definition change this line 'popular_items' => __( 'Popular Regions' ), to this 'popular_items' => NULL, and the tag cloud will no longer appear
wordpress
{ "language": "en", "length": 199, "provenance": "stackexchange_00019.jsonl.gz:416292", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39566" }
[ 0.03936767578125, -0.0004935264587402344, -0.01165008544921875, -0.030303955078125, 0.0268096923828125, -0.026275634765625, 0.03668212890625, -0.01175689697265625, -0.03009033203125, 0.015716552734375, -0.0008234977722167969, -0.0234832763671875, -0.036651611328125, -0.03546142578125, -0.029815673828125, -0.046783447265625, 0.0286865234375, -0.0244598388671875, 0.03271484375, -0.0050811767578125, -0.01459503173828125, 0.0102081298828125, 0.044525146484375, 0.034423828125, 0.03533935546875, -0.0487060546875, -0.006114959716796875, -0.01074981689453125, -0.0213623046875, -0.035858154296875, 0.0154876708984375, 0.06719970703125, -0.010772705078125, 0.044921875, -0.0234527587890625, -0.0662841796875, -0.0007271766662597656, 0.01611328125, -0.01152801513671875, 0.0307464599609375, 0.0185546875, -0.0158233642578125, 0.003116607666015625, 0.005863189697265625, -0.0118408203125, -0.022491455078125, 0.00844573974609375, -0.038848876953125, 0.0145416259765625, -0.0074920654296875, 0.020050048828125, 0.0264434814453125, 0.0352783203125, -0.0222930908203125, -0.0090789794921875, -0.00287628173828125, -0.0015840530395507812, -0.0240020751953125, 0.0046844482421875, 0.004627227783203125, -0.005779266357421875, 0.01708984375, 0.013214111328125, -0.0008106231689453125, 0.0009927749633789062, 0.00641632080078125, 0.0225830078125, -0.0002467632293701172, -0.07537841796875, -0.0166778564453125, 0.037109375, -0.04052734375, 0.0052032470703125, 0.0179901123046875, -0.00922393798828125, -0.04852294921875, 0.00827789306640625, -0.0278472900390625, 0.032470703125, 0.01174163818359375, 0.0168304443359375, -0.0134124755859375, -0.003574371337890625, 0.006641387939453125, 0.00971221923828125, 0.054534912109375, -0.0025691986083984375, -0.0196533203125, -0.0170745849609375, -0.0179290771484375, -0.0094451904296875, -0.09564208984375, -0.00585174560546875, 0.03387451171875, -0.0012836456298828125, -0.0169219970703125, 0.0643310546875, 0.07086181640625, 0.003940582275390625, -0.032318115234375, 0.0313720703125, -0.0648193359375, -0.0113372802734375, -0.0195465087890625, 0.015106201171875, 0.05322265625, -0.01148223876953125, -0.0240020751953125, 0.042205810546875, 0.01151275634765625, 0.02728271484375, 0.0060882568359375, -0.036773681640625, -0.01256561279296875, -0.050140380859375, 0.02398681640625, -0.03680419921875, -0.04071044921875, -0.01702880859375, 0.0029144287109375, -0.0172119140625, 0.021270751953125, -0.04632568359375, 0.03045654296875, 0.02978515625, 0.0322265625, 0.004055023193359375, 0.00554656982421875, -0.04266357421875, -0.011932373046875, -0.037445068359375, 0.00438690185546875, 0.075439453125, 0.0919189453125, 0.04718017578125, -0.01477813720703125, 0.022796630859375, -0.039794921875, 0.01319122314453125, 0.00444793701171875, 0.047943115234375, -0.01349639892578125, -0.006877899169921875, 0.0294647216796875, 0.01129913330078125, 0.00811004638671875, 0.0217742919921875, 0.018280029296875, 0.0032215118408203125, -0.0220794677734375, 0.0002982616424560547, -0.0163726806640625, 0.0843505859375, 0.005382537841796875, -0.065185546875, 0.0041656494140625, 0.04986572265625, -0.025146484375, -0.08563232421875, -0.0653076171875, 0.0167999267578125, -0.0237579345703125, 0.005016326904296875, 0.027740478515625, -0.0106201171875, 0.043914794921875, -0.0018529891967773438, -0.00826263427734375, 0.0372314453125, -0.0655517578125, 0.048583984375, -0.017730712890625, 0.03216552734375, 0.019378662109375, 0.034149169921875, 0.039764404296875, 0.0139007568359375, 0.026824951171875, 0.0263671875, 0.00909423828125, -0.0089263916015625, -0.03839111328125, 0.0640869140625, -0.0274810791015625, -0.067138671875, -0.0025997161865234375, 0.0277557373046875, 0.046600341796875, 0.0173492431640625, 0.0293121337890625, 0.06884765625, 0.00389862060546875, -0.014007568359375, 0.0201416015625, 0.0318603515625, 0.0002663135528564453, -0.05413818359375, 0.00018918514251708984, 0.0007266998291015625, -0.02655029296875, -0.0220184326171875, 0.00803375244140625, -0.00936126708984375, -0.0109100341796875, -0.0185699462890625, -0.01287078857421875, -0.01508331298828125, 0.047271728515625, -0.0018854141235351562, 0.01214599609375, -0.00867462158203125, -0.04437255859375, -0.006500244140625, -0.00412750244140625, -0.015106201171875, -0.021728515625, -0.0169677734375, 0.01512908935546875, -0.0100250244140625, 0.01049041748046875, -0.01678466796875, -0.0230712890625, -0.00994873046875, 0.006031036376953125, 0.047882080078125, 0.0105743408203125, -0.0167083740234375, -0.0126953125, 0.02947998046875, 0.01387786865234375, -0.03741455078125, 0.03387451171875, 0.071044921875, -0.00496673583984375, -0.0305328369140625, 0.01018524169921875, -0.00171661376953125, -0.0916748046875, -0.0355224609375, 0.0775146484375, 0.007793426513671875, 0.0244140625, -0.0178985595703125, 0.02008056640625, 0.03558349609375, -0.03619384765625, -0.0121002197265625, 0.01517486572265625, -0.0253448486328125, -0.02154541015625, 0.0189056396484375, 0.01068115234375, 0.0173187255859375, 0.016082763671875, 0.0302276611328125, 0.016204833984375, -0.0260162353515625, -0.06634521484375, 0.058807373046875, -0.0287628173828125, 0.036895751953125, 0.006683349609375, -0.042999267578125, 0.022705078125, -0.00804901123046875, 0.0166015625, 0.0154571533203125, 0.0230255126953125, -0.012481689453125, -0.00592041015625, 0.0261688232421875, 0.004669189453125, -0.0265045166015625, 0.01751708984375, 0.05120849609375, -0.0268096923828125, -0.03662109375, 0.02581787109375, -0.033203125, -0.005931854248046875, -0.004558563232421875, 0.02484130859375, 0.007007598876953125, -0.0006742477416992188, -0.019439697265625, -0.060791015625, 0.0203094482421875, 0.024658203125, -0.045013427734375, -0.00539398193359375, -0.005626678466796875, 0.0843505859375, 0.00858306884765625, 0.0262603759765625, 0.00458526611328125, 0.036956787109375, -0.0213775634765625, -0.014739990234375, 0.017242431640625, -0.01392364501953125, 0.05462646484375, 0.06488037109375, 0.0224761962890625, 0.007244110107421875, 0.029571533203125, -0.0152740478515625, 0.04058837890625, 0.032745361328125, 0.01552581787109375, 0.011077880859375, -0.0216827392578125, 0.0201873779296875, 0.0216217041015625, -0.0382080078125, 0.014404296875, -0.03131103515625, -0.0161590576171875, -0.00875091552734375, -0.0716552734375, -0.007312774658203125, 0.037750244140625, 0.0076751708984375, -0.0067138671875, 0.02374267578125, -0.0032558441162109375, -0.0340576171875, 0.0237579345703125, -0.0125274658203125, 0.02978515625, -0.0494384765625, -0.0653076171875, -0.05804443359375, -0.06597900390625, -0.0263671875, 0.006988525390625, -0.01049041748046875, 0.0025482177734375, 0.08966064453125, 0.027618408203125, -0.0357666015625, 0.061004638671875, -0.01224517822265625, -0.01531982421875, 0.07073974609375, 0.00782012939453125, -0.01416778564453125, 0.031951904296875, 0.0133819580078125, -0.058349609375, 0.01190948486328125, -0.0007557868957519531, -0.035186767578125, 0.011749267578125, 0.01393890380859375, 0.01509857177734375, -0.00672149658203125, -0.01702880859375, 0.00875091552734375, 0.0012407302856445312, -0.031982421875, -0.049896240234375, -0.01349639892578125, -0.04559326171875, 0.06817626953125, 0.022247314453125, 0.0008826255798339844, -0.00823211669921875, 0.04150390625, 0.01142120361328125, 0.0016126632690429688, 0.0282745361328125, -0.0219268798828125, -0.00225830078125, -0.008819580078125, 0.003314971923828125, -0.025909423828125, 0.0784912109375, 0.00513458251953125, -0.0029048919677734375, 0.033416748046875, 0.0208740234375, 0.0042266845703125, 0.00440216064453125, -0.02203369140625, -0.017120361328125, 0.03900146484375, -0.031707763671875, -0.0225067138671875, 0.0023059844970703125, 0.010284423828125, -0.004161834716796875, 0.0229034423828125, -0.0144195556640625, -0.01032257080078125, -0.0021610260009765625, -0.0011615753173828125, 0.012969970703125, -0.0035266876220703125, -0.044586181640625, -0.0256500244140625, -0.1431884765625, 0.023468017578125, -0.0239410400390625, -0.038604736328125, -0.01007080078125, -0.01141357421875, -0.06280517578125, -0.07281494140625, 0.049346923828125, -0.04620361328125, -0.0026645660400390625, 0.03887939453125, -0.00286102294921875, -0.0155029296875, -0.043853759765625, -0.003253936767578125, -0.033660888671875, 0.007671356201171875, -0.02252197265625, -0.005855560302734375, -0.0162353515625, 0.0309906005859375, -0.0161285400390625, 0.023681640625, 0.059326171875, 0.036956787109375, 0.00652313232421875, -0.0279388427734375, 0.015716552734375, -0.0154266357421875, 0.0198516845703125, -0.0157928466796875, 0.003269195556640625, 0.005550384521484375, -0.045440673828125, -0.0002589225769042969, -0.00444793701171875, 0.01094818115234375, 0.05181884765625, -0.044769287109375, -0.08026123046875, -0.05340576171875, -0.06829833984375, -0.040496826171875, -0.04119873046875, -0.003124237060546875, -0.020751953125, -0.05645751953125, 0.03192138671875, 0.0125579833984375, -0.0362548828125, 0.0244293212890625, 0.04144287109375, 0.01410675048828125, -0.03094482421875, -0.044219970703125, 0.0118865966796875, 0.0264434814453125, 0.01036834716796875, 0.034576416015625, 0.01153564453125, -0.016571044921875, 0.04931640625, -0.0003237724304199219, 0.0119171142578125, -0.023895263671875, 0.07080078125, 0.0036067962646484375, -0.01483917236328125, 0.0163726806640625, -0.01215362548828125, -0.013824462890625, 0.027984619140625, 0.0200653076171875, -0.04730224609375, -0.037841796875, 0.049468994140625, 0.0271148681640625, -0.00984954833984375, -0.047210693359375, -0.033843994140625, 0.025543212890625, 0.043060302734375, -0.008453369140625, 0.000057637691497802734, 0.007110595703125, -0.0223541259765625, -0.04180908203125, -0.008331298828125, -0.03717041015625, -0.010589599609375, -0.044189453125, 0.0072021484375, -0.002613067626953125, -0.0045928955078125, -0.01334381103515625, 0.0158538818359375, 0.004169464111328125, -0.026947021484375, -0.052337646484375, -0.0223541259765625, -0.0020198822021484375, 0.0280303955078125, 0.045654296875, 0.0095672607421875, 0.029205322265625, 0.021453857421875, 0.0129241943359375, -0.00817108154296875, -0.00913238525390625, 0.01605224609375, -0.039215087890625, -0.01227569580078125, -0.0079345703125, -0.00818634033203125, 0.029205322265625, 0.0019178390502929688, -0.029388427734375, 0.01885986328125, -0.0005431175231933594, 0.00467681884765625, 0.01215362548828125, 0.0164031982421875, 0.0153045654296875, -0.019622802734375, 0.02923583984375, -0.038787841796875, 0.031890869140625, -0.01715087890625, -0.0293731689453125, 0.01439666748046875, 0.01387786865234375, -0.0094146728515625, -0.00940704345703125, 0.016632080078125, 0.00492095947265625, 0.01099395751953125, 0.03155517578125, -0.062225341796875, -0.06304931640625, -0.038055419921875, 0.005847930908203125, 0.050933837890625, -0.0596923828125, 0.00487518310546875, 0.0198974609375, 0.0015659332275390625, 0.03045654296875, -0.003570556640625, 0.003589630126953125, -0.0009784698486328125, 0.0007581710815429688, -0.035125732421875, -0.0030384063720703125, 0.0172271728515625, -0.045166015625, -0.0308685302734375, 0.0025043487548828125, -0.007049560546875, -0.003047943115234375, 0.003475189208984375, 0.03466796875, -0.00817108154296875, -0.036468505859375, -0.0198822021484375, 0.0114593505859375, 0.0185699462890625, -0.004009246826171875, -0.040374755859375, 0.00103759765625, -0.047271728515625, -0.01053619384765625, -0.03143310546875, -0.0469970703125, -0.01471710205078125, 0.0029621124267578125, 0.004497528076171875, 0.014404296875, 0.0008025169372558594, -0.019500732421875, 0.0004677772521972656, 0.00919342041015625, 0.001209259033203125, 0.021087646484375, -0.01082611083984375, 0.034576416015625, 0.0228271484375, 0.035980224609375, 0.008148193359375, -0.004695892333984375, -0.01538848876953125, -0.024017333984375, -0.017120361328125, -0.10406494140625, -0.0031185150146484375, 0.0239410400390625, -0.08245849609375, 0.039215087890625, 0.035308837890625, 0.013671875, 0.049560546875, 0.00301361083984375, 0.021636962890625, -0.01027679443359375, -0.036468505859375, -0.042694091796875, 0.004695892333984375, 0.035400390625, -0.0205230712890625, 0.022796630859375, 0.01371002197265625, 0.006313323974609375, 0.00714874267578125, -0.01325225830078125, 0.0186004638671875, -0.005992889404296875, -0.0251007080078125, 0.050506591796875, 0.0367431640625, -0.0132293701171875, 0.0191192626953125, 0.0100860595703125, -0.00815582275390625, -0.016632080078125, -0.0255126953125, -0.046112060546875, 0.009307861328125, 0.024810791015625, 0.00540924072265625, 0.006603240966796875, 0.053497314453125, 0.0017995834350585938, -0.036834716796875, 0.043914794921875, 0.005092620849609375, -0.03790283203125, -0.047271728515625, -0.0250396728515625, 0.01242828369140625, 0.006931304931640625, 0.008514404296875, -0.0160980224609375, -0.0255889892578125, -0.02301025390625, -0.0288238525390625, -0.03741455078125, -0.0193634033203125, 0.0089569091796875, -0.0177001953125, 0.002716064453125, 0.04315185546875, 0.0160980224609375, -0.03448486328125, 0.007232666015625, 0.0008912086486816406, -0.0149688720703125, -0.00893402099609375, 0.034454345703125, -0.029815673828125, -0.006099700927734375, -0.06439208984375, -0.01268768310546875, -0.0240478515625, -0.0191497802734375, 0.045806884765625, -0.0303802490234375, -0.0228271484375, 0.028900146484375, -0.042816162109375, 0.0312347412109375, -0.01641845703125, -0.05560302734375, -0.00371551513671875, -0.018890380859375, 0.0178680419921875, -0.01995849609375, -0.041717529296875, 0.01070404052734375, -0.03265380859375, -0.0290679931640625, 0.004863739013671875, -0.0094451904296875, 0.036712646484375, -0.0328369140625, -0.0158843994140625, 0.027252197265625, 0.0155487060546875, -0.002201080322265625, -0.0220184326171875, 0.050537109375, -0.03924560546875, -0.01107025146484375, -0.0028533935546875, -0.0159912109375, -0.047607421875, -0.049530029296875, -0.07220458984375, 0.1002197265625, -0.00015306472778320312, 0.036773681640625, 0.00521087646484375, 0.030609130859375, -0.0193023681640625, -0.00162506103515625, -0.0071258544921875, 0.020843505859375, 0.042266845703125, 0.035400390625, 0.0026073455810546875, -0.0067596435546875, 0.015594482421875, 0.031707763671875, 0.0256805419921875, 0.00830078125, -0.00623321533203125, -0.0021953582763671875, 0.03228759765625, 0.01275634765625, -0.0310821533203125, 0.0251312255859375, -0.0217742919921875, 0.02288818359375, -0.01715087890625, -0.0482177734375, 0.016143798828125, -0.043304443359375, -0.05072021484375, 0.01302337646484375, 0.0242156982421875, 0.046142578125, -0.0145263671875, 0.005802154541015625, 0.052215576171875, -0.0286712646484375, -0.00970458984375, -0.049530029296875, -0.005756378173828125, -0.0221099853515625, -0.01148223876953125, -0.051727294921875, -0.0084228515625, -0.017669677734375, 0.03271484375, 0.0019159317016601562, 0.039764404296875, -0.002777099609375, 0.0179901123046875, -0.0203399658203125, -0.0020160675048828125, 0.03802490234375, 0.050811767578125, -0.066650390625, 0.0152435302734375, -0.042572021484375, 0.00797271728515625, -0.07977294921875, 0.01355743408203125, 0.027801513671875, 0.033203125, -0.03656005859375, -0.0308837890625, 0.011199951171875, 0.0017528533935546875, -0.00798797607421875, 0.008331298828125, -0.0074462890625, 0.0032596588134765625, 0.0247650146484375, -0.025634765625, 0.005092620849609375, 0.022216796875, 0.05023193359375, 0.00616455078125, 0.02996826171875, -0.060699462890625, -0.03668212890625, -0.06536865234375, -0.00907135009765625, 0.0174713134765625, 0.093017578125, 0.058868408203125, 0.045989990234375, 0.0010328292846679688, -0.05535888671875, -0.0257720947265625, -0.0012540817260742188, 0.0013551712036132812, 0.0239105224609375, -0.05914306640625, 0.005435943603515625, 0.0287017822265625, 0.03277587890625, -0.00447845458984375, -0.03155517578125, 0.0188751220703125, 0.023162841796875, -0.0303192138671875, -0.02667236328125, 0.0111083984375, -0.015167236328125, -0.00829315185546875, -0.057464599609375, 0.02825927734375, 0.00934600830078125, 0.0148162841796875, -0.027923583984375, 0.00624847412109375, 0.043548583984375, -0.03607177734375, 0.005222320556640625, -0.001750946044921875, -0.066162109375, -0.0019664764404296875, -0.00923919677734375, 0.054595947265625, 0.01136016845703125, -0.041259765625, -0.0174102783203125, -0.03302001953125, -0.00959014892578125, 0.01384735107421875, 0.0264739990234375, -0.01520538330078125, 0.04510498046875, 0.0111083984375, 0.012298583984375, -0.0276031494140625, -0.01483154296875, 0.03369140625, -0.0005583763122558594, 0.005146026611328125, 0.02923583984375, 0.00966644287109375, 0.004840850830078125, 0.0479736328125, 0.012725830078125, -0.03485107421875, 0.054534912109375, -0.0177459716796875, -0.0114593505859375, -0.02392578125, 0.0157928466796875, -0.04302978515625, -0.03759765625, 0.03045654296875, -0.01898193359375, -0.0205230712890625, -0.0017766952514648438, -0.07012939453125, 0.0073699951171875, 0.051055908203125, -0.033935546875, 0.04217529296875, 0.0157012939453125, -0.0030841827392578125, -0.04840087890625, 0.007965087890625, -0.0176544189453125, -0.0537109375, -0.0207977294921875, 0.03289794921875, -0.0003364086151123047, 0.039306640625, -0.01255035400390625, -0.01264190673828125, 0.004199981689453125, -0.031707763671875, 0.033294677734375, -0.006679534912109375, 0.0440673828125, 0.0216217041015625, -0.01432037353515625, -0.0273284912109375, 0.02838134765625, -0.012908935546875, 0.0089874267578125, 0.0036144256591796875, 0.03253173828125, 0.0269775390625, -0.07708740234375, 0.032196044921875, 0.0190277099609375, -0.00722503662109375, -0.05804443359375, -0.01448822021484375, 0.047393798828125, -0.0068359375, -0.0016603469848632812, 0.01288604736328125, -0.014892578125, -0.023193359375, -0.007007598876953125, 0.033233642578125, -0.013763427734375, -0.0300445556640625, -0.0791015625, 0.028228759765625, 0.024078369140625, 0.004413604736328125, -0.04876708984375, 0.035919189453125, -0.032958984375, 0.046142578125, 0.00038170814514160156, 0.026275634765625, -0.0157623291015625, -0.0225677490234375, -0.00614166259765625, 0.004032135009765625, -0.03179931640625, 0.0235443115234375, 0.0153350830078125, -0.0016393661499023438, -0.00048232078552246094, -0.016571044921875, 0.0011272430419921875, -0.01432037353515625, -0.004444122314453125, 0.02886962890625, 0.002323150634765625, -0.0291900634765625, -0.0251312255859375, 0.003978729248046875, -0.00737762451171875, -0.00762176513671875, 0.0036487579345703125, -0.01904296875, -0.04705810546875, -0.035797119140625, 0.00960540771484375, 0.004589080810546875, -0.04150390625, -0.09979248046875, -0.00531005859375, -0.01172637939453125, -0.0386962890625, -0.017486572265625, -0.0035533905029296875, -0.0213623046875, 0.078125, 0.004146575927734375, 0.008575439453125, -0.0041351318359375, 0.02239990234375, 0.0298309326171875, 0.045440673828125, 0.024871826171875, 0.002071380615234375, -0.0210418701171875, 0.01105499267578125, 0.0024890899658203125, 0.037994384765625, -0.0022602081298828125, 0.004917144775390625, 0.00186920166015625, 0.0257415771484375, -0.02703857421875, -0.031646728515625, -0.00868988037109375, 0.003387451171875, 0.00786590576171875, -0.030670166015625, -0.0034351348876953125, -0.0297393798828125, 0.0211029052734375, 0.0024662017822265625, -0.00104522705078125, 0.00751495361328125, -0.091552734375, -0.064208984375, 0.0263214111328125, -0.0245208740234375, 0.024749755859375, -0.107421875, 0.02459716796875, 0.03448486328125, -0.004913330078125, -0.005855560302734375, -0.0267333984375, -0.04559326171875, -0.0301055908203125, -0.02874755859375, 0.0124664306640625, -0.054046630859375, 0.04913330078125, -0.08245849609375, 0.01322174072265625, -0.0221099853515625, -0.050079345703125, 0.003307342529296875, -0.06939697265625, -0.044586181640625, -0.050628662109375, -0.032318115234375, 0.002498626708984375, 0.053985595703125, -0.033294677734375, 0.042724609375, -0.049163818359375, 0.01251220703125, -0.0207977294921875, 0.004241943359375, 0.01505279541015625, 0.0164794921875, -0.04095458984375, 0.0173797607421875, 0.019622802734375, 0.01348876953125, -0.0357666015625, 0.032501220703125, -0.0178070068359375, 0.0232086181640625, -0.05145263671875, 0.01474761962890625, -0.001537322998046875, -0.0151519775390625, 0.0146484375, -0.026123046875, 0.033905029296875, -0.02349853515625, 0.0133819580078125, -0.051910400390625, -0.0103302001953125, 0.0243377685546875 ]
cbc1e31d3edae716047e7c5d9e41adcffe54e166
Wordpress Stackexchange Q: $post->ID and the_id() always return the wrong value I have a site where I display the same exact footer on every page. There is one exception, though. On one certain page I need to change one small part of the footer. I figure the simplest way to do this is to check, within the footer, whether I'm on that page or not. It wouldn't make sense to change the whole entire footer for that page since I'm only changing a tiny part of the footer, deep within the footer. The problem is that whenever I call $post->ID or the_id() from within the footer, it gives me an ID that clearly doesn't match the post I'm on. It always gives me 89, no matter what page I'm on in the site. I figure I must be doing something wrong. Can anyone tell me what it is? A: It sounds like you are altering the global $post data somewhere (usually another loop). Be sure to call wp_reset_postdata() after you are finished with something that sets up post data in an alternate loop.
Q: $post->ID and the_id() always return the wrong value I have a site where I display the same exact footer on every page. There is one exception, though. On one certain page I need to change one small part of the footer. I figure the simplest way to do this is to check, within the footer, whether I'm on that page or not. It wouldn't make sense to change the whole entire footer for that page since I'm only changing a tiny part of the footer, deep within the footer. The problem is that whenever I call $post->ID or the_id() from within the footer, it gives me an ID that clearly doesn't match the post I'm on. It always gives me 89, no matter what page I'm on in the site. I figure I must be doing something wrong. Can anyone tell me what it is? A: It sounds like you are altering the global $post data somewhere (usually another loop). Be sure to call wp_reset_postdata() after you are finished with something that sets up post data in an alternate loop. A: the_ID just echo the post , it doesn't return the ID, if you want the ID for the particular post , use <?php get_the_ID(); ?> A: It may be more reliable to test the status of $the_wp_query, which is the main query for the active page. The value of $post is simply whatever the last loop ended with, so you may have plugins affecting the value. A: Codex says (emphasis mine): Displays the numeric ID of the current post. This tag must be within The Loop. You try to use it in the footer, so failure is very well documented. Let me suggest this: write a small plugin with its own post ID array (class member or uniquely named global; should be an array in order to deal with pages containing multiple posts). Create a shortcode that adds the ID of the current post to this array. In the footer, you can read all IDs you need from it and you can be sure no one has tempered with them. A: My issue was I has assigning other values to the $post. I renamed $post to something else and it works.
wordpress
{ "language": "en", "length": 373, "provenance": "stackexchange_00019.jsonl.gz:416299", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39579" }
[ 0.023468017578125, 0.040924072265625, -0.0225830078125, 0.028411865234375, 0.05499267578125, -0.056671142578125, 0.0540771484375, -0.05712890625, 0.0399169921875, 0.011688232421875, -0.09747314453125, -0.0237579345703125, 0.0200653076171875, -0.0081787109375, -0.006023406982421875, -0.049560546875, 0.0321044921875, -0.0036945343017578125, 0.027618408203125, -0.021759033203125, -0.00289154052734375, -0.007450103759765625, 0.048248291015625, 0.06829833984375, 0.03045654296875, -0.04571533203125, 0.03814697265625, 0.0003027915954589844, 0.01397705078125, -0.0157318115234375, 0.0198211669921875, 0.001537322998046875, 0.0166473388671875, 0.0019588470458984375, -0.01342010498046875, -0.04058837890625, 0.023712158203125, -0.01468658447265625, 0.0005412101745605469, 0.0168304443359375, 0.0253143310546875, -0.0146331787109375, 0.014251708984375, -0.007610321044921875, -0.0197906494140625, -0.0231170654296875, 0.038726806640625, -0.017730712890625, 0.02685546875, 0.030548095703125, 0.00908660888671875, 0.019866943359375, -0.0008797645568847656, 0.0277099609375, -0.0140380859375, -0.0225982666015625, 0.01551055908203125, -0.01541900634765625, 0.03509521484375, -0.0188751220703125, -0.0377197265625, -0.00966644287109375, 0.0264129638671875, -0.028656005859375, -0.01068115234375, -0.00536346435546875, 0.018524169921875, 0.0014019012451171875, -0.040435791015625, -0.02166748046875, 0.042938232421875, -0.00673675537109375, 0.0003368854522705078, -0.006168365478515625, -0.01457977294921875, -0.037506103515625, 0.036285400390625, -0.0058746337890625, -0.0201568603515625, 0.00995635986328125, 0.00911712646484375, -0.01934814453125, -0.07952880859375, 0.018310546875, -0.028717041015625, 0.0234832763671875, -0.00713348388671875, -0.011566162109375, -0.055511474609375, -0.035003662109375, -0.0338134765625, -0.0274505615234375, -0.0259246826171875, -0.0361328125, -0.0362548828125, -0.006988525390625, 0.0303192138671875, 0.10302734375, -0.036285400390625, -0.00164031982421875, -0.01934814453125, -0.017822265625, -0.01172637939453125, -0.043914794921875, 0.0096435546875, 0.031890869140625, 0.019195556640625, -0.01561737060546875, 0.039794921875, 0.019927978515625, -0.0013942718505859375, 0.058807373046875, 0.0027370452880859375, -0.004669189453125, -0.034698486328125, -0.01336669921875, -0.038848876953125, -0.0166473388671875, -0.01198577880859375, -0.021087646484375, -0.0014066696166992188, 0.01337432861328125, 0.0219879150390625, 0.031005859375, -0.021148681640625, 0.0020122528076171875, -0.00228118896484375, -0.05133056640625, 0.0174407958984375, 0.013458251953125, -0.06719970703125, 0.00809478759765625, 0.1241455078125, 0.0037021636962890625, 0.01149749755859375, -0.03369140625, -0.01287841796875, -0.02032470703125, -0.0005445480346679688, 0.01532745361328125, -0.028076171875, -0.0308837890625, 0.032318115234375, -0.017852783203125, -0.024169921875, 0.060699462890625, 0.0249481201171875, -0.01995849609375, -0.022369384765625, -0.0806884765625, -0.022613525390625, -0.0195770263671875, 0.006378173828125, -0.0028629302978515625, 0.0284881591796875, -0.038055419921875, 0.0123291015625, -0.034423828125, 0.0237579345703125, -0.0186309814453125, 0.047271728515625, -0.0143585205078125, 0.006008148193359375, 0.00678253173828125, -0.0289764404296875, 0.0227813720703125, -0.08203125, -0.01323699951171875, 0.0226898193359375, 0.075439453125, 0.027099609375, 0.010528564453125, -0.03375244140625, -0.0204620361328125, -0.01076507568359375, -0.044952392578125, -0.0213470458984375, 0.0203857421875, 0.036346435546875, -0.0287933349609375, -0.043243408203125, -0.05975341796875, 0.0177459716796875, -0.011566162109375, -0.040313720703125, 0.0288543701171875, 0.0214385986328125, 0.031982421875, 0.0117034912109375, 0.00978851318359375, 0.0494384765625, 0.03564453125, -0.0672607421875, 0.034149169921875, 0.021942138671875, 0.021270751953125, -0.058746337890625, -0.0081634521484375, 0.012298583984375, -0.03399658203125, -0.0064697265625, -0.0026264190673828125, -0.010284423828125, 0.03582763671875, -0.037811279296875, 0.011962890625, -0.0082855224609375, 0.0242156982421875, -0.02490234375, 0.006839752197265625, 0.04473876953125, 0.0201416015625, -0.053497314453125, 0.004856109619140625, -0.0247344970703125, 0.0020599365234375, -0.061859130859375, -0.043914794921875, -0.03057861328125, 0.001338958740234375, -0.067626953125, 0.006908416748046875, -0.08349609375, -0.0203704833984375, 0.055938720703125, 0.0169677734375, -0.0188751220703125, -0.013458251953125, 0.036376953125, 0.004230499267578125, -0.0166168212890625, 0.052215576171875, 0.0022792816162109375, 0.032470703125, -0.007183074951171875, -0.01806640625, -0.00373077392578125, -0.08648681640625, 0.0198516845703125, 0.06396484375, 0.0255126953125, 0.00803375244140625, -0.0119476318359375, -0.0014047622680664062, 0.00412750244140625, -0.008331298828125, 0.02655029296875, -0.018707275390625, 0.03387451171875, 0.084228515625, 0.0180206298828125, -0.01204681396484375, 0.0055084228515625, -0.04339599609375, 0.0066986083984375, 0.0161895751953125, -0.019775390625, 0.0335693359375, -0.0164031982421875, 0.005046844482421875, -0.031829833984375, -0.0034503936767578125, 0.03631591796875, -0.0234375, 0.0010442733764648438, -0.00836181640625, 0.01200103759765625, -0.006076812744140625, -0.017425537109375, -0.004730224609375, 0.01419830322265625, -0.0153350830078125, 0.0210113525390625, 0.0010814666748046875, -0.04754638671875, 0.007717132568359375, -0.028411865234375, 0.0112457275390625, 0.027435302734375, -0.0190277099609375, 0.0008487701416015625, 0.03778076171875, -0.05712890625, -0.0229949951171875, -0.007465362548828125, -0.039459228515625, -0.03692626953125, 0.0073089599609375, -0.032470703125, -0.017120361328125, 0.00983428955078125, 0.0618896484375, -0.0328369140625, 0.06414794921875, -0.044708251953125, 0.008392333984375, 0.06341552734375, -0.01102447509765625, 0.014373779296875, -0.008056640625, 0.0259552001953125, 0.042236328125, 0.017303466796875, -0.010955810546875, -0.003002166748046875, 0.033294677734375, 0.024871826171875, -0.0013446807861328125, 0.0028858184814453125, 0.006683349609375, -0.041900634765625, 0.01285552978515625, 0.01580810546875, 0.08416748046875, -0.0187530517578125, -0.0653076171875, 0.00012958049774169922, 0.0295867919921875, -0.10772705078125, -0.1307373046875, 0.004421234130859375, -0.037109375, -0.046295166015625, -0.01532745361328125, -0.03033447265625, 0.0203857421875, -0.01038360595703125, -0.006916046142578125, 0.023773193359375, -0.030426025390625, -0.04461669921875, -0.0478515625, -0.06414794921875, -0.03302001953125, 0.0054931640625, 0.0105438232421875, 0.01090240478515625, 0.01168060302734375, 0.00283050537109375, -0.0374755859375, -0.004116058349609375, 0.034027099609375, -0.0321044921875, -0.0127105712890625, 0.0013303756713867188, -0.034515380859375, -0.0192718505859375, 0.0098114013671875, -0.04522705078125, -0.0185089111328125, 0.035491943359375, -0.033447265625, -0.003849029541015625, 0.0099029541015625, 0.0259857177734375, 0.02325439453125, -0.0077362060546875, 0.037261962890625, 0.0567626953125, -0.0199432373046875, -0.0279083251953125, -0.0052337646484375, -0.0330810546875, 0.0460205078125, 0.0396728515625, -0.034149169921875, -0.0186614990234375, 0.03369140625, 0.0193328857421875, -0.02313232421875, 0.035430908203125, -0.03680419921875, 0.0278167724609375, 0.0100860595703125, 0.029510498046875, -0.0266876220703125, -0.0282745361328125, -0.0275726318359375, -0.0330810546875, -0.038970947265625, 0.0224456787109375, 0.00970458984375, -0.0088043212890625, -0.0016603469848632812, -0.0256195068359375, 0.0233154296875, -0.01971435546875, 0.0237274169921875, -0.0150604248046875, -0.0266571044921875, 0.008575439453125, 0.0931396484375, -0.04425048828125, -0.0036563873291015625, -0.00548553466796875, 0.00212860107421875, -0.037628173828125, -0.047943115234375, -0.06298828125, 0.0032939910888671875, -0.02783203125, 0.023040771484375, 0.0128936767578125, 0.007579803466796875, -0.024017333984375, 0.09014892578125, -0.025909423828125, -0.0002639293670654297, 0.01248931884765625, -0.01555633544921875, -0.0211029052734375, 0.0159912109375, -0.0184326171875, 0.00113677978515625, 0.00598907470703125, -0.027374267578125, -0.0791015625, -0.0199737548828125, 0.0241851806640625, 0.038970947265625, -0.023773193359375, -0.0157623291015625, -0.004764556884765625, 0.037567138671875, -0.0018472671508789062, 0.01971435546875, -0.00902557373046875, 0.004924774169921875, 0.00461578369140625, 0.0029888153076171875, -0.014678955078125, -0.011688232421875, -0.0270843505859375, -0.0182647705078125, -0.019683837890625, 0.01395416259765625, -0.0240478515625, -0.010955810546875, 0.0096588134765625, -0.012542724609375, -0.08636474609375, -0.0159759521484375, -0.005615234375, -0.01544952392578125, -0.00568389892578125, -0.00490570068359375, 0.0043792724609375, -0.0718994140625, 0.043975830078125, 0.034912109375, -0.0222320556640625, -0.00316619873046875, 0.0447998046875, 0.019195556640625, -0.042083740234375, -0.041015625, 0.0131072998046875, 0.052490234375, -0.029266357421875, 0.04913330078125, 0.041961669921875, -0.0271759033203125, 0.0631103515625, 0.0204925537109375, 0.0023670196533203125, -0.018707275390625, 0.08563232421875, -0.00948333740234375, -0.018035888671875, 0.020843505859375, -0.030731201171875, -0.0120391845703125, -0.0017604827880859375, -0.0250701904296875, -0.004665374755859375, -0.00809478759765625, 0.0223236083984375, -0.002529144287109375, 0.0254058837890625, -0.037322998046875, -0.006053924560546875, 0.0164794921875, 0.01294708251953125, 0.0260009765625, 0.0222015380859375, 0.01116180419921875, -0.005138397216796875, 0.0145721435546875, 0.017303466796875, 0.0217132568359375, 0.03961181640625, 0.0234832763671875, 0.04888916015625, 0.0242767333984375, 0.0260772705078125, -0.037078857421875, -0.018646240234375, 0.054534912109375, 0.0179443359375, -0.04144287109375, 0.06317138671875, -0.0163116455078125, -0.0008478164672851562, 0.006134033203125, -0.01371002197265625, 0.023468017578125, -0.01479339599609375, 0.0024356842041015625, 0.023681640625, -0.017303466796875, -0.036041259765625, -0.0247955322265625, 0.0168609619140625, 0.015716552734375, -0.01708984375, 0.015350341796875, 0.036285400390625, 0.0198822021484375, 0.004425048828125, -0.031585693359375, 0.01313018798828125, -0.0190582275390625, 0.05816650390625, 0.025909423828125, -0.0227203369140625, -0.0165252685546875, 0.054840087890625, -0.022705078125, -0.034881591796875, 0.007144927978515625, 0.02899169921875, 0.0477294921875, 0.016265869140625, -0.016265869140625, 0.006061553955078125, -0.0274505615234375, 0.020050048828125, 0.0517578125, -0.034271240234375, -0.07568359375, -0.0224609375, 0.0252838134765625, 0.04852294921875, -0.06768798828125, 0.01425933837890625, -0.055999755859375, -0.027587890625, -0.01824951171875, -0.0288543701171875, -0.023162841796875, -0.0005283355712890625, -0.0128936767578125, -0.005016326904296875, -0.030609130859375, -0.04248046875, 0.0167999267578125, -0.0157470703125, 0.0040130615234375, 0.01259613037109375, 0.0179290771484375, -0.0005221366882324219, 0.0645751953125, -0.020721435546875, -0.046142578125, -0.01447296142578125, 0.017181396484375, 0.025665283203125, 0.02947998046875, -0.032562255859375, 0.0134429931640625, -0.0254364013671875, 0.0107421875, 0.004177093505859375, -0.0556640625, -0.0168304443359375, -0.017242431640625, 0.01021575927734375, 0.036712646484375, -0.0506591796875, -0.057373046875, 0.00589752197265625, -0.003948211669921875, -0.007343292236328125, 0.0625, -0.019805908203125, -0.0020389556884765625, -0.005573272705078125, 0.0103607177734375, -0.0328369140625, -0.0230255126953125, 0.02496337890625, -0.01016998291015625, 0.001323699951171875, -0.0145263671875, -0.00514984130859375, -0.0072479248046875, 0.043212890625, -0.01605224609375, 0.012542724609375, 0.00058746337890625, -0.0033893585205078125, -0.00662994384765625, 0.0091705322265625, -0.0260162353515625, 0.0255889892578125, -0.01418304443359375, -0.02984619140625, 0.026641845703125, -0.043487548828125, -0.05096435546875, 0.060211181640625, 0.048675537109375, -0.0318603515625, -0.006397247314453125, -0.03643798828125, 0.00214385986328125, -0.00397491455078125, 0.0014486312866210938, 0.06036376953125, 0.031341552734375, 0.04620361328125, 0.00836181640625, 0.034088134765625, 0.03143310546875, 0.033111572265625, -0.0228729248046875, -0.023651123046875, 0.030609130859375, 0.0037136077880859375, -0.017730712890625, 0.0025997161865234375, -0.02825927734375, 0.0021610260009765625, 0.0166473388671875, 0.0034160614013671875, -0.0643310546875, 0.021026611328125, -0.01097869873046875, 0.00632476806640625, 0.0165557861328125, -0.0006418228149414062, -0.01316070556640625, -0.00946044921875, 0.00614166259765625, 0.007434844970703125, -0.026458740234375, 0.0006318092346191406, 0.0075531005859375, -0.00916290283203125, -0.0311431884765625, 0.0150909423828125, 0.005306243896484375, 0.002803802490234375, 0.0026683807373046875, 0.002376556396484375, 0.00954437255859375, -0.040191650390625, -0.038848876953125, -0.0045623779296875, -0.036865234375, -0.06280517578125, -0.02447509765625, -0.0294189453125, 0.027313232421875, 0.023895263671875, 0.0158233642578125, 0.026580810546875, 0.0293121337890625, -0.003143310546875, 0.0085296630859375, -0.00807952880859375, 0.0035457611083984375, -0.019439697265625, -0.0274200439453125, -0.0006995201110839844, 0.030303955078125, -0.0088653564453125, 0.0195465087890625, -0.003879547119140625, -0.037872314453125, -0.006969451904296875, -0.040313720703125, 0.0699462890625, -0.07806396484375, 0.0037097930908203125, 0.007049560546875, 0.005634307861328125, 0.0013713836669921875, -0.0017309188842773438, 0.0303192138671875, -0.024139404296875, 0.015899658203125, 0.00762176513671875, 0.006755828857421875, -0.0165863037109375, -0.00574493408203125, -0.04925537109375, 0.1015625, 0.04400634765625, -0.01531982421875, -0.0292816162109375, 0.0494384765625, -0.0205535888671875, 0.0369873046875, -0.036376953125, 0.028717041015625, -0.016845703125, 0.04949951171875, -0.032562255859375, -0.017486572265625, 0.012542724609375, 0.04608154296875, 0.06884765625, 0.0102081298828125, -0.007068634033203125, 0.00856781005859375, 0.0650634765625, 0.05059814453125, 0.01285552978515625, 0.01396942138671875, 0.01312255859375, 0.053070068359375, 0.050445556640625, -0.067138671875, 0.01641845703125, -0.036346435546875, 0.0266876220703125, 0.034088134765625, 0.00986480712890625, 0.000025093555450439453, 0.01447296142578125, 0.00516510009765625, -0.027099609375, -0.00009673833847045898, 0.00753021240234375, -0.0125885009765625, 0.051910400390625, 0.033294677734375, 0.067138671875, -0.060821533203125, -0.036407470703125, -0.0229949951171875, 0.06036376953125, 0.0010232925415039062, 0.024261474609375, -0.019805908203125, -0.006359100341796875, 0.0853271484375, 0.01184844970703125, -0.0005221366882324219, 0.0367431640625, 0.0002593994140625, 0.024566650390625, 0.0325927734375, 0.0207061767578125, -0.042938232421875, 0.0279388427734375, 0.047576904296875, 0.036407470703125, -0.0628662109375, -0.003810882568359375, 0.01119232177734375, -0.0225372314453125, 0.0006265640258789062, -0.046875, 0.00940704345703125, -0.02130126953125, -0.048095703125, -0.049224853515625, -0.0087738037109375, 0.050048828125, 0.04400634765625, 0.004840850830078125, -0.01224517822265625, -0.054931640625, -0.03387451171875, -0.041595458984375, 0.053955078125, 0.039306640625, 0.023345947265625, -0.027374267578125, 0.050506591796875, -0.004070281982421875, 0.01522064208984375, -0.0031070709228515625, 0.06854248046875, -0.0208892822265625, 0.0248870849609375, -0.045440673828125, -0.0587158203125, -0.00801849365234375, 0.036773681640625, -0.0186920166015625, 0.035247802734375, 0.0256500244140625, 0.0207672119140625, -0.0286407470703125, -0.01288604736328125, 0.01544189453125, -0.0345458984375, -0.03253173828125, -0.005458831787109375, -0.0340576171875, 0.004192352294921875, -0.0108642578125, 0.013916015625, 0.035858154296875, -0.00601959228515625, 0.060089111328125, -0.0018367767333984375, 0.029296875, -0.0189208984375, -0.01190948486328125, 0.06732177734375, 0.032684326171875, 0.09478759765625, -0.0382080078125, 0.0031147003173828125, -0.00543212890625, -0.07550048828125, 0.00540924072265625, 0.03619384765625, -0.01739501953125, 0.008819580078125, 0.014984130859375, 0.0006155967712402344, -0.0038166046142578125, -0.00960540771484375, 0.019439697265625, 0.059295654296875, 0.00975799560546875, 0.041961669921875, -0.003993988037109375, 0.007701873779296875, 0.0364990234375, -0.00551605224609375, 0.0003364086151123047, 0.033233642578125, 0.0240936279296875, -0.002780914306640625, -0.0312042236328125, 0.05279541015625, -0.06854248046875, -0.0160064697265625, 0.040924072265625, 0.00045037269592285156, 0.00748443603515625, 0.004703521728515625, -0.045379638671875, 0.032501220703125, 0.0269317626953125, 0.0090789794921875, 0.04620361328125, -0.04443359375, 0.0108489990234375, -0.00836944580078125, 0.0179290771484375, -0.007701873779296875, -0.0008020401000976562, -0.0133819580078125, 0.0015048980712890625, 0.059783935546875, 0.050018310546875, -0.02410888671875, 0.0244140625, -0.0024585723876953125, -0.034149169921875, 0.0187225341796875, -0.03094482421875, 0.0150909423828125, 0.035797119140625, 0.01171112060546875, -0.01032257080078125, -0.0274658203125, -0.01708984375, -0.0145263671875, 0.024566650390625, -0.017791748046875, 0.0045013427734375, -0.0246429443359375, 0.0168914794921875, 0.0302734375, 0.0469970703125, -0.0052947998046875, 0.017364501953125, 0.0261688232421875, -0.0016260147094726562, -0.0016040802001953125, -0.01065826416015625, 0.01161956787109375, 0.00077056884765625, -0.0243377685546875, 0.002044677734375, 0.01009368896484375, 0.01224517822265625, 0.0216827392578125, -0.004589080810546875, -0.007480621337890625, 0.01059722900390625, -0.017974853515625, 0.003795623779296875, 0.006893157958984375, 0.029388427734375, -0.028717041015625, 0.01540374755859375, 0.01332855224609375, 0.035064697265625, -0.04010009765625, 0.0197906494140625, -0.0074310302734375, -0.01320648193359375, 0.009918212890625, -0.0056304931640625, 0.01824951171875, -0.015411376953125, -0.080078125, 0.0197601318359375, -0.0004940032958984375, 0.049560546875, 0.007354736328125, -0.03277587890625, -0.0011243820190429688, 0.0157623291015625, 0.0007781982421875, -0.040863037109375, 0.0171356201171875, -0.061065673828125, 0.0028667449951171875, 0.0125274658203125, 0.0080108642578125, 0.032470703125, -0.0063629150390625, -0.0279388427734375, 0.033447265625, 0.00823211669921875, -0.0232086181640625, -0.00868988037109375, -0.034881591796875, -0.0080413818359375, 0.0312042236328125, 0.007572174072265625, -0.0313720703125, -0.054351806640625, 0.0191497802734375, 0.0248870849609375, 0.01438140869140625, 0.055694580078125, 0.00350189208984375, -0.029937744140625, -0.0005235671997070312, -0.0251922607421875, 0.0242767333984375, 0.012054443359375, -0.01259613037109375, 0.006847381591796875, 0.01149749755859375, -0.049713134765625, 0.0135498046875, 0.008636474609375, 0.0248260498046875, -0.00762176513671875, -0.034820556640625, -0.03424072265625, -0.024993896484375, 0.060791015625, 0.037139892578125, 0.01373291015625, -0.025146484375, 0.00156402587890625, 0.004974365234375, -0.0223236083984375, -0.01425933837890625, 0.006793975830078125, -0.0460205078125, -0.01340484619140625, -0.0169677734375, -0.0265655517578125, -0.00823211669921875, -0.025299072265625, -0.038116455078125, -0.005035400390625, -0.01456451416015625, 0.00347900390625, 0.00350189208984375, -0.042633056640625, 0.00023627281188964844, -0.0101776123046875, -0.01293182373046875, -0.016998291015625, 0.036224365234375, -0.01300048828125, -0.0004935264587402344, 0.0282440185546875, 0.032135009765625, -0.06170654296875, 0.017608642578125, 0.0005898475646972656, -0.003387451171875, -0.0543212890625, -0.0132904052734375, -0.007114410400390625, 0.0070953369140625, -0.019012451171875, 0.00821685791015625, 0.06475830078125, -0.0052947998046875, -0.01043701171875, 0.05438232421875, 0.018096923828125, 0.09130859375, 0.00888824462890625, 0.0635986328125, -0.026275634765625, -0.027801513671875, -0.0308074951171875, -0.0256195068359375, -0.02740478515625, 0.03179931640625, -0.0145111083984375, -0.03802490234375, 0.0032367706298828125, -0.0077972412109375, 0.0104827880859375, -0.0010576248168945312 ]
793905a198b5b0e6db6782c24612ff56f28981ea
Wordpress Stackexchange Q: Delete all scheduled events with a particular hook I have several cron jobs all hooked to the same hook, but each with a different argument (a post ID). It appears wp_clear_scheduled_hook only clears job which match the argument passed with it (or jobs without any arguments, if no argument is provided). Is there a way to delete all the cron jobs associated with a hook, regardless of the argument that job has? (Without doing so 'manually' by looping through the IDs). Seems an answer was deleted! To clarify what I would like to achieve: each post has an expiration date - and I would like to delete the post after this date. (An alternative option is to have one cron job - repeating every 24 hours that deletes any expired posts). However, I decided to create a one-off job for each post - but it seems you can't delete all the jobs at once without cycling through them. A: 4.9.0 introduced wp_unschedule_hook() https://developer.wordpress.org/reference/functions/wp_unschedule_hook/
Q: Delete all scheduled events with a particular hook I have several cron jobs all hooked to the same hook, but each with a different argument (a post ID). It appears wp_clear_scheduled_hook only clears job which match the argument passed with it (or jobs without any arguments, if no argument is provided). Is there a way to delete all the cron jobs associated with a hook, regardless of the argument that job has? (Without doing so 'manually' by looping through the IDs). Seems an answer was deleted! To clarify what I would like to achieve: each post has an expiration date - and I would like to delete the post after this date. (An alternative option is to have one cron job - repeating every 24 hours that deletes any expired posts). However, I decided to create a one-off job for each post - but it seems you can't delete all the jobs at once without cycling through them. A: 4.9.0 introduced wp_unschedule_hook() https://developer.wordpress.org/reference/functions/wp_unschedule_hook/ A: I have just quickly wrote the below function, it will clear all crons for the specified hook, irrespective of the cron time and the hook argument. NOTE: I have NOT TESTED the function, so please don't run it on your live site. function wpse39681_clear_all_crons( $hook ) { $crons = _get_cron_array(); if ( empty( $crons ) ) { return; } foreach( $crons as $timestamp => $cron ) { if ( ! empty( $cron[$hook] ) ) { unset( $crons[$timestamp][$hook] ); } if ( empty( $crons[$timestamp] ) ) { unset( $crons[$timestamp] ); } } _set_cron_array( $crons ); } Related: http://core.trac.wordpress.org/ticket/18997
wordpress
{ "language": "en", "length": 262, "provenance": "stackexchange_00019.jsonl.gz:416335", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39681" }
[ 0.04071044921875, 0.0273895263671875, -0.039337158203125, -0.0236968994140625, 0.043731689453125, -0.05694580078125, 0.03094482421875, -0.016143798828125, 0.00173187255859375, 0.0159759521484375, 0.0009121894836425781, -0.0019626617431640625, 0.0277557373046875, -0.041961669921875, 0.01483917236328125, -0.006198883056640625, 0.045074462890625, -0.04779052734375, -0.01548004150390625, -0.039703369140625, 0.0035648345947265625, 0.0056304931640625, 0.02252197265625, 0.1005859375, 0.01312255859375, -0.0040740966796875, 0.00611114501953125, -0.0099639892578125, 0.004047393798828125, -0.005947113037109375, 0.006786346435546875, -0.01490020751953125, 0.00505828857421875, 0.027984619140625, -0.00919342041015625, 0.00022721290588378906, -0.0139312744140625, 0.02471923828125, 0.0206756591796875, 0.0033435821533203125, 0.026092529296875, -0.00989532470703125, 0.005306243896484375, 0.002033233642578125, -0.005641937255859375, -0.005901336669921875, 0.0276031494140625, -0.027740478515625, 0.0129547119140625, -0.0019779205322265625, 0.033935546875, -0.0117950439453125, 0.052398681640625, 0.0116729736328125, -0.0250396728515625, -0.00496673583984375, -0.033966064453125, 0.0270538330078125, 0.029205322265625, 0.04180908203125, -0.0119476318359375, -0.0038738250732421875, -0.00922393798828125, -0.049530029296875, 0.02691650390625, -0.006969451904296875, 0.004940032958984375, 0.0172119140625, -0.05889892578125, 0.022369384765625, 0.0477294921875, -0.03961181640625, -0.032989501953125, 0.01064300537109375, -0.003948211669921875, -0.032135009765625, 0.0283355712890625, -0.020843505859375, -0.011993408203125, 0.049163818359375, 0.03759765625, -0.021575927734375, -0.0211029052734375, 0.040496826171875, -0.022674560546875, 0.011077880859375, 0.004680633544921875, -0.00618743896484375, -0.05059814453125, -0.025482177734375, -0.03515625, -0.0159149169921875, -0.041961669921875, -0.030548095703125, -0.0197296142578125, -0.01561737060546875, 0.023712158203125, 0.039642333984375, -0.0246124267578125, -0.03570556640625, 0.00196075439453125, -0.0150146484375, -0.05108642578125, -0.009979248046875, -0.0020008087158203125, 0.06585693359375, 0.034393310546875, 0.0296173095703125, 0.01004791259765625, 0.017486572265625, 0.00334930419921875, -0.022552490234375, 0.004180908203125, -0.00043463706970214844, -0.0194854736328125, -0.0118408203125, -0.0275115966796875, 0.050323486328125, -0.005260467529296875, 0.02703857421875, -0.01335906982421875, 0.006145477294921875, -0.032012939453125, -0.01003265380859375, 0.022705078125, -0.01456451416015625, -0.00882720947265625, 0.01380157470703125, -0.0121917724609375, 0.005954742431640625, -0.0277252197265625, 0.0079498291015625, 0.0584716796875, 0.0229339599609375, 0.01261138916015625, -0.0165863037109375, 0.0156707763671875, -0.047088623046875, -0.00705718994140625, 0.01117706298828125, 0.0221710205078125, -0.0306396484375, -0.033233642578125, 0.012603759765625, 0.06439208984375, 0.01444244384765625, -0.00807952880859375, -0.006404876708984375, 0.053192138671875, 0.037933349609375, -0.038330078125, -0.01198577880859375, 0.031494140625, 0.021575927734375, 0.0204010009765625, -0.0369873046875, 0.1041259765625, -0.08172607421875, 0.01227569580078125, -0.07470703125, -0.00867462158203125, -0.0240936279296875, 0.0110626220703125, -0.042266845703125, -0.05426025390625, 0.02587890625, -0.036468505859375, -0.014984130859375, 0.025726318359375, -0.050445556640625, 0.0283203125, -0.0208740234375, 0.0223541259765625, 0.0032806396484375, 0.006641387939453125, 0.03143310546875, 0.0127105712890625, -0.001766204833984375, 0.036773681640625, -0.01214599609375, -0.04638671875, -0.045745849609375, 0.035736083984375, -0.038787841796875, -0.08905029296875, -0.0131683349609375, 0.023773193359375, 0.088134765625, 0.044342041015625, 0.02178955078125, 0.064453125, -0.046112060546875, -0.00927734375, 0.0005097389221191406, 0.01241302490234375, -0.003009796142578125, -0.05670166015625, -0.0151214599609375, -0.006702423095703125, -0.0051727294921875, 0.033416748046875, 0.04730224609375, -0.02496337890625, -0.017303466796875, -0.12066650390625, 0.0499267578125, -0.03948974609375, 0.059906005859375, -0.032073974609375, 0.0027484893798828125, 0.028656005859375, 0.014404296875, -0.034149169921875, -0.040496826171875, -0.021270751953125, 0.0179443359375, 0.0135345458984375, 0.041748046875, -0.01568603515625, 0.05609130859375, -0.00988006591796875, -0.052581787109375, -0.0202484130859375, 0.0187530517578125, 0.05377197265625, 0.0041961669921875, -0.0084228515625, -0.01947021484375, 0.038787841796875, 0.0033893585205078125, -0.0296173095703125, 0.0205078125, 0.0170135498046875, 0.0694580078125, 0.0008754730224609375, 0.01546478271484375, 0.04156494140625, 0.0038013458251953125, -0.00392913818359375, -0.0010156631469726562, 0.0180816650390625, 0.05804443359375, -0.021728515625, -0.008514404296875, 0.02935791015625, -0.0246734619140625, 0.0136566162109375, -0.0170745849609375, -0.0234832763671875, 0.0080108642578125, 0.0120849609375, 0.01174163818359375, 0.002704620361328125, -0.0034923553466796875, -0.01416778564453125, 0.01849365234375, 0.0276947021484375, -0.004425048828125, -0.022125244140625, 0.00010251998901367188, 0.0255279541015625, -0.04205322265625, -0.0745849609375, -0.0019178390502929688, 0.01227569580078125, -0.0347900390625, -0.006099700927734375, -0.0101318359375, -0.0086822509765625, -0.0297088623046875, 0.041290283203125, -0.01413726806640625, -0.013092041015625, 0.034332275390625, 0.0218353271484375, 0.02740478515625, -0.03741455078125, -0.0001239776611328125, -0.01088714599609375, 0.021636962890625, -0.006565093994140625, 0.049407958984375, 0.01192474365234375, -0.022186279296875, -0.044586181640625, -0.0161895751953125, 0.0194854736328125, 0.004039764404296875, 0.0108642578125, -0.0137786865234375, 0.0092620849609375, 0.0310211181640625, -0.022064208984375, 0.039276123046875, 0.005786895751953125, -0.023834228515625, -0.0462646484375, -0.029205322265625, 0.0408935546875, -0.0462646484375, -0.032196044921875, 0.05078125, 0.0070648193359375, 0.0015115737915039062, 0.00885772705078125, 0.01186370849609375, 0.0282745361328125, 0.0148162841796875, 0.009613037109375, 0.016326904296875, -0.06170654296875, -0.014617919921875, 0.03387451171875, 0.12139892578125, -0.036773681640625, -0.039276123046875, 0.00942230224609375, 0.043792724609375, -0.0282745361328125, -0.0679931640625, -0.01239013671875, 0.030059814453125, 0.0077972412109375, -0.019073486328125, 0.02801513671875, -0.00042891502380371094, -0.04193115234375, -0.005462646484375, -0.0438232421875, 0.03704833984375, 0.0057220458984375, 0.0237579345703125, -0.01244354248046875, 0.023834228515625, -0.010284423828125, 0.017242431640625, 0.0121612548828125, 0.104736328125, 0.0140228271484375, -0.0694580078125, -0.00627899169921875, 0.0278778076171875, -0.048553466796875, 0.0054473876953125, -0.011810302734375, 0.00274658203125, 0.02569580078125, -0.0037250518798828125, 0.0016679763793945312, 0.049072265625, -0.033447265625, -0.0127716064453125, -0.017059326171875, -0.0201568603515625, 0.016143798828125, 0.0389404296875, 0.0071563720703125, -0.02935791015625, 0.051055908203125, -0.041778564453125, 0.03778076171875, -0.0301513671875, 0.00013840198516845703, 0.0010671615600585938, 0.00592803955078125, -0.0186767578125, -0.00939178466796875, -0.01739501953125, 0.004665374755859375, 0.015716552734375, 0.006061553955078125, 0.0247802734375, -0.01340484619140625, -0.0138092041015625, -0.01389312744140625, -0.00605010986328125, 0.0289306640625, -0.0048980712890625, 0.01309967041015625, 0.00360870361328125, -0.00908660888671875, -0.032470703125, -0.01137542724609375, -0.07379150390625, -0.0238800048828125, 0.053863525390625, 0.004619598388671875, 0.00754547119140625, -0.0137176513671875, -0.0269317626953125, -0.00205230712890625, 0.0675048828125, 0.01519775390625, -0.042694091796875, -0.049591064453125, 0.0012559890747070312, -0.03228759765625, -0.0160675048828125, 0.03875732421875, -0.004398345947265625, -0.123291015625, 0.06390380859375, 0.0104522705078125, -0.0004343986511230469, -0.06329345703125, 0.045501708984375, -0.091064453125, -0.035888671875, 0.043975830078125, -0.031463623046875, 0.02899169921875, -0.010894775390625, 0.016448974609375, -0.01079559326171875, -0.033355712890625, -0.0283355712890625, -0.057952880859375, -0.0166778564453125, -0.0241851806640625, 0.046478271484375, 0.024169921875, -0.01519775390625, -0.00530242919921875, 0.02813720703125, 0.031494140625, 0.0195770263671875, -0.0029048919677734375, -0.034942626953125, -0.003925323486328125, 0.020904541015625, 0.0032901763916015625, 0.001922607421875, 0.006153106689453125, -0.02490234375, -0.0193939208984375, 0.020263671875, -0.037628173828125, 0.02825927734375, -0.031524658203125, -0.00864410400390625, -0.0237274169921875, -0.0284881591796875, -0.0181732177734375, 0.004444122314453125, -0.019744873046875, -0.006870269775390625, -0.030303955078125, -0.0330810546875, 0.058319091796875, 0.0234375, 0.005615234375, -0.0050048828125, 0.0748291015625, -0.002643585205078125, -0.038330078125, -0.03826904296875, -0.01251220703125, 0.0167388916015625, -0.037078857421875, 0.037933349609375, 0.006496429443359375, 0.01230621337890625, 0.0133209228515625, -0.032012939453125, 0.0145721435546875, -0.03289794921875, 0.052947998046875, 0.0010242462158203125, 0.018798828125, -0.005626678466796875, -0.005420684814453125, 0.031494140625, 0.0254058837890625, 0.00954437255859375, 0.00637054443359375, 0.054840087890625, 0.0124664306640625, -0.022247314453125, -0.0260467529296875, -0.01751708984375, -0.000029921531677246094, -0.005279541015625, 0.04071044921875, 0.0143890380859375, 0.02276611328125, -0.0018453598022460938, -0.0041656494140625, 0.0287322998046875, 0.01319122314453125, -0.0298614501953125, 0.039276123046875, -0.0258026123046875, 0.04034423828125, 0.01934814453125, 0.016204833984375, -0.057342529296875, -0.009613037109375, 0.016448974609375, 0.01038360595703125, -0.03204345703125, -0.0160980224609375, 0.0223541259765625, 0.0036029815673828125, 0.005016326904296875, -0.038330078125, 0.0248565673828125, 0.0528564453125, 0.0014858245849609375, -0.007480621337890625, -0.05133056640625, 0.041412353515625, -0.04241943359375, 0.0038852691650390625, 0.004810333251953125, -0.01291656494140625, 0.0408935546875, -0.0024662017822265625, 0.0201263427734375, -0.0013446807861328125, -0.0187835693359375, 0.0689697265625, 0.04803466796875, 0.0167694091796875, 0.00701141357421875, -0.01284027099609375, -0.0231475830078125, 0.02313232421875, -0.048126220703125, -0.0180206298828125, -0.0233917236328125, 0.027862548828125, 0.01922607421875, -0.0015344619750976562, 0.00514984130859375, -0.0022029876708984375, 0.01812744140625, -0.032745361328125, 0.026702880859375, 0.032012939453125, -0.010986328125, -0.020843505859375, 0.00536346435546875, 0.01480865478515625, 0.031890869140625, 0.00164031982421875, -0.0133209228515625, -0.017730712890625, -0.0151519775390625, 0.0229034423828125, 0.0046234130859375, -0.051788330078125, -0.041748046875, -0.0018939971923828125, -0.005596160888671875, 0.003398895263671875, -0.066162109375, -0.0345458984375, 0.0003559589385986328, 0.005825042724609375, 0.04248046875, 0.002979278564453125, 0.0531005859375, -0.041656494140625, -0.03717041015625, -0.02655029296875, -0.0180816650390625, 0.082763671875, 0.05426025390625, -0.055023193359375, -0.0082855224609375, -0.03179931640625, -0.00853729248046875, -0.0770263671875, -0.06597900390625, -0.039337158203125, 0.025054931640625, 0.0188751220703125, 0.05078125, -0.0016984939575195312, -0.0177764892578125, 0.0220184326171875, -0.0113983154296875, -0.01512908935546875, 0.055938720703125, -0.027069091796875, 0.019378662109375, 0.00981903076171875, 0.00782012939453125, -0.004688262939453125, -0.0081634521484375, 0.0205078125, -0.0106658935546875, -0.01172637939453125, -0.033538818359375, 0.0160980224609375, -0.004711151123046875, 0.0078277587890625, 0.00959014892578125, 0.0228729248046875, 0.0004973411560058594, -0.0262908935546875, -0.0281524658203125, -0.00194549560546875, -0.027313232421875, 0.0848388671875, -0.0036067962646484375, -0.00881195068359375, 0.0150604248046875, -0.0021495819091796875, 0.040191650390625, -0.036895751953125, 0.05523681640625, -0.04010009765625, -0.03515625, -0.0186309814453125, 0.0015535354614257812, -0.007965087890625, 0.03125, 0.056640625, -0.0155792236328125, 0.02685546875, 0.01464080810546875, 0.00592041015625, 0.0240020751953125, -0.0034694671630859375, 0.0257415771484375, -0.01049041748046875, 0.008331298828125, -0.0264739990234375, -0.0015115737915039062, -0.015106201171875, -0.0156707763671875, -0.041290283203125, 0.0251312255859375, 0.00894927978515625, -0.05938720703125, 0.003997802734375, 0.0036373138427734375, 0.0095062255859375, -0.007671356201171875, -0.000904083251953125, 0.024932861328125, 0.00630950927734375, -0.038543701171875, 0.038726806640625, -0.0259552001953125, -0.0208587646484375, 0.01493072509765625, -0.0011348724365234375, -0.00018298625946044922, -0.0133056640625, 0.001110076904296875, -0.0543212890625, 0.014556884765625, 0.0626220703125, -0.00949859619140625, -0.056671142578125, -0.006221771240234375, 0.04144287109375, -0.019439697265625, -0.08172607421875, 0.0306243896484375, 0.004024505615234375, 0.017974853515625, -0.00910186767578125, -0.012908935546875, 0.01029205322265625, 0.0273590087890625, -0.016082763671875, -0.019989013671875, 0.0138702392578125, -0.039886474609375, -0.08441162109375, -0.0301971435546875, 0.0218048095703125, 0.02911376953125, -0.03302001953125, 0.04718017578125, -0.0221099853515625, -0.03631591796875, -0.0105438232421875, -0.01279449462890625, 0.05426025390625, -0.061004638671875, 0.0117034912109375, 0.040069580078125, 0.038330078125, -0.0026340484619140625, 0.007503509521484375, 0.027191162109375, -0.037139892578125, -0.04339599609375, 0.0155792236328125, -0.02398681640625, -0.01395416259765625, -0.008148193359375, -0.04180908203125, 0.133056640625, 0.00905609130859375, -0.0011568069458007812, 0.0144805908203125, 0.05535888671875, -0.0283203125, 0.047576904296875, -0.0254058837890625, 0.039947509765625, 0.0200958251953125, 0.0247802734375, -0.01392364501953125, 0.004726409912109375, 0.01192474365234375, -0.0017299652099609375, 0.051513671875, 0.0148773193359375, 0.0265655517578125, -0.0193634033203125, 0.0033283233642578125, 0.031768798828125, -0.0131378173828125, -0.00321197509765625, 0.0021076202392578125, 0.01099395751953125, 0.0204315185546875, -0.00841522216796875, 0.04425048828125, -0.038604736328125, -0.0269012451171875, 0.0147705078125, 0.001346588134765625, 0.0246734619140625, 0.000850677490234375, -0.024505615234375, 0.032989501953125, -0.018280029296875, -0.023834228515625, -0.045806884765625, 0.036163330078125, 0.0071563720703125, 0.0677490234375, -0.059814453125, -0.0244293212890625, -0.0087738037109375, 0.060028076171875, 0.024749755859375, 0.00855255126953125, 0.02117919921875, 0.0299072265625, 0.032196044921875, -0.048858642578125, -0.00865936279296875, -0.0117034912109375, -0.0273590087890625, 0.03387451171875, 0.02630615234375, 0.023773193359375, -0.0006194114685058594, 0.058990478515625, 0.048828125, 0.0167388916015625, -0.048248291015625, -0.059112548828125, 0.0111083984375, 0.01506805419921875, 0.02752685546875, 0.0232086181640625, 0.038177490234375, -0.061279296875, -0.00434112548828125, -0.0230712890625, 0.0128936767578125, 0.01334381103515625, 0.01110076904296875, -0.0008034706115722656, 0.010772705078125, -0.035491943359375, 0.017578125, -0.0386962890625, 0.0174102783203125, 0.0011272430419921875, 0.0231475830078125, 0.005767822265625, 0.01374053955078125, 0.0204010009765625, -0.001331329345703125, 0.0294189453125, 0.041351318359375, 0.01080322265625, -0.0616455078125, -0.007221221923828125, -0.089111328125, 0.0056304931640625, 0.034088134765625, 0.05926513671875, 0.0002944469451904297, 0.050537109375, 0.04150390625, 0.0086669921875, 0.007770538330078125, 0.0016393661499023438, -0.01132965087890625, -0.01544189453125, -0.0097808837890625, -0.01922607421875, -0.033203125, -0.0201416015625, -0.007598876953125, 0.08453369140625, -0.05999755859375, -0.01141357421875, 0.00978851318359375, -0.0039825439453125, -0.017578125, 0.033111572265625, 0.0027828216552734375, -0.0006899833679199219, 0.0014286041259765625, -0.0164031982421875, 0.0096893310546875, -0.040802001953125, 0.0032863616943359375, -0.007617950439453125, 0.00934600830078125, -0.017578125, 0.06280517578125, 0.0457763671875, -0.025146484375, 0.0171356201171875, 0.034576416015625, -0.0234222412109375, -0.0282135009765625, 0.036590576171875, -0.00772857666015625, -0.030364990234375, -0.036895751953125, 0.0247039794921875, 0.032318115234375, -0.0109100341796875, 0.0163726806640625, 0.021026611328125, -0.003910064697265625, 0.04217529296875, 0.011016845703125, 0.0077362060546875, 0.0367431640625, -0.0243377685546875, -0.0070648193359375, 0.025848388671875, -0.0083770751953125, -0.029937744140625, 0.01056671142578125, 0.0321044921875, -0.0011262893676757812, 0.01045989990234375, -0.0318603515625, 0.018341064453125, 0.0093231201171875, 0.0229644775390625, -0.0106658935546875, 0.01151275634765625, 0.01258087158203125, -0.00662994384765625, 0.0380859375, 0.0252532958984375, 0.006397247314453125, 0.004146575927734375, 0.0011491775512695312, -0.013031005859375, 0.0009274482727050781, -0.00734710693359375, -0.0068359375, 0.0209503173828125, -0.0026836395263671875, -0.01535797119140625, 0.006565093994140625, -0.0004658699035644531, -0.01556396484375, 0.02545166015625, -0.0155029296875, 0.019317626953125, -0.00021505355834960938, -0.037628173828125, 0.0027713775634765625, 0.033935546875, 0.02471923828125, 0.0137176513671875, -0.03961181640625, -0.0085906982421875, 0.003086090087890625, -0.02142333984375, -0.025543212890625, -0.03240966796875, -0.03033447265625, -0.0034122467041015625, -0.0350341796875, -0.08209228515625, -0.0396728515625, -0.0130767822265625, 0.032073974609375, 0.017486572265625, -0.01617431640625, 0.03509521484375, -0.02471923828125, -0.033233642578125, 0.026763916015625, 0.01361846923828125, -0.003223419189453125, 0.0011615753173828125, -0.021484375, -0.03851318359375, -0.0257415771484375, 0.07037353515625, -0.01751708984375, -0.0308990478515625, -0.007457733154296875, 0.00635528564453125, -0.0308380126953125, -0.045745849609375, -0.01480865478515625, -0.000865936279296875, 0.002593994140625, -0.03045654296875, 0.0021724700927734375, 0.006519317626953125, -0.004711151123046875, -0.024383544921875, 0.0117950439453125, -0.037811279296875, -0.0162200927734375, -0.004047393798828125, -0.00933837890625, 0.00925445556640625, -0.0283660888671875, -0.03607177734375, 0.0904541015625, -0.007495880126953125, -0.0152740478515625, -0.0709228515625, 0.046478271484375, 0.0231475830078125, -0.005344390869140625, -0.0162811279296875, -0.0004038810729980469, -0.0260772705078125, -0.00749969482421875, -0.01032257080078125, -0.00482940673828125, 0.0234832763671875, -0.002044677734375, 0.01306915283203125, 0.036376953125, 0.043243408203125, -0.0374755859375, 0.049774169921875, -0.0316162109375, 0.059051513671875, 0.052642822265625, -0.0284271240234375, 0.039825439453125, -0.005847930908203125, -0.041259765625, -0.05194091796875, -0.0235443115234375, -0.0239105224609375, 0.0166778564453125, 0.09564208984375, 0.1273193359375, 0.036041259765625, -0.0869140625, -0.0230865478515625, -0.01690673828125, -0.0079193115234375, -0.0283966064453125, -0.0015478134155273438, -0.0294647216796875, 0.004405975341796875, -0.04595947265625, -0.00510406494140625, 0.009063720703125, -0.0210113525390625, -0.032684326171875, -0.0189361572265625, -0.038848876953125, 0.0006275177001953125, -0.043701171875, 0.018707275390625, 0.01016998291015625, -0.0020961761474609375, 0.039794921875, -0.01392364501953125, -0.0004086494445800781, 0.025787353515625, 0.04315185546875, 0.0140228271484375, -0.0215301513671875, -0.0181427001953125, 0.027099609375, -0.00852203369140625, 0.039520263671875, -0.053436279296875, -0.03173828125, -0.0258636474609375, -0.0032596588134765625, 0.0011339187622070312, -0.004383087158203125, 0.038818359375, -0.0242767333984375, 0.01036834716796875, 0.0014743804931640625, 0.014556884765625, 0.032745361328125, 0.0004253387451171875, 0.049041748046875, 0.00205230712890625, -0.03179931640625, -0.002384185791015625, -0.0284423828125, -0.004852294921875, 0.0203399658203125, -0.0038738250732421875, -0.054290771484375, 0.046905517578125, 0.03936767578125, 0.01284027099609375, 0.023406982421875 ]
d7d53699c53f57178b2400a2bdaef3d483ed6047
Wordpress Stackexchange Q: User File Upload Repository? I am trying to make a user-uploaded file repository on my wordpress site, but have been unable to find any plug-ins or tutorials on how to accomplish such a task. Basically I want a page where users can go and upload files via an upload file dialogue. Then I want to have a page that lists all user-submitted files that is sortable. I have seen some tutorials on how to add an upload option to a users dashboard, but I'm not using the normal dashboard because I think it is clunky. Are there any such plug-ins out there? Or does anyone have any recommendations? Thanks, Tre! A: There are plugins that will let you do this. http://wordpress.org/extend/plugins/user-files/ http://wordpress.org/extend/plugins/wp-filebase/ Whatever you decide though keep in mind security when doing things like this. You don't want people going crazy and uploading huge files either, so check the plugins have built in restrictions on what can be uploaded and that they are in active development.
Q: User File Upload Repository? I am trying to make a user-uploaded file repository on my wordpress site, but have been unable to find any plug-ins or tutorials on how to accomplish such a task. Basically I want a page where users can go and upload files via an upload file dialogue. Then I want to have a page that lists all user-submitted files that is sortable. I have seen some tutorials on how to add an upload option to a users dashboard, but I'm not using the normal dashboard because I think it is clunky. Are there any such plug-ins out there? Or does anyone have any recommendations? Thanks, Tre! A: There are plugins that will let you do this. http://wordpress.org/extend/plugins/user-files/ http://wordpress.org/extend/plugins/wp-filebase/ Whatever you decide though keep in mind security when doing things like this. You don't want people going crazy and uploading huge files either, so check the plugins have built in restrictions on what can be uploaded and that they are in active development.
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:416343", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39706" }
[ 0.0665283203125, 0.0006432533264160156, -0.01021575927734375, -0.022979736328125, 0.01389312744140625, -0.0391845703125, 0.053619384765625, -0.0250091552734375, 0.010009765625, 0.037322998046875, -0.0296783447265625, 0.0258941650390625, -0.0084228515625, -0.0014448165893554688, -0.03973388671875, -0.023406982421875, 0.02349853515625, 0.0119171142578125, 0.036285400390625, 0.0009288787841796875, -0.022613525390625, 0.0421142578125, 0.042388916015625, -0.052154541015625, 0.0235443115234375, 0.0244903564453125, -0.00821685791015625, 0.01006317138671875, 0.0039520263671875, -0.0120086669921875, 0.01032257080078125, -0.0254669189453125, 0.007495880126953125, -0.0125274658203125, 0.0218353271484375, -0.007472991943359375, 0.0028247833251953125, -0.00010514259338378906, 0.020355224609375, -0.00441741943359375, 0.042694091796875, -0.0124969482421875, 0.0078125, 0.01739501953125, -0.003002166748046875, -0.05731201171875, 0.06744384765625, -0.034210205078125, 0.026153564453125, 0.006748199462890625, -0.019378662109375, 0.01032257080078125, -0.0020427703857421875, -0.0294189453125, -0.0007920265197753906, -0.02294921875, -0.010040283203125, 0.0287322998046875, 0.0487060546875, -0.0294189453125, -0.03515625, -0.031402587890625, 0.0276641845703125, -0.0114898681640625, -0.040985107421875, 0.00018846988677978516, -0.03131103515625, 0.006542205810546875, -0.00585174560546875, -0.0496826171875, -0.003978729248046875, -0.0061798095703125, 0.0198822021484375, -0.00731658935546875, -0.022125244140625, 0.0010242462158203125, 0.00601959228515625, -0.024627685546875, 0.021331787109375, -0.0108184814453125, -0.005889892578125, -0.0147857666015625, 0.0011692047119140625, -0.014129638671875, 0.001277923583984375, 0.007160186767578125, -0.00583648681640625, -0.0030612945556640625, -0.0224609375, 0.04364013671875, -0.01934814453125, 0.0201263427734375, -0.0286712646484375, 0.06195068359375, -0.002902984619140625, 0.0199432373046875, -0.00002372264862060547, -0.006473541259765625, 0.0131988525390625, 0.018341064453125, 0.039794921875, -0.048583984375, 0.041839599609375, -0.021331787109375, 0.022491455078125, 0.0318603515625, -0.0171356201171875, -0.060455322265625, 0.008148193359375, 0.0035686492919921875, -0.0188446044921875, 0.01355743408203125, -0.0097808837890625, -0.049072265625, 0.004520416259765625, 0.024810791015625, -0.021392822265625, 0.02703857421875, 0.002445220947265625, 0.006591796875, -0.00424957275390625, 0.01482391357421875, -0.0252838134765625, -0.040679931640625, 0.0029277801513671875, -0.026947021484375, -0.01165771484375, 0.005550384521484375, -0.007587432861328125, 0.031707763671875, -0.01235198974609375, 0.023529052734375, 0.042388916015625, 0.0019893646240234375, -0.0239105224609375, -0.011474609375, -0.0013360977172851562, -0.050811767578125, -0.0210418701171875, 0.02484130859375, -0.00848388671875, -0.0225372314453125, 0.0090484619140625, -0.038177490234375, 0.0032634735107421875, 0.036102294921875, 0.028045654296875, -0.0004439353942871094, -0.00710296630859375, -0.046600341796875, -0.0136871337890625, -0.0018548965454101562, 0.0311431884765625, -0.01885986328125, 0.0119781494140625, -0.06927490234375, -0.022796630859375, -0.0290679931640625, 0.056610107421875, -0.0158233642578125, 0.02313232421875, -0.0206451416015625, -0.0273895263671875, -0.0003662109375, 0.0088348388671875, -0.0014514923095703125, -0.0018472671508789062, 0.0220489501953125, 0.0335693359375, 0.003932952880859375, 0.0301513671875, -0.00872039794921875, 0.047882080078125, 0.01508331298828125, -0.00731658935546875, 0.01531219482421875, 0.03692626953125, 0.0243988037109375, -0.0037250518798828125, 0.07977294921875, 0.0244140625, -0.01361846923828125, 0.06854248046875, -0.03118896484375, -0.0283355712890625, -0.005596160888671875, 0.006195068359375, -0.0120391845703125, -0.002429962158203125, -0.007411956787109375, 0.043609619140625, 0.054229736328125, -0.0020809173583984375, -0.0017490386962890625, -0.01473236083984375, -0.017364501953125, 0.0117034912109375, 0.0160369873046875, -0.0089263916015625, -0.0028247833251953125, -0.04071044921875, 0.0135955810546875, -0.005802154541015625, 0.00484466552734375, -0.0091400146484375, -0.005340576171875, -0.003009796142578125, 0.0263671875, -0.004055023193359375, -0.00997161865234375, 0.01934814453125, 0.01137542724609375, -0.01541900634765625, -0.048004150390625, -0.010955810546875, 0.048492431640625, -0.01393890380859375, 0.01235198974609375, -0.01068878173828125, 0.04132080078125, -0.03826904296875, 0.0220947265625, -0.035400390625, -0.007328033447265625, -0.020751953125, 0.015106201171875, -0.0255889892578125, 0.0171661376953125, -0.0249176025390625, 0.01343536376953125, 0.01873779296875, 0.00806427001953125, -0.0076141357421875, 0.00855255126953125, -0.03387451171875, -0.0248260498046875, -0.038116455078125, -0.045989990234375, 0.0120391845703125, 0.050750732421875, 0.005031585693359375, 0.0029392242431640625, 0.0182342529296875, 0.0784912109375, 0.0273284912109375, 0.0007877349853515625, 0.030181884765625, 0.0280303955078125, -0.0010738372802734375, 0.02325439453125, 0.00893402099609375, 0.0015802383422851562, 0.01373291015625, -0.0210723876953125, 0.011932373046875, 0.0247344970703125, -0.02496337890625, -0.033660888671875, -0.0010938644409179688, -0.0052490234375, 0.0237579345703125, -0.0176544189453125, -0.025787353515625, -0.006805419921875, 0.03839111328125, 0.0079345703125, 0.051971435546875, 0.036102294921875, -0.0313720703125, 0.0194854736328125, 0.0007576942443847656, -0.0182342529296875, -0.004825592041015625, 0.028472900390625, 0.036407470703125, 0.0215301513671875, -0.0159149169921875, -0.02752685546875, 0.01172637939453125, 0.01904296875, -0.023956298828125, -0.0295867919921875, 0.0159759521484375, -0.00844573974609375, 0.01062774658203125, -0.016510009765625, 0.05535888671875, -0.01313018798828125, -0.029022216796875, -0.0197906494140625, 0.020263671875, 0.01023101806640625, -0.03497314453125, 0.028961181640625, 0.0008897781372070312, -0.00743865966796875, 0.01421356201171875, -0.0733642578125, 0.038665771484375, -0.037353515625, 0.082275390625, 0.091552734375, -0.0014095306396484375, 0.0165252685546875, 0.0283355712890625, -0.01029205322265625, 0.0013580322265625, 0.04034423828125, 0.0212554931640625, 0.00359344482421875, -0.03912353515625, 0.01971435546875, 0.0183868408203125, -0.01514434814453125, 0.02264404296875, -0.0067901611328125, -0.0143890380859375, 0.0169525146484375, -0.06304931640625, -0.053070068359375, -0.00305938720703125, -0.09869384765625, 0.058990478515625, 0.0013055801391601562, -0.0338134765625, -0.037567138671875, 0.07635498046875, 0.0249786376953125, -0.0041961669921875, -0.019073486328125, -0.02630615234375, -0.01453399658203125, -0.049652099609375, 0.007411956787109375, 0.0021190643310546875, 0.01177215576171875, 0.002895355224609375, 0.01230621337890625, -0.0133514404296875, -0.027435302734375, -0.01119232177734375, 0.011871337890625, 0.0219879150390625, -0.01971435546875, 0.058319091796875, -0.0240020751953125, 0.0014047622680664062, 0.0093841552734375, 0.0565185546875, 0.0701904296875, -0.08929443359375, 0.01006317138671875, -0.0070037841796875, -0.048858642578125, -0.042877197265625, 0.032379150390625, 0.011444091796875, -0.06170654296875, -0.033447265625, -0.087890625, 0.037445068359375, 0.01303863525390625, 0.0236968994140625, -0.01483154296875, -0.03948974609375, -0.029205322265625, -0.00688934326171875, 0.01593017578125, 0.030487060546875, 0.03118896484375, -0.01104736328125, 0.0135040283203125, -0.02587890625, 0.00019371509552001953, 0.01666259765625, 0.004062652587890625, 0.031646728515625, -0.00911712646484375, 0.0177154541015625, 0.005130767822265625, 0.0213165283203125, -0.0228118896484375, 0.06103515625, -0.03802490234375, -0.0767822265625, 0.0582275390625, -0.00054168701171875, 0.033050537109375, -0.05645751953125, -0.034576416015625, -0.006450653076171875, 0.11761474609375, -0.0211029052734375, 0.01377105712890625, 0.00196075439453125, 0.0052947998046875, -0.0692138671875, -0.01177215576171875, -0.1007080078125, 0.027496337890625, -0.03594970703125, -0.0015726089477539062, -0.00928497314453125, -0.04827880859375, 0.0252532958984375, -0.10601806640625, -0.003871917724609375, -0.039154052734375, 0.0271759033203125, -0.035552978515625, 0.0171966552734375, -0.022979736328125, 0.02130126953125, -0.061187744140625, 0.006679534912109375, -0.0310516357421875, -0.09332275390625, -0.021331787109375, -0.0330810546875, 0.05999755859375, 0.011566162109375, -0.01464080810546875, -0.0123291015625, 0.0523681640625, 0.0060577392578125, 0.01264190673828125, 0.021240234375, 0.006221771240234375, 0.00383758544921875, -0.033966064453125, 0.001773834228515625, -0.052398681640625, 0.00605010986328125, -0.06927490234375, -0.05078125, -0.0220489501953125, -0.051025390625, 0.02386474609375, -0.045562744140625, 0.0018205642700195312, -0.037384033203125, -0.04888916015625, -0.047271728515625, -0.00797271728515625, -0.0033397674560546875, -0.0195465087890625, -0.05804443359375, -0.056915283203125, 0.01155853271484375, -0.00817108154296875, 0.010040283203125, 0.038116455078125, 0.05218505859375, 0.01229095458984375, -0.00272369384765625, -0.078369140625, -0.0012054443359375, 0.024749755859375, 0.023895263671875, 0.0165557861328125, 0.0010347366333007812, -0.0124359130859375, 0.024444580078125, -0.00289154052734375, 0.0167388916015625, -0.0264892578125, -0.001575469970703125, 0.0019741058349609375, -0.018096923828125, 0.0108795166015625, 0.0222015380859375, 0.0157928466796875, -0.01003265380859375, -0.0146636962890625, -0.012603759765625, -0.0004863739013671875, 0.03863525390625, -0.015716552734375, 0.03778076171875, -0.0211181640625, -0.08636474609375, 0.03155517578125, -0.09613037109375, 0.033905029296875, -0.0273590087890625, 0.007411956787109375, 0.0474853515625, 0.0195159912109375, -0.0283355712890625, -0.00939178466796875, -0.0309600830078125, -0.0035228729248046875, 0.010650634765625, -0.01290130615234375, -0.01442718505859375, -0.0080413818359375, -0.004978179931640625, -0.0103759765625, 0.03131103515625, -0.0218505859375, -0.02203369140625, 0.0092315673828125, 0.027618408203125, -0.033660888671875, 0.00814056396484375, 0.0179595947265625, 0.04327392578125, 0.00786590576171875, -0.00572967529296875, 0.0143890380859375, 0.0323486328125, -0.035369873046875, 0.037353515625, 0.0026683807373046875, -0.0243988037109375, -0.01727294921875, 0.0184173583984375, -0.0019254684448242188, -0.00994110107421875, 0.00348663330078125, 0.06695556640625, 0.0712890625, -0.0305328369140625, 0.007343292236328125, 0.05084228515625, -0.0092620849609375, -0.050140380859375, 0.007625579833984375, -0.0116424560546875, 0.041656494140625, 0.004344940185546875, 0.03216552734375, 0.0050811767578125, -0.045562744140625, 0.02801513671875, -0.07537841796875, -0.001857757568359375, -0.0211181640625, -0.0321044921875, -0.007099151611328125, -0.0122528076171875, -0.007171630859375, 0.006175994873046875, -0.0082244873046875, 0.003719329833984375, -0.02587890625, -0.0186920166015625, -0.0164337158203125, 0.0596923828125, -0.0537109375, 0.0057373046875, 0.0143585205078125, -0.007480621337890625, 0.0177459716796875, 0.0198822021484375, -0.039581298828125, -0.02679443359375, -0.0244293212890625, -0.02166748046875, 0.08758544921875, -0.0107421875, -0.01160430908203125, -0.0445556640625, 0.03631591796875, -0.0885009765625, -0.003261566162109375, 0.04400634765625, 0.0238800048828125, -0.0428466796875, -0.015960693359375, -0.034759521484375, -0.01081085205078125, -0.0031642913818359375, -0.021392822265625, -0.03594970703125, -0.0196533203125, -0.01708984375, 0.015350341796875, -0.00556182861328125, 0.004302978515625, -0.004425048828125, 0.0011014938354492188, -0.004932403564453125, -0.01383209228515625, -0.0092926025390625, 0.0129241943359375, 0.01326751708984375, 0.042938232421875, 0.003688812255859375, 0.005817413330078125, -0.0027313232421875, -0.0254974365234375, -0.0158843994140625, -0.0166168212890625, -0.00047969818115234375, -0.0021305084228515625, 0.0031452178955078125, 0.038238525390625, 0.08612060546875, 0.005279541015625, -0.01253509521484375, 0.0008349418640136719, 0.0163116455078125, -0.00969696044921875, 0.03314208984375, 0.0107879638671875, -0.036285400390625, 0.0300445556640625, -0.0074615478515625, -0.00879669189453125, -0.01265716552734375, -0.0157928466796875, 0.030517578125, 0.006099700927734375, 0.01190185546875, -0.0192413330078125, -0.01204681396484375, 0.038238525390625, 0.00984954833984375, -0.01232147216796875, 0.0112152099609375, 0.03338623046875, 0.0178375244140625, -0.0164947509765625, 0.0024433135986328125, 0.00881195068359375, -0.0027313232421875, 0.04547119140625, 0.005397796630859375, -0.0220947265625, 0.03863525390625, -0.0367431640625, 0.0197296142578125, 0.0292510986328125, 0.03717041015625, -0.050872802734375, 0.00861358642578125, -0.02593994140625, -0.017730712890625, 0.04180908203125, -0.0110015869140625, 0.0120849609375, -0.0216217041015625, 0.033447265625, -0.008880615234375, -0.0231475830078125, -0.006534576416015625, -0.01531982421875, -0.0020008087158203125, 0.00885009765625, 0.0289459228515625, 0.0038433074951171875, -0.0450439453125, -0.0213623046875, 0.02056884765625, -0.01122283935546875, 0.0015420913696289062, 0.01580810546875, -0.00875091552734375, 0.00522613525390625, -0.00916290283203125, 0.030975341796875, -0.02899169921875, 0.01110076904296875, 0.0262603759765625, -0.0238037109375, 0.06011962890625, 0.0259857177734375, 0.0105133056640625, -0.04571533203125, 0.0157470703125, 0.00539398193359375, -0.01180267333984375, -0.0175628662109375, -0.016632080078125, 0.005168914794921875, -0.0153656005859375, 0.00820159912109375, -0.0169525146484375, 0.00177001953125, -0.0042724609375, -0.004177093505859375, 0.06256103515625, -0.0465087890625, -0.018157958984375, 0.029205322265625, -0.00458526611328125, -0.01104736328125, 0.010772705078125, 0.014007568359375, -0.06805419921875, -0.060943603515625, 0.020172119140625, -0.06500244140625, 0.01666259765625, 0.037933349609375, -0.044708251953125, 0.08343505859375, 0.015716552734375, 0.00439453125, 0.000743865966796875, 0.0494384765625, -0.0223846435546875, 0.0186767578125, -0.040618896484375, 0.0364990234375, -0.005107879638671875, 0.01374053955078125, -0.045318603515625, -0.0019025802612304688, -0.0220947265625, 0.0303192138671875, 0.055450439453125, 0.0238189697265625, -0.09722900390625, -0.00007903575897216797, 0.0303192138671875, 0.0098114013671875, 0.01148223876953125, 0.09326171875, 0.00675201416015625, -0.006305694580078125, 0.01104736328125, 0.005817413330078125, 0.0285797119140625, -0.0221405029296875, -0.0219879150390625, 0.03411865234375, 0.00702667236328125, -0.01259613037109375, -0.030029296875, 0.03692626953125, -0.04248046875, -0.008087158203125, 0.00980377197265625, 0.0439453125, -0.019012451171875, 0.02288818359375, 0.01220703125, -0.0277252197265625, 0.0161285400390625, -0.038299560546875, 0.041107177734375, -0.00496673583984375, 0.0078277587890625, 0.03460693359375, 0.0127105712890625, -0.0009617805480957031, 0.003360748291015625, 0.0164031982421875, 0.0277252197265625, -0.01531219482421875, 0.07476806640625, 0.0032634735107421875, 0.0208587646484375, -0.04473876953125, -0.01279449462890625, 0.029876708984375, 0.0933837890625, -0.040985107421875, -0.035400390625, 0.01399993896484375, 0.0221405029296875, 0.0147552490234375, 0.0182037353515625, 0.024261474609375, -0.035675048828125, 0.022186279296875, -0.020050048828125, -0.0103302001953125, -0.020233154296875, 0.019073486328125, -0.011322021484375, -0.015655517578125, 0.0219268798828125, 0.0005445480346679688, -0.0008616447448730469, 0.019256591796875, -0.00994110107421875, -0.0260009765625, -0.036590576171875, 0.04449462890625, 0.00042319297790527344, 0.028961181640625, 0.00885009765625, 0.037384033203125, 0.0025424957275390625, -0.00699615478515625, -0.02960205078125, -0.07208251953125, 0.0167388916015625, 0.048370361328125, 0.026153564453125, -0.00608062744140625, 0.01052093505859375, 0.00553131103515625, -0.002986907958984375, -0.00013911724090576172, 0.0361328125, -0.006046295166015625, -0.009429931640625, -0.019805908203125, 0.034027099609375, 0.044921875, 0.01113128662109375, -0.00759124755859375, -0.00563812255859375, 0.090087890625, -0.058807373046875, 0.0293731689453125, -0.0230865478515625, -0.061676025390625, 0.0027942657470703125, -0.0699462890625, 0.06268310546875, -0.06591796875, -0.0751953125, -0.0186920166015625, -0.03302001953125, 0.00594329833984375, 0.004749298095703125, 0.0179901123046875, -0.0170745849609375, 0.04437255859375, 0.0233612060546875, -0.01715087890625, 0.0168914794921875, -0.005481719970703125, 0.0186004638671875, -0.0277252197265625, 0.0004200935363769531, -0.004177093505859375, -0.018951416015625, -0.015838623046875, -0.0256195068359375, 0.044708251953125, 0.026214599609375, 0.07220458984375, -0.026123046875, 0.037841796875, 0.0018367767333984375, -0.0172882080078125, -0.018218994140625, -0.007778167724609375, 0.01192474365234375, -0.016632080078125, -0.0283966064453125, -0.01256561279296875, -0.00001704692840576172, 0.01074981689453125, 0.014892578125, -0.0276031494140625, -0.0243377685546875, 0.004550933837890625, 0.0194854736328125, 0.04290771484375, 0.004032135009765625, -0.036712646484375, -0.018096923828125, -0.0194091796875, -0.031646728515625, 0.01910400390625, -0.0002903938293457031, 0.01204681396484375, 0.039459228515625, -0.02703857421875, -0.034088134765625, -0.0178680419921875, -0.03143310546875, -0.02777099609375, 0.019012451171875, 0.007053375244140625, 0.01131439208984375, 0.014129638671875, -0.009124755859375, 0.0283966064453125, -0.01195526123046875, 0.03680419921875, 0.0181427001953125, -0.045684814453125, 0.0154876708984375, 0.0216217041015625, 0.0367431640625, -0.01239776611328125, -0.0015001296997070312, 0.013671875, 0.0024433135986328125, -0.00914764404296875, -0.0243988037109375, -0.017120361328125, -0.0406494140625, -0.0082550048828125, 0.01812744140625, -0.0187530517578125, -0.0193023681640625, -0.048187255859375, 0.0260467529296875, 0.04046630859375, 0.00992584228515625, -0.0697021484375, 0.044189453125, -0.03594970703125, 0.038116455078125, -0.00015473365783691406, 0.031768798828125, -0.00762939453125, 0.01111602783203125, -0.046173095703125, -0.03643798828125, -0.0194091796875, 0.05596923828125, -0.0279693603515625, 0.0305938720703125, 0.0200653076171875, -0.019866943359375, -0.004383087158203125, 0.06683349609375, 0.0302581787109375, 0.1129150390625, 0.0038299560546875, -0.0396728515625, -0.0226593017578125, -0.000499725341796875, 0.0227508544921875, -0.0198211669921875, -0.01189422607421875, -0.03582763671875, -0.01090240478515625, -0.0205230712890625, -0.00911712646484375, -0.0179901123046875, -0.0740966796875, -0.133544921875, 0.11309814453125, -0.046112060546875, -0.047271728515625, 0.0094146728515625, 0.01007080078125, -0.00347137451171875, 0.00926971435546875, 0.0093231201171875, -0.01493072509765625, -0.0102996826171875, -0.003627777099609375, 0.01314544677734375, 0.01055908203125, 0.0175933837890625, 0.0237274169921875, -0.021697998046875, 0.0191802978515625, 0.01251983642578125, -0.0106964111328125, 0.032745361328125, -0.01000213623046875, 0.043121337890625, 0.05377197265625, -0.0187225341796875, 0.04681396484375, -0.006343841552734375, -0.060089111328125, -0.00727081298828125, 0.0210723876953125, -0.037933349609375, -0.0024280548095703125, 0.0450439453125, 0.056396484375, 0.0158538818359375, -0.00421905517578125, -0.00799560546875, -0.017913818359375, 0.0065460205078125, -0.01006317138671875, -0.003143310546875, -0.0439453125, 0.0008091926574707031, 0.006465911865234375, -0.01983642578125, -0.045501708984375, 0.0265960693359375, -0.050201416015625, -0.01425933837890625, 0.00982666015625, -0.01015472412109375, -0.0088348388671875, -0.04986572265625, 0.08258056640625, -0.04046630859375, -0.0148162841796875, 0.023651123046875, 0.029937744140625, 0.0183563232421875, 0.029998779296875, -0.0100250244140625, 0.028839111328125, -0.05718994140625, 0.05230712890625, -0.0071868896484375, 0.03387451171875, -0.07470703125, 0.0102996826171875, -0.0066986083984375, -0.0026111602783203125, -0.002277374267578125, 0.002872467041015625, 0.00626373291015625, 0.0127105712890625, 0.00027680397033691406, 0.0298309326171875, -0.01445770263671875, -0.11328125, -0.04510498046875, 0.033660888671875, -0.037841796875, 0.0007958412170410156, -0.0102386474609375, -0.039093017578125, -0.00824737548828125, 0.0162811279296875, -0.01332855224609375, -0.045166015625, 0.01479339599609375, -0.033966064453125, 0.004955291748046875, 0.0171966552734375 ]
40043109544ab2bf5ea2ee93dd37148a0828cd02
Wordpress Stackexchange Q: How to get userid at wp_logout action hook? I need to perform some cleanup after a user logged out, so I added a wp_logout action hook. Problem is, wp_get_current_user() already returns null if called from within the wp_logout action hook. How do I get the logging out users userid inside a wp_logout action hook? A: How about hooking 'clear_auth_cookie' with the cleaning you need to do? If you need even more depth, you can outright replace wp_clear_auth_cookie(), but that can get into issues where it will conflict with other plugins, so avoid that if possible.
Q: How to get userid at wp_logout action hook? I need to perform some cleanup after a user logged out, so I added a wp_logout action hook. Problem is, wp_get_current_user() already returns null if called from within the wp_logout action hook. How do I get the logging out users userid inside a wp_logout action hook? A: How about hooking 'clear_auth_cookie' with the cleaning you need to do? If you need even more depth, you can outright replace wp_clear_auth_cookie(), but that can get into issues where it will conflict with other plugins, so avoid that if possible. A: add_action('wp_logout', 'user_id'); function user_id() { wp_get_current_user()->data->ID; } use this in plugin main file A: Update (previous edit contained inaccuracy): As source code suggests too, you can now use function logout_redirect765($user_id){ ... } add_action('wp_logout','logout_redirect765');
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:416358", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39761" }
[ 0.06787109375, 0.01244354248046875, -0.010711669921875, -0.039581298828125, 0.033111572265625, -0.034027099609375, 0.048248291015625, -0.0095672607421875, -0.0236053466796875, 0.042449951171875, -0.0014753341674804688, 0.01044464111328125, -0.0065155029296875, -0.0177154541015625, -0.01343536376953125, -0.014678955078125, 0.02667236328125, -0.0292816162109375, 0.01062774658203125, -0.00557708740234375, 0.0016527175903320312, 0.01513671875, 0.0289764404296875, 0.00506591796875, 0.0064849853515625, -0.024322509765625, 0.04132080078125, -0.024017333984375, 0.0236968994140625, -0.00933837890625, 0.004070281982421875, 0.011505126953125, -0.010650634765625, 0.0305328369140625, 0.00653076171875, 0.0308685302734375, 0.0034999847412109375, 0.032867431640625, 0.056610107421875, -0.01114654541015625, 0.0230560302734375, -0.01369476318359375, -0.0216064453125, -0.00872802734375, -0.032867431640625, -0.035064697265625, 0.0201416015625, -0.00453948974609375, 0.0020580291748046875, 0.0287628173828125, 0.0251312255859375, 0.0416259765625, 0.03802490234375, -0.01617431640625, -0.0022068023681640625, 0.005802154541015625, 0.0015020370483398438, -0.00678253173828125, 0.057403564453125, -0.0025787353515625, -0.038421630859375, -0.054351806640625, 0.0408935546875, -0.050445556640625, 0.01824951171875, 0.0164794921875, 0.0161895751953125, 0.0212554931640625, 0.007541656494140625, 0.01418304443359375, -0.01690673828125, -0.0078277587890625, -0.0213775634765625, 0.03753662109375, -0.03564453125, -0.05670166015625, 0.04400634765625, -0.02484130859375, -0.004985809326171875, 0.050750732421875, -0.03045654296875, -0.044036865234375, -0.080078125, 0.05145263671875, -0.037322998046875, 0.048187255859375, -0.0163116455078125, -0.0115814208984375, -0.01247406005859375, -0.00829315185546875, -0.032989501953125, 0.005157470703125, 0.011199951171875, -0.017181396484375, -0.04119873046875, -0.0172882080078125, 0.00974273681640625, 0.03924560546875, -0.01556396484375, -0.009735107421875, 0.006183624267578125, -0.0187530517578125, -0.0280609130859375, -0.0239410400390625, -0.013671875, 0.040618896484375, 0.0389404296875, 0.032958984375, -0.016021728515625, 0.0028438568115234375, -0.014404296875, -0.05572509765625, -0.0313720703125, -0.060821533203125, -0.01806640625, 0.08203125, -0.0019588470458984375, -0.00656890869140625, 0.01284027099609375, 0.0176544189453125, -0.020538330078125, -0.0211944580078125, -0.0019989013671875, 0.0275726318359375, -0.00039076805114746094, -0.0249786376953125, -0.020751953125, 0.032867431640625, -0.0242919921875, 0.04156494140625, -0.04119873046875, 0.022613525390625, 0.0592041015625, -0.0165252685546875, -0.027435302734375, -0.03643798828125, 0.031890869140625, -0.039825439453125, -0.00005364418029785156, 0.0096282958984375, -0.00675201416015625, -0.036712646484375, -0.0032672882080078125, 0.0011091232299804688, 0.0228729248046875, 0.01354217529296875, 0.0186920166015625, 0.00479888916015625, 0.007022857666015625, -0.02215576171875, -0.01282501220703125, 0.006931304931640625, -0.0266571044921875, 0.0225982666015625, 0.07733154296875, 0.0225067138671875, 0.05706787109375, -0.021209716796875, 0.0188446044921875, 0.00991058349609375, 0.051971435546875, 0.00450897216796875, -0.01134490966796875, 0.00043129920959472656, -0.036163330078125, -0.0239410400390625, -0.0255584716796875, -0.0158843994140625, 0.03814697265625, 0.0220947265625, 0.059173583984375, -0.027008056640625, 0.037750244140625, 0.01499176025390625, -0.00577545166015625, -0.001178741455078125, -0.027130126953125, 0.051849365234375, 0.027923583984375, -0.018463134765625, -0.0232391357421875, -0.044403076171875, 0.044158935546875, 0.0006375312805175781, -0.0145111083984375, 0.047607421875, 0.0132293701171875, 0.055938720703125, -0.0169677734375, 0.0146942138671875, -0.00662994384765625, 0.04803466796875, -0.0236663818359375, 0.0266265869140625, -0.005352020263671875, -0.01001739501953125, 0.0038967132568359375, 0.01548004150390625, -0.0124053955078125, -0.014190673828125, 0.048065185546875, 0.018951416015625, -0.033935546875, -0.0272064208984375, -0.0972900390625, -0.01152801513671875, -0.0146331787109375, 0.037841796875, 0.01407623291015625, 0.006488800048828125, 0.0183563232421875, -0.006183624267578125, -0.021575927734375, 0.00829315185546875, -0.03094482421875, 0.0176239013671875, -0.022308349609375, 0.038543701171875, -0.00852203369140625, 0.0635986328125, -0.024261474609375, 0.0030059814453125, -0.0129241943359375, -0.040985107421875, 0.019287109375, -0.031494140625, -0.0093536376953125, -0.03033447265625, 0.0242156982421875, -0.015472412109375, 0.0172576904296875, 0.037139892578125, -0.0169525146484375, 0.051544189453125, -0.0073394775390625, -0.0175018310546875, 0.00629425048828125, -0.03594970703125, 0.035064697265625, 0.01464080810546875, 0.045257568359375, 0.0167694091796875, 0.030853271484375, 0.035430908203125, 0.0022106170654296875, -0.04345703125, 0.0325927734375, -0.0196685791015625, 0.020599365234375, 0.06365966796875, -0.0115203857421875, 0.01239776611328125, 0.0134124755859375, -0.0084381103515625, 0.01294708251953125, 0.03082275390625, -0.0189056396484375, -0.00962066650390625, -0.006237030029296875, -0.0244140625, 0.002101898193359375, -0.0875244140625, -0.0261383056640625, -0.0430908203125, 0.006069183349609375, -0.0276031494140625, -0.0026950836181640625, -0.006488800048828125, -0.0191802978515625, -0.0213470458984375, 0.02880859375, -0.004817962646484375, 0.00295257568359375, 0.04449462890625, -0.00389862060546875, -0.017669677734375, 0.0009665489196777344, -0.0210418701171875, 0.004161834716796875, 0.0171051025390625, -0.005390167236328125, 0.03399658203125, 0.0285186767578125, -0.01171112060546875, 0.01354217529296875, 0.0076446533203125, 0.00820159912109375, -0.033538818359375, 0.0275115966796875, 0.000762939453125, 0.0312042236328125, 0.0227508544921875, -0.018524169921875, 0.0679931640625, -0.0213165283203125, -0.0232086181640625, 0.0231170654296875, -0.0168304443359375, 0.0282745361328125, -0.0183868408203125, 0.026275634765625, 0.062408447265625, 0.0081939697265625, 0.0006251335144042969, 0.00010436773300170898, -0.00823211669921875, -0.01422882080078125, 0.0006017684936523438, 0.001026153564453125, -0.0031261444091796875, -0.01537322998046875, 0.064697265625, 0.0159912109375, 0.1043701171875, -0.061309814453125, -0.06134033203125, -0.016937255859375, 0.007549285888671875, -0.048553466796875, -0.06695556640625, -0.0038127899169921875, -0.07659912109375, 0.01495361328125, -0.0419921875, -0.04095458984375, 0.0048675537109375, -0.010589599609375, 0.0178680419921875, 0.0003838539123535156, -0.004306793212890625, -0.021484375, -0.01885986328125, -0.057342529296875, 0.023345947265625, -0.00884246826171875, 0.01338958740234375, -0.004039764404296875, 0.037200927734375, -0.006168365478515625, -0.0170745849609375, -0.0345458984375, 0.025848388671875, -0.014801025390625, -0.053741455078125, -0.0189666748046875, -0.0172882080078125, 0.0174560546875, -0.00015926361083984375, -0.01352691650390625, -0.0008177757263183594, 0.0209503173828125, -0.0122222900390625, -0.01104736328125, -0.06805419921875, 0.01404571533203125, 0.00305938720703125, -0.0298004150390625, -0.030029296875, 0.0526123046875, -0.049041748046875, 0.03497314453125, -0.0230865478515625, -0.03399658203125, 0.017303466796875, 0.01226043701171875, -0.022430419921875, 0.0278167724609375, -0.0467529296875, 0.0296478271484375, -0.001018524169921875, -0.00933074951171875, 0.006450653076171875, 0.0200958251953125, 0.0021991729736328125, 0.032501220703125, -0.011260986328125, 0.0161590576171875, -0.0085296630859375, 0.02301025390625, -0.004878997802734375, 0.0167388916015625, -0.0150909423828125, -0.0169677734375, -0.0546875, -0.037445068359375, 0.0465087890625, -0.01544952392578125, 0.007549285888671875, -0.0306854248046875, -0.0205078125, -0.004032135009765625, 0.08489990234375, 0.0026378631591796875, -0.033843994140625, 0.01038360595703125, 0.006450653076171875, -0.04339599609375, 0.01129913330078125, -0.034454345703125, -0.00666046142578125, -0.072265625, 0.0106353759765625, 0.0012807846069335938, -0.00951385498046875, -0.004390716552734375, -0.0056915283203125, -0.038421630859375, -0.047576904296875, 0.0282135009765625, 0.0129547119140625, 0.03570556640625, -0.0008521080017089844, -0.0034656524658203125, 0.01308441162109375, -0.007137298583984375, -0.018096923828125, -0.0236053466796875, -0.0009284019470214844, -0.037689208984375, 0.03662109375, 0.0372314453125, -0.0255126953125, -0.004070281982421875, 0.01349639892578125, -0.0173492431640625, 0.0175628662109375, -0.00738525390625, 0.01329803466796875, 0.0257568359375, 0.0011911392211914062, -0.011199951171875, 0.0009565353393554688, -0.0159149169921875, -0.0426025390625, -0.0384521484375, -0.037994384765625, -0.0482177734375, -0.013031005859375, -0.0186920166015625, -0.0151824951171875, -0.050537109375, -0.041595458984375, 0.01349639892578125, 0.0280914306640625, 0.011474609375, 0.01343536376953125, -0.033905029296875, -0.051910400390625, 0.055633544921875, 0.04302978515625, -0.00989532470703125, -0.01256561279296875, 0.0574951171875, 0.01337432861328125, -0.0400390625, 0.014892578125, -0.031158447265625, 0.0180206298828125, -0.03265380859375, 0.0229644775390625, -0.0210113525390625, -0.02392578125, 0.0751953125, -0.0259552001953125, 0.039459228515625, -0.053985595703125, 0.06329345703125, -0.035003662109375, 0.0097198486328125, 0.0113372802734375, -0.044708251953125, 0.01247406005859375, -0.00885009765625, -0.00783538818359375, -0.013427734375, 0.03997802734375, 0.034912109375, -0.0419921875, 0.048919677734375, -0.002620697021484375, -0.037689208984375, 0.0123291015625, -0.029266357421875, 0.0086517333984375, 0.006786346435546875, 0.01329803466796875, 0.0066375732421875, 0.01428985595703125, -0.00814056396484375, -0.04443359375, -0.03369140625, -0.01546478271484375, 0.03460693359375, -0.058837890625, -0.0037689208984375, -0.00963592529296875, -0.0287017822265625, 0.0999755859375, 0.0182647705078125, -0.0599365234375, 0.0416259765625, -0.0159759521484375, 0.00041103363037109375, 0.0291290283203125, -0.022613525390625, 0.0185394287109375, 0.01067352294921875, -0.0277252197265625, -0.020263671875, -0.039825439453125, -0.0028514862060546875, -0.0445556640625, -0.017608642578125, -0.024169921875, -0.00200653076171875, -0.00669097900390625, 0.0831298828125, 0.005855560302734375, 0.04034423828125, -0.0288543701171875, 0.01474761962890625, -0.02288818359375, 0.0474853515625, 0.005100250244140625, 0.00531005859375, -0.017364501953125, 0.060760498046875, 0.004058837890625, -0.03887939453125, 0.00086212158203125, 0.040771484375, 0.023345947265625, -0.0006899833679199219, -0.0231475830078125, 0.019073486328125, -0.017303466796875, 0.00557708740234375, 0.072998046875, -0.004604339599609375, -0.101318359375, -0.01849365234375, 0.04425048828125, 0.0272216796875, -0.053497314453125, -0.0096893310546875, -0.0303497314453125, -0.033721923828125, -0.0257415771484375, 0.0445556640625, -0.0265045166015625, -0.017608642578125, -0.0264129638671875, -0.05133056640625, -0.0173797607421875, 0.015716552734375, -0.0151519775390625, -0.01348114013671875, -0.01904296875, -0.037139892578125, 0.048828125, -0.002197265625, 0.01433563232421875, -0.0298919677734375, -0.0029163360595703125, 0.006366729736328125, -0.00811767578125, 0.06060791015625, 0.01513671875, -0.034454345703125, 0.01143646240234375, -0.0245513916015625, 0.016693115234375, 0.0333251953125, -0.03289794921875, -0.002655029296875, -0.050567626953125, 0.03594970703125, 0.039764404296875, 0.00896453857421875, 0.00939178466796875, -0.0215911865234375, 0.010650634765625, 0.01412200927734375, 0.08465576171875, -0.0236663818359375, 0.0498046875, 0.01378631591796875, 0.033416748046875, -0.0012493133544921875, 0.0251922607421875, -0.0044097900390625, -0.01428985595703125, 0.0310821533203125, 0.05548095703125, -0.0160064697265625, -0.0623779296875, 0.0601806640625, -0.05548095703125, 0.047882080078125, -0.0258941650390625, -0.0477294921875, 0.01165771484375, 0.004703521728515625, -0.0034542083740234375, 0.0196990966796875, 0.09149169921875, -0.029296875, 0.0214691162109375, -0.0180206298828125, 0.007808685302734375, 0.0015153884887695312, 0.036102294921875, -0.0418701171875, -0.02508544921875, -0.0212860107421875, 0.00885772705078125, 0.009185791015625, 0.00411224365234375, 0.037872314453125, -0.02313232421875, 0.01354217529296875, 0.0228271484375, 0.0101470947265625, 0.00614166259765625, 0.028289794921875, -0.042938232421875, -0.0256195068359375, 0.03179931640625, 0.0203399658203125, -0.0194854736328125, 0.0245208740234375, -0.0091552734375, 0.01001739501953125, 0.0509033203125, 0.0718994140625, -0.08575439453125, 0.0302276611328125, 0.0175323486328125, -0.01044464111328125, 0.0230865478515625, -0.00260162353515625, 0.02484130859375, 0.0008549690246582031, 0.018798828125, -0.01849365234375, -0.021697998046875, 0.006954193115234375, -0.030517578125, -0.017303466796875, -0.0275421142578125, 0.01654052734375, 0.005413055419921875, -0.03619384765625, 0.033905029296875, 0.006992340087890625, 0.01540374755859375, -0.041839599609375, -0.016998291015625, 0.0298919677734375, -0.01354217529296875, -0.08184814453125, 0.0187530517578125, -0.0221405029296875, 0.005252838134765625, -0.005023956298828125, -0.042327880859375, 0.0789794921875, 0.0251922607421875, 0.0012760162353515625, -0.035980224609375, -0.01421356201171875, 0.004791259765625, -0.028656005859375, -0.035919189453125, 0.00482177734375, 0.0345458984375, -0.040435791015625, 0.02960205078125, -0.026458740234375, -0.007297515869140625, -0.004547119140625, -0.01277923583984375, 0.05816650390625, -0.0692138671875, 0.01091766357421875, 0.040130615234375, 0.03662109375, -0.0098114013671875, 0.0237884521484375, 0.0011577606201171875, -0.033477783203125, -0.0259246826171875, 0.027679443359375, -0.0216064453125, 0.0164337158203125, 0.049468994140625, -0.0638427734375, 0.0650634765625, 0.0093231201171875, 0.0267486572265625, -0.011322021484375, 0.0154571533203125, 0.00014591217041015625, 0.0218505859375, -0.0462646484375, 0.05474853515625, 0.00418853759765625, 0.036163330078125, -0.0236663818359375, 0.00673675537109375, 0.0164031982421875, -0.004856109619140625, 0.055633544921875, 0.036163330078125, -0.041717529296875, -0.03765869140625, -0.053680419921875, -0.00803375244140625, -0.030059814453125, 0.058349609375, -0.005603790283203125, 0.0279693603515625, 0.034332275390625, -0.03582763671875, 0.024658203125, -0.006114959716796875, -0.0307159423828125, 0.019683837890625, 0.0005521774291992188, -0.0273284912109375, -0.0166015625, 0.0577392578125, -0.06817626953125, 0.003978729248046875, 0.0290985107421875, 0.0333251953125, 0.018218994140625, 0.04986572265625, 0.06390380859375, -0.007965087890625, 0.028076171875, -0.03265380859375, 0.06353759765625, 0.01486968994140625, 0.0080413818359375, 0.0458984375, 0.030181884765625, -0.0132904052734375, -0.005279541015625, 0.008087158203125, 0.003925323486328125, -0.0235443115234375, 0.06756591796875, 0.04461669921875, 0.034912109375, -0.01386260986328125, 0.0289764404296875, 0.029327392578125, 0.07122802734375, -0.05084228515625, -0.060394287109375, 0.010772705078125, -0.018402099609375, 0.0252227783203125, 0.050048828125, 0.0819091796875, -0.0006728172302246094, -0.019287109375, -0.023468017578125, 0.011138916015625, 0.006603240966796875, 0.04150390625, 0.00449371337890625, 0.014068603515625, -0.07470703125, -0.0012664794921875, -0.032745361328125, -0.018829345703125, 0.0278167724609375, 0.0167083740234375, 0.00804901123046875, 0.00690460205078125, 0.0311279296875, -0.01178741455078125, 0.00447845458984375, 0.00643157958984375, 0.0051727294921875, -0.00046634674072265625, -0.01340484619140625, -0.025115966796875, 0.01561737060546875, 0.03192138671875, 0.0005083084106445312, -0.005519866943359375, 0.00031113624572753906, -0.006999969482421875, -0.049102783203125, -0.02252197265625, 0.02557373046875, -0.0269012451171875, 0.019134521484375, -0.0182952880859375, 0.031280517578125, 0.023162841796875, 0.0029277801513671875, -0.0265045166015625, 0.0127410888671875, 0.05804443359375, -0.0237884521484375, 0.0396728515625, -0.0028514862060546875, -0.0228424072265625, 0.007354736328125, -0.00440216064453125, 0.039947509765625, -0.0034332275390625, -0.0648193359375, 0.0013189315795898438, -0.0394287109375, -0.0022754669189453125, 0.007198333740234375, 0.0193328857421875, 0.01172637939453125, 0.00505828857421875, 0.026763916015625, -0.0022983551025390625, -0.027374267578125, 0.041961669921875, 0.00041675567626953125, -0.0301971435546875, 0.03668212890625, 0.0009546279907226562, -0.0672607421875, -0.017578125, -0.0196380615234375, -0.01354217529296875, 0.038818359375, -0.0008573532104492188, 0.05126953125, 0.0219573974609375, -0.0307159423828125, 0.031585693359375, -0.044158935546875, -0.0279388427734375, 0.014923095703125, 0.0023899078369140625, -0.0011835098266601562, -0.0013036727905273438, -0.0789794921875, 0.049285888671875, -0.01532745361328125, 0.053955078125, 0.03997802734375, -0.0237579345703125, 0.01678466796875, 0.03851318359375, 0.013946533203125, -0.0120697021484375, -0.0203857421875, 0.00047659873962402344, 0.005519866943359375, 0.0270233154296875, 0.03631591796875, -0.0169525146484375, 0.03521728515625, -0.0169830322265625, -0.003917694091796875, -0.02154541015625, -0.007843017578125, -0.035797119140625, 0.0161285400390625, -0.0164642333984375, 0.03955078125, 0.0082855224609375, -0.0293426513671875, 0.0362548828125, 0.003910064697265625, -0.012786865234375, 0.005706787109375, 0.0171356201171875, 0.036712646484375, 0.001590728759765625, 0.06781005859375, 0.02020263671875, 0.01045989990234375, -0.0208587646484375, 0.0308074951171875, -0.0159454345703125, -0.08795166015625, -0.046234130859375, -0.06103515625, 0.00039958953857421875, 0.0298614501953125, -0.036865234375, -0.03472900390625, -0.04595947265625, -0.045989990234375, 0.0221405029296875, 0.0184478759765625, -0.03155517578125, 0.03570556640625, 0.00255584716796875, -0.033203125, 0.0001710653305053711, -0.0509033203125, 0.00237274169921875, 0.001522064208984375, -0.0185699462890625, -0.024444580078125, -0.0190887451171875, 0.0285491943359375, -0.0112457275390625, -0.0182647705078125, 0.010498046875, 0.0196990966796875, -0.04742431640625, 0.019775390625, -0.0203857421875, 0.053680419921875, -0.061279296875, -0.0347900390625, -0.01251220703125, 0.0136566162109375, 0.023895263671875, 0.0186614990234375, 0.00006109476089477539, 0.0132293701171875, -0.030731201171875, -0.007335662841796875, -0.004974365234375, 0.011810302734375, -0.029998779296875, -0.03631591796875, 0.0440673828125, 0.005619049072265625, -0.030029296875, -0.033935546875, 0.06915283203125, 0.0267486572265625, -0.08154296875, -0.021881103515625, -0.016815185546875, 0.00788116455078125, 0.00734710693359375, 0.03509521484375, -0.02801513671875, 0.0645751953125, 0.047698974609375, -0.041229248046875, 0.0201568603515625, 0.00024890899658203125, 0.0036258697509765625, 0.009002685546875, -0.016693115234375, 0.0362548828125, 0.036407470703125, -0.03515625, 0.040802001953125, 0.00627899169921875, 0.00734710693359375, -0.027252197265625, -0.02593994140625, 0.0360107421875, 0.00905609130859375, 0.0004987716674804688, -0.01386260986328125, -0.0247650146484375, -0.01373291015625, -0.056671142578125, -0.029296875, -0.034881591796875, -0.0325927734375, 0.0222930908203125, -0.08245849609375, 0.01201629638671875, -0.0118408203125, -0.0308990478515625, -0.017608642578125, 0.005924224853515625, -0.052825927734375, 0.0223541259765625, 0.02239990234375, 0.00897216796875, -0.0187225341796875, -0.0045166015625, 0.047821044921875, -0.0404052734375, -0.049560546875, 0.0225982666015625, 0.00620269775390625, -0.00852203369140625, -0.00829315185546875, 0.021575927734375, 0.00052642822265625, -0.033599853515625, 0.01439666748046875, 0.023162841796875, 0.048583984375, -0.028717041015625, -0.033477783203125, -0.004974365234375, 0.0058746337890625, 0.0008945465087890625, 0.0218048095703125, 0.01540374755859375, 0.00585174560546875, 0.00273895263671875, 0.01413726806640625, -0.015533447265625, 0.0231475830078125, -0.0263824462890625, 0.05035400390625, 0.0128936767578125, -0.026214599609375, 0.04571533203125, -0.0224609375, -0.005985260009765625, -0.018096923828125, 0.032470703125, -0.0858154296875, 0.0767822265625, 0.04632568359375, 0.01611328125, 0.05914306640625 ]
2874cfa94acf8fe1f9f3d10ec667b55dc1cc919f
Wordpress Stackexchange Q: Is there a good plugin for an online booking system..? I need to quote for a job, and I think due to the budget it will need a plugin. I’ve been having a look around online - can anyone recommend me a good quality plugin that allows for a booking system with calendar, and the ability to take card and paypal payments? The website will be for booking short break holidays. Any help, or some push in the right direction would be helpful! Dan A: There's a pretty good plugin called "Onlinebooking Calendar". It's a freemium model, where premium has different levels depending on the job and the budget. So far I've one outstanding project where I'll use it. Said in general, the code isn't written that bad, the UI is pretty good and the first dummy tests in a plain vanilla install didn't bring up any problems. From my side it's a +1 and I'll try it. The premium model is being released in May 2012 (I'm not affiliated with this plugin. Simply updating this for the community good).
Q: Is there a good plugin for an online booking system..? I need to quote for a job, and I think due to the budget it will need a plugin. I’ve been having a look around online - can anyone recommend me a good quality plugin that allows for a booking system with calendar, and the ability to take card and paypal payments? The website will be for booking short break holidays. Any help, or some push in the right direction would be helpful! Dan A: There's a pretty good plugin called "Onlinebooking Calendar". It's a freemium model, where premium has different levels depending on the job and the budget. So far I've one outstanding project where I'll use it. Said in general, the code isn't written that bad, the UI is pretty good and the first dummy tests in a plain vanilla install didn't bring up any problems. From my side it's a +1 and I'll try it. The premium model is being released in May 2012 (I'm not affiliated with this plugin. Simply updating this for the community good). A: Gravity Forms could do the trick. It's a form builder with a ton of features including the ability to accept payments. If you want to see it in action, take a look this junk removal service. It uses Gravity Forms to book service appointments...it could be tailored to accomodate pretty much anything. A: I have a client using appointy (search for appointy in plugins) then Go to http://www.appointy.com. It has a plugin for wordpress, but really its a web service that is embedded in your website. It works pretty well for when you want to directly book open spots. I have it on a driver's training website where trainees can book the actual driving time with an instructor or behind the wheel with a simulator. Be aware, there's quite a bit to set up for something like this. Plan on spending 1-3 hours setting up everything. You need to set up instructors (or hairdressers, or service people or a conference room or whatever you are booking). You also need to create text for your confirmation messages, and many other parts. Appointy even allows you to SMS text users a couple hours (or whatever interval you want) before the appointment. It has lots of features. Even with that amount of time, it would take CONSIDERABLY more time if you decided to code something like this. Okay, now that sounds great, it's also got it's downsides. For one, it can be a challenge to figure out on your own. It can be done, but it takes some dedicated work. Secondly, you may need support which is only an email system. You send the developer an email, they respond within a day or two, sometimes faster. They do provide documentation that covers most things and is continuing to improve. Once all of it's setup, you go to your dashboard and answer a couple questions and it embeds the whole system into your designated page. You do have -some- css customization possible, but there are limits. Most customization is done at their website. I would say it's a great system that works quite well, but has a lot of work to set it up. In the end, for my client it was worth it. Here's the client's page where you can see it working. http://www.drive-driverstraining.com It looks like they now have the page password protected for Schedule lessons, so I took a screenshot and put it on flickr here: http://www.flickr.com/photos/13023487@N04/6756508733/ I hope that helps. Best of luck, Larry A: Take a look at Netamatix because this one comes with a built in network of websites to also promote the property, it can take online payments linked to booked dates, has a shopping cart to add in other products and also allows scheduling and emailing of tasks associated with the booking. A: Chect out http://www.smartbookings.co.uk for online booking system providers they are very customisable unlike many other plugins / providers...
wordpress
{ "language": "en", "length": 667, "provenance": "stackexchange_00019.jsonl.gz:416370", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39793" }
[ 0.0325927734375, -0.000047326087951660156, -0.01535797119140625, -0.047515869140625, -0.0023593902587890625, -0.0242767333984375, -0.0106353759765625, -0.010406494140625, 0.0347900390625, -0.01065826416015625, -0.022308349609375, -0.02081298828125, -0.019622802734375, -0.0266876220703125, -0.0029010772705078125, -0.044219970703125, 0.0139312744140625, -0.006855010986328125, -0.0013637542724609375, -0.0242767333984375, 0.001995086669921875, -0.01464080810546875, -0.01947021484375, 0.045501708984375, 0.036102294921875, 0.0029850006103515625, 0.0330810546875, 0.0019359588623046875, 0.043182373046875, 0.0182952880859375, 0.0310516357421875, -0.0765380859375, 0.0142822265625, -0.0090789794921875, 0.042877197265625, 0.0195159912109375, -0.002826690673828125, -0.0031299591064453125, 0.01959228515625, 0.0113067626953125, 0.0323486328125, -0.0280303955078125, -0.088623046875, 0.046630859375, -0.03863525390625, -0.0263214111328125, 0.0005602836608886719, -0.0301513671875, 0.01128387451171875, -0.015960693359375, 0.01096343994140625, -0.01303863525390625, 0.0119476318359375, -0.020233154296875, -0.00783538818359375, 0.0016069412231445312, -0.05224609375, 0.037078857421875, 0.004364013671875, 0.0236968994140625, -0.0003216266632080078, 0.013702392578125, 0.0014467239379882812, -0.0094757080078125, -0.0230255126953125, -0.0186309814453125, -0.0616455078125, 0.026611328125, 0.039337158203125, -0.0161590576171875, -0.01425933837890625, -0.0001366138458251953, -0.028167724609375, 0.0096893310546875, -0.06512451171875, 0.01409912109375, 0.04010009765625, -0.0408935546875, -0.0005459785461425781, 0.00484466552734375, -0.0135650634765625, -0.0100250244140625, -0.04296875, -0.0350341796875, 0.018707275390625, 0.00801849365234375, -0.00501251220703125, -0.0007662773132324219, -0.04254150390625, -0.0221710205078125, -0.0263671875, 0.0024852752685546875, -0.06524658203125, 0.01340484619140625, 0.0019626617431640625, -0.0015430450439453125, 0.023223876953125, 0.018402099609375, -0.008758544921875, -0.0107269287109375, 0.00878143310546875, -0.032958984375, -0.01274871826171875, -0.0093231201171875, -0.006183624267578125, 0.060699462890625, 0.02862548828125, -0.004375457763671875, 0.00533294677734375, -0.01325225830078125, 0.0005145072937011719, 0.02557373046875, 0.00827789306640625, -0.00357818603515625, 0.005359649658203125, -0.0333251953125, -0.056396484375, 0.0635986328125, 0.012786865234375, 0.00800323486328125, -0.022613525390625, -0.00264739990234375, -0.04083251953125, -0.00592803955078125, -0.038177490234375, -0.053466796875, -0.01453399658203125, 0.03570556640625, -0.0148773193359375, -0.006072998046875, -0.01496124267578125, 0.039093017578125, 0.0179443359375, -0.0175323486328125, -0.05126953125, 0.006923675537109375, 0.0088653564453125, 0.036773681640625, 0.00762939453125, -0.01123809814453125, 0.0087127685546875, -0.0010776519775390625, 0.01953125, -0.00339508056640625, 0.022735595703125, -0.0242462158203125, -0.015380859375, 0.04974365234375, 0.0452880859375, 0.0400390625, 0.0384521484375, -0.0704345703125, -0.0117950439453125, 0.025054931640625, 0.019500732421875, 0.010711669921875, 0.0156097412109375, 0.00046634674072265625, 0.035003662109375, 0.0235443115234375, 0.00894927978515625, -0.0034923553466796875, 0.0001380443572998047, -0.07122802734375, -0.053497314453125, -0.0214385986328125, -0.038421630859375, 0.005855560302734375, 0.01284027099609375, -0.061126708984375, 0.00594329833984375, 0.0770263671875, 0.032135009765625, -0.0130157470703125, 0.0204925537109375, 0.0054779052734375, 0.0147552490234375, 0.00409698486328125, 0.050537109375, -0.0215911865234375, -0.034912109375, -0.026031494140625, 0.0999755859375, -0.0634765625, -0.03204345703125, 0.0165252685546875, 0.002452850341796875, 0.0280303955078125, -0.0035228729248046875, -0.0021209716796875, 0.06036376953125, 0.0076904296875, -0.00963592529296875, 0.031768798828125, 0.03802490234375, -0.00485992431640625, -0.035888671875, 0.0078887939453125, 0.0130615234375, -0.076171875, 0.006954193115234375, 0.01274871826171875, -0.0120849609375, -0.004856109619140625, -0.0119171142578125, 0.018035888671875, -0.010162353515625, 0.030181884765625, 0.01068878173828125, -0.0028934478759765625, -0.00223541259765625, -0.009490966796875, -0.0038547515869140625, -0.02923583984375, -0.025146484375, 0.024261474609375, 0.00029277801513671875, 0.034454345703125, 0.0108642578125, 0.028656005859375, 0.045654296875, -0.048553466796875, 0.0531005859375, 0.049774169921875, 0.0015077590942382812, 0.020355224609375, -0.022247314453125, 0.013031005859375, -0.0183868408203125, 0.0205535888671875, -0.01491546630859375, 0.0168609619140625, 0.03216552734375, 0.033477783203125, -0.0281829833984375, -0.0174560546875, -0.0018672943115234375, -0.0416259765625, 0.0146942138671875, 0.047149658203125, -0.0017108917236328125, 0.0306549072265625, -0.0209197998046875, 0.043670654296875, -0.050689697265625, -0.05963134765625, 0.006359100341796875, 0.0204315185546875, -0.0207061767578125, 0.0292816162109375, -0.06793212890625, 0.0237274169921875, 0.04095458984375, 0.0101165771484375, -0.0185089111328125, 0.06195068359375, -0.010345458984375, -0.0185394287109375, 0.0247802734375, 0.006195068359375, 0.006755828857421875, 0.0186004638671875, 0.00881195068359375, 0.004261016845703125, -0.0122833251953125, -0.012115478515625, 0.015960693359375, 0.002407073974609375, 0.04595947265625, -0.02301025390625, -0.0229949951171875, -0.0816650390625, 0.0123291015625, 0.01629638671875, 0.0374755859375, 0.0284881591796875, -0.041778564453125, -0.029022216796875, 0.04400634765625, 0.0291290283203125, -0.0089111328125, 0.0201568603515625, 0.0241546630859375, -0.003818511962890625, -0.0025634765625, -0.032196044921875, 0.01514434814453125, -0.00022792816162109375, 0.00001430511474609375, -0.08538818359375, -0.0323486328125, -0.0269012451171875, -0.07086181640625, 0.0675048828125, -0.023101806640625, -0.0740966796875, 0.005603790283203125, -0.0131988525390625, 0.042999267578125, -0.0350341796875, -0.00785064697265625, 0.037109375, -0.005146026611328125, -0.021270751953125, -0.01219940185546875, -0.0097198486328125, 0.0005407333374023438, -0.01396942138671875, -0.021240234375, -0.006771087646484375, -0.041168212890625, 0.0080413818359375, 0.0197601318359375, 0.10235595703125, -0.049407958984375, -0.06597900390625, 0.0004286766052246094, 0.026641845703125, -0.046875, -0.02239990234375, -0.042877197265625, -0.00876617431640625, 0.0230712890625, 0.0168914794921875, 0.0026264190673828125, -0.00954437255859375, 0.04351806640625, 0.01702880859375, -0.04425048828125, -0.0275115966796875, -0.03564453125, -0.06585693359375, -0.035308837890625, 0.0118255615234375, 0.00838470458984375, 0.01343536376953125, -0.00249481201171875, 0.07391357421875, 0.01043701171875, -0.0595703125, -0.02105712890625, 0.0323486328125, -0.0101318359375, 0.01103973388671875, 0.006656646728515625, 0.048858642578125, -0.031585693359375, 0.0267486572265625, 0.01519012451171875, 0.017303466796875, -0.032958984375, -0.039459228515625, -0.0201568603515625, 0.035736083984375, -0.0306854248046875, 0.03643798828125, 0.047882080078125, -0.0003085136413574219, -0.03668212890625, -0.05328369140625, 0.050018310546875, -0.004322052001953125, 0.02362060546875, -0.044189453125, -0.04046630859375, -0.01519012451171875, 0.01168060302734375, -0.0208282470703125, -0.004108428955078125, -0.00945281982421875, -0.0029163360595703125, -0.0150146484375, 0.03082275390625, -0.010223388671875, 0.005580902099609375, -0.00018990039825439453, 0.04345703125, 0.0001455545425415039, -0.000560760498046875, 0.013031005859375, 0.027679443359375, 0.026123046875, -0.002838134765625, -0.0187530517578125, -0.0792236328125, 0.06982421875, -0.02471923828125, 0.00792694091796875, -0.0904541015625, -0.043060302734375, -0.03436279296875, 0.12646484375, -0.0083465576171875, 0.009796142578125, 0.018218994140625, -0.01763916015625, -0.00203704833984375, 0.0167388916015625, -0.091064453125, 0.005374908447265625, -0.0631103515625, -0.031890869140625, -0.01277923583984375, -0.053802490234375, -0.003818511962890625, -0.0239105224609375, -0.043304443359375, -0.029541015625, 0.02410888671875, -0.05548095703125, 0.0169525146484375, 0.00809478759765625, 0.0242919921875, -0.04412841796875, -0.004852294921875, -0.026031494140625, -0.033966064453125, -0.0106201171875, -0.01739501953125, 0.042266845703125, 0.0450439453125, -0.046600341796875, 0.0257415771484375, 0.032501220703125, 0.031982421875, 0.056396484375, -0.0191192626953125, -0.01561737060546875, 0.0099639892578125, -0.0239715576171875, 0.008026123046875, -0.014923095703125, -0.0059051513671875, -0.01323699951171875, -0.01226043701171875, 0.0188751220703125, -0.02215576171875, 0.00457763671875, -0.0012607574462890625, -0.0230712890625, 0.0122222900390625, -0.009490966796875, 0.0062408447265625, 0.0247955322265625, -0.022796630859375, 0.00450897216796875, -0.0088043212890625, -0.01214599609375, 0.024749755859375, -0.0369873046875, -0.00493621826171875, 0.0285491943359375, 0.07281494140625, 0.0210418701171875, -0.00936126708984375, -0.046966552734375, 0.024200439453125, 0.047210693359375, 0.070556640625, 0.01174163818359375, -0.036865234375, -0.06402587890625, 0.101318359375, 0.0219879150390625, -0.00235748291015625, -0.032806396484375, 0.03857421875, 0.0233917236328125, 0.005207061767578125, -0.00711822509765625, 0.01141357421875, 0.01207733154296875, -0.0024509429931640625, -0.01242828369140625, 0.0019664764404296875, 0.0181884765625, 0.0237274169921875, 0.0015306472778320312, -0.006221771240234375, -0.0291595458984375, -0.032867431640625, 0.01146697998046875, 0.061431884765625, -0.0033416748046875, 0.00537872314453125, 0.006389617919921875, 0.0045318603515625, -0.01335906982421875, -0.01513671875, 0.019378662109375, 0.0182037353515625, 0.00952911376953125, 0.020294189453125, 0.010162353515625, -0.01157379150390625, -0.02093505859375, 0.005161285400390625, -0.0010538101196289062, -0.00968170166015625, -0.054473876953125, -0.05316162109375, 0.0104827880859375, 0.0192413330078125, 0.021820068359375, -0.035003662109375, 0.03179931640625, 0.0482177734375, 0.032745361328125, -0.01177978515625, -0.053070068359375, 0.053131103515625, -0.029693603515625, -0.05865478515625, -0.035919189453125, -0.0186767578125, 0.01128387451171875, 0.016571044921875, -0.03753662109375, 0.01247406005859375, -0.012847900390625, 0.07464599609375, 0.05694580078125, 0.00382232666015625, 0.013916015625, 0.00450897216796875, -0.0059051513671875, -0.0255584716796875, -0.0280609130859375, -0.00724029541015625, -0.04345703125, 0.00701904296875, -0.03131103515625, -0.01404571533203125, 0.02056884765625, 0.053741455078125, 0.0645751953125, -0.049774169921875, -0.0142059326171875, 0.052154541015625, 0.043792724609375, -0.044525146484375, -0.04449462890625, 0.0080413818359375, 0.0816650390625, 0.020477294921875, -0.0003733634948730469, -0.012847900390625, -0.00894927978515625, 0.0340576171875, -0.032196044921875, -0.0159759521484375, -0.0107269287109375, -0.045806884765625, -0.0226898193359375, -0.004878997802734375, -0.00543212890625, -0.051788330078125, 0.0178375244140625, 0.0028591156005859375, 0.01837158203125, -0.0237884521484375, 0.0364990234375, -0.0362548828125, -0.0212554931640625, -0.06805419921875, 0.0010118484497070312, 0.025238037109375, 0.022369384765625, -0.07769775390625, -0.031890869140625, -0.048919677734375, -0.04010009765625, -0.07232666015625, -0.0038738250732421875, -0.06085205078125, 0.0406494140625, 0.0166778564453125, 0.0179901123046875, -0.024505615234375, -0.061126708984375, 0.001617431640625, 0.0234832763671875, 0.0262298583984375, 0.0411376953125, -0.010528564453125, 0.035125732421875, 0.037628173828125, 0.004070281982421875, 0.00800323486328125, 0.017791748046875, 0.00359344482421875, -0.012115478515625, -0.00547027587890625, -0.04241943359375, 0.007904052734375, -0.03790283203125, 0.0168914794921875, 0.04400634765625, 0.04302978515625, 0.01261138916015625, -0.0082244873046875, -0.0055084228515625, 0.0089111328125, -0.018096923828125, 0.05712890625, 0.01355743408203125, -0.0440673828125, 0.0771484375, -0.045562744140625, 0.0159149169921875, 0.01326751708984375, 0.0244903564453125, 0.0158233642578125, -0.049652099609375, 0.027740478515625, 0.023040771484375, 0.00917816162109375, 0.0159149169921875, 0.054962158203125, -0.01273345947265625, 0.021728515625, 0.0242767333984375, 0.0171661376953125, 0.023895263671875, 0.0192413330078125, 0.00022900104522705078, -0.0438232421875, 0.032745361328125, -0.009521484375, -0.02197265625, 0.0240631103515625, -0.0302886962890625, 0.034515380859375, 0.023681640625, 0.0282745361328125, -0.08868408203125, 0.0229949951171875, -0.00620269775390625, -0.010986328125, 0.040924072265625, 0.00345611572265625, 0.021209716796875, 0.0183258056640625, 0.02154541015625, 0.02777099609375, 0.0027618408203125, 0.0240631103515625, 0.01154327392578125, 0.0027866363525390625, 0.00677490234375, 0.05389404296875, 0.015167236328125, -0.08197021484375, 0.015655517578125, 0.0192413330078125, 0.0018720626831054688, -0.0261077880859375, 0.033203125, -0.0018491744995117188, -0.0014791488647460938, -0.0256195068359375, 0.0501708984375, -0.019134521484375, 0.01419830322265625, -0.0130157470703125, -0.01593017578125, 0.0421142578125, 0.01519775390625, -0.006572723388671875, -0.024993896484375, 0.01280975341796875, 0.006504058837890625, 0.051361083984375, -0.0215911865234375, -0.00194549560546875, 0.0116729736328125, -0.0267333984375, -0.0018320083618164062, -0.01395416259765625, 0.0079345703125, 0.007503509521484375, -0.0008788108825683594, 0.0276031494140625, -0.030059814453125, -0.018646240234375, 0.01898193359375, -0.0219573974609375, 0.004688262939453125, 0.04986572265625, 0.035400390625, -0.0287933349609375, -0.01904296875, 0.05401611328125, -0.0291290283203125, 0.00426483154296875, 0.06683349609375, -0.01410675048828125, 0.056640625, -0.0067291259765625, -0.01422882080078125, -0.0003228187561035156, 0.0323486328125, 0.001720428466796875, 0.019866943359375, -0.034759521484375, 0.036224365234375, -0.026824951171875, 0.0120849609375, -0.0264129638671875, 0.00830841064453125, -0.00787353515625, -0.01358795166015625, 0.08349609375, 0.029052734375, -0.0309295654296875, -0.006504058837890625, 0.03997802734375, 0.01052093505859375, -0.01983642578125, 0.042205810546875, -0.0007071495056152344, -0.0234222412109375, 0.012786865234375, 0.045257568359375, 0.06732177734375, -0.0511474609375, -0.0308837890625, 0.00646209716796875, -0.034515380859375, -0.0645751953125, 0.01324462890625, -0.056884765625, -0.00958251953125, -0.0048065185546875, -0.0294647216796875, -0.0255279541015625, 0.013702392578125, 0.0173492431640625, 0.01480865478515625, -0.000530242919921875, -0.043304443359375, -0.0090789794921875, 0.03546142578125, 0.005710601806640625, -0.03155517578125, 0.0204010009765625, 0.0153045654296875, -0.057159423828125, -0.01537322998046875, -0.01250457763671875, 0.0171356201171875, -0.004482269287109375, 0.01297760009765625, -0.0261077880859375, 0.008148193359375, -0.07025146484375, -0.0372314453125, 0.06439208984375, 0.0379638671875, -0.004550933837890625, -0.0567626953125, 0.0227203369140625, 0.00445556640625, 0.02423095703125, 0.026123046875, 0.04931640625, -0.11492919921875, -0.03460693359375, 0.02142333984375, 0.01201629638671875, 0.0137176513671875, -0.003093719482421875, 0.02166748046875, 0.021148681640625, -0.046295166015625, 0.045440673828125, 0.014251708984375, 0.0023784637451171875, -0.0145111083984375, -0.0210113525390625, -0.01219940185546875, 0.01534271240234375, -0.01617431640625, 0.0311126708984375, 0.036407470703125, 0.035919189453125, 0.003665924072265625, -0.0278472900390625, -0.012420654296875, -0.079345703125, 0.017974853515625, 0.020965576171875, -0.00215911865234375, 0.04998779296875, 0.0225372314453125, 0.049468994140625, 0.033843994140625, -0.00037026405334472656, 0.06695556640625, -0.0094451904296875, -0.0272369384765625, -0.02618408203125, -0.01328277587890625, -0.005962371826171875, -0.005344390869140625, 0.004131317138671875, 0.0592041015625, -0.027923583984375, -0.0161895751953125, 0.015655517578125, -0.0009150505065917969, -0.034820556640625, -0.0160675048828125, -0.041229248046875, 0.020538330078125, -0.01294708251953125, -0.040802001953125, -0.0270233154296875, -0.011627197265625, -0.0093536376953125, 0.0005779266357421875, 0.020751953125, 0.006084442138671875, 0.0138092041015625, -0.0028076171875, 0.02618408203125, 0.044097900390625, -0.046905517578125, -0.0202484130859375, -0.018157958984375, 0.02630615234375, -0.0260009765625, 0.0008172988891601562, -0.002246856689453125, -0.00521087646484375, 0.034393310546875, 0.01250457763671875, 0.036407470703125, -0.0128326416015625, 0.0105133056640625, 0.01100921630859375, -0.0291748046875, -0.0113067626953125, 0.018951416015625, -0.0203399658203125, -0.042938232421875, -0.033599853515625, 0.009521484375, -0.01438140869140625, -0.0276336669921875, 0.0123291015625, -0.033294677734375, -0.04974365234375, -0.038177490234375, 0.04437255859375, 0.0628662109375, 0.040863037109375, -0.022979736328125, -0.01470184326171875, -0.0031948089599609375, -0.03851318359375, 0.013946533203125, 0.008575439453125, 0.032257080078125, 0.0295867919921875, -0.006992340087890625, -0.008514404296875, 0.0035533905029296875, -0.02490234375, 0.01355743408203125, 0.041748046875, -0.0282440185546875, -0.0094146728515625, 0.02020263671875, -0.0190887451171875, -0.0210113525390625, 0.026123046875, 0.01441192626953125, 0.004642486572265625, -0.016815185546875, 0.027435302734375, 0.0286865234375, 0.040313720703125, -0.034393310546875, -0.0030574798583984375, 0.038818359375, 0.005062103271484375, 0.00017261505126953125, -0.06689453125, -0.021392822265625, -0.034637451171875, -0.01065826416015625, 0.01091766357421875, -0.0092926025390625, -0.04901123046875, -0.029632568359375, -0.02056884765625, -0.00768280029296875, -0.01727294921875, -0.004520416259765625, 0.0013065338134765625, -0.0133056640625, -0.00885009765625, -0.046356201171875, 0.03143310546875, 0.0257415771484375, 0.0262908935546875, -0.0711669921875, -0.027008056640625, 0.0003561973571777344, 0.022216796875, -0.0217132568359375, -0.007747650146484375, 0.03564453125, 0.00194549560546875, -0.045684814453125, -0.0127716064453125, -0.0217132568359375, 0.0234375, -0.005054473876953125, -0.0200958251953125, -0.0033397674560546875, 0.020843505859375, -0.02276611328125, -0.0081787109375, 0.015228271484375, 0.0172576904296875, -0.057342529296875, -0.02069091796875, -0.031585693359375, -0.027587890625, -0.03863525390625, -0.028289794921875, 0.1123046875, -0.006473541259765625, -0.0084228515625, -0.00417327880859375, 0.041534423828125, -0.0028247833251953125, 0.030120849609375, 0.0144500732421875, -0.005260467529296875, -0.012908935546875, -0.019317626953125, 0.0116424560546875, -0.02349853515625, 0.0208740234375, -0.0261077880859375, -0.062225341796875, 0.000015079975128173828, 0.01056671142578125, -0.0008525848388671875, 0.003696441650390625, -0.00787353515625, 0.01314544677734375, 0.016815185546875, -0.031707763671875, -0.052093505859375, -0.002620697021484375, 0.01337432861328125, 0.0040130615234375, -0.007476806640625, -0.0274658203125, 0.01690673828125, 0.04315185546875, 0.06732177734375, 0.01605224609375, -0.05572509765625, 0.0017290115356445312, -0.0265045166015625, -0.0100250244140625, -0.0006184577941894531, -0.000732421875, -0.031463623046875, 0.0033359527587890625, -0.00418853759765625, -0.0291748046875, 0.015289306640625, 0.044586181640625, -0.0175323486328125, 0.006832122802734375, 0.035369873046875, -0.0416259765625, -0.0246734619140625, 0.05474853515625, 0.04107666015625, -0.040313720703125, -0.006359100341796875, 0.01432037353515625, -0.038055419921875, 0.0240478515625, -0.00505828857421875, -0.0291290283203125, 0.0257415771484375, -0.01132965087890625, -0.00437164306640625, 0.007785797119140625, -0.000537872314453125, 0.008880615234375, 0.019622802734375, 0.00498199462890625, 0.0192108154296875, -0.0006957054138183594, 0.006847381591796875, -0.01195526123046875, 0.050994873046875, 0.016510009765625, 0.02020263671875, 0.0509033203125, -0.031494140625, -0.02117919921875, 0.061676025390625, 0.0017871856689453125, -0.063720703125, -0.01305389404296875, -0.0379638671875, 0.00580596923828125, 0.0161895751953125, 0.025909423828125, -0.0159454345703125, -0.00968170166015625, -0.0777587890625, 0.01512908935546875, -0.005947113037109375 ]
8354da7d615519e69a891affd2615fd050e06c77
Wordpress Stackexchange Q: register_activation_hook and updating I have used: register_activation_hook(__FILE__, 'CrayonWP::install'); In install() I would like to check the plugin version being installed, and if it is below a certain version, I would like to alter the existing database model to the new format. How would I determine the version being installed? A: register_activation_hook() is only called when the user activates the plugin. It is not called after a plugin upgrade. The preferred method of handling upgrades is using register_activation_hook() to store the current version in the wp_options table and then checking it on each admin page load.
Q: register_activation_hook and updating I have used: register_activation_hook(__FILE__, 'CrayonWP::install'); In install() I would like to check the plugin version being installed, and if it is below a certain version, I would like to alter the existing database model to the new format. How would I determine the version being installed? A: register_activation_hook() is only called when the user activates the plugin. It is not called after a plugin upgrade. The preferred method of handling upgrades is using register_activation_hook() to store the current version in the wp_options table and then checking it on each admin page load.
wordpress
{ "language": "en", "length": 96, "provenance": "stackexchange_00019.jsonl.gz:416376", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39813" }
[ 0.0235595703125, 0.012786865234375, -0.0740966796875, -0.058929443359375, 0.0458984375, -0.051605224609375, 0.007228851318359375, 0.01358795166015625, 0.01953125, 0.010955810546875, -0.058624267578125, 0.02667236328125, -0.06292724609375, 0.00603485107421875, -0.03143310546875, -0.04254150390625, 0.03271484375, -0.0278472900390625, 0.0012598037719726562, -0.01020050048828125, -0.01210784912109375, 0.025482177734375, 0.01251983642578125, 0.0537109375, 0.0201416015625, -0.0253753662109375, 0.08428955078125, -0.032958984375, 0.0249786376953125, -0.0289154052734375, 0.0203399658203125, -0.0159912109375, -0.00743865966796875, 0.03472900390625, 0.0224609375, 0.01477813720703125, 0.038238525390625, 0.01175689697265625, 0.0272064208984375, 0.0254669189453125, 0.040191650390625, -0.0276947021484375, 0.045166015625, -0.0256500244140625, 0.006336212158203125, -0.01995849609375, 0.059234619140625, -0.015045166015625, 0.0179290771484375, -0.04974365234375, 0.025787353515625, -0.01056671142578125, 0.040985107421875, -0.02862548828125, -0.0210418701171875, 0.0113677978515625, -0.057373046875, 0.08782958984375, 0.0167236328125, 0.06829833984375, -0.0027179718017578125, 0.03765869140625, -0.032135009765625, -0.07647705078125, 0.036376953125, -0.0069427490234375, 0.0007462501525878906, 0.0295867919921875, -0.056915283203125, 0.023345947265625, 0.04803466796875, -0.05047607421875, -0.0180206298828125, 0.0038280487060546875, -0.01190948486328125, -0.0046844482421875, 0.000013887882232666016, -0.0254974365234375, 0.0198974609375, 0.0178680419921875, 0.0255889892578125, 0.0012121200561523438, 0.038604736328125, -0.01557159423828125, 0.00746917724609375, 0.0120391845703125, 0.0022602081298828125, -0.017486572265625, -0.03302001953125, -0.00804901123046875, -0.0280609130859375, 0.03924560546875, 0.00199127197265625, -0.053863525390625, -0.032073974609375, -0.0296173095703125, 0.0340576171875, 0.0263671875, -0.0107879638671875, -0.007740020751953125, 0.00746917724609375, -0.05169677734375, 0.025604248046875, -0.0267486572265625, 0.00928497314453125, 0.0704345703125, 0.0057373046875, -0.038299560546875, 0.007167816162109375, 0.006740570068359375, 0.01019287109375, 0.003322601318359375, -0.01203155517578125, -0.0274505615234375, 0.002780914306640625, 0.01270294189453125, -0.049468994140625, 0.041168212890625, 0.0062255859375, 0.010650634765625, 0.00870513916015625, 0.025115966796875, 0.015869140625, -0.06695556640625, -0.0164337158203125, -0.04315185546875, -0.028778076171875, -0.026336669921875, -0.054290771484375, 0.038726806640625, -0.006671905517578125, 0.01480865478515625, 0.031524658203125, 0.0034160614013671875, -0.03253173828125, -0.007747650146484375, 0.031494140625, 0.0533447265625, 0.0034618377685546875, 0.0018472671508789062, -0.01432037353515625, -0.03619384765625, -0.02325439453125, -0.0009441375732421875, 0.0217742919921875, -0.008056640625, -0.01294708251953125, 0.017120361328125, 0.0266876220703125, 0.01468658447265625, 0.0214996337890625, -0.055389404296875, 0.0008935928344726562, 0.019775390625, 0.03717041015625, 0.0025463104248046875, 0.04791259765625, -0.01641845703125, 0.0010890960693359375, -0.01183319091796875, 0.0100860595703125, -0.03662109375, -0.0330810546875, -0.008148193359375, -0.045379638671875, 0.053802490234375, -0.005001068115234375, 0.006237030029296875, 0.0308685302734375, 0.0242156982421875, 0.0033416748046875, -0.0226593017578125, 0.021392822265625, 0.009613037109375, -0.00592041015625, 0.0160980224609375, 0.00164031982421875, 0.0017461776733398438, 0.054473876953125, -0.022430419921875, -0.033660888671875, -0.0121917724609375, 0.1165771484375, -0.041046142578125, -0.04345703125, 0.017547607421875, -0.006969451904296875, 0.00936126708984375, 0.03057861328125, -0.001110076904296875, 0.02117919921875, 0.00923919677734375, -0.05364990234375, 0.0245361328125, -0.0282745361328125, 0.0140533447265625, 0.0242462158203125, 0.032012939453125, -0.01076507568359375, -0.0145721435546875, 0.01383209228515625, 0.023834228515625, -0.0074920654296875, -0.0101318359375, -0.06439208984375, 0.00855255126953125, -0.011505126953125, 0.038421630859375, 0.019012451171875, 0.040252685546875, -0.00435638427734375, 0.01198577880859375, -0.02081298828125, 0.0121002197265625, -0.0045318603515625, -0.0017538070678710938, -0.041168212890625, 0.031524658203125, 0.006500244140625, 0.046783447265625, -0.003093719482421875, -0.0119781494140625, 0.0092620849609375, -0.033355712890625, -0.0012407302856445312, -0.004791259765625, -0.01462554931640625, 0.0027065277099609375, 0.0120086669921875, 0.008056640625, 0.032135009765625, 0.0174102783203125, -0.004825592041015625, -0.00864410400390625, -0.0191650390625, -0.01233673095703125, 0.0015878677368164062, -0.12371826171875, 0.0254669189453125, 0.06280517578125, 0.0216522216796875, 0.0543212890625, -0.0186767578125, -0.01398468017578125, 0.052520751953125, -0.0367431640625, -0.0021839141845703125, 0.004268646240234375, -0.0430908203125, 0.02606201171875, 0.0280914306640625, 0.055511474609375, -0.01105499267578125, 0.039031982421875, -0.031463623046875, 0.022125244140625, -0.0296630859375, -0.0260009765625, 0.0171661376953125, -0.0242919921875, 0.019195556640625, -0.051544189453125, -0.043304443359375, -0.0099945068359375, -0.015106201171875, -0.0272216796875, 0.0179443359375, 0.0181121826171875, 0.02056884765625, -0.05059814453125, 0.0204010009765625, 0.017303466796875, -0.00435638427734375, 0.01116180419921875, -0.01084136962890625, -0.01270294189453125, -0.0147247314453125, 0.00457763671875, -0.00942230224609375, -0.017059326171875, -0.041046142578125, -0.0221710205078125, 0.004955291748046875, -0.00360870361328125, -0.0202178955078125, -0.07476806640625, 0.03955078125, 0.0075531005859375, -0.03619384765625, -0.0221099853515625, 0.0262603759765625, 0.0282135009765625, -0.0128326416015625, 0.0031719207763671875, -0.0303802490234375, -0.008087158203125, -0.017059326171875, -0.0222625732421875, 0.028656005859375, -0.044403076171875, 0.001804351806640625, 0.048675537109375, -0.01268768310546875, -0.00916290283203125, 0.01812744140625, -0.035614013671875, 0.0172576904296875, -0.01165771484375, -0.01861572265625, 0.031402587890625, -0.0894775390625, 0.043792724609375, 0.0295257568359375, 0.05816650390625, -0.026397705078125, -0.050445556640625, -0.018463134765625, 0.0101776123046875, -0.06982421875, -0.0716552734375, -0.1092529296875, -0.055694580078125, 0.06103515625, -0.0086212158203125, 0.004177093505859375, -0.0032196044921875, 0.00408935546875, 0.05035400390625, -0.0203704833984375, -0.005672454833984375, -0.01160430908203125, -0.036285400390625, -0.052886962890625, 0.031982421875, -0.0004024505615234375, 0.03045654296875, 0.003635406494140625, 0.05865478515625, -0.00133514404296875, -0.04608154296875, 0.00527191162109375, -0.03497314453125, -0.016448974609375, 0.01340484619140625, 0.0127716064453125, -0.020904541015625, -0.003566741943359375, 0.007732391357421875, -0.0063629150390625, 0.00748443603515625, 0.002239227294921875, -0.02642822265625, 0.0197296142578125, -0.0196075439453125, 0.03936767578125, 0.0129852294921875, -0.049407958984375, -0.0238494873046875, 0.03509521484375, -0.055023193359375, 0.0161285400390625, 0.006404876708984375, -0.01172637939453125, -0.02398681640625, -0.0183258056640625, -0.016357421875, 0.031646728515625, -0.0297088623046875, -0.0235595703125, -0.01094818115234375, 0.03948974609375, -0.01140594482421875, -0.01308441162109375, -0.035797119140625, -0.052764892578125, -0.02752685546875, 0.020904541015625, -0.011749267578125, 0.00904083251953125, 0.0054931640625, -0.0076141357421875, -0.03558349609375, 0.03192138671875, -0.040679931640625, -0.0280609130859375, 0.03204345703125, -0.045623779296875, 0.01110076904296875, -0.04327392578125, -0.0180511474609375, -0.0125274658203125, 0.09283447265625, -0.031707763671875, -0.02276611328125, 0.009002685546875, 0.004367828369140625, -0.032257080078125, -0.0032749176025390625, -0.04901123046875, -0.003772735595703125, -0.0693359375, 0.00481414794921875, 0.00315093994140625, -0.0275421142578125, -0.01413726806640625, 0.019287109375, -0.05889892578125, -0.029022216796875, 0.0296173095703125, -0.0041961669921875, 0.007568359375, 0.063232421875, -0.02984619140625, 0.054534912109375, -0.034332275390625, -0.015411376953125, -0.08056640625, -0.01306915283203125, -0.03515625, 0.051177978515625, 0.03302001953125, -0.01082611083984375, -0.021636962890625, 0.03704833984375, -0.00685882568359375, 0.0128326416015625, -0.0029964447021484375, 0.031280517578125, -0.018402099609375, -0.056427001953125, -0.0209197998046875, -0.0374755859375, 0.005382537841796875, -0.0222015380859375, -0.04571533203125, -0.0139312744140625, -0.0278778076171875, 0.0048065185546875, -0.004241943359375, -0.0301666259765625, -0.01045989990234375, 0.011474609375, 0.01288604736328125, 0.00614166259765625, -0.0028705596923828125, -0.0006651878356933594, 0.018035888671875, 0.0008611679077148438, 0.0256195068359375, -0.055572509765625, -0.002201080322265625, 0.0040435791015625, 0.06298828125, 0.0186004638671875, 0.01003265380859375, 0.006473541259765625, 0.002017974853515625, 0.0306549072265625, 0.0281829833984375, 0.0230560302734375, 0.033477783203125, -0.00714111328125, -0.0125732421875, 0.0312042236328125, -0.0133819580078125, 0.0254974365234375, 0.022216796875, 0.0245208740234375, -0.0129241943359375, -0.005084991455078125, 0.01751708984375, -0.01318359375, 0.0023193359375, -0.015350341796875, -0.0225830078125, 0.005191802978515625, 0.034393310546875, -0.03515625, 0.067138671875, -0.0109710693359375, -0.0394287109375, 0.027618408203125, -0.012481689453125, -0.0179595947265625, -0.0225830078125, 0.00616455078125, -0.04278564453125, -0.03631591796875, -0.00006788969039916992, -0.006702423095703125, 0.06292724609375, -0.00258636474609375, 0.045196533203125, -0.01032257080078125, -0.004405975341796875, -0.048492431640625, -0.006916046142578125, 0.01262664794921875, -0.0072174072265625, -0.06591796875, 0.0192108154296875, 0.00115203857421875, 0.02435302734375, 0.047607421875, -0.007965087890625, 0.046539306640625, 0.026092529296875, -0.0135955810546875, -0.0235595703125, -0.01280975341796875, -0.0081939697265625, -0.05963134765625, -0.0263824462890625, 0.006916046142578125, -0.03143310546875, 0.0132904052734375, 0.00267791748046875, 0.02581787109375, -0.0171356201171875, -0.005222320556640625, 0.0694580078125, 0.06573486328125, -0.02496337890625, 0.00818634033203125, 0.0061492919921875, 0.0146636962890625, -0.063232421875, -0.00133514404296875, -0.026123046875, -0.019195556640625, -0.0029239654541015625, 0.01332855224609375, -0.0194854736328125, -0.0006270408630371094, 0.0447998046875, 0.006195068359375, 0.01229095458984375, 0.058074951171875, -0.0157470703125, -0.07354736328125, -0.0211029052734375, 0.052001953125, 0.067626953125, -0.0567626953125, -0.01522064208984375, -0.0064544677734375, -0.022552490234375, 0.0098724365234375, -0.01849365234375, -0.0266571044921875, 0.0186614990234375, 0.031494140625, 0.024444580078125, -0.0216217041015625, -0.01389312744140625, 0.0159149169921875, 0.032318115234375, -0.040618896484375, -0.008026123046875, 0.05181884765625, -0.02032470703125, 0.021881103515625, -0.042999267578125, -0.00017464160919189453, -0.06756591796875, -0.00830078125, 0.0643310546875, 0.0469970703125, -0.0452880859375, -0.0186767578125, -0.025726318359375, -0.00948333740234375, -0.016845703125, -0.05047607421875, -0.018646240234375, -0.0006961822509765625, 0.00732421875, 0.0090484619140625, 0.0018815994262695312, -0.006816864013671875, 0.01230621337890625, 0.0224609375, 0.0121917724609375, 0.009246826171875, 0.017578125, 0.0487060546875, -0.01763916015625, 0.03759765625, 0.031524658203125, 0.016448974609375, -0.03851318359375, -0.01230621337890625, -0.00405120849609375, 0.02117919921875, -0.002208709716796875, -0.00115966796875, 0.030853271484375, -0.045867919921875, 0.0290679931640625, -0.0097808837890625, -0.038543701171875, 0.01165008544921875, -0.000045180320739746094, -0.0017251968383789062, 0.01523590087890625, 0.04718017578125, -0.037261962890625, 0.02337646484375, -0.059906005859375, -0.0369873046875, 0.0202484130859375, 0.0611572265625, -0.0125579833984375, -0.04962158203125, -0.0282745361328125, 0.0254974365234375, -0.0305328369140625, 0.021148681640625, 0.0200042724609375, 0.01306915283203125, 0.039031982421875, -0.01222991943359375, 0.0219268798828125, 0.0126190185546875, -0.01727294921875, 0.0098876953125, 0.0229034423828125, 0.056732177734375, 0.0028743743896484375, 0.032257080078125, 0.057342529296875, -0.00018227100372314453, -0.013671875, 0.026824951171875, 0.032379150390625, -0.03973388671875, 0.0011529922485351562, 0.0148468017578125, -0.006259918212890625, -0.00865936279296875, -0.01116943359375, -0.0021514892578125, -0.03631591796875, 0.036224365234375, -0.0251922607421875, -0.01264190673828125, -0.003292083740234375, -0.027069091796875, -0.011077880859375, -0.00833892822265625, 0.040924072265625, 0.0187225341796875, 0.00826263427734375, 0.0031604766845703125, -0.0288543701171875, 0.0264892578125, 0.0029201507568359375, 0.01476287841796875, 0.008941650390625, -0.02264404296875, -0.05450439453125, 0.00033092498779296875, -0.0193023681640625, -0.04559326171875, -0.0194091796875, -0.00432586669921875, 0.066162109375, 0.030731201171875, 0.03125, -0.065673828125, 0.01434326171875, -0.00603485107421875, -0.044891357421875, 0.003997802734375, 0.0200958251953125, -0.0016937255859375, -0.03363037109375, 0.0196533203125, -0.0560302734375, -0.01071929931640625, 0.006229400634765625, -0.01377105712890625, 0.048614501953125, 0.006580352783203125, -0.040985107421875, 0.0174102783203125, -0.034759521484375, 0.0088043212890625, -0.0198516845703125, 0.0305938720703125, -0.040679931640625, -0.01479339599609375, -0.01241302490234375, -0.0297393798828125, -0.01528167724609375, -0.0259857177734375, -0.014984130859375, 0.1123046875, 0.015899658203125, -0.018890380859375, 0.0085296630859375, 0.053558349609375, -0.0303192138671875, 0.04949951171875, -0.044219970703125, 0.0474853515625, -0.00957489013671875, 0.031768798828125, -0.019805908203125, 0.0278167724609375, -0.0017671585083007812, -0.02655029296875, 0.042236328125, 0.01497650146484375, 0.002532958984375, -0.0288543701171875, 0.01389312744140625, 0.0029239654541015625, -0.0218048095703125, 0.031585693359375, 0.00970458984375, 0.00539398193359375, 0.033782958984375, 0.01496124267578125, 0.052520751953125, -0.028839111328125, -0.01438140869140625, 0.0287322998046875, 0.0300140380859375, 0.0287322998046875, -0.018280029296875, 0.08642578125, -0.0008687973022460938, -0.0217437744140625, 0.023345947265625, -0.0139617919921875, 0.017181396484375, -0.01763916015625, -0.030975341796875, 0.05084228515625, 0.03619384765625, 0.00039458274841308594, 0.0280914306640625, -0.019256591796875, -0.0259857177734375, -0.01544189453125, -0.009613037109375, 0.006809234619140625, -0.0135345458984375, -0.034912109375, 0.0310821533203125, 0.00437164306640625, 0.0014286041259765625, 0.0022830963134765625, 0.014984130859375, -0.003910064697265625, 0.028656005859375, 0.019134521484375, 0.0033054351806640625, -0.024261474609375, -0.0290374755859375, 0.01393890380859375, 0.025848388671875, 0.00290679931640625, 0.017364501953125, 0.0355224609375, -0.0185546875, 0.012481689453125, -0.017425537109375, -0.0305023193359375, 0.009979248046875, 0.0222930908203125, 0.003814697265625, -0.031890869140625, 0.0161895751953125, -0.03680419921875, -0.0222930908203125, 0.0228424072265625, 0.0146636962890625, -0.0018033981323242188, -0.038726806640625, 0.0394287109375, 0.00569915771484375, 0.01232147216796875, -0.024810791015625, 0.03326416015625, -0.004055023193359375, 0.036163330078125, -0.07470703125, -0.0447998046875, 0.016021728515625, 0.06732177734375, 0.003917694091796875, 0.01035308837890625, 0.04510498046875, 0.0738525390625, -0.001995086669921875, -0.00452423095703125, 0.078857421875, 0.006443023681640625, 0.00980377197265625, -0.054229736328125, 0.06903076171875, 0.0271759033203125, 0.02093505859375, 0.0036468505859375, 0.01366424560546875, 0.04486083984375, -0.026519775390625, 0.0494384765625, -0.0088958740234375, -0.01003265380859375, 0.0428466796875, 0.0174713134765625, 0.052520751953125, 0.01654052734375, -0.029296875, 0.0242919921875, -0.03857421875, -0.0643310546875, 0.0139923095703125, 0.023193359375, -0.042816162109375, 0.052520751953125, -0.0132904052734375, 0.0239715576171875, 0.0281982421875, -0.0193328857421875, -0.032684326171875, -0.0035457611083984375, 0.047943115234375, -0.0149993896484375, 0.021087646484375, 0.0253753662109375, 0.03076171875, 0.02130126953125, 0.00502777099609375, 0.047821044921875, -0.01496124267578125, 0.0136871337890625, 0.0217437744140625, -0.002033233642578125, -0.01482391357421875, 0.0222930908203125, -0.0294036865234375, -0.0175018310546875, 0.005931854248046875, -0.0018053054809570312, -0.058258056640625, 0.0325927734375, 0.00623321533203125, 0.01261138916015625, 0.00960540771484375, -0.00318145751953125, 0.017486572265625, 0.03314208984375, 0.0008411407470703125, -0.0224456787109375, -0.045013427734375, 0.004852294921875, 0.03851318359375, -0.00682830810546875, 0.01538848876953125, -0.0181121826171875, -0.0292816162109375, 0.0159759521484375, -0.0261993408203125, -0.0015649795532226562, 0.060943603515625, -0.024017333984375, 0.0225982666015625, 0.00437164306640625, 0.040313720703125, 0.01499176025390625, -0.0180816650390625, 0.036102294921875, 0.01177978515625, -0.012451171875, 0.01213836669921875, -0.043701171875, 0.0015726089477539062, 0.031341552734375, 0.04730224609375, -0.00400543212890625, 0.0189971923828125, 0.0218048095703125, -0.0113525390625, -0.005626678466796875, -0.07562255859375, -0.0218353271484375, -0.040252685546875, -0.004947662353515625, 0.025482177734375, -0.0137481689453125, -0.012939453125, -0.016082763671875, 0.023468017578125, 0.055999755859375, 0.01617431640625, -0.060028076171875, 0.02288818359375, -0.0194549560546875, 0.0694580078125, 0.0014324188232421875, -0.024932861328125, -0.00457763671875, 0.0111083984375, -0.0179290771484375, -0.0110321044921875, -0.0377197265625, 0.01503753662109375, -0.01175689697265625, 0.00606536865234375, 0.03717041015625, -0.0207672119140625, -0.050079345703125, -0.006072998046875, -0.0045623779296875, 0.034881591796875, 0.005859375, -0.009124755859375, 0.046539306640625, -0.0223236083984375, -0.01515960693359375, -0.0806884765625, -0.00865936279296875, -0.07525634765625, -0.014129638671875, -0.044464111328125, 0.043121337890625, 0.05267333984375, -0.02313232421875, -0.08392333984375, 0.01148223876953125, -0.035430908203125, -0.039337158203125, -0.0499267578125, -0.00443267822265625, -0.002758026123046875, -0.0005807876586914062, -0.020477294921875, -0.005245208740234375, -0.01509857177734375, 0.04443359375, -0.0022678375244140625, 0.0236358642578125, 0.02520751953125, 0.0005621910095214844, -0.0285491943359375, 0.015899658203125, 0.00946807861328125, -0.00992584228515625, 0.0196533203125, -0.032073974609375, 0.0633544921875, 0.047271728515625, -0.0085601806640625, 0.0184783935546875, 0.0189208984375, -0.039459228515625, -0.0175323486328125, -0.08746337890625, 0.031829833984375, 0.01277923583984375, 0.05352783203125, 0.00031876564025878906, 0.005542755126953125, -0.05194091796875, -0.039337158203125, -0.0281829833984375, 0.0255889892578125, -0.0167083740234375, -0.00292205810546875, -0.05853271484375, -0.0009517669677734375, 0.00083160400390625, -0.0128631591796875, -0.054107666015625, 0.026153564453125, -0.04046630859375, -0.0239410400390625, 0.004489898681640625, 0.00296783447265625, -0.033355712890625, -0.04864501953125, 0.03131103515625, -0.007503509521484375, 0.00853729248046875, 0.024871826171875, 0.011199951171875, 0.01422119140625, 0.10003662109375, 0.036651611328125, 0.059326171875, -0.05975341796875, 0.006320953369140625, 0.022979736328125, -0.00960540771484375, -0.040924072265625, -0.0187225341796875, 0.0098419189453125, 0.016754150390625, 0.01041412353515625, 0.0223846435546875, -0.0419921875, 0.032501220703125, -0.0170440673828125, 0.043212890625, 0.018463134765625, 0.05572509765625, -0.0181427001953125, 0.05352783203125, -0.00231170654296875, -0.036468505859375, 0.00316619873046875, -0.0008749961853027344, 0.0147552490234375, -0.010711669921875, 0.032623291015625, -0.0278167724609375, 0.04998779296875, -0.011077880859375, -0.0129241943359375, 0.0255279541015625 ]
88186d2b0e778bf8beca1dd6c67479f319a4c45c
Wordpress Stackexchange Q: Sort results by name & asc order on Archive.php I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn't clear to me, how can I get this working? <?php $post = $posts[0]; // ?> Thanks in advance. A: The easiest way to do this is to use a hook (the pre_get_posts hook) to change the order. But you should check that the query is one for which you do want to alter the order! (is_archive() or is_post_type_archive() should be sufficient.) For instance, put the following in your theme's functions.php... add_action( 'pre_get_posts', 'my_change_sort_order'); function my_change_sort_order($query){ if(is_archive()): //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) //Set the order ASC or DESC $query->set( 'order', 'ASC' ); //Set the orderby $query->set( 'orderby', 'title' ); endif; };
Q: Sort results by name & asc order on Archive.php I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn't clear to me, how can I get this working? <?php $post = $posts[0]; // ?> Thanks in advance. A: The easiest way to do this is to use a hook (the pre_get_posts hook) to change the order. But you should check that the query is one for which you do want to alter the order! (is_archive() or is_post_type_archive() should be sufficient.) For instance, put the following in your theme's functions.php... add_action( 'pre_get_posts', 'my_change_sort_order'); function my_change_sort_order($query){ if(is_archive()): //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) //Set the order ASC or DESC $query->set( 'order', 'ASC' ); //Set the orderby $query->set( 'orderby', 'title' ); endif; }; A: <?php // we add this, to show all posts in our // Glossary sorted alphabetically if ( is_category('Glossary') ) { $args = array( 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC' ); $glossaryposts = get_posts( $args ); } foreach( $glossaryposts as $post ) : setup_postdata( $post ); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> A: further to Stephen's answer, if you want to just query and order by the title, you could use this in your template file: $args = ( array( 'order' => 'ASC', 'orderby' => 'title', ) ); query_posts($args);
wordpress
{ "language": "en", "length": 250, "provenance": "stackexchange_00019.jsonl.gz:416378", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39817" }
[ 0.04876708984375, 0.01396942138671875, -0.0000673532485961914, 0.035919189453125, 0.0208892822265625, -0.04962158203125, 0.10052490234375, -0.021484375, 0.02691650390625, 0.03338623046875, 0.0003833770751953125, -0.0272064208984375, 0.01181793212890625, -0.0268707275390625, -0.040740966796875, -0.022003173828125, 0.06646728515625, -0.0421142578125, 0.0246124267578125, -0.002170562744140625, 0.0037784576416015625, 0.04278564453125, 0.0379638671875, 0.036102294921875, 0.0212249755859375, 0.00787353515625, 0.08404541015625, -0.024993896484375, 0.042144775390625, -0.0194244384765625, 0.03485107421875, -0.05322265625, 0.021209716796875, -0.014739990234375, 0.031524658203125, 0.06158447265625, 0.0361328125, -0.013702392578125, 0.0222320556640625, 0.031951904296875, 0.00643157958984375, 0.004878997802734375, -0.002277374267578125, -0.00027751922607421875, 0.001010894775390625, -0.05389404296875, 0.02606201171875, -0.027984619140625, 0.004177093505859375, -0.035186767578125, 0.015716552734375, 0.0126190185546875, 0.02874755859375, -0.01168060302734375, -0.013275146484375, 0.0098876953125, -0.01477813720703125, 0.02801513671875, 0.02679443359375, -0.0460205078125, -0.042999267578125, -0.01409912109375, 0.038116455078125, 0.017822265625, -0.005260467529296875, -0.01398468017578125, 0.06378173828125, 0.01311492919921875, -0.06573486328125, -0.01285552978515625, 0.06842041015625, 0.0010728836059570312, 0.010223388671875, -0.00844573974609375, 0.007007598876953125, -0.02099609375, -0.0176239013671875, -0.029266357421875, 0.028350830078125, 0.001922607421875, 0.01605224609375, 0.004367828369140625, -0.0134735107421875, -0.039031982421875, 0.02252197265625, -0.02362060546875, -0.01201629638671875, -0.0184478759765625, -0.005344390869140625, -0.034454345703125, -0.0088958740234375, 0.0009760856628417969, -0.028472900390625, 0.02398681640625, -0.0194854736328125, -0.00836944580078125, 0.039947509765625, 0.0684814453125, -0.0150909423828125, -0.007419586181640625, -0.01468658447265625, -0.02886962890625, 0.0113677978515625, -0.030792236328125, -0.01111602783203125, -0.03790283203125, 0.0159149169921875, 0.007366180419921875, 0.0267791748046875, 0.041961669921875, -0.031646728515625, 0.024169921875, -0.01129913330078125, -0.026123046875, -0.0244598388671875, 0.0174713134765625, -0.035369873046875, 0.030731201171875, 0.0164031982421875, 0.0212554931640625, 0.0198974609375, 0.057891845703125, -0.0038127899169921875, -0.055755615234375, -0.0258941650390625, -0.007518768310546875, -0.0029544830322265625, -0.072265625, -0.00870513916015625, 0.01459503173828125, -0.00371551513671875, 0.01349639892578125, 0.0187835693359375, 0.0166015625, -0.0165557861328125, -0.01090240478515625, 0.0048675537109375, -0.023712158203125, 0.004405975341796875, 0.0033206939697265625, 0.03594970703125, -0.0219879150390625, -0.00865936279296875, 0.0302886962890625, -0.0004856586456298828, 0.01226806640625, 0.00980377197265625, 0.011993408203125, -0.006622314453125, -0.0494384765625, -0.0008244514465332031, -0.0174713134765625, 0.02490234375, -0.004039764404296875, -0.0160675048828125, -0.015167236328125, -0.01739501953125, -0.01139068603515625, -0.00426483154296875, -0.01448822021484375, 0.033660888671875, 0.00021696090698242188, 0.002101898193359375, -0.00446319580078125, -0.031158447265625, 0.01033782958984375, -0.030487060546875, -0.0185546875, 0.004974365234375, -0.041107177734375, 0.012481689453125, -0.012237548828125, 0.0292816162109375, -0.0230560302734375, -0.01629638671875, 0.0038280487060546875, -0.01396942138671875, -0.042083740234375, 0.0205535888671875, 0.00934600830078125, -0.033660888671875, -0.03271484375, -0.04443359375, -0.0002665519714355469, -0.037322998046875, 0.031402587890625, 0.010101318359375, 0.031280517578125, -0.00569915771484375, 0.0125579833984375, 0.01410675048828125, 0.06622314453125, -0.0352783203125, 0.0234375, -0.0024585723876953125, -0.03857421875, 0.005619049072265625, -0.011444091796875, -0.0014553070068359375, -0.0045166015625, -0.0202484130859375, 0.0100860595703125, -0.02117919921875, 0.0195159912109375, -0.02716064453125, -0.00878143310546875, -0.0003790855407714844, 0.00954437255859375, 0.021514892578125, 0.028228759765625, 0.004024505615234375, -0.0033359527587890625, -0.02386474609375, 0.02960205078125, -0.01861572265625, 0.001739501953125, 0.00319671630859375, -0.006275177001953125, -0.0241241455078125, -0.0014791488647460938, -0.04058837890625, -0.031890869140625, -0.057159423828125, 0.035614013671875, 0.05047607421875, -0.004352569580078125, -0.03228759765625, -0.0303802490234375, 0.0009036064147949219, -0.0004818439483642578, -0.05810546875, 0.045623779296875, 0.021575927734375, 0.05230712890625, -0.0185546875, -0.0218505859375, -0.0267486572265625, -0.0408935546875, 0.0216827392578125, 0.040557861328125, 0.02972412109375, 0.0230560302734375, 0.036041259765625, 0.049530029296875, 0.054962158203125, 0.0286407470703125, 0.035125732421875, -0.00818634033203125, 0.01904296875, 0.05950927734375, -0.0009984970092773438, 0.012664794921875, -0.0006299018859863281, -0.00637054443359375, 0.005859375, 0.027587890625, 0.0309906005859375, 0.0316162109375, -0.0127105712890625, 0.0202484130859375, -0.0113983154296875, 0.00685882568359375, -0.029144287109375, 0.00812530517578125, -0.001079559326171875, 0.0300750732421875, -0.00124359130859375, -0.007053375244140625, -0.056915283203125, 0.0330810546875, 0.027099609375, -0.003833770751953125, -0.0005621910095214844, 0.00782012939453125, -0.0430908203125, 0.0015840530395507812, -0.0340576171875, 0.017578125, -0.020843505859375, -0.0279083251953125, -0.00875091552734375, 0.01605224609375, 0.024505615234375, -0.0030994415283203125, -0.0218048095703125, -0.07666015625, 0.043975830078125, 0.04095458984375, -0.09326171875, -0.036529541015625, -0.0128021240234375, 0.053192138671875, -0.036041259765625, 0.01453399658203125, -0.018951416015625, 0.015655517578125, -0.021575927734375, -0.0672607421875, 0.028350830078125, -0.030975341796875, 0.08544921875, 0.09075927734375, 0.006168365478515625, 0.0252838134765625, -0.0012369155883789062, 0.005558013916015625, 0.0027027130126953125, 0.0093536376953125, -0.003627777099609375, -0.01690673828125, -0.0394287109375, 0.003528594970703125, 0.053466796875, 0.06707763671875, 0.0309295654296875, -0.0222015380859375, 0.0181121826171875, 0.0594482421875, -0.05230712890625, -0.12042236328125, -0.002613067626953125, -0.07867431640625, 0.026153564453125, -0.003082275390625, -0.0292816162109375, -0.023651123046875, 0.021148681640625, 0.0145416259765625, 0.042266845703125, 0.008209228515625, -0.04510498046875, 0.006244659423828125, -0.0531005859375, 0.01540374755859375, 0.0027828216552734375, 0.0178985595703125, 0.0095672607421875, 0.07421875, 0.01300811767578125, -0.07861328125, 0.000027060508728027344, 0.034576416015625, -0.033935546875, 0.0287322998046875, 0.051239013671875, -0.046875, -0.0204315185546875, 0.007053375244140625, 0.06787109375, 0.027435302734375, -0.041900634765625, 0.0073699951171875, -0.01776123046875, 0.0035400390625, 0.01331329345703125, 0.0245819091796875, 0.02099609375, 0.025909423828125, 0.051055908203125, -0.0195465087890625, -0.0183868408203125, -0.0258636474609375, -0.035186767578125, -0.0261383056640625, -0.00373077392578125, 0.04156494140625, -0.04376220703125, 0.032867431640625, 0.0053863525390625, -0.0097198486328125, -0.006229400634765625, -0.014923095703125, -0.01242828369140625, 0.00310516357421875, 0.0304107666015625, 0.0167999267578125, 0.0244598388671875, -0.020660400390625, -0.0145111083984375, 0.01337432861328125, 0.01264190673828125, 0.0016794204711914062, -0.00787353515625, -0.0212860107421875, -0.0906982421875, 0.044677734375, -0.0175018310546875, -0.0041046142578125, -0.018310546875, -0.0245513916015625, 0.0214385986328125, 0.09600830078125, -0.06500244140625, -0.017730712890625, -0.0021266937255859375, 0.0031261444091796875, -0.015625, 0.005870819091796875, -0.033355712890625, -0.005970001220703125, -0.06585693359375, 0.015899658203125, -0.0120849609375, -0.0218963623046875, -0.038909912109375, -0.008087158203125, -0.042205810546875, -0.025146484375, 0.0286712646484375, -0.03533935546875, 0.009796142578125, -0.00003808736801147461, -0.016815185546875, -0.011810302734375, -0.02825927734375, -0.00782012939453125, -0.1455078125, -0.0297698974609375, -0.00595855712890625, 0.0772705078125, -0.0174102783203125, -0.01535797119140625, -0.060943603515625, 0.0482177734375, -0.00980377197265625, 0.008880615234375, 0.0267333984375, 0.0241851806640625, 0.0181121826171875, -0.03131103515625, -0.0116119384765625, -0.04290771484375, 0.006313323974609375, -0.01617431640625, -0.0257568359375, -0.004909515380859375, -0.0418701171875, 0.00738525390625, -0.0216064453125, -0.034271240234375, -0.04290771484375, -0.0289306640625, 0.00455474853515625, 0.00867462158203125, 0.0016603469848632812, -0.0028533935546875, -0.03338623046875, -0.04962158203125, 0.00963592529296875, 0.006443023681640625, -0.023345947265625, 0.0215606689453125, 0.06353759765625, 0.01313018798828125, -0.005680084228515625, -0.08685302734375, 0.014434814453125, 0.00872802734375, -0.0104217529296875, 0.033782958984375, -0.0120391845703125, -0.01407623291015625, 0.046966552734375, -0.03033447265625, 0.002689361572265625, 0.00530242919921875, -0.0159912109375, -0.006134033203125, -0.041015625, 0.0268096923828125, 0.0072479248046875, 0.01458740234375, 0.031402587890625, -0.00475311279296875, -0.022491455078125, -0.003009796142578125, 0.04388427734375, -0.016265869140625, 0.025299072265625, -0.022857666015625, -0.046478271484375, 0.0230865478515625, -0.0240325927734375, -0.003917694091796875, 0.0075225830078125, -0.00769805908203125, -0.01114654541015625, -0.024566650390625, 0.0184173583984375, -0.01424407958984375, 0.0045166015625, -0.03289794921875, 0.0272979736328125, -0.0309600830078125, -0.013916015625, 0.024627685546875, -0.020782470703125, 0.09539794921875, 0.0309906005859375, -0.0169525146484375, 0.002964019775390625, -0.01233673095703125, 0.0214385986328125, -0.0113525390625, -0.0450439453125, 0.0019588470458984375, 0.0355224609375, 0.0158538818359375, 0.0174713134765625, -0.047393798828125, 0.0102996826171875, -0.019195556640625, 0.033447265625, 0.04656982421875, -0.0238800048828125, -0.0112762451171875, 0.080810546875, 0.031829833984375, 0.0134429931640625, -0.0313720703125, -0.0193328857421875, 0.0202789306640625, 0.0149993896484375, 0.048858642578125, -0.0338134765625, -0.0248565673828125, 0.0135345458984375, 0.0110931396484375, -0.034149169921875, -0.0034637451171875, -0.01812744140625, 0.0015859603881835938, -0.01045989990234375, -0.0029087066650390625, 0.06488037109375, 0.0149688720703125, -0.01451873779296875, 0.0243377685546875, 0.02740478515625, 0.014862060546875, -0.04559326171875, -0.0709228515625, 0.01122283935546875, 0.0019388198852539062, -0.016510009765625, 0.0208740234375, -0.037811279296875, 0.0280609130859375, -0.035186767578125, 0.01107025146484375, 0.00604248046875, -0.005840301513671875, -0.015167236328125, -0.022003173828125, 0.01038360595703125, 0.00971221923828125, -0.01467132568359375, -0.01226043701171875, -0.0254669189453125, 0.055694580078125, -0.01226043701171875, 0.04632568359375, -0.044891357421875, 0.017303466796875, -0.066650390625, 0.0241546630859375, 0.0061187744140625, 0.0011968612670898438, -0.05316162109375, 0.0263824462890625, -0.042510986328125, -0.0208282470703125, 0.0084991455078125, -0.006809234619140625, -0.0653076171875, -0.0277557373046875, 0.009918212890625, 0.0111236572265625, -0.0148468017578125, -0.0504150390625, 0.0029296875, -0.0033054351806640625, 0.0034618377685546875, -0.02606201171875, -0.005767822265625, 0.09088134765625, -0.01824951171875, 0.045806884765625, 0.005184173583984375, 0.0340576171875, -0.031280517578125, 0.004852294921875, 0.0287933349609375, -0.0595703125, -0.06939697265625, 0.0016374588012695312, -0.0643310546875, 0.0240325927734375, 0.0242462158203125, -0.0190277099609375, -0.021881103515625, 0.00885009765625, 0.018951416015625, -0.0087432861328125, 0.0031223297119140625, 0.005435943603515625, -0.03485107421875, 0.0087127685546875, -0.0234527587890625, -0.007030487060546875, -0.00641632080078125, -0.055908203125, 0.059478759765625, 0.0016622543334960938, 0.034912109375, -0.01152801513671875, -0.043304443359375, 0.0222320556640625, 0.058013916015625, 0.041595458984375, 0.0362548828125, 0.003383636474609375, 0.0235748291015625, -0.01171875, 0.0219573974609375, 0.04620361328125, -0.0014743804931640625, 0.070068359375, -0.00942230224609375, -0.01352691650390625, 0.00146484375, -0.055419921875, 0.0095977783203125, 0.0074310302734375, 0.04022216796875, -0.0296478271484375, 0.01776123046875, 0.0204620361328125, -0.01824951171875, 0.006450653076171875, 0.00620269775390625, -0.0055084228515625, -0.0178070068359375, 0.059661865234375, -0.06207275390625, -0.006000518798828125, 0.0235595703125, -0.05401611328125, -0.004100799560546875, -0.0077362060546875, 0.0260467529296875, 0.0117645263671875, -0.037841796875, 0.0183563232421875, 0.009368896484375, 0.026885986328125, -0.029998779296875, 0.015655517578125, -0.006961822509765625, -0.0197296142578125, -0.072265625, -0.006687164306640625, -0.01029205322265625, -0.01384735107421875, -0.009429931640625, -0.01364898681640625, 0.0268707275390625, 0.03192138671875, -0.01003265380859375, -0.003162384033203125, 0.009307861328125, -0.027984619140625, -0.016693115234375, -0.02349853515625, -0.0092010498046875, 0.0017642974853515625, 0.010589599609375, 0.02093505859375, 0.004711151123046875, -0.043975830078125, -0.019989013671875, -0.0024127960205078125, 0.07452392578125, -0.0159759521484375, -0.0304412841796875, 0.007274627685546875, 0.034820556640625, 0.004825592041015625, 0.0218505859375, 0.0616455078125, -0.049560546875, -0.0122528076171875, 0.051116943359375, -0.0022945404052734375, -0.023773193359375, 0.0313720703125, -0.04229736328125, 0.08160400390625, -0.0277557373046875, -0.006221771240234375, -0.004608154296875, 0.044097900390625, 0.00798797607421875, 0.04345703125, -0.033477783203125, 0.030609130859375, 0.00360870361328125, 0.061981201171875, -0.0780029296875, -0.01226806640625, -0.00039958953857421875, 0.056182861328125, 0.00087738037109375, -0.00506591796875, -0.037872314453125, 0.003170013427734375, 0.056732177734375, 0.0655517578125, 0.03887939453125, 0.01507568359375, 0.0025043487548828125, 0.00003790855407714844, 0.01218414306640625, -0.004985809326171875, 0.0129852294921875, 0.0128021240234375, -0.025421142578125, 0.055023193359375, 0.033538818359375, 0.04736328125, -0.03167724609375, -0.0160369873046875, -0.03277587890625, -0.01535797119140625, 0.04180908203125, 0.01084136962890625, -0.01027679443359375, 0.058319091796875, 0.05224609375, -0.0289764404296875, -0.06475830078125, -0.00594329833984375, 0.051666259765625, 0.02740478515625, 0.013427734375, 0.03387451171875, 0.027923583984375, 0.0010328292846679688, -0.0260772705078125, 0.004520416259765625, -0.002712249755859375, -0.039642333984375, 0.0193939208984375, 0.022796630859375, 0.0209503173828125, -0.0238800048828125, -0.01541900634765625, 0.0548095703125, 0.04852294921875, -0.023468017578125, -0.0129241943359375, 0.0203399658203125, 0.00579833984375, -0.00041413307189941406, -0.0294647216796875, -0.024322509765625, -0.033355712890625, -0.00930023193359375, -0.044586181640625, -0.025787353515625, 0.0186004638671875, 0.040771484375, -0.01959228515625, -0.044219970703125, 0.00824737548828125, -0.060150146484375, -0.0042877197265625, -0.006038665771484375, -0.008087158203125, 0.0215606689453125, 0.0074920654296875, 0.017730712890625, -0.042724609375, 0.0126800537109375, -0.0239715576171875, 0.03411865234375, -0.0236663818359375, 0.037994384765625, -0.05645751953125, -0.039337158203125, -0.0243072509765625, 0.04345703125, 0.038604736328125, 0.019622802734375, 0.04339599609375, 0.035125732421875, -0.0146484375, 0.00023376941680908203, 0.043701171875, -0.01360321044921875, -0.01345062255859375, -0.007335662841796875, 0.007068634033203125, 0.026641845703125, -0.004032135009765625, 0.0022449493408203125, 0.037384033203125, 0.0302886962890625, -0.022369384765625, 0.039337158203125, -0.0014543533325195312, -0.0160064697265625, 0.035400390625, 0.0022029876708984375, 0.048553466796875, 0.00405120849609375, -0.05682373046875, -0.02593994140625, -0.037933349609375, -0.0029888153076171875, 0.026763916015625, 0.0413818359375, 0.022674560546875, 0.0001055002212524414, 0.04345703125, -0.06121826171875, 0.031158447265625, 0.024261474609375, 0.037445068359375, 0.059234619140625, -0.0023937225341796875, 0.026611328125, -0.0141143798828125, -0.0278167724609375, 0.0198211669921875, 0.042022705078125, 0.006900787353515625, -0.02093505859375, 0.01220703125, 0.03021240234375, -0.0021114349365234375, -0.0009636878967285156, -0.0277557373046875, -0.0362548828125, 0.06683349609375, -0.0478515625, -0.04168701171875, 0.008880615234375, -0.00762176513671875, -0.01062774658203125, 0.040924072265625, -0.05340576171875, -0.006404876708984375, -0.0281219482421875, 0.0198516845703125, -0.03399658203125, -0.004764556884765625, -0.022979736328125, -0.02734375, 0.007659912109375, 0.01053619384765625, -0.00569915771484375, 0.008941650390625, -0.018951416015625, 0.034698486328125, 0.004802703857421875, -0.030548095703125, 0.026947021484375, -0.036834716796875, 0.0662841796875, 0.032501220703125, 0.00775909423828125, -0.03680419921875, 0.0002951622009277344, -0.017578125, -0.0019931793212890625, 0.0301513671875, 0.0236358642578125, -0.002353668212890625, -0.006984710693359375, -0.026336669921875, -0.0160369873046875, 0.045501708984375, 0.042022705078125, 0.0151214599609375, -0.04864501953125, -0.0138397216796875, -0.06005859375, 0.015533447265625, -0.040924072265625, -0.014801025390625, 0.0164642333984375, 0.00904083251953125, 0.0253448486328125, -0.005214691162109375, -0.026153564453125, -0.0223846435546875, 0.008331298828125, -0.019378662109375, 0.005908966064453125, -0.0235443115234375, -0.0199432373046875, -0.022430419921875, -0.02093505859375, -0.048736572265625, 0.0096588134765625, 0.037841796875, 0.00922393798828125, -0.02923583984375, -0.051025390625, 0.0144500732421875, -0.037139892578125, -0.01045989990234375, 0.018218994140625, -0.00013339519500732422, -0.0220489501953125, -0.0041961669921875, -0.01294708251953125, 0.0232391357421875, -0.006793975830078125, -0.0089263916015625, 0.0386962890625, 0.0044097900390625, -0.04107666015625, -0.10284423828125, 0.02008056640625, -0.0802001953125, 0.0199737548828125, -0.0012063980102539062, 0.026702880859375, 0.050689697265625, -0.01212310791015625, -0.028564453125, 0.055633544921875, -0.00273895263671875, -0.031890869140625, -0.048858642578125, 0.0162506103515625, 0.0013523101806640625, 0.007518768310546875, -0.004177093505859375, -0.01006317138671875, -0.0163726806640625, 0.0264129638671875, -0.003337860107421875, 0.08746337890625, -0.033447265625, 0.03631591796875, -0.05743408203125, 0.01418304443359375, -0.02862548828125, 0.01204681396484375, -0.00550079345703125, -0.01473236083984375, 0.03070068359375, 0.017730712890625, -0.033660888671875, 0.052154541015625, 0.0277252197265625, 0.02716064453125, -0.00002092123031616211, -0.047271728515625, -0.03741455078125, -0.0118408203125, -0.0001443624496459961, 0.06866455078125, 0.00934600830078125, -0.0379638671875, -0.0137176513671875, -0.006397247314453125, -0.009063720703125, -0.03131103515625, 0.01558685302734375, -0.06646728515625, -0.043304443359375, -0.0031299591064453125, -0.021728515625, 0.01120758056640625, -0.03662109375, -0.04241943359375, 0.00394439697265625, -0.027069091796875, -0.0007257461547851562, -0.0087127685546875, -0.020751953125, 0.0374755859375, -0.04351806640625, -0.03619384765625, -0.01708984375, 0.02703857421875, -0.024200439453125, -0.032379150390625, -0.031585693359375, -0.008636474609375, 0.01038360595703125, 0.00435638427734375, 0.005321502685546875, 0.0189056396484375, 0.0309906005859375, 0.0234527587890625, -0.0214385986328125, 0.006076812744140625, 0.006031036376953125, -0.025360107421875, -0.00722503662109375, 0.038360595703125, 0.007678985595703125, 0.07086181640625, -0.01279449462890625, 0.03564453125, 0.01020050048828125, 0.0250091552734375, -0.0298919677734375, -0.001922607421875, 0.0074920654296875, -0.04791259765625, 0.0222015380859375, -0.01702880859375, 0.0238037109375, -0.0093841552734375, 0.029693603515625, 0.01519775390625, -0.0248565673828125, 0.029083251953125 ]
d3f0c4fae9cf320913aacaf19b7924e3243652f8
Wordpress Stackexchange Q: Query causing load because of SQL_CALC_FOUND_ROWS post counting? I found this query causing some load in the server, my hosting provdier asked me to look on it. SELECT SQL_CALC_FOUND_ROWS wp_posts I think this select no. rows found in wp_posts table.. but i tried to this query in separate page, it takes so long to complete the request.Can somebody help me to overcome from this issue? Thanks! A: WordPress uses this feature of MySQL to get a total count of posts when you are only retrieving limited amount (100 posts total, but only 10 posts per page). From quick look at source there is no_found_rows query argument that can disable it. That will wreck pagination and should only be used with specific queries that don't need counting (for example get_posts() uses it by default). You probably need to look into performance of your database overall (if you are running something crazy large) or if there are issues with configuration (if you are running something small enough to not possibly cause issues with resources).
Q: Query causing load because of SQL_CALC_FOUND_ROWS post counting? I found this query causing some load in the server, my hosting provdier asked me to look on it. SELECT SQL_CALC_FOUND_ROWS wp_posts I think this select no. rows found in wp_posts table.. but i tried to this query in separate page, it takes so long to complete the request.Can somebody help me to overcome from this issue? Thanks! A: WordPress uses this feature of MySQL to get a total count of posts when you are only retrieving limited amount (100 posts total, but only 10 posts per page). From quick look at source there is no_found_rows query argument that can disable it. That will wreck pagination and should only be used with specific queries that don't need counting (for example get_posts() uses it by default). You probably need to look into performance of your database overall (if you are running something crazy large) or if there are issues with configuration (if you are running something small enough to not possibly cause issues with resources).
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:416381", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39827" }
[ 0.0723876953125, 0.003063201904296875, 0.00995635986328125, 0.0017528533935546875, 0.0262298583984375, -0.05133056640625, 0.09613037109375, -0.023590087890625, 0.0025272369384765625, 0.029022216796875, -0.0643310546875, 0.00972747802734375, -0.0203399658203125, 0.008056640625, -0.0292816162109375, -0.054534912109375, 0.02557373046875, -0.00441741943359375, 0.0163116455078125, -0.0141143798828125, -0.0015192031860351562, 0.004261016845703125, 0.0244903564453125, 0.04461669921875, -0.009002685546875, 0.00090789794921875, 0.06317138671875, -0.039886474609375, 0.0117950439453125, -0.022125244140625, 0.01192474365234375, 0.004055023193359375, 0.005626678466796875, 0.0091552734375, -0.0038909912109375, 0.010162353515625, 0.00432586669921875, 0.01129913330078125, 0.002338409423828125, 0.022735595703125, 0.022674560546875, -0.0127716064453125, 0.030181884765625, -0.0255889892578125, 0.00661468505859375, -0.017608642578125, 0.031280517578125, -0.0323486328125, 0.0173187255859375, -0.021331787109375, -0.00931549072265625, 0.0592041015625, 0.00902557373046875, -0.00833892822265625, -0.0004189014434814453, 0.01617431640625, 0.049774169921875, 0.00936126708984375, 0.0259246826171875, -0.083984375, -0.052490234375, 0.0172576904296875, 0.0352783203125, 0.02545166015625, -0.04180908203125, 0.006114959716796875, -0.0015964508056640625, 0.0010900497436523438, 0.0022411346435546875, -0.0587158203125, -0.0014982223510742188, 0.003692626953125, -0.007228851318359375, 0.03936767578125, 0.00727081298828125, -0.061309814453125, 0.053009033203125, -0.00812530517578125, -0.005794525146484375, 0.062744140625, -0.02227783203125, -0.0142059326171875, -0.061676025390625, 0.0308074951171875, -0.0308380126953125, 0.028839111328125, -0.0158538818359375, -0.00311279296875, -0.0215301513671875, -0.037445068359375, -0.0243072509765625, -0.03289794921875, -0.035247802734375, 0.00016391277313232422, -0.0068206787109375, -0.036163330078125, 0.006679534912109375, 0.0145416259765625, -0.028076171875, -0.034271240234375, 0.0080108642578125, -0.031524658203125, -0.018463134765625, 0.01297760009765625, 0.0284271240234375, 0.043701171875, -0.0083160400390625, 0.00933074951171875, 0.053497314453125, 0.022125244140625, 0.0256805419921875, 0.04071044921875, -0.0110931396484375, 0.01172637939453125, -0.048065185546875, -0.00012201070785522461, -0.0292510986328125, -0.0249786376953125, -0.0183868408203125, -0.00489044189453125, -0.0204620361328125, -0.01486968994140625, -0.0228118896484375, -0.014495849609375, 0.01535797119140625, -0.032989501953125, -0.02880859375, 0.057037353515625, -0.046142578125, 0.0439453125, -0.0168304443359375, 0.01190185546875, 0.0477294921875, 0.018096923828125, -0.030242919921875, -0.01641845703125, 0.01233673095703125, -0.00921630859375, -0.0100860595703125, 0.00954437255859375, -0.015960693359375, -0.038848876953125, -0.004199981689453125, -0.006298065185546875, 0.03448486328125, 0.029754638671875, 0.0228424072265625, -0.006244659423828125, 0.0138397216796875, -0.032073974609375, -0.0294036865234375, 0.047576904296875, 0.022857666015625, 0.0071563720703125, -0.028839111328125, 0.005992889404296875, 0.0010652542114257812, -0.00017392635345458984, -0.0369873046875, -0.0230255126953125, 0.0164947509765625, -0.00394439697265625, 0.00213623046875, 0.012725830078125, -0.05316162109375, 0.01824951171875, 0.0096435546875, -0.01314544677734375, 0.02789306640625, -0.01064300537109375, 0.030426025390625, -0.01398468017578125, 0.028594970703125, -0.006561279296875, -0.006134033203125, 0.00502777099609375, -0.01995849609375, 0.01157379150390625, 0.03326416015625, -0.00689697265625, -0.0225372314453125, -0.03363037109375, 0.05755615234375, 0.006122589111328125, -0.056182861328125, 0.06536865234375, -0.004192352294921875, 0.033905029296875, -0.01409149169921875, 0.008392333984375, 0.043304443359375, 0.06719970703125, -0.0200958251953125, 0.01971435546875, 0.0055389404296875, -0.034423828125, -0.05926513671875, -0.0190277099609375, -0.016082763671875, 0.01324462890625, 0.0265045166015625, 0.00582122802734375, -0.028350830078125, 0.005825042724609375, -0.06732177734375, -0.01544189453125, -0.007541656494140625, 0.0140838623046875, -0.015045166015625, 0.023468017578125, 0.02655029296875, 0.03338623046875, -0.0474853515625, -0.01324462890625, -0.0209503173828125, -0.0173797607421875, -0.03253173828125, 0.00833892822265625, -0.018646240234375, 0.004665374755859375, -0.0164337158203125, -0.0198516845703125, -0.0186767578125, 0.0129241943359375, -0.0017538070678710938, -0.0070953369140625, -0.01438140869140625, -0.0087890625, 0.01123809814453125, -0.0007085800170898438, 0.005279541015625, 0.0216064453125, 0.056915283203125, 0.060760498046875, -0.0313720703125, -0.0034084320068359375, -0.0062255859375, -0.024810791015625, -0.00850677490234375, 0.037811279296875, 0.040069580078125, 0.0221405029296875, -0.01044464111328125, -0.0318603515625, 0.009735107421875, -0.0821533203125, -0.0007801055908203125, -0.00838470458984375, -0.0155487060546875, 0.01666259765625, -0.002811431884765625, -0.0124053955078125, 0.027435302734375, -0.02099609375, -0.0216522216796875, 0.044952392578125, 0.0364990234375, 0.0252685546875, -0.0160675048828125, 0.01141357421875, 0.000789642333984375, 0.01763916015625, -0.035736083984375, 0.01519775390625, -0.0233917236328125, -0.00614166259765625, -0.005756378173828125, -0.00363922119140625, 0.0033245086669921875, 0.01459503173828125, 0.01483154296875, -0.060333251953125, -0.01190185546875, -0.05133056640625, -0.049774169921875, 0.020904541015625, -0.06353759765625, 0.055328369140625, 0.0250396728515625, -0.0306549072265625, -0.037139892578125, -0.01088714599609375, -0.049468994140625, -0.0113525390625, -0.038604736328125, -0.06451416015625, 0.030181884765625, 0.01873779296875, -0.0184783935546875, 0.00756072998046875, 0.0189208984375, 0.0557861328125, 0.006557464599609375, 0.032379150390625, 0.0016756057739257812, 0.0186614990234375, 0.040802001953125, -0.0423583984375, 0.0263824462890625, -0.0165863037109375, 0.08349609375, 0.071044921875, 0.00467681884765625, 0.012908935546875, -0.01479339599609375, -0.00868988037109375, 0.0034542083740234375, 0.00783538818359375, -0.0269775390625, -0.0227508544921875, -0.05755615234375, 0.0107879638671875, 0.04400634765625, 0.11529541015625, -0.0007433891296386719, -0.050048828125, 0.02117919921875, 0.0496826171875, -0.068359375, -0.133056640625, -0.0089874267578125, -0.01971435546875, -0.032745361328125, -0.0008568763732910156, -0.006183624267578125, 0.0032024383544921875, -0.0067138671875, -0.009521484375, 0.0204315185546875, -0.007785797119140625, -0.0712890625, -0.0262298583984375, -0.08160400390625, 0.03131103515625, 0.00846099853515625, 0.0260772705078125, 0.004657745361328125, 0.06591796875, -0.0050048828125, -0.080810546875, -0.046234130859375, -0.0206298828125, -0.02142333984375, -0.0031642913818359375, -0.018890380859375, -0.0256805419921875, -0.005367279052734375, 0.010833740234375, -0.0286102294921875, -0.0294952392578125, 0.036865234375, -0.036163330078125, 0.0150299072265625, 0.007076263427734375, 0.0212860107421875, 0.0269012451171875, -0.027587890625, 0.0141448974609375, 0.024871826171875, -0.027496337890625, -0.04083251953125, -0.025726318359375, -0.057586669921875, -0.0284881591796875, 0.033111572265625, 0.03106689453125, -0.0285491943359375, -0.0171966552734375, 0.06842041015625, 0.0194244384765625, 0.00966644287109375, -0.0171661376953125, 0.05706787109375, 0.03057861328125, 0.054107666015625, -0.0550537109375, 0.0007367134094238281, -0.03826904296875, 0.0196533203125, -0.003719329833984375, -0.0171356201171875, -0.01739501953125, -0.0061492919921875, -0.03546142578125, 0.0025959014892578125, 0.040771484375, 0.061737060546875, 0.037750244140625, -0.006168365478515625, -0.03387451171875, -0.017791748046875, 0.041015625, 0.018768310546875, -0.04327392578125, -0.01293182373046875, 0.0225372314453125, -0.0218658447265625, -0.053070068359375, 0.01995849609375, -0.019012451171875, 0.015594482421875, -0.0185089111328125, 0.00045800209045410156, -0.0110931396484375, -0.0228271484375, 0.0225067138671875, -0.00292205810546875, -0.0115814208984375, 0.029754638671875, -0.038848876953125, 0.0025997161865234375, 0.006591796875, -0.008453369140625, -0.018157958984375, -0.01251220703125, -0.03350830078125, -0.078369140625, -0.030181884765625, 0.008270263671875, 0.055908203125, -0.0009069442749023438, -0.020416259765625, -0.03326416015625, 0.0291900634765625, 0.04486083984375, 0.02911376953125, 0.01153564453125, -0.0254058837890625, 0.0168609619140625, 0.0114898681640625, 0.0263214111328125, -0.0255584716796875, -0.0163726806640625, -0.0182952880859375, -0.0106658935546875, -0.0013484954833984375, -0.03717041015625, -0.00792694091796875, -0.026275634765625, -0.0082244873046875, -0.0106658935546875, -0.0155029296875, -0.0037593841552734375, 0.0276336669921875, -0.01812744140625, 0.01788330078125, -0.03155517578125, -0.009185791015625, 0.0430908203125, -0.0004417896270751953, 0.005153656005859375, 0.00438690185546875, 0.0816650390625, 0.003326416015625, -0.023834228515625, -0.0457763671875, -0.0239715576171875, 0.0295562744140625, 0.0042724609375, 0.0190582275390625, 0.014984130859375, -0.0236663818359375, 0.03961181640625, 0.00907135009765625, -0.02435302734375, -0.0177154541015625, 0.01763916015625, 0.0009717941284179688, -0.0153656005859375, -0.01094818115234375, -0.0250701904296875, 0.061248779296875, 0.0665283203125, -0.0003027915954589844, 0.0041046142578125, 0.034423828125, 0.011688232421875, -0.032989501953125, -0.031585693359375, -0.007114410400390625, -0.0122833251953125, 0.01352691650390625, 0.007549285888671875, 0.0164337158203125, 0.0210418701171875, 0.0099639892578125, 0.0001226663589477539, -0.0105743408203125, 0.00926971435546875, 0.032470703125, 0.0321044921875, -0.038970947265625, 0.02899169921875, 0.0335693359375, -0.028289794921875, 0.0154571533203125, -0.0037860870361328125, 0.0266265869140625, -0.0321044921875, -0.08709716796875, 0.01444244384765625, -0.004650115966796875, 0.00920867919921875, 0.04656982421875, 0.0093841552734375, 0.046661376953125, 0.03363037109375, -0.0040435791015625, -0.0277557373046875, 0.0181884765625, -0.0355224609375, -0.036651611328125, 0.020172119140625, 0.00681304931640625, 0.0021991729736328125, 0.047943115234375, 0.03448486328125, -0.0181732177734375, 0.05059814453125, -0.00021195411682128906, 0.0228729248046875, 0.006999969482421875, 0.05670166015625, -0.004154205322265625, -0.0252532958984375, 0.004673004150390625, 0.057769775390625, 0.021575927734375, -0.035797119140625, 0.00565338134765625, 0.022796630859375, 0.00777435302734375, -0.0197906494140625, -0.037384033203125, 0.0399169921875, -0.01058197021484375, -0.018157958984375, 0.0248565673828125, -0.0025119781494140625, 0.0088348388671875, -0.056671142578125, -0.03289794921875, 0.05548095703125, 0.032562255859375, 0.00911712646484375, 0.024139404296875, -0.01561737060546875, 0.038970947265625, -0.0279693603515625, 0.0232696533203125, -0.033355712890625, -0.031585693359375, -0.01111602783203125, -0.029022216796875, -0.02227783203125, 0.06134033203125, 0.00885009765625, -0.00669097900390625, -0.0252532958984375, 0.01328277587890625, -0.01050567626953125, 0.046722412109375, 0.0016565322875976562, -0.03900146484375, 0.00894927978515625, 0.0372314453125, -0.0201873779296875, -0.01690673828125, -0.013763427734375, -0.019866943359375, -0.057861328125, -0.0396728515625, 0.0233306884765625, -0.00514984130859375, -0.019439697265625, 0.00807952880859375, 0.0162506103515625, 0.0293731689453125, -0.022979736328125, -0.0916748046875, -0.0408935546875, -0.0291290283203125, 0.0560302734375, -0.027923583984375, -0.033203125, 0.060455322265625, 0.0016984939575195312, -0.0026264190673828125, -0.01322174072265625, 0.03668212890625, 0.016845703125, -0.0015134811401367188, 0.0211029052734375, -0.06427001953125, -0.043426513671875, 0.0009021759033203125, -0.0209808349609375, -0.00859832763671875, -0.044097900390625, -0.0208740234375, 0.039276123046875, -0.017974853515625, 0.0079498291015625, -0.022735595703125, -0.006519317626953125, -0.0518798828125, 0.042938232421875, 0.0003650188446044922, -0.005954742431640625, -0.024627685546875, -0.0002123117446899414, 0.023223876953125, -0.01340484619140625, 0.00980377197265625, -0.0240325927734375, -0.038543701171875, 0.00736236572265625, 0.03912353515625, 0.08258056640625, 0.006259918212890625, 0.046356201171875, 0.046112060546875, 0.0093536376953125, 0.0048980712890625, 0.006214141845703125, -0.0154571533203125, 0.00412750244140625, 0.035888671875, -0.01512908935546875, -0.0413818359375, -0.00147247314453125, -0.0391845703125, 0.002292633056640625, 0.034576416015625, 0.0196075439453125, -0.057647705078125, 0.0020503997802734375, -0.00917816162109375, -0.01068878173828125, -0.0201263427734375, -0.01229095458984375, -0.006805419921875, -0.0178070068359375, 0.05322265625, 0.016845703125, -0.002880096435546875, 0.024505615234375, 0.005794525146484375, -0.0142974853515625, -0.012115478515625, -0.0386962890625, 0.000896453857421875, -0.01470184326171875, 0.00925445556640625, 0.017730712890625, -0.004360198974609375, -0.01186370849609375, 0.01479339599609375, -0.01328277587890625, 0.0042266845703125, -0.04364013671875, 0.024810791015625, -0.00983428955078125, -0.0159454345703125, 0.00015163421630859375, 0.009521484375, 0.005939483642578125, 0.05120849609375, -0.0221099853515625, 0.0268402099609375, 0.01117706298828125, -0.0072784423828125, -0.009185791015625, -0.020416259765625, 0.003437042236328125, 0.013153076171875, -0.043243408203125, 0.01146697998046875, -0.0130157470703125, 0.0017137527465820312, 0.00507354736328125, -0.035552978515625, 0.023040771484375, -0.0200347900390625, 0.00016891956329345703, 0.0300445556640625, 0.0164642333984375, -0.0105438232421875, -0.0120391845703125, 0.01340484619140625, -0.01515960693359375, 0.0151824951171875, -0.0148468017578125, -0.0111083984375, 0.00933074951171875, -0.01129913330078125, -0.0187530517578125, 0.048431396484375, -0.03411865234375, -0.00756072998046875, 0.0287628173828125, 0.032440185546875, 0.0052947998046875, 0.047210693359375, -0.042633056640625, 0.08001708984375, -0.0019683837890625, 0.079345703125, -0.06121826171875, -0.02264404296875, 0.033203125, 0.045745849609375, -0.03192138671875, -0.02410888671875, -0.0255584716796875, -0.0294189453125, 0.014892578125, 0.0440673828125, 0.04840087890625, 0.01522064208984375, -0.0203857421875, 0.0411376953125, 0.0635986328125, -0.0628662109375, 0.0049896240234375, 0.035552978515625, -0.00959014892578125, 0.021514892578125, 0.012969970703125, 0.0237579345703125, -0.0038661956787109375, 0.0304412841796875, -0.00908660888671875, -0.0017261505126953125, 0.020599365234375, 0.0005893707275390625, 0.007678985595703125, 0.04248046875, 0.05731201171875, -0.1314697265625, -0.084716796875, -0.0262603759765625, 0.034271240234375, 0.008209228515625, 0.01318359375, -0.002605438232421875, -0.00983428955078125, 0.10302734375, -0.00917816162109375, -0.0211029052734375, 0.0282745361328125, -0.0027675628662109375, 0.040191650390625, 0.0149383544921875, 0.047454833984375, -0.044647216796875, -0.048583984375, 0.0213775634765625, 0.06378173828125, -0.0196533203125, -0.0113372802734375, 0.0234527587890625, 0.00942230224609375, -0.027923583984375, -0.022186279296875, -0.03302001953125, 0.0197906494140625, 0.043548583984375, 0.0225067138671875, -0.036651611328125, -0.01910400390625, -0.004199981689453125, -0.0037708282470703125, -0.0011014938354492188, 0.0667724609375, -0.005458831787109375, -0.0029449462890625, -0.0225982666015625, 0.0079193115234375, 0.049530029296875, 0.01357269287109375, 0.00978851318359375, -0.06268310546875, -0.015533447265625, -0.01232147216796875, -0.01654052734375, -0.04376220703125, 0.0259246826171875, -0.05670166015625, -0.0526123046875, 0.0249176025390625, 0.06378173828125, 0.036468505859375, 0.003520965576171875, 0.032196044921875, 0.0257720947265625, -0.02386474609375, 0.00493621826171875, 0.047943115234375, -0.015716552734375, -0.016571044921875, -0.01345062255859375, -0.020538330078125, 0.0196380615234375, -0.00836944580078125, -0.0001392364501953125, 0.052581787109375, -0.0013322830200195312, -0.0004391670227050781, 0.0160369873046875, -0.00222015380859375, 0.00659942626953125, 0.04278564453125, 0.0302734375, 0.01031494140625, 0.041015625, -0.070556640625, -0.0183868408203125, -0.0233154296875, 0.0030422210693359375, 0.00514984130859375, 0.0239410400390625, -0.0291290283203125, 0.045379638671875, 0.0335693359375, -0.025115966796875, 0.0266876220703125, 0.0037631988525390625, 0.0172271728515625, 0.024993896484375, 0.0260772705078125, 0.0126953125, -0.0034008026123046875, -0.01361846923828125, 0.0261077880859375, 0.02545166015625, -0.018768310546875, 0.048583984375, -0.0193939208984375, 0.0035190582275390625, 0.01873779296875, -0.039215087890625, 0.055877685546875, 0.036285400390625, -0.006481170654296875, 0.0163421630859375, -0.0159454345703125, -0.03778076171875, -0.04876708984375, 0.01506805419921875, 0.0279388427734375, -0.01146697998046875, 0.01959228515625, -0.03045654296875, 0.0162353515625, 0.00252532958984375, -0.0152435302734375, -0.041534423828125, 0.030364990234375, 0.0341796875, -0.03167724609375, 0.005950927734375, -0.045654296875, 0.0217437744140625, 0.0443115234375, -0.01953125, -0.0231475830078125, 0.0313720703125, -0.053741455078125, 0.048858642578125, 0.0301666259765625, -0.037200927734375, 0.035552978515625, 0.01021575927734375, -0.0164794921875, 0.0233612060546875, 0.0186004638671875, -0.040679931640625, 0.03607177734375, 0.0006055831909179688, -0.031280517578125, 0.0340576171875, 0.053314208984375, 0.0156402587890625, 0.0284881591796875, -0.0283966064453125, -0.007366180419921875, 0.0029201507568359375, 0.047119140625, -0.0003345012664794922, 0.003997802734375, -0.042205810546875, -0.040740966796875, -0.003849029541015625, -0.033355712890625, 0.047637939453125, -0.0192718505859375, 0.0270843505859375, 0.025421142578125, -0.056549072265625, 0.037139892578125, -0.0157318115234375, -0.0026111602783203125, 0.005313873291015625, -0.0406494140625, 0.0241546630859375, 0.04827880859375, -0.01049041748046875, -0.01558685302734375, -0.0195465087890625, -0.014312744140625, -0.01125335693359375, 0.01505279541015625, 0.025604248046875, -0.0283050537109375, 0.0034332275390625, -0.0029621124267578125, 0.0157623291015625, 0.0302886962890625, -0.0113677978515625, 0.0184783935546875, 0.0494384765625, 0.00940704345703125, -0.044189453125, -0.0814208984375, -0.0096588134765625, -0.0274200439453125, 0.0151824951171875, -0.01165771484375, 0.01177215576171875, 0.01451873779296875, -0.039398193359375, -0.0908203125, 0.03472900390625, -0.0190887451171875, -0.0288543701171875, -0.08245849609375, -0.0113372802734375, -0.0065460205078125, 0.031829833984375, -0.01059722900390625, -0.024444580078125, -0.054473876953125, 0.051513671875, 0.0167236328125, -0.0079803466796875, 0.06768798828125, -0.0323486328125, -0.08331298828125, -0.0390625, -0.040435791015625, 0.0255279541015625, 0.0171661376953125, 0.01434326171875, 0.020477294921875, 0.044586181640625, -0.028350830078125, 0.02166748046875, -0.034149169921875, 0.0030803680419921875, -0.0012025833129882812, -0.015106201171875, -0.0027980804443359375, 0.0006055831909179688, 0.0218048095703125, 0.034698486328125, 0.0048370361328125, -0.0430908203125, -0.0261077880859375, -0.023468017578125, -0.03717041015625, -0.018463134765625, 0.03094482421875, -0.05169677734375, 0.01113128662109375, 0.0004856586456298828, -0.027618408203125, 0.0071258544921875, -0.0014867782592773438, -0.0465087890625, -0.00012385845184326172, -0.04833984375, -0.001827239990234375, -0.060394287109375, 0.0189208984375, -0.0496826171875, -0.007122039794921875, -0.058746337890625, 0.00652313232421875, 0.00015985965728759766, -0.07415771484375, 0.0025005340576171875, -0.00911712646484375, -0.00415802001953125, -0.00653076171875, 0.039703369140625, -0.004085540771484375, 0.009613037109375, -0.035247802734375, -0.0011882781982421875, 0.004268646240234375, 0.0262298583984375, -0.01358795166015625, 0.03350830078125, 0.0276947021484375, 0.006763458251953125, -0.0134124755859375, 0.09857177734375, 0.03253173828125, 0.055755615234375, -0.01192474365234375, 0.05731201171875, -0.0024394989013671875, -0.0294036865234375, -0.0128021240234375, 0.002864837646484375, -0.004184722900390625, 0.00696563720703125, -0.045135498046875, -0.0244293212890625, 0.002811431884765625, -0.01097869873046875, -0.0312042236328125, -0.006412506103515625 ]
2be792410701a1da99bd8ca06c8d4b74432670ab
Wordpress Stackexchange Q: Search: Only One Result Returned I've nearly finished a blog that I'm working on but the search feature isn't working quite correctly. Searches that should return more than one result only return one. I guess I'm not really sure where to look to solve this issue as I'm not very experienced with Wordpress. The site is WP version 3.3.1 and uses search.php The template is a modified version of Wordfinder. Any tips or suggestions would be greatly appreciated. A: Here, wpe_excerpt is not defined so the page is erroring out.
Q: Search: Only One Result Returned I've nearly finished a blog that I'm working on but the search feature isn't working quite correctly. Searches that should return more than one result only return one. I guess I'm not really sure where to look to solve this issue as I'm not very experienced with Wordpress. The site is WP version 3.3.1 and uses search.php The template is a modified version of Wordfinder. Any tips or suggestions would be greatly appreciated. A: Here, wpe_excerpt is not defined so the page is erroring out. A: Add an wp_reset_query() befor and after Loop, maybe it works. Works not, debug the query and see, what are in the array, all results or only one entry.
wordpress
{ "language": "en", "length": 120, "provenance": "stackexchange_00019.jsonl.gz:416396", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39880" }
[ -0.003765106201171875, -0.03790283203125, -0.007167816162109375, 0.060760498046875, -0.0295257568359375, -0.046875, 0.07305908203125, -0.0212554931640625, 0.044189453125, 0.0210418701171875, -0.06634521484375, -0.006328582763671875, -0.020843505859375, -0.00795745849609375, -0.0233917236328125, -0.0576171875, 0.0244903564453125, -0.032012939453125, -0.03643798828125, -0.0173492431640625, -0.0103302001953125, 0.00022304058074951172, -0.0264434814453125, 0.03338623046875, 0.00936126708984375, -0.043060302734375, 0.046630859375, -0.00910186767578125, -0.0036602020263671875, -0.035552978515625, 0.01187896728515625, 0.038818359375, 0.036712646484375, 0.01271820068359375, -0.04815673828125, -0.0213165283203125, -0.003040313720703125, 0.01042938232421875, -0.031829833984375, 0.037994384765625, 0.006587982177734375, -0.01363372802734375, -0.037841796875, -0.005451202392578125, -0.0233154296875, -0.040252685546875, 0.0286102294921875, -0.03607177734375, 0.0158843994140625, -0.0016384124755859375, 0.0222625732421875, 0.0218048095703125, 0.0193939208984375, -0.048309326171875, -0.01715087890625, 0.003082275390625, 0.041046142578125, -0.032440185546875, 0.001209259033203125, -0.049835205078125, -0.01410675048828125, 0.027008056640625, 0.045928955078125, 0.05133056640625, -0.043182373046875, 0.0181732177734375, -0.0155487060546875, 0.005496978759765625, -0.0170745849609375, -0.05859375, 0.0078125, -0.01226806640625, 0.01119232177734375, 0.00916290283203125, -0.03485107421875, -0.052947998046875, 0.0245819091796875, -0.0369873046875, 0.01282501220703125, 0.01023101806640625, -0.018646240234375, -0.0443115234375, -0.06182861328125, -0.0274810791015625, 0.01314544677734375, -0.00815582275390625, 0.02020263671875, 0.01169586181640625, -0.06048583984375, -0.01568603515625, -0.0277862548828125, -0.07366943359375, -0.04827880859375, -0.014434814453125, 0.0026702880859375, -0.03643798828125, 0.01468658447265625, 0.0657958984375, 0.005035400390625, 0.007747650146484375, -0.042205810546875, -0.01050567626953125, -0.0428466796875, -0.02239990234375, 0.040008544921875, 0.0037250518798828125, -0.015228271484375, 0.0154266357421875, 0.08428955078125, 0.0306243896484375, -0.0030117034912109375, 0.09930419921875, -0.0196380615234375, -0.053375244140625, 0.0037326812744140625, 0.021820068359375, -0.034088134765625, 0.0167999267578125, 0.021026611328125, -0.0278778076171875, 0.0109710693359375, 0.022308349609375, 0.034515380859375, -0.026947021484375, -0.056488037109375, -0.0447998046875, -0.01036834716796875, -0.03125, 0.044769287109375, -0.005084991455078125, -0.0007147789001464844, 0.0291595458984375, -0.04412841796875, -0.03802490234375, -0.069091796875, 0.009002685546875, 0.04522705078125, 0.01409912109375, 0.01047515869140625, -0.002170562744140625, 0.002765655517578125, -0.03546142578125, -0.0284271240234375, 0.0142974853515625, -0.00482940673828125, -0.0290985107421875, 0.0249176025390625, 0.05511474609375, 0.0168609619140625, -0.01476287841796875, -0.0195159912109375, 0.087890625, 0.03668212890625, -0.0335693359375, -0.03533935546875, -0.0897216796875, -0.045623779296875, -0.0307159423828125, 0.041595458984375, -0.046051025390625, 0.032562255859375, -0.00334930419921875, 0.0279693603515625, 0.0175628662109375, -0.006366729736328125, -0.0035228729248046875, -0.041351318359375, -0.01800537109375, 0.0093231201171875, 0.032562255859375, -0.034332275390625, -0.0125732421875, 0.032562255859375, -0.0186614990234375, -0.0406494140625, 0.0011959075927734375, 0.01983642578125, 0.006908416748046875, 0.002971649169921875, 0.0391845703125, 0.01202392578125, -0.02239990234375, 0.0665283203125, -0.0241851806640625, -0.06121826171875, 0.063232421875, 0.0016584396362304688, 0.05596923828125, -0.009765625, 0.00838470458984375, 0.01190948486328125, 0.06103515625, -0.008941650390625, 0.004390716552734375, 0.01953125, -0.0307769775390625, -0.019561767578125, -0.0200042724609375, -0.0099639892578125, -0.0106048583984375, 0.03143310546875, 0.01136016845703125, 0.0117645263671875, 0.0190582275390625, -0.028350830078125, 0.037506103515625, -0.021484375, 0.006259918212890625, -0.044219970703125, 0.013519287109375, 0.040496826171875, 0.0014781951904296875, -0.03759765625, 0.0181732177734375, 0.0075225830078125, 0.00333404541015625, -0.0107574462890625, 0.015350341796875, -0.0125579833984375, -0.0023040771484375, 0.006134033203125, -0.03118896484375, -0.002422332763671875, 0.042816162109375, 0.08111572265625, -0.016510009765625, -0.023345947265625, -0.04583740234375, 0.048828125, -0.0107269287109375, -0.056304931640625, 0.07220458984375, 0.0870361328125, 0.07952880859375, -0.0150146484375, 0.0201416015625, 0.0185699462890625, 0.0012388229370117188, -0.00923919677734375, 0.029754638671875, 0.02886962890625, 0.03387451171875, -0.0189361572265625, -0.0243377685546875, 0.049072265625, -0.06500244140625, -0.01239013671875, 0.0036487579345703125, 0.0350341796875, 0.04852294921875, 0.004974365234375, -0.021942138671875, 0.0174102783203125, -0.052581787109375, 0.016204833984375, 0.024871826171875, -0.00647735595703125, 0.0227203369140625, -0.034576416015625, 0.00420379638671875, -0.004711151123046875, 0.00998687744140625, -0.003513336181640625, 0.00627899169921875, -0.0149078369140625, 0.0247344970703125, 0.02520751953125, 0.037384033203125, -0.02423095703125, 0.0038890838623046875, 0.0009784698486328125, 0.037384033203125, -0.008880615234375, 0.0289459228515625, 0.00592803955078125, 0.016937255859375, -0.00666046142578125, 0.0086212158203125, -0.01335906982421875, 0.0036334991455078125, -0.005462646484375, 0.0186614990234375, -0.03802490234375, -0.01430511474609375, 0.0097503662109375, -0.00604248046875, -0.02099609375, 0.00989532470703125, 0.0005588531494140625, 0.0005254745483398438, 0.0228424072265625, 0.030059814453125, -0.0201416015625, 0.043212890625, -0.03765869140625, 0.0007266998291015625, -0.01378631591796875, -0.042510986328125, 0.031890869140625, -0.048370361328125, 0.041229248046875, 0.05303955078125, -0.04656982421875, 0.035400390625, -0.0192718505859375, 0.03070068359375, -0.01165008544921875, -0.0004405975341796875, -0.0190582275390625, 0.00787353515625, -0.053741455078125, 0.00194549560546875, 0.029052734375, 0.04083251953125, 0.01727294921875, -0.0310211181640625, -0.006031036376953125, 0.0213623046875, -0.086181640625, -0.08416748046875, -0.009124755859375, -0.06048583984375, -0.003406524658203125, -0.0230865478515625, -0.0283355712890625, -0.0013132095336914062, 0.0009217262268066406, 0.00032973289489746094, 0.07525634765625, -0.0185546875, -0.065185546875, 0.00576019287109375, -0.08270263671875, 0.035003662109375, -0.006023406982421875, 0.004894256591796875, 0.00235748291015625, 0.06353759765625, 0.031524658203125, -0.028656005859375, 0.03460693359375, 0.0517578125, -0.036163330078125, -0.002208709716796875, 0.00867462158203125, -0.0244598388671875, -0.0235748291015625, 0.0019550323486328125, -0.0161895751953125, -0.0020313262939453125, 0.0028438568115234375, 0.0004773139953613281, 0.002410888671875, -0.01023101806640625, 0.041534423828125, -0.03369140625, -0.043426513671875, 0.032806396484375, 0.02301025390625, -0.032196044921875, 0.02459716796875, -0.028472900390625, -0.032196044921875, -0.0024623870849609375, 0.031951904296875, -0.0097198486328125, -0.043731689453125, -0.0126190185546875, 0.01129913330078125, 0.021514892578125, -0.037567138671875, -0.0168914794921875, 0.057769775390625, 0.010223388671875, 0.0298004150390625, 0.00823211669921875, 0.01515960693359375, -0.02862548828125, -0.03643798828125, -0.0160675048828125, 0.00005733966827392578, 0.001918792724609375, -0.043701171875, -0.0137939453125, -0.004703521728515625, 0.0306549072265625, -0.0093536376953125, 0.028076171875, -0.028533935546875, -0.026214599609375, -0.0164031982421875, 0.07720947265625, -0.059600830078125, -0.013885498046875, 0.034454345703125, 0.033294677734375, -0.031402587890625, -0.0537109375, -0.044158935546875, -0.029205322265625, -0.025421142578125, -0.0310821533203125, -0.0196075439453125, -0.01219940185546875, 0.005977630615234375, -0.0188446044921875, 0.01200103759765625, -0.04486083984375, 0.027130126953125, -0.0467529296875, 0.026519775390625, -0.016265869140625, -0.0009555816650390625, -0.0322265625, 0.0021610260009765625, -0.04534912109375, -0.0404052734375, -0.011260986328125, 0.0233612060546875, 0.0156707763671875, -0.0247955322265625, -0.0027065277099609375, -0.012115478515625, 0.03717041015625, -0.002552032470703125, 0.049072265625, 0.0126495361328125, -0.007587432861328125, 0.039215087890625, 0.046142578125, 0.0240631103515625, 0.00856781005859375, -0.037017822265625, -0.060302734375, -0.01116180419921875, -0.0243682861328125, -0.026519775390625, 0.0113067626953125, -0.0340576171875, 0.0175933837890625, 0.02667236328125, -0.00949859619140625, 0.0135345458984375, 0.033782958984375, -0.0032558441162109375, -0.0017824172973632812, -0.0050506591796875, 0.0245361328125, -0.003383636474609375, 0.0104522705078125, 0.0056610107421875, 0.022247314453125, 0.036529541015625, 0.01922607421875, -0.00839996337890625, -0.0244140625, -0.007755279541015625, 0.01129913330078125, 0.051971435546875, 0.00868988037109375, -0.0169219970703125, -0.01549530029296875, 0.01959228515625, -0.004367828369140625, 0.0103912353515625, 0.019805908203125, 0.0268096923828125, -0.0050506591796875, -0.0303192138671875, 0.040863037109375, 0.004207611083984375, -0.057373046875, 0.002010345458984375, -0.0208282470703125, -0.0195159912109375, 0.003925323486328125, 0.051513671875, -0.020904541015625, 0.040313720703125, -0.04046630859375, -0.0355224609375, -0.00980377197265625, 0.0241546630859375, 0.0455322265625, 0.037933349609375, -0.009490966796875, 0.040313720703125, 0.047454833984375, -0.0217437744140625, 0.018768310546875, 0.0245361328125, 0.01157379150390625, 0.05059814453125, -0.0443115234375, -0.0246124267578125, -0.0157470703125, -0.0166778564453125, 0.064208984375, 0.03179931640625, -0.035919189453125, 0.05084228515625, 0.00911712646484375, -0.04534912109375, 0.0022296905517578125, 0.0075836181640625, 0.0050201416015625, -0.01513671875, -0.007747650146484375, 0.0024662017822265625, -0.005901336669921875, -0.0179443359375, -0.01971435546875, -0.0011816024780273438, -0.0245819091796875, 0.005977630615234375, 0.01526641845703125, 0.041229248046875, -0.051666259765625, 0.046142578125, -0.00481414794921875, -0.037872314453125, -0.0304107666015625, 0.03411865234375, 0.0323486328125, -0.025238037109375, 0.0018444061279296875, 0.01499176025390625, 0.041656494140625, -0.026824951171875, 0.005218505859375, 0.02459716796875, -0.00952911376953125, 0.0264434814453125, -0.0025196075439453125, 0.0187225341796875, 0.0224456787109375, -0.021759033203125, 0.0360107421875, 0.0283660888671875, -0.039947509765625, -0.0219268798828125, 0.019622802734375, 0.0211181640625, 0.0017995834350585938, -0.0025348663330078125, -0.0105743408203125, -0.01424407958984375, -0.002605438232421875, 0.040618896484375, -0.0252685546875, -0.0024662017822265625, -0.007171630859375, -0.0107574462890625, -0.018463134765625, 0.0166168212890625, -0.03973388671875, -0.006275177001953125, -0.0128631591796875, -0.0164031982421875, 0.050201416015625, -0.031219482421875, -0.00614166259765625, -0.0200653076171875, 0.021240234375, -0.036956787109375, 0.0266265869140625, 0.0164031982421875, -0.00036716461181640625, -0.06231689453125, -0.008209228515625, -0.04071044921875, -0.0035552978515625, 0.043121337890625, 0.00803375244140625, -0.02984619140625, -0.021270751953125, 0.0215606689453125, 0.0169219970703125, 0.0185394287109375, -0.004261016845703125, 0.01154327392578125, 0.00591278076171875, -0.01346588134765625, -0.0017681121826171875, -0.046356201171875, 0.0279693603515625, 0.0222320556640625, -0.0178375244140625, -0.00969696044921875, 0.027740478515625, 0.043670654296875, -0.00991058349609375, 0.00675201416015625, -0.058441162109375, -0.0206298828125, 0.01499176025390625, -0.052520751953125, -0.0101318359375, 0.00824737548828125, 0.0005645751953125, -0.022552490234375, 0.004177093505859375, 0.004138946533203125, -0.0014171600341796875, 0.024017333984375, 0.0328369140625, -0.0301513671875, 0.061370849609375, -0.00359344482421875, 0.02862548828125, -0.0167999267578125, 0.00629425048828125, 0.001094818115234375, -0.01059722900390625, -0.00008499622344970703, -0.006221771240234375, 0.019622802734375, -0.00997161865234375, -0.0122833251953125, -0.0170745849609375, 0.0192108154296875, -0.007549285888671875, 0.01387786865234375, 0.00762939453125, -0.04443359375, -0.028564453125, 0.052734375, 0.005390167236328125, -0.031951904296875, -0.004486083984375, 0.008697509765625, -0.0207061767578125, -0.0146484375, 0.0304107666015625, 0.0026874542236328125, -0.04779052734375, 0.0018177032470703125, -0.0201568603515625, -0.0213165283203125, 0.00992584228515625, -0.01128387451171875, -0.0142669677734375, -0.066650390625, 0.032745361328125, 0.013092041015625, -0.01267242431640625, -0.0124053955078125, -0.006786346435546875, -0.0039215087890625, -0.0207061767578125, 0.0251922607421875, 0.01377105712890625, -0.062469482421875, 0.042816162109375, 0.05926513671875, 0.005313873291015625, -0.00040340423583984375, 0.0182342529296875, 0.038970947265625, -0.03790283203125, -0.0867919921875, -0.01506805419921875, -0.005405426025390625, -0.0560302734375, -0.00485992431640625, 0.03472900390625, -0.004085540771484375, 0.052764892578125, -0.0167388916015625, 0.0250396728515625, 0.0164947509765625, 0.0145416259765625, -0.036834716796875, -0.047149658203125, 0.018707275390625, 0.0418701171875, -0.040924072265625, 0.039459228515625, -0.0019197463989257812, -0.03729248046875, -0.00829315185546875, -0.052978515625, 0.04656982421875, -0.0184783935546875, 0.00147247314453125, 0.032012939453125, -0.015533447265625, -0.0204010009765625, 0.024505615234375, -0.00839996337890625, -0.0197601318359375, 0.004276275634765625, 0.01275634765625, -0.0186614990234375, 0.0231781005859375, 0.03863525390625, -0.053558349609375, 0.06939697265625, 0.0201416015625, 0.0254669189453125, -0.01009368896484375, 0.0259246826171875, 0.0011615753173828125, 0.01971435546875, -0.04901123046875, 0.057830810546875, -0.03485107421875, 0.04901123046875, -0.033782958984375, 0.0059814453125, 0.00952911376953125, -0.008056640625, 0.00621795654296875, -0.004085540771484375, -0.0033206939697265625, 0.006549835205078125, 0.025634765625, 0.01464080810546875, -0.0149078369140625, 0.0161590576171875, 0.040771484375, 0.01806640625, 0.0494384765625, 0.0035419464111328125, 0.0390625, -0.0291900634765625, 0.0172576904296875, 0.058502197265625, -0.00012922286987304688, -0.01180267333984375, 0.0223236083984375, 0.00791168212890625, -0.059112548828125, 0.01015472412109375, 0.0234375, 0.0235748291015625, 0.03143310546875, 0.0399169921875, 0.04437255859375, -0.0567626953125, 0.029510498046875, -0.03399658203125, 0.0498046875, -0.01715087890625, 0.0211944580078125, 0.0223846435546875, 0.017669677734375, 0.028045654296875, -0.010162353515625, 0.021087646484375, 0.029449462890625, -0.039215087890625, -0.01183319091796875, -0.00811004638671875, 0.0143585205078125, -0.0239410400390625, 0.01611328125, 0.03863525390625, 0.0097198486328125, -0.011199951171875, -0.06982421875, 0.0223846435546875, 0.01031494140625, -0.01107025146484375, 0.0242767333984375, -0.0274505615234375, 0.042510986328125, 0.11962890625, -0.006622314453125, -0.00061798095703125, 0.01129150390625, 0.0020160675048828125, 0.00341796875, 0.01203155517578125, -0.01113128662109375, 0.006328582763671875, -0.005672454833984375, 0.01441192626953125, 0.01611328125, 0.04400634765625, -0.03009033203125, 0.0443115234375, -0.09820556640625, 0.0007948875427246094, -0.0171051025390625, 0.07281494140625, -0.0221710205078125, 0.0307159423828125, -0.055328369140625, -0.0718994140625, 0.0038356781005859375, 0.04736328125, 0.0252838134765625, -0.003673553466796875, 0.0018758773803710938, 0.0224761962890625, 0.004566192626953125, 0.0016422271728515625, 0.05908203125, -0.0022411346435546875, -0.04876708984375, -0.03558349609375, -0.0003490447998046875, 0.04278564453125, 0.02880859375, 0.026885986328125, 0.0229034423828125, 0.0173797607421875, 0.027191162109375, -0.033599853515625, 0.0264434814453125, -0.05194091796875, -0.0008759498596191406, 0.03875732421875, 0.050384521484375, 0.063232421875, -0.0963134765625, -0.01433563232421875, 0.0299224853515625, -0.08154296875, 0.0357666015625, 0.052703857421875, -0.03582763671875, -0.0220947265625, -0.0106353759765625, -0.003505706787109375, -0.004405975341796875, -0.0241851806640625, 0.0285491943359375, -0.0106201171875, -0.01457977294921875, -0.005992889404296875, -0.0633544921875, -0.020721435546875, 0.0296783447265625, -0.00731658935546875, -0.03631591796875, 0.039794921875, 0.02191162109375, -0.0295562744140625, -0.006137847900390625, 0.0013265609741210938, 0.005237579345703125, 0.0032634735107421875, -0.0126800537109375, -0.0002818107604980469, -0.003124237060546875, -0.007450103759765625, -0.050811767578125, 0.005695343017578125, 0.038177490234375, -0.00571441650390625, 0.0204620361328125, -0.0113525390625, 0.01320648193359375, -0.03045654296875, 0.023468017578125, -0.025115966796875, 0.0071258544921875, -0.032806396484375, -0.057159423828125, 0.056793212890625, 0.0233612060546875, 0.0261383056640625, 0.01035308837890625, 0.013580322265625, -0.052490234375, 0.019683837890625, -0.0360107421875, 0.0284423828125, 0.0262908935546875, 0.056243896484375, 0.01151275634765625, -0.0254058837890625, -0.031463623046875, -0.0198211669921875, 0.0158538818359375, -0.041107177734375, -0.0196990966796875, 0.0008869171142578125, 0.0245819091796875, -0.0279541015625, 0.0277862548828125, -0.029693603515625, -0.01064300537109375, -0.0020275115966796875, 0.03314208984375, -0.00751495361328125, 0.02435302734375, -0.0022525787353515625, 0.03497314453125, -0.04302978515625, -0.027801513671875, 0.02777099609375, -0.057342529296875, 0.0361328125, -0.0237579345703125, 0.03863525390625, -0.006320953369140625, 0.005878448486328125, -0.001033782958984375, -0.0260162353515625, -0.0198974609375, 0.0087738037109375, -0.0128936767578125, 0.0321044921875, 0.097900390625, -0.037384033203125, -0.005168914794921875, 0.00402069091796875, -0.0251007080078125, -0.031707763671875, -0.0169525146484375, 0.0097503662109375, 0.0127105712890625, -0.01474761962890625, -0.0013179779052734375, -0.0321044921875, 0.042755126953125, -0.0224761962890625, -0.01149749755859375, 0.010986328125, -0.0028839111328125, -0.05047607421875, -0.033416748046875, 0.04583740234375, -0.0361328125, -0.048004150390625, -0.0022029876708984375, 0.017303466796875, 0.028533935546875, -0.036865234375, -0.09417724609375, 0.05230712890625, -0.018157958984375, -0.033203125, -0.06341552734375, -0.04180908203125, 0.0010890960693359375, -0.0123291015625, -0.034149169921875, 0.0211944580078125, -0.0640869140625, 0.038482666015625, 0.0220794677734375, 0.03875732421875, 0.019378662109375, 0.05657958984375, -0.035888671875, 0.022613525390625, -0.022918701171875, -0.010650634765625, 0.000667572021484375, -0.005157470703125, 0.013916015625, 0.050872802734375, -0.0252685546875, -0.04693603515625, -0.00040221214294433594, -0.0279693603515625, 0.0160369873046875, 0.00034046173095703125, -0.0322265625, -0.0048675537109375, 0.027618408203125, 0.0264739990234375, 0.0074462890625, -0.0214691162109375, 0.0360107421875, -0.016143798828125, -0.0892333984375, -0.010223388671875, 0.033050537109375, -0.047760009765625, 0.0045928955078125, -0.003978729248046875, -0.0167236328125, 0.039581298828125, -0.00446319580078125, -0.0256500244140625, 0.0047760009765625, -0.002117156982421875, -0.00403594970703125, -0.06829833984375, 0.0019397735595703125, 0.01788330078125, -0.0222015380859375, -0.023834228515625, 0.00783538818359375, -0.00372314453125, -0.0186767578125, 0.0056610107421875, 0.0303955078125, 0.0704345703125, -0.034393310546875, -0.0335693359375, 0.0665283203125, -0.044097900390625, 0.027618408203125, -0.00604248046875, -0.00811004638671875, 0.0182647705078125, 0.0027866363525390625, 0.0138092041015625, -0.009765625, -0.01453399658203125, -0.014556884765625, -0.008514404296875, -0.0190277099609375, 0.0439453125, -0.021148681640625, 0.037567138671875, -0.006938934326171875, 0.007305145263671875, 0.0203857421875, 0.0037841796875, 0.0051116943359375, 0.041351318359375, 0.0428466796875, -0.032318115234375, 0.0302734375, 0.0272674560546875, 0.04351806640625, 0.01384735107421875 ]
01d07889e80dca7d41c785bf779ae6b8c4fda202
Wordpress Stackexchange Q: What is the best way to customise admin files so they survive future upgrades? I have a site with some custom post types, one of which doesn't have a title. When viewed in the admin section, the posts are listed like so Which is less than ideal, for obvious reasons. I have edited one of the admin files wp-admin/includes/class-wp-posts-list-table.php to display the list as below The problem is the customisation is overwritten by upgrades. What is the correct way to make customisations to the admin files so they survive upgrades? A: Don't edit core WP files. Use the provided filters instead. For instance, have a look at the manage_$posttype_posts_columns filter.
Q: What is the best way to customise admin files so they survive future upgrades? I have a site with some custom post types, one of which doesn't have a title. When viewed in the admin section, the posts are listed like so Which is less than ideal, for obvious reasons. I have edited one of the admin files wp-admin/includes/class-wp-posts-list-table.php to display the list as below The problem is the customisation is overwritten by upgrades. What is the correct way to make customisations to the admin files so they survive upgrades? A: Don't edit core WP files. Use the provided filters instead. For instance, have a look at the manage_$posttype_posts_columns filter. A: I'm assuming you are setting the Post Title via a Custom Field created for your Custom Post Type "reviews". As a suggestion, would it not be easier to have WordPress set the value of the Post Title from the value in which you enter into your Custom Field instead of having to alter the columns of the post list? This would avoid that ugly scenario where you see Auto Draft and would make the Post Title available should you wish to call it using <?php the_title();?> in various places within your theme. In some instances for Custom Post Types, I have completely removed the Post Title field seen traditionally at the top of the edit screen. Instead I've replaced the usual fields seen with a Custom Metabox whereby one of the particular fields within this Metabox also sets the title of the post. Coincidentally one of the ways to achieve this has also been provided by Chip Bennett above in another question located here: Custom Post Type: Set post_title equal to a custom post type field Chip's first answer above is entirely correct in terms of the context in which this question applies. I am just providing an alternate solution opposed to traveling down that particular route in the first place. Of course that method is perfectly usable in situations where you might want to display certain custom fields within the post columns that fall outside of the traditional, Title, Author, Date, etc already provided natively by WordPress.
wordpress
{ "language": "en", "length": 360, "provenance": "stackexchange_00019.jsonl.gz:416398", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39886" }
[ 0.0623779296875, -0.00820159912109375, 0.030670166015625, -0.026214599609375, -0.003910064697265625, -0.01290130615234375, 0.017791748046875, -0.04833984375, -0.0219879150390625, -0.00652313232421875, 0.023956298828125, -0.005340576171875, -0.057708740234375, -0.0369873046875, -0.002826690673828125, -0.05059814453125, 0.03387451171875, -0.0148773193359375, 0.02685546875, -0.0156402587890625, 0.0127410888671875, 0.0025119781494140625, 0.031982421875, 0.02801513671875, -0.00244140625, -0.04449462890625, 0.041412353515625, -0.0025691986083984375, 0.01812744140625, -0.00301361083984375, 0.02178955078125, -0.006229400634765625, 0.0191497802734375, -0.0196990966796875, 0.0364990234375, 0.0280609130859375, 0.0154266357421875, 0.0012140274047851562, 0.0286407470703125, 0.0073394775390625, 0.0036373138427734375, 0.0136871337890625, 0.0609130859375, 0.0279541015625, 0.01261138916015625, -0.045928955078125, 0.005496978759765625, -0.0287933349609375, 0.00034332275390625, -0.02886962890625, 0.01336669921875, -0.0204315185546875, 0.03399658203125, -0.0706787109375, -0.0157012939453125, 0.003620147705078125, 0.003448486328125, -0.023651123046875, 0.04229736328125, -0.019073486328125, -0.029052734375, -0.041961669921875, 0.046173095703125, -0.004852294921875, 0.005718231201171875, 0.015716552734375, 0.06134033203125, -0.0012416839599609375, -0.059234619140625, 0.005214691162109375, 0.03515625, -0.043670654296875, 0.0242462158203125, -0.04669189453125, -0.0083160400390625, 0.01593017578125, -0.0322265625, -0.0203094482421875, 0.02972412109375, -0.02410888671875, 0.0199737548828125, 0.0097198486328125, 0.04583740234375, -0.04705810546875, 0.0043487548828125, -0.039276123046875, -0.00901031494140625, -0.0009965896606445312, 0.00284576416015625, -0.005096435546875, -0.0021953582763671875, -0.02276611328125, -0.0217132568359375, 0.0533447265625, 0.014404296875, -0.0237274169921875, 0.007122039794921875, 0.0304718017578125, 0.005344390869140625, 0.055572509765625, -0.0122833251953125, -0.03936767578125, 0.03289794921875, -0.045654296875, 0.0168609619140625, 0.034088134765625, -0.0186920166015625, 0.006633758544921875, 0.034210205078125, 0.028533935546875, -0.01467132568359375, 0.0213623046875, -0.0034999847412109375, -0.0208587646484375, -0.01678466796875, 0.0014944076538085938, -0.0271148681640625, 0.032135009765625, 0.00949859619140625, 0.007312774658203125, 0.016571044921875, 0.027618408203125, -0.0018415451049804688, -0.047149658203125, -0.0010614395141601562, -0.02728271484375, -0.045257568359375, -0.004421234130859375, 0.0303497314453125, 0.0316162109375, -0.0221710205078125, -0.0200347900390625, 0.05914306640625, 0.04168701171875, 0.0233917236328125, -0.03173828125, 0.0239410400390625, -0.02093505859375, -0.0176849365234375, 0.01508331298828125, 0.0093994140625, -0.04150390625, -0.01543426513671875, 0.00801849365234375, 0.00437164306640625, 0.044281005859375, -0.0024166107177734375, -0.0117950439453125, 0.018768310546875, -0.0472412109375, 0.02203369140625, -0.0697021484375, 0.0291290283203125, 0.0175323486328125, 0.004009246826171875, -0.03192138671875, 0.04742431640625, -0.03729248046875, 0.0009822845458984375, -0.062469482421875, 0.0023899078369140625, -0.016326904296875, 0.005535125732421875, -0.0274505615234375, -0.040924072265625, 0.037200927734375, -0.031982421875, -0.0027599334716796875, 0.0208892822265625, -0.0156707763671875, 0.06256103515625, -0.0249481201171875, 0.0160675048828125, 0.0093536376953125, 0.0015859603881835938, 0.00795745849609375, 0.00995635986328125, -0.0394287109375, 0.0384521484375, 0.0596923828125, 0.01953125, -0.002902984619140625, 0.03240966796875, -0.0032062530517578125, -0.04443359375, -0.01218414306640625, -0.006847381591796875, 0.041900634765625, 0.035858154296875, 0.0247039794921875, 0.019927978515625, -0.041351318359375, -0.0682373046875, 0.02301025390625, -0.0330810546875, 0.0022220611572265625, -0.000835418701171875, 0.017547607421875, -0.0204620361328125, 0.01024627685546875, -0.038970947265625, 0.0171966552734375, -0.00902557373046875, 0.0297698974609375, -0.0295257568359375, 0.03302001953125, -0.0271759033203125, 0.056121826171875, 0.004611968994140625, 0.0285797119140625, 0.024383544921875, 0.024749755859375, -0.0380859375, 0.0006933212280273438, -0.0102081298828125, -0.0177764892578125, 0.01102447509765625, -0.01113128662109375, 0.00846099853515625, -0.028076171875, 0.00888824462890625, -0.01232147216796875, -0.0114288330078125, 0.041961669921875, 0.0131988525390625, 0.0163116455078125, -0.0207061767578125, -0.006824493408203125, 0.0355224609375, 0.0188751220703125, 0.01371002197265625, 0.0010404586791992188, 0.018096923828125, 0.020111083984375, -0.0192413330078125, -0.0251312255859375, -0.0091094970703125, -0.07891845703125, 0.017669677734375, 0.06396484375, 0.0217132568359375, 0.0119171142578125, 0.0018939971923828125, 0.041961669921875, 0.0269012451171875, -0.002918243408203125, 0.00888824462890625, 0.017181396484375, -0.006931304931640625, 0.0260162353515625, -0.005741119384765625, -0.0015697479248046875, 0.02435302734375, -0.0247650146484375, 0.01148223876953125, 0.04241943359375, -0.0318603515625, -0.018096923828125, -0.006137847900390625, 0.00823211669921875, 0.009796142578125, -0.0202178955078125, -0.007740020751953125, 0.0014867782592773438, 0.0626220703125, 0.02911376953125, 0.042327880859375, 0.034332275390625, -0.054351806640625, 0.0384521484375, 0.01374053955078125, -0.006610870361328125, -0.004070281982421875, 0.006195068359375, 0.04095458984375, 0.004489898681640625, -0.0207061767578125, -0.01192474365234375, 0.002895355224609375, 0.0023097991943359375, -0.00223541259765625, 0.0181884765625, -0.020538330078125, -0.0086822509765625, 0.019287109375, -0.043182373046875, -0.0026950836181640625, 0.0083465576171875, -0.0015621185302734375, -0.01314544677734375, 0.027923583984375, -0.027801513671875, -0.0206451416015625, -0.00841522216796875, 0.0154876708984375, -0.0406494140625, -0.01120758056640625, -0.04425048828125, 0.02764892578125, -0.0248260498046875, 0.037261962890625, 0.073486328125, 0.01654052734375, -0.000560760498046875, -0.0243988037109375, 0.053680419921875, 0.0084686279296875, -0.0070037841796875, -0.0163421630859375, -0.04583740234375, -0.02252197265625, -0.036529541015625, 0.0219268798828125, 0.1268310546875, 0.004383087158203125, -0.059600830078125, 0.05419921875, 0.069091796875, 0.0012006759643554688, -0.0423583984375, -0.0380859375, -0.0288848876953125, -0.022247314453125, -0.01495361328125, -0.0218658447265625, 0.01025390625, -0.0031414031982421875, 0.008331298828125, 0.001094818115234375, -0.0307464599609375, -0.033966064453125, -0.04119873046875, -0.05450439453125, -0.042572021484375, -0.0003323554992675781, -0.00421905517578125, -0.00984954833984375, 0.0845947265625, 0.006977081298828125, -0.069580078125, 0.004207611083984375, 0.0196533203125, -0.01007843017578125, 0.04638671875, 0.044158935546875, -0.01885986328125, 0.0223388671875, 0.0164794921875, 0.00292205810546875, 0.044342041015625, -0.05670166015625, -0.043304443359375, -0.03253173828125, 0.01207733154296875, -0.0083160400390625, 0.00018668174743652344, 0.036865234375, 0.0213165283203125, -0.002475738525390625, -0.0242767333984375, -0.04962158203125, 0.01983642578125, -0.0282745361328125, 0.05950927734375, -0.013916015625, -0.0266876220703125, 0.006855010986328125, 0.0506591796875, 0.01995849609375, 0.023345947265625, 0.008544921875, -0.02740478515625, -0.0186767578125, 0.02294921875, 0.0308990478515625, -0.0016765594482421875, 0.01338958740234375, -0.0203857421875, 0.01678466796875, 0.002288818359375, 0.0164337158203125, 0.007236480712890625, -0.01715087890625, -0.021270751953125, -0.09039306640625, 0.07806396484375, -0.03802490234375, 0.021209716796875, -0.09027099609375, -0.04437255859375, -0.038543701171875, 0.12225341796875, -0.03289794921875, -0.00765228271484375, 0.0005784034729003906, 0.0200653076171875, -0.045318603515625, -0.033966064453125, -0.055084228515625, -0.0054473876953125, -0.08380126953125, -0.01035308837890625, -0.0172119140625, -0.0218048095703125, -0.033111572265625, 0.046630859375, -0.0577392578125, -0.046875, 0.011505126953125, -0.034912109375, -0.001956939697265625, 0.0262603759765625, -0.0015325546264648438, -0.005390167236328125, 0.001750946044921875, -0.038482666015625, -0.08837890625, -0.0188140869140625, -0.037933349609375, 0.042724609375, -0.00031065940856933594, 0.0014219284057617188, -0.03997802734375, 0.01445770263671875, 0.00441741943359375, -0.034088134765625, 0.01268768310546875, -0.0016031265258789062, 0.005298614501953125, 0.002651214599609375, -0.0216217041015625, -0.023681640625, -0.02008056640625, -0.043701171875, -0.0308074951171875, -0.02392578125, -0.01071929931640625, 0.007083892822265625, 0.005741119384765625, -0.001773834228515625, -0.045166015625, -0.0265960693359375, -0.04229736328125, -0.0033664703369140625, -0.027313232421875, -0.0020732879638671875, -0.0202178955078125, -0.06085205078125, 0.0592041015625, 0.0025310516357421875, -0.01100921630859375, 0.006732940673828125, 0.08135986328125, -0.00006181001663208008, -0.0212860107421875, -0.06768798828125, 0.0015010833740234375, 0.024871826171875, -0.01052093505859375, 0.051971435546875, 0.01605224609375, -0.005191802978515625, 0.057159423828125, 0.0015201568603515625, -0.041015625, -0.01654052734375, 0.0751953125, 0.0027065277099609375, -0.0123291015625, 0.005931854248046875, -0.04620361328125, 0.03472900390625, 0.0211334228515625, 0.020782470703125, -0.031524658203125, -0.00316619873046875, 0.05279541015625, 0.0013780593872070312, -0.01552581787109375, -0.0380859375, -0.037445068359375, 0.00890350341796875, -0.0300750732421875, 0.01474761962890625, 0.001953125, 0.0007376670837402344, -0.01016998291015625, -0.002010345458984375, 0.0200958251953125, 0.0045623779296875, 0.038909912109375, -0.029693603515625, 0.03912353515625, 0.00795745849609375, 0.0016622543334960938, -0.006397247314453125, -0.0107879638671875, 0.0467529296875, -0.01367950439453125, -0.046539306640625, -0.0179443359375, -0.01045989990234375, 0.0062255859375, 0.009429931640625, 0.0184783935546875, 0.0227813720703125, 0.0179901123046875, 0.00020503997802734375, -0.00727081298828125, -0.0087738037109375, 0.0176544189453125, -0.0229339599609375, 0.01154327392578125, 0.0169830322265625, -0.0211944580078125, 0.0264892578125, 0.019744873046875, 0.0195159912109375, 0.0059051513671875, -0.01284027099609375, 0.038421630859375, 0.02716064453125, 0.01137542724609375, 0.00829315185546875, -0.0031757354736328125, 0.0150146484375, -0.0207977294921875, 0.003894805908203125, -0.036865234375, -0.0187225341796875, 0.01137542724609375, 0.0279388427734375, -0.00991058349609375, -0.0165557861328125, 0.0198974609375, -0.011077880859375, -0.01800537109375, 0.04498291015625, 0.002407073974609375, -0.0640869140625, -0.0146331787109375, 0.00942230224609375, 0.0290679931640625, -0.0310211181640625, -0.027923583984375, 0.0169219970703125, -0.05859375, -0.0200653076171875, -0.004146575927734375, -0.04632568359375, -0.01080322265625, 0.0102996826171875, -0.01885986328125, -0.0196380615234375, -0.019287109375, -0.038787841796875, -0.0596923828125, 0.0258636474609375, 0.0195159912109375, -0.01526641845703125, -0.0090179443359375, 0.0300445556640625, 0.0030517578125, -0.025787353515625, 0.033599853515625, 0.043365478515625, -0.002948760986328125, -0.02606201171875, -0.04852294921875, 0.00492095947265625, -0.07037353515625, -0.0167236328125, -0.0870361328125, -0.060546875, -0.067138671875, 0.0071258544921875, 0.024261474609375, -0.00695037841796875, 0.016876220703125, -0.0234832763671875, -0.03643798828125, 0.035369873046875, 0.049468994140625, 0.028717041015625, -0.0341796875, 0.0643310546875, 0.00394439697265625, 0.058563232421875, -0.025482177734375, 0.01361083984375, -0.008941650390625, -0.01071929931640625, 0.031982421875, -0.009063720703125, -0.057098388671875, -0.036651611328125, -0.01325225830078125, 0.01085662841796875, 0.04296875, -0.024383544921875, 0.03204345703125, -0.0239715576171875, 0.0014066696166992188, -0.0131683349609375, 0.0011806488037109375, -0.0587158203125, 0.00045561790466308594, 0.025482177734375, 0.029876708984375, 0.0802001953125, -0.050567626953125, -0.05792236328125, -0.011932373046875, 0.007511138916015625, 0.0023193359375, 0.01422882080078125, -0.03521728515625, 0.0294189453125, 0.0289154052734375, 0.0081329345703125, 0.0223541259765625, 0.0104522705078125, 0.0173492431640625, -0.0205230712890625, -0.03765869140625, -0.005435943603515625, 0.032135009765625, 0.059967041015625, 0.0012636184692382812, -0.029632568359375, 0.03839111328125, -0.036102294921875, 0.019378662109375, 0.0648193359375, 0.09234619140625, -0.0777587890625, 0.017913818359375, 0.005558013916015625, -0.00562286376953125, 0.0767822265625, 0.010772705078125, -0.045928955078125, -0.049224853515625, 0.03692626953125, -0.040802001953125, -0.03033447265625, 0.000048279762268066406, 0.017120361328125, 0.005931854248046875, -0.034912109375, 0.04949951171875, 0.01340484619140625, 0.018341064453125, -0.0182952880859375, -0.01959228515625, -0.0012073516845703125, 0.0245513916015625, 0.0205535888671875, -0.031829833984375, -0.042083740234375, -0.060577392578125, -0.05682373046875, -0.017364501953125, -0.053466796875, -0.02392578125, 0.0484619140625, 0.01727294921875, 0.06890869140625, -0.021453857421875, 0.01641845703125, 0.0216217041015625, 0.030120849609375, -0.02227783203125, -0.031463623046875, -0.0241241455078125, 0.06414794921875, 0.00516510009765625, 0.017730712890625, 0.0109100341796875, -0.0155792236328125, -0.011322021484375, -0.032470703125, 0.091552734375, -0.052337646484375, -0.006343841552734375, 0.0099334716796875, -0.013214111328125, 0.0120849609375, -0.0027332305908203125, -0.0035839080810546875, -0.0343017578125, 0.0054779052734375, -0.0218048095703125, -0.03411865234375, -0.00222015380859375, -0.0024261474609375, -0.025360107421875, 0.07452392578125, -0.0179290771484375, 0.005771636962890625, 0.0287322998046875, 0.0430908203125, -0.01029205322265625, 0.032470703125, -0.0435791015625, 0.01010894775390625, -0.01236724853515625, 0.050628662109375, -0.04888916015625, 0.00374603271484375, 0.00811767578125, 0.0242462158203125, 0.0272674560546875, 0.0066680908203125, -0.03564453125, 0.00795745849609375, 0.06524658203125, 0.04931640625, 0.01776123046875, 0.03778076171875, -0.0054473876953125, -0.0006256103515625, -0.0175628662109375, 0.00952911376953125, 0.04193115234375, -0.02252197265625, -0.0540771484375, 0.02813720703125, 0.02716064453125, 0.04376220703125, 0.034637451171875, -0.03643798828125, -0.04083251953125, 0.015106201171875, 0.0364990234375, -0.032196044921875, -0.004306793212890625, 0.005344390869140625, 0.0202484130859375, -0.028106689453125, 0.006618499755859375, -0.01617431640625, 0.03326416015625, 0.0192108154296875, 0.031768798828125, -0.000051915645599365234, 0.009490966796875, 0.0010805130004882812, -0.025360107421875, 0.005401611328125, 0.03131103515625, -0.040771484375, 0.02734375, 0.0217742919921875, 0.034027099609375, -0.0002830028533935547, -0.002895355224609375, 0.031951904296875, 0.04461669921875, -0.022857666015625, -0.0171966552734375, 0.01654052734375, -0.0106048583984375, -0.0257720947265625, -0.0246429443359375, -0.0260009765625, 0.034149169921875, 0.0308074951171875, -0.0394287109375, -0.003841400146484375, 0.041717529296875, 0.0180511474609375, -0.0016298294067382812, -0.0011920928955078125, -0.0043792724609375, -0.01131439208984375, -0.00720977783203125, -0.005802154541015625, 0.0196380615234375, 0.028289794921875, -0.0023288726806640625, 0.0069122314453125, -0.01837158203125, 0.0015010833740234375, -0.020416259765625, 0.017364501953125, 0.0069122314453125, 0.022125244140625, -0.050537109375, -0.037628173828125, 0.0304412841796875, 0.052032470703125, 0.02734375, -0.0170745849609375, 0.0210418701171875, 0.0252838134765625, -0.01293182373046875, 0.00016796588897705078, 0.04888916015625, 0.0012226104736328125, 0.0055389404296875, -0.04840087890625, 0.023223876953125, 0.01093292236328125, 0.003261566162109375, 0.0277862548828125, 0.0037250518798828125, 0.044189453125, 0.00360107421875, 0.0003108978271484375, 0.01428985595703125, -0.03375244140625, 0.0236968994140625, 0.0010528564453125, 0.0665283203125, 0.0440673828125, -0.04669189453125, -0.004993438720703125, 0.01387786865234375, -0.0865478515625, 0.0270538330078125, 0.050506591796875, -0.02081298828125, -0.01467132568359375, -0.0013189315795898438, 0.0131072998046875, -0.005046844482421875, -0.016571044921875, -0.00003266334533691406, 0.004425048828125, 0.0200653076171875, 0.0121612548828125, -0.022491455078125, -0.03125, -0.0182342529296875, 0.056427001953125, 0.025726318359375, 0.061614990234375, -0.031890869140625, 0.04351806640625, -0.025787353515625, 0.01288604736328125, -0.051513671875, -0.0134429931640625, 0.0004296302795410156, -0.0195770263671875, -0.0171966552734375, 0.013275146484375, -0.0198822021484375, 0.006561279296875, 0.0494384765625, -0.04339599609375, -0.006977081298828125, 0.01617431640625, 0.0162200927734375, -0.040283203125, -0.008880615234375, -0.03350830078125, -0.043243408203125, -0.02191162109375, 0.006328582763671875, -0.00014734268188476562, -0.0262298583984375, -0.0151214599609375, -0.01971435546875, 0.022796630859375, 0.0009469985961914062, 0.035858154296875, 0.00812530517578125, 0.07574462890625, 0.03912353515625, -0.06842041015625, 0.0014162063598632812, -0.0006923675537109375, -0.0208740234375, 0.0277252197265625, 0.00379180908203125, -0.0063934326171875, 0.0149688720703125, -0.014190673828125, 0.0003123283386230469, 0.036041259765625, 0.058868408203125, -0.01134490966796875, 0.0251922607421875, -0.01024627685546875, -0.004657745361328125, 0.01293182373046875, -0.017974853515625, -0.04412841796875, -0.044525146484375, 0.012298583984375, 0.026885986328125, -0.0210418701171875, -0.041595458984375, -0.09747314453125, -0.018463134765625, 0.05023193359375, -0.01042938232421875, -0.042877197265625, 0.04296875, -0.059600830078125, 0.00214385986328125, -0.019195556640625, 0.0001823902130126953, -0.0081939697265625, 0.0738525390625, 0.00775146484375, -0.03179931640625, -0.029693603515625, 0.025543212890625, -0.04827880859375, 0.0248260498046875, 0.03936767578125, -0.02923583984375, 0.01438140869140625, 0.0174713134765625, 0.041290283203125, 0.060882568359375, -0.0117950439453125, -0.003566741943359375, 0.041839599609375, 0.006198883056640625, -0.055572509765625, -0.07281494140625, 0.017730712890625, -0.052276611328125, -0.0006003379821777344, -0.018646240234375, 0.01280975341796875, 0.025909423828125, -0.0291595458984375, -0.0229034423828125, 0.0880126953125, -0.0180816650390625, -0.0086517333984375, -0.016998291015625, -0.0089569091796875, -0.02740478515625, 0.0312042236328125, 0.0036106109619140625, -0.024505615234375, 0.0120086669921875, 0.0236663818359375, 0.0186767578125, 0.04193115234375, 0.01462554931640625, 0.010986328125, -0.0245819091796875, 0.020599365234375, -0.001987457275390625, 0.0169677734375, 0.00626373291015625, -0.03204345703125, 0.037567138671875, 0.04949951171875, -0.042266845703125, -0.03179931640625, 0.004581451416015625, 0.00943756103515625, 0.00853729248046875, -0.0018243789672851562, -0.0704345703125, -0.0318603515625, 0.039642333984375, 0.0877685546875, 0.0221405029296875, -0.0156097412109375, 0.01959228515625, -0.0253143310546875, -0.0107421875, -0.019989013671875, 0.00574493408203125, -0.044921875, -0.0193023681640625, 0.0276336669921875, -0.02081298828125, -0.0270233154296875, 0.03515625, -0.032928466796875, 0.001682281494140625, 0.017822265625, -0.01108551025390625, -0.05828857421875, -0.01442718505859375, 0.02520751953125, -0.0210418701171875, 0.01451873779296875, 0.007526397705078125, 0.021881103515625, 0.018341064453125, 0.031982421875, -0.0293121337890625, -0.0207366943359375, -0.018280029296875, 0.030853271484375, -0.02001953125, 0.049224853515625, -0.054290771484375, -0.007030487060546875, 0.0165252685546875, 0.0210113525390625, -0.002361297607421875, 0.018707275390625, -0.0162811279296875, 0.0810546875, -0.00968170166015625, 0.04595947265625, -0.0004177093505859375, 0.0235443115234375, -0.01947021484375, 0.036102294921875, -0.0008053779602050781, -0.0177459716796875, 0.03045654296875, -0.0182952880859375, 0.01009368896484375, -0.00307464599609375, -0.013580322265625, -0.021240234375, 0.0038967132568359375, -0.0227203369140625, -0.019622802734375, 0.01495361328125 ]
e65467fa504b3ba77ac1fc76ffa77486a8e5288c
Wordpress Stackexchange Q: How do I hook an Ajax request into a PHP callback? Following the directions here http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Administration_Side I wrote this code: EDITED TO INCLUDE DIE(), STILL NOT WORKING function my_button() { echo "<script type = 'text/javascript'> function ajaxRequest(){ jQuery(document).ready(function(jQuery) { var sendData = {}; sendData['action'] = 'my_action'; sendData['external_id'] = '$postID'; sendData['title'] = '$post_title'; sendData['content'] = '$post_content'; jQuery.ajax({ type: 'POST', url: 'http://lvh.me:3000/s/wp', xhrFields: { withCredentials: true }, headers: {'X-Requested-With': 'XMLHttpRequest'}, data: sendData, error: function(jqXHR){ console.log(jqXHR.responseText); }, success: function(data){ window.open(data['link']); } }); }) }; </script> <input type='button' onclick='ajaxRequest()' value='Send' />"; } add_action( 'dbx_post_sidebar', my_button); add_action('wp_ajax_my_action', my_action_callback); function my_action_callback() { global $wpdb; // this is how you get access to the database $api_key = $_POST['api_key']; $user = wp_get_current_user(); $user_id = $user->ID; add_user_meta($user_id, 'my_api_key', $api_key); die(); } I know that's a ton of code, but I just can't figure out where the error is. Thanks a ton. A: Your url should be pointing to admin-ajax.php echo admin_url('admin-ajax.php');
Q: How do I hook an Ajax request into a PHP callback? Following the directions here http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Administration_Side I wrote this code: EDITED TO INCLUDE DIE(), STILL NOT WORKING function my_button() { echo "<script type = 'text/javascript'> function ajaxRequest(){ jQuery(document).ready(function(jQuery) { var sendData = {}; sendData['action'] = 'my_action'; sendData['external_id'] = '$postID'; sendData['title'] = '$post_title'; sendData['content'] = '$post_content'; jQuery.ajax({ type: 'POST', url: 'http://lvh.me:3000/s/wp', xhrFields: { withCredentials: true }, headers: {'X-Requested-With': 'XMLHttpRequest'}, data: sendData, error: function(jqXHR){ console.log(jqXHR.responseText); }, success: function(data){ window.open(data['link']); } }); }) }; </script> <input type='button' onclick='ajaxRequest()' value='Send' />"; } add_action( 'dbx_post_sidebar', my_button); add_action('wp_ajax_my_action', my_action_callback); function my_action_callback() { global $wpdb; // this is how you get access to the database $api_key = $_POST['api_key']; $user = wp_get_current_user(); $user_id = $user->ID; add_user_meta($user_id, 'my_api_key', $api_key); die(); } I know that's a ton of code, but I just can't figure out where the error is. Thanks a ton. A: Your url should be pointing to admin-ajax.php echo admin_url('admin-ajax.php'); A: EDIT: I found several problems with your method. This is how it should be done for your case, I went ahead and rewrote some things. function my_button() { echo "<script type = 'text/javascript'> jQuery( document ).ready( function() { jQuery('input.sendajax').click( function() { var sendData = { action: 'my_action', external_id = $postID, title: '$post_title', content: '$post_content' }; jQuery.post( ajaxurl, sendData, function( response ) { // You need to send some type of validation back // Like a 'success' variable either true or false // Stuff sent back is accessed through the 'response' variable, so to get the item sent back called 'success', you would use 'response.success' if( response.success == true ) { window.open(response.link); } else { console.log(response); } }); }); }) </script> <input class='sendajax' type='button' onclick='ajaxRequest()' value='Send' />"; } add_action( 'admin_head', 'my_button'); add_action('wp_ajax_my_action', 'my_action_callback'); function my_action_callback() { global $wpdb; // this is how you get access to the database $api_key = $_POST['api_key']; $user = wp_get_current_user(); $user_id = $user->ID; add_user_meta($user_id, 'my_api_key', $api_key); $response = array( 'success' => true, 'link' => 'this is a response var' ); // Stuff to send back to AJAX echo json_encode( $response ); die(); // Needs this } If you read the Codex carefully, and compare your code to the code here, they are very different. You were trying to use a method most would deem appropriate but WP already can do these things for you (which I didn't even realize until a couple days ago, so don't feel bad!) What I did is use WP's native ajaxurl and jQuery.post method to call admin-ajax.php and send the sendData info to a function that will do some stuff with those variables, and then echo back a response so you can do something with that as well. A: It looks like you need to break down what you are doing into two parts. 1 / Query your external api, and then return your API key 2 / Associate the API key with a user. So, I would first query your API via a standard ajax call, and then in the success handler of that first ajax call, run your internal wp admin-ajax call to associate the user with the API key.
wordpress
{ "language": "en", "length": 514, "provenance": "stackexchange_00019.jsonl.gz:416399", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39890" }
[ 0.06048583984375, -0.01352691650390625, -0.039276123046875, -0.037139892578125, 0.0241546630859375, -0.05743408203125, 0.04730224609375, 0.01136016845703125, 0.02490234375, 0.006252288818359375, -0.056121826171875, 0.0038623809814453125, -0.01702880859375, -0.012176513671875, -0.01026153564453125, -0.038360595703125, 0.06024169921875, -0.03399658203125, 0.0267791748046875, -0.0025577545166015625, -0.005039215087890625, 0.034759521484375, 0.054229736328125, 0.05511474609375, 0.01019287109375, 0.035675048828125, 0.065673828125, -0.0048828125, 0.0006203651428222656, -0.00690460205078125, 0.0169219970703125, -0.05206298828125, 0.006145477294921875, 0.052276611328125, -0.03863525390625, 0.00888824462890625, 0.0222930908203125, 0.023284912109375, 0.005645751953125, 0.04791259765625, 0.04425048828125, -0.0290374755859375, 0.009613037109375, 0.0166473388671875, -0.006275177001953125, -0.03985595703125, 0.08740234375, -0.0151824951171875, -0.0041046142578125, 0.0210723876953125, 0.012542724609375, 0.024505615234375, 0.01506805419921875, 0.007236480712890625, 0.005199432373046875, 0.029693603515625, -0.00910186767578125, -0.005672454833984375, 0.04534912109375, 0.04931640625, -0.0220489501953125, -0.032867431640625, 0.0036449432373046875, -0.05767822265625, -0.003902435302734375, -0.009674072265625, 0.019256591796875, 0.0160675048828125, -0.0240020751953125, 0.0141143798828125, 0.019287109375, -0.011474609375, -0.0215911865234375, -0.007678985595703125, -0.004680633544921875, -0.018157958984375, 0.0250701904296875, -0.01436614990234375, -0.02679443359375, 0.034912109375, 0.001895904541015625, -0.00897979736328125, -0.0170745849609375, 0.00565338134765625, -0.0009441375732421875, 0.024932861328125, -0.01409912109375, -0.015838623046875, -0.030364990234375, -0.03851318359375, -0.018096923828125, -0.05792236328125, -0.01396942138671875, 0.00569915771484375, -0.00948333740234375, -0.0300750732421875, 0.013214111328125, -0.01512908935546875, 0.033477783203125, 0.007358551025390625, 0.035308837890625, -0.047637939453125, 0.048553466796875, -0.0203704833984375, -0.0035228729248046875, 0.020355224609375, 0.018096923828125, -0.0287933349609375, -0.00811004638671875, 0.00640106201171875, -0.0284271240234375, -0.022430419921875, 0.00971221923828125, 0.0289306640625, -0.033233642578125, -0.037353515625, -0.04901123046875, 0.0061492919921875, -0.0143280029296875, 0.0024738311767578125, -0.0092620849609375, -0.01641845703125, -0.0226898193359375, 0.046051025390625, 0.0296783447265625, -0.0037746429443359375, -0.01280975341796875, 0.02020263671875, -0.0182037353515625, 0.0225830078125, -0.032196044921875, 0.0102996826171875, 0.0623779296875, 0.0267791748046875, -0.002429962158203125, -0.014892578125, 0.049041748046875, -0.01433563232421875, -0.01042938232421875, 0.0198211669921875, 0.022796630859375, -0.050872802734375, -0.04046630859375, 0.0017490386962890625, -0.0047454833984375, -0.0215301513671875, 0.017486572265625, 0.03472900390625, -0.01274871826171875, -0.00894927978515625, 0.024505615234375, -0.01343536376953125, -0.00615692138671875, 0.03375244140625, 0.026824951171875, 0.01458740234375, 0.04248046875, -0.03271484375, 0.0037059783935546875, -0.01175689697265625, -0.00875091552734375, -0.00615692138671875, 0.0303955078125, -0.01085662841796875, -0.039031982421875, -0.0017528533935546875, -0.01375579833984375, -0.0167388916015625, 0.01727294921875, 0.04901123046875, 0.0019521713256835938, 0.005809783935546875, 0.00568389892578125, 0.014007568359375, -0.004791259765625, -0.01010894775390625, -0.00746917724609375, 0.030487060546875, 0.03192138671875, -0.0252685546875, -0.023773193359375, -0.0272979736328125, 0.06805419921875, -0.024749755859375, -0.0572509765625, 0.10650634765625, 0.016876220703125, 0.08599853515625, -0.026123046875, 0.00394439697265625, 0.0118408203125, 0.08135986328125, 0.0180206298828125, 0.0215911865234375, -0.021484375, -0.07049560546875, -0.023040771484375, -0.033538818359375, -0.050079345703125, 0.053070068359375, 0.019256591796875, 0.02874755859375, -0.0122528076171875, 0.01366424560546875, -0.059844970703125, 0.017303466796875, -0.0169677734375, 0.03228759765625, 0.0396728515625, 0.022613525390625, -0.01175689697265625, 0.039825439453125, -0.0036773681640625, -0.071044921875, -0.04400634765625, 0.03564453125, -0.037994384765625, 0.0467529296875, -0.0294342041015625, 0.06939697265625, -0.02386474609375, -0.03924560546875, -0.01070404052734375, 0.003528594970703125, 0.028717041015625, 0.001361846923828125, -0.01415252685546875, -0.0113525390625, 0.0188751220703125, 0.0062408447265625, -0.015838623046875, 0.021240234375, 0.035064697265625, 0.044830322265625, -0.01303863525390625, -0.0163116455078125, -0.00981903076171875, -0.05938720703125, 0.0122222900390625, 0.051788330078125, 0.03839111328125, 0.007617950439453125, 0.0029964447021484375, 0.0201873779296875, 0.0025005340576171875, -0.0225830078125, 0.035980224609375, -0.0301971435546875, 0.0010528564453125, 0.0304718017578125, -0.019622802734375, 0.01271820068359375, 0.0171356201171875, -0.0784912109375, 0.0159759521484375, 0.049072265625, -0.0201263427734375, -0.006847381591796875, -0.0206146240234375, -0.0186004638671875, 0.01849365234375, -0.0489501953125, -0.04595947265625, -0.029876708984375, 0.0755615234375, -0.0252227783203125, 0.06634521484375, 0.0538330078125, 0.00909423828125, -0.0469970703125, -0.00328826904296875, 0.00815582275390625, 0.007106781005859375, 0.04541015625, 0.03363037109375, 0.0136260986328125, 0.005084991455078125, -0.039459228515625, 0.01479339599609375, 0.03289794921875, -0.01128387451171875, 0.0130157470703125, -0.01348114013671875, -0.011932373046875, 0.0038547515869140625, -0.0193023681640625, 0.006801605224609375, -0.006473541259765625, 0.06048583984375, 0.0128326416015625, 0.0379638671875, 0.03094482421875, 0.0133209228515625, 0.037200927734375, -0.005100250244140625, -0.027069091796875, 0.0638427734375, 0.00008422136306762695, 0.01454925537109375, -0.01015472412109375, 0.0313720703125, 0.028350830078125, -0.0296783447265625, 0.00836181640625, -0.0032501220703125, -0.037872314453125, -0.0190582275390625, 0.01531219482421875, -0.0072174072265625, -0.041534423828125, -0.0251922607421875, 0.0263671875, 0.022308349609375, 0.070068359375, -0.0260009765625, -0.0692138671875, -0.014617919921875, 0.0185394287109375, -0.12744140625, -0.14306640625, 0.0406494140625, -0.055816650390625, 0.03564453125, -0.03411865234375, -0.033233642578125, -0.044097900390625, 0.004451751708984375, -0.003635406494140625, -0.0163116455078125, -0.01490020751953125, -0.0293426513671875, -0.0294342041015625, -0.05291748046875, 0.0073394775390625, -0.0158843994140625, -0.00830078125, 0.006481170654296875, 0.007965087890625, -0.00331878662109375, -0.011566162109375, 0.00628662109375, 0.02203369140625, -0.01708984375, -0.039154052734375, 0.0009427070617675781, -0.0186920166015625, 0.01611328125, -0.0117645263671875, 0.0152130126953125, 0.035430908203125, -0.0196685791015625, -0.0007848739624023438, -0.01751708984375, -0.0196533203125, 0.0191192626953125, 0.04498291015625, 0.00838470458984375, -0.0225067138671875, 0.050445556640625, -0.05157470703125, 0.0085296630859375, 0.01153564453125, -0.0287322998046875, -0.03076171875, 0.0224456787109375, -0.040191650390625, 0.0074615478515625, -0.00846099853515625, 0.0208740234375, 0.0225372314453125, -0.0255279541015625, 0.023681640625, 0.047760009765625, -0.0219573974609375, 0.002941131591796875, -0.017303466796875, 0.0224609375, -0.0017414093017578125, -0.00772857666015625, 0.006374359130859375, 0.034820556640625, 0.0079193115234375, 0.00725555419921875, -0.00508880615234375, -0.026397705078125, 0.048492431640625, 0.0003025531768798828, -0.005565643310546875, -0.0018310546875, -0.024688720703125, 0.0156402587890625, 0.06561279296875, -0.005462646484375, -0.017669677734375, -0.0177459716796875, 0.00026226043701171875, -0.054290771484375, -0.0261383056640625, -0.03619384765625, 0.036468505859375, -0.016998291015625, -0.0128631591796875, -0.0139007568359375, -0.0200042724609375, -0.01727294921875, -0.00415802001953125, -0.02838134765625, -0.01568603515625, 0.05059814453125, -0.051849365234375, -0.00531005859375, 0.0102691650390625, -0.029571533203125, -0.03167724609375, -0.0352783203125, -0.0193328857421875, -0.080810546875, -0.00557708740234375, -0.041778564453125, 0.046295166015625, 0.0379638671875, -0.059661865234375, -0.0082550048828125, 0.034454345703125, 0.0183258056640625, -0.005687713623046875, 0.019134521484375, -0.01800537109375, 0.02362060546875, 0.01264190673828125, 0.01107025146484375, -0.007411956787109375, -0.004512786865234375, 0.002826690673828125, 0.002552032470703125, 0.03228759765625, -0.035064697265625, -0.0103912353515625, -0.0172119140625, -0.01508331298828125, -0.0736083984375, -0.04974365234375, -0.0167694091796875, 0.00415802001953125, -0.0236663818359375, 0.0062103271484375, -0.034942626953125, -0.08184814453125, 0.0286407470703125, -0.0288238525390625, -0.006244659423828125, 0.0152130126953125, 0.0159454345703125, 0.00571441650390625, -0.01611328125, -0.007541656494140625, -0.0013275146484375, 0.0233612060546875, -0.03643798828125, 0.0296630859375, -0.00901031494140625, -0.028106689453125, 0.10064697265625, -0.0252227783203125, 0.05328369140625, -0.0362548828125, 0.05889892578125, 0.005947113037109375, 0.0271759033203125, 0.009368896484375, 0.040771484375, -0.06951904296875, -0.026611328125, -0.0445556640625, 0.0177764892578125, 0.0229949951171875, 0.0077667236328125, -0.080078125, 0.09490966796875, 0.01629638671875, 0.0006475448608398438, -0.0002987384796142578, -0.020477294921875, 0.0540771484375, 0.04486083984375, 0.00110626220703125, 0.0000021457672119140625, -0.00754547119140625, 0.022796630859375, -0.0153350830078125, 0.019256591796875, -0.016265869140625, 0.06201171875, -0.01715087890625, 0.01959228515625, -0.01678466796875, -0.00897216796875, 0.04522705078125, 0.00457000732421875, -0.0268707275390625, -0.034454345703125, -0.013702392578125, 0.03094482421875, -0.00905609130859375, 0.01381683349609375, -0.00466156005859375, 0.0251922607421875, -0.03857421875, 0.0069122314453125, 0.0278472900390625, -0.00252532958984375, -0.0162506103515625, 0.032958984375, 0.019561767578125, -0.004535675048828125, -0.03594970703125, 0.07275390625, 0.0089263916015625, 0.01351165771484375, -0.00982666015625, 0.062255859375, 0.03497314453125, 0.050933837890625, 0.01654052734375, -0.022674560546875, 0.001018524169921875, 0.03265380859375, -0.0301513671875, 0.0008187294006347656, 0.00850677490234375, 0.00040793418884277344, 0.00725555419921875, -0.00003844499588012695, 0.007579803466796875, 0.0134735107421875, -0.027587890625, -0.030731201171875, 0.035797119140625, 0.0169830322265625, -0.0260772705078125, -0.047882080078125, -0.028167724609375, 0.02447509765625, 0.0233001708984375, 0.038543701171875, 0.02630615234375, 0.046417236328125, 0.044647216796875, -0.039031982421875, 0.03826904296875, -0.028289794921875, -0.0190582275390625, 0.0207672119140625, -0.002559661865234375, -0.0228729248046875, -0.0301666259765625, -0.008026123046875, -0.0129241943359375, -0.005641937255859375, 0.053314208984375, -0.03790283203125, -0.01076507568359375, -0.016448974609375, 0.02935791015625, -0.03533935546875, -0.00894927978515625, 0.0667724609375, 0.038116455078125, -0.005523681640625, -0.0146026611328125, -0.0191192626953125, -0.0111541748046875, 0.056488037109375, -0.01806640625, -0.001705169677734375, -0.05010986328125, 0.0204925537109375, 0.006816864013671875, 0.02398681640625, -0.0032596588134765625, 0.0030498504638671875, 0.0169830322265625, -0.0033626556396484375, 0.0103759765625, -0.02191162109375, 0.1015625, -0.0262298583984375, 0.067138671875, 0.00839996337890625, 0.02874755859375, -0.03973388671875, 0.003570556640625, -0.0277099609375, -0.0640869140625, 0.015777587890625, 0.0187835693359375, -0.005176544189453125, 0.0197906494140625, 0.0197906494140625, 0.01352691650390625, -0.0019426345825195312, -0.006465911865234375, -0.00331878662109375, -0.0008831024169921875, 0.0450439453125, 0.031890869140625, -0.0201568603515625, 0.03863525390625, -0.0271148681640625, -0.0177154541015625, -0.0185699462890625, -0.01004791259765625, 0.0292205810546875, -0.0257568359375, 0.00318145751953125, 0.0153350830078125, -0.0250701904296875, 0.0189361572265625, 0.1065673828125, 0.020355224609375, 0.08160400390625, 0.0125579833984375, 0.02545166015625, 0.06781005859375, 0.0335693359375, -0.034271240234375, -0.030303955078125, 0.033447265625, -0.0005545616149902344, -0.017486572265625, 0.0163116455078125, -0.0219573974609375, 0.017974853515625, 0.030731201171875, 0.07208251953125, -0.05731201171875, 0.01715087890625, 0.0139923095703125, -0.038848876953125, 0.00756072998046875, -0.0241851806640625, -0.00678253173828125, -0.0007419586181640625, 0.0399169921875, 0.018768310546875, -0.03369140625, 0.0214691162109375, 0.0305023193359375, 0.018463134765625, 0.0083770751953125, 0.0289306640625, -0.0136260986328125, -0.0277557373046875, -0.00972747802734375, 0.004650115966796875, 0.0290985107421875, -0.004314422607421875, 0.0171051025390625, -0.0010166168212890625, -0.0262298583984375, -0.039947509765625, -0.00379180908203125, 0.0036830902099609375, -0.036285400390625, -0.00946044921875, -0.0288543701171875, 0.0347900390625, 0.0361328125, -0.0173797607421875, -0.01074981689453125, -0.003795623779296875, 0.0262298583984375, -0.0197296142578125, -0.01971435546875, 0.00568389892578125, 0.01371002197265625, -0.044647216796875, 0.02392578125, -0.0294647216796875, -0.0003910064697265625, -0.005901336669921875, 0.026885986328125, 0.0718994140625, -0.01360321044921875, -0.0400390625, 0.03179931640625, 0.0133514404296875, -0.0217437744140625, -0.0106353759765625, 0.0095367431640625, -0.07049560546875, -0.0193634033203125, -0.0033893585205078125, -0.0254364013671875, -0.004894256591796875, -0.017791748046875, -0.031982421875, 0.109130859375, -0.0143890380859375, -0.0120697021484375, 0.014312744140625, 0.05120849609375, -0.029296875, 0.019500732421875, -0.04278564453125, 0.049713134765625, 0.019622802734375, 0.0140838623046875, -0.044097900390625, 0.0080718994140625, -0.00949859619140625, -0.0018749237060546875, 0.0450439453125, 0.01267242431640625, -0.0271148681640625, -0.032379150390625, 0.006748199462890625, 0.022705078125, -0.00485992431640625, 0.033599853515625, -0.00020325183868408203, 0.0183258056640625, 0.047882080078125, -0.0175628662109375, 0.042510986328125, -0.0070037841796875, -0.0098419189453125, 0.018707275390625, 0.0004642009735107422, -0.0203857421875, 0.0207672119140625, 0.0251312255859375, -0.0241241455078125, 0.0222015380859375, 0.0268096923828125, -0.0200042724609375, 0.00572967529296875, 0.007297515869140625, -0.00971221923828125, -0.01107025146484375, 0.0279693603515625, -0.03851318359375, 0.030059814453125, 0.01099395751953125, -0.0037841796875, -0.006816864013671875, 0.0167999267578125, 0.0020160675048828125, -0.01788330078125, -0.0223388671875, 0.033172607421875, -0.013763427734375, 0.0809326171875, 0.03302001953125, 0.033843994140625, -0.042327880859375, -0.032501220703125, 0.038299560546875, 0.1092529296875, -0.049346923828125, -0.033203125, -0.0011987686157226562, 0.0221099853515625, 0.03228759765625, 0.028900146484375, 0.074951171875, 0.019927978515625, 0.033966064453125, -0.031402587890625, 0.0005593299865722656, -0.004856109619140625, 0.0303497314453125, 0.00913238525390625, 0.03955078125, -0.03240966796875, -0.0192108154296875, -0.0258941650390625, -0.001003265380859375, 0.043365478515625, 0.046478271484375, -0.0081787109375, 0.04730224609375, -0.0196533203125, -0.0207977294921875, 0.01995849609375, -0.0025177001953125, -0.00716400146484375, 0.0012378692626953125, -0.0167999267578125, -0.0465087890625, 0.0032749176025390625, 0.032440185546875, -0.003887176513671875, 0.01151275634765625, 0.00890350341796875, 0.00861358642578125, -0.0010833740234375, -0.005840301513671875, -0.0186004638671875, -0.0237579345703125, -0.03076171875, 0.0057525634765625, -0.0151214599609375, 0.0103302001953125, 0.0016317367553710938, 0.018951416015625, 0.0615234375, -0.01493072509765625, -0.05902099609375, 0.06658935546875, -0.03271484375, -0.00823211669921875, 0.060089111328125, -0.040008544921875, 0.09906005859375, -0.04541015625, -0.07208251953125, -0.004055023193359375, -0.00957489013671875, -0.042205810546875, 0.0017061233520507812, 0.0303192138671875, -0.017822265625, 0.026947021484375, -0.016754150390625, -0.0012578964233398438, 0.0185699462890625, -0.01418304443359375, -0.0084228515625, 0.0273895263671875, 0.037139892578125, 0.0061187744140625, 0.00481414794921875, 0.00849151611328125, 0.0118865966796875, 0.035186767578125, 0.004009246826171875, 0.039337158203125, -0.0117950439453125, 0.008941650390625, -0.0026493072509765625, 0.004241943359375, -0.00568389892578125, -0.006580352783203125, 0.0031147003173828125, -0.004730224609375, 0.010955810546875, -0.00493621826171875, -0.051513671875, 0.05230712890625, -0.00518798828125, 0.03253173828125, 0.0254974365234375, -0.0133514404296875, 0.0220184326171875, 0.02410888671875, 0.0239410400390625, -0.0296478271484375, -0.0460205078125, -0.045501708984375, 0.0013074874877929688, 0.0239105224609375, 0.041351318359375, 0.0086822509765625, 0.00641632080078125, -0.00843048095703125, 0.0104217529296875, -0.01088714599609375, 0.0170440673828125, -0.00933837890625, 0.0210418701171875, -0.0399169921875, 0.0120697021484375, 0.006866455078125, -0.0153350830078125, 0.031890869140625, 0.0031948089599609375, 0.00260162353515625, 0.0094757080078125, -0.033843994140625, 0.0053558349609375, 0.0230712890625, 0.041656494140625, 0.006801605224609375, 0.00630950927734375, -0.003986358642578125, -0.01953125, -0.0214385986328125, 0.0328369140625, -0.01502227783203125, -0.01206207275390625, -0.00666046142578125, 0.0157318115234375, 0.01348876953125, 0.00392913818359375, -0.0246124267578125, -0.0017633438110351562, 0.04156494140625, -0.003387451171875, -0.038604736328125, -0.0174560546875, -0.032318115234375, 0.078857421875, -0.00426483154296875, 0.0028247833251953125, -0.0159912109375, 0.0282745361328125, -0.019989013671875, -0.054718017578125, -0.0340576171875, 0.0433349609375, -0.0309600830078125, 0.0302581787109375, 0.030731201171875, -0.0236053466796875, -0.0212554931640625, 0.015472412109375, 0.0007762908935546875, 0.06317138671875, 0.005443572998046875, -0.0191192626953125, 0.005901336669921875, 0.022674560546875, -0.021331787109375, -0.043731689453125, 0.004337310791015625, -0.04351806640625, -0.0005178451538085938, -0.0099639892578125, 0.0291290283203125, 0.03350830078125, -0.024932861328125, -0.046783447265625, 0.018341064453125, -0.0022830963134765625, -0.03851318359375, -0.050079345703125, 0.0172271728515625, 0.032867431640625, -0.048675537109375, -0.0374755859375, -0.029144287109375, -0.0404052734375, 0.006427764892578125, -0.005420684814453125, 0.004550933837890625, 0.009185791015625, -0.00543212890625, -0.07275390625, 0.002521514892578125, -0.01462554931640625, -0.01515960693359375, -0.01242828369140625, -0.0212249755859375, 0.05987548828125, 0.03472900390625, -0.0160064697265625, 0.046142578125, 0.0306854248046875, 0.004817962646484375, -0.0009365081787109375, -0.032257080078125, 0.004886627197265625, 0.02783203125, 0.06280517578125, 0.003047943115234375, 0.007030487060546875, -0.063720703125, 0.005138397216796875, -0.03094482421875, -0.042572021484375, -0.0126190185546875, 0.0014581680297851562, -0.021820068359375, 0.01389312744140625, -0.0185699462890625, 0.0019588470458984375, -0.00728607177734375, 0.01041412353515625, 0.0004134178161621094, -0.0164031982421875, 0.044708251953125, -0.01467132568359375, 0.0171051025390625, -0.055816650390625, 0.1051025390625, -0.046661376953125, 0.0021209716796875, 0.026397705078125, 0.037353515625, 0.04547119140625, 0.00673675537109375, -0.0128631591796875, 0.0528564453125, -0.0290069580078125, -0.005401611328125, 0.007190704345703125, 0.02679443359375, -0.018646240234375, 0.0092620849609375, 0.0038280487060546875, 0.03497314453125, -0.0178375244140625, 0.053985595703125, 0.041534423828125, 0.0132293701171875, -0.0034999847412109375, 0.0286712646484375, -0.03704833984375, 0.002838134765625, -0.01885986328125, 0.0175323486328125, 0.0129241943359375, 0.003566741943359375, 0.07171630859375, -0.01093292236328125, 0.001224517822265625, 0.0209808349609375, 0.01032257080078125, -0.031707763671875, 0.0418701171875, 0.04364013671875, 0.005718231201171875, 0.019378662109375 ]
d85a5694ad511007a7d183432a7b5b77638295bd
Wordpress Stackexchange Q: Does Wordpress generate an automatic page for post formats? I want a page to view only a specific post format (e.g. aside). Do I have to create my own page and run a custom query, or does Wordpress have an automatic page generated for me (like the categories)? A: Take a look at get_post_format_link() Here's a little example that uses get_post_format_link() to show a link to the format's archive page. You can see something similar to this in action on Justin Tadlock's site. function get_post_format_archive_link() { return sprintf( '<a class="post-format-archive-link %1$s" href="%2$s">%1$s</a>', get_post_format(), get_post_format_link( get_post_format() ) ); } usage: echo get_post_format_archive_link(); The URL Structure is: /type/{post format}/ So for an aside we'd have: http://example.com/type/aside/
Q: Does Wordpress generate an automatic page for post formats? I want a page to view only a specific post format (e.g. aside). Do I have to create my own page and run a custom query, or does Wordpress have an automatic page generated for me (like the categories)? A: Take a look at get_post_format_link() Here's a little example that uses get_post_format_link() to show a link to the format's archive page. You can see something similar to this in action on Justin Tadlock's site. function get_post_format_archive_link() { return sprintf( '<a class="post-format-archive-link %1$s" href="%2$s">%1$s</a>', get_post_format(), get_post_format_link( get_post_format() ) ); } usage: echo get_post_format_archive_link(); The URL Structure is: /type/{post format}/ So for an aside we'd have: http://example.com/type/aside/ A: You would need to add theme support for post formats with code. add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); The code above is what you'd put in your theme's functions.php file, and then in your template files, you would display each post accordingly with the following code, for example if your post format for a post was video: if ( has_post_format( 'video' )) { echo 'this is the video format'; } See the Codex for more info: http://codex.wordpress.org/Post_Formats#Adding_Theme_Support
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:416409", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39925" }
[ 0.0386962890625, -0.00408172607421875, -0.02410888671875, -0.005802154541015625, -0.00467681884765625, -0.0533447265625, 0.03509521484375, -0.00942230224609375, -0.0270233154296875, 0.005977630615234375, -0.007488250732421875, -0.0002052783966064453, 0.0019273757934570312, -0.036773681640625, 0.027313232421875, -0.0245513916015625, 0.03143310546875, -0.01317596435546875, 0.0313720703125, -0.006656646728515625, -0.00406646728515625, -0.0013589859008789062, 0.032257080078125, 0.06610107421875, 0.037109375, 0.043060302734375, 0.08367919921875, -0.002391815185546875, 0.03411865234375, 0.021820068359375, 0.04022216796875, -0.09368896484375, 0.04180908203125, -0.0163116455078125, -0.01293182373046875, 0.017364501953125, 0.0078582763671875, -0.0195159912109375, -0.0077362060546875, 0.0240325927734375, -0.005245208740234375, 0.015625, 0.01215362548828125, -0.0223388671875, -0.0240325927734375, 0.0219573974609375, -0.04248046875, -0.036590576171875, 0.037353515625, 0.006015777587890625, 0.0114593505859375, 0.015869140625, 0.0085296630859375, 0.037750244140625, -0.0207366943359375, 0.001834869384765625, 0.003040313720703125, 0.01033782958984375, 0.03668212890625, -0.057159423828125, -0.03997802734375, -0.0090789794921875, 0.040191650390625, 0.01326751708984375, -0.0237579345703125, -0.0013751983642578125, 0.019317626953125, 0.018218994140625, -0.00968170166015625, -0.01898193359375, 0.032501220703125, 0.005680084228515625, -0.0062713623046875, 0.00714111328125, -0.0352783203125, -0.00496673583984375, 0.00574493408203125, -0.0186767578125, 0.0193023681640625, -0.01047515869140625, -0.0167236328125, 0.012420654296875, -0.04022216796875, -0.046844482421875, 0.0179595947265625, -0.016754150390625, -0.017822265625, -0.019012451171875, -0.0323486328125, -0.01517486572265625, -0.0222930908203125, -0.0767822265625, -0.0156402587890625, 0.01316070556640625, 0.01073455810546875, -0.03289794921875, 0.006565093994140625, 0.035369873046875, -0.019561767578125, 0.0205535888671875, -0.0193939208984375, -0.0290985107421875, 0.060089111328125, -0.05206298828125, -0.004360198974609375, 0.034759521484375, 0.047576904296875, 0.00313568115234375, 0.00844573974609375, -0.0158233642578125, -0.0017833709716796875, 0.0181121826171875, -0.01189422607421875, 0.0163421630859375, -0.0198211669921875, 0.029510498046875, -0.027557373046875, -0.0237884521484375, -0.027069091796875, 0.0019121170043945312, -0.0158843994140625, 0.036346435546875, 0.052764892578125, -0.04217529296875, 0.01263427734375, 0.0440673828125, 0.002758026123046875, -0.09649658203125, 0.03192138671875, 0.016693115234375, -0.0202178955078125, -0.00930023193359375, 0.0526123046875, 0.0233612060546875, 0.01297760009765625, -0.0216217041015625, -0.001056671142578125, -0.056976318359375, -0.0290679931640625, 0.017486572265625, 0.0012264251708984375, -0.046478271484375, 0.007770538330078125, -0.006839752197265625, -0.02850341796875, 0.020904541015625, 0.020538330078125, 0.025665283203125, -0.01384735107421875, 0.0023899078369140625, -0.034088134765625, 0.00896453857421875, 0.0290069580078125, -0.001544952392578125, -0.01348114013671875, -0.03997802734375, 0.01526641845703125, -0.02142333984375, 0.0038242340087890625, -0.030914306640625, 0.0165557861328125, 0.004970550537109375, -0.007228851318359375, -0.037384033203125, -0.064208984375, -0.005397796630859375, -0.03863525390625, -0.0186004638671875, 0.0230712890625, 0.0088653564453125, 0.00817108154296875, 0.001071929931640625, 0.0294342041015625, 0.0247802734375, 0.00653839111328125, 0.0020351409912109375, -0.02093505859375, -0.045867919921875, 0.01166534423828125, 0.06512451171875, -0.00429534912109375, -0.009796142578125, -0.041290283203125, 0.0283355712890625, -0.032562255859375, 0.026611328125, 0.006923675537109375, 0.04119873046875, 0.0028171539306640625, 0.025360107421875, -0.01029205322265625, 0.0284271240234375, -0.053497314453125, 0.005138397216796875, 0.005382537841796875, -0.020782470703125, 0.01300811767578125, -0.01290130615234375, -0.00493621826171875, 0.0172271728515625, -0.01061248779296875, -0.005222320556640625, -0.0218505859375, 0.0318603515625, -0.0587158203125, -0.01617431640625, -0.0110931396484375, 0.02081298828125, 0.0011796951293945312, 0.0243988037109375, 0.02447509765625, -0.00342559814453125, -0.03558349609375, 0.01432037353515625, -0.0154876708984375, 0.01025390625, 0.0264129638671875, 0.0121002197265625, -0.027130126953125, -0.00955963134765625, -0.034332275390625, -0.0154876708984375, -0.024505615234375, 0.07000732421875, 0.054107666015625, -0.038909912109375, -0.01067352294921875, -0.06317138671875, -0.0136871337890625, -0.017852783203125, -0.0675048828125, 0.0841064453125, 0.0020618438720703125, 0.00978851318359375, -0.06256103515625, -0.0257568359375, -0.04150390625, -0.0155029296875, 0.0179595947265625, 0.057861328125, 0.035003662109375, 0.0146026611328125, -0.0186920166015625, -0.002758026123046875, 0.06951904296875, -0.00933074951171875, 0.0204620361328125, -0.0113677978515625, 0.0191650390625, 0.06329345703125, -0.024261474609375, 0.019256591796875, 0.00746917724609375, -0.007843017578125, -0.02752685546875, 0.055511474609375, -0.0123443603515625, 0.011138916015625, 0.0031909942626953125, -0.001010894775390625, -0.00839996337890625, 0.01739501953125, 0.01113128662109375, -0.017822265625, 0.048095703125, -0.005268096923828125, 0.04449462890625, 0.03692626953125, -0.0205535888671875, 0.0033321380615234375, 0.002044677734375, -0.01267242431640625, -0.01351165771484375, 0.027618408203125, 0.001216888427734375, -0.017486572265625, -0.006290435791015625, -0.0013780593872070312, -0.0283966064453125, -0.0052032470703125, -0.03497314453125, 0.04510498046875, 0.042877197265625, -0.0168304443359375, -0.03179931640625, -0.09796142578125, 0.0289154052734375, -0.0201568603515625, -0.0023441314697265625, -0.00791168212890625, -0.0037136077880859375, 0.045257568359375, -0.018951416015625, 0.03631591796875, 0.00586700439453125, -0.005615234375, -0.0162506103515625, -0.07122802734375, 0.062408447265625, -0.0709228515625, 0.03564453125, 0.06121826171875, -0.03424072265625, 0.0194854736328125, -0.0029582977294921875, 0.03564453125, -0.01006317138671875, 0.0045013427734375, -0.00920867919921875, -0.0321044921875, -0.01385498046875, -0.015777587890625, 0.01004791259765625, 0.05657958984375, -0.04180908203125, -0.03692626953125, -0.005489349365234375, 0.01031494140625, -0.07110595703125, -0.04376220703125, 0.0266265869140625, -0.090087890625, 0.023590087890625, -0.0226593017578125, -0.043212890625, -0.04583740234375, 0.0222320556640625, 0.00821685791015625, -0.0163116455078125, -0.04541015625, -0.045257568359375, -0.07183837890625, -0.08660888671875, -0.034576416015625, 0.00850677490234375, 0.01334381103515625, 0.016998291015625, 0.0435791015625, 0.01641845703125, -0.06414794921875, 0.01233673095703125, 0.06622314453125, -0.0281524658203125, 0.0079193115234375, -0.0163726806640625, 0.038787841796875, 0.0024051666259765625, 0.0162353515625, 0.072998046875, 0.020294189453125, -0.023345947265625, -0.00707244873046875, -0.01483917236328125, -0.007434844970703125, 0.00951385498046875, 0.012969970703125, 0.00431060791015625, 0.005207061767578125, 0.01238250732421875, -0.040740966796875, -0.01678466796875, -0.01873779296875, -0.04534912109375, 0.054779052734375, 0.0245513916015625, -0.015289306640625, -0.005313873291015625, 0.0171051025390625, -0.04058837890625, -0.030487060546875, 0.036376953125, -0.0682373046875, 0.05975341796875, -0.006561279296875, -0.02313232421875, 0.00194549560546875, 0.029571533203125, -0.0133056640625, 0.050323486328125, 0.014373779296875, 0.0193939208984375, 0.0157470703125, -0.008544921875, -0.005138397216796875, -0.05023193359375, 0.03973388671875, -0.0177764892578125, -0.01470184326171875, -0.0011272430419921875, -0.00914764404296875, -0.00005137920379638672, 0.053131103515625, -0.07025146484375, -0.007801055908203125, -0.0175323486328125, 0.01012420654296875, -0.00400543212890625, -0.08154296875, -0.046417236328125, -0.006336212158203125, -0.1090087890625, 0.0057373046875, -0.01114654541015625, -0.039581298828125, -0.017913818359375, 0.023101806640625, -0.072265625, -0.0343017578125, 0.02996826171875, 0.0109405517578125, -0.0110321044921875, 0.0164031982421875, -0.00189971923828125, -0.023345947265625, -0.01116180419921875, 0.005786895751953125, -0.0648193359375, -0.0182037353515625, 0.006122589111328125, 0.0352783203125, 0.00748443603515625, -0.04638671875, 0.005062103271484375, 0.04864501953125, 0.01018524169921875, -0.01021575927734375, 0.004398345947265625, -0.00272369384765625, -0.0016641616821289062, 0.00049591064453125, 0.0107574462890625, -0.032623291015625, -0.01036834716796875, -0.022186279296875, -0.0298004150390625, 0.04840087890625, -0.019317626953125, 0.05755615234375, -0.01430511474609375, 0.004833221435546875, -0.0640869140625, -0.03173828125, 0.00881195068359375, 0.020416259765625, -0.002437591552734375, 0.00383758544921875, -0.054443359375, -0.06365966796875, 0.045135498046875, 0.038909912109375, -0.01275634765625, -0.003124237060546875, 0.057342529296875, 0.0037250518798828125, -0.04248046875, -0.053802490234375, 0.0251922607421875, 0.043914794921875, 0.0013713836669921875, 0.036102294921875, 0.02423095703125, -0.04156494140625, 0.03521728515625, 0.031829833984375, -0.01837158203125, -0.007617950439453125, 0.031463623046875, -0.01171112060546875, -0.0242156982421875, 0.0010833740234375, -0.051361083984375, 0.061676025390625, 0.032501220703125, 0.02276611328125, -0.021209716796875, 0.041168212890625, 0.027435302734375, 0.0255279541015625, -0.035614013671875, -0.0218505859375, 0.0006685256958007812, -0.0109405517578125, 0.046112060546875, 0.0390625, 0.0080108642578125, -0.00260162353515625, 0.0009222030639648438, 0.02313232421875, -0.0016450881958007812, 0.03839111328125, 0.056854248046875, 0.00689697265625, 0.0560302734375, -0.01230621337890625, -0.00473785400390625, -0.01490020751953125, 0.0029697418212890625, 0.0029201507568359375, -0.00213623046875, -0.01413726806640625, -0.0304412841796875, -0.013763427734375, -0.00972747802734375, -0.005252838134765625, 0.0124359130859375, 0.04998779296875, 0.0159759521484375, -0.0151214599609375, -0.016204833984375, 0.004520416259765625, -0.00734710693359375, -0.0550537109375, -0.001926422119140625, 0.0130615234375, -0.02447509765625, 0.0238037109375, 0.031341552734375, -0.003570556640625, 0.0430908203125, -0.0289764404296875, -0.0244903564453125, -0.00429534912109375, 0.047882080078125, 0.02447509765625, -0.0035400390625, -0.00881195068359375, 0.0283660888671875, 0.02508544921875, -0.020263671875, -0.027374267578125, 0.02935791015625, 0.033782958984375, -0.0238037109375, -0.00464630126953125, 0.0018138885498046875, 0.0007333755493164062, -0.034210205078125, 0.008026123046875, 0.021697998046875, -0.00948333740234375, -0.0235595703125, 0.02789306640625, 0.029052734375, 0.0455322265625, -0.04052734375, 0.060699462890625, 0.0037937164306640625, 0.03741455078125, -0.01171875, -0.06134033203125, 0.038970947265625, 0.052215576171875, 0.016510009765625, -0.0037403106689453125, -0.02801513671875, -0.0128936767578125, -0.01418304443359375, -0.008392333984375, 0.0024814605712890625, 0.043365478515625, -0.007511138916015625, -0.008544921875, -0.0204315185546875, 0.00714111328125, -0.023681640625, -0.018218994140625, 0.06640625, 0.00787353515625, -0.048614501953125, 0.0110626220703125, -0.057708740234375, -0.01763916015625, -0.007061004638671875, -0.00494384765625, -0.042388916015625, 0.0005860328674316406, -0.015899658203125, 0.0180511474609375, -0.002651214599609375, 0.0293731689453125, -0.0302581787109375, 0.036468505859375, 0.0014743804931640625, 0.053466796875, 0.0081634521484375, 0.06805419921875, -0.05230712890625, 0.070556640625, -0.015350341796875, 0.024261474609375, -0.0357666015625, -0.01392364501953125, -0.0090179443359375, -0.05120849609375, -0.0027065277099609375, -0.0030536651611328125, 0.0014171600341796875, 0.04022216796875, 0.032562255859375, 0.0222930908203125, -0.024871826171875, -0.0207061767578125, -0.0086517333984375, -0.031646728515625, 0.0364990234375, 0.0096435546875, -0.0165863037109375, -0.023406982421875, -0.0223388671875, 0.0244598388671875, -0.00035071372985839844, 0.00995635986328125, 0.018402099609375, -0.014678955078125, 0.0261383056640625, 0.01132965087890625, -0.036224365234375, 0.055908203125, 0.0433349609375, 0.004131317138671875, 0.025360107421875, 0.0218505859375, -0.0003647804260253906, -0.0233917236328125, 0.037200927734375, 0.01436614990234375, -0.0246734619140625, 0.056640625, 0.01200103759765625, -0.01009368896484375, 0.027130126953125, -0.039031982421875, 0.032958984375, 0.061798095703125, 0.034912109375, -0.0872802734375, 0.0186004638671875, 0.01544189453125, -0.0171966552734375, 0.0133209228515625, -0.004528045654296875, 0.005428314208984375, 0.0027866363525390625, 0.00030803680419921875, 0.009979248046875, -0.0188140869140625, -0.01041412353515625, -0.004512786865234375, 0.0245819091796875, 0.0194549560546875, 0.1019287109375, 0.0053558349609375, -0.04559326171875, -0.01495361328125, 0.00799560546875, 0.01168060302734375, -0.018463134765625, -0.04132080078125, -0.0204010009765625, -0.0284423828125, -0.00909423828125, 0.006683349609375, -0.05645751953125, 0.05615234375, 0.005786895751953125, 0.00881195068359375, 0.0284576416015625, 0.0224151611328125, -0.014801025390625, 0.01488494873046875, -0.01280975341796875, 0.0211944580078125, -0.0177154541015625, -0.039398193359375, 0.00545501708984375, 0.060516357421875, -0.0096435546875, 0.02337646484375, 0.0231781005859375, -0.04742431640625, -0.0202484130859375, -0.04522705078125, 0.10211181640625, -0.03692626953125, -0.0169525146484375, 0.0293426513671875, 0.0124969482421875, -0.034423828125, -0.014312744140625, 0.01055908203125, -0.046783447265625, -0.0011644363403320312, -0.015289306640625, -0.00988006591796875, 0.00412750244140625, -0.03631591796875, -0.049957275390625, 0.042236328125, 0.00582122802734375, 0.01885986328125, -0.016357421875, 0.01308441162109375, 0.01458740234375, 0.022918701171875, -0.0255889892578125, 0.058380126953125, 0.0604248046875, 0.021636962890625, -0.033355712890625, -0.0305938720703125, 0.00873565673828125, 0.061553955078125, 0.016876220703125, 0.0012359619140625, 0.0067901611328125, 0.0092010498046875, 0.035400390625, -0.0017824172973632812, -0.02105712890625, 0.0252838134765625, 0.007904052734375, 0.07330322265625, 0.08270263671875, -0.047119140625, 0.040130615234375, -0.023101806640625, -0.00930023193359375, 0.0212860107421875, 0.019622802734375, 0.02532958984375, 0.00360870361328125, -0.00466156005859375, -0.0245819091796875, 0.0095367431640625, 0.023651123046875, -0.0225830078125, 0.027740478515625, 0.042999267578125, 0.087890625, -0.1109619140625, -0.03497314453125, -0.037109375, 0.061248779296875, 0.015228271484375, -0.0001443624496459961, 0.016326904296875, 0.0006093978881835938, 0.07470703125, -0.0200653076171875, -0.0024509429931640625, -0.0020694732666015625, 0.0160675048828125, 0.0618896484375, 0.023590087890625, 0.03509521484375, -0.057464599609375, -0.01800537109375, 0.0157318115234375, 0.072509765625, -0.03192138671875, -0.038116455078125, 0.0028533935546875, -0.01512908935546875, -0.0002906322479248047, 0.009796142578125, 0.0203094482421875, -0.014923095703125, 0.00205230712890625, -0.049072265625, -0.000751495361328125, 0.0129547119140625, 0.0299072265625, -0.0323486328125, -0.0626220703125, 0.000225067138671875, -0.0018663406372070312, -0.038299560546875, -0.0280609130859375, 0.0262451171875, 0.046661376953125, 0.0308380126953125, 0.034210205078125, 0.00940704345703125, -0.002918243408203125, -0.012420654296875, 0.044281005859375, -0.0433349609375, 0.0262603759765625, -0.01727294921875, -0.0182647705078125, -0.043365478515625, 0.021484375, -0.0091094970703125, -0.0228118896484375, 0.00986480712890625, 0.00934600830078125, -0.03741455078125, -0.0175628662109375, 0.0132598876953125, -0.0288543701171875, -0.0213775634765625, -0.042755126953125, -0.025299072265625, 0.0184783935546875, -0.009918212890625, 0.0259552001953125, -0.031890869140625, 0.04986572265625, -0.05194091796875, 0.0435791015625, 0.0015935897827148438, 0.0013484954833984375, 0.039093017578125, -0.006099700927734375, 0.0069580078125, -0.01198577880859375, -0.08026123046875, -0.02618408203125, -0.0321044921875, -0.007259368896484375, 0.022216796875, 0.0219268798828125, -0.0099334716796875, 0.01715087890625, 0.01366424560546875, 0.04022216796875, -0.01277923583984375, -0.06121826171875, 0.034820556640625, 0.02099609375, 0.0267181396484375, 0.04412841796875, -0.029144287109375, -0.0518798828125, -0.04095458984375, 0.09381103515625, 0.01520538330078125, 0.10040283203125, -0.06591796875, 0.03009033203125, 0.0207366943359375, -0.0002987384796142578, -0.01523590087890625, -0.0291748046875, 0.03631591796875, -0.041015625, -0.0032138824462890625, 0.0112457275390625, 0.016204833984375, 0.00890350341796875, 0.034637451171875, -0.053375244140625, -0.0061798095703125, -0.0089874267578125, 0.0026683807373046875, -0.01351165771484375, 0.041412353515625, -0.0205535888671875, -0.0182342529296875, -0.0225677490234375, -0.0137176513671875, 0.0144195556640625, 0.0228424072265625, 0.006134033203125, 0.0208740234375, 0.031280517578125, -0.0207977294921875, 0.047576904296875, -0.022796630859375, 0.06829833984375, 0.0274810791015625, -0.0097503662109375, 0.022186279296875, 0.038970947265625, -0.0126953125, 0.0214691162109375, 0.0269317626953125, 0.0230865478515625, 0.0142364501953125, 0.017059326171875, -0.0171966552734375, -0.0391845703125, 0.0250091552734375, -0.0258331298828125, -0.0059814453125, -0.0304412841796875, 0.0273590087890625, -0.00433349609375, 0.00261688232421875, -0.00888824462890625, -0.02227783203125, -0.014251708984375, 0.00794219970703125, -0.005970001220703125, -0.0144500732421875, -0.000652313232421875, -0.0323486328125, 0.01568603515625, 0.01055908203125, -0.0288848876953125, -0.005832672119140625, 0.0226898193359375, 0.0045623779296875, -0.016082763671875, 0.0355224609375, -0.004703521728515625, 0.01009368896484375, -0.035125732421875, -0.0201416015625, -0.019317626953125, 0.042572021484375, -0.0132293701171875, 0.01267242431640625, 0.060516357421875, -0.0301361083984375, -0.0518798828125, 0.0032749176025390625, 0.0211181640625, 0.043609619140625, -0.006732940673828125, -0.008941650390625, 0.01296234130859375, -0.0006361007690429688, -0.0210113525390625, -0.03973388671875, 0.01099395751953125, -0.033599853515625, 0.0016613006591796875, 0.020965576171875, -0.0137939453125, 0.015228271484375, -0.030303955078125, -0.07818603515625, 0.02630615234375, -0.0037136077880859375, -0.05517578125, -0.0198516845703125, 0.02349853515625, 0.00011467933654785156, -0.007343292236328125, -0.021820068359375, 0.036590576171875, -0.004512786865234375, 0.01049041748046875, 0.0211029052734375, 0.032470703125, -0.0079803466796875, 0.0256195068359375, -0.04931640625, 0.0272674560546875, 0.006259918212890625, 0.0127410888671875, 0.01105499267578125, -0.005710601806640625, 0.00827789306640625, 0.0168914794921875, -0.054656982421875, -0.00389862060546875, -0.0251922607421875, 0.04083251953125, 0.0246124267578125, 0.02874755859375, -0.051513671875, -0.041839599609375, 0.0177459716796875, 0.043975830078125, 0.017608642578125, 0.01500701904296875, 0.0075836181640625, 0.0013284683227539062, -0.0595703125, -0.020263671875, 0.03204345703125, -0.05596923828125, -0.02203369140625, 0.0037899017333984375, -0.0008144378662109375, -0.0372314453125, -0.0186004638671875, -0.035888671875, -0.01442718505859375, -0.0047760009765625, 0.034637451171875, -0.007236480712890625, 0.0018062591552734375, 0.0265655517578125, -0.0298004150390625, -0.007015228271484375, 0.01544952392578125, -0.004131317138671875, 0.005313873291015625, 0.043670654296875, -0.02435302734375, 0.06072998046875, -0.04864501953125, 0.0011157989501953125, 0.0117034912109375, 0.0189666748046875, -0.01053619384765625, 0.02001953125, -0.01219940185546875, 0.0115966796875, -0.0006341934204101562, -0.0030574798583984375, -0.01071929931640625, 0.028778076171875, 0.00890350341796875, 0.0467529296875, 0.01229095458984375, 0.003787994384765625, -0.0004935264587402344, 0.038116455078125, -0.0330810546875, -0.0279693603515625, -0.0036983489990234375, -0.05657958984375, -0.004276275634765625, -0.0087127685546875, -0.043243408203125, -0.04376220703125, -0.0060577392578125, 0.016357421875, -0.007904052734375, 0.0136260986328125 ]
ef40e04d6821056da6758dd0cfb06d94124fbdf2
Wordpress Stackexchange Q: Add /demo/ slug with rewrite rule Possible Duplicate: Add extra parameters after permalink? I need to add a slug to every post. Current permalinks http://www.my-domain.com/2012/01/01/my-post-title/ or http://www.my-domain.com/my-post-title/ Rewritten permalinks http://www.my-domain.com/2012/01/01/my-post-title/demo/ or http://www.my-domain.com/my-post-title/demo/ Additional information * *My demo-page should not return a 404-page. *I should be able to get the current ID of the post "my-post-title" from my demo-page.
Q: Add /demo/ slug with rewrite rule Possible Duplicate: Add extra parameters after permalink? I need to add a slug to every post. Current permalinks http://www.my-domain.com/2012/01/01/my-post-title/ or http://www.my-domain.com/my-post-title/ Rewritten permalinks http://www.my-domain.com/2012/01/01/my-post-title/demo/ or http://www.my-domain.com/my-post-title/demo/ Additional information * *My demo-page should not return a 404-page. *I should be able to get the current ID of the post "my-post-title" from my demo-page.
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:416411", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39938" }
[ 0.07373046875, 0.0198974609375, -0.00908660888671875, -0.07080078125, 0.01546478271484375, -0.0088958740234375, -0.0130767822265625, -0.034271240234375, -0.05853271484375, 0.02569580078125, -0.0028362274169921875, 0.06463623046875, -0.0021572113037109375, -0.0206298828125, 0.058929443359375, 0.00807952880859375, 0.039154052734375, -0.0140838623046875, 0.044158935546875, -0.003917694091796875, 0.001842498779296875, 0.01168060302734375, 0.050628662109375, 0.04840087890625, 0.002593994140625, -0.005626678466796875, 0.04229736328125, -0.053131103515625, -0.01116180419921875, -0.058013916015625, -0.0014209747314453125, 0.04833984375, 0.02294921875, -0.038909912109375, 0.06610107421875, 0.041656494140625, 0.0704345703125, -0.040496826171875, 0.0105438232421875, 0.04669189453125, 0.0345458984375, -0.0273590087890625, 0.006725311279296875, 0.0193634033203125, 0.005558013916015625, -0.02703857421875, 0.038360595703125, -0.048553466796875, 0.01532745361328125, 0.0001461505889892578, -0.001148223876953125, 0.031951904296875, -0.006145477294921875, 0.0269927978515625, -0.0007920265197753906, -0.009918212890625, 0.0225830078125, 0.019561767578125, 0.03662109375, -0.03765869140625, -0.052459716796875, -0.007801055908203125, 0.02423095703125, -0.00623321533203125, -0.006763458251953125, -0.01522064208984375, 0.0034999847412109375, 0.022216796875, -0.045501708984375, -0.01125335693359375, 0.036834716796875, -0.032470703125, -0.0165557861328125, -0.037628173828125, -0.0260162353515625, -0.0305328369140625, -0.002410888671875, -0.07244873046875, -0.006275177001953125, 0.01904296875, 0.0018072128295898438, -0.01140594482421875, 0.0274658203125, -0.0213623046875, 0.00724029541015625, -0.01824951171875, -0.0078277587890625, 0.005645751953125, -0.02679443359375, -0.04681396484375, -0.03131103515625, -0.00982666015625, -0.0223236083984375, -0.0164337158203125, -0.03472900390625, -0.019073486328125, 0.04119873046875, 0.0394287109375, 0.02337646484375, 0.01349639892578125, 0.01995849609375, -0.06378173828125, 0.024383544921875, -0.030853271484375, -0.010986328125, 0.0196685791015625, 0.024566650390625, 0.049224853515625, 0.029449462890625, 0.006084442138671875, -0.0024509429931640625, 0.05450439453125, -0.006320953369140625, -0.01354217529296875, -0.0287322998046875, 0.03326416015625, -0.021209716796875, -0.01213836669921875, -0.00315093994140625, 0.004734039306640625, 0.004596710205078125, 0.0361328125, 0.0006651878356933594, -0.00937652587890625, 0.0124969482421875, 0.018768310546875, 0.00592803955078125, -0.049285888671875, -0.0196533203125, 0.048553466796875, -0.015594482421875, 0.007671356201171875, 0.0310516357421875, 0.0194549560546875, -0.0220489501953125, -0.020416259765625, 0.0097503662109375, -0.0208892822265625, -0.033660888671875, 0.0183258056640625, -0.0198211669921875, -0.038177490234375, -0.00965118408203125, -0.00649261474609375, 0.023773193359375, 0.034820556640625, 0.010009765625, 0.0032863616943359375, 0.01247406005859375, -0.01342010498046875, -0.0181884765625, -0.032806396484375, 0.0238189697265625, 0.00510406494140625, -0.030670166015625, -0.01885986328125, -0.034393310546875, -0.0197906494140625, 0.018035888671875, -0.00504302978515625, -0.0006299018859863281, 0.01654052734375, 0.034759521484375, -0.03131103515625, -0.046661376953125, -0.027862548828125, -0.043670654296875, -0.0056304931640625, 0.0104827880859375, 0.050872802734375, -0.0226593017578125, -0.0216064453125, 0.00714111328125, -0.0233917236328125, -0.03912353515625, -0.01085662841796875, -0.004940032958984375, 0.02960205078125, 0.003875732421875, 0.048980712890625, 0.022216796875, -0.03521728515625, 0.0294342041015625, 0.0023670196533203125, -0.07098388671875, 0.0572509765625, 0.0018253326416015625, 0.06951904296875, 0.025177001953125, 0.0008282661437988281, 0.032135009765625, -0.002750396728515625, -0.050537109375, 0.0284271240234375, -0.0187530517578125, 0.00225067138671875, 0.0017242431640625, 0.0120086669921875, -0.016876220703125, 0.00284576416015625, -0.045440673828125, 0.038177490234375, -0.0165252685546875, 0.06866455078125, 0.0318603515625, 0.016998291015625, 0.006481170654296875, 0.02197265625, 0.005565643310546875, 0.0019388198852539062, 0.0171661376953125, -0.018463134765625, -0.0171661376953125, -0.0374755859375, -0.039764404296875, 0.01476287841796875, -0.0074310302734375, -0.0085601806640625, -0.035552978515625, 0.01399993896484375, -0.023529052734375, -0.0203399658203125, -0.051513671875, 0.0312042236328125, 0.049774169921875, 0.01934814453125, -0.02490234375, -0.01342010498046875, 0.0020313262939453125, 0.0299530029296875, -0.07696533203125, 0.02569580078125, 0.00937652587890625, 0.00893402099609375, -0.010040283203125, 0.0250396728515625, 0.007366180419921875, -0.0308380126953125, -0.00833892822265625, 0.0274810791015625, 0.00786590576171875, 0.06500244140625, 0.00835418701171875, 0.0109100341796875, 0.0007700920104980469, -0.003284454345703125, 0.04278564453125, -0.0218658447265625, -0.01325225830078125, 0.04315185546875, 0.038330078125, 0.050140380859375, 0.0081024169921875, -0.006877899169921875, -0.022552490234375, 0.058624267578125, -0.030120849609375, -0.02227783203125, -0.03741455078125, 0.0224609375, 0.01386260986328125, -0.00897979736328125, -0.002513885498046875, -0.0112762451171875, 0.00982666015625, 0.0109100341796875, 0.01194000244140625, 0.0115814208984375, -0.0018129348754882812, -0.004001617431640625, -0.00569915771484375, -0.044219970703125, 0.00760650634765625, 0.005619049072265625, 0.0157318115234375, 0.004512786865234375, -0.0175933837890625, 0.0005254745483398438, 0.036224365234375, -0.009613037109375, -0.01251983642578125, 0.0150604248046875, 0.0299530029296875, -0.021636962890625, -0.0143890380859375, -0.0693359375, 0.013397216796875, -0.030242919921875, 0.0239715576171875, 0.019287109375, 0.0523681640625, -0.0139923095703125, -0.035125732421875, 0.035491943359375, 0.0174102783203125, -0.03173828125, 0.0291748046875, -0.052032470703125, 0.0445556640625, -0.0244598388671875, 0.036895751953125, 0.062225341796875, -0.0146942138671875, 0.006549835205078125, -0.006999969482421875, -0.017913818359375, -0.047210693359375, 0.0106964111328125, -0.01277923583984375, -0.0189666748046875, -0.0799560546875, 0.0021114349365234375, 0.0155181884765625, 0.004131317138671875, 0.01398468017578125, -0.0211029052734375, 0.008331298828125, 0.0193939208984375, -0.041900634765625, -0.030731201171875, 0.0087432861328125, -0.049468994140625, 0.0023651123046875, 0.01165008544921875, -0.0228424072265625, -0.023345947265625, 0.0199127197265625, 0.01142120361328125, -0.03619384765625, -0.0233917236328125, -0.0654296875, -0.06964111328125, -0.0775146484375, -0.02130126953125, -0.0006461143493652344, 0.0181427001953125, 0.01319122314453125, 0.0306396484375, 0.01446533203125, 0.005306243896484375, 0.0487060546875, -0.0206146240234375, -0.01227569580078125, 0.0088653564453125, -0.0309295654296875, -0.004032135009765625, 0.023651123046875, -0.0140228271484375, 0.038909912109375, 0.056488037109375, -0.0265655517578125, 0.03460693359375, -0.0341796875, 0.0103302001953125, -0.022064208984375, 0.031158447265625, 0.064453125, 0.00787353515625, 0.01386260986328125, -0.02032470703125, -0.0265960693359375, -0.0170745849609375, -0.054168701171875, -0.01464080810546875, -0.006633758544921875, 0.024383544921875, -0.0159912109375, 0.0165557861328125, 0.013885498046875, 0.01274871826171875, 0.06243896484375, -0.01070404052734375, 0.006397247314453125, -0.0213775634765625, -0.0172271728515625, -0.07135009765625, 0.0034275054931640625, -0.02740478515625, 0.0259857177734375, -0.007091522216796875, 0.01200103759765625, 0.0089874267578125, 0.0034160614013671875, -0.009765625, -0.04608154296875, 0.05303955078125, -0.042877197265625, 0.00395965576171875, -0.058837890625, -0.033203125, -0.039947509765625, 0.08251953125, -0.01438140869140625, -0.0169677734375, -0.01087188720703125, -0.00543975830078125, 0.01861572265625, 0.0172119140625, -0.0073089599609375, -0.025360107421875, -0.01448822021484375, -0.0004978179931640625, -0.026214599609375, 0.0063323974609375, -0.0224151611328125, 0.0186004638671875, -0.0018644332885742188, -0.028167724609375, 0.0283966064453125, 0.00531768798828125, 0.007808685302734375, 0.00986480712890625, 0.01064300537109375, 0.00653839111328125, -0.037567138671875, -0.01303863525390625, -0.052032470703125, -0.0242462158203125, 0.04931640625, 0.036529541015625, -0.018951416015625, -0.050537109375, 0.00910186767578125, 0.049530029296875, -0.009429931640625, -0.0162811279296875, 0.03826904296875, 0.022674560546875, 0.0078125, 0.0207977294921875, 0.026214599609375, -0.0267333984375, 0.0102081298828125, -0.01081085205078125, -0.057891845703125, -0.001983642578125, -0.0275421142578125, 0.01493072509765625, 0.010986328125, -0.0380859375, -0.04791259765625, -0.0020904541015625, 0.020660400390625, 0.020538330078125, -0.003124237060546875, -0.0002675056457519531, -0.01335906982421875, -0.0307464599609375, 0.0213623046875, 0.0109405517578125, -0.01214599609375, 0.003368377685546875, 0.02838134765625, 0.01165008544921875, -0.025909423828125, 0.0244293212890625, 0.016845703125, 0.030792236328125, -0.0168914794921875, 0.03741455078125, 0.0108184814453125, -0.004634857177734375, 0.0142822265625, -0.0230560302734375, -0.0240020751953125, -0.03460693359375, 0.02520751953125, -0.016998291015625, -0.023284912109375, 0.0147247314453125, -0.0379638671875, 0.07940673828125, 0.0017271041870117188, -0.0362548828125, 0.014404296875, -0.048492431640625, 0.043853759765625, -0.01300811767578125, 0.043548583984375, -0.045654296875, -0.0731201171875, 0.034881591796875, -0.0023651123046875, 0.00534820556640625, 0.0239715576171875, -0.006359100341796875, 0.036865234375, -0.008697509765625, -0.016082763671875, 0.01155853271484375, 0.0023822784423828125, 0.02685546875, 0.017578125, 0.00260162353515625, -0.007808685302734375, -0.0171661376953125, -0.005275726318359375, 0.06695556640625, 0.0155181884765625, -0.007389068603515625, -0.0279388427734375, -0.043914794921875, -0.0053253173828125, -0.035064697265625, -0.0007548332214355469, 0.0051727294921875, 0.0257415771484375, 0.0090789794921875, 0.032806396484375, -0.014617919921875, 0.031524658203125, -0.00623321533203125, 0.0014438629150390625, 0.0162506103515625, -0.01849365234375, 0.0281524658203125, 0.0185089111328125, 0.04290771484375, -0.0026092529296875, -0.01861572265625, 0.0279083251953125, 0.019775390625, 0.019195556640625, 0.0207061767578125, -0.004199981689453125, 0.0028076171875, 0.006916046142578125, 0.00511932373046875, -0.0212860107421875, 0.0022106170654296875, 0.01436614990234375, 0.0377197265625, 0.00018680095672607422, -0.006870269775390625, 0.00689697265625, -0.0212860107421875, -0.0242919921875, -0.0012083053588867188, 0.00786590576171875, -0.0308074951171875, 0.004032135009765625, 0.006626129150390625, -0.01091766357421875, -0.01303863525390625, 0.01380157470703125, -0.0411376953125, 0.00656890869140625, 0.033966064453125, 0.005809783935546875, 0.034637451171875, -0.0199127197265625, -0.031005859375, 0.057098388671875, -0.005153656005859375, -0.01308441162109375, -0.015106201171875, 0.0123443603515625, -0.03643798828125, -0.01497650146484375, 0.0679931640625, 0.01267242431640625, 0.058685302734375, -0.0227203369140625, -0.041900634765625, 0.0109405517578125, -0.003631591796875, 0.0130767822265625, -0.0196990966796875, -0.01715087890625, 0.0078277587890625, -0.02130126953125, -0.011383056640625, 0.056915283203125, -0.016937255859375, -0.02264404296875, -0.0638427734375, 0.0203399658203125, 0.01568603515625, 0.00391387939453125, -0.0277557373046875, -0.012451171875, 0.0164642333984375, 0.031524658203125, 0.037506103515625, -0.0026073455810546875, 0.0235748291015625, -0.027313232421875, 0.0161895751953125, -0.0081787109375, 0.01232147216796875, -0.0022258758544921875, -0.0204925537109375, 0.00616455078125, -0.031829833984375, -0.032745361328125, 0.01039886474609375, -0.01244354248046875, 0.012786865234375, 0.04052734375, -0.0167388916015625, 0.0132598876953125, -0.01345062255859375, 0.0190582275390625, -0.0102996826171875, 0.037078857421875, -0.031982421875, -0.01291656494140625, 0.05224609375, 0.01100921630859375, 0.05841064453125, -0.005222320556640625, 0.041595458984375, -0.04901123046875, -0.025177001953125, -0.01447296142578125, 0.002170562744140625, -0.0223388671875, 0.0078582763671875, 0.09912109375, 0.0242156982421875, 0.06707763671875, 0.0161285400390625, 0.0261383056640625, 0.052642822265625, -0.0369873046875, 0.06182861328125, -0.01025390625, 0.055328369140625, -0.009063720703125, 0.0081024169921875, 0.053314208984375, -0.021728515625, -0.01224517822265625, 0.016357421875, 0.036834716796875, -0.03204345703125, -0.0097808837890625, -0.01221466064453125, 0.0231781005859375, 0.049835205078125, 0.021514892578125, 0.020599365234375, 0.040985107421875, 0.011810302734375, -0.01499176025390625, -0.000028312206268310547, 0.01324462890625, 0.005157470703125, -0.0214385986328125, -0.008087158203125, -0.006832122802734375, 0.009796142578125, -0.010528564453125, 0.01534271240234375, 0.00891876220703125, 0.0077667236328125, -0.0046234130859375, -0.031463623046875, 0.014678955078125, -0.0225677490234375, -0.0137939453125, 0.038909912109375, -0.0560302734375, 0.0406494140625, 0.0182952880859375, 0.02191162109375, 0.021270751953125, 0.01220703125, 0.003932952880859375, -0.01300048828125, -0.01055145263671875, -0.0187225341796875, 0.0064544677734375, -0.01540374755859375, -0.0191802978515625, 0.0024890899658203125, 0.0264434814453125, -0.00119781494140625, -0.01092529296875, -0.0138092041015625, -0.0008373260498046875, -0.0171356201171875, 0.05499267578125, -0.06402587890625, -0.006595611572265625, 0.03619384765625, -0.0090484619140625, 0.003902435302734375, -0.011962890625, -0.0066986083984375, -0.03875732421875, 0.010955810546875, -0.01288604736328125, -0.0115966796875, -0.00746917724609375, -0.03045654296875, -0.09161376953125, 0.1588134765625, 0.0029888153076171875, 0.04833984375, 0.0136566162109375, 0.06317138671875, -0.0305633544921875, 0.02398681640625, -0.0262298583984375, 0.054473876953125, -0.01519775390625, 0.038543701171875, -0.061370849609375, -0.00714874267578125, 0.000377655029296875, 0.052337646484375, 0.11480712890625, 0.01509857177734375, -0.01629638671875, -0.0020809173583984375, 0.0872802734375, 0.0289459228515625, -0.02239990234375, 0.0233917236328125, -0.0172119140625, 0.0226593017578125, 0.017730712890625, -0.006420135498046875, 0.0294952392578125, 0.0031375885009765625, -0.054656982421875, 0.0190887451171875, 0.017486572265625, 0.01422882080078125, 0.0253448486328125, 0.004718780517578125, 0.01096343994140625, 0.00872039794921875, 0.01227569580078125, 0.00028705596923828125, 0.0035839080810546875, 0.037445068359375, 0.03057861328125, -0.007022857666015625, -0.032806396484375, -0.0229949951171875, 0.04290771484375, 0.0192413330078125, -0.0017690658569335938, 0.039642333984375, 0.01459503173828125, -0.007160186767578125, 0.001796722412109375, 0.01013946533203125, 0.026641845703125, -0.020355224609375, 0.055145263671875, 0.0501708984375, 0.0174102783203125, 0.00313568115234375, 0.03857421875, 0.075439453125, 0.09283447265625, -0.07086181640625, 0.00881195068359375, 0.00909423828125, -0.0177764892578125, -0.0185546875, -0.037200927734375, -0.00939178466796875, -0.005077362060546875, 0.0008492469787597656, -0.034454345703125, -0.01561737060546875, -0.006084442138671875, 0.04449462890625, -0.009979248046875, -0.02239990234375, -0.0060272216796875, -0.020843505859375, -0.0301513671875, -0.005329132080078125, -0.002712249755859375, 0.07611083984375, 0.042755126953125, 0.041595458984375, -0.0225830078125, -0.040435791015625, 0.01107025146484375, 0.0204010009765625, 0.0199737548828125, -0.02655029296875, 0.002490997314453125, -0.0292816162109375, 0.01502227783203125, 0.019134521484375, 0.04803466796875, 0.0248260498046875, 0.06488037109375, -0.01861572265625, -0.07489013671875, 0.0123748779296875, 0.0225372314453125, -0.03680419921875, 0.059783935546875, -0.02337646484375, 0.0232391357421875, 0.006389617919921875, -0.020599365234375, -0.05181884765625, -0.021209716796875, 0.060791015625, -0.022857666015625, 0.0194854736328125, 0.01275634765625, -0.01038360595703125, 0.07421875, 0.012725830078125, 0.0167388916015625, 0.014801025390625, -0.03973388671875, -0.003108978271484375, -0.00588226318359375, -0.1187744140625, 0.037628173828125, 0.055999755859375, -0.0100860595703125, -0.0253448486328125, -0.0219573974609375, -0.0013303756713867188, 0.0309295654296875, -0.00754547119140625, 0.0008878707885742188, 0.036346435546875, 0.0233917236328125, 0.004665374755859375, -0.05938720703125, -0.031585693359375, -0.0159149169921875, 0.0291290283203125, -0.01837158203125, 0.104736328125, -0.038177490234375, -0.00891876220703125, -0.026336669921875, 0.00548553466796875, 0.00021004676818847656, -0.0244293212890625, 0.0200653076171875, 0.0254058837890625, 0.02142333984375, -0.022918701171875, -0.03692626953125, 0.018402099609375, 0.0170440673828125, -0.0022068023681640625, 0.039215087890625, -0.056976318359375, 0.005741119384765625, -0.022735595703125, 0.04034423828125, -0.025177001953125, -0.05084228515625, -0.058380126953125, -0.0004642009735107422, 0.020477294921875, 0.00177764892578125, -0.0523681640625, 0.03277587890625, 0.0257568359375, 0.0184326171875, 0.0008678436279296875, 0.00444793701171875, 0.01546478271484375, 0.033660888671875, -0.01183319091796875, 0.03936767578125, 0.037445068359375, -0.003021240234375, 0.029876708984375, 0.01470947265625, -0.01690673828125, 0.0389404296875, -0.00327301025390625, -0.0269317626953125, -0.0258331298828125, 0.0171661376953125, 0.0044097900390625, 0.0021572113037109375, -0.044189453125, -0.006092071533203125, -0.0102386474609375, -0.005596160888671875, -0.047882080078125, -0.05218505859375, 0.00675201416015625, 0.04254150390625, -0.041351318359375, -0.004161834716796875, -0.095703125, 0.01047515869140625, -0.0017290115356445312, -0.01617431640625, -0.04815673828125, 0.034027099609375, -0.01061248779296875, 0.0606689453125, -0.050872802734375, -0.030975341796875, 0.0142974853515625, 0.0340576171875, -0.05474853515625, 0.001735687255859375, -0.02630615234375, -0.040252685546875, -0.0298309326171875, 0.043426513671875, 0.058013916015625, -0.043060302734375, -0.00612640380859375, -0.005420684814453125, 0.032562255859375, 0.0557861328125, -0.0106658935546875, -0.0007510185241699219, 0.031585693359375, 0.02349853515625, -0.048370361328125, -0.09796142578125, 0.0026035308837890625, -0.045867919921875, -0.004344940185546875, -0.0304718017578125, -0.01546478271484375, -0.01212310791015625, -0.0389404296875, -0.00466156005859375, 0.0655517578125, 0.006664276123046875, -0.0125732421875, -0.07269287109375, 0.042144775390625, 0.00830841064453125, 0.03472900390625, 0.0024623870849609375, -0.03875732421875, -0.029327392578125, 0.0034160614013671875, 0.0310821533203125, 0.0245819091796875, 0.01611328125, 0.036224365234375, 0.04351806640625, 0.0694580078125, 0.053924560546875, -0.033111572265625, 0.05316162109375, -0.047393798828125, 0.048736572265625, 0.04754638671875, -0.048797607421875, -0.029266357421875, -0.037109375, -0.020416259765625, -0.035736083984375, -0.033935546875, -0.04144287109375, -0.0174713134765625, 0.11309814453125, 0.053436279296875, 0.029876708984375, -0.035125732421875, -0.00609588623046875, -0.0257110595703125, -0.0020313262939453125, 0.017730712890625, 0.0159759521484375, -0.0284881591796875, 0.010040283203125, 0.0252532958984375, 0.00039958953857421875, 0.0085296630859375, -0.00811004638671875, -0.01280975341796875, 0.0149078369140625, 0.0303802490234375, 0.015228271484375, -0.05401611328125, 0.034942626953125, 0.0643310546875, -0.03631591796875, 0.020050048828125, 0.00833892822265625, -0.0058746337890625, 0.036865234375, -0.0181427001953125, 0.002544403076171875, 0.0173797607421875, 0.0053863525390625, 0.01910400390625, 0.015625, 0.0141754150390625, -0.00627899169921875, -0.0093994140625, -0.0228729248046875, -0.00896453857421875, 0.019775390625, -0.0237274169921875, -0.01837158203125, 0.032867431640625, 0.002956390380859375, 0.05029296875, -0.0033416748046875, -0.026611328125, 0.01499176025390625, 0.021209716796875, -0.029022216796875, -0.0038909912109375, 0.0264129638671875, -0.06170654296875, -0.00847625732421875, -0.02410888671875, -0.039215087890625, -0.042205810546875, 0.0130157470703125, 0.0302276611328125, -0.0194854736328125, 0.0283966064453125 ]
9884163105fddaea6d122557051b5bf7e2893d59
Wordpress Stackexchange Q: My login form does not work I have the following code that generates a login form for every page in my blog. <form action="<?php echo wp_login_url(); ?>" method="post"> username: <br /> <input name="log" id="login_username" type="text" /> <br /> password: <br /> <input name="pwd" id="login_password" type="password" /> <br /> <br /> <input name="rememberme" id="rememberme" type="checkbox" value="forever" /> remember me <br /> <br /> <input type="submit" value="login" /> <input type="hidden" name="redirect_to" value="/" /> <input type="hidden" name="testcookie" value="1" /> </form> But it doesn't work. It just lands the user in login page. I'm wondering if I have left out a part of the form! SOLVED: I should've just put a hidden input in the form with name of login and some value like true. A: If you read the documentation on wp_login_url, you can specify a redirect URL without having to use that hidden input field. Alternatively, you could just use the wp_login_form function to do exactly what you want: <?php wp_login_form(); ?> Just toss that in there in place of your form, and read the documentation on that function to learn how to customize it.
Q: My login form does not work I have the following code that generates a login form for every page in my blog. <form action="<?php echo wp_login_url(); ?>" method="post"> username: <br /> <input name="log" id="login_username" type="text" /> <br /> password: <br /> <input name="pwd" id="login_password" type="password" /> <br /> <br /> <input name="rememberme" id="rememberme" type="checkbox" value="forever" /> remember me <br /> <br /> <input type="submit" value="login" /> <input type="hidden" name="redirect_to" value="/" /> <input type="hidden" name="testcookie" value="1" /> </form> But it doesn't work. It just lands the user in login page. I'm wondering if I have left out a part of the form! SOLVED: I should've just put a hidden input in the form with name of login and some value like true. A: If you read the documentation on wp_login_url, you can specify a redirect URL without having to use that hidden input field. Alternatively, you could just use the wp_login_form function to do exactly what you want: <?php wp_login_form(); ?> Just toss that in there in place of your form, and read the documentation on that function to learn how to customize it. A: I should've just put a hidden input in the form with name of login and some value like true.
wordpress
{ "language": "en", "length": 204, "provenance": "stackexchange_00019.jsonl.gz:416430", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/39986" }
[ 0.046051025390625, -0.00955963134765625, -0.0016241073608398438, 0.0008153915405273438, 0.00493621826171875, -0.033721923828125, 0.050445556640625, -0.035186767578125, -0.016204833984375, 0.0169219970703125, 0.015899658203125, -0.0250701904296875, -0.03033447265625, -0.044281005859375, -0.00665283203125, -0.03228759765625, -0.0034999847412109375, 0.0266571044921875, 0.0034008026123046875, -0.0277862548828125, 0.0024242401123046875, -0.0181121826171875, 0.00519561767578125, 0.002529144287109375, 0.03924560546875, -0.02349853515625, 0.0865478515625, -0.018096923828125, 0.04278564453125, 0.0183563232421875, 0.03411865234375, -0.0908203125, 0.0204315185546875, 0.02728271484375, -0.03363037109375, -0.0401611328125, 0.0091400146484375, 0.0131988525390625, -0.010894775390625, 0.0240631103515625, 0.032928466796875, -0.034332275390625, -0.00519561767578125, -0.030731201171875, -0.021331787109375, -0.0209808349609375, 0.034637451171875, 0.0108642578125, 0.007030487060546875, -0.001125335693359375, 0.01163482666015625, 0.042510986328125, 0.036651611328125, 0.035675048828125, -0.01953125, -0.00231170654296875, 0.0015716552734375, -0.0209808349609375, 0.0474853515625, 0.005779266357421875, -0.0323486328125, -0.040985107421875, 0.0183563232421875, -0.037994384765625, -0.010711669921875, 0.02362060546875, -0.0155029296875, 0.01064300537109375, -0.023956298828125, -0.0108795166015625, -0.0036563873291015625, -0.047943115234375, 0.0089111328125, -0.031524658203125, -0.018341064453125, 0.0034332275390625, 0.0159454345703125, -0.0080108642578125, 0.004673004150390625, -0.0182342529296875, -0.00966644287109375, 0.005126953125, -0.0517578125, -0.024017333984375, 0.028961181640625, 0.005558013916015625, -0.018646240234375, -0.01554107666015625, -0.0255584716796875, -0.052520751953125, -0.016632080078125, -0.04620361328125, -0.0550537109375, 0.00839996337890625, 0.0038280487060546875, -0.04339599609375, 0.0293426513671875, 0.0308990478515625, 0.034759521484375, -0.01264190673828125, -0.0005497932434082031, -0.040069580078125, -0.005168914794921875, -0.00998687744140625, -0.0177154541015625, 0.07757568359375, 0.05181884765625, 0.040924072265625, -0.0255126953125, -0.0267791748046875, 0.01338958740234375, -0.044342041015625, -0.0233001708984375, -0.04656982421875, 0.01348114013671875, 0.0243377685546875, -0.044769287109375, 0.031982421875, 0.0081787109375, 0.0199127197265625, -0.048553466796875, -0.016571044921875, 0.02337646484375, -0.03167724609375, -0.01036834716796875, -0.038330078125, 0.005931854248046875, -0.0185089111328125, 0.0242919921875, 0.0188140869140625, -0.06268310546875, 0.01316070556640625, 0.052276611328125, -0.0017347335815429688, 0.0134124755859375, -0.035797119140625, 0.0157318115234375, -0.036895751953125, -0.0163116455078125, 0.038482666015625, -0.0177154541015625, -0.05511474609375, 0.01496124267578125, 0.0036869049072265625, 0.0298004150390625, 0.03363037109375, 0.028167724609375, 0.00041604042053222656, -0.004833221435546875, -0.0309906005859375, -0.001476287841796875, -0.034088134765625, -0.00860595703125, 0.02484130859375, 0.0325927734375, 0.01503753662109375, 0.03515625, -0.01152801513671875, -0.0083770751953125, 0.004058837890625, 0.035125732421875, 0.0115966796875, 0.0239410400390625, -0.0303955078125, -0.06903076171875, -0.0284423828125, -0.07135009765625, -0.03924560546875, 0.0280914306640625, 0.0082855224609375, 0.0075225830078125, -0.03717041015625, -0.007373809814453125, 0.0391845703125, 0.006801605224609375, 0.034210205078125, -0.03466796875, 0.06884765625, 0.005268096923828125, 0.0018014907836914062, 0.0113372802734375, -0.03955078125, 0.04718017578125, 0.0201416015625, -0.053466796875, 0.04388427734375, 0.0274810791015625, 0.047393798828125, -0.0224609375, 0.01548004150390625, 0.063720703125, 0.044464111328125, -0.057769775390625, 0.0282745361328125, -0.028289794921875, 0.0052642822265625, -0.01039886474609375, 0.026153564453125, -0.0229644775390625, -0.001667022705078125, 0.045074462890625, -0.01239776611328125, 0.01258087158203125, 0.0219573974609375, 0.02362060546875, 0.0022430419921875, 0.0038356781005859375, -0.0012664794921875, -0.007843017578125, 0.01374053955078125, 0.014495849609375, 0.0262451171875, -0.0106658935546875, -0.059295654296875, -0.0141448974609375, 0.0263671875, -0.032501220703125, 0.03778076171875, -0.0266876220703125, 0.06146240234375, -0.035614013671875, -0.04754638671875, -0.039581298828125, -0.04461669921875, 0.0243072509765625, -0.00782012939453125, -0.022552490234375, -0.02484130859375, -0.012054443359375, -0.0157470703125, -0.0243988037109375, 0.06561279296875, 0.007106781005859375, 0.027984619140625, -0.056304931640625, -0.0165863037109375, -0.036712646484375, 0.00621795654296875, 0.0092315673828125, 0.0290985107421875, 0.0357666015625, 0.0164794921875, 0.00589752197265625, 0.0177154541015625, 0.031341552734375, -0.03460693359375, 0.023773193359375, -0.01016998291015625, 0.0011129379272460938, 0.0277557373046875, -0.021331787109375, 0.008392333984375, 0.0201568603515625, -0.047454833984375, -0.0013294219970703125, 0.044464111328125, -0.009674072265625, 0.0001499652862548828, -0.00798797607421875, 0.0013141632080078125, -0.0011539459228515625, -0.056488037109375, -0.035308837890625, -0.027435302734375, 0.005035400390625, -0.0098724365234375, -0.0029773712158203125, -0.01291656494140625, -0.0257568359375, -0.007205963134765625, 0.026611328125, -0.0281219482421875, -0.01910400390625, 0.016510009765625, 0.04986572265625, -0.046783447265625, -0.0306243896484375, 0.0004703998565673828, -0.0286407470703125, -0.00778961181640625, -0.02069091796875, -0.0017328262329101562, -0.01409149169921875, -0.0150299072265625, 0.0204010009765625, -0.03521728515625, 0.01557159423828125, 0.000701904296875, 0.053924560546875, 0.011993408203125, 0.05157470703125, -0.021514892578125, -0.03204345703125, 0.059783935546875, -0.0227813720703125, -0.05694580078125, -0.038177490234375, -0.0589599609375, 0.04888916015625, -0.044769287109375, 0.044464111328125, 0.06500244140625, -0.0151519775390625, 0.05108642578125, 0.019012451171875, 0.0080718994140625, 0.01114654541015625, 0.0071258544921875, 0.0124664306640625, 0.00527191162109375, -0.028656005859375, 0.0233001708984375, 0.033172607421875, 0.01593017578125, 0.05377197265625, -0.03411865234375, 0.0179290771484375, 0.0273284912109375, -0.0570068359375, -0.07110595703125, -0.067626953125, -0.1015625, 0.01503753662109375, -0.011566162109375, -0.031494140625, 0.021514892578125, 0.029998779296875, 0.031494140625, -0.0092315673828125, -0.007049560546875, -0.046783447265625, -0.036407470703125, -0.051422119140625, 0.0088958740234375, 0.0030498504638671875, 0.01537322998046875, 0.0110931396484375, 0.028717041015625, -0.0041046142578125, -0.039276123046875, 0.0030670166015625, 0.0198822021484375, 0.01824951171875, 0.005901336669921875, -0.0465087890625, -0.02569580078125, 0.0284423828125, -0.02850341796875, 0.040771484375, -0.0098419189453125, 0.026580810546875, 0.014129638671875, 0.016876220703125, -0.044525146484375, 0.022064208984375, 0.0182037353515625, -0.03155517578125, -0.0182342529296875, 0.026153564453125, -0.04583740234375, 0.021759033203125, -0.0213165283203125, -0.034759521484375, -0.00289154052734375, 0.0227203369140625, -0.006221771240234375, 0.007801055908203125, -0.03216552734375, 0.0033931732177734375, 0.0194549560546875, -0.0100860595703125, 0.00524139404296875, 0.0155181884765625, -0.0244140625, -0.00577545166015625, -0.001766204833984375, 0.043975830078125, -0.01178741455078125, -0.03155517578125, 0.003917694091796875, 0.00926971435546875, 0.01922607421875, -0.022369384765625, -0.01389312744140625, -0.052825927734375, 0.04547119140625, -0.0205841064453125, -0.00830078125, -0.02691650390625, -0.0147247314453125, -0.00907135009765625, 0.075439453125, -0.035400390625, 0.00235748291015625, 0.021636962890625, 0.0276947021484375, -0.049530029296875, -0.045623779296875, -0.0745849609375, 0.0019893646240234375, -0.06329345703125, -0.0244903564453125, -0.0195159912109375, -0.03594970703125, 0.033050537109375, -0.061279296875, -0.0007987022399902344, -0.054779052734375, -0.00551605224609375, 0.07080078125, 0.0028476715087890625, -0.02349853515625, -0.01111602783203125, 0.002353668212890625, 0.046356201171875, -0.0144500732421875, -0.034912109375, -0.0136260986328125, -0.01070404052734375, 0.05645751953125, 0.035736083984375, -0.038482666015625, 0.001583099365234375, 0.0526123046875, 0.009307861328125, 0.007564544677734375, 0.0002219676971435547, -0.00830078125, -0.0102386474609375, -0.001605987548828125, -0.0292816162109375, -0.005741119384765625, 0.00687408447265625, 0.0028972625732421875, -0.031280517578125, -0.009735107421875, -0.0440673828125, -0.043975830078125, 0.005680084228515625, -0.030975341796875, -0.044677734375, -0.0367431640625, -0.0179443359375, 0.0005660057067871094, -0.01407623291015625, -0.0007505416870117188, -0.03143310546875, -0.02642822265625, 0.04144287109375, -0.0221710205078125, -0.016265869140625, 0.0009446144104003906, 0.0758056640625, 0.0048370361328125, -0.005115509033203125, -0.040435791015625, 0.0159149169921875, 0.001922607421875, 0.00811767578125, 0.03173828125, -0.03680419921875, -0.0181884765625, 0.0694580078125, -0.0260162353515625, 0.027923583984375, -0.02642822265625, 0.03192138671875, -0.02728271484375, -0.036102294921875, 0.030426025390625, -0.032470703125, 0.013153076171875, 0.0283660888671875, 0.027984619140625, -0.031402587890625, -0.01331329345703125, 0.005954742431640625, -0.00007009506225585938, 0.0006260871887207031, -0.003955841064453125, -0.035919189453125, 0.0002624988555908203, -0.005702972412109375, 0.014312744140625, 0.04815673828125, -0.0236053466796875, 0.0252532958984375, 0.0076904296875, -0.00476837158203125, 0.0181427001953125, -0.036865234375, 0.01611328125, 0.01134490966796875, 0.0264434814453125, 0.003826141357421875, 0.0146026611328125, -0.02252197265625, 0.09033203125, 0.0305023193359375, -0.03662109375, 0.04254150390625, -0.0260467529296875, -0.01012420654296875, -0.0101318359375, -0.0284271240234375, 0.01399993896484375, 0.01428985595703125, -0.0149993896484375, 0.00545501708984375, 0.004161834716796875, -0.02569580078125, -0.0301361083984375, 0.03302001953125, 0.01038360595703125, 0.01189422607421875, 0.033538818359375, 0.060791015625, -0.0107269287109375, 0.058319091796875, -0.026458740234375, 0.0195465087890625, 0.039306640625, 0.017852783203125, 0.031402587890625, 0.0088348388671875, -0.021240234375, -0.0007586479187011719, -0.002197265625, -0.044952392578125, -0.021820068359375, 0.031646728515625, 0.04730224609375, 0.0309600830078125, 0.018310546875, -0.026214599609375, 0.011932373046875, 0.0027923583984375, 0.026824951171875, -0.057098388671875, -0.08770751953125, -0.0130157470703125, 0.029388427734375, 0.0272064208984375, -0.056854248046875, -0.0104827880859375, -0.0171966552734375, -0.039947509765625, -0.0128631591796875, 0.04913330078125, -0.037200927734375, -0.00027489662170410156, -0.01165771484375, 0.01186370849609375, -0.0177001953125, -0.0401611328125, 0.01081085205078125, 0.0035305023193359375, -0.006561279296875, -0.009490966796875, 0.01221466064453125, -0.025482177734375, 0.0200042724609375, -0.03424072265625, 0.0128631591796875, -0.0117340087890625, -0.006717681884765625, 0.058837890625, 0.0256500244140625, -0.035919189453125, -0.0013399124145507812, 0.01385498046875, 0.0033779144287109375, -0.0181121826171875, -0.01186370849609375, -0.0254974365234375, -0.0152435302734375, 0.001728057861328125, 0.0151214599609375, 0.01529693603515625, 0.0139923095703125, -0.01366424560546875, -0.0108795166015625, -0.010589599609375, -0.0020961761474609375, 0.0175323486328125, 0.0288848876953125, -0.037872314453125, 0.025787353515625, 0.00400543212890625, 0.03192138671875, -0.0108795166015625, -0.0228424072265625, 0.02178955078125, -0.010772705078125, -0.031585693359375, -0.0227203369140625, 0.004749298095703125, 0.004154205322265625, 0.0535888671875, -0.021392822265625, -0.0162506103515625, 0.006549835205078125, 0.005123138427734375, -0.0168914794921875, 0.033905029296875, 0.02349853515625, -0.01947021484375, 0.006549835205078125, -0.0077972412109375, -0.0037555694580078125, -0.006443023681640625, -0.0019388198852539062, -0.00482940673828125, -0.00702667236328125, 0.0027370452880859375, 0.010223388671875, -0.05322265625, 0.033538818359375, 0.0836181640625, 0.0225830078125, 0.051727294921875, 0.0038242340087890625, 0.01473236083984375, 0.04986572265625, -0.0303802490234375, -0.00817108154296875, 0.01016998291015625, 0.05218505859375, -0.0065155029296875, -0.0074310302734375, 0.05914306640625, -0.0281524658203125, 0.0127410888671875, 0.07867431640625, 0.058807373046875, -0.1285400390625, 0.0196685791015625, -0.0011243820190429688, 0.0183258056640625, 0.05438232421875, 0.0135040283203125, -0.0209503173828125, 0.00717926025390625, -0.003337860107421875, -0.0224609375, -0.039794921875, 0.003162384033203125, 0.034881591796875, 0.0028324127197265625, -0.006519317626953125, 0.032989501953125, 0.0133819580078125, -0.06402587890625, -0.004364013671875, 0.0465087890625, -0.0201873779296875, -0.00115966796875, 0.0028934478759765625, 0.017578125, -0.0308685302734375, -0.05377197265625, -0.003292083740234375, -0.0223236083984375, -0.0313720703125, -0.002597808837890625, 0.0155181884765625, 0.05853271484375, 0.055389404296875, 0.0016832351684570312, -0.005779266357421875, 0.0166015625, 0.020172119140625, 0.053802490234375, -0.03436279296875, -0.02056884765625, -0.0203704833984375, -0.03326416015625, 0.0027599334716796875, -0.00041937828063964844, -0.030670166015625, -0.0218353271484375, -0.0276031494140625, 0.087158203125, 0.0016126632690429688, -0.0323486328125, 0.0106048583984375, 0.00682830810546875, -0.0006351470947265625, -0.03192138671875, -0.006565093994140625, -0.04656982421875, -0.00537872314453125, -0.04229736328125, -0.037841796875, 0.028045654296875, -0.07867431640625, -0.08184814453125, 0.1075439453125, 0.0199432373046875, 0.0283966064453125, -0.0255279541015625, 0.05096435546875, -0.01837158203125, 0.0233306884765625, -0.048065185546875, 0.050994873046875, 0.019073486328125, 0.031982421875, -0.0189971923828125, 0.004970550537109375, 0.0190582275390625, -0.00746917724609375, 0.025970458984375, 0.006877899169921875, -0.0474853515625, -0.0252838134765625, 0.029632568359375, 0.0301513671875, 0.007091522216796875, 0.0372314453125, 0.000553131103515625, 0.006511688232421875, 0.046417236328125, -0.054656982421875, 0.007785797119140625, -0.0008392333984375, 0.01105499267578125, 0.0146942138671875, -0.02459716796875, -0.064208984375, 0.0009031295776367188, -0.0011129379272460938, -0.10003662109375, 0.024658203125, 0.02862548828125, 0.0230865478515625, -0.0005888938903808594, 0.0102386474609375, 0.0291748046875, -0.0236663818359375, 0.0256805419921875, -0.032562255859375, 0.049072265625, 0.019805908203125, -0.01068878173828125, 0.035736083984375, 0.019073486328125, 0.03363037109375, -0.037322998046875, -0.01325225830078125, -0.00795745849609375, 0.00971221923828125, 0.047607421875, 0.023040771484375, 0.0231781005859375, -0.03436279296875, 0.0084075927734375, 0.062225341796875, 0.06805419921875, -0.051361083984375, -0.003650665283203125, -0.005550384521484375, 0.0207672119140625, 0.0478515625, -0.01317596435546875, 0.08807373046875, -0.023834228515625, -0.024749755859375, 0.009490966796875, 0.016754150390625, 0.00839996337890625, -0.013214111328125, 0.01214599609375, 0.0308837890625, -0.0240936279296875, 0.0557861328125, -0.020782470703125, 0.006816864013671875, -0.0016002655029296875, 0.0250701904296875, -0.016143798828125, 0.049896240234375, -0.0129241943359375, -0.014251708984375, -0.0272674560546875, 0.039642333984375, 0.01220703125, 0.0106964111328125, -0.0259857177734375, 0.0006875991821289062, 0.0223236083984375, 0.013671875, 0.0237884521484375, 0.01320648193359375, 0.0216217041015625, 0.0252685546875, 0.012054443359375, 0.004634857177734375, 0.0179290771484375, -0.019775390625, 0.0261383056640625, -0.00962066650390625, 0.0009775161743164062, 0.0196685791015625, -0.019989013671875, -0.01132965087890625, 0.005096435546875, 0.045562744140625, -0.00981903076171875, 0.025482177734375, -0.00643157958984375, -0.021881103515625, 0.0154266357421875, -0.0283966064453125, 0.099609375, 0.029388427734375, -0.057586669921875, -0.0158233642578125, -0.0197601318359375, -0.05841064453125, 0.043212890625, 0.051666259765625, -0.0172119140625, -0.0015707015991210938, 0.0016326904296875, -0.00627899169921875, 0.0322265625, -0.0276031494140625, 0.004039764404296875, -0.02081298828125, 0.0280303955078125, -0.013031005859375, -0.075927734375, -0.039703369140625, -0.0196990966796875, 0.0074462890625, 0.005401611328125, 0.04852294921875, 0.01488494873046875, 0.00910186767578125, -0.03814697265625, 0.0291900634765625, -0.03936767578125, -0.0164337158203125, -0.0016927719116210938, 0.01117706298828125, 0.0005702972412109375, -0.0009608268737792969, -0.0689697265625, 0.0819091796875, -0.03460693359375, 0.059295654296875, 0.073974609375, -0.03277587890625, -0.01108551025390625, 0.0308990478515625, 0.004062652587890625, -0.0241851806640625, -0.03338623046875, -0.01097869873046875, 0.0144195556640625, 0.0178985595703125, 0.01922607421875, -0.03533935546875, 0.06451416015625, -0.0631103515625, -0.021087646484375, -0.0010356903076171875, -0.08319091796875, -0.02288818359375, 0.023773193359375, -0.0025157928466796875, 0.00042176246643066406, -0.016998291015625, -0.02105712890625, -0.006938934326171875, 0.01345062255859375, -0.01806640625, -0.0190277099609375, 0.0135650634765625, 0.02410888671875, 0.052520751953125, 0.040283203125, -0.020294189453125, 0.0235443115234375, 0.043701171875, -0.03082275390625, 0.01192474365234375, -0.031280517578125, -0.04266357421875, -0.047332763671875, 0.0023937225341796875, -0.00041961669921875, 0.0012836456298828125, -0.0716552734375, -0.0218963623046875, -0.00878143310546875, 0.015472412109375, -0.025421142578125, -0.0087738037109375, -0.03228759765625, -0.033721923828125, 0.060760498046875, -0.048736572265625, -0.004974365234375, 0.02691650390625, 0.05499267578125, -0.04742431640625, 0.0218963623046875, -0.0274658203125, -0.052490234375, -0.032318115234375, 0.002674102783203125, 0.0183258056640625, -0.0019083023071289062, -0.004932403564453125, 0.00579833984375, -0.027679443359375, 0.040252685546875, -0.037353515625, -0.0200653076171875, 0.004482269287109375, 0.0034389495849609375, -0.00439453125, -0.036102294921875, -0.007350921630859375, -0.0268707275390625, 0.007076263427734375, 0.0107421875, -0.03399658203125, -0.03521728515625, -0.062347412109375, -0.08331298828125, 0.0120391845703125, 0.0180206298828125, -0.04638671875, 0.014434814453125, 0.0106964111328125, 0.007061004638671875, 0.0020313262939453125, 0.0160064697265625, -0.0279998779296875, -0.0069122314453125, -0.015350341796875, -0.00208282470703125, 0.025146484375, 0.0172119140625, 0.01192474365234375, 0.003757476806640625, 0.0214691162109375, 0.02508544921875, -0.02862548828125, 0.04132080078125, -0.01015472412109375, 0.05072021484375, 0.050994873046875, -0.018524169921875, 0.0253753662109375, -0.0207366943359375, -0.0323486328125, 0.0005908012390136719, -0.0289764404296875, -0.01129913330078125, -0.01183319091796875, 0.01806640625, 0.043853759765625, -0.0007653236389160156, -0.0123748779296875, -0.02679443359375, -0.031951904296875, -0.04632568359375, -0.027435302734375, 0.033050537109375, -0.07330322265625, -0.01480865478515625, -0.01288604736328125, -0.008514404296875, -0.022186279296875, -0.0038852691650390625, -0.0184478759765625, -0.004913330078125, 0.050445556640625, 0.005718231201171875, 0.03558349609375, -0.012298583984375, 0.094970703125, -0.0546875, 0.0008249282836914062, -0.005157470703125, 0.035064697265625, 0.03179931640625, -0.0186309814453125, 0.0181121826171875, 0.0305633544921875, -0.01198577880859375, -0.0187530517578125, 0.0299224853515625, 0.01338958740234375, 0.0116424560546875, -0.0230712890625, -0.045806884765625, 0.00867462158203125, 0.010955810546875, 0.0008625984191894531, -0.00333404541015625, 0.016571044921875, 0.042816162109375, 0.0394287109375, -0.00975799560546875, -0.07470703125, -0.033538818359375, 0.0137481689453125, 0.0202789306640625, -0.00913238525390625, 0.047576904296875, 0.002933502197265625, -0.00258636474609375, 0.0034923553466796875, 0.0185089111328125, -0.0175628662109375, 0.01544952392578125, -0.019439697265625, 0.006587982177734375, 0.00942230224609375 ]
39e506b261bd3fde5a9be7cd4877e5b273a7250e
Wordpress Stackexchange Q: How should I use register_setting, add_settings_section, & add_settings_field in my plugin's options page? I'm working on a settings section for my plugin, and after reading over Wordpress's documentation which is in ROGUH DRAFT status, and also the Creating Options Pages - which is also in "transition", I've been left with questions about how to correctly use the new Settings API to add an options page for my plugin. I have around 30 plugins installed and did a search for the keywords register_setting, add_settings_section, & add_settings_field and only found one match as part of Coffee2Code's plugin framework - for which I can't find any documentation anywhere. Can someone give me a working example, or provide a link to a simple working example, of how I should use the new "Settings API" to create a simple options page for my plugin? A: I wrote a tutorial for Incorporating the Settings API in WordPress Themes. The only real difference for Plugins is that you'll use add_settings_page() instead of add_theme_page(). The rest should pretty much be the same.
Q: How should I use register_setting, add_settings_section, & add_settings_field in my plugin's options page? I'm working on a settings section for my plugin, and after reading over Wordpress's documentation which is in ROGUH DRAFT status, and also the Creating Options Pages - which is also in "transition", I've been left with questions about how to correctly use the new Settings API to add an options page for my plugin. I have around 30 plugins installed and did a search for the keywords register_setting, add_settings_section, & add_settings_field and only found one match as part of Coffee2Code's plugin framework - for which I can't find any documentation anywhere. Can someone give me a working example, or provide a link to a simple working example, of how I should use the new "Settings API" to create a simple options page for my plugin? A: I wrote a tutorial for Incorporating the Settings API in WordPress Themes. The only real difference for Plugins is that you'll use add_settings_page() instead of add_theme_page(). The rest should pretty much be the same. A: There is an other good tutorial at WPTuts+: Using The Settings API. Part 1 – Create A Theme Options Page If you create your own themes you will, sooner or later, want to allow your theme users have some control over certain appearance and/or functional elements of your theme. When this time comes you will want to use the powerful WordPress Settings API. With it, your code becomes simpler, more efficient and more secure. Part 2: Create A Top Level Admin Menu This is Part Two of “Create Theme Settings Pages that use the Settings API” tutorial. In this part, we will be looking into how we can create a top level admin menu with more than one settings pages as well as how we can add tabs when we need them. If you have not yet had the chance to read Part One, you may want to do that first before you continue. This tutorial builds on the code shown in the first part of this tutorial.
wordpress
{ "language": "en", "length": 344, "provenance": "stackexchange_00019.jsonl.gz:416492", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40208" }
[ 0.0243988037109375, -0.0243377685546875, 0.0313720703125, -0.0057373046875, -0.005001068115234375, -0.005523681640625, 0.0333251953125, -0.0221099853515625, 0.006252288818359375, 0.00522613525390625, -0.019805908203125, 0.018829345703125, -0.04840087890625, -0.007659912109375, -0.0175933837890625, -0.039825439453125, 0.0238800048828125, -0.01453399658203125, 0.01308441162109375, -0.0178070068359375, 0.0044403076171875, -0.0078125, 0.0171356201171875, 0.062103271484375, 0.052154541015625, -0.08197021484375, 0.013824462890625, -0.016510009765625, 0.0296478271484375, -0.00043392181396484375, 0.0202484130859375, 0.012908935546875, 0.007465362548828125, 0.0272369384765625, 0.01812744140625, 0.0272979736328125, 0.067626953125, -0.0171966552734375, 0.0238037109375, 0.050201416015625, 0.0616455078125, -0.03546142578125, -0.0005354881286621094, 0.04071044921875, -0.005977630615234375, -0.062408447265625, 0.10040283203125, -0.027130126953125, -0.0307769775390625, -0.01519775390625, 0.035003662109375, -0.06341552734375, 0.0439453125, -0.022857666015625, -0.0224151611328125, -0.0239410400390625, 0.005634307861328125, 0.002849578857421875, 0.0248260498046875, -0.0037822723388671875, -0.027435302734375, 0.006031036376953125, 0.0202178955078125, -0.0130157470703125, 0.027191162109375, -0.0216064453125, -0.03863525390625, 0.033905029296875, -0.0192413330078125, 0.022979736328125, 0.0216064453125, -0.043731689453125, 0.0209503173828125, -0.036285400390625, -0.03216552734375, -0.01097869873046875, 0.0222625732421875, -0.0223388671875, 0.0136871337890625, -0.032440185546875, -0.0031890869140625, 0.0012998580932617188, 0.034027099609375, -0.044952392578125, 0.01232147216796875, -0.021453857421875, -0.00540924072265625, -0.004528045654296875, -0.00452423095703125, -0.0259857177734375, -0.0008597373962402344, -0.046417236328125, -0.001102447509765625, 0.01947021484375, 0.0025482177734375, -0.033416748046875, 0.0159759521484375, -0.004970550537109375, 0.0257415771484375, 0.0215301513671875, 0.033447265625, -0.066162109375, 0.069091796875, -0.019134521484375, 0.0146484375, 0.0462646484375, -0.00463104248046875, -0.047210693359375, 0.02337646484375, 0.01184844970703125, 0.0014257431030273438, 0.01280975341796875, 0.0247802734375, -0.040863037109375, 0.010406494140625, -0.0237884521484375, -0.005725860595703125, 0.0009293556213378906, 0.024383544921875, -0.076171875, 0.0016889572143554688, 0.00463104248046875, 0.00460052490234375, -0.00933074951171875, -0.0160064697265625, -0.01399993896484375, -0.0243072509765625, -0.0297088623046875, -0.0270233154296875, 0.00493621826171875, -0.0093994140625, 0.014129638671875, 0.06591796875, 0.036956787109375, -0.0072021484375, -0.01922607421875, 0.03680419921875, -0.035064697265625, -0.022918701171875, 0.037322998046875, 0.00232696533203125, -0.034393310546875, -0.027679443359375, -0.032012939453125, 0.00534820556640625, -0.025604248046875, 0.01898193359375, 0.051025390625, -0.0021610260009765625, -0.0079498291015625, 0.044677734375, 0.0110321044921875, 0.0172119140625, 0.003627777099609375, -0.00914764404296875, 0.0170745849609375, -0.0126495361328125, 0.01427459716796875, -0.0150146484375, 0.0022029876708984375, -0.0218658447265625, -0.016998291015625, 0.019683837890625, -0.0212860107421875, -0.0166473388671875, 0.0165557861328125, -0.022918701171875, 0.00008255243301391602, 0.0016613006591796875, -0.027587890625, 0.010589599609375, -0.01345062255859375, -0.0268402099609375, -0.0172119140625, 0.006130218505859375, 0.0137786865234375, -0.0048370361328125, 0.0011777877807617188, 0.0283050537109375, 0.0125885009765625, -0.013885498046875, -0.0284423828125, 0.042633056640625, -0.017120361328125, -0.0592041015625, 0.0369873046875, 0.00992584228515625, 0.04974365234375, 0.0009474754333496094, 0.00565338134765625, 0.058258056640625, 0.0290069580078125, 0.0182647705078125, -0.0004925727844238281, 0.01593017578125, -0.03729248046875, -0.0247955322265625, 0.005706787109375, -0.010650634765625, -0.0272369384765625, -0.047698974609375, -0.0011339187622070312, 0.0009374618530273438, 0.0238189697265625, 0.014190673828125, -0.0174102783203125, 0.0082550048828125, 0.0148162841796875, 0.00009995698928833008, -0.001499176025390625, 0.00318145751953125, -0.023193359375, 0.005313873291015625, -0.0183258056640625, -0.03289794921875, 0.002498626708984375, -0.0190277099609375, 0.07275390625, 0.0321044921875, 0.04302978515625, 0.0540771484375, -0.0270233154296875, 0.056640625, 0.00901031494140625, 0.040863037109375, -0.0203857421875, -0.00359344482421875, -0.045501708984375, 0.035003662109375, -0.038055419921875, 0.0303192138671875, 0.07379150390625, -0.0016756057739257812, 0.035247802734375, -0.0122528076171875, -0.005504608154296875, 0.006114959716796875, -0.0316162109375, 0.0211029052734375, 0.03472900390625, 0.0310516357421875, 0.037445068359375, 0.01520538330078125, 0.0008544921875, 0.0321044921875, -0.0308990478515625, 0.0218353271484375, -0.0123138427734375, 0.024627685546875, 0.029296875, 0.01287078857421875, -0.02996826171875, 0.01122283935546875, -0.0182342529296875, 0.01214599609375, 0.00472259521484375, -0.065185546875, -0.0467529296875, 0.053131103515625, -0.0662841796875, 0.0146942138671875, -0.096923828125, -0.0233917236328125, -0.041473388671875, 0.04510498046875, 0.00728607177734375, 0.03570556640625, 0.023529052734375, -0.024078369140625, 0.0145416259765625, 0.01104736328125, -0.0243682861328125, -0.00783538818359375, -0.02081298828125, 0.01348114013671875, -0.033966064453125, -0.048858642578125, 0.019134521484375, 0.0174713134765625, -0.02410888671875, -0.0263671875, -0.008331298828125, -0.04595947265625, -0.019744873046875, 0.01192474365234375, -0.023162841796875, 0.0061798095703125, -0.00893402099609375, 0.0224456787109375, 0.0241546630859375, 0.035736083984375, 0.01340484619140625, -0.006275177001953125, 0.021697998046875, 0.01213836669921875, -0.015350341796875, 0.028228759765625, -0.0302581787109375, 0.033660888671875, -0.040435791015625, 0.031982421875, 0.041351318359375, -0.0299072265625, -0.00846099853515625, 0.01064300537109375, -0.0155487060546875, -0.006114959716796875, 0.0190277099609375, 0.00882720947265625, 0.0018529891967773438, -0.03167724609375, 0.043975830078125, 0.0200958251953125, 0.01114654541015625, 0.0017080307006835938, -0.042449951171875, -0.03717041015625, 0.01261138916015625, -0.08758544921875, -0.0347900390625, 0.0212249755859375, -0.10577392578125, 0.01343536376953125, -0.0212860107421875, -0.059478759765625, -0.01273345947265625, 0.03558349609375, 0.015777587890625, -0.02398681640625, -0.039764404296875, -0.03802490234375, -0.0673828125, -0.057281494140625, -0.0200042724609375, -0.0043182373046875, 0.009033203125, 0.0025234222412109375, 0.06256103515625, 0.0011959075927734375, -0.0743408203125, -0.013397216796875, -0.038848876953125, -0.01468658447265625, 0.022735595703125, 0.0242156982421875, -0.02154541015625, -0.007110595703125, 0.00495147705078125, 0.0205535888671875, 0.054595947265625, -0.055419921875, 0.00206756591796875, -0.048919677734375, -0.011566162109375, -0.0208587646484375, -0.0340576171875, 0.043792724609375, -0.0006198883056640625, -0.036163330078125, -0.033905029296875, -0.0136260986328125, 0.0015239715576171875, -0.036102294921875, -0.0372314453125, 0.0052642822265625, -0.00505828857421875, 0.01922607421875, -0.017333984375, -0.0178375244140625, -0.0233917236328125, 0.041778564453125, -0.040985107421875, 0.04107666015625, -0.025115966796875, -0.038055419921875, -0.0206451416015625, -0.002597808837890625, -0.043853759765625, -0.031524658203125, -0.0202484130859375, -0.03271484375, -0.006183624267578125, -0.0216217041015625, 0.0103759765625, -0.0631103515625, 0.040802001953125, -0.0293426513671875, 0.006671905517578125, -0.016021728515625, -0.0182647705078125, 0.00926971435546875, 0.10382080078125, -0.047454833984375, -0.0099029541015625, 0.01470184326171875, 0.024658203125, -0.0265350341796875, -0.036773681640625, -0.03533935546875, -0.0186920166015625, -0.0217437744140625, -0.03167724609375, -0.004375457763671875, -0.049560546875, -0.0218658447265625, -0.00672149658203125, -0.0278778076171875, -0.002384185791015625, 0.004978179931640625, 0.0248565673828125, 0.01544952392578125, 0.01055145263671875, 0.006439208984375, -0.01093292236328125, 0.024383544921875, -0.01507568359375, -0.10516357421875, -0.01105499267578125, 0.01422119140625, 0.04840087890625, 0.01210784912109375, -0.0753173828125, -0.004016876220703125, 0.048614501953125, -0.0052337646484375, 0.0234527587890625, 0.01465606689453125, 0.04144287109375, -0.02294921875, -0.025787353515625, 0.01201629638671875, -0.04718017578125, 0.0239105224609375, 0.027313232421875, -0.0517578125, 0.0184478759765625, -0.0244293212890625, 0.010894775390625, 0.02227783203125, -0.059967041015625, -0.0455322265625, 0.0041046142578125, -0.01434326171875, -0.037628173828125, -0.01410675048828125, -0.015960693359375, 0.037506103515625, -0.03717041015625, 0.0281982421875, -0.0362548828125, 0.001922607421875, 0.01358795166015625, 0.08001708984375, 0.0130767822265625, 0.0024623870849609375, -0.039794921875, -0.014251708984375, 0.0199737548828125, 0.0236968994140625, 0.00716400146484375, -0.0240631103515625, -0.03472900390625, 0.07391357421875, -0.00688934326171875, -0.00601959228515625, -0.019287109375, 0.0162200927734375, -0.017364501953125, -0.01788330078125, -0.004680633544921875, -0.0372314453125, 0.05133056640625, 0.00395965576171875, -0.0182647705078125, -0.01163482666015625, 0.0012264251708984375, 0.01064300537109375, -0.03125, 0.050933837890625, 0.0019159317016601562, -0.026885986328125, 0.00141143798828125, 0.0219879150390625, 0.022857666015625, 0.0498046875, -0.0212860107421875, 0.0133209228515625, -0.006946563720703125, -0.01435089111328125, 0.0261688232421875, 0.06427001953125, -0.0018405914306640625, 0.016387939453125, 0.0303192138671875, -0.0279083251953125, -0.04815673828125, -0.02490234375, 0.074462890625, -0.020599365234375, -0.06964111328125, 0.00501251220703125, -0.033599853515625, 0.031341552734375, 0.02740478515625, 0.0149383544921875, 0.032928466796875, 0.038299560546875, -0.0166473388671875, -0.0017404556274414062, 0.0238037109375, 0.00738525390625, -0.0419921875, -0.0010461807250976562, 0.01531219482421875, -0.0184783935546875, -0.013641357421875, 0.047454833984375, -0.038238525390625, 0.0206451416015625, 0.00537872314453125, 0.027313232421875, 0.01519775390625, -0.0029850006103515625, 0.0175933837890625, 0.01580810546875, 0.03033447265625, -0.042938232421875, 0.005580902099609375, -0.0213470458984375, -0.0199127197265625, 0.00635528564453125, -0.0003566741943359375, -0.0312042236328125, -0.0087738037109375, 0.04876708984375, 0.019317626953125, -0.03314208984375, -0.005046844482421875, -0.037200927734375, -0.057891845703125, -0.0175018310546875, 0.044342041015625, 0.03973388671875, 0.007213592529296875, 0.01337432861328125, 0.032073974609375, 0.0173797607421875, 0.0106353759765625, 0.01058197021484375, -0.0203399658203125, -0.015411376953125, 0.0011682510375976562, -0.0293121337890625, -0.01062774658203125, -0.018310546875, -0.035980224609375, -0.031829833984375, -0.0101165771484375, -0.007053375244140625, 0.0396728515625, -0.025665283203125, 0.0270233154296875, -0.0220794677734375, -0.0015039443969726562, -0.007312774658203125, -0.0014619827270507812, 0.049102783203125, 0.0214385986328125, -0.06390380859375, -0.00533294677734375, -0.024658203125, 0.003826141357421875, -0.031158447265625, -0.04827880859375, -0.04864501953125, 0.004425048828125, 0.022552490234375, 0.0238494873046875, -0.037017822265625, -0.05279541015625, -0.01007843017578125, 0.01293182373046875, 0.029937744140625, 0.0272979736328125, 0.029815673828125, 0.035552978515625, -0.0102081298828125, 0.05731201171875, 0.0208892822265625, -0.0007910728454589844, -0.060821533203125, -0.0198822021484375, 0.006114959716796875, 0.0006051063537597656, -0.0406494140625, -0.00670623779296875, -0.0323486328125, 0.036865234375, 0.092529296875, -0.00473785400390625, 0.01450347900390625, -0.0187835693359375, 0.004169464111328125, -0.0224761962890625, 0.0260162353515625, -0.035675048828125, -0.030029296875, 0.05657958984375, -0.052764892578125, -0.0280914306640625, -0.01336669921875, 0.0064697265625, 0.038665771484375, -0.02716064453125, 0.016815185546875, 0.0207366943359375, -0.05364990234375, 0.0645751953125, 0.05279541015625, 0.0113983154296875, 0.01430511474609375, -0.0010118484497070312, -0.005340576171875, -0.01253509521484375, 0.0311431884765625, -0.045013427734375, 0.006832122802734375, 0.0654296875, 0.032867431640625, -0.027618408203125, 0.050689697265625, -0.042144775390625, 0.038909912109375, 0.059906005859375, 0.04156494140625, -0.1185302734375, 0.0201416015625, -0.01004791259765625, 0.0111236572265625, 0.0765380859375, 0.0193939208984375, -0.00533294677734375, -0.02783203125, 0.0177154541015625, -0.044708251953125, -0.005908966064453125, 0.015655517578125, -0.024261474609375, -0.02105712890625, -0.021270751953125, 0.0005021095275878906, 0.0009918212890625, 0.011566162109375, 0.0172576904296875, -0.02197265625, 0.006641387939453125, 0.004291534423828125, 0.004695892333984375, -0.0030670166015625, -0.03228759765625, -0.05242919921875, 0.0028820037841796875, -0.051513671875, -0.02777099609375, 0.020965576171875, -0.01346588134765625, 0.0217132568359375, 0.0491943359375, -0.01375579833984375, 0.01849365234375, 0.017578125, 0.0236358642578125, 0.0065460205078125, -0.0153961181640625, 0.01580810546875, 0.0186309814453125, -0.050048828125, 0.0162353515625, -0.0243988037109375, 0.002819061279296875, -0.0218658447265625, 0.0002856254577636719, 0.10272216796875, -0.0029964447021484375, -0.04534912109375, 0.02056884765625, -0.0188751220703125, -0.0171356201171875, -0.0030345916748046875, 0.022064208984375, -0.02569580078125, -0.00762939453125, -0.005260467529296875, -0.013702392578125, 0.006500244140625, -0.00916290283203125, -0.0189971923828125, 0.1256103515625, -0.034454345703125, -0.0271148681640625, 0.005153656005859375, 0.079833984375, -0.0273590087890625, 0.06500244140625, -0.0231781005859375, 0.0289764404296875, 0.0003464221954345703, 0.00029397010803222656, -0.04998779296875, 0.0016317367553710938, -0.033416748046875, 0.044891357421875, 0.0660400390625, 0.03631591796875, -0.05291748046875, 0.003597259521484375, 0.0251312255859375, -0.0243988037109375, -0.0285797119140625, 0.0880126953125, -0.0177154541015625, -0.016632080078125, 0.02569580078125, -0.0143890380859375, 0.038482666015625, -0.0299835205078125, -0.0023632049560546875, -0.0024738311767578125, -0.010345458984375, -0.0111083984375, -0.0369873046875, 0.0249481201171875, 0.00359344482421875, -0.03338623046875, -0.00927734375, -0.051910400390625, 0.0094451904296875, -0.0157623291015625, -0.0206451416015625, 0.0227203369140625, 0.06298828125, -0.010162353515625, 0.033538818359375, 0.00559234619140625, 0.02880859375, -0.0020751953125, 0.001651763916015625, 0.03533935546875, -0.0161895751953125, 0.003650665283203125, 0.0140380859375, -0.009368896484375, 0.012969970703125, -0.01473236083984375, 0.0274810791015625, -0.024993896484375, 0.031890869140625, -0.01080322265625, 0.0024585723876953125, -0.0177764892578125, -0.06524658203125, -0.0007228851318359375, 0.00212860107421875, 0.0265350341796875, 0.0097198486328125, 0.050689697265625, -0.053314208984375, 0.016754150390625, -0.044952392578125, 0.012542724609375, 0.01026153564453125, 0.01477813720703125, 0.006938934326171875, 0.0401611328125, -0.060821533203125, 0.00659942626953125, -0.0216217041015625, 0.011993408203125, -0.01102447509765625, 0.036956787109375, 0.0155487060546875, 0.037750244140625, -0.0369873046875, -0.0171966552734375, -0.0262298583984375, 0.04559326171875, 0.02655029296875, 0.0175628662109375, -0.028900146484375, -0.036346435546875, 0.0083465576171875, 0.024139404296875, -0.03485107421875, 0.01464080810546875, -0.0035419464111328125, 0.01349639892578125, -0.0044403076171875, -0.01525115966796875, 0.036529541015625, -0.0161590576171875, -0.0008978843688964844, -0.022003173828125, -0.01515960693359375, -0.002841949462890625, -0.024261474609375, -0.00788116455078125, -0.0306549072265625, 0.03851318359375, -0.040374755859375, 0.06719970703125, -0.01471710205078125, -0.0100250244140625, 0.0312347412109375, -0.01456451416015625, 0.0765380859375, -0.007801055908203125, -0.07537841796875, 0.0115966796875, -0.043792724609375, -0.0775146484375, 0.030792236328125, 0.040008544921875, -0.0270538330078125, 0.01464080810546875, -0.03131103515625, -0.017974853515625, 0.03179931640625, -0.019622802734375, -0.00234222412109375, 0.0421142578125, 0.01092529296875, -0.0202484130859375, -0.033721923828125, -0.0282440185546875, -0.0160980224609375, 0.056243896484375, 0.0312347412109375, 0.037506103515625, -0.0106964111328125, 0.04229736328125, -0.00714111328125, -0.0369873046875, 0.03680419921875, -0.0104217529296875, 0.037353515625, 0.01155853271484375, -0.032196044921875, -0.0280303955078125, -0.044586181640625, 0.04736328125, 0.0192718505859375, -0.033416748046875, 0.0274658203125, 0.0103607177734375, -0.007678985595703125, -0.0195770263671875, 0.026763916015625, -0.0283050537109375, -0.059661865234375, -0.02105712890625, 0.026397705078125, -0.0227203369140625, 0.0033130645751953125, 0.0006194114685058594, 0.0188140869140625, 0.024139404296875, 0.035247802734375, -0.0164947509765625, 0.0516357421875, -0.05035400390625, 0.01251220703125, -0.020263671875, 0.00771331787109375, -0.004573822021484375, -0.03839111328125, 0.0176239013671875, -0.01226806640625, 0.0252838134765625, -0.004138946533203125, -0.006069183349609375, 0.006748199462890625, 0.0264892578125, 0.04425048828125, -0.00872802734375, 0.00795745849609375, 0.0189208984375, 0.0016260147094726562, -0.0180816650390625, 0.0297698974609375, -0.0275421142578125, -0.02618408203125, 0.001201629638671875, 0.0095977783203125, -0.0036144256591796875, -0.030517578125, -0.0623779296875, 0.0003573894500732422, 0.0107269287109375, -0.03515625, -0.02105712890625, -0.0294342041015625, -0.0232086181640625, 0.07440185546875, -0.05682373046875, -0.01336669921875, 0.01277923583984375, 0.027435302734375, -0.00595855712890625, 0.0079803466796875, -0.01593017578125, -0.00927734375, 0.0077667236328125, 0.031402587890625, 0.0496826171875, -0.02276611328125, -0.0312347412109375, 0.065185546875, 0.0202484130859375, 0.10992431640625, -0.034515380859375, -0.002056121826171875, 0.042449951171875, -0.01061248779296875, -0.03179931640625, -0.054107666015625, -0.0032596588134765625, -0.031890869140625, -0.00732421875, -0.044647216796875, -0.00403594970703125, -0.010345458984375, -0.048065185546875, -0.062103271484375, 0.08746337890625, -0.020721435546875, -0.0205535888671875, -0.035736083984375, 0.0131378173828125, 0.0045623779296875, 0.004680633544921875, -0.0034847259521484375, -0.0158843994140625, -0.02716064453125, 0.022613525390625, 0.0005154609680175781, 0.034332275390625, 0.00199127197265625, -0.00861358642578125, -0.05389404296875, -0.00804901123046875, -0.023681640625, 0.0017099380493164062, 0.0191192626953125, -0.0007796287536621094, 0.01261138916015625, 0.04315185546875, -0.0230255126953125, -0.03955078125, -0.0279388427734375, -0.01003265380859375, -0.0139007568359375, -0.0321044921875, 0.003292083740234375, 0.026824951171875, 0.058258056640625, 0.060943603515625, 0.016143798828125, -0.05816650390625, 0.0030651092529296875, -0.03131103515625, -0.004405975341796875, -0.00930023193359375, 0.00103759765625, -0.0244903564453125, 0.004047393798828125, -0.00072479248046875, 0.00514984130859375, -0.0043182373046875, -0.0217742919921875, 0.0087890625, -0.0104827880859375, 0.04791259765625, 0.0026187896728515625, 0.01506805419921875, -0.0164794921875, 0.037139892578125, -0.022247314453125, -0.00016772747039794922, 0.006275177001953125, 0.0164642333984375, 0.004642486572265625, 0.020782470703125, 0.0216522216796875, -0.006549835205078125, -0.0247802734375, 0.0150146484375, 0.009185791015625, 0.0704345703125, -0.019989013671875, -0.04046630859375, -0.004581451416015625, 0.030487060546875, 0.005275726318359375, 0.0291900634765625, -0.046112060546875, 0.05474853515625, 0.00647735595703125, 0.05560302734375, 0.01468658447265625, 0.0029544830322265625, -0.0225372314453125, 0.037078857421875, 0.005001068115234375, -0.0287017822265625, 0.01416015625, -0.0012521743774414062, -0.006305694580078125, -0.0251007080078125, 0.004276275634765625, -0.060516357421875, 0.048065185546875, -0.007465362548828125, -0.006916046142578125, 0.046417236328125 ]
e86b93834b410ad77cc06f6ff3d3de9714fb31a0
Wordpress Stackexchange Q: Difference between stylesheet_directory and template_directory What is the differene between stylesheet_directory and template_directory? Is that representing Child theme and Parent theme? A: Kind of - the template_directory is the directory of your parent theme. The stylesheet_directory is the directory containing the primary stylesheet in use (which, if you have a child template will be the in the child directory, otherwise it will be in the template directory). See the Codex here: 'stylesheet_url' - Returns the primary CSS (usually style.css) file URL of the active theme. 'template_url' / 'template_directory' - URL of the active theme's directory ... Within child themes, both get_bloginfo('template_url') and get_template() will return the parent theme directory.
Q: Difference between stylesheet_directory and template_directory What is the differene between stylesheet_directory and template_directory? Is that representing Child theme and Parent theme? A: Kind of - the template_directory is the directory of your parent theme. The stylesheet_directory is the directory containing the primary stylesheet in use (which, if you have a child template will be the in the child directory, otherwise it will be in the template directory). See the Codex here: 'stylesheet_url' - Returns the primary CSS (usually style.css) file URL of the active theme. 'template_url' / 'template_directory' - URL of the active theme's directory ... Within child themes, both get_bloginfo('template_url') and get_template() will return the parent theme directory.
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:416495", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40218" }
[ -0.0204925537109375, -0.033050537109375, -0.032318115234375, -0.03521728515625, -0.03643798828125, -0.0157012939453125, -0.0223236083984375, 0.0300140380859375, 0.0036163330078125, 0.022369384765625, -0.00970458984375, 0.0273590087890625, -0.0264434814453125, -0.018951416015625, -0.00847625732421875, -0.0150909423828125, 0.0538330078125, -0.06231689453125, 0.0107421875, -0.00864410400390625, 0.008575439453125, 0.01678466796875, 0.029052734375, 0.057891845703125, 0.0347900390625, -0.041351318359375, 0.01215362548828125, -0.0154876708984375, 0.0103607177734375, -0.032379150390625, 0.01244354248046875, 0.024261474609375, 0.03436279296875, -0.004650115966796875, 0.0016927719116210938, 0.0011415481567382812, -0.034912109375, 0.01520538330078125, -0.00977325439453125, 0.000020623207092285156, 0.005123138427734375, 0.0008025169372558594, 0.004688262939453125, -0.00836181640625, -0.0289459228515625, -0.014251708984375, -0.0040740966796875, -0.01378631591796875, 0.01873779296875, -0.0268402099609375, 0.026153564453125, -0.0092315673828125, 0.02386474609375, 0.0119476318359375, -0.0244140625, 0.01119232177734375, 0.0178985595703125, 0.00464630126953125, 0.0213775634765625, -0.05706787109375, -0.042877197265625, 0.006317138671875, 0.0447998046875, 0.0227203369140625, 0.0001633167266845703, -0.0127105712890625, -0.003040313720703125, 0.046173095703125, -0.034515380859375, -0.030609130859375, -0.0055694580078125, -0.00835418701171875, -0.0035076141357421875, -0.0804443359375, -0.00634765625, 0.052490234375, -0.017974853515625, -0.022308349609375, 0.011871337890625, -0.0236358642578125, -0.001277923583984375, 0.00751495361328125, -0.077880859375, -0.028411865234375, 0.0286407470703125, 0.0187225341796875, -0.0113983154296875, -0.025146484375, -0.00640869140625, -0.0022869110107421875, -0.0223236083984375, -0.03179931640625, 0.020233154296875, 0.0037384033203125, -0.0178375244140625, -0.01503753662109375, 0.04779052734375, 0.0902099609375, -0.04608154296875, -0.018280029296875, -0.036773681640625, -0.002521514892578125, -0.03411865234375, -0.02423095703125, -0.01233673095703125, 0.036651611328125, 0.02899169921875, 0.019073486328125, 0.026336669921875, 0.01247406005859375, 0.0037746429443359375, 0.031036376953125, -0.0079498291015625, -0.0240631103515625, -0.0248870849609375, 0.0215606689453125, -0.01904296875, 0.005458831787109375, 0.00754547119140625, 0.0025482177734375, 0.0181884765625, 0.038604736328125, 0.0533447265625, -0.06927490234375, -0.01282501220703125, -0.00484466552734375, -0.0247039794921875, -0.07830810546875, 0.050506591796875, 0.02801513671875, -0.0149383544921875, -0.01258087158203125, -0.018280029296875, -0.0186004638671875, -0.0263519287109375, -0.0196380615234375, -0.0002562999725341797, -0.006183624267578125, -0.007801055908203125, 0.0147857666015625, 0.00617218017578125, -0.042022705078125, -0.0063629150390625, 0.015167236328125, -0.04608154296875, 0.0004687309265136719, 0.029693603515625, 0.0244140625, -0.028472900390625, -0.0272064208984375, -0.01080322265625, 0.007701873779296875, 0.0230865478515625, -0.012969970703125, -0.0030918121337890625, -0.0372314453125, -0.035308837890625, -0.0189208984375, 0.02252197265625, -0.018310546875, -0.02728271484375, 0.007297515869140625, 0.050933837890625, -0.0118865966796875, -0.020233154296875, -0.011749267578125, -0.0165863037109375, -0.0098419189453125, 0.024688720703125, -0.0172119140625, 0.0246124267578125, -0.018890380859375, -0.011077880859375, -0.0033550262451171875, 0.00910186767578125, 0.0162506103515625, -0.02325439453125, -0.02191162109375, 0.0279541015625, 0.031463623046875, -0.01259613037109375, -0.019378662109375, 0.01332855224609375, 0.0131072998046875, -0.0093841552734375, -0.01788330078125, 0.00391387939453125, -0.0181884765625, 0.0086669921875, 0.0214996337890625, 0.01291656494140625, 0.0220184326171875, -0.0255889892578125, 0.0218353271484375, 0.0280303955078125, -0.021240234375, -0.035552978515625, -0.00384521484375, 0.01161956787109375, -0.031280517578125, -0.01239776611328125, 0.0030345916748046875, 0.032958984375, 0.0005059242248535156, -0.01629638671875, 0.00934600830078125, -0.018951416015625, 0.039703369140625, -0.0279083251953125, 0.0153961181640625, 0.00714874267578125, -0.0196685791015625, -0.004146575927734375, -0.01107025146484375, -0.0016727447509765625, 0.0189056396484375, -0.013580322265625, 0.016693115234375, 0.01007843017578125, 0.024078369140625, -0.0016489028930664062, 0.0265350341796875, -0.01288604736328125, -0.022064208984375, 0.056365966796875, 0.019317626953125, -0.01505279541015625, -0.0013895034790039062, 0.0235443115234375, 0.042755126953125, -0.08795166015625, 0.01543426513671875, 0.02362060546875, 0.05810546875, -0.0194091796875, -0.000377655029296875, -0.0017213821411132812, -0.030670166015625, 0.0090789794921875, 0.03192138671875, 0.0286865234375, 0.044403076171875, -0.0136566162109375, -0.01143646240234375, 0.0765380859375, -0.01514434814453125, -0.006999969482421875, 0.00258636474609375, 0.0140228271484375, 0.0362548828125, 0.0050811767578125, -0.0267333984375, 0.0162353515625, -0.0355224609375, -0.0185699462890625, 0.029052734375, -0.025238037109375, -0.022308349609375, -0.029052734375, 0.031646728515625, 0.015960693359375, 0.023284912109375, -0.017822265625, 0.015472412109375, -0.01247406005859375, -0.00589752197265625, -0.0281524658203125, -0.03741455078125, -0.031524658203125, 0.010955810546875, 0.0452880859375, -0.0186920166015625, 0.022247314453125, 0.09271240234375, 0.0010290145874023438, 0.005840301513671875, 0.030487060546875, -0.0587158203125, -0.00360107421875, 0.042755126953125, -0.00984954833984375, 0.031890869140625, -0.03045654296875, -0.009674072265625, -0.028472900390625, -0.051666259765625, 0.0042266845703125, 0.05242919921875, 0.01509857177734375, 0.043792724609375, 0.050628662109375, 0.0251617431640625, 0.004833221435546875, 0.0279083251953125, -0.003589630126953125, 0.00133514404296875, 0.0755615234375, 0.08099365234375, -0.017425537109375, 0.0235748291015625, 0.0028820037841796875, 0.0046234130859375, -0.0115203857421875, -0.035797119140625, 0.0154266357421875, -0.007625579833984375, 0.0234527587890625, -0.006061553955078125, -0.003963470458984375, 0.0015707015991210938, -0.049407958984375, 0.003543853759765625, 0.004848480224609375, -0.043212890625, 0.0097198486328125, -0.02593994140625, -0.0242156982421875, -0.036773681640625, -0.07354736328125, -0.038543701171875, 0.01568603515625, -0.04095458984375, 0.01739501953125, -0.0265655517578125, -0.005847930908203125, -0.0343017578125, -0.0244903564453125, 0.00913238525390625, 0.0128936767578125, -0.0298309326171875, -0.049346923828125, -0.056396484375, -0.0654296875, -0.0149993896484375, 0.00213623046875, -0.0043487548828125, -0.0038471221923828125, 0.024261474609375, -0.01059722900390625, -0.03582763671875, 0.00003123283386230469, 0.0189971923828125, 0.0240631103515625, 0.0151519775390625, 0.03765869140625, -0.00995635986328125, 0.00951385498046875, 0.0218963623046875, -0.03955078125, 0.02545166015625, -0.0251617431640625, -0.04278564453125, -0.0209197998046875, -0.034942626953125, -0.0064697265625, 0.01715087890625, 0.0158843994140625, -0.01126861572265625, 0.0192108154296875, -0.05938720703125, -0.0928955078125, -0.03778076171875, -0.103271484375, 0.1317138671875, 0.09869384765625, 0.022003173828125, -0.00273895263671875, 0.03948974609375, 0.0162200927734375, -0.0013294219970703125, 0.006038665771484375, -0.03369140625, 0.08319091796875, -0.00157928466796875, 0.0187835693359375, -0.026824951171875, 0.046630859375, -0.01050567626953125, -0.039337158203125, 0.0007734298706054688, -0.00875091552734375, -0.02130126953125, 0.00528717041015625, -0.04022216796875, -0.0758056640625, 0.01338958740234375, -0.06561279296875, 0.0014057159423828125, -0.0313720703125, 0.00214385986328125, 0.0085601806640625, 0.0908203125, -0.06500244140625, -0.0202789306640625, 0.01041412353515625, 0.039947509765625, -0.0256500244140625, -0.055023193359375, -0.0335693359375, -0.01215362548828125, -0.01409912109375, 0.0113525390625, 0.002269744873046875, -0.015625, -0.014129638671875, 0.004886627197265625, -0.01922607421875, -0.0170440673828125, 0.0298004150390625, 0.04364013671875, 0.00960540771484375, 0.01439666748046875, 0.00978851318359375, 0.014678955078125, -0.006183624267578125, -0.004474639892578125, -0.0103607177734375, -0.0213623046875, 0.01140594482421875, 0.0177459716796875, 0.0140380859375, -0.01119232177734375, 0.008697509765625, 0.030303955078125, -0.0035305023193359375, -0.0008568763732910156, 0.01384735107421875, 0.00855255126953125, 0.00904083251953125, 0.0180816650390625, 0.020416259765625, -0.00888824462890625, -0.0090179443359375, -0.0206298828125, -0.042694091796875, 0.006877899169921875, -0.004547119140625, 0.0233306884765625, 0.0268096923828125, -0.0168304443359375, -0.0286712646484375, -0.00363922119140625, 0.007366180419921875, 0.0209503173828125, 0.015289306640625, -0.009674072265625, -0.0010881423950195312, -0.032440185546875, 0.033538818359375, 0.037750244140625, -0.00522613525390625, -0.0198822021484375, 0.04168701171875, 0.033233642578125, -0.048187255859375, 0.0487060546875, -0.01172637939453125, 0.035308837890625, 0.02947998046875, 0.00860595703125, 0.0260467529296875, -0.0318603515625, 0.00914764404296875, 0.0260162353515625, -0.0081939697265625, 0.0341796875, 0.05169677734375, -0.00595855712890625, -0.0175628662109375, 0.011932373046875, -0.01241302490234375, -0.040008544921875, 0.03570556640625, 0.0086669921875, -0.01444244384765625, -0.0323486328125, 0.0170440673828125, 0.03790283203125, -0.036224365234375, -0.045074462890625, -0.038055419921875, 0.003963470458984375, -0.00949859619140625, 0.040435791015625, 0.0361328125, -0.02679443359375, 0.035491943359375, 0.0105438232421875, -0.027557373046875, 0.036651611328125, 0.039703369140625, 0.03167724609375, -0.0021419525146484375, 0.056854248046875, -0.0239410400390625, -0.02142333984375, -0.0013637542724609375, 0.01383209228515625, 0.00824737548828125, -0.0191192626953125, -0.025054931640625, 0.004085540771484375, 0.050872802734375, -0.00689697265625, 0.032196044921875, 0.06512451171875, -0.036834716796875, -0.0243682861328125, -0.0367431640625, -0.0201568603515625, -0.05596923828125, -0.064208984375, 0.01120758056640625, 0.019927978515625, -0.03485107421875, 0.014190673828125, -0.02667236328125, 0.034881591796875, -0.038360595703125, -0.01026153564453125, -0.0251617431640625, -0.01360321044921875, -0.00606536865234375, 0.034332275390625, -0.002208709716796875, 0.01555633544921875, -0.03240966796875, 0.04241943359375, -0.02606201171875, 0.00664520263671875, -0.0088348388671875, 0.0430908203125, -0.03521728515625, -0.03424072265625, 0.0310211181640625, -0.035064697265625, -0.01071929931640625, 0.00838470458984375, -0.006134033203125, -0.034332275390625, 0.003326416015625, 0.01097869873046875, 0.003467559814453125, -0.0113372802734375, -0.028533935546875, 0.0134124755859375, -0.048583984375, -0.006134033203125, 0.06390380859375, -0.05694580078125, 0.0215606689453125, 0.01190948486328125, -0.07757568359375, 0.00533294677734375, 0.03314208984375, -0.07598876953125, -0.06707763671875, 0.004924774169921875, -0.007293701171875, -0.007404327392578125, -0.038482666015625, 0.03204345703125, -0.001255035400390625, -0.02569580078125, -0.0579833984375, 0.020965576171875, 0.0307464599609375, 0.040374755859375, -0.0849609375, 0.033660888671875, -0.057098388671875, 0.01396942138671875, -0.0516357421875, -0.0762939453125, -0.0325927734375, -0.002811431884765625, -0.04022216796875, -0.0115509033203125, 0.033111572265625, 0.0875244140625, -0.033172607421875, 0.0479736328125, -0.03643798828125, -0.00925445556640625, -0.00731658935546875, 0.061492919921875, 0.00504302978515625, -0.004535675048828125, 0.02691650390625, 0.03350830078125, -0.0236968994140625, -0.0024871826171875, -0.0015211105346679688, -0.031005859375, 0.00688934326171875, -0.038787841796875, 0.034149169921875, 0.0260009765625, 0.06121826171875, 0.01206207275390625, -0.006931304931640625, -0.003459930419921875, -0.004901885986328125, -0.0141754150390625, 0.016998291015625, 0.00519561767578125, -0.007617950439453125, -0.0166778564453125, 0.01557159423828125, 0.0214385986328125, -0.00011366605758666992, -0.059417724609375, 0.036468505859375, 0.0226593017578125, 0.03900146484375, -0.01148223876953125, -0.061126708984375, 0.08062744140625, 0.02947998046875, -0.0019273757934570312, 0.018829345703125, -0.01555633544921875, 0.01177978515625, -0.00623321533203125, -0.006107330322265625, 0.000728607177734375, 0.00984954833984375, 0.0750732421875, 0.0140380859375, 0.006183624267578125, 0.07073974609375, -0.0277099609375, 0.01200103759765625, 0.038970947265625, 0.056671142578125, -0.0350341796875, -0.01213836669921875, 0.0133819580078125, -0.040863037109375, 0.002277374267578125, -0.0014801025390625, -0.01226806640625, -0.02606201171875, 0.031158447265625, 0.0302581787109375, 0.0081329345703125, 0.033447265625, 0.0008339881896972656, -0.0228729248046875, -0.0011186599731445312, -0.03173828125, -0.00247955322265625, 0.0103912353515625, -0.022430419921875, 0.0100250244140625, -0.0219573974609375, -0.021484375, 0.0230865478515625, -0.021087646484375, 0.0067901611328125, -0.00991058349609375, 0.028076171875, -0.034088134765625, 0.007419586181640625, 0.0226593017578125, 0.03887939453125, 0.04473876953125, 0.0296173095703125, 0.01383209228515625, -0.00406646728515625, -0.0304718017578125, 0.058074951171875, -0.00989532470703125, 0.0009784698486328125, 0.00827789306640625, 0.00208282470703125, -0.042999267578125, -0.003017425537109375, -0.044769287109375, 0.0172576904296875, 0.021331787109375, 0.04248046875, 0.034759521484375, -0.0278167724609375, -0.01403045654296875, 0.0611572265625, 0.00028896331787109375, -0.01702880859375, -0.00374603271484375, 0.0311126708984375, -0.0548095703125, 0.0012598037719726562, 0.0216217041015625, 0.007537841796875, -0.0275115966796875, -0.00033664703369140625, -0.055908203125, 0.0289306640625, -0.0243377685546875, 0.046875, 0.043548583984375, -0.01262664794921875, -0.041839599609375, -0.0421142578125, -0.004730224609375, 0.0271759033203125, 0.01568603515625, -0.0310821533203125, -0.018707275390625, 0.01444244384765625, -0.031280517578125, 0.011474609375, 0.0865478515625, 0.0202789306640625, -0.00018095970153808594, -0.0164031982421875, 0.044891357421875, 0.0184783935546875, -0.033447265625, 0.019317626953125, -0.011688232421875, -0.00749969482421875, -0.01288604736328125, 0.0199737548828125, 0.0252838134765625, -0.0169677734375, -0.08160400390625, 0.0169219970703125, 0.00962066650390625, -0.0024662017822265625, 0.0013666152954101562, 0.006092071533203125, -0.041839599609375, 0.006744384765625, 0.030426025390625, -0.020538330078125, 0.00922393798828125, 0.029754638671875, 0.0294342041015625, -0.00626373291015625, -0.04046630859375, -0.003665924072265625, 0.033721923828125, 0.0094146728515625, 0.0304107666015625, -0.025054931640625, 0.0006914138793945312, 0.035858154296875, -0.00501251220703125, 0.002704620361328125, 0.04998779296875, -0.04388427734375, 0.028564453125, -0.0037899017333984375, 0.0165557861328125, -0.048492431640625, 0.0229339599609375, -0.01641845703125, 0.00905609130859375, -0.03582763671875, -0.046600341796875, 0.0119781494140625, 0.0009765625, -0.0097198486328125, 0.00031828880310058594, -0.0264129638671875, -0.042755126953125, 0.01354217529296875, -0.07635498046875, -0.01552581787109375, 0.03460693359375, -0.01465606689453125, -0.01413726806640625, -0.02496337890625, 0.030487060546875, 0.002307891845703125, -0.02166748046875, 0.01172637939453125, 0.0133209228515625, 0.0179290771484375, -0.0025005340576171875, 0.026336669921875, -0.0110321044921875, -0.020751953125, -0.045318603515625, 0.0218505859375, 0.002315521240234375, 0.052276611328125, -0.0523681640625, 0.016021728515625, 0.04986572265625, 0.045562744140625, 0.049835205078125, 0.00455474853515625, 0.0001550912857055664, -0.036773681640625, -0.00209808349609375, 0.018310546875, -0.040191650390625, -0.0223236083984375, 0.036712646484375, -0.034332275390625, 0.0198974609375, 0.0010328292846679688, -0.0073089599609375, -0.024658203125, -0.004276275634765625, 0.040740966796875, -0.03472900390625, 0.057769775390625, -0.0025920867919921875, 0.01131439208984375, 0.012603759765625, -0.038665771484375, -0.01172637939453125, -0.0163116455078125, -0.007701873779296875, -0.0151214599609375, 0.03131103515625, 0.02197265625, -0.0298004150390625, 0.0202178955078125, -0.0049591064453125, 0.03558349609375, 0.056549072265625, -0.00945281982421875, -0.0225982666015625, -0.003444671630859375, 0.046539306640625, -0.018798828125, -0.012420654296875, 0.03082275390625, -0.004520416259765625, -0.0180816650390625, -0.01006317138671875, 0.03643798828125, 0.0302276611328125, 0.10882568359375, -0.058135986328125, 0.02557373046875, 0.016937255859375, 0.044647216796875, -0.0220947265625, -0.034332275390625, 0.096435546875, -0.033203125, -0.01552581787109375, -0.01654052734375, -0.083740234375, -0.01534271240234375, 0.0517578125, -0.018096923828125, -0.005184173583984375, 0.021087646484375, 0.016998291015625, -0.030548095703125, 0.006809234619140625, -0.02679443359375, -0.0268402099609375, -0.0369873046875, 0.0026149749755859375, 0.025177001953125, -0.0031833648681640625, -0.03204345703125, 0.046630859375, -0.024200439453125, -0.058563232421875, 0.031005859375, -0.06707763671875, 0.031158447265625, 0.0294036865234375, 0.00600433349609375, -0.06207275390625, 0.0095672607421875, -0.013031005859375, 0.0179443359375, -0.00510406494140625, 0.066650390625, 0.016448974609375, -0.06756591796875, -0.003482818603515625, -0.007053375244140625, 0.014251708984375, -0.026611328125, 0.0032138824462890625, 0.0006613731384277344, 0.00113677978515625, 0.0198516845703125, -0.033355712890625, -0.02752685546875, -0.025360107421875, 0.006381988525390625, 0.0214996337890625, 0.01422882080078125, 0.004940032958984375, 0.0116729736328125, -0.002468109130859375, 0.0106048583984375, -0.01082611083984375, -0.005168914794921875, -0.00986480712890625, -0.019287109375, 0.00848388671875, -0.006771087646484375, -0.01849365234375, 0.01010894775390625, 0.01025390625, -0.0288848876953125, 0.018310546875, -0.01502227783203125, -0.03204345703125, 0.00951385498046875, 0.003902435302734375, 0.01204681396484375, 0.01230621337890625, 0.034332275390625, 0.036834716796875, -0.0162811279296875, 0.10003662109375, -0.07794189453125, -0.0257720947265625, 0.0185546875, -0.009368896484375, -0.0091552734375, -0.031982421875, -0.00751495361328125, -0.01505279541015625, -0.0093536376953125, -0.001537322998046875, -0.0372314453125, -0.0140228271484375, -0.056365966796875, -0.07427978515625, 0.07177734375, 0.0087127685546875, -0.03411865234375, -0.01461029052734375, -0.007289886474609375, -0.01389312744140625, 0.0278167724609375, -0.0004818439483642578, -0.02410888671875, -0.00708770751953125, 0.0421142578125, 0.038818359375, 0.0148468017578125, 0.0161590576171875, 0.004367828369140625, -0.059112548828125, 0.0231475830078125, 0.00922393798828125, 0.031890869140625, -0.028472900390625, 0.0230712890625, -0.007289886474609375, 0.03564453125, -0.01303863525390625, 0.01000213623046875, 0.0170440673828125, 0.0022563934326171875, -0.015625, 0.01611328125, 0.009490966796875, 0.0197906494140625, 0.032470703125, 0.047760009765625, -0.003345489501953125, -0.02972412109375, -0.0247955322265625, -0.03704833984375, -0.052520751953125, 0.01568603515625, 0.0323486328125, -0.06396484375, 0.021728515625, 0.056793212890625, -0.01422119140625, 0.0261993408203125, -0.039306640625, -0.04193115234375, 0.001064300537109375, -0.0330810546875, -0.004604339599609375, -0.0352783203125, -0.03594970703125, 0.039093017578125, -0.01100921630859375, 0.031402587890625, -0.0167388916015625, 0.039825439453125, 0.03228759765625, 0.0240936279296875, 0.00714874267578125, 0.04632568359375, -0.046112060546875, 0.0217132568359375, 0.004894256591796875, -0.0178070068359375, -0.0202178955078125, 0.008636474609375, 0.037506103515625, -0.0081329345703125, -0.032989501953125, -0.04595947265625, -0.02532958984375, 0.0687255859375, -0.049346923828125, 0.1422119140625, 0.01425933837890625, 0.059600830078125, -0.00047206878662109375, 0.0548095703125, -0.046722412109375, -0.016998291015625, -0.051025390625, -0.0141754150390625, -0.0023784637451171875, -0.0272979736328125, -0.0203094482421875, -0.06732177734375, 0.054931640625, -0.0184173583984375, -0.01061248779296875, 0.036956787109375 ]